@nylas/web-elements 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +191 -95
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +10418 -10260
  3. package/dist/cjs/{abstract-provider-ca4f7e4f.js → abstract-provider-f84a6735.js} +2 -2
  4. package/dist/cjs/{abstract-provider-ca4f7e4f.js.map → abstract-provider-f84a6735.js.map} +1 -1
  5. package/dist/cjs/app-globals-ee500b74.js.map +1 -1
  6. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +36 -21
  7. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
  8. package/dist/cjs/{calendar-check-icon_2.cjs.entry.js → calendar-check-icon.cjs.entry.js} +3 -19
  9. package/dist/cjs/calendar-check-icon.cjs.entry.js.map +1 -0
  10. package/dist/cjs/checkbox-component_2.cjs.entry.js +1 -1
  11. package/dist/cjs/checkbox-group_4.cjs.entry.js +3 -3
  12. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +24 -0
  13. package/dist/cjs/checkmark-circle-icon.cjs.entry.js.map +1 -0
  14. package/dist/cjs/checkmark-icon_15.cjs.entry.js +11 -7
  15. package/dist/cjs/checkmark-icon_15.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{customParseFormat-bb3a23c5.js → customParseFormat-95790293.js} +2 -2
  17. package/dist/cjs/{customParseFormat-bb3a23c5.js.map → customParseFormat-95790293.js.map} +1 -1
  18. package/dist/cjs/{feedbackSync-1c5ec9aa.js → feedbackSync-4ed99749.js} +2 -2
  19. package/dist/cjs/{feedbackSync-1c5ec9aa.js.map → feedbackSync-4ed99749.js.map} +1 -1
  20. package/dist/cjs/globe-icon_2.cjs.entry.js +2 -2
  21. package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -8
  22. package/dist/cjs/index-e07e3a7e.js +6 -2
  23. package/dist/cjs/index.cjs.js +2 -2
  24. package/dist/cjs/{index.es-c563f3ba.js → index.es-62161daa.js} +2 -2
  25. package/dist/cjs/{index.es-c563f3ba.js.map → index.es-62161daa.js.map} +1 -1
  26. package/dist/cjs/input-component.cjs.entry.js +1 -1
  27. package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
  30. package/dist/cjs/{nylas-api-request-4d148ff1.js → nylas-api-request-03d7f604.js} +2 -2
  31. package/dist/cjs/{nylas-api-request-4d148ff1.js.map → nylas-api-request-03d7f604.js.map} +1 -1
  32. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +82 -25
  33. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js.map +1 -1
  34. package/dist/cjs/nylas-form-card.cjs.entry.js +2 -2
  35. package/dist/cjs/nylas-notification_2.cjs.entry.js +1 -1
  36. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +6 -6
  37. package/dist/cjs/nylas-scheduling.cjs.entry.js +42 -14
  38. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  39. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  40. package/dist/cjs/{register-component-70744713.js → register-component-f4ad9751.js} +2 -2
  41. package/dist/cjs/{register-component-70744713.js.map → register-component-f4ad9751.js.map} +1 -1
  42. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  43. package/dist/cjs/{utils-dd3b6f4c.js → utils-03b13826.js} +154 -55
  44. package/dist/cjs/utils-03b13826.js.map +1 -0
  45. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +11 -3
  46. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  47. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +49 -4
  48. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  49. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js +3 -3
  50. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js.map +1 -1
  51. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +37 -1
  52. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js.map +1 -1
  53. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +34 -2
  54. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js.map +1 -1
  55. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.css +1 -1
  56. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +34 -1
  57. package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js.map +1 -1
  58. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +10 -4
  59. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  60. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +10 -2
  61. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
  62. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.css +13 -0
  63. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +66 -7
  64. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  65. package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js +33 -0
  66. package/dist/collection/components/scheduler/nylas-scheduling/test/nylas-scheduling.spec.js.map +1 -1
  67. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +20 -5
  68. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js.map +1 -1
  69. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
  70. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +12 -6
  71. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  72. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +1 -1
  73. package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.js +12 -6
  74. package/dist/collection/components/scheduler-editor/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.js.map +1 -1
  75. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js +6 -3
  76. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js.map +1 -1
  77. package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js +14 -8
  78. package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js.map +1 -1
  79. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +3 -3
  80. package/dist/collection/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.js +1 -1
  81. package/dist/collection/components/scheduler-editor/nylas-reminder-emails/nylas-reminder-emails.js +8 -4
  82. package/dist/collection/components/scheduler-editor/nylas-reminder-emails/nylas-reminder-emails.js.map +1 -1
  83. package/dist/components/index.js.map +1 -1
  84. package/dist/components/nylas-additional-participants2.js +12 -6
  85. package/dist/components/nylas-additional-participants2.js.map +1 -1
  86. package/dist/components/nylas-booked-event-card2.js +13 -6
  87. package/dist/components/nylas-booked-event-card2.js.map +1 -1
  88. package/dist/components/nylas-booking-confirmation-redirect2.js +12 -6
  89. package/dist/components/nylas-booking-confirmation-redirect2.js.map +1 -1
  90. package/dist/components/nylas-booking-form2.js +28 -6
  91. package/dist/components/nylas-booking-form2.js.map +1 -1
  92. package/dist/components/nylas-cancel-booking-form2.js +13 -3
  93. package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
  94. package/dist/components/nylas-cancelled-event-card2.js +12 -3
  95. package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
  96. package/dist/components/nylas-confirmation-email2.js +6 -3
  97. package/dist/components/nylas-confirmation-email2.js.map +1 -1
  98. package/dist/components/nylas-confirmed-event-card2.js +18 -8
  99. package/dist/components/nylas-confirmed-event-card2.js.map +1 -1
  100. package/dist/components/nylas-custom-event-slug2.js +15 -9
  101. package/dist/components/nylas-custom-event-slug2.js.map +1 -1
  102. package/dist/components/nylas-date-picker2.js +1 -1
  103. package/dist/components/nylas-date-picker2.js.map +1 -1
  104. package/dist/components/nylas-editor-tabs-group2.js +2 -2
  105. package/dist/components/nylas-editor-tabs2.js +2 -2
  106. package/dist/components/nylas-organizer-confirmation-card2.js +12 -5
  107. package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
  108. package/dist/components/nylas-reminder-emails2.js +8 -4
  109. package/dist/components/nylas-reminder-emails2.js.map +1 -1
  110. package/dist/components/nylas-scheduler-editor.js +2 -2
  111. package/dist/components/nylas-scheduling.js +42 -12
  112. package/dist/components/nylas-scheduling.js.map +1 -1
  113. package/dist/components/nylas-selected-event-card2.js +12 -5
  114. package/dist/components/nylas-selected-event-card2.js.map +1 -1
  115. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  116. package/dist/components/utils.js +153 -54
  117. package/dist/components/utils.js.map +1 -1
  118. package/dist/esm/{abstract-provider-efe136bd.js → abstract-provider-bdb7d9b4.js} +2 -2
  119. package/dist/esm/{abstract-provider-efe136bd.js.map → abstract-provider-bdb7d9b4.js.map} +1 -1
  120. package/dist/esm/app-globals-295a87be.js.map +1 -1
  121. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +36 -21
  122. package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
  123. package/dist/esm/{calendar-check-icon_2.entry.js → calendar-check-icon.entry.js} +4 -19
  124. package/dist/esm/calendar-check-icon.entry.js.map +1 -0
  125. package/dist/esm/checkbox-component_2.entry.js +1 -1
  126. package/dist/esm/checkbox-group_4.entry.js +3 -3
  127. package/dist/esm/checkmark-circle-icon.entry.js +20 -0
  128. package/dist/esm/checkmark-circle-icon.entry.js.map +1 -0
  129. package/dist/esm/checkmark-icon_15.entry.js +11 -7
  130. package/dist/esm/checkmark-icon_15.entry.js.map +1 -1
  131. package/dist/esm/{customParseFormat-edc38d83.js → customParseFormat-f0d21eb3.js} +2 -2
  132. package/dist/esm/{customParseFormat-edc38d83.js.map → customParseFormat-f0d21eb3.js.map} +1 -1
  133. package/dist/esm/{feedbackSync-e4378c0b.js → feedbackSync-b9c9e719.js} +2 -2
  134. package/dist/esm/{feedbackSync-e4378c0b.js.map → feedbackSync-b9c9e719.js.map} +1 -1
  135. package/dist/esm/globe-icon_2.entry.js +2 -2
  136. package/dist/esm/google-logo-icon_6.entry.js +8 -8
  137. package/dist/esm/index-091600eb.js +6 -2
  138. package/dist/esm/{index.es-6a9d55cf.js → index.es-ccb2a286.js} +2 -2
  139. package/dist/esm/{index.es-6a9d55cf.js.map → index.es-ccb2a286.js.map} +1 -1
  140. package/dist/esm/index.js +2 -2
  141. package/dist/esm/input-component.entry.js +1 -1
  142. package/dist/esm/input-dropdown_2.entry.js +1 -1
  143. package/dist/esm/loader.js +1 -1
  144. package/dist/esm/multi-select-dropdown.entry.js +1 -1
  145. package/dist/esm/{nylas-api-request-f2e4e9b6.js → nylas-api-request-7d702661.js} +2 -2
  146. package/dist/esm/{nylas-api-request-f2e4e9b6.js.map → nylas-api-request-7d702661.js.map} +1 -1
  147. package/dist/esm/nylas-booked-event-card_11.entry.js +82 -25
  148. package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
  149. package/dist/esm/nylas-form-card.entry.js +2 -2
  150. package/dist/esm/nylas-notification_2.entry.js +1 -1
  151. package/dist/esm/nylas-scheduler-editor.entry.js +6 -6
  152. package/dist/esm/nylas-scheduling.entry.js +43 -15
  153. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  154. package/dist/esm/nylas-web-elements.js +1 -1
  155. package/dist/esm/{register-component-a1c3d7b4.js → register-component-9d4ceee5.js} +2 -2
  156. package/dist/esm/{register-component-a1c3d7b4.js.map → register-component-9d4ceee5.js.map} +1 -1
  157. package/dist/esm/textarea-component.entry.js +1 -1
  158. package/dist/esm/{utils-b7f9cbcc.js → utils-fb8a9ce4.js} +154 -55
  159. package/dist/esm/utils-fb8a9ce4.js.map +1 -0
  160. package/dist/nylas-web-elements/index.esm.js +1 -1
  161. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  162. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  163. package/dist/nylas-web-elements/{p-3ce8e281.js → p-094be30f.js} +2 -2
  164. package/dist/nylas-web-elements/p-18c58ea1.entry.js +2 -0
  165. package/dist/nylas-web-elements/p-18c58ea1.entry.js.map +1 -0
  166. package/dist/nylas-web-elements/{p-c12c18b2.entry.js → p-1dbaf879.entry.js} +2 -2
  167. package/dist/nylas-web-elements/p-2830522f.entry.js +2 -0
  168. package/dist/nylas-web-elements/p-2830522f.entry.js.map +1 -0
  169. package/dist/nylas-web-elements/{p-35297f33.entry.js → p-3b56d656.entry.js} +2 -2
  170. package/dist/nylas-web-elements/{p-8e7882a1.js → p-3c8b7ba1.js} +2 -2
  171. package/dist/nylas-web-elements/{p-3204882f.entry.js → p-3f5e1e6b.entry.js} +2 -2
  172. package/dist/nylas-web-elements/{p-5aae729f.js → p-4c1fafb4.js} +2 -2
  173. package/dist/nylas-web-elements/p-522270a2.entry.js +2 -0
  174. package/dist/nylas-web-elements/p-522270a2.entry.js.map +1 -0
  175. package/dist/nylas-web-elements/p-67e936ce.entry.js +2 -0
  176. package/dist/nylas-web-elements/p-67e936ce.entry.js.map +1 -0
  177. package/dist/nylas-web-elements/{p-9e11eb2c.js → p-6d8e2c6b.js} +2 -2
  178. package/dist/nylas-web-elements/{p-3362cf82.entry.js → p-8f82f281.entry.js} +2 -2
  179. package/dist/nylas-web-elements/p-920812bd.entry.js +8 -0
  180. package/dist/nylas-web-elements/p-920812bd.entry.js.map +1 -0
  181. package/dist/nylas-web-elements/{p-b40f7a77.entry.js → p-a42f41f7.entry.js} +2 -2
  182. package/dist/nylas-web-elements/p-a6e2e49c.js.map +1 -1
  183. package/dist/nylas-web-elements/{p-8340d845.entry.js → p-aad611b4.entry.js} +2 -2
  184. package/dist/nylas-web-elements/{p-6e56eb3f.js → p-ab88518b.js} +2 -2
  185. package/dist/nylas-web-elements/{p-5cf6301e.entry.js → p-b3500bf1.entry.js} +2 -2
  186. package/dist/nylas-web-elements/{p-4d8f9740.entry.js → p-b6d863e0.entry.js} +2 -2
  187. package/dist/nylas-web-elements/{p-50c255fa.entry.js → p-b8cf836f.entry.js} +2 -2
  188. package/dist/nylas-web-elements/{p-996c827d.entry.js → p-bf37be06.entry.js} +2 -2
  189. package/dist/nylas-web-elements/p-de4b01ac.entry.js +2 -0
  190. package/dist/nylas-web-elements/p-de4b01ac.entry.js.map +1 -0
  191. package/dist/nylas-web-elements/{p-308e7adb.entry.js → p-f42e87c6.entry.js} +3 -3
  192. package/dist/nylas-web-elements/{p-dea32251.js → p-f4825eb1.js} +2 -2
  193. package/dist/nylas-web-elements/p-faa30369.js +14 -0
  194. package/dist/nylas-web-elements/{p-59e4ab2d.js.map → p-faa30369.js.map} +1 -1
  195. package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +2 -0
  196. package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +7 -0
  197. package/dist/types/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.d.ts +3 -0
  198. package/dist/types/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.d.ts +3 -1
  199. package/dist/types/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.d.ts +3 -1
  200. package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +2 -1
  201. package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +2 -0
  202. package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +6 -0
  203. package/dist/types/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.d.ts +3 -1
  204. package/dist/types/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.d.ts +2 -1
  205. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +2 -0
  206. package/dist/types/components/scheduler-editor/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.d.ts +2 -0
  207. package/dist/types/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.d.ts +2 -0
  208. package/dist/types/components.d.ts +46 -6
  209. package/package.json +3 -5
  210. package/dist/cjs/calendar-check-icon_2.cjs.entry.js.map +0 -1
  211. package/dist/cjs/utils-dd3b6f4c.js.map +0 -1
  212. package/dist/esm/calendar-check-icon_2.entry.js.map +0 -1
  213. package/dist/esm/utils-b7f9cbcc.js.map +0 -1
  214. package/dist/nylas-web-elements/p-2b52b854.entry.js +0 -2
  215. package/dist/nylas-web-elements/p-2b52b854.entry.js.map +0 -1
  216. package/dist/nylas-web-elements/p-59e4ab2d.js +0 -14
  217. package/dist/nylas-web-elements/p-8a3965ba.entry.js +0 -2
  218. package/dist/nylas-web-elements/p-8a3965ba.entry.js.map +0 -1
  219. package/dist/nylas-web-elements/p-97128be4.entry.js +0 -8
  220. package/dist/nylas-web-elements/p-97128be4.entry.js.map +0 -1
  221. package/dist/nylas-web-elements/p-d69f9d47.entry.js +0 -2
  222. package/dist/nylas-web-elements/p-d69f9d47.entry.js.map +0 -1
  223. package/dist/nylas-web-elements/p-dcc8ca35.entry.js +0 -2
  224. package/dist/nylas-web-elements/p-dcc8ca35.entry.js.map +0 -1
  225. /package/dist/nylas-web-elements/{p-3ce8e281.js.map → p-094be30f.js.map} +0 -0
  226. /package/dist/nylas-web-elements/{p-c12c18b2.entry.js.map → p-1dbaf879.entry.js.map} +0 -0
  227. /package/dist/nylas-web-elements/{p-35297f33.entry.js.map → p-3b56d656.entry.js.map} +0 -0
  228. /package/dist/nylas-web-elements/{p-8e7882a1.js.map → p-3c8b7ba1.js.map} +0 -0
  229. /package/dist/nylas-web-elements/{p-3204882f.entry.js.map → p-3f5e1e6b.entry.js.map} +0 -0
  230. /package/dist/nylas-web-elements/{p-5aae729f.js.map → p-4c1fafb4.js.map} +0 -0
  231. /package/dist/nylas-web-elements/{p-9e11eb2c.js.map → p-6d8e2c6b.js.map} +0 -0
  232. /package/dist/nylas-web-elements/{p-3362cf82.entry.js.map → p-8f82f281.entry.js.map} +0 -0
  233. /package/dist/nylas-web-elements/{p-b40f7a77.entry.js.map → p-a42f41f7.entry.js.map} +0 -0
  234. /package/dist/nylas-web-elements/{p-8340d845.entry.js.map → p-aad611b4.entry.js.map} +0 -0
  235. /package/dist/nylas-web-elements/{p-6e56eb3f.js.map → p-ab88518b.js.map} +0 -0
  236. /package/dist/nylas-web-elements/{p-5cf6301e.entry.js.map → p-b3500bf1.entry.js.map} +0 -0
  237. /package/dist/nylas-web-elements/{p-4d8f9740.entry.js.map → p-b6d863e0.entry.js.map} +0 -0
  238. /package/dist/nylas-web-elements/{p-50c255fa.entry.js.map → p-b8cf836f.entry.js.map} +0 -0
  239. /package/dist/nylas-web-elements/{p-996c827d.entry.js.map → p-bf37be06.entry.js.map} +0 -0
  240. /package/dist/nylas-web-elements/{p-308e7adb.entry.js.map → p-f42e87c6.entry.js.map} +0 -0
  241. /package/dist/nylas-web-elements/{p-dea32251.js.map → p-f4825eb1.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as n,h as t}from"./p-59e4ab2d.js";var e;(function(n){n["Error"]="error";n["Warning"]="warning";n["Info"]="info";n["Success"]="success"})(e||(e={}));var r;(function(n){n["Component"]="component";n["Api"]="api";n["Auth"]="auth"})(r||(r={}));var o;(function(n){n["endtime_not_in_future"]="endtime_not_in_future";n["no_booking_info"]="no_booking_info";n["no_timeslot_selected"]="no_timeslot_selected";n["no_timezone_selected"]="no_timezone_selected";n["no_booking_id"]="no_booking_id";n["no_salt"]="no_salt";n["invalid_start_time"]="invalid_start_time";n["invalid_end_time"]="invalid_end_time";n["invalid_timezone"]="invalid_timezone";n["no_config_id"]="no_config_id"})(o||(o={}));const i=Object.prototype.toString;function s(n){switch(i.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return true;default:return v(n,Error)}}function c(n,t){return i.call(n)===`[object ${t}]`}function u(n){return c(n,"ErrorEvent")}function a(n){return c(n,"DOMError")}function f(n){return c(n,"DOMException")}function l(n){return c(n,"String")}function d(n){return typeof n==="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function h(n){return n===null||d(n)||typeof n!=="object"&&typeof n!=="function"}function p(n){return c(n,"Object")}function m(n){return typeof Event!=="undefined"&&v(n,Event)}function b(n){return typeof Element!=="undefined"&&v(n,Element)}function g(n){return c(n,"RegExp")}function _(n){return Boolean(n&&n.then&&typeof n.then==="function")}function y(n){return p(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function v(n,t){try{return n instanceof t}catch(n){return false}}function w(n){return!!(typeof n==="object"&&n!==null&&(n.__isVue||n._isVue))}function x(n,t=0){if(typeof n!=="string"||t===0){return n}return n.length<=t?n:`${n.slice(0,t)}...`}function k(n,t){if(!Array.isArray(n)){return""}const e=[];for(let t=0;t<n.length;t++){const r=n[t];try{if(w(r)){e.push("[VueViewModel]")}else{e.push(String(r))}}catch(n){e.push("[value cannot be serialized]")}}return e.join(t)}function E(n,t,e=false){if(!l(n)){return false}if(g(t)){return t.test(n)}if(l(t)){return e?n===t:n.includes(t)}return false}function S(n,t=[],e=false){return t.some((t=>E(n,t,e)))}function N(n,t,e=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!v(s.originalException,Error)){return}const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(c){i.exception.values=I($(n,t,o,s.originalException,r,i.exception.values,c,0),e)}}function $(n,t,e,r,o,i,s,c){if(i.length>=e+1){return i}let u=[...i];if(v(r[o],Error)){C(s,c);const i=n(t,r[o]);const a=u.length;T(i,o,a,c);u=$(n,t,e,r[o],o,[i,...u],i,a)}if(Array.isArray(r.errors)){r.errors.forEach(((r,i)=>{if(v(r,Error)){C(s,c);const a=n(t,r);const f=u.length;T(a,`errors[${i}]`,f,c);u=$(n,t,e,r,o,[a,...u],a,f)}}))}return u}function C(n,t){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,...n.type==="AggregateError"&&{is_exception_group:true},exception_id:t}}function T(n,t,e,r){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,type:"chained",source:t,exception_id:e,parent_id:r}}function I(n,t){return n.map((n=>{if(n.value){n.value=x(n.value,t)}return n}))}const j="8.28.0";const L=globalThis;function M(n,t,e){const r=e||L;const o=r.__SENTRY__=r.__SENTRY__||{};const i=o[j]=o[j]||{};return i[n]||(i[n]=t())}const D=L;const R=80;function O(n,t={}){if(!n){return"<unknown>"}try{let e=n;const r=5;const o=[];let i=0;let s=0;const c=" > ";const u=c.length;let a;const f=Array.isArray(t)?t:t.keyAttrs;const l=!Array.isArray(t)&&t.maxStringLength||R;while(e&&i++<r){a=F(e,f);if(a==="html"||i>1&&s+o.length*u+a.length>=l){break}o.push(a);s+=a.length;e=e.parentNode}return o.reverse().join(c)}catch(n){return"<unknown>"}}function F(n,t){const e=n;const r=[];if(!e||!e.tagName){return""}if(D.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const o=t&&t.length?t.filter((n=>e.getAttribute(n))).map((n=>[n,e.getAttribute(n)])):null;if(o&&o.length){o.forEach((n=>{r.push(`[${n[0]}="${n[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const n=e.className;if(n&&l(n)){const t=n.split(/\s+/);for(const n of t){r.push(`.${n}`)}}}const i=["aria-label","type","name","title","alt"];for(const n of i){const t=e.getAttribute(n);if(t){r.push(`[${n}="${t}"]`)}}return r.join("")}function A(){try{return D.document.location.href}catch(n){return""}}function B(n){if(!D.HTMLElement){return null}let t=n;const e=5;for(let n=0;n<e;n++){if(!t){return null}if(t instanceof HTMLElement){if(t.dataset["sentryComponent"]){return t.dataset["sentryComponent"]}if(t.dataset["sentryElement"]){return t.dataset["sentryElement"]}}t=t.parentNode}return null}const P=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const q="Sentry Logger ";const U=["debug","info","warn","error","log","assert","trace"];const z={};function H(n){if(!("console"in L)){return n()}const t=L.console;const e={};const r=Object.keys(z);r.forEach((n=>{const r=z[n];e[n]=t[n];t[n]=r}));try{return n()}finally{r.forEach((n=>{t[n]=e[n]}))}}function Y(){let n=false;const t={enable:()=>{n=true},disable:()=>{n=false},isEnabled:()=>n};if(P){U.forEach((e=>{t[e]=(...t)=>{if(n){H((()=>{L.console[e](`${q}[${e}]:`,...t)}))}}}))}else{U.forEach((n=>{t[n]=()=>undefined}))}return t}const G=Y();const X=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function V(n){return n==="http"||n==="https"}function W(n,t=false){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=n;return`${c}://${u}${t&&o?`:${o}`:""}`+`@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function J(n){const t=X.exec(n);if(!t){H((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));return undefined}const[e,r,o="",i="",s="",c=""]=t.slice(1);let u="";let a=c;const f=a.split("/");if(f.length>1){u=f.slice(0,-1).join("/");a=f.pop()}if(a){const n=a.match(/^\d+/);if(n){a=n[0]}}return K({host:i,pass:o,path:u,projectId:a,port:s,protocol:e,publicKey:r})}function K(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function Z(n){if(!P){return true}const{port:t,projectId:e,protocol:r}=n;const o=["protocol","publicKey","host","projectId"];const i=o.find((t=>{if(!n[t]){G.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(i){return false}if(!e.match(/^\d+$/)){G.error(`Invalid Sentry Dsn: Invalid projectId ${e}`);return false}if(!V(r)){G.error(`Invalid Sentry Dsn: Invalid protocol ${r}`);return false}if(t&&isNaN(parseInt(t,10))){G.error(`Invalid Sentry Dsn: Invalid port ${t}`);return false}return true}function Q(n){const t=typeof n==="string"?J(n):K(n);if(!t||!Z(t)){return undefined}return t}class nn extends Error{constructor(n,t="warn"){super(n);this.message=n;this.name=new.target.prototype.constructor.name;Object.setPrototypeOf(this,new.target.prototype);this.logLevel=t}}function tn(n,t,e){if(!(t in n)){return}const r=n[t];const o=e(r);if(typeof o==="function"){rn(o,r)}n[t]=o}function en(n,t,e){try{Object.defineProperty(n,t,{value:e,writable:true,configurable:true})}catch(e){P&&G.log(`Failed to add non-enumerable property "${t}" to object`,n)}}function rn(n,t){try{const e=t.prototype||{};n.prototype=t.prototype=e;en(n,"__sentry_original__",t)}catch(n){}}function on(n){return n.__sentry_original__}function sn(n){return Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&")}function cn(n){if(s(n)){return{message:n.message,name:n.name,stack:n.stack,...an(n)}}else if(m(n)){const t={type:n.type,target:un(n.target),currentTarget:un(n.currentTarget),...an(n)};if(typeof CustomEvent!=="undefined"&&v(n,CustomEvent)){t.detail=n.detail}return t}else{return n}}function un(n){try{return b(n)?O(n):Object.prototype.toString.call(n)}catch(n){return"<unknown>"}}function an(n){if(typeof n==="object"&&n!==null){const t={};for(const e in n){if(Object.prototype.hasOwnProperty.call(n,e)){t[e]=n[e]}}return t}else{return{}}}function fn(n,t=40){const e=Object.keys(cn(n));e.sort();const r=e[0];if(!r){return"[object has no keys]"}if(r.length>=t){return x(r,t)}for(let n=e.length;n>0;n--){const r=e.slice(0,n).join(", ");if(r.length>t){continue}if(n===e.length){return r}return x(r,t)}return""}function ln(n){const t=new Map;return dn(n,t)}function dn(n,t){if(hn(n)){const e=t.get(n);if(e!==undefined){return e}const r={};t.set(n,r);for(const e of Object.keys(n)){if(typeof n[e]!=="undefined"){r[e]=dn(n[e],t)}}return r}if(Array.isArray(n)){const e=t.get(n);if(e!==undefined){return e}const r=[];t.set(n,r);n.forEach((n=>{r.push(dn(n,t))}));return r}return n}function hn(n){if(!p(n)){return false}try{const t=Object.getPrototypeOf(n).constructor.name;return!t||t==="Object"}catch(n){return true}}const pn=50;const mn="?";const bn=/\(error: (.*)\)/;const gn=/captureMessage|captureException/;function _n(...n){const t=n.sort(((n,t)=>n[0]-t[0])).map((n=>n[1]));return(n,e=0,r=0)=>{const o=[];const i=n.split("\n");for(let n=e;n<i.length;n++){const e=i[n];if(e.length>1024){continue}const s=bn.test(e)?e.replace(bn,"$1"):e;if(s.match(/\S*Error: /)){continue}for(const n of t){const t=n(s);if(t){o.push(t);break}}if(o.length>=pn+r){break}}return vn(o.slice(r))}}function yn(n){if(Array.isArray(n)){return _n(...n)}return n}function vn(n){if(!n.length){return[]}const t=Array.from(n);if(/sentryWrapped/.test(wn(t).function||"")){t.pop()}t.reverse();if(gn.test(wn(t).function||"")){t.pop();if(gn.test(wn(t).function||"")){t.pop()}}return t.slice(0,pn).map((n=>({...n,filename:n.filename||wn(t).filename,function:n.function||mn})))}function wn(n){return n[n.length-1]||{}}const xn="<anonymous>";function kn(n){try{if(!n||typeof n!=="function"){return xn}return n.name||xn}catch(n){return xn}}function En(n){const t=n.exception;if(t){const n=[];try{t.values.forEach((t=>{if(t.stacktrace.frames){n.push(...t.stacktrace.frames)}}));return n}catch(n){return undefined}}return undefined}const Sn={};const Nn={};function $n(n,t){Sn[n]=Sn[n]||[];Sn[n].push(t)}function Cn(n,t){if(!Nn[n]){t();Nn[n]=true}}function Tn(n,t){const e=n&&Sn[n];if(!e){return}for(const r of e){try{r(t)}catch(t){P&&G.error(`Error while triggering instrumentation handler.\nType: ${n}\nName: ${kn(r)}\nError:`,t)}}}function In(n){const t="console";$n(t,n);Cn(t,jn)}function jn(){if(!("console"in L)){return}U.forEach((function(n){if(!(n in L.console)){return}tn(L.console,n,(function(t){z[n]=t;return function(...t){const e={args:t,level:n};Tn("console",e);const r=z[n];r&&r.apply(L.console,t)}}))}))}const Ln=L;function Mn(){if(!("fetch"in Ln)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(n){return false}}function Dn(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Rn(){if(typeof EdgeRuntime==="string"){return true}if(!Mn()){return false}if(Dn(Ln.fetch)){return true}let n=false;const t=Ln.document;if(t&&typeof t.createElement==="function"){try{const e=t.createElement("iframe");e.hidden=true;t.head.appendChild(e);if(e.contentWindow&&e.contentWindow.fetch){n=Dn(e.contentWindow.fetch)}t.head.removeChild(e)}catch(n){P&&G.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}}return n}const On=1e3;function Fn(){return Date.now()/On}function An(){const{performance:n}=L;if(!n||!n.now){return Fn}const t=Date.now()-n.now();const e=n.timeOrigin==undefined?t:n.timeOrigin;return()=>(e+n.now())/On}const Bn=An();(()=>{const{performance:n}=L;if(!n||!n.now){return undefined}const t=3600*1e3;const e=n.now();const r=Date.now();const o=n.timeOrigin?Math.abs(n.timeOrigin+e-r):t;const i=o<t;const s=n.timing&&n.timing.navigationStart;const c=typeof s==="number";const u=c?Math.abs(s+e-r):t;const a=u<t;if(i||a){if(o<=u){return n.timeOrigin}else{return s}}return r})();function Pn(n,t){const e="fetch";$n(e,n);Cn(e,(()=>qn(undefined,t)))}function qn(n,t=false){if(t&&!Rn()){return}tn(L,"fetch",(function(t){return function(...e){const{method:r,url:o}=Hn(e);const i={args:e,fetchData:{method:r,url:o},startTimestamp:Bn()*1e3};if(!n){Tn("fetch",{...i})}const c=(new Error).stack;return t.apply(L,e).then((async t=>{if(n){n(t)}else{Tn("fetch",{...i,endTimestamp:Bn()*1e3,response:t})}return t}),(n=>{Tn("fetch",{...i,endTimestamp:Bn()*1e3,error:n});if(s(n)&&n.stack===undefined){n.stack=c;en(n,"framesToPop",1)}throw n}))}}))}function Un(n,t){return!!n&&typeof n==="object"&&!!n[t]}function zn(n){if(typeof n==="string"){return n}if(!n){return""}if(Un(n,"url")){return n.url}if(n.toString){return n.toString()}return""}function Hn(n){if(n.length===0){return{method:"GET",url:""}}if(n.length===2){const[t,e]=n;return{url:zn(t),method:Un(e,"method")?String(e.method).toUpperCase():"GET"}}const t=n[0];return{url:zn(t),method:Un(t,"method")?String(t.method).toUpperCase():"GET"}}let Yn=null;function Gn(n){const t="error";$n(t,n);Cn(t,Xn)}function Xn(){Yn=L.onerror;L.onerror=function(n,t,e,r,o){const i={column:r,error:o,line:e,msg:n,url:t};Tn("error",i);if(Yn&&!Yn.__SENTRY_LOADER__){return Yn.apply(this,arguments)}return false};L.onerror.__SENTRY_INSTRUMENTED__=true}let Vn=null;function Wn(n){const t="unhandledrejection";$n(t,n);Cn(t,Jn)}function Jn(){Vn=L.onunhandledrejection;L.onunhandledrejection=function(n){const t=n;Tn("unhandledrejection",t);if(Vn&&!Vn.__SENTRY_LOADER__){return Vn.apply(this,arguments)}return true};L.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}function Kn(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Zn(){return"npm"}function Qn(){return!Kn()&&Object.prototype.toString.call(typeof n!=="undefined"?n:0)==="[object process]"}function nt(){return typeof window!=="undefined"&&(!Qn()||tt())}function tt(){return L.process!==undefined&&L.process.type==="renderer"}function et(){const n=typeof WeakSet==="function";const t=n?new WeakSet:[];function e(e){if(n){if(t.has(e)){return true}t.add(e);return false}for(let n=0;n<t.length;n++){const r=t[n];if(r===e){return true}}t.push(e);return false}function r(e){if(n){t.delete(e)}else{for(let n=0;n<t.length;n++){if(t[n]===e){t.splice(n,1);break}}}}return[e,r]}function rt(){const n=L;const t=n.crypto||n.msCrypto;let e=()=>Math.random()*16;try{if(t&&t.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t&&t.getRandomValues){e=()=>{const n=new Uint8Array(1);t.getRandomValues(n);return n[0]}}}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(n=>(n^(e()&15)>>n/4).toString(16)))}function ot(n){return n.exception&&n.exception.values?n.exception.values[0]:undefined}function it(n){const{message:t,event_id:e}=n;if(t){return t}const r=ot(n);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function st(n,t,e){const r=n.exception=n.exception||{};const o=r.values=r.values||[];const i=o[0]=o[0]||{};if(!i.value){i.value=t||""}if(!i.type){i.type=e||"Error"}}function ct(n,t){const e=ot(n);if(!e){return}const r={type:"generic",handled:true};const o=e.mechanism;e.mechanism={...r,...o,...t};if(t&&"data"in t){const n={...o&&o.data,...t.data};e.mechanism.data=n}}function ut(n){if(n&&n.__sentry_captured__){return true}try{en(n,"__sentry_captured__",true)}catch(n){}return false}function at(n){return Array.isArray(n)?n:[n]}function ft(n,t=100,e=+Infinity){try{return dt("",n,t,e)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function lt(n,t=3,e=100*1024){const r=ft(n,t);if(bt(r)>e){return lt(n,t-1,e)}return r}function dt(n,t,e=+Infinity,r=+Infinity,o=et()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t)){return t}const c=ht(n,t);if(!c.startsWith("[object ")){return c}if(t["__sentry_skip_normalization__"]){return t}const u=typeof t["__sentry_override_normalization_depth__"]==="number"?t["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(i(t)){return"[Circular ~]"}const a=t;if(a&&typeof a.toJSON==="function"){try{const n=a.toJSON();return dt("",n,u-1,r,o)}catch(n){}}const f=Array.isArray(t)?[]:{};let l=0;const d=cn(t);for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n)){continue}if(l>=r){f[n]="[MaxProperties ~]";break}const t=d[n];f[n]=dt(n,t,u-1,r,o);l++}s(t);return f}function ht(n,e){try{if(n==="domain"&&e&&typeof e==="object"&&e._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof t!=="undefined"&&e===t){return"[Global]"}if(typeof window!=="undefined"&&e===window){return"[Window]"}if(typeof document!=="undefined"&&e===document){return"[Document]"}if(w(e)){return"[VueViewModel]"}if(y(e)){return"[SyntheticEvent]"}if(typeof e==="number"&&e!==e){return"[NaN]"}if(typeof e==="function"){return`[Function: ${kn(e)}]`}if(typeof e==="symbol"){return`[${String(e)}]`}if(typeof e==="bigint"){return`[BigInt: ${String(e)}]`}const r=pt(e);if(/^HTML(\w*)Element$/.test(r)){return`[HTMLElement: ${r}]`}return`[object ${r}]`}catch(n){return`**non-serializable** (${n})`}}function pt(n){const t=Object.getPrototypeOf(n);return t?t.constructor.name:"null prototype"}function mt(n){return~-encodeURI(n).split(/%..|./).length}function bt(n){return mt(JSON.stringify(n))}var gt;(function(n){const t=0;n[n["PENDING"]=t]="PENDING";const e=1;n[n["RESOLVED"]=e]="RESOLVED";const r=2;n[n["REJECTED"]=r]="REJECTED"})(gt||(gt={}));function _t(n){return new vt((t=>{t(n)}))}function yt(n){return new vt(((t,e)=>{e(n)}))}class vt{constructor(n){vt.prototype.__init.call(this);vt.prototype.__init2.call(this);vt.prototype.__init3.call(this);vt.prototype.__init4.call(this);this._state=gt.PENDING;this._handlers=[];try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}then(n,t){return new vt(((e,r)=>{this._handlers.push([false,t=>{if(!n){e(t)}else{try{e(n(t))}catch(n){r(n)}}},n=>{if(!t){r(n)}else{try{e(t(n))}catch(n){r(n)}}}]);this._executeHandlers()}))}catch(n){return this.then((n=>n),n)}finally(n){return new vt(((t,e)=>{let r;let o;return this.then((t=>{o=false;r=t;if(n){n()}}),(t=>{o=true;r=t;if(n){n()}})).then((()=>{if(o){e(r);return}t(r)}))}))}__init(){this._resolve=n=>{this._setResult(gt.RESOLVED,n)}}__init2(){this._reject=n=>{this._setResult(gt.REJECTED,n)}}__init3(){this._setResult=(n,t)=>{if(this._state!==gt.PENDING){return}if(_(t)){void t.then(this._resolve,this._reject);return}this._state=n;this._value=t;this._executeHandlers()}}__init4(){this._executeHandlers=()=>{if(this._state===gt.PENDING){return}const n=this._handlers.slice();this._handlers=[];n.forEach((n=>{if(n[0]){return}if(this._state===gt.RESOLVED){n[1](this._value)}if(this._state===gt.REJECTED){n[2](this._value)}n[0]=true}))}}}function wt(n){const t=[];function e(){return n===undefined||t.length<n}function r(n){return t.splice(t.indexOf(n),1)[0]||Promise.resolve(undefined)}function o(n){if(!e()){return yt(new nn("Not adding Promise because buffer limit was reached."))}const o=n();if(t.indexOf(o)===-1){t.push(o)}void o.then((()=>r(o))).then(null,(()=>r(o).then(null,(()=>{}))));return o}function i(n){return new vt(((e,r)=>{let o=t.length;if(!o){return e(true)}const i=setTimeout((()=>{if(n&&n>0){e(false)}}),n);t.forEach((n=>{void _t(n).then((()=>{if(! --o){clearTimeout(i);e(true)}}),r)}))}))}return{$:t,add:o,drain:i}}function xt(n){if(!n){return{}}const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}const e=t[6]||"";const r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:e,hash:r,relative:t[5]+e+r}}const kt=["fatal","error","warning","log","info","debug"];function Et(n){return n==="warn"?"warning":kt.includes(n)?n:"log"}const St="sentry-";const Nt=/^sentry-/;function $t(n){const t=Ct(n);if(!t){return undefined}const e=Object.entries(t).reduce(((n,[t,e])=>{if(t.match(Nt)){const r=t.slice(St.length);n[r]=e}return n}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function Ct(n){if(!n||!l(n)&&!Array.isArray(n)){return undefined}if(Array.isArray(n)){return n.reduce(((n,t)=>{const e=Tt(t);Object.entries(e).forEach((([t,e])=>{n[t]=e}));return n}),{})}return Tt(n)}function Tt(n){return n.split(",").map((n=>n.split("=").map((n=>decodeURIComponent(n.trim()))))).reduce(((n,[t,e])=>{if(t&&e){n[t]=e}return n}),{})}function It(n,t=[]){return[n,t]}function jt(n,t){const[e,r]=n;return[e,[...r,t]]}function Lt(n,t){const e=n[1];for(const n of e){const e=n[0].type;const r=t(n,e);if(r){return true}}return false}function Mt(n){return L.__SENTRY__&&L.__SENTRY__.encodePolyfill?L.__SENTRY__.encodePolyfill(n):(new TextEncoder).encode(n)}function Dt(n){const[t,e]=n;let r=JSON.stringify(t);function o(n){if(typeof r==="string"){r=typeof n==="string"?r+n:[Mt(r),n]}else{r.push(typeof n==="string"?Mt(n):n)}}for(const n of e){const[t,e]=n;o(`\n${JSON.stringify(t)}\n`);if(typeof e==="string"||e instanceof Uint8Array){o(e)}else{let n;try{n=JSON.stringify(e)}catch(t){n=JSON.stringify(ft(e))}o(n)}}return typeof r==="string"?r:Rt(r)}function Rt(n){const t=n.reduce(((n,t)=>n+t.length),0);const e=new Uint8Array(t);let r=0;for(const t of n){e.set(t,r);r+=t.length}return e}function Ot(n){const t=typeof n.data==="string"?Mt(n.data):n.data;return[ln({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const Ft={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function At(n){return Ft[n]}function Bt(n){if(!n||!n.sdk){return}const{name:t,version:e}=n.sdk;return{name:t,version:e}}function Pt(n,t,e,r){const o=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!e&&r&&{dsn:W(r)},...o&&{trace:ln({...o})}}}function qt(n,t,e){const r=[{type:"client_report"},{timestamp:e||Fn(),discarded_events:n}];return It(t?{dsn:t}:{},[r])}const Ut=60*1e3;function zt(n,t=Date.now()){const e=parseInt(`${n}`,10);if(!isNaN(e)){return e*1e3}const r=Date.parse(`${n}`);if(!isNaN(r)){return r-t}return Ut}function Ht(n,t){return n[t]||n.all||0}function Yt(n,t,e=Date.now()){return Ht(n,t)>e}function Gt(n,{statusCode:t,headers:e},r=Date.now()){const o={...n};const i=e&&e["x-sentry-rate-limits"];const s=e&&e["retry-after"];if(i){for(const n of i.trim().split(",")){const[t,e,,,i]=n.split(":",5);const s=parseInt(t,10);const c=(!isNaN(s)?s:60)*1e3;if(!e){o.all=r+c}else{for(const n of e.split(";")){if(n==="metric_bucket"){if(!i||i.split(";").includes("custom")){o[n]=r+c}}else{o[n]=r+c}}}}}else if(s){o.all=r+zt(s,r)}else if(t===429){o.all=r+60*1e3}return o}function Xt(){return{traceId:rt(),spanId:rt().substring(16)}}const Vt=L;function Wt(){const n=Vt.chrome;const t=n&&n.app&&n.app.runtime;const e="history"in Vt&&!!Vt.history.pushState&&!!Vt.history.replaceState;return!t&&e}const Jt=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Kt(){Zt(L);return L}function Zt(n){const t=n.__SENTRY__=n.__SENTRY__||{};t.version=t.version||j;return t[j]=t[j]||{}}function Qt(n){const t=Bn();const e={sid:rt(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>ee(e)};if(n){ne(e,n)}return e}function ne(n,t={}){if(t.user){if(!n.ipAddress&&t.user.ip_address){n.ipAddress=t.user.ip_address}if(!n.did&&!t.did){n.did=t.user.id||t.user.email||t.user.username}}n.timestamp=t.timestamp||Bn();if(t.abnormal_mechanism){n.abnormal_mechanism=t.abnormal_mechanism}if(t.ignoreDuration){n.ignoreDuration=t.ignoreDuration}if(t.sid){n.sid=t.sid.length===32?t.sid:rt()}if(t.init!==undefined){n.init=t.init}if(!n.did&&t.did){n.did=`${t.did}`}if(typeof t.started==="number"){n.started=t.started}if(n.ignoreDuration){n.duration=undefined}else if(typeof t.duration==="number"){n.duration=t.duration}else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}if(t.release){n.release=t.release}if(t.environment){n.environment=t.environment}if(!n.ipAddress&&t.ipAddress){n.ipAddress=t.ipAddress}if(!n.userAgent&&t.userAgent){n.userAgent=t.userAgent}if(typeof t.errors==="number"){n.errors=t.errors}if(t.status){n.status=t.status}}function te(n,t){let e={};if(t){e={status:t}}else if(n.status==="ok"){e={status:"exited"}}ne(n,e)}function ee(n){return ln({sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did==="number"||typeof n.did==="string"?`${n.did}`:undefined,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}const re="_sentrySpan";function oe(n,t){if(t){en(n,re,t)}else{delete n[re]}}function ie(n){return n[re]}const se=100;class ce{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext=Xt()}clone(){const n=new ce;n._breadcrumbs=[...this._breadcrumbs];n._tags={...this._tags};n._extra={...this._extra};n._contexts={...this._contexts};n._user=this._user;n._level=this._level;n._session=this._session;n._transactionName=this._transactionName;n._fingerprint=this._fingerprint;n._eventProcessors=[...this._eventProcessors];n._requestSession=this._requestSession;n._attachments=[...this._attachments];n._sdkProcessingMetadata={...this._sdkProcessingMetadata};n._propagationContext={...this._propagationContext};n._client=this._client;n._lastEventId=this._lastEventId;oe(n,ie(this));return n}setClient(n){this._client=n}setLastEventId(n){this._lastEventId=n}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(n){this._scopeListeners.push(n)}addEventProcessor(n){this._eventProcessors.push(n);return this}setUser(n){this._user=n||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){ne(this._session,{user:n})}this._notifyScopeListeners();return this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(n){this._requestSession=n;return this}setTags(n){this._tags={...this._tags,...n};this._notifyScopeListeners();return this}setTag(n,t){this._tags={...this._tags,[n]:t};this._notifyScopeListeners();return this}setExtras(n){this._extra={...this._extra,...n};this._notifyScopeListeners();return this}setExtra(n,t){this._extra={...this._extra,[n]:t};this._notifyScopeListeners();return this}setFingerprint(n){this._fingerprint=n;this._notifyScopeListeners();return this}setLevel(n){this._level=n;this._notifyScopeListeners();return this}setTransactionName(n){this._transactionName=n;this._notifyScopeListeners();return this}setContext(n,t){if(t===null){delete this._contexts[n]}else{this._contexts[n]=t}this._notifyScopeListeners();return this}setSession(n){if(!n){delete this._session}else{this._session=n}this._notifyScopeListeners();return this}getSession(){return this._session}update(n){if(!n){return this}const t=typeof n==="function"?n(this):n;const[e,r]=t instanceof ue?[t.getScopeData(),t.getRequestSession()]:p(t)?[n,n.requestSession]:[];const{tags:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f}=e||{};this._tags={...this._tags,...o};this._extra={...this._extra,...i};this._contexts={...this._contexts,...c};if(s&&Object.keys(s).length){this._user=s}if(u){this._level=u}if(a.length){this._fingerprint=a}if(f){this._propagationContext=f}if(r){this._requestSession=r}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._requestSession=undefined;this._session=undefined;oe(this,undefined);this._attachments=[];this._propagationContext=Xt();this._notifyScopeListeners();return this}addBreadcrumb(n,t){const e=typeof t==="number"?t:se;if(e<=0){return this}const r={timestamp:Fn(),...n};const o=this._breadcrumbs;o.push(r);this._breadcrumbs=o.length>e?o.slice(-e):o;this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(n){this._attachments.push(n);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ie(this)}}setSDKProcessingMetadata(n){this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...n};return this}setPropagationContext(n){this._propagationContext=n;return this}getPropagationContext(){return this._propagationContext}captureException(n,t){const e=t&&t.event_id?t.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture exception!");return e}const r=new Error("Sentry syntheticException");this._client.captureException(n,{originalException:n,syntheticException:r,...t,event_id:e},this);return e}captureMessage(n,t,e){const r=e&&e.event_id?e.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture message!");return r}const o=new Error(n);this._client.captureMessage(n,t,{originalException:n,syntheticException:o,...e,event_id:r},this);return r}captureEvent(n,t){const e=t&&t.event_id?t.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture event!");return e}this._client.captureEvent(n,{...t,event_id:e},this);return e}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((n=>{n(this)}));this._notifyingListeners=false}}}const ue=ce;function ae(){return M("defaultCurrentScope",(()=>new ue))}function fe(){return M("defaultIsolationScope",(()=>new ue))}class le{constructor(n,t){let e;if(!n){e=new ue}else{e=n}let r;if(!t){r=new ue}else{r=t}this._stack=[{scope:e}];this._isolationScope=r}withScope(n){const t=this._pushScope();let e;try{e=n(t)}catch(n){this._popScope();throw n}if(_(e)){return e.then((n=>{this._popScope();return n}),(n=>{this._popScope();throw n}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const n=this.getScope().clone();this._stack.push({client:this.getClient(),scope:n});return n}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function de(){const n=Kt();const t=Zt(n);return t.stack=t.stack||new le(ae(),fe())}function he(n){return de().withScope(n)}function pe(n,t){const e=de();return e.withScope((()=>{e.getStackTop().scope=n;return t(n)}))}function me(n){return de().withScope((()=>n(de().getIsolationScope())))}function be(){return{withIsolationScope:me,withScope:he,withSetScope:pe,withSetIsolationScope:(n,t)=>me(t),getCurrentScope:()=>de().getScope(),getIsolationScope:()=>de().getIsolationScope()}}function ge(n){const t=Zt(n);if(t.acs){return t.acs}return be()}function _e(){const n=Kt();const t=ge(n);return t.getCurrentScope()}function ye(){const n=Kt();const t=ge(n);return t.getIsolationScope()}function ve(){return M("globalScope",(()=>new ue))}function we(...n){const t=Kt();const e=ge(t);if(n.length===2){const[t,r]=n;if(!t){return e.withScope(r)}return e.withSetScope(t,r)}return e.withScope(n[0])}function xe(){return _e().getClient()}const ke="_sentryMetrics";function Ee(n){const t=n[ke];if(!t){return undefined}const e={};for(const[,[n,r]]of t){const t=e[n]||(e[n]=[]);t.push(ln(r))}return e}const Se="sentry.source";const Ne="sentry.sample_rate";const $e="sentry.op";const Ce="sentry.origin";const Te=0;const Ie=1;const je=1;function Le(n){const{spanId:t,traceId:e}=n.spanContext();const{parent_span_id:r}=Re(n);return ln({parent_span_id:r,span_id:t,trace_id:e})}function Me(n){if(typeof n==="number"){return De(n)}if(Array.isArray(n)){return n[0]+n[1]/1e9}if(n instanceof Date){return De(n.getTime())}return Bn()}function De(n){const t=n>9999999999;return t?n/1e3:n}function Re(n){if(Fe(n)){return n.getSpanJSON()}try{const{spanId:t,traceId:e}=n.spanContext();if(Oe(n)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u}=n;return ln({span_id:t,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:Me(o),timestamp:Me(s)||undefined,status:Be(u),op:r[$e],origin:r[Ce],_metrics_summary:Ee(n)})}return{span_id:t,trace_id:e}}catch(n){return{}}}function Oe(n){const t=n;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Fe(n){return typeof n.getSpanJSON==="function"}function Ae(n){const{traceFlags:t}=n.spanContext();return t===je}function Be(n){if(!n||n.code===Te){return undefined}if(n.code===Ie){return"ok"}return n.message||"unknown_error"}const Pe="_sentryRootSpan";function qe(n){return n[Pe]||n}const Ue="production";const ze="_frozenDsc";function He(n,t){const e=t.getOptions();const{publicKey:r}=t.getDsn()||{};const o=ln({environment:e.environment||Ue,release:e.release,public_key:r,trace_id:n});t.emit("createDsc",o);return o}function Ye(n){const t=xe();if(!t){return{}}const e=He(Re(n).trace_id||"",t);const r=qe(n);const o=r[ze];if(o){return o}const i=r.spanContext().traceState;const s=i&&i.get("sentry.dsc");const c=s&&$t(s);if(c){return c}const u=Re(r);const a=u.data||{};const f=a[Ne];if(f!=null){e.sample_rate=`${f}`}const l=a[Se];const d=u.description;if(l!=="url"&&d){e.transaction=d}e.sampled=String(Ae(r));t.emit("createDsc",e,r);return e}function Ge(n){if(typeof n==="boolean"){return Number(n)}const t=typeof n==="string"?parseFloat(n):n;if(typeof t!=="number"||isNaN(t)||t<0||t>1){Jt&&G.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`);return undefined}return t}function Xe(n,t){if(!t){return n}n.sdk=n.sdk||{};n.sdk.name=n.sdk.name||t.name;n.sdk.version=n.sdk.version||t.version;n.sdk.integrations=[...n.sdk.integrations||[],...t.integrations||[]];n.sdk.packages=[...n.sdk.packages||[],...t.packages||[]];return n}function Ve(n,t,e,r){const o=Bt(e);const i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:W(t)}};const s="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return It(i,[s])}function We(n,t,e,r){const o=Bt(e);const i=n.type&&n.type!=="replay_event"?n.type:"event";Xe(n,e&&e.sdk);const s=Pt(n,o,r,t);delete n.sdkProcessingMetadata;const c=[{type:i},n];return It(s,[c])}function Je(n,t,e,r=0){return new vt(((o,i)=>{const s=n[r];if(t===null||typeof s!=="function"){o(t)}else{const c=s({...t},e);Jt&&s.id&&c===null&&G.log(`Event processor "${s.id}" dropped event`);if(_(c)){void c.then((t=>Je(n,t,e,r+1).then(o))).then(null,i)}else{void Je(n,c,e,r+1).then(o).then(null,i)}}}))}function Ke(n,t){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;nr(n,t);if(r){rr(n,r)}or(n,e);tr(n,o);er(n,i)}function Ze(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=t;Qe(n,"extra",e);Qe(n,"tags",r);Qe(n,"user",o);Qe(n,"contexts",i);Qe(n,"sdkProcessingMetadata",c);if(s){n.level=s}if(h){n.transactionName=h}if(p){n.span=p}if(u.length){n.breadcrumbs=[...n.breadcrumbs,...u]}if(a.length){n.fingerprint=[...n.fingerprint,...a]}if(f.length){n.eventProcessors=[...n.eventProcessors,...f]}if(l.length){n.attachments=[...n.attachments,...l]}n.propagationContext={...n.propagationContext,...d}}function Qe(n,t,e){if(e&&Object.keys(e).length){n[t]={...n[t]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){n[t][r]=e[r]}}}}function nr(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=t;const u=ln(e);if(u&&Object.keys(u).length){n.extra={...u,...n.extra}}const a=ln(r);if(a&&Object.keys(a).length){n.tags={...a,...n.tags}}const f=ln(o);if(f&&Object.keys(f).length){n.user={...f,...n.user}}const l=ln(i);if(l&&Object.keys(l).length){n.contexts={...l,...n.contexts}}if(s){n.level=s}if(c&&n.type!=="transaction"){n.transaction=c}}function tr(n,t){const e=[...n.breadcrumbs||[],...t];n.breadcrumbs=e.length?e:undefined}function er(n,t){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...t}}function rr(n,t){n.contexts={trace:Le(t),...n.contexts};n.sdkProcessingMetadata={dynamicSamplingContext:Ye(t),...n.sdkProcessingMetadata};const e=qe(t);const r=Re(e).description;if(r&&!n.transaction&&n.type==="transaction"){n.transaction=r}}function or(n,t){n.fingerprint=n.fingerprint?at(n.fingerprint):[];if(t){n.fingerprint=n.fingerprint.concat(t)}if(n.fingerprint&&!n.fingerprint.length){delete n.fingerprint}}function ir(n,t,e,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=n;const u={...t,event_id:t.event_id||e.event_id||rt(),timestamp:t.timestamp||Fn()};const a=e.integrations||n.integrations.map((n=>n.name));sr(u,n);fr(u,a);if(o){o.emit("applyFrameMetadata",t)}if(t.type===undefined){ur(u,n.stackParser)}const f=dr(r,e.captureContext);if(e.mechanism){ct(u,e.mechanism)}const l=o?o.getEventProcessors():[];const d=ve().getScopeData();if(i){const n=i.getScopeData();Ze(d,n)}if(f){const n=f.getScopeData();Ze(d,n)}const h=[...e.attachments||[],...d.attachments];if(h.length){e.attachments=h}Ke(u,d);const p=[...l,...d.eventProcessors];const m=Je(p,u,e);return m.then((n=>{if(n){ar(n)}if(typeof s==="number"&&s>0){return lr(n,s,c)}return n}))}function sr(n,t){const{environment:e,release:r,dist:o,maxValueLength:i=250}=t;if(!("environment"in n)){n.environment="environment"in t?e:Ue}if(n.release===undefined&&r!==undefined){n.release=r}if(n.dist===undefined&&o!==undefined){n.dist=o}if(n.message){n.message=x(n.message,i)}const s=n.exception&&n.exception.values&&n.exception.values[0];if(s&&s.value){s.value=x(s.value,i)}const c=n.request;if(c&&c.url){c.url=x(c.url,i)}}const cr=new WeakMap;function ur(n,t){const e=L._sentryDebugIds;if(!e){return}let r;const o=cr.get(t);if(o){r=o}else{r=new Map;cr.set(t,r)}const i=Object.entries(e).reduce(((n,[e,o])=>{let i;const s=r.get(e);if(s){i=s}else{i=t(e);r.set(e,i)}for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.filename){n[e.filename]=o;break}}return n}),{});try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.filename){n.debug_id=i[n.filename]}}))}))}catch(n){}}function ar(n){const t={};try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.debug_id){if(n.abs_path){t[n.abs_path]=n.debug_id}else if(n.filename){t[n.filename]=n.debug_id}delete n.debug_id}}))}))}catch(n){}if(Object.keys(t).length===0){return}n.debug_meta=n.debug_meta||{};n.debug_meta.images=n.debug_meta.images||[];const e=n.debug_meta.images;Object.entries(t).forEach((([n,t])=>{e.push({type:"sourcemap",code_file:n,debug_id:t})}))}function fr(n,t){if(t.length>0){n.sdk=n.sdk||{};n.sdk.integrations=[...n.sdk.integrations||[],...t]}}function lr(n,t,e){if(!n){return null}const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map((n=>({...n,...n.data&&{data:ft(n.data,t,e)}})))},...n.user&&{user:ft(n.user,t,e)},...n.contexts&&{contexts:ft(n.contexts,t,e)},...n.extra&&{extra:ft(n.extra,t,e)}};if(n.contexts&&n.contexts.trace&&r.contexts){r.contexts.trace=n.contexts.trace;if(n.contexts.trace.data){r.contexts.trace.data=ft(n.contexts.trace.data,t,e)}}if(n.spans){r.spans=n.spans.map((n=>({...n,...n.data&&{data:ft(n.data,t,e)}})))}return r}function dr(n,t){if(!t){return n}const e=n?n.clone():new ue;e.update(t);return e}function hr(n){if(!n){return undefined}if(pr(n)){return{captureContext:n}}if(br(n)){return{captureContext:n}}return n}function pr(n){return n instanceof ue||typeof n==="function"}const mr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function br(n){return Object.keys(n).some((n=>mr.includes(n)))}function gr(n,t){return _e().captureException(n,hr(t))}function _r(n,t){const e=typeof t==="string"?t:undefined;const r=typeof t!=="string"?{captureContext:t}:undefined;return _e().captureMessage(n,e,r)}function yr(n,t){return _e().captureEvent(n,t)}function vr(){return!!xe()}function wr(n){const t=xe();const e=ye();const r=_e();const{release:o,environment:i=Ue}=t&&t.getOptions()||{};const{userAgent:s}=L.navigator||{};const c=Qt({release:o,environment:i,user:r.getUser()||e.getUser(),...s&&{userAgent:s},...n});const u=e.getSession();if(u&&u.status==="ok"){ne(u,{status:"exited"})}xr();e.setSession(c);r.setSession(c);return c}function xr(){const n=ye();const t=_e();const e=t.getSession()||n.getSession();if(e){te(e)}kr();n.setSession();t.setSession()}function kr(){const n=ye();const t=_e();const e=xe();const r=t.getSession()||n.getSession();if(r&&e){e.captureSession(r)}}function Er(n=false){if(n){xr();return}kr()}const Sr="7";function Nr(n){const t=n.protocol?`${n.protocol}:`:"";const e=n.port?`:${n.port}`:"";return`${t}//${n.host}${e}${n.path?`/${n.path}`:""}/api/`}function $r(n){return`${Nr(n)}${n.projectId}/envelope/`}function Cr(n,t){return sn({sentry_key:n.publicKey,sentry_version:Sr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Tr(n,t,e){return t?t:`${$r(n)}?${Cr(n,e)}`}const Ir=[];function jr(n){const t={};n.forEach((n=>{const{name:e}=n;const r=t[e];if(r&&!r.isDefaultInstance&&n.isDefaultInstance){return}t[e]=n}));return Object.values(t)}function Lr(n){const t=n.defaultIntegrations||[];const e=n.integrations;t.forEach((n=>{n.isDefaultInstance=true}));let r;if(Array.isArray(e)){r=[...t,...e]}else if(typeof e==="function"){r=at(e(t))}else{r=t}const o=jr(r);const i=o.findIndex((n=>n.name==="Debug"));if(i>-1){const[n]=o.splice(i,1);o.push(n)}return o}function Mr(n,t){const e={};t.forEach((t=>{if(t){Rr(n,t,e)}}));return e}function Dr(n,t){for(const e of t){if(e&&e.afterAllSetup){e.afterAllSetup(n)}}}function Rr(n,t,e){if(e[t.name]){Jt&&G.log(`Integration skipped because it was already installed: ${t.name}`);return}e[t.name]=t;if(Ir.indexOf(t.name)===-1&&typeof t.setupOnce==="function"){t.setupOnce();Ir.push(t.name)}if(t.setup&&typeof t.setup==="function"){t.setup(n)}if(typeof t.preprocessEvent==="function"){const e=t.preprocessEvent.bind(t);n.on("preprocessEvent",((t,r)=>e(t,r,n)))}if(typeof t.processEvent==="function"){const e=t.processEvent.bind(t);const r=Object.assign(((t,r)=>e(t,r,n)),{id:t.name});n.addEventProcessor(r)}Jt&&G.log(`Integration installed: ${t.name}`)}function Or(n){return n}const Fr="Not capturing exception because it's already been captured.";class Ar{constructor(n){this._options=n;this._integrations={};this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(n.dsn){this._dsn=Q(n.dsn)}else{Jt&&G.warn("No DSN provided, client will not send events.")}if(this._dsn){const t=Tr(this._dsn,n.tunnel,n._metadata?n._metadata.sdk:undefined);this._transport=n.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...n.transportOptions,url:t})}}captureException(n,t,e){const r=rt();if(ut(n)){Jt&&G.log(Fr);return r}const o={event_id:r,...t};this._process(this.eventFromException(n,o).then((n=>this._captureEvent(n,o,e))));return o.event_id}captureMessage(n,t,e,r){const o={event_id:rt(),...e};const i=d(n)?n:String(n);const s=h(n)?this.eventFromMessage(i,t,o):this.eventFromException(n,o);this._process(s.then((n=>this._captureEvent(n,o,r))));return o.event_id}captureEvent(n,t,e){const r=rt();if(t&&t.originalException&&ut(t.originalException)){Jt&&G.log(Fr);return r}const o={event_id:r,...t};const i=n.sdkProcessingMetadata||{};const s=i.capturedSpanScope;this._process(this._captureEvent(n,o,s||e));return o.event_id}captureSession(n){if(!(typeof n.release==="string")){Jt&&G.warn("Discarded session because of missing or non-string release")}else{this.sendSession(n);ne(n,{init:false})}}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(n){const t=this._transport;if(t){this.emit("flush");return this._isClientDoneProcessing(n).then((e=>t.flush(n).then((n=>e&&n))))}else{return _t(true)}}close(n){return this.flush(n).then((n=>{this.getOptions().enabled=false;this.emit("close");return n}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(n){this._eventProcessors.push(n)}init(){if(this._isEnabled()||this._options.integrations.some((({name:n})=>n.startsWith("Spotlight")))){this._setupIntegrations()}}getIntegrationByName(n){return this._integrations[n]}addIntegration(n){const t=this._integrations[n.name];Rr(this,n,this._integrations);if(!t){Dr(this,[n])}}sendEvent(n,t={}){this.emit("beforeSendEvent",n,t);let e=We(n,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[]){e=jt(e,Ot(n))}const r=this.sendEnvelope(e);if(r){r.then((t=>this.emit("afterSendEvent",n,t)),null)}}sendSession(n){const t=Ve(n,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(n,t,e){if(this._options.sendClientReports){const r=typeof e==="number"?e:1;const o=`${n}:${t}`;Jt&&G.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`);this._outcomes[o]=(this._outcomes[o]||0)+r}}on(n,t){const e=this._hooks[n]=this._hooks[n]||[];e.push(t);return()=>{const n=e.indexOf(t);if(n>-1){e.splice(n,1)}}}emit(n,...t){const e=this._hooks[n];if(e){e.forEach((n=>n(...t)))}}sendEnvelope(n){this.emit("beforeEnvelope",n);if(this._isEnabled()&&this._transport){return this._transport.send(n).then(null,(n=>{Jt&&G.error("Error while sending event:",n);return n}))}Jt&&G.error("Transport disabled");return _t({})}_setupIntegrations(){const{integrations:n}=this._options;this._integrations=Mr(this,n);Dr(this,n)}_updateSessionFromEvent(n,t){let e=false;let r=false;const o=t.exception&&t.exception.values;if(o){r=true;for(const n of o){const t=n.mechanism;if(t&&t.handled===false){e=true;break}}}const i=n.status==="ok";const s=i&&n.errors===0||i&&e;if(s){ne(n,{...e&&{status:"crashed"},errors:n.errors||Number(r||e)});this.captureSession(n)}}_isClientDoneProcessing(n){return new vt((t=>{let e=0;const r=1;const o=setInterval((()=>{if(this._numProcessing==0){clearInterval(o);t(true)}else{e+=r;if(n&&e>=n){clearInterval(o);t(false)}}}),r)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==undefined}_prepareEvent(n,t,e,r=ye()){const o=this.getOptions();const i=Object.keys(this._integrations);if(!t.integrations&&i.length>0){t.integrations=i}this.emit("preprocessEvent",n,t);if(!n.type){r.setLastEventId(n.event_id||t.event_id)}return ir(o,n,t,e,this,r).then((n=>{if(n===null){return n}const t={...r.getPropagationContext(),...e?e.getPropagationContext():undefined};const o=n.contexts&&n.contexts.trace;if(!o&&t){const{traceId:e,spanId:r,parentSpanId:o,dsc:i}=t;n.contexts={trace:ln({trace_id:e,span_id:r,parent_span_id:o}),...n.contexts};const s=i?i:He(e,this);n.sdkProcessingMetadata={dynamicSamplingContext:s,...n.sdkProcessingMetadata}}return n}))}_captureEvent(n,t={},e){return this._processEvent(n,t,e).then((n=>n.event_id),(n=>{if(Jt){const t=n;if(t.logLevel==="log"){G.log(t.message)}else{G.warn(t)}}return undefined}))}_processEvent(n,t,e){const r=this.getOptions();const{sampleRate:o}=r;const i=Ur(n);const s=qr(n);const c=n.type||"error";const u=`before send for type \`${c}\``;const a=typeof o==="undefined"?undefined:Ge(o);if(s&&typeof a==="number"&&Math.random()>a){this.recordDroppedEvent("sample_rate","error",n);return yt(new nn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))}const f=c==="replay_event"?"replay":c;const l=n.sdkProcessingMetadata||{};const d=l.capturedSpanIsolationScope;return this._prepareEvent(n,t,e,d).then((e=>{if(e===null){this.recordDroppedEvent("event_processor",f,n);throw new nn("An event processor returned `null`, will not send event.","log")}const o=t.data&&t.data.__sentry__===true;if(o){return e}const i=Pr(this,r,e,t);return Br(i,u)})).then((r=>{if(r===null){this.recordDroppedEvent("before_send",f,n);if(i){const t=n.spans||[];const e=1+t.length;this.recordDroppedEvent("before_send","span",e)}throw new nn(`${u} returned \`null\`, will not send event.`,"log")}const o=e&&e.getSession();if(!i&&o){this._updateSessionFromEvent(o,r)}if(i){const n=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0;const t=r.spans?r.spans.length:0;const e=n-t;if(e>0){this.recordDroppedEvent("before_send","span",e)}}const s=r.transaction_info;if(i&&s&&r.transaction!==n.transaction){const n="custom";r.transaction_info={...s,source:n}}this.sendEvent(r,t);return r})).then(null,(n=>{if(n instanceof nn){throw n}this.captureException(n,{data:{__sentry__:true},originalException:n});throw new nn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${n}`)}))}_process(n){this._numProcessing++;void n.then((n=>{this._numProcessing--;return n}),(n=>{this._numProcessing--;return n}))}_clearOutcomes(){const n=this._outcomes;this._outcomes={};return Object.entries(n).map((([n,t])=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t}}))}_flushOutcomes(){Jt&&G.log("Flushing outcomes...");const n=this._clearOutcomes();if(n.length===0){Jt&&G.log("No outcomes to send");return}if(!this._dsn){Jt&&G.log("No dsn provided, will not send outcomes");return}Jt&&G.log("Sending outcomes:",n);const t=qt(n,this._options.tunnel&&W(this._dsn));this.sendEnvelope(t)}}function Br(n,t){const e=`${t} must return \`null\` or a valid event.`;if(_(n)){return n.then((n=>{if(!p(n)&&n!==null){throw new nn(e)}return n}),(n=>{throw new nn(`${t} rejected with ${n}`)}))}else if(!p(n)&&n!==null){throw new nn(e)}return n}function Pr(n,t,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(qr(e)&&o){return o(e,r)}if(Ur(e)){if(e.spans&&s){const t=[];for(const r of e.spans){const e=s(r);if(e){t.push(e)}else{n.recordDroppedEvent("before_send","span")}}e.spans=t}if(i){if(e.spans){const n=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:n}}return i(e,r)}}return e}function qr(n){return n.type===undefined}function Ur(n){return n.type==="transaction"}function zr(n,t){if(t.debug===true){if(Jt){G.enable()}else{H((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))}}const e=_e();e.update(t.initialScope);const r=new n(t);Hr(r);r.init();return r}function Hr(n){_e().setClient(n)}const Yr=64;function Gr(n,t,e=wt(n.bufferSize||Yr)){let r={};const o=n=>e.drain(n);function i(o){const i=[];Lt(o,((t,e)=>{const o=At(e);if(Yt(r,o)){const r=Xr(t,e);n.recordDroppedEvent("ratelimit_backoff",o,r)}else{i.push(t)}}));if(i.length===0){return _t({})}const s=It(o[0],i);const c=t=>{Lt(s,((e,r)=>{const o=Xr(e,r);n.recordDroppedEvent(t,At(r),o)}))};const u=()=>t({body:Dt(s)}).then((n=>{if(n.statusCode!==undefined&&(n.statusCode<200||n.statusCode>=300)){Jt&&G.warn(`Sentry responded with status code ${n.statusCode} to sent event.`)}r=Gt(r,n);return n}),(n=>{c("network_error");throw n}));return e.add(u).then((n=>n),(n=>{if(n instanceof nn){Jt&&G.error("Skipped sending event because buffer is full.");c("queue_overflow");return _t({})}else{throw n}}))}return{send:i,flush:o}}function Xr(n,t){if(t!=="event"&&t!=="transaction"){return undefined}return Array.isArray(n)?n[1]:undefined}function Vr(n,t,e=[t],r="npm"){const o=n._metadata||{};if(!o.sdk){o.sdk={name:`sentry.javascript.${t}`,packages:e.map((n=>({name:`${r}:@sentry/${n}`,version:j}))),version:j}}n._metadata=o}const Wr=100;function Jr(n,t){const e=xe();const r=ye();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Wr}=e.getOptions();if(i<=0)return;const s=Fn();const c={timestamp:s,...n};const u=o?H((()=>o(c,t))):c;if(u===null)return;if(e.emit){e.emit("beforeAddBreadcrumb",u,t)}r.addBreadcrumb(u,i)}let Kr;const Zr="FunctionToString";const Qr=new WeakMap;const no=()=>({name:Zr,setupOnce(){Kr=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=on(this);const e=Qr.has(xe())&&t!==undefined?t:this;return Kr.apply(e,n)}}catch(n){}},setup(n){Qr.set(n,true)}});const to=Or(no);const eo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"];const ro="InboundFilters";const oo=(n={})=>({name:ro,processEvent(t,e,r){const o=r.getOptions();const i=so(n,o);return co(t,i)?null:t}});const io=Or(oo);function so(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:eo],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:n.ignoreInternal!==undefined?n.ignoreInternal:true}}function co(n,t){if(t.ignoreInternal&&po(n)){Jt&&G.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${it(n)}`);return true}if(uo(n,t.ignoreErrors)){Jt&&G.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${it(n)}`);return true}if(go(n)){Jt&&G.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${it(n)}`);return true}if(ao(n,t.ignoreTransactions)){Jt&&G.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${it(n)}`);return true}if(fo(n,t.denyUrls)){Jt&&G.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${it(n)}.\nUrl: ${bo(n)}`);return true}if(!lo(n,t.allowUrls)){Jt&&G.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${it(n)}.\nUrl: ${bo(n)}`);return true}return false}function uo(n,t){if(n.type||!t||!t.length){return false}return ho(n).some((n=>S(n,t)))}function ao(n,t){if(n.type!=="transaction"||!t||!t.length){return false}const e=n.transaction;return e?S(e,t):false}function fo(n,t){if(!t||!t.length){return false}const e=bo(n);return!e?false:S(e,t)}function lo(n,t){if(!t||!t.length){return true}const e=bo(n);return!e?true:S(e,t)}function ho(n){const t=[];if(n.message){t.push(n.message)}let e;try{e=n.exception.values[n.exception.values.length-1]}catch(n){}if(e){if(e.value){t.push(e.value);if(e.type){t.push(`${e.type}: ${e.value}`)}}}return t}function po(n){try{return n.exception.values[0].type==="SentryError"}catch(n){}return false}function mo(n=[]){for(let t=n.length-1;t>=0;t--){const e=n[t];if(e&&e.filename!=="<anonymous>"&&e.filename!=="[native code]"){return e.filename||null}}return null}function bo(n){try{let t;try{t=n.exception.values[0].stacktrace.frames}catch(n){}return t?mo(t):null}catch(t){Jt&&G.error(`Cannot extract url for event ${it(n)}`);return null}}function go(n){if(n.type){return false}if(!n.exception||!n.exception.values||n.exception.values.length===0){return false}return!n.message&&!n.exception.values.some((n=>n.stacktrace||n.type&&n.type!=="Error"||n.value))}const _o="Dedupe";const yo=()=>{let n;return{name:_o,processEvent(t){if(t.type){return t}try{if(wo(t,n)){Jt&&G.warn("Event dropped due to being a duplicate of previously captured event.");return null}}catch(n){}return n=t}}};const vo=Or(yo);function wo(n,t){if(!t){return false}if(xo(n,t)){return true}if(ko(n,t)){return true}return false}function xo(n,t){const e=n.message;const r=t.message;if(!e&&!r){return false}if(e&&!r||!e&&r){return false}if(e!==r){return false}if(!So(n,t)){return false}if(!Eo(n,t)){return false}return true}function ko(n,t){const e=No(t);const r=No(n);if(!e||!r){return false}if(e.type!==r.type||e.value!==r.value){return false}if(!So(n,t)){return false}if(!Eo(n,t)){return false}return true}function Eo(n,t){let e=En(n);let r=En(t);if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;if(r.length!==e.length){return false}for(let n=0;n<r.length;n++){const t=r[n];const o=e[n];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function){return false}}return true}function So(n,t){let e=n.fingerprint;let r=t.fingerprint;if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;try{return!!(e.join("")===r.join(""))}catch(n){return false}}function No(n){return n.exception&&n.exception.values&&n.exception.values[0]}function $o(n,t={},e=_e()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=n;const f={contexts:{feedback:ln({contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:a};const l=e&&e.getClient()||xe();if(l){l.emit("beforeSendFeedback",f,t)}const d=e.captureEvent(f,t);return d}const Co=L;let To=0;function Io(){return To>0}function jo(){To++;setTimeout((()=>{To--}))}function Lo(n,t={},e){if(typeof n!=="function"){return n}try{const t=n.__sentry_wrapped__;if(t){return t}if(on(n)){return n}}catch(t){return n}const r=function(){const r=Array.prototype.slice.call(arguments);try{if(e&&typeof e==="function"){e.apply(this,arguments)}const o=r.map((n=>Lo(n,t)));return n.apply(this,o)}catch(n){jo();we((e=>{e.addEventProcessor((n=>{if(t.mechanism){st(n,undefined,undefined);ct(n,t.mechanism)}n.extra={...n.extra,arguments:r};return n}));gr(n)}));throw n}};try{for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=n[t]}}}catch(n){}rn(r,n);en(n,"__sentry_wrapped__",r);try{const t=Object.getOwnPropertyDescriptor(r,"name");if(t.configurable){Object.defineProperty(r,"name",{get(){return n.name}})}}catch(n){}return r}const Mo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Do(n,t){const e=Fo(n,t);const r={type:t&&t.name,value:qo(t)};if(e.length){r.stacktrace={frames:e}}if(r.type===undefined&&r.value===""){r.value="Unrecoverable error caught"}return r}function Ro(n,t,e,r){const o=xe();const i=o&&o.getOptions().normalizeDepth;const s=Vo(t);const c={__serialized__:lt(t,i)};if(s){return{exception:{values:[Do(n,s)]},extra:c}}const u={exception:{values:[{type:m(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Go(t,{isUnhandledRejection:r})}]},extra:c};if(e){const t=Fo(n,e);if(t.length){u.exception.values[0].stacktrace={frames:t}}}return u}function Oo(n,t){return{exception:{values:[Do(n,t)]}}}function Fo(n,t){const e=t.stacktrace||t.stack||"";const r=Bo(t);const o=Po(t);try{return n(e,r,o)}catch(n){}return[]}const Ao=/Minified React error #\d+;/i;function Bo(n){if(n&&Ao.test(n.message)){return 1}return 0}function Po(n){if(typeof n.framesToPop==="number"){return n.framesToPop}return 0}function qo(n){const t=n&&n.message;if(!t){return"No error message"}if(t.error&&typeof t.error.message==="string"){return t.error.message}return t}function Uo(n,t,e,r){const o=e&&e.syntheticException||undefined;const i=Ho(n,t,o,r);ct(i);i.level="error";if(e&&e.event_id){i.event_id=e.event_id}return _t(i)}function zo(n,t,e="info",r,o){const i=r&&r.syntheticException||undefined;const s=Yo(n,t,i,o);s.level=e;if(r&&r.event_id){s.event_id=r.event_id}return _t(s)}function Ho(n,t,e,r,o){let i;if(u(t)&&t.error){const e=t;return Oo(n,e.error)}if(a(t)||f(t)){const o=t;if("stack"in t){i=Oo(n,t)}else{const t=o.name||(a(o)?"DOMError":"DOMException");const s=o.message?`${t}: ${o.message}`:t;i=Yo(n,s,e,r);st(i,s)}if("code"in o){i.tags={...i.tags,"DOMException.code":`${o.code}`}}return i}if(s(t)){return Oo(n,t)}if(p(t)||m(t)){const r=t;i=Ro(n,r,e,o);ct(i,{synthetic:true});return i}i=Yo(n,t,e,r);st(i,`${t}`,undefined);ct(i,{synthetic:true});return i}function Yo(n,t,e,r){const o={};if(r&&e){const r=Fo(n,e);if(r.length){o.exception={values:[{value:t,stacktrace:{frames:r}}]}}}if(d(t)){const{__sentry_template_string__:n,__sentry_template_values__:e}=t;o.logentry={message:n,params:e};return o}o.message=t;return o}function Go(n,{isUnhandledRejection:t}){const e=fn(n);const r=t?"promise rejection":"exception";if(u(n)){return`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``}if(m(n)){const t=Xo(n);return`Event \`${t}\` (type=${n.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function Xo(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:undefined}catch(n){}}function Vo(n){for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];if(e instanceof Error){return e}}}return undefined}function Wo(n,{metadata:t,tunnel:e,dsn:r}){const o={event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!e&&!!r&&{dsn:W(r)}};const i=Jo(n);return It(o,[i])}function Jo(n){const t={type:"user_report"};return[t,n]}class Ko extends Ar{constructor(n){const t={parentSpanIsAlwaysRootSpan:true,...n};const e=Co.SENTRY_SDK_SOURCE||Zn();Vr(t,"browser",["browser"],e);super(t);if(t.sendClientReports&&Co.document){Co.document.addEventListener("visibilitychange",(()=>{if(Co.document.visibilityState==="hidden"){this._flushOutcomes()}}))}}eventFromException(n,t){return Uo(this._options.stackParser,n,t,this._options.attachStacktrace)}eventFromMessage(n,t="info",e){return zo(this._options.stackParser,n,t,e,this._options.attachStacktrace)}captureUserFeedback(n){if(!this._isEnabled()){Mo&&G.warn("SDK not enabled, will not capture user feedback.");return}const t=Wo(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(n,t,e){n.platform=n.platform||"javascript";return super._prepareEvent(n,t,e)}}const Zo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const Qo=L;const ni=1e3;let ti;let ei;let ri;function oi(n){const t="dom";$n(t,n);Cn(t,ii)}function ii(){if(!Qo.document){return}const n=Tn.bind(null,"dom");const t=ui(n,true);Qo.document.addEventListener("click",t,false);Qo.document.addEventListener("keypress",t,false);["EventTarget","Node"].forEach((t=>{const e=Qo[t]&&Qo[t].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}tn(e,"addEventListener",(function(t){return function(e,r,o){if(e==="click"||e=="keypress"){try{const r=this;const i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{};const s=i[e]=i[e]||{refCount:0};if(!s.handler){const r=ui(n);s.handler=r;t.call(this,e,r,o)}s.refCount++}catch(n){}}return t.call(this,e,r,o)}}));tn(e,"removeEventListener",(function(n){return function(t,e,r){if(t==="click"||t=="keypress"){try{const e=this;const o=e.__sentry_instrumentation_handlers__||{};const i=o[t];if(i){i.refCount--;if(i.refCount<=0){n.call(this,t,i.handler,r);i.handler=undefined;delete o[t]}if(Object.keys(o).length===0){delete e.__sentry_instrumentation_handlers__}}}catch(n){}}return n.call(this,t,e,r)}}))}))}function si(n){if(n.type!==ei){return false}try{if(!n.target||n.target._sentryId!==ri){return false}}catch(n){}return true}function ci(n,t){if(n!=="keypress"){return false}if(!t||!t.tagName){return true}if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable){return false}return true}function ui(n,t=false){return e=>{if(!e||e["_sentryCaptured"]){return}const r=ai(e);if(ci(e.type,r)){return}en(e,"_sentryCaptured",true);if(r&&!r._sentryId){en(r,"_sentryId",rt())}const o=e.type==="keypress"?"input":e.type;if(!si(e)){const i={event:e,name:o,global:t};n(i);ei=e.type;ri=r?r._sentryId:undefined}clearTimeout(ti);ti=Qo.setTimeout((()=>{ri=undefined;ei=undefined}),ni)}}function ai(n){try{return n.target}catch(n){return null}}let fi;function li(n){const t="history";$n(t,n);Cn(t,di)}function di(){if(!Wt()){return}const n=Qo.onpopstate;Qo.onpopstate=function(...t){const e=Qo.location.href;const r=fi;fi=e;const o={from:r,to:e};Tn("history",o);if(n){try{return n.apply(this,t)}catch(n){}}};function t(n){return function(...t){const e=t.length>2?t[2]:undefined;if(e){const n=fi;const t=String(e);fi=t;const r={from:n,to:t};Tn("history",r)}return n.apply(this,t)}}tn(Qo.history,"pushState",t);tn(Qo.history,"replaceState",t)}const hi={};function pi(n){const t=hi[n];if(t){return t}let e=Qo[n];if(Dn(e)){return hi[n]=e.bind(Qo)}const r=Qo.document;if(r&&typeof r.createElement==="function"){try{const t=r.createElement("iframe");t.hidden=true;r.head.appendChild(t);const o=t.contentWindow;if(o&&o[n]){e=o[n]}r.head.removeChild(t)}catch(t){Zo&&G.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,t)}}if(!e){return e}return hi[n]=e.bind(Qo)}function mi(n){hi[n]=undefined}const bi="__sentry_xhr_v3__";function gi(n){const t="xhr";$n(t,n);Cn(t,_i)}function _i(){if(!Qo.XMLHttpRequest){return}const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(n,t,e){const r=Bn()*1e3;const o=l(e[0])?e[0].toUpperCase():undefined;const i=yi(e[1]);if(!o||!i){return n.apply(t,e)}t[bi]={method:o,url:i,request_headers:{}};if(o==="POST"&&i.match(/sentry_key/)){t.__sentry_own_request__=true}const s=()=>{const n=t[bi];if(!n){return}if(t.readyState===4){try{n.status_code=t.status}catch(n){}const e={endTimestamp:Bn()*1e3,startTimestamp:r,xhr:t};Tn("xhr",e)}};if("onreadystatechange"in t&&typeof t.onreadystatechange==="function"){t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(n,t,e){s();return n.apply(t,e)}})}else{t.addEventListener("readystatechange",s)}t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(n,t,e){const[r,o]=e;const i=t[bi];if(i&&l(r)&&l(o)){i.request_headers[r.toLowerCase()]=o}return n.apply(t,e)}});return n.apply(t,e)}});n.send=new Proxy(n.send,{apply(n,t,e){const r=t[bi];if(!r){return n.apply(t,e)}if(e[0]!==undefined){r.body=e[0]}const o={startTimestamp:Bn()*1e3,xhr:t};Tn("xhr",o);return n.apply(t,e)}})}function yi(n){if(l(n)){return n}try{return n.toString()}catch(n){}return undefined}function vi(n,t=pi("fetch")){let e=0;let r=0;function o(o){const i=o.body.length;e+=i;r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:e<=6e4&&r<15,...n.fetchOptions};if(!t){mi("fetch");return yt("No fetch implementation available")}try{return t(n.url,s).then((n=>{e-=i;r--;return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}))}catch(n){mi("fetch");e-=i;r--;return yt(n)}}return Gr(n,o)}const wi=30;const xi=50;function ki(n,t,e,r){const o={filename:n,function:t==="<anonymous>"?mn:t,in_app:true};if(e!==undefined){o.lineno=e}if(r!==undefined){o.colno=r}return o}const Ei=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;const Si=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;const Ni=/\((\S*)(?::(\d+))(?::(\d+))\)/;const $i=n=>{const t=Ei.exec(n);if(t){const[,n,e,r]=t;return ki(n,mn,+e,+r)}const e=Si.exec(n);if(e){const n=e[2]&&e[2].indexOf("eval")===0;if(n){const n=Ni.exec(e[2]);if(n){e[2]=n[1];e[3]=n[2];e[4]=n[3]}}const[t,r]=Ri(e[1]||mn,e[2]);return ki(r,t,e[3]?+e[3]:undefined,e[4]?+e[4]:undefined)}return};const Ci=[wi,$i];const Ti=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;const Ii=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;const ji=n=>{const t=Ti.exec(n);if(t){const n=t[3]&&t[3].indexOf(" > eval")>-1;if(n){const n=Ii.exec(t[3]);if(n){t[1]=t[1]||"eval";t[3]=n[1];t[4]=n[2];t[5]=""}}let e=t[3];let r=t[1]||mn;[r,e]=Ri(r,e);return ki(e,r,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}return};const Li=[xi,ji];const Mi=[Ci,Li];const Di=_n(...Mi);const Ri=(n,t)=>{const e=n.indexOf("safari-extension")!==-1;const r=n.indexOf("safari-web-extension")!==-1;return e||r?[n.indexOf("@")!==-1?n.split("@")[0]:mn,e?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]};const Oi=1024;const Fi="Breadcrumbs";const Ai=(n={})=>{const t={console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true,...n};return{name:Fi,setup(n){if(t.console){In(Ui(n))}if(t.dom){oi(qi(n,t.dom))}if(t.xhr){gi(zi(n))}if(t.fetch){Pn(Hi(n))}if(t.history){li(Yi(n))}if(t.sentry){n.on("beforeSendEvent",Pi(n))}}}};const Bi=Or(Ai);function Pi(n){return function t(e){if(xe()!==n){return}Jr({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:it(e)},{event:e})}}function qi(n,t){return function e(r){if(xe()!==n){return}let o;let i;let s=typeof t==="object"?t.serializeAttribute:undefined;let c=typeof t==="object"&&typeof t.maxStringLength==="number"?t.maxStringLength:undefined;if(c&&c>Oi){Mo&&G.warn(`\`dom.maxStringLength\` cannot exceed ${Oi}, but a value of ${c} was configured. Sentry will use ${Oi} instead.`);c=Oi}if(typeof s==="string"){s=[s]}try{const n=r.event;const t=Gi(n)?n.target:n;o=O(t,{keyAttrs:s,maxStringLength:c});i=B(t)}catch(n){o="<unknown>"}if(o.length===0){return}const u={category:`ui.${r.name}`,message:o};if(i){u.data={"ui.component_name":i}}Jr(u,{event:r.event,name:r.name,global:r.global})}}function Ui(n){return function t(e){if(xe()!==n){return}const r={category:"console",data:{arguments:e.args,logger:"console"},level:Et(e.level),message:k(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){r.message=`Assertion failed: ${k(e.args.slice(1)," ")||"console.assert"}`;r.data.arguments=e.args.slice(1)}else{return}}Jr(r,{input:e.args,level:e.level})}}function zi(n){return function t(e){if(xe()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;const i=e.xhr[bi];if(!r||!o||!i){return}const{method:s,url:c,status_code:u,body:a}=i;const f={method:s,url:c,status_code:u};const l={xhr:e.xhr,input:a,startTimestamp:r,endTimestamp:o};Jr({category:"xhr",data:f,type:"http"},l)}}function Hi(n){return function t(e){if(xe()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;if(!o){return}if(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"){return}if(e.error){const n=e.fetchData;const t={data:e.error,input:e.args,startTimestamp:r,endTimestamp:o};Jr({category:"fetch",data:n,level:"error",type:"http"},t)}else{const n=e.response;const t={...e.fetchData,status_code:n&&n.status};const i={input:e.args,response:n,startTimestamp:r,endTimestamp:o};Jr({category:"fetch",data:t,type:"http"},i)}}}function Yi(n){return function t(e){if(xe()!==n){return}let r=e.from;let o=e.to;const i=xt(Co.location.href);let s=r?xt(r):undefined;const c=xt(o);if(!s||!s.path){s=i}if(i.protocol===c.protocol&&i.host===c.host){o=c.relative}if(i.protocol===s.protocol&&i.host===s.host){r=s.relative}Jr({category:"navigation",data:{from:r,to:o}})}}function Gi(n){return!!n&&!!n.target}const Xi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];const Vi="BrowserApiErrors";const Wi=(n={})=>{const t={XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,...n};return{name:Vi,setupOnce(){if(t.setTimeout){tn(Co,"setTimeout",Ki)}if(t.setInterval){tn(Co,"setInterval",Ki)}if(t.requestAnimationFrame){tn(Co,"requestAnimationFrame",Zi)}if(t.XMLHttpRequest&&"XMLHttpRequest"in Co){tn(XMLHttpRequest.prototype,"send",Qi)}const n=t.eventTarget;if(n){const t=Array.isArray(n)?n:Xi;t.forEach(ns)}}}};const Ji=Or(Wi);function Ki(n){return function(...t){const e=t[0];t[0]=Lo(e,{mechanism:{data:{function:kn(n)},handled:false,type:"instrument"}});return n.apply(this,t)}}function Zi(n){return function(t){return n.apply(this,[Lo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:kn(n)},handled:false,type:"instrument"}})])}}function Qi(n){return function(...t){const e=this;const r=["onload","onerror","onprogress","onreadystatechange"];r.forEach((n=>{if(n in e&&typeof e[n]==="function"){tn(e,n,(function(t){const e={mechanism:{data:{function:n,handler:kn(t)},handled:false,type:"instrument"}};const r=on(t);if(r){e.mechanism.data.handler=kn(r)}return Lo(t,e)}))}}));return n.apply(this,t)}}function ns(n){const t=Co;const e=t[n]&&t[n].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}tn(e,"addEventListener",(function(t){return function(e,r,o){try{if(typeof r.handleEvent==="function"){r.handleEvent=Lo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:kn(r),target:n},handled:false,type:"instrument"}})}}catch(n){}return t.apply(this,[e,Lo(r,{mechanism:{data:{function:"addEventListener",handler:kn(r),target:n},handled:false,type:"instrument"}}),o])}}));tn(e,"removeEventListener",(function(n){return function(t,e,r){const o=e;try{const e=o&&o.__sentry_wrapped__;if(e){n.call(this,t,e,r)}}catch(n){}return n.call(this,t,o,r)}}))}const ts="GlobalHandlers";const es=(n={})=>{const t={onerror:true,onunhandledrejection:true,...n};return{name:ts,setupOnce(){Error.stackTraceLimit=50},setup(n){if(t.onerror){os(n);as("onerror")}if(t.onunhandledrejection){is(n);as("onunhandledrejection")}}}};const rs=Or(es);function os(n){Gn((t=>{const{stackParser:e,attachStacktrace:r}=fs();if(xe()!==n||Io()){return}const{msg:o,url:i,line:s,column:c,error:u}=t;const a=us(Ho(e,u||o,undefined,r,false),i,s,c);a.level="error";yr(a,{originalException:u,mechanism:{handled:false,type:"onerror"}})}))}function is(n){Wn((t=>{const{stackParser:e,attachStacktrace:r}=fs();if(xe()!==n||Io()){return}const o=ss(t);const i=h(o)?cs(o):Ho(e,o,undefined,r,true);i.level="error";yr(i,{originalException:o,mechanism:{handled:false,type:"onunhandledrejection"}})}))}function ss(n){if(h(n)){return n}try{if("reason"in n){return n.reason}if("detail"in n&&"reason"in n.detail){return n.detail.reason}}catch(n){}return n}function cs(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function us(n,t,e,r){const o=n.exception=n.exception||{};const i=o.values=o.values||[];const s=i[0]=i[0]||{};const c=s.stacktrace=s.stacktrace||{};const u=c.frames=c.frames||[];const a=isNaN(parseInt(r,10))?undefined:r;const f=isNaN(parseInt(e,10))?undefined:e;const d=l(t)&&t.length>0?t:A();if(u.length===0){u.push({colno:a,filename:d,function:mn,in_app:true,lineno:f})}return n}function as(n){Mo&&G.log(`Global Handler attached: ${n}`)}function fs(){const n=xe();const t=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:false};return t}const ls=Or((()=>({name:"HttpContext",preprocessEvent(n){if(!Co.navigator&&!Co.location&&!Co.document){return}const t=n.request&&n.request.url||Co.location&&Co.location.href;const{referrer:e}=Co.document||{};const{userAgent:r}=Co.navigator||{};const o={...n.request&&n.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}};const i={...n.request,...t&&{url:t},headers:o};n.request=i}})));const ds="cause";const hs=5;const ps="LinkedErrors";const ms=(n={})=>{const t=n.limit||hs;const e=n.key||ds;return{name:ps,preprocessEvent(n,r,o){const i=o.getOptions();N(Do,i.stackParser,i.maxValueLength,e,t,n,r)}}};const bs=Or(ms);function gs(n){return[io(),to(),Ji(),Bi(),rs(),bs(),vo(),ls()]}function _s(n={}){const t={defaultIntegrations:gs(),release:typeof __SENTRY_RELEASE__==="string"?__SENTRY_RELEASE__:Co.SENTRY_RELEASE&&Co.SENTRY_RELEASE.id?Co.SENTRY_RELEASE.id:undefined,autoSessionTracking:true,sendClientReports:true};if(n.defaultIntegrations==null){delete n.defaultIntegrations}return{...t,...n}}function ys(){const n=typeof Co.window!=="undefined"&&Co;if(!n){return false}const t=n.chrome?"chrome":"browser";const e=n[t];const r=e&&e.runtime&&e.runtime.id;const o=Co.location&&Co.location.href||"";const i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"];const s=!!r&&Co===Co.top&&i.some((n=>o.startsWith(`${n}//`)));const c=typeof n.nw!=="undefined";return!!r&&!s&&!c}function vs(n={}){const t=_s(n);if(ys()){H((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));return}if(Mo){if(!Mn()){G.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")}}const e={...t,stackParser:yn(t.stackParser||Di),integrations:Lr(t),transport:t.transport||vi};const r=zr(Ko,e);if(t.autoSessionTracking){ws()}return r}function ws(){if(typeof Co.document==="undefined"){Mo&&G.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}wr({ignoreDuration:true});Er();li((({from:n,to:t})=>{if(n!==undefined&&n!==t){wr({ignoreDuration:true});Er()}}))}const xs={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"};const ks=Co;async function Es(n,t){const e=xs[n];const r=ks.Sentry=ks.Sentry||{};if(!e){throw new Error(`Cannot lazy load integration: ${n}`)}const o=r[n];if(typeof o==="function"&&!("_isShim"in o)){return o}const i=Ss(e);const s=Co.document.createElement("script");s.src=i;s.crossOrigin="anonymous";s.referrerPolicy="origin";if(t){s.setAttribute("nonce",t)}const c=new Promise(((n,t)=>{s.addEventListener("load",(()=>n()));s.addEventListener("error",t)}));Co.document.body.appendChild(s);try{await c}catch(t){throw new Error(`Error when loading integration: ${n}`)}const u=r[n];if(typeof u!=="function"){throw new Error(`Could not load integration: ${n}`)}return u}function Ss(n){const t=xe();const e=t&&t.getOptions();const r=e&&e.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${j}/${n}.min.js`,r).toString()}const Ns=L;const $s=Ns.document;const Cs=Ns.navigator;const Ts="Report a Bug";const Is="Cancel";const js="Send Bug Report";const Ls="Confirm";const Ms="Report a Bug";const Ds="your.email@example.org";const Rs="Email";const Os="What's the bug? What did you expect?";const Fs="Description";const As="Your Name";const Bs="Name";const Ps="Thank you for your report!";const qs="(required)";const Us="Add a screenshot";const zs="Remove screenshot";const Hs="widget";const Ys="api";const Gs=5e3;const Xs=(n,t={includeReplay:true})=>{if(!n.message){throw new Error("Unable to submit feedback with empty message")}const e=xe();if(!e){throw new Error("No client setup, cannot send feedback.")}if(n.tags&&Object.keys(n.tags).length){_e().setTags(n.tags)}const r=$o({source:Ys,url:A(),...n},t);return new Promise(((n,t)=>{const o=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3);const i=e.on("afterSendEvent",((e,s)=>{if(e.event_id!==r){return}clearTimeout(o);i();if(s&&typeof s.statusCode==="number"&&s.statusCode>=200&&s.statusCode<300){n(r)}if(s&&typeof s.statusCode==="number"&&s.statusCode===0){return t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker.")}if(s&&typeof s.statusCode==="number"&&s.statusCode===403){return t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains.")}return t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))};const Vs=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Ws(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Cs.userAgent)){return false}if(/Macintosh/i.test(Cs.userAgent)&&Cs.maxTouchPoints&&Cs.maxTouchPoints>1){return false}if(!isSecureContext){return false}return true}function Js(n,t){return{...n,...t,tags:{...n.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen();n.onFormOpen&&n.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose();n.onFormClose&&n.onFormClose()},onSubmitSuccess:e=>{t.onSubmitSuccess&&t.onSubmitSuccess(e);n.onSubmitSuccess&&n.onSubmitSuccess(e)},onSubmitError:e=>{t.onSubmitError&&t.onSubmitError(e);n.onSubmitError&&n.onSubmitError(e)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted();n.onFormSubmitted&&n.onFormSubmitted()},themeDark:{...n.themeDark,...t.themeDark},themeLight:{...n.themeLight,...t.themeLight}}}function Ks(n){const t=$s.createElement("style");t.textContent=`\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Zs(n,t){Object.entries(t).forEach((([t,e])=>{n.setAttributeNS(null,t,e)}));return n}const Qs=20;const nc="http://www.w3.org/2000/svg";function tc(){const n=n=>Ns.document.createElementNS(nc,n);const t=Zs(n("svg"),{width:`${Qs}`,height:`${Qs}`,viewBox:`0 0 ${Qs} ${Qs}`,fill:"var(--foreground)"});const e=Zs(n("g"),{clipPath:"url(#clip0_57_80)"});const r=Zs(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(e).appendChild(r);const o=n("defs");const i=Zs(n("clipPath"),{id:"clip0_57_80"});const s=Zs(n("rect"),{width:`${Qs}`,height:`${Qs}`,fill:"white"});i.appendChild(s);o.appendChild(i);t.appendChild(o).appendChild(i).appendChild(s);return t}function ec({triggerLabel:n,triggerAriaLabel:t,shadow:e,styleNonce:r}){const o=$s.createElement("button");o.type="button";o.className="widget__actor";o.ariaHidden="false";o.ariaLabel=t||n||Ts;o.appendChild(tc());if(n){const t=$s.createElement("span");t.appendChild($s.createTextNode(n));o.appendChild(t)}const i=Ks(r);return{el:o,appendToDom(){e.appendChild(i);e.appendChild(o)},removeFromDom(){e.removeChild(o);e.removeChild(i)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const rc="rgba(88, 74, 192, 1)";const oc={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:rc,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"};const ic={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:rc,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function sc(n){return`\n --foreground: ${n.foreground};\n --background: ${n.background};\n --accent-foreground: ${n.accentForeground};\n --accent-background: ${n.accentBackground};\n --success-color: ${n.successColor};\n --error-color: ${n.errorColor};\n --border: ${n.border};\n --box-shadow: ${n.boxShadow};\n --outline: ${n.outline};\n --interactive-filter: ${n.interactiveFilter};\n `}function cc({colorScheme:n,themeDark:t,themeLight:e,styleNonce:r}){const o=$s.createElement("style");o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${n!=="system"?"color-scheme: only light;":""}\n\n ${sc(n==="dark"?{...ic,...t}:{...oc,...e})}\n}\n\n${n==="system"?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${sc({...ic,...t})}\n }\n}`:""}\n}\n`;if(r){o.setAttribute("nonce",r)}return o}const uc=({lazyLoadIntegration:n,getModalIntegration:t,getScreenshotIntegration:e})=>{const r=({id:r="sentry-feedback",autoInject:o=true,showBranding:i=true,isEmailRequired:s=false,isNameRequired:c=false,showEmail:u=true,showName:a=true,enableScreenshot:f=true,useSentryUser:l={email:"email",name:"username"},tags:d,styleNonce:h,scriptNonce:p,colorScheme:m="system",themeLight:b={},themeDark:g={},addScreenshotButtonLabel:_=Us,cancelButtonLabel:y=Is,confirmButtonLabel:v=Ls,emailLabel:w=Rs,emailPlaceholder:x=Ds,formTitle:k=Ms,isRequiredLabel:E=qs,messageLabel:S=Fs,messagePlaceholder:N=Os,nameLabel:$=Bs,namePlaceholder:C=As,removeScreenshotButtonLabel:T=zs,submitButtonLabel:I=js,successMessageText:j=Ps,triggerLabel:L=Ts,triggerAriaLabel:M="",onFormOpen:D,onFormClose:R,onSubmitSuccess:O,onSubmitError:F,onFormSubmitted:A}={})=>{const B={id:r,autoInject:o,showBranding:i,isEmailRequired:s,isNameRequired:c,showEmail:u,showName:a,enableScreenshot:f,useSentryUser:l,tags:d,styleNonce:h,scriptNonce:p,colorScheme:m,themeDark:g,themeLight:b,triggerLabel:L,triggerAriaLabel:M,cancelButtonLabel:y,submitButtonLabel:I,confirmButtonLabel:v,formTitle:k,emailLabel:w,emailPlaceholder:x,messageLabel:S,messagePlaceholder:N,nameLabel:$,namePlaceholder:C,successMessageText:j,isRequiredLabel:E,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:T,onFormClose:R,onFormOpen:D,onSubmitError:F,onSubmitSuccess:O,onFormSubmitted:A};let P=null;let q=[];const U=n=>{if(!P){const t=$s.createElement("div");t.id=String(n.id);$s.body.appendChild(t);P=t.attachShadow({mode:"open"});P.appendChild(cc(n))}return P};const z=async(t,e,r)=>{const o=xe();const i=o&&o.getIntegrationByName(t);if(i){return i}const s=e&&e()||await n(r,p);const c=s();o&&o.addIntegration(c);return c};const H=async n=>{const r=n.enableScreenshot&&Ws();const[o,i]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",e,"feedbackScreenshotIntegration"):undefined]);if(!o){Vs&&G.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`.");throw new Error("[Feedback] Missing feedback modal integration!")}if(r&&!i){Vs&&G.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const s=o.createDialog({options:{...n,onFormClose:()=>{s&&s.close();n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.close();n.onFormSubmitted&&n.onFormSubmitted()}},screenshotIntegration:r?i:undefined,sendFeedback:Xs,shadow:U(n)});return s};const Y=(n,t={})=>{const e=Js(B,t);const r=typeof n==="string"?$s.querySelector(n):typeof n.addEventListener==="function"?n:null;if(!r){Vs&&G.error("[Feedback] Unable to attach to target element");throw new Error("Unable to attach to target element")}let o=null;const i=async()=>{if(!o){o=await H({...e,onFormSubmitted:()=>{o&&o.removeFromDom();e.onFormSubmitted&&e.onFormSubmitted()}})}o.appendToDom();o.open()};r.addEventListener("click",i);const s=()=>{q=q.filter((n=>n!==s));o&&o.removeFromDom();o=null;r.removeEventListener("click",i)};q.push(s);return s};const X=(n={})=>{const t=Js(B,n);const e=U(t);const r=ec({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:e,styleNonce:h});Y(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}});return r};return{name:"Feedback",setupOnce(){if(!nt()||!B.autoInject){return}if($s.readyState==="loading"){$s.addEventListener("DOMContentLoaded",(()=>X().appendToDom()))}else{X().appendToDom()}},attachTo:Y,createWidget(n={}){const t=X(Js(B,n));t.appendToDom();return t},async createForm(n={}){return H(Js(B,n))},remove(){if(P){P.parentElement&&P.parentElement.remove();P=null}q.forEach((n=>n()));q=[]}}};return r};var ac,fc,lc,dc,hc,pc,mc,bc={},gc=[],_c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yc=Array.isArray;function vc(n,t){for(var e in t)n[e]=t[e];return n}function wc(n){var t=n.parentNode;t&&t.removeChild(n)}function xc(n,t,e){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ac.call(arguments,2):e),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===s[i]&&(s[i]=n.defaultProps[i]);return kc(n,s,r,o,null)}function kc(n,t,e,r,o){var i={type:n,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++lc:o,__i:-1,__u:0};return null==o&&null!=fc.vnode&&fc.vnode(i),i}function Ec(n){return n.children}function Sc(n,t){this.props=n,this.context=t}function Nc(n,t){if(null==t)return n.__?Nc(n.__,n.__i+1):null;for(var e;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e)return e.__e;return"function"==typeof n.type?Nc(n):null}function $c(n,t,e){var r,o=n.__v,i=o.__e,s=n.__P;if(s)return(r=vc({},o)).__v=o.__v+1,fc.vnode&&fc.vnode(r),Bc(s,r,o,n.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?Nc(o):i,!!(32&o.__u),e),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&Cc(r),r}function Cc(n){var t,e;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e){n.__e=n.__c.base=e.__e;break}return Cc(n)}}function Tc(n){(!n.__d&&(n.__d=!0)&&dc.push(n)&&!Ic.__r++||hc!==fc.debounceRendering)&&((hc=fc.debounceRendering)||pc)(Ic)}function Ic(){var n,t,e,r=[],o=[];for(dc.sort(mc);n=dc.shift();)n.__d&&(e=dc.length,t=$c(n,r,o)||t,0===e||dc.length>e?(Pc(r,t,o),o.length=r.length=0,t=void 0,dc.sort(mc)):t&&fc.__c&&fc.__c(t,gc));t&&Pc(r,t,o),Ic.__r=0}function jc(n,t,e,r,o,i,s,c,u,a,f){var l,d,h,p,m,b=r&&r.__k||gc,g=t.length;for(e.__d=u,Lc(e,t,b),u=e.__d,l=0;l<g;l++)null!=(h=e.__k[l])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?bc:b[h.__i]||bc,h.__i=l,Bc(n,h,d,o,i,s,c,u,a,f),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Uc(d.ref,null,h),f.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||d.__k===h.__k?u=Mc(h,u,n):"function"==typeof h.type&&void 0!==h.__d?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);e.__d=u,e.__e=m}function Lc(n,t,e){var r,o,i,s,c,u=t.length,a=e.length,f=a,l=0;for(n.__k=[],r=0;r<u;r++)null!=(o=n.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?kc(null,o,null,null,o):yc(o)?kc(Ec,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?kc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=n,o.__b=n.__b+1,c=Dc(o,e,s=r+l,f),o.__i=c,i=null,-1!==c&&(f--,(i=e[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&l--,"function"!=typeof o.type&&(o.__u|=65536)):c!==s&&(c===s+1?l++:c>s?f>u-s?l+=c-s:l--:l=c<s&&c==s-1?c-s:0,c!==r+l&&(o.__u|=65536))):(i=e[r])&&null==i.key&&i.__e&&(i.__e==n.__d&&(n.__d=Nc(i)),zc(i,i,!1),e[r]=null,f--);if(f)for(r=0;r<a;r++)null!=(i=e[r])&&0==(131072&i.__u)&&(i.__e==n.__d&&(n.__d=Nc(i)),zc(i,i))}function Mc(n,t,e){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,t=Mc(r[o],t,e));return t}n.__e!=t&&(e.insertBefore(n.__e,t||null),t=n.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Dc(n,t,e,r){var o=n.key,i=n.type,s=e-1,c=e+1,u=t[e];if(null===u||u&&o==u.key&&i===u.type)return e;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;s>=0||c<t.length;){if(s>=0){if((u=t[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(c<t.length){if((u=t[c])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Rc(n,t,e){"-"===t[0]?n.setProperty(t,null==e?"":e):n[t]=null==e?"":"number"!=typeof e||_c.test(t)?e:e+"px"}function Oc(n,t,e,r,o){var i;n:if("style"===t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)e&&t in e||Rc(n.style,t,"");if(e)for(t in e)r&&e[t]===r[t]||Rc(n.style,t,e[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+i]=e,e?r?e.u=r.u:(e.u=Date.now(),n.addEventListener(t,i?Ac:Fc,i)):n.removeEventListener(t,i?Ac:Fc,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in n)try{n[t]=null==e?"":e;break n}catch(n){}"function"==typeof e||(null==e||!1===e&&"-"!==t[4]?n.removeAttribute(t):n.setAttribute(t,e))}}function Fc(n){if(this.l){var t=this.l[n.type+!1];if(n.t){if(n.t<=t.u)return}else n.t=Date.now();return t(fc.event?fc.event(n):n)}}function Ac(n){if(this.l)return this.l[n.type+!0](fc.event?fc.event(n):n)}function Bc(n,t,e,r,o,i,s,c,u,a){var f,l,d,h,p,m,b,g,_,y,v,w,x,k,E,S=t.type;if(void 0!==t.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[c=t.__e=e.__e]),(f=fc.__b)&&f(t);n:if("function"==typeof S)try{if(g=t.props,_=(f=S.contextType)&&r[f.__c],y=f?_?_.props.value:f.__:r,e.__c?b=(l=t.__c=e.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(g,y):(t.__c=l=new Sc(g,y),l.constructor=S,l.render=Hc),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=vc({},l.__s)),vc(l.__s,S.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=t,d)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===e.__v)){for(t.__v!==e.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach((function(n){n&&(n.__=t)})),v=0;v<l._sb.length;v++)l.__h.push(l._sb[v]);l._sb=[],l.__h.length&&s.push(l);break n}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,p,m)}))}if(l.context=y,l.props=g,l.__P=n,l.__e=!1,w=fc.__r,x=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),k=0;k<l._sb.length;k++)l.__h.push(l._sb[k]);l._sb=[]}else do{l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++x<25);l.state=l.__s,null!=l.getChildContext&&(r=vc(vc({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(m=l.getSnapshotBeforeUpdate(h,p)),jc(n,yc(E=null!=f&&f.type===Ec&&null==f.key?f.props.children:f)?E:[E],t,e,r,o,i,s,c,u,a),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),b&&(l.__E=l.__=null)}catch(n){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=e.__e,t.__k=e.__k),fc.__e(n,t,e)}else null==i&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=qc(e.__e,t,e,r,o,i,s,u,a);(f=fc.diffed)&&f(t)}function Pc(n,t,e){for(var r=0;r<e.length;r++)Uc(e[r],e[++r],e[++r]);fc.__c&&fc.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){fc.__e(n,t.__v)}}))}function qc(n,t,e,r,o,i,s,c,u){var a,f,l,d,h,p,m,b=e.props,g=t.props,_=t.type;if("svg"===_&&(o=!0),null!=i)for(a=0;a<i.length;a++)if((h=i[a])&&"setAttribute"in h==!!_&&(_?h.localName===_:3===h.nodeType)){n=h,i[a]=null;break}if(null==n){if(null===_)return document.createTextNode(g);n=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,g.is&&g),i=null,c=!1}if(null===_)b===g||c&&n.data===g||(n.data=g);else{if(i=i&&ac.call(n.childNodes),b=e.props||bc,!c&&null!=i)for(b={},a=0;a<n.attributes.length;a++)b[(h=n.attributes[a]).name]=h.value;for(a in b)h=b[a],"children"==a||("dangerouslySetInnerHTML"==a?l=h:"key"===a||a in g||Oc(n,a,null,h,o));for(a in g)h=g[a],"children"==a?d=h:"dangerouslySetInnerHTML"==a?f=h:"value"==a?p=h:"checked"==a?m=h:"key"===a||c&&"function"!=typeof h||b[a]===h||Oc(n,a,h,b[a],o);if(f)c||l&&(f.__html===l.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),t.__k=[];else if(l&&(n.innerHTML=""),jc(n,yc(d)?d:[d],t,e,r,o&&"foreignObject"!==_,i,s,i?i[0]:e.__k&&Nc(e,0),c,u),null!=i)for(a=i.length;a--;)null!=i[a]&&wc(i[a]);c||(a="value",void 0!==p&&(p!==n[a]||"progress"===_&&!p||"option"===_&&p!==b[a])&&Oc(n,a,p,b[a],!1),a="checked",void 0!==m&&m!==n[a]&&Oc(n,a,m,b[a],!1))}return n}function Uc(n,t,e){try{"function"==typeof n?n(t):n.current=t}catch(n){fc.__e(n,e)}}function zc(n,t,e){var r,o;if(fc.unmount&&fc.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Uc(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){fc.__e(n,t)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&zc(r[o],t,e||"function"!=typeof n.type);e||null==n.__e||wc(n.__e),n.__=n.__e=n.__d=void 0}function Hc(n,t,e){return this.constructor(n,e)}function Yc(n,t,e){var r,o,i,s;fc.__&&fc.__(n,t),o=(r="function"==typeof e)?null:e&&e.__k||t.__k,i=[],s=[],Bc(t,n=(!r&&e||t).__k=xc(Ec,null,[n]),o||bc,bc,void 0!==t.ownerSVGElement,!r&&e?[e]:o?null:t.firstChild?ac.call(t.childNodes):null,i,!r&&e?e:o?o.__e:t.firstChild,r,s),n.__d=void 0,Pc(i,n,s)}ac=gc.slice,fc={__e:function(n,t,e,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(n)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(n,r||{}),s=o.__d),s)return o.__E=o}catch(t){n=t}throw n}},lc=0,Sc.prototype.setState=function(n,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vc({},this.state),"function"==typeof n&&(n=n(vc({},e),this.props)),n&&vc(e,n),null!=n&&this.__v&&(t&&this._sb.push(t),Tc(this))},Sc.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Tc(this))},Sc.prototype.render=Ec,dc=[],pc="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mc=function(n,t){return n.__v.__b-t.__v.__b},Ic.__r=0;var Gc,Xc,Vc,Wc,Jc=0,Kc=[],Zc=[],Qc=fc,nu=Qc.__b,tu=Qc.__r,eu=Qc.diffed,ru=Qc.__c,ou=Qc.unmount,iu=Qc.__;function su(n,t){Qc.__h&&Qc.__h(Xc,n,Jc||t),Jc=0;var e=Xc.__H||(Xc.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:Zc}),e.__[n]}function cu(n){return Jc=1,uu(Su,n)}function uu(n,t,e){var r=su(Gc++,2);if(r.t=n,!r.__c&&(r.__=[e?e(t):Su(void 0,t),function(n){var t=r.__N?r.__N[0]:r.__[0],e=r.t(t,n);t!==e&&(r.__N=[e,r.__[1]],r.__c.setState({}))}],r.__c=Xc,!Xc.u)){var o=function(n,t,e){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(n){return!!n.__c}));if(o.every((function(n){return!n.__N})))return!i||i.call(this,n,t,e);var s=!1;return o.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(s=!0)}})),!(!s&&r.__c.props===n)&&(!i||i.call(this,n,t,e))};Xc.u=!0;var i=Xc.shouldComponentUpdate,s=Xc.componentWillUpdate;Xc.componentWillUpdate=function(n,t,e){if(this.__e){var r=i;i=void 0,o(n,t,e),i=r}s&&s.call(this,n,t,e)},Xc.shouldComponentUpdate=o}return r.__N||r.__}function au(n,t){var e=su(Gc++,3);!Qc.__s&&Eu(e.__H,t)&&(e.__=n,e.i=t,Xc.__H.__h.push(e))}function fu(n,t){var e=su(Gc++,4);!Qc.__s&&Eu(e.__H,t)&&(e.__=n,e.i=t,Xc.__h.push(e))}function lu(n){return Jc=5,hu((function(){return{current:n}}),[])}function du(n,t,e){Jc=6,fu((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==e?e:e.concat(n))}function hu(n,t){var e=su(Gc++,7);return Eu(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function pu(n,t){return Jc=8,hu((function(){return n}),t)}function mu(n){var t=Xc.context[n.__c],e=su(Gc++,9);return e.c=n,t?(null==e.__&&(e.__=!0,t.sub(Xc)),t.props.value):n.__}function bu(n,t){Qc.useDebugValue&&Qc.useDebugValue(t?t(n):n)}function gu(n){var t=su(Gc++,10),e=cu();return t.__=n,Xc.componentDidCatch||(Xc.componentDidCatch=function(n,r){t.__&&t.__(n,r),e[1](n)}),[e[0],function(){e[1](void 0)}]}function _u(){var n=su(Gc++,11);if(!n.__){for(var t=Xc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var e=t.__m||(t.__m=[0,0]);n.__="P"+e[0]+"-"+e[1]++}return n.__}function yu(){for(var n;n=Kc.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(xu),n.__H.__h.forEach(ku),n.__H.__h=[]}catch(t){n.__H.__h=[],Qc.__e(t,n.__v)}}Qc.__b=function(n){Xc=null,nu&&nu(n)},Qc.__=function(n,t){t.__k&&t.__k.__m&&(n.__m=t.__k.__m),iu&&iu(n,t)},Qc.__r=function(n){tu&&tu(n),Gc=0;var t=(Xc=n.__c).__H;t&&(Vc===Xc?(t.__h=[],Xc.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=Zc,n.__N=n.i=void 0}))):(t.__h.forEach(xu),t.__h.forEach(ku),t.__h=[],Gc=0)),Vc=Xc},Qc.diffed=function(n){eu&&eu(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Kc.push(t)&&Wc===Qc.requestAnimationFrame||((Wc=Qc.requestAnimationFrame)||wu)(yu)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==Zc&&(n.__=n.__V),n.i=void 0,n.__V=Zc}))),Vc=Xc=null},Qc.__c=function(n,t){t.some((function(n){try{n.__h.forEach(xu),n.__h=n.__h.filter((function(n){return!n.__||ku(n)}))}catch(e){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Qc.__e(e,n.__v)}})),ru&&ru(n,t)},Qc.unmount=function(n){ou&&ou(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach((function(n){try{xu(n)}catch(n){t=n}})),e.__H=void 0,t&&Qc.__e(t,e.__v))};var vu="function"==typeof requestAnimationFrame;function wu(n){var t,e=function(){clearTimeout(r),vu&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(e,100);vu&&(t=requestAnimationFrame(e))}function xu(n){var t=Xc,e=n.__c;"function"==typeof e&&(n.__c=void 0,e()),Xc=t}function ku(n){var t=Xc;n.__c=n.__(),Xc=t}function Eu(n,t){return!n||n.length!==t.length||t.some((function(t,e){return t!==n[e]}))}function Su(n,t){return"function"==typeof t?t(n):t}const Nu={__proto__:null,useCallback:pu,useContext:mu,useDebugValue:bu,useEffect:au,useErrorBoundary:gu,useId:_u,useImperativeHandle:du,useLayoutEffect:fu,useMemo:hu,useReducer:uu,useRef:lu,useState:cu};const $u="http://www.w3.org/2000/svg";function Cu(){const n=n=>$s.createElementNS($u,n);const t=Zs(n("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"});const e=Zs(n("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});t.appendChild(e);return t}const Tu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function Iu({options:n}){const t=hu((()=>({__html:Cu().outerHTML})),[]);return xc("h2",{class:"dialog__header",__self:this,__source:{fileName:Tu,lineNumber:16}},n.formTitle,n.showBranding?xc("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:Tu,lineNumber:19}}):null)}function ju(n,t){const e=[];if(t.isNameRequired&&!n.name){e.push(t.nameLabel)}if(t.isEmailRequired&&!n.email){e.push(t.emailLabel)}if(!n.message){e.push(t.messageLabel)}return e}const Lu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Mu(n,t){const e=n.get(t);if(typeof e==="string"){return e.trim()}return""}function Du({options:n,defaultEmail:t,defaultName:e,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:c,showName:u,screenshotInput:a}){const{tags:f,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:b,isNameRequired:g,messageLabel:_,messagePlaceholder:y,nameLabel:v,namePlaceholder:w,submitButtonLabel:x,isRequiredLabel:k}=n;const[E,S]=cu(null);const[N,$]=cu(false);const C=a&&a.input;const[T,I]=cu(null);const j=pu((n=>{I(n);$(false)}),[]);const L=pu((n=>{const t=ju(n,{emailLabel:p,isEmailRequired:b,isNameRequired:g,messageLabel:_,nameLabel:v});if(t.length>0){S(`Please enter in the following required fields: ${t.join(", ")}`)}else{S(null)}return t.length===0}),[p,b,g,_,v]);const M=pu((async n=>{try{n.preventDefault();if(!(n.target instanceof HTMLFormElement)){return}const t=new FormData(n.target);const e=await(a&&N?a.value():undefined);const r={name:Mu(t,"name"),email:Mu(t,"email"),message:Mu(t,"message"),attachments:e?[e]:undefined};if(!L(r)){return}try{await o({name:r.name,email:r.email,message:r.message,source:Hs,tags:f},{attachments:r.attachments});i(r)}catch(n){Vs&&G.error(n);S(n);s(n)}}catch(n){}}),[a&&N,i,s]);return xc("form",{class:"form",onSubmit:M,__self:this,__source:{fileName:Lu,lineNumber:144}},C&&N?xc(C,{onError:j,__self:this,__source:{fileName:Lu,lineNumber:146}}):null,xc("div",{class:"form__right","data-sentry-feedback":true,__self:this,__source:{fileName:Lu,lineNumber:149}},xc("div",{class:"form__top",__self:this,__source:{fileName:Lu,lineNumber:150}},E?xc("div",{class:"form__error-container",__self:this,__source:{fileName:Lu,lineNumber:151}},E):null,u?xc("label",{for:"name",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:154}},xc(Ru,{label:v,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:Lu,lineNumber:155}}),xc("input",{class:"form__input",defaultValue:e,id:"name",name:"name",placeholder:w,required:g,type:"text",__self:this,__source:{fileName:Lu,lineNumber:156}})):xc("input",{"aria-hidden":true,value:e,name:"name",type:"hidden",__self:this,__source:{fileName:Lu,lineNumber:167}}),c?xc("label",{for:"email",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:171}},xc(Ru,{label:p,isRequiredLabel:k,isRequired:b,__self:this,__source:{fileName:Lu,lineNumber:172}}),xc("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email",__self:this,__source:{fileName:Lu,lineNumber:173}})):xc("input",{"aria-hidden":true,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:Lu,lineNumber:184}}),xc("label",{for:"message",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:187}},xc(Ru,{label:_,isRequiredLabel:k,isRequired:true,__self:this,__source:{fileName:Lu,lineNumber:188}}),xc("textarea",{autoFocus:true,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:y,required:true,rows:5,__self:this,__source:{fileName:Lu,lineNumber:189}})),C?xc("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:201}},xc("button",{class:"btn btn--default",type:"button",onClick:()=>{I(null);$((n=>!n))},__self:this,__source:{fileName:Lu,lineNumber:202}},N?d:l),T?xc("div",{class:"form__error-container",__self:this,__source:{fileName:Lu,lineNumber:212}},T.message):null):null),xc("div",{class:"btn-group",__self:this,__source:{fileName:Lu,lineNumber:216}},xc("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:Lu,lineNumber:217}},x),xc("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:Lu,lineNumber:220}},h))))}function Ru({label:n,isRequired:t,isRequiredLabel:e}){return xc("span",{class:"form__label__text",__self:this,__source:{fileName:Lu,lineNumber:239}},n,t&&xc("span",{class:"form__label__text--required",__self:this,__source:{fileName:Lu,lineNumber:241}},e))}const Ou=16;const Fu=17;const Au="http://www.w3.org/2000/svg";function Bu(){const n=n=>Ns.document.createElementNS(Au,n);const t=Zs(n("svg"),{width:`${Ou}`,height:`${Fu}`,viewBox:`0 0 ${Ou} ${Fu}`,fill:"inherit"});const e=Zs(n("g"),{clipPath:"url(#clip0_57_156)"});const r=Zs(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"});const o=Zs(n("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(e).append(o,r);const i=n("defs");const s=Zs(n("clipPath"),{id:"clip0_57_156"});const c=Zs(n("rect"),{width:`${Ou}`,height:`${Ou}`,fill:"white",transform:"translate(0 0.5)"});s.appendChild(c);i.appendChild(s);t.appendChild(i).appendChild(s).appendChild(c);return t}const Pu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function qu({open:n,onFormSubmitted:t,...e}){const r=e.options;const o=hu((()=>({__html:Bu().outerHTML})),[]);const[i,s]=cu(null);const c=pu((()=>{if(i){clearTimeout(i);s(null)}t()}),[i]);const u=pu((n=>{e.onSubmitSuccess(n);s(setTimeout((()=>{t();s(null)}),Gs))}),[t]);return xc(Ec,{__self:this,__source:{fileName:Pu,lineNumber:48}},i?xc("div",{class:"success__position",onClick:c,__self:this,__source:{fileName:Pu,lineNumber:50}},xc("div",{class:"success__content",__self:this,__source:{fileName:Pu,lineNumber:51}},r.successMessageText,xc("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:Pu,lineNumber:53}}))):xc("dialog",{class:"dialog",onClick:r.onFormClose,open:n,__self:this,__source:{fileName:Pu,lineNumber:57}},xc("div",{class:"dialog__position",__self:this,__source:{fileName:Pu,lineNumber:58}},xc("div",{class:"dialog__content",onClick:n=>{n.stopPropagation()},__self:this,__source:{fileName:Pu,lineNumber:59}},xc(Iu,{options:r,__self:this,__source:{fileName:Pu,lineNumber:66}}),xc(Du,{...e,onSubmitSuccess:u,__self:this,__source:{fileName:Pu,lineNumber:67}})))))}const Uu=`\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n`;const zu=`\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n`;const Hu=`\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 var(--form-width, 272px);\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: auto;\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n`;const Yu=`\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n`;const Gu=`\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n`;function Xu(n){const t=$s.createElement("style");t.textContent=`\n:host {\n --dialog-inset: var(--inset);\n}\n\n${Uu}\n${zu}\n${Hu}\n${Yu}\n${Gu}\n`;if(n){t.setAttribute("nonce",n)}return t}const Vu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";function Wu(){const n=_e().getUser();const t=ye().getUser();const e=ve().getUser();if(n&&Object.keys(n).length){return n}if(t&&Object.keys(t).length){return t}return e}const Ju=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:n,screenshotIntegration:t,sendFeedback:e,shadow:r})=>{const o=r;const i=n.useSentryUser;const s=Wu();const c=$s.createElement("div");const u=Xu(n.styleNonce);let a="";const f={get el(){return c},appendToDom(){if(!o.contains(u)&&!o.contains(c)){o.appendChild(u);o.appendChild(c)}},removeFromDom(){o.removeChild(c);o.removeChild(u);$s.body.style.overflow=a},open(){d(true);n.onFormOpen&&n.onFormOpen();a=$s.body.style.overflow;$s.body.style.overflow="hidden"},close(){d(false);$s.body.style.overflow=a}};const l=t&&t.createInput({h:xc,hooks:Nu,dialog:f,options:n});const d=t=>{Yc(xc(qu,{options:n,screenshotInput:l,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,defaultName:i&&s&&s[i.name]||"",defaultEmail:i&&s&&s[i.email]||"",onFormClose:()=>{d(false);n.onFormClose&&n.onFormClose()},onSubmit:e,onSubmitSuccess:t=>{d(false);n.onSubmitSuccess&&n.onSubmitSuccess(t)},onSubmitError:t=>{n.onSubmitError&&n.onSubmitError(t)},onFormSubmitted:()=>{n.onFormSubmitted&&n.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:Vu,lineNumber:67}}),c)};return f}});const Ku="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function Zu({h:n}){return function t({top:e,left:r,corner:o,onGrabButton:i}){return n("button",{class:`editor__crop-corner editor__crop-corner--${o} `,style:{top:e,left:r},onMouseDown:n=>{n.preventDefault();i(n,o)},onClick:n=>{n.preventDefault()},__self:this,__source:{fileName:Ku,lineNumber:22}})}}function Qu(n){const t=$s.createElement("style");const e="#1A141F";const r="#302735";t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${e};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${e} 8px,\n ${e} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function na({hooks:n}){return function t({onBeforeScreenshot:e,onScreenshot:r,onAfterScreenshot:o,onError:i}){n.useEffect((()=>{const n=async()=>{e();const n=await Cs.mediaDevices.getDisplayMedia({video:{width:Ns.innerWidth*Ns.devicePixelRatio,height:Ns.innerHeight*Ns.devicePixelRatio},audio:false,monitorTypeSurfaces:"exclude",preferCurrentTab:true,selfBrowserSurface:"include",surfaceSwitching:"exclude"});const t=$s.createElement("video");await new Promise(((e,o)=>{t.srcObject=n;t.onloadedmetadata=()=>{r(t);n.getTracks().forEach((n=>n.stop()));e()};t.play().catch(o)}));o()};n().catch(i)}),[])}}const ta="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx";const ea=30;const ra=3;const oa=ea+ra;const ia=Ns.devicePixelRatio;const sa=n=>({x:Math.min(n.startX,n.endX),y:Math.min(n.startY,n.endY),width:Math.abs(n.startX-n.endX),height:Math.abs(n.startY-n.endY)});const ca=n=>{const t=n.clientHeight;const e=n.clientWidth;const r=n.width/n.height;let o=t*r;let i=t;if(o>e){o=e;i=e/r}const s=(e-o)/2;const c=(t-i)/2;return{startX:s,startY:c,endX:o+s,endY:i+c}};function ua({h:n,hooks:t,imageBuffer:e,dialog:r,options:o}){const i=na({hooks:t});return function s({onError:c}){const u=t.useMemo((()=>({__html:Qu(o.styleNonce).innerText})),[]);const a=Zu({h:n});const f=t.useRef(null);const l=t.useRef(null);const d=t.useRef(null);const[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0});const[m,b]=t.useState(false);const[g,_]=t.useState(false);t.useEffect((()=>{Ns.addEventListener("resize",y,false)}),[]);function y(){const n=d.current;const t=sa(ca(e));if(n){n.width=t.width*ia;n.height=t.height*ia;n.style.width=`${t.width}px`;n.style.height=`${t.height}px`;const e=n.getContext("2d");if(e){e.scale(ia,ia)}}const r=l.current;if(r){r.style.width=`${t.width}px`;r.style.height=`${t.height}px`}p({startX:0,startY:0,endX:t.width,endY:t.height})}t.useEffect((()=>{const n=d.current;if(!n){return}const t=n.getContext("2d");if(!t){return}const r=sa(ca(e));const o=sa(h);t.clearRect(0,0,r.width,r.height);t.fillStyle="rgba(0, 0, 0, 0.5)";t.fillRect(0,0,r.width,r.height);t.clearRect(o.x,o.y,o.width,o.height);t.strokeStyle="#ffffff";t.lineWidth=3;t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2);t.strokeStyle="#000000";t.lineWidth=1;t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)}),[h]);function v(n,t){b(false);_(true);const e=w(t);const r=()=>{$s.removeEventListener("mousemove",e);$s.removeEventListener("mouseup",r);b(true);_(false)};$s.addEventListener("mouseup",r);$s.addEventListener("mousemove",e)}const w=t.useCallback((n=>function(t){if(!d.current){return}const e=d.current;const r=e.getBoundingClientRect();const o=t.clientX-r.x;const i=t.clientY-r.y;switch(n){case"top-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-oa),startY:Math.min(Math.max(0,i),n.endY-oa)})));break;case"top-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ia),n.startX+oa),startY:Math.min(Math.max(0,i),n.endY-oa)})));break;case"bottom-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-oa),endY:Math.max(Math.min(i,e.height/ia),n.startY+oa)})));break;case"bottom-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ia),n.startX+oa),endY:Math.max(Math.min(i,e.height/ia),n.startY+oa)})));break}}),[]);const x=t.useRef({initialX:0,initialY:0});function k(n){if(g)return;x.current={initialX:n.clientX,initialY:n.clientY};const t=n=>{const t=d.current;if(!t)return;const e=n.clientX-x.current.initialX;const r=n.clientY-x.current.initialY;p((o=>{const i=Math.max(0,Math.min(o.startX+e,t.width/ia-(o.endX-o.startX)));const s=Math.max(0,Math.min(o.startY+r,t.height/ia-(o.endY-o.startY)));const c=i+(o.endX-o.startX);const u=s+(o.endY-o.startY);x.current.initialX=n.clientX;x.current.initialY=n.clientY;return{startX:i,startY:s,endX:c,endY:u}}))};const e=()=>{$s.removeEventListener("mousemove",t);$s.removeEventListener("mouseup",e)};$s.addEventListener("mousemove",t);$s.addEventListener("mouseup",e)}function E(){const n=$s.createElement("canvas");const t=sa(ca(e));const r=sa(h);n.width=r.width*ia;n.height=r.height*ia;const o=n.getContext("2d");if(o&&e){o.drawImage(e,r.x/t.width*e.width,r.y/t.height*e.height,r.width/t.width*e.width,r.height/t.height*e.height,0,0,n.width,n.height)}const i=e.getContext("2d");if(i){i.clearRect(0,0,e.width,e.height);e.width=n.width;e.height=n.height;e.style.width=`${r.width}px`;e.style.height=`${r.height}px`;i.drawImage(n,0,0);y()}}i({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((n=>{const t=e.getContext("2d");if(!t){throw new Error("Could not get canvas context")}e.width=n.videoWidth;e.height=n.videoHeight;e.style.width="100%";e.style.height="100%";t.drawImage(n,0,0)}),[e]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const n=f.current;n&&n.appendChild(e);y()}),[]),onError:t.useCallback((n=>{r.el.style.display="block";c(n)}),[])});return n("div",{class:"editor",__self:this,__source:{fileName:ta,lineNumber:315}},n("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:ta,lineNumber:316}}),n("div",{class:"editor__canvas-container",ref:f,__self:this,__source:{fileName:ta,lineNumber:317}},n("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l,__self:this,__source:{fileName:ta,lineNumber:318}},n("canvas",{onMouseDown:k,style:{position:"absolute",cursor:m?"move":"auto"},ref:d,__self:this,__source:{fileName:ta,lineNumber:319}}),n(a,{left:h.startX-ra,top:h.startY-ra,onGrabButton:v,corner:"top-left",__self:this,__source:{fileName:ta,lineNumber:324}}),n(a,{left:h.endX-ea+ra,top:h.startY-ra,onGrabButton:v,corner:"top-right",__self:this,__source:{fileName:ta,lineNumber:330}}),n(a,{left:h.startX-ra,top:h.endY-ea+ra,onGrabButton:v,corner:"bottom-left",__self:this,__source:{fileName:ta,lineNumber:336}}),n(a,{left:h.endX-ea+ra,top:h.endY-ea+ra,onGrabButton:v,corner:"bottom-right",__self:this,__source:{fileName:ta,lineNumber:342}}),n("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:ta,lineNumber:348}},n("button",{onClick:n=>{n.preventDefault();if(d.current){p({startX:0,startY:0,endX:d.current.width/ia,endY:d.current.height/ia})}b(false)},class:"btn btn--default",__self:this,__source:{fileName:ta,lineNumber:356}},o.cancelButtonLabel),n("button",{onClick:n=>{n.preventDefault();E();b(false)},class:"btn btn--primary",__self:this,__source:{fileName:ta,lineNumber:373}},o.confirmButtonLabel)))))}}const aa=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:n,hooks:t,dialog:e,options:r})=>{const o=$s.createElement("canvas");return{input:ua({h:n,hooks:t,imageBuffer:o,dialog:e,options:r}),value:async()=>{const n=await new Promise((n=>{o.toBlob(n,"image/png")}));if(n){const t=new Uint8Array(await n.arrayBuffer());const e={data:t,filename:"screenshot.png",contentType:"application/png"};return e}return undefined}}}});const fa=uc({lazyLoadIntegration:Es,getModalIntegration:()=>Ju,getScreenshotIntegration:()=>aa});export{r as E,vs as a,$o as b,_r as c,fa as f,vr as i};
2
- //# sourceMappingURL=p-3ce8e281.js.map
1
+ import{p as n,h as t}from"./p-faa30369.js";var e;(function(n){n["Error"]="error";n["Warning"]="warning";n["Info"]="info";n["Success"]="success"})(e||(e={}));var r;(function(n){n["Component"]="component";n["Api"]="api";n["Auth"]="auth"})(r||(r={}));var o;(function(n){n["endtime_not_in_future"]="endtime_not_in_future";n["no_booking_info"]="no_booking_info";n["no_timeslot_selected"]="no_timeslot_selected";n["no_timezone_selected"]="no_timezone_selected";n["no_booking_id"]="no_booking_id";n["no_salt"]="no_salt";n["invalid_start_time"]="invalid_start_time";n["invalid_end_time"]="invalid_end_time";n["invalid_timezone"]="invalid_timezone";n["no_config_id"]="no_config_id"})(o||(o={}));const i=Object.prototype.toString;function s(n){switch(i.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return true;default:return v(n,Error)}}function c(n,t){return i.call(n)===`[object ${t}]`}function u(n){return c(n,"ErrorEvent")}function a(n){return c(n,"DOMError")}function f(n){return c(n,"DOMException")}function l(n){return c(n,"String")}function d(n){return typeof n==="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function h(n){return n===null||d(n)||typeof n!=="object"&&typeof n!=="function"}function p(n){return c(n,"Object")}function m(n){return typeof Event!=="undefined"&&v(n,Event)}function b(n){return typeof Element!=="undefined"&&v(n,Element)}function g(n){return c(n,"RegExp")}function _(n){return Boolean(n&&n.then&&typeof n.then==="function")}function y(n){return p(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function v(n,t){try{return n instanceof t}catch(n){return false}}function w(n){return!!(typeof n==="object"&&n!==null&&(n.__isVue||n._isVue))}function x(n,t=0){if(typeof n!=="string"||t===0){return n}return n.length<=t?n:`${n.slice(0,t)}...`}function k(n,t){if(!Array.isArray(n)){return""}const e=[];for(let t=0;t<n.length;t++){const r=n[t];try{if(w(r)){e.push("[VueViewModel]")}else{e.push(String(r))}}catch(n){e.push("[value cannot be serialized]")}}return e.join(t)}function E(n,t,e=false){if(!l(n)){return false}if(g(t)){return t.test(n)}if(l(t)){return e?n===t:n.includes(t)}return false}function S(n,t=[],e=false){return t.some((t=>E(n,t,e)))}function N(n,t,e=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!v(s.originalException,Error)){return}const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(c){i.exception.values=I($(n,t,o,s.originalException,r,i.exception.values,c,0),e)}}function $(n,t,e,r,o,i,s,c){if(i.length>=e+1){return i}let u=[...i];if(v(r[o],Error)){C(s,c);const i=n(t,r[o]);const a=u.length;T(i,o,a,c);u=$(n,t,e,r[o],o,[i,...u],i,a)}if(Array.isArray(r.errors)){r.errors.forEach(((r,i)=>{if(v(r,Error)){C(s,c);const a=n(t,r);const f=u.length;T(a,`errors[${i}]`,f,c);u=$(n,t,e,r,o,[a,...u],a,f)}}))}return u}function C(n,t){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,...n.type==="AggregateError"&&{is_exception_group:true},exception_id:t}}function T(n,t,e,r){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,type:"chained",source:t,exception_id:e,parent_id:r}}function I(n,t){return n.map((n=>{if(n.value){n.value=x(n.value,t)}return n}))}const j="8.28.0";const L=globalThis;function M(n,t,e){const r=e||L;const o=r.__SENTRY__=r.__SENTRY__||{};const i=o[j]=o[j]||{};return i[n]||(i[n]=t())}const D=L;const R=80;function O(n,t={}){if(!n){return"<unknown>"}try{let e=n;const r=5;const o=[];let i=0;let s=0;const c=" > ";const u=c.length;let a;const f=Array.isArray(t)?t:t.keyAttrs;const l=!Array.isArray(t)&&t.maxStringLength||R;while(e&&i++<r){a=F(e,f);if(a==="html"||i>1&&s+o.length*u+a.length>=l){break}o.push(a);s+=a.length;e=e.parentNode}return o.reverse().join(c)}catch(n){return"<unknown>"}}function F(n,t){const e=n;const r=[];if(!e||!e.tagName){return""}if(D.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const o=t&&t.length?t.filter((n=>e.getAttribute(n))).map((n=>[n,e.getAttribute(n)])):null;if(o&&o.length){o.forEach((n=>{r.push(`[${n[0]}="${n[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const n=e.className;if(n&&l(n)){const t=n.split(/\s+/);for(const n of t){r.push(`.${n}`)}}}const i=["aria-label","type","name","title","alt"];for(const n of i){const t=e.getAttribute(n);if(t){r.push(`[${n}="${t}"]`)}}return r.join("")}function A(){try{return D.document.location.href}catch(n){return""}}function B(n){if(!D.HTMLElement){return null}let t=n;const e=5;for(let n=0;n<e;n++){if(!t){return null}if(t instanceof HTMLElement){if(t.dataset["sentryComponent"]){return t.dataset["sentryComponent"]}if(t.dataset["sentryElement"]){return t.dataset["sentryElement"]}}t=t.parentNode}return null}const P=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const q="Sentry Logger ";const U=["debug","info","warn","error","log","assert","trace"];const z={};function H(n){if(!("console"in L)){return n()}const t=L.console;const e={};const r=Object.keys(z);r.forEach((n=>{const r=z[n];e[n]=t[n];t[n]=r}));try{return n()}finally{r.forEach((n=>{t[n]=e[n]}))}}function Y(){let n=false;const t={enable:()=>{n=true},disable:()=>{n=false},isEnabled:()=>n};if(P){U.forEach((e=>{t[e]=(...t)=>{if(n){H((()=>{L.console[e](`${q}[${e}]:`,...t)}))}}}))}else{U.forEach((n=>{t[n]=()=>undefined}))}return t}const G=Y();const X=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function V(n){return n==="http"||n==="https"}function W(n,t=false){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=n;return`${c}://${u}${t&&o?`:${o}`:""}`+`@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function J(n){const t=X.exec(n);if(!t){H((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));return undefined}const[e,r,o="",i="",s="",c=""]=t.slice(1);let u="";let a=c;const f=a.split("/");if(f.length>1){u=f.slice(0,-1).join("/");a=f.pop()}if(a){const n=a.match(/^\d+/);if(n){a=n[0]}}return K({host:i,pass:o,path:u,projectId:a,port:s,protocol:e,publicKey:r})}function K(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function Z(n){if(!P){return true}const{port:t,projectId:e,protocol:r}=n;const o=["protocol","publicKey","host","projectId"];const i=o.find((t=>{if(!n[t]){G.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(i){return false}if(!e.match(/^\d+$/)){G.error(`Invalid Sentry Dsn: Invalid projectId ${e}`);return false}if(!V(r)){G.error(`Invalid Sentry Dsn: Invalid protocol ${r}`);return false}if(t&&isNaN(parseInt(t,10))){G.error(`Invalid Sentry Dsn: Invalid port ${t}`);return false}return true}function Q(n){const t=typeof n==="string"?J(n):K(n);if(!t||!Z(t)){return undefined}return t}class nn extends Error{constructor(n,t="warn"){super(n);this.message=n;this.name=new.target.prototype.constructor.name;Object.setPrototypeOf(this,new.target.prototype);this.logLevel=t}}function tn(n,t,e){if(!(t in n)){return}const r=n[t];const o=e(r);if(typeof o==="function"){rn(o,r)}n[t]=o}function en(n,t,e){try{Object.defineProperty(n,t,{value:e,writable:true,configurable:true})}catch(e){P&&G.log(`Failed to add non-enumerable property "${t}" to object`,n)}}function rn(n,t){try{const e=t.prototype||{};n.prototype=t.prototype=e;en(n,"__sentry_original__",t)}catch(n){}}function on(n){return n.__sentry_original__}function sn(n){return Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&")}function cn(n){if(s(n)){return{message:n.message,name:n.name,stack:n.stack,...an(n)}}else if(m(n)){const t={type:n.type,target:un(n.target),currentTarget:un(n.currentTarget),...an(n)};if(typeof CustomEvent!=="undefined"&&v(n,CustomEvent)){t.detail=n.detail}return t}else{return n}}function un(n){try{return b(n)?O(n):Object.prototype.toString.call(n)}catch(n){return"<unknown>"}}function an(n){if(typeof n==="object"&&n!==null){const t={};for(const e in n){if(Object.prototype.hasOwnProperty.call(n,e)){t[e]=n[e]}}return t}else{return{}}}function fn(n,t=40){const e=Object.keys(cn(n));e.sort();const r=e[0];if(!r){return"[object has no keys]"}if(r.length>=t){return x(r,t)}for(let n=e.length;n>0;n--){const r=e.slice(0,n).join(", ");if(r.length>t){continue}if(n===e.length){return r}return x(r,t)}return""}function ln(n){const t=new Map;return dn(n,t)}function dn(n,t){if(hn(n)){const e=t.get(n);if(e!==undefined){return e}const r={};t.set(n,r);for(const e of Object.keys(n)){if(typeof n[e]!=="undefined"){r[e]=dn(n[e],t)}}return r}if(Array.isArray(n)){const e=t.get(n);if(e!==undefined){return e}const r=[];t.set(n,r);n.forEach((n=>{r.push(dn(n,t))}));return r}return n}function hn(n){if(!p(n)){return false}try{const t=Object.getPrototypeOf(n).constructor.name;return!t||t==="Object"}catch(n){return true}}const pn=50;const mn="?";const bn=/\(error: (.*)\)/;const gn=/captureMessage|captureException/;function _n(...n){const t=n.sort(((n,t)=>n[0]-t[0])).map((n=>n[1]));return(n,e=0,r=0)=>{const o=[];const i=n.split("\n");for(let n=e;n<i.length;n++){const e=i[n];if(e.length>1024){continue}const s=bn.test(e)?e.replace(bn,"$1"):e;if(s.match(/\S*Error: /)){continue}for(const n of t){const t=n(s);if(t){o.push(t);break}}if(o.length>=pn+r){break}}return vn(o.slice(r))}}function yn(n){if(Array.isArray(n)){return _n(...n)}return n}function vn(n){if(!n.length){return[]}const t=Array.from(n);if(/sentryWrapped/.test(wn(t).function||"")){t.pop()}t.reverse();if(gn.test(wn(t).function||"")){t.pop();if(gn.test(wn(t).function||"")){t.pop()}}return t.slice(0,pn).map((n=>({...n,filename:n.filename||wn(t).filename,function:n.function||mn})))}function wn(n){return n[n.length-1]||{}}const xn="<anonymous>";function kn(n){try{if(!n||typeof n!=="function"){return xn}return n.name||xn}catch(n){return xn}}function En(n){const t=n.exception;if(t){const n=[];try{t.values.forEach((t=>{if(t.stacktrace.frames){n.push(...t.stacktrace.frames)}}));return n}catch(n){return undefined}}return undefined}const Sn={};const Nn={};function $n(n,t){Sn[n]=Sn[n]||[];Sn[n].push(t)}function Cn(n,t){if(!Nn[n]){t();Nn[n]=true}}function Tn(n,t){const e=n&&Sn[n];if(!e){return}for(const r of e){try{r(t)}catch(t){P&&G.error(`Error while triggering instrumentation handler.\nType: ${n}\nName: ${kn(r)}\nError:`,t)}}}function In(n){const t="console";$n(t,n);Cn(t,jn)}function jn(){if(!("console"in L)){return}U.forEach((function(n){if(!(n in L.console)){return}tn(L.console,n,(function(t){z[n]=t;return function(...t){const e={args:t,level:n};Tn("console",e);const r=z[n];r&&r.apply(L.console,t)}}))}))}const Ln=L;function Mn(){if(!("fetch"in Ln)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(n){return false}}function Dn(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Rn(){if(typeof EdgeRuntime==="string"){return true}if(!Mn()){return false}if(Dn(Ln.fetch)){return true}let n=false;const t=Ln.document;if(t&&typeof t.createElement==="function"){try{const e=t.createElement("iframe");e.hidden=true;t.head.appendChild(e);if(e.contentWindow&&e.contentWindow.fetch){n=Dn(e.contentWindow.fetch)}t.head.removeChild(e)}catch(n){P&&G.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}}return n}const On=1e3;function Fn(){return Date.now()/On}function An(){const{performance:n}=L;if(!n||!n.now){return Fn}const t=Date.now()-n.now();const e=n.timeOrigin==undefined?t:n.timeOrigin;return()=>(e+n.now())/On}const Bn=An();(()=>{const{performance:n}=L;if(!n||!n.now){return undefined}const t=3600*1e3;const e=n.now();const r=Date.now();const o=n.timeOrigin?Math.abs(n.timeOrigin+e-r):t;const i=o<t;const s=n.timing&&n.timing.navigationStart;const c=typeof s==="number";const u=c?Math.abs(s+e-r):t;const a=u<t;if(i||a){if(o<=u){return n.timeOrigin}else{return s}}return r})();function Pn(n,t){const e="fetch";$n(e,n);Cn(e,(()=>qn(undefined,t)))}function qn(n,t=false){if(t&&!Rn()){return}tn(L,"fetch",(function(t){return function(...e){const{method:r,url:o}=Hn(e);const i={args:e,fetchData:{method:r,url:o},startTimestamp:Bn()*1e3};if(!n){Tn("fetch",{...i})}const c=(new Error).stack;return t.apply(L,e).then((async t=>{if(n){n(t)}else{Tn("fetch",{...i,endTimestamp:Bn()*1e3,response:t})}return t}),(n=>{Tn("fetch",{...i,endTimestamp:Bn()*1e3,error:n});if(s(n)&&n.stack===undefined){n.stack=c;en(n,"framesToPop",1)}throw n}))}}))}function Un(n,t){return!!n&&typeof n==="object"&&!!n[t]}function zn(n){if(typeof n==="string"){return n}if(!n){return""}if(Un(n,"url")){return n.url}if(n.toString){return n.toString()}return""}function Hn(n){if(n.length===0){return{method:"GET",url:""}}if(n.length===2){const[t,e]=n;return{url:zn(t),method:Un(e,"method")?String(e.method).toUpperCase():"GET"}}const t=n[0];return{url:zn(t),method:Un(t,"method")?String(t.method).toUpperCase():"GET"}}let Yn=null;function Gn(n){const t="error";$n(t,n);Cn(t,Xn)}function Xn(){Yn=L.onerror;L.onerror=function(n,t,e,r,o){const i={column:r,error:o,line:e,msg:n,url:t};Tn("error",i);if(Yn&&!Yn.__SENTRY_LOADER__){return Yn.apply(this,arguments)}return false};L.onerror.__SENTRY_INSTRUMENTED__=true}let Vn=null;function Wn(n){const t="unhandledrejection";$n(t,n);Cn(t,Jn)}function Jn(){Vn=L.onunhandledrejection;L.onunhandledrejection=function(n){const t=n;Tn("unhandledrejection",t);if(Vn&&!Vn.__SENTRY_LOADER__){return Vn.apply(this,arguments)}return true};L.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}function Kn(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Zn(){return"npm"}function Qn(){return!Kn()&&Object.prototype.toString.call(typeof n!=="undefined"?n:0)==="[object process]"}function nt(){return typeof window!=="undefined"&&(!Qn()||tt())}function tt(){return L.process!==undefined&&L.process.type==="renderer"}function et(){const n=typeof WeakSet==="function";const t=n?new WeakSet:[];function e(e){if(n){if(t.has(e)){return true}t.add(e);return false}for(let n=0;n<t.length;n++){const r=t[n];if(r===e){return true}}t.push(e);return false}function r(e){if(n){t.delete(e)}else{for(let n=0;n<t.length;n++){if(t[n]===e){t.splice(n,1);break}}}}return[e,r]}function rt(){const n=L;const t=n.crypto||n.msCrypto;let e=()=>Math.random()*16;try{if(t&&t.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t&&t.getRandomValues){e=()=>{const n=new Uint8Array(1);t.getRandomValues(n);return n[0]}}}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(n=>(n^(e()&15)>>n/4).toString(16)))}function ot(n){return n.exception&&n.exception.values?n.exception.values[0]:undefined}function it(n){const{message:t,event_id:e}=n;if(t){return t}const r=ot(n);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function st(n,t,e){const r=n.exception=n.exception||{};const o=r.values=r.values||[];const i=o[0]=o[0]||{};if(!i.value){i.value=t||""}if(!i.type){i.type=e||"Error"}}function ct(n,t){const e=ot(n);if(!e){return}const r={type:"generic",handled:true};const o=e.mechanism;e.mechanism={...r,...o,...t};if(t&&"data"in t){const n={...o&&o.data,...t.data};e.mechanism.data=n}}function ut(n){if(n&&n.__sentry_captured__){return true}try{en(n,"__sentry_captured__",true)}catch(n){}return false}function at(n){return Array.isArray(n)?n:[n]}function ft(n,t=100,e=+Infinity){try{return dt("",n,t,e)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function lt(n,t=3,e=100*1024){const r=ft(n,t);if(bt(r)>e){return lt(n,t-1,e)}return r}function dt(n,t,e=+Infinity,r=+Infinity,o=et()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t)){return t}const c=ht(n,t);if(!c.startsWith("[object ")){return c}if(t["__sentry_skip_normalization__"]){return t}const u=typeof t["__sentry_override_normalization_depth__"]==="number"?t["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(i(t)){return"[Circular ~]"}const a=t;if(a&&typeof a.toJSON==="function"){try{const n=a.toJSON();return dt("",n,u-1,r,o)}catch(n){}}const f=Array.isArray(t)?[]:{};let l=0;const d=cn(t);for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n)){continue}if(l>=r){f[n]="[MaxProperties ~]";break}const t=d[n];f[n]=dt(n,t,u-1,r,o);l++}s(t);return f}function ht(n,e){try{if(n==="domain"&&e&&typeof e==="object"&&e._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof t!=="undefined"&&e===t){return"[Global]"}if(typeof window!=="undefined"&&e===window){return"[Window]"}if(typeof document!=="undefined"&&e===document){return"[Document]"}if(w(e)){return"[VueViewModel]"}if(y(e)){return"[SyntheticEvent]"}if(typeof e==="number"&&e!==e){return"[NaN]"}if(typeof e==="function"){return`[Function: ${kn(e)}]`}if(typeof e==="symbol"){return`[${String(e)}]`}if(typeof e==="bigint"){return`[BigInt: ${String(e)}]`}const r=pt(e);if(/^HTML(\w*)Element$/.test(r)){return`[HTMLElement: ${r}]`}return`[object ${r}]`}catch(n){return`**non-serializable** (${n})`}}function pt(n){const t=Object.getPrototypeOf(n);return t?t.constructor.name:"null prototype"}function mt(n){return~-encodeURI(n).split(/%..|./).length}function bt(n){return mt(JSON.stringify(n))}var gt;(function(n){const t=0;n[n["PENDING"]=t]="PENDING";const e=1;n[n["RESOLVED"]=e]="RESOLVED";const r=2;n[n["REJECTED"]=r]="REJECTED"})(gt||(gt={}));function _t(n){return new vt((t=>{t(n)}))}function yt(n){return new vt(((t,e)=>{e(n)}))}class vt{constructor(n){vt.prototype.__init.call(this);vt.prototype.__init2.call(this);vt.prototype.__init3.call(this);vt.prototype.__init4.call(this);this._state=gt.PENDING;this._handlers=[];try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}then(n,t){return new vt(((e,r)=>{this._handlers.push([false,t=>{if(!n){e(t)}else{try{e(n(t))}catch(n){r(n)}}},n=>{if(!t){r(n)}else{try{e(t(n))}catch(n){r(n)}}}]);this._executeHandlers()}))}catch(n){return this.then((n=>n),n)}finally(n){return new vt(((t,e)=>{let r;let o;return this.then((t=>{o=false;r=t;if(n){n()}}),(t=>{o=true;r=t;if(n){n()}})).then((()=>{if(o){e(r);return}t(r)}))}))}__init(){this._resolve=n=>{this._setResult(gt.RESOLVED,n)}}__init2(){this._reject=n=>{this._setResult(gt.REJECTED,n)}}__init3(){this._setResult=(n,t)=>{if(this._state!==gt.PENDING){return}if(_(t)){void t.then(this._resolve,this._reject);return}this._state=n;this._value=t;this._executeHandlers()}}__init4(){this._executeHandlers=()=>{if(this._state===gt.PENDING){return}const n=this._handlers.slice();this._handlers=[];n.forEach((n=>{if(n[0]){return}if(this._state===gt.RESOLVED){n[1](this._value)}if(this._state===gt.REJECTED){n[2](this._value)}n[0]=true}))}}}function wt(n){const t=[];function e(){return n===undefined||t.length<n}function r(n){return t.splice(t.indexOf(n),1)[0]||Promise.resolve(undefined)}function o(n){if(!e()){return yt(new nn("Not adding Promise because buffer limit was reached."))}const o=n();if(t.indexOf(o)===-1){t.push(o)}void o.then((()=>r(o))).then(null,(()=>r(o).then(null,(()=>{}))));return o}function i(n){return new vt(((e,r)=>{let o=t.length;if(!o){return e(true)}const i=setTimeout((()=>{if(n&&n>0){e(false)}}),n);t.forEach((n=>{void _t(n).then((()=>{if(! --o){clearTimeout(i);e(true)}}),r)}))}))}return{$:t,add:o,drain:i}}function xt(n){if(!n){return{}}const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}const e=t[6]||"";const r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:e,hash:r,relative:t[5]+e+r}}const kt=["fatal","error","warning","log","info","debug"];function Et(n){return n==="warn"?"warning":kt.includes(n)?n:"log"}const St="sentry-";const Nt=/^sentry-/;function $t(n){const t=Ct(n);if(!t){return undefined}const e=Object.entries(t).reduce(((n,[t,e])=>{if(t.match(Nt)){const r=t.slice(St.length);n[r]=e}return n}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function Ct(n){if(!n||!l(n)&&!Array.isArray(n)){return undefined}if(Array.isArray(n)){return n.reduce(((n,t)=>{const e=Tt(t);Object.entries(e).forEach((([t,e])=>{n[t]=e}));return n}),{})}return Tt(n)}function Tt(n){return n.split(",").map((n=>n.split("=").map((n=>decodeURIComponent(n.trim()))))).reduce(((n,[t,e])=>{if(t&&e){n[t]=e}return n}),{})}function It(n,t=[]){return[n,t]}function jt(n,t){const[e,r]=n;return[e,[...r,t]]}function Lt(n,t){const e=n[1];for(const n of e){const e=n[0].type;const r=t(n,e);if(r){return true}}return false}function Mt(n){return L.__SENTRY__&&L.__SENTRY__.encodePolyfill?L.__SENTRY__.encodePolyfill(n):(new TextEncoder).encode(n)}function Dt(n){const[t,e]=n;let r=JSON.stringify(t);function o(n){if(typeof r==="string"){r=typeof n==="string"?r+n:[Mt(r),n]}else{r.push(typeof n==="string"?Mt(n):n)}}for(const n of e){const[t,e]=n;o(`\n${JSON.stringify(t)}\n`);if(typeof e==="string"||e instanceof Uint8Array){o(e)}else{let n;try{n=JSON.stringify(e)}catch(t){n=JSON.stringify(ft(e))}o(n)}}return typeof r==="string"?r:Rt(r)}function Rt(n){const t=n.reduce(((n,t)=>n+t.length),0);const e=new Uint8Array(t);let r=0;for(const t of n){e.set(t,r);r+=t.length}return e}function Ot(n){const t=typeof n.data==="string"?Mt(n.data):n.data;return[ln({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const Ft={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function At(n){return Ft[n]}function Bt(n){if(!n||!n.sdk){return}const{name:t,version:e}=n.sdk;return{name:t,version:e}}function Pt(n,t,e,r){const o=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!e&&r&&{dsn:W(r)},...o&&{trace:ln({...o})}}}function qt(n,t,e){const r=[{type:"client_report"},{timestamp:e||Fn(),discarded_events:n}];return It(t?{dsn:t}:{},[r])}const Ut=60*1e3;function zt(n,t=Date.now()){const e=parseInt(`${n}`,10);if(!isNaN(e)){return e*1e3}const r=Date.parse(`${n}`);if(!isNaN(r)){return r-t}return Ut}function Ht(n,t){return n[t]||n.all||0}function Yt(n,t,e=Date.now()){return Ht(n,t)>e}function Gt(n,{statusCode:t,headers:e},r=Date.now()){const o={...n};const i=e&&e["x-sentry-rate-limits"];const s=e&&e["retry-after"];if(i){for(const n of i.trim().split(",")){const[t,e,,,i]=n.split(":",5);const s=parseInt(t,10);const c=(!isNaN(s)?s:60)*1e3;if(!e){o.all=r+c}else{for(const n of e.split(";")){if(n==="metric_bucket"){if(!i||i.split(";").includes("custom")){o[n]=r+c}}else{o[n]=r+c}}}}}else if(s){o.all=r+zt(s,r)}else if(t===429){o.all=r+60*1e3}return o}function Xt(){return{traceId:rt(),spanId:rt().substring(16)}}const Vt=L;function Wt(){const n=Vt.chrome;const t=n&&n.app&&n.app.runtime;const e="history"in Vt&&!!Vt.history.pushState&&!!Vt.history.replaceState;return!t&&e}const Jt=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Kt(){Zt(L);return L}function Zt(n){const t=n.__SENTRY__=n.__SENTRY__||{};t.version=t.version||j;return t[j]=t[j]||{}}function Qt(n){const t=Bn();const e={sid:rt(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>ee(e)};if(n){ne(e,n)}return e}function ne(n,t={}){if(t.user){if(!n.ipAddress&&t.user.ip_address){n.ipAddress=t.user.ip_address}if(!n.did&&!t.did){n.did=t.user.id||t.user.email||t.user.username}}n.timestamp=t.timestamp||Bn();if(t.abnormal_mechanism){n.abnormal_mechanism=t.abnormal_mechanism}if(t.ignoreDuration){n.ignoreDuration=t.ignoreDuration}if(t.sid){n.sid=t.sid.length===32?t.sid:rt()}if(t.init!==undefined){n.init=t.init}if(!n.did&&t.did){n.did=`${t.did}`}if(typeof t.started==="number"){n.started=t.started}if(n.ignoreDuration){n.duration=undefined}else if(typeof t.duration==="number"){n.duration=t.duration}else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}if(t.release){n.release=t.release}if(t.environment){n.environment=t.environment}if(!n.ipAddress&&t.ipAddress){n.ipAddress=t.ipAddress}if(!n.userAgent&&t.userAgent){n.userAgent=t.userAgent}if(typeof t.errors==="number"){n.errors=t.errors}if(t.status){n.status=t.status}}function te(n,t){let e={};if(t){e={status:t}}else if(n.status==="ok"){e={status:"exited"}}ne(n,e)}function ee(n){return ln({sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did==="number"||typeof n.did==="string"?`${n.did}`:undefined,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}const re="_sentrySpan";function oe(n,t){if(t){en(n,re,t)}else{delete n[re]}}function ie(n){return n[re]}const se=100;class ce{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext=Xt()}clone(){const n=new ce;n._breadcrumbs=[...this._breadcrumbs];n._tags={...this._tags};n._extra={...this._extra};n._contexts={...this._contexts};n._user=this._user;n._level=this._level;n._session=this._session;n._transactionName=this._transactionName;n._fingerprint=this._fingerprint;n._eventProcessors=[...this._eventProcessors];n._requestSession=this._requestSession;n._attachments=[...this._attachments];n._sdkProcessingMetadata={...this._sdkProcessingMetadata};n._propagationContext={...this._propagationContext};n._client=this._client;n._lastEventId=this._lastEventId;oe(n,ie(this));return n}setClient(n){this._client=n}setLastEventId(n){this._lastEventId=n}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(n){this._scopeListeners.push(n)}addEventProcessor(n){this._eventProcessors.push(n);return this}setUser(n){this._user=n||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){ne(this._session,{user:n})}this._notifyScopeListeners();return this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(n){this._requestSession=n;return this}setTags(n){this._tags={...this._tags,...n};this._notifyScopeListeners();return this}setTag(n,t){this._tags={...this._tags,[n]:t};this._notifyScopeListeners();return this}setExtras(n){this._extra={...this._extra,...n};this._notifyScopeListeners();return this}setExtra(n,t){this._extra={...this._extra,[n]:t};this._notifyScopeListeners();return this}setFingerprint(n){this._fingerprint=n;this._notifyScopeListeners();return this}setLevel(n){this._level=n;this._notifyScopeListeners();return this}setTransactionName(n){this._transactionName=n;this._notifyScopeListeners();return this}setContext(n,t){if(t===null){delete this._contexts[n]}else{this._contexts[n]=t}this._notifyScopeListeners();return this}setSession(n){if(!n){delete this._session}else{this._session=n}this._notifyScopeListeners();return this}getSession(){return this._session}update(n){if(!n){return this}const t=typeof n==="function"?n(this):n;const[e,r]=t instanceof ue?[t.getScopeData(),t.getRequestSession()]:p(t)?[n,n.requestSession]:[];const{tags:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f}=e||{};this._tags={...this._tags,...o};this._extra={...this._extra,...i};this._contexts={...this._contexts,...c};if(s&&Object.keys(s).length){this._user=s}if(u){this._level=u}if(a.length){this._fingerprint=a}if(f){this._propagationContext=f}if(r){this._requestSession=r}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._requestSession=undefined;this._session=undefined;oe(this,undefined);this._attachments=[];this._propagationContext=Xt();this._notifyScopeListeners();return this}addBreadcrumb(n,t){const e=typeof t==="number"?t:se;if(e<=0){return this}const r={timestamp:Fn(),...n};const o=this._breadcrumbs;o.push(r);this._breadcrumbs=o.length>e?o.slice(-e):o;this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(n){this._attachments.push(n);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ie(this)}}setSDKProcessingMetadata(n){this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...n};return this}setPropagationContext(n){this._propagationContext=n;return this}getPropagationContext(){return this._propagationContext}captureException(n,t){const e=t&&t.event_id?t.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture exception!");return e}const r=new Error("Sentry syntheticException");this._client.captureException(n,{originalException:n,syntheticException:r,...t,event_id:e},this);return e}captureMessage(n,t,e){const r=e&&e.event_id?e.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture message!");return r}const o=new Error(n);this._client.captureMessage(n,t,{originalException:n,syntheticException:o,...e,event_id:r},this);return r}captureEvent(n,t){const e=t&&t.event_id?t.event_id:rt();if(!this._client){G.warn("No client configured on scope - will not capture event!");return e}this._client.captureEvent(n,{...t,event_id:e},this);return e}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((n=>{n(this)}));this._notifyingListeners=false}}}const ue=ce;function ae(){return M("defaultCurrentScope",(()=>new ue))}function fe(){return M("defaultIsolationScope",(()=>new ue))}class le{constructor(n,t){let e;if(!n){e=new ue}else{e=n}let r;if(!t){r=new ue}else{r=t}this._stack=[{scope:e}];this._isolationScope=r}withScope(n){const t=this._pushScope();let e;try{e=n(t)}catch(n){this._popScope();throw n}if(_(e)){return e.then((n=>{this._popScope();return n}),(n=>{this._popScope();throw n}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const n=this.getScope().clone();this._stack.push({client:this.getClient(),scope:n});return n}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function de(){const n=Kt();const t=Zt(n);return t.stack=t.stack||new le(ae(),fe())}function he(n){return de().withScope(n)}function pe(n,t){const e=de();return e.withScope((()=>{e.getStackTop().scope=n;return t(n)}))}function me(n){return de().withScope((()=>n(de().getIsolationScope())))}function be(){return{withIsolationScope:me,withScope:he,withSetScope:pe,withSetIsolationScope:(n,t)=>me(t),getCurrentScope:()=>de().getScope(),getIsolationScope:()=>de().getIsolationScope()}}function ge(n){const t=Zt(n);if(t.acs){return t.acs}return be()}function _e(){const n=Kt();const t=ge(n);return t.getCurrentScope()}function ye(){const n=Kt();const t=ge(n);return t.getIsolationScope()}function ve(){return M("globalScope",(()=>new ue))}function we(...n){const t=Kt();const e=ge(t);if(n.length===2){const[t,r]=n;if(!t){return e.withScope(r)}return e.withSetScope(t,r)}return e.withScope(n[0])}function xe(){return _e().getClient()}const ke="_sentryMetrics";function Ee(n){const t=n[ke];if(!t){return undefined}const e={};for(const[,[n,r]]of t){const t=e[n]||(e[n]=[]);t.push(ln(r))}return e}const Se="sentry.source";const Ne="sentry.sample_rate";const $e="sentry.op";const Ce="sentry.origin";const Te=0;const Ie=1;const je=1;function Le(n){const{spanId:t,traceId:e}=n.spanContext();const{parent_span_id:r}=Re(n);return ln({parent_span_id:r,span_id:t,trace_id:e})}function Me(n){if(typeof n==="number"){return De(n)}if(Array.isArray(n)){return n[0]+n[1]/1e9}if(n instanceof Date){return De(n.getTime())}return Bn()}function De(n){const t=n>9999999999;return t?n/1e3:n}function Re(n){if(Fe(n)){return n.getSpanJSON()}try{const{spanId:t,traceId:e}=n.spanContext();if(Oe(n)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u}=n;return ln({span_id:t,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:Me(o),timestamp:Me(s)||undefined,status:Be(u),op:r[$e],origin:r[Ce],_metrics_summary:Ee(n)})}return{span_id:t,trace_id:e}}catch(n){return{}}}function Oe(n){const t=n;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Fe(n){return typeof n.getSpanJSON==="function"}function Ae(n){const{traceFlags:t}=n.spanContext();return t===je}function Be(n){if(!n||n.code===Te){return undefined}if(n.code===Ie){return"ok"}return n.message||"unknown_error"}const Pe="_sentryRootSpan";function qe(n){return n[Pe]||n}const Ue="production";const ze="_frozenDsc";function He(n,t){const e=t.getOptions();const{publicKey:r}=t.getDsn()||{};const o=ln({environment:e.environment||Ue,release:e.release,public_key:r,trace_id:n});t.emit("createDsc",o);return o}function Ye(n){const t=xe();if(!t){return{}}const e=He(Re(n).trace_id||"",t);const r=qe(n);const o=r[ze];if(o){return o}const i=r.spanContext().traceState;const s=i&&i.get("sentry.dsc");const c=s&&$t(s);if(c){return c}const u=Re(r);const a=u.data||{};const f=a[Ne];if(f!=null){e.sample_rate=`${f}`}const l=a[Se];const d=u.description;if(l!=="url"&&d){e.transaction=d}e.sampled=String(Ae(r));t.emit("createDsc",e,r);return e}function Ge(n){if(typeof n==="boolean"){return Number(n)}const t=typeof n==="string"?parseFloat(n):n;if(typeof t!=="number"||isNaN(t)||t<0||t>1){Jt&&G.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`);return undefined}return t}function Xe(n,t){if(!t){return n}n.sdk=n.sdk||{};n.sdk.name=n.sdk.name||t.name;n.sdk.version=n.sdk.version||t.version;n.sdk.integrations=[...n.sdk.integrations||[],...t.integrations||[]];n.sdk.packages=[...n.sdk.packages||[],...t.packages||[]];return n}function Ve(n,t,e,r){const o=Bt(e);const i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:W(t)}};const s="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return It(i,[s])}function We(n,t,e,r){const o=Bt(e);const i=n.type&&n.type!=="replay_event"?n.type:"event";Xe(n,e&&e.sdk);const s=Pt(n,o,r,t);delete n.sdkProcessingMetadata;const c=[{type:i},n];return It(s,[c])}function Je(n,t,e,r=0){return new vt(((o,i)=>{const s=n[r];if(t===null||typeof s!=="function"){o(t)}else{const c=s({...t},e);Jt&&s.id&&c===null&&G.log(`Event processor "${s.id}" dropped event`);if(_(c)){void c.then((t=>Je(n,t,e,r+1).then(o))).then(null,i)}else{void Je(n,c,e,r+1).then(o).then(null,i)}}}))}function Ke(n,t){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;nr(n,t);if(r){rr(n,r)}or(n,e);tr(n,o);er(n,i)}function Ze(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=t;Qe(n,"extra",e);Qe(n,"tags",r);Qe(n,"user",o);Qe(n,"contexts",i);Qe(n,"sdkProcessingMetadata",c);if(s){n.level=s}if(h){n.transactionName=h}if(p){n.span=p}if(u.length){n.breadcrumbs=[...n.breadcrumbs,...u]}if(a.length){n.fingerprint=[...n.fingerprint,...a]}if(f.length){n.eventProcessors=[...n.eventProcessors,...f]}if(l.length){n.attachments=[...n.attachments,...l]}n.propagationContext={...n.propagationContext,...d}}function Qe(n,t,e){if(e&&Object.keys(e).length){n[t]={...n[t]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){n[t][r]=e[r]}}}}function nr(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=t;const u=ln(e);if(u&&Object.keys(u).length){n.extra={...u,...n.extra}}const a=ln(r);if(a&&Object.keys(a).length){n.tags={...a,...n.tags}}const f=ln(o);if(f&&Object.keys(f).length){n.user={...f,...n.user}}const l=ln(i);if(l&&Object.keys(l).length){n.contexts={...l,...n.contexts}}if(s){n.level=s}if(c&&n.type!=="transaction"){n.transaction=c}}function tr(n,t){const e=[...n.breadcrumbs||[],...t];n.breadcrumbs=e.length?e:undefined}function er(n,t){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...t}}function rr(n,t){n.contexts={trace:Le(t),...n.contexts};n.sdkProcessingMetadata={dynamicSamplingContext:Ye(t),...n.sdkProcessingMetadata};const e=qe(t);const r=Re(e).description;if(r&&!n.transaction&&n.type==="transaction"){n.transaction=r}}function or(n,t){n.fingerprint=n.fingerprint?at(n.fingerprint):[];if(t){n.fingerprint=n.fingerprint.concat(t)}if(n.fingerprint&&!n.fingerprint.length){delete n.fingerprint}}function ir(n,t,e,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=n;const u={...t,event_id:t.event_id||e.event_id||rt(),timestamp:t.timestamp||Fn()};const a=e.integrations||n.integrations.map((n=>n.name));sr(u,n);fr(u,a);if(o){o.emit("applyFrameMetadata",t)}if(t.type===undefined){ur(u,n.stackParser)}const f=dr(r,e.captureContext);if(e.mechanism){ct(u,e.mechanism)}const l=o?o.getEventProcessors():[];const d=ve().getScopeData();if(i){const n=i.getScopeData();Ze(d,n)}if(f){const n=f.getScopeData();Ze(d,n)}const h=[...e.attachments||[],...d.attachments];if(h.length){e.attachments=h}Ke(u,d);const p=[...l,...d.eventProcessors];const m=Je(p,u,e);return m.then((n=>{if(n){ar(n)}if(typeof s==="number"&&s>0){return lr(n,s,c)}return n}))}function sr(n,t){const{environment:e,release:r,dist:o,maxValueLength:i=250}=t;if(!("environment"in n)){n.environment="environment"in t?e:Ue}if(n.release===undefined&&r!==undefined){n.release=r}if(n.dist===undefined&&o!==undefined){n.dist=o}if(n.message){n.message=x(n.message,i)}const s=n.exception&&n.exception.values&&n.exception.values[0];if(s&&s.value){s.value=x(s.value,i)}const c=n.request;if(c&&c.url){c.url=x(c.url,i)}}const cr=new WeakMap;function ur(n,t){const e=L._sentryDebugIds;if(!e){return}let r;const o=cr.get(t);if(o){r=o}else{r=new Map;cr.set(t,r)}const i=Object.entries(e).reduce(((n,[e,o])=>{let i;const s=r.get(e);if(s){i=s}else{i=t(e);r.set(e,i)}for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.filename){n[e.filename]=o;break}}return n}),{});try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.filename){n.debug_id=i[n.filename]}}))}))}catch(n){}}function ar(n){const t={};try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.debug_id){if(n.abs_path){t[n.abs_path]=n.debug_id}else if(n.filename){t[n.filename]=n.debug_id}delete n.debug_id}}))}))}catch(n){}if(Object.keys(t).length===0){return}n.debug_meta=n.debug_meta||{};n.debug_meta.images=n.debug_meta.images||[];const e=n.debug_meta.images;Object.entries(t).forEach((([n,t])=>{e.push({type:"sourcemap",code_file:n,debug_id:t})}))}function fr(n,t){if(t.length>0){n.sdk=n.sdk||{};n.sdk.integrations=[...n.sdk.integrations||[],...t]}}function lr(n,t,e){if(!n){return null}const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map((n=>({...n,...n.data&&{data:ft(n.data,t,e)}})))},...n.user&&{user:ft(n.user,t,e)},...n.contexts&&{contexts:ft(n.contexts,t,e)},...n.extra&&{extra:ft(n.extra,t,e)}};if(n.contexts&&n.contexts.trace&&r.contexts){r.contexts.trace=n.contexts.trace;if(n.contexts.trace.data){r.contexts.trace.data=ft(n.contexts.trace.data,t,e)}}if(n.spans){r.spans=n.spans.map((n=>({...n,...n.data&&{data:ft(n.data,t,e)}})))}return r}function dr(n,t){if(!t){return n}const e=n?n.clone():new ue;e.update(t);return e}function hr(n){if(!n){return undefined}if(pr(n)){return{captureContext:n}}if(br(n)){return{captureContext:n}}return n}function pr(n){return n instanceof ue||typeof n==="function"}const mr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function br(n){return Object.keys(n).some((n=>mr.includes(n)))}function gr(n,t){return _e().captureException(n,hr(t))}function _r(n,t){const e=typeof t==="string"?t:undefined;const r=typeof t!=="string"?{captureContext:t}:undefined;return _e().captureMessage(n,e,r)}function yr(n,t){return _e().captureEvent(n,t)}function vr(){return!!xe()}function wr(n){const t=xe();const e=ye();const r=_e();const{release:o,environment:i=Ue}=t&&t.getOptions()||{};const{userAgent:s}=L.navigator||{};const c=Qt({release:o,environment:i,user:r.getUser()||e.getUser(),...s&&{userAgent:s},...n});const u=e.getSession();if(u&&u.status==="ok"){ne(u,{status:"exited"})}xr();e.setSession(c);r.setSession(c);return c}function xr(){const n=ye();const t=_e();const e=t.getSession()||n.getSession();if(e){te(e)}kr();n.setSession();t.setSession()}function kr(){const n=ye();const t=_e();const e=xe();const r=t.getSession()||n.getSession();if(r&&e){e.captureSession(r)}}function Er(n=false){if(n){xr();return}kr()}const Sr="7";function Nr(n){const t=n.protocol?`${n.protocol}:`:"";const e=n.port?`:${n.port}`:"";return`${t}//${n.host}${e}${n.path?`/${n.path}`:""}/api/`}function $r(n){return`${Nr(n)}${n.projectId}/envelope/`}function Cr(n,t){return sn({sentry_key:n.publicKey,sentry_version:Sr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Tr(n,t,e){return t?t:`${$r(n)}?${Cr(n,e)}`}const Ir=[];function jr(n){const t={};n.forEach((n=>{const{name:e}=n;const r=t[e];if(r&&!r.isDefaultInstance&&n.isDefaultInstance){return}t[e]=n}));return Object.values(t)}function Lr(n){const t=n.defaultIntegrations||[];const e=n.integrations;t.forEach((n=>{n.isDefaultInstance=true}));let r;if(Array.isArray(e)){r=[...t,...e]}else if(typeof e==="function"){r=at(e(t))}else{r=t}const o=jr(r);const i=o.findIndex((n=>n.name==="Debug"));if(i>-1){const[n]=o.splice(i,1);o.push(n)}return o}function Mr(n,t){const e={};t.forEach((t=>{if(t){Rr(n,t,e)}}));return e}function Dr(n,t){for(const e of t){if(e&&e.afterAllSetup){e.afterAllSetup(n)}}}function Rr(n,t,e){if(e[t.name]){Jt&&G.log(`Integration skipped because it was already installed: ${t.name}`);return}e[t.name]=t;if(Ir.indexOf(t.name)===-1&&typeof t.setupOnce==="function"){t.setupOnce();Ir.push(t.name)}if(t.setup&&typeof t.setup==="function"){t.setup(n)}if(typeof t.preprocessEvent==="function"){const e=t.preprocessEvent.bind(t);n.on("preprocessEvent",((t,r)=>e(t,r,n)))}if(typeof t.processEvent==="function"){const e=t.processEvent.bind(t);const r=Object.assign(((t,r)=>e(t,r,n)),{id:t.name});n.addEventProcessor(r)}Jt&&G.log(`Integration installed: ${t.name}`)}function Or(n){return n}const Fr="Not capturing exception because it's already been captured.";class Ar{constructor(n){this._options=n;this._integrations={};this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(n.dsn){this._dsn=Q(n.dsn)}else{Jt&&G.warn("No DSN provided, client will not send events.")}if(this._dsn){const t=Tr(this._dsn,n.tunnel,n._metadata?n._metadata.sdk:undefined);this._transport=n.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...n.transportOptions,url:t})}}captureException(n,t,e){const r=rt();if(ut(n)){Jt&&G.log(Fr);return r}const o={event_id:r,...t};this._process(this.eventFromException(n,o).then((n=>this._captureEvent(n,o,e))));return o.event_id}captureMessage(n,t,e,r){const o={event_id:rt(),...e};const i=d(n)?n:String(n);const s=h(n)?this.eventFromMessage(i,t,o):this.eventFromException(n,o);this._process(s.then((n=>this._captureEvent(n,o,r))));return o.event_id}captureEvent(n,t,e){const r=rt();if(t&&t.originalException&&ut(t.originalException)){Jt&&G.log(Fr);return r}const o={event_id:r,...t};const i=n.sdkProcessingMetadata||{};const s=i.capturedSpanScope;this._process(this._captureEvent(n,o,s||e));return o.event_id}captureSession(n){if(!(typeof n.release==="string")){Jt&&G.warn("Discarded session because of missing or non-string release")}else{this.sendSession(n);ne(n,{init:false})}}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(n){const t=this._transport;if(t){this.emit("flush");return this._isClientDoneProcessing(n).then((e=>t.flush(n).then((n=>e&&n))))}else{return _t(true)}}close(n){return this.flush(n).then((n=>{this.getOptions().enabled=false;this.emit("close");return n}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(n){this._eventProcessors.push(n)}init(){if(this._isEnabled()||this._options.integrations.some((({name:n})=>n.startsWith("Spotlight")))){this._setupIntegrations()}}getIntegrationByName(n){return this._integrations[n]}addIntegration(n){const t=this._integrations[n.name];Rr(this,n,this._integrations);if(!t){Dr(this,[n])}}sendEvent(n,t={}){this.emit("beforeSendEvent",n,t);let e=We(n,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[]){e=jt(e,Ot(n))}const r=this.sendEnvelope(e);if(r){r.then((t=>this.emit("afterSendEvent",n,t)),null)}}sendSession(n){const t=Ve(n,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(n,t,e){if(this._options.sendClientReports){const r=typeof e==="number"?e:1;const o=`${n}:${t}`;Jt&&G.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`);this._outcomes[o]=(this._outcomes[o]||0)+r}}on(n,t){const e=this._hooks[n]=this._hooks[n]||[];e.push(t);return()=>{const n=e.indexOf(t);if(n>-1){e.splice(n,1)}}}emit(n,...t){const e=this._hooks[n];if(e){e.forEach((n=>n(...t)))}}sendEnvelope(n){this.emit("beforeEnvelope",n);if(this._isEnabled()&&this._transport){return this._transport.send(n).then(null,(n=>{Jt&&G.error("Error while sending event:",n);return n}))}Jt&&G.error("Transport disabled");return _t({})}_setupIntegrations(){const{integrations:n}=this._options;this._integrations=Mr(this,n);Dr(this,n)}_updateSessionFromEvent(n,t){let e=false;let r=false;const o=t.exception&&t.exception.values;if(o){r=true;for(const n of o){const t=n.mechanism;if(t&&t.handled===false){e=true;break}}}const i=n.status==="ok";const s=i&&n.errors===0||i&&e;if(s){ne(n,{...e&&{status:"crashed"},errors:n.errors||Number(r||e)});this.captureSession(n)}}_isClientDoneProcessing(n){return new vt((t=>{let e=0;const r=1;const o=setInterval((()=>{if(this._numProcessing==0){clearInterval(o);t(true)}else{e+=r;if(n&&e>=n){clearInterval(o);t(false)}}}),r)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==undefined}_prepareEvent(n,t,e,r=ye()){const o=this.getOptions();const i=Object.keys(this._integrations);if(!t.integrations&&i.length>0){t.integrations=i}this.emit("preprocessEvent",n,t);if(!n.type){r.setLastEventId(n.event_id||t.event_id)}return ir(o,n,t,e,this,r).then((n=>{if(n===null){return n}const t={...r.getPropagationContext(),...e?e.getPropagationContext():undefined};const o=n.contexts&&n.contexts.trace;if(!o&&t){const{traceId:e,spanId:r,parentSpanId:o,dsc:i}=t;n.contexts={trace:ln({trace_id:e,span_id:r,parent_span_id:o}),...n.contexts};const s=i?i:He(e,this);n.sdkProcessingMetadata={dynamicSamplingContext:s,...n.sdkProcessingMetadata}}return n}))}_captureEvent(n,t={},e){return this._processEvent(n,t,e).then((n=>n.event_id),(n=>{if(Jt){const t=n;if(t.logLevel==="log"){G.log(t.message)}else{G.warn(t)}}return undefined}))}_processEvent(n,t,e){const r=this.getOptions();const{sampleRate:o}=r;const i=Ur(n);const s=qr(n);const c=n.type||"error";const u=`before send for type \`${c}\``;const a=typeof o==="undefined"?undefined:Ge(o);if(s&&typeof a==="number"&&Math.random()>a){this.recordDroppedEvent("sample_rate","error",n);return yt(new nn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))}const f=c==="replay_event"?"replay":c;const l=n.sdkProcessingMetadata||{};const d=l.capturedSpanIsolationScope;return this._prepareEvent(n,t,e,d).then((e=>{if(e===null){this.recordDroppedEvent("event_processor",f,n);throw new nn("An event processor returned `null`, will not send event.","log")}const o=t.data&&t.data.__sentry__===true;if(o){return e}const i=Pr(this,r,e,t);return Br(i,u)})).then((r=>{if(r===null){this.recordDroppedEvent("before_send",f,n);if(i){const t=n.spans||[];const e=1+t.length;this.recordDroppedEvent("before_send","span",e)}throw new nn(`${u} returned \`null\`, will not send event.`,"log")}const o=e&&e.getSession();if(!i&&o){this._updateSessionFromEvent(o,r)}if(i){const n=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0;const t=r.spans?r.spans.length:0;const e=n-t;if(e>0){this.recordDroppedEvent("before_send","span",e)}}const s=r.transaction_info;if(i&&s&&r.transaction!==n.transaction){const n="custom";r.transaction_info={...s,source:n}}this.sendEvent(r,t);return r})).then(null,(n=>{if(n instanceof nn){throw n}this.captureException(n,{data:{__sentry__:true},originalException:n});throw new nn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${n}`)}))}_process(n){this._numProcessing++;void n.then((n=>{this._numProcessing--;return n}),(n=>{this._numProcessing--;return n}))}_clearOutcomes(){const n=this._outcomes;this._outcomes={};return Object.entries(n).map((([n,t])=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t}}))}_flushOutcomes(){Jt&&G.log("Flushing outcomes...");const n=this._clearOutcomes();if(n.length===0){Jt&&G.log("No outcomes to send");return}if(!this._dsn){Jt&&G.log("No dsn provided, will not send outcomes");return}Jt&&G.log("Sending outcomes:",n);const t=qt(n,this._options.tunnel&&W(this._dsn));this.sendEnvelope(t)}}function Br(n,t){const e=`${t} must return \`null\` or a valid event.`;if(_(n)){return n.then((n=>{if(!p(n)&&n!==null){throw new nn(e)}return n}),(n=>{throw new nn(`${t} rejected with ${n}`)}))}else if(!p(n)&&n!==null){throw new nn(e)}return n}function Pr(n,t,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(qr(e)&&o){return o(e,r)}if(Ur(e)){if(e.spans&&s){const t=[];for(const r of e.spans){const e=s(r);if(e){t.push(e)}else{n.recordDroppedEvent("before_send","span")}}e.spans=t}if(i){if(e.spans){const n=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:n}}return i(e,r)}}return e}function qr(n){return n.type===undefined}function Ur(n){return n.type==="transaction"}function zr(n,t){if(t.debug===true){if(Jt){G.enable()}else{H((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))}}const e=_e();e.update(t.initialScope);const r=new n(t);Hr(r);r.init();return r}function Hr(n){_e().setClient(n)}const Yr=64;function Gr(n,t,e=wt(n.bufferSize||Yr)){let r={};const o=n=>e.drain(n);function i(o){const i=[];Lt(o,((t,e)=>{const o=At(e);if(Yt(r,o)){const r=Xr(t,e);n.recordDroppedEvent("ratelimit_backoff",o,r)}else{i.push(t)}}));if(i.length===0){return _t({})}const s=It(o[0],i);const c=t=>{Lt(s,((e,r)=>{const o=Xr(e,r);n.recordDroppedEvent(t,At(r),o)}))};const u=()=>t({body:Dt(s)}).then((n=>{if(n.statusCode!==undefined&&(n.statusCode<200||n.statusCode>=300)){Jt&&G.warn(`Sentry responded with status code ${n.statusCode} to sent event.`)}r=Gt(r,n);return n}),(n=>{c("network_error");throw n}));return e.add(u).then((n=>n),(n=>{if(n instanceof nn){Jt&&G.error("Skipped sending event because buffer is full.");c("queue_overflow");return _t({})}else{throw n}}))}return{send:i,flush:o}}function Xr(n,t){if(t!=="event"&&t!=="transaction"){return undefined}return Array.isArray(n)?n[1]:undefined}function Vr(n,t,e=[t],r="npm"){const o=n._metadata||{};if(!o.sdk){o.sdk={name:`sentry.javascript.${t}`,packages:e.map((n=>({name:`${r}:@sentry/${n}`,version:j}))),version:j}}n._metadata=o}const Wr=100;function Jr(n,t){const e=xe();const r=ye();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Wr}=e.getOptions();if(i<=0)return;const s=Fn();const c={timestamp:s,...n};const u=o?H((()=>o(c,t))):c;if(u===null)return;if(e.emit){e.emit("beforeAddBreadcrumb",u,t)}r.addBreadcrumb(u,i)}let Kr;const Zr="FunctionToString";const Qr=new WeakMap;const no=()=>({name:Zr,setupOnce(){Kr=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=on(this);const e=Qr.has(xe())&&t!==undefined?t:this;return Kr.apply(e,n)}}catch(n){}},setup(n){Qr.set(n,true)}});const to=Or(no);const eo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"];const ro="InboundFilters";const oo=(n={})=>({name:ro,processEvent(t,e,r){const o=r.getOptions();const i=so(n,o);return co(t,i)?null:t}});const io=Or(oo);function so(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:eo],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:n.ignoreInternal!==undefined?n.ignoreInternal:true}}function co(n,t){if(t.ignoreInternal&&po(n)){Jt&&G.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${it(n)}`);return true}if(uo(n,t.ignoreErrors)){Jt&&G.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${it(n)}`);return true}if(go(n)){Jt&&G.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${it(n)}`);return true}if(ao(n,t.ignoreTransactions)){Jt&&G.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${it(n)}`);return true}if(fo(n,t.denyUrls)){Jt&&G.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${it(n)}.\nUrl: ${bo(n)}`);return true}if(!lo(n,t.allowUrls)){Jt&&G.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${it(n)}.\nUrl: ${bo(n)}`);return true}return false}function uo(n,t){if(n.type||!t||!t.length){return false}return ho(n).some((n=>S(n,t)))}function ao(n,t){if(n.type!=="transaction"||!t||!t.length){return false}const e=n.transaction;return e?S(e,t):false}function fo(n,t){if(!t||!t.length){return false}const e=bo(n);return!e?false:S(e,t)}function lo(n,t){if(!t||!t.length){return true}const e=bo(n);return!e?true:S(e,t)}function ho(n){const t=[];if(n.message){t.push(n.message)}let e;try{e=n.exception.values[n.exception.values.length-1]}catch(n){}if(e){if(e.value){t.push(e.value);if(e.type){t.push(`${e.type}: ${e.value}`)}}}return t}function po(n){try{return n.exception.values[0].type==="SentryError"}catch(n){}return false}function mo(n=[]){for(let t=n.length-1;t>=0;t--){const e=n[t];if(e&&e.filename!=="<anonymous>"&&e.filename!=="[native code]"){return e.filename||null}}return null}function bo(n){try{let t;try{t=n.exception.values[0].stacktrace.frames}catch(n){}return t?mo(t):null}catch(t){Jt&&G.error(`Cannot extract url for event ${it(n)}`);return null}}function go(n){if(n.type){return false}if(!n.exception||!n.exception.values||n.exception.values.length===0){return false}return!n.message&&!n.exception.values.some((n=>n.stacktrace||n.type&&n.type!=="Error"||n.value))}const _o="Dedupe";const yo=()=>{let n;return{name:_o,processEvent(t){if(t.type){return t}try{if(wo(t,n)){Jt&&G.warn("Event dropped due to being a duplicate of previously captured event.");return null}}catch(n){}return n=t}}};const vo=Or(yo);function wo(n,t){if(!t){return false}if(xo(n,t)){return true}if(ko(n,t)){return true}return false}function xo(n,t){const e=n.message;const r=t.message;if(!e&&!r){return false}if(e&&!r||!e&&r){return false}if(e!==r){return false}if(!So(n,t)){return false}if(!Eo(n,t)){return false}return true}function ko(n,t){const e=No(t);const r=No(n);if(!e||!r){return false}if(e.type!==r.type||e.value!==r.value){return false}if(!So(n,t)){return false}if(!Eo(n,t)){return false}return true}function Eo(n,t){let e=En(n);let r=En(t);if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;if(r.length!==e.length){return false}for(let n=0;n<r.length;n++){const t=r[n];const o=e[n];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function){return false}}return true}function So(n,t){let e=n.fingerprint;let r=t.fingerprint;if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;try{return!!(e.join("")===r.join(""))}catch(n){return false}}function No(n){return n.exception&&n.exception.values&&n.exception.values[0]}function $o(n,t={},e=_e()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=n;const f={contexts:{feedback:ln({contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:a};const l=e&&e.getClient()||xe();if(l){l.emit("beforeSendFeedback",f,t)}const d=e.captureEvent(f,t);return d}const Co=L;let To=0;function Io(){return To>0}function jo(){To++;setTimeout((()=>{To--}))}function Lo(n,t={},e){if(typeof n!=="function"){return n}try{const t=n.__sentry_wrapped__;if(t){return t}if(on(n)){return n}}catch(t){return n}const r=function(){const r=Array.prototype.slice.call(arguments);try{if(e&&typeof e==="function"){e.apply(this,arguments)}const o=r.map((n=>Lo(n,t)));return n.apply(this,o)}catch(n){jo();we((e=>{e.addEventProcessor((n=>{if(t.mechanism){st(n,undefined,undefined);ct(n,t.mechanism)}n.extra={...n.extra,arguments:r};return n}));gr(n)}));throw n}};try{for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=n[t]}}}catch(n){}rn(r,n);en(n,"__sentry_wrapped__",r);try{const t=Object.getOwnPropertyDescriptor(r,"name");if(t.configurable){Object.defineProperty(r,"name",{get(){return n.name}})}}catch(n){}return r}const Mo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Do(n,t){const e=Fo(n,t);const r={type:t&&t.name,value:qo(t)};if(e.length){r.stacktrace={frames:e}}if(r.type===undefined&&r.value===""){r.value="Unrecoverable error caught"}return r}function Ro(n,t,e,r){const o=xe();const i=o&&o.getOptions().normalizeDepth;const s=Vo(t);const c={__serialized__:lt(t,i)};if(s){return{exception:{values:[Do(n,s)]},extra:c}}const u={exception:{values:[{type:m(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Go(t,{isUnhandledRejection:r})}]},extra:c};if(e){const t=Fo(n,e);if(t.length){u.exception.values[0].stacktrace={frames:t}}}return u}function Oo(n,t){return{exception:{values:[Do(n,t)]}}}function Fo(n,t){const e=t.stacktrace||t.stack||"";const r=Bo(t);const o=Po(t);try{return n(e,r,o)}catch(n){}return[]}const Ao=/Minified React error #\d+;/i;function Bo(n){if(n&&Ao.test(n.message)){return 1}return 0}function Po(n){if(typeof n.framesToPop==="number"){return n.framesToPop}return 0}function qo(n){const t=n&&n.message;if(!t){return"No error message"}if(t.error&&typeof t.error.message==="string"){return t.error.message}return t}function Uo(n,t,e,r){const o=e&&e.syntheticException||undefined;const i=Ho(n,t,o,r);ct(i);i.level="error";if(e&&e.event_id){i.event_id=e.event_id}return _t(i)}function zo(n,t,e="info",r,o){const i=r&&r.syntheticException||undefined;const s=Yo(n,t,i,o);s.level=e;if(r&&r.event_id){s.event_id=r.event_id}return _t(s)}function Ho(n,t,e,r,o){let i;if(u(t)&&t.error){const e=t;return Oo(n,e.error)}if(a(t)||f(t)){const o=t;if("stack"in t){i=Oo(n,t)}else{const t=o.name||(a(o)?"DOMError":"DOMException");const s=o.message?`${t}: ${o.message}`:t;i=Yo(n,s,e,r);st(i,s)}if("code"in o){i.tags={...i.tags,"DOMException.code":`${o.code}`}}return i}if(s(t)){return Oo(n,t)}if(p(t)||m(t)){const r=t;i=Ro(n,r,e,o);ct(i,{synthetic:true});return i}i=Yo(n,t,e,r);st(i,`${t}`,undefined);ct(i,{synthetic:true});return i}function Yo(n,t,e,r){const o={};if(r&&e){const r=Fo(n,e);if(r.length){o.exception={values:[{value:t,stacktrace:{frames:r}}]}}}if(d(t)){const{__sentry_template_string__:n,__sentry_template_values__:e}=t;o.logentry={message:n,params:e};return o}o.message=t;return o}function Go(n,{isUnhandledRejection:t}){const e=fn(n);const r=t?"promise rejection":"exception";if(u(n)){return`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``}if(m(n)){const t=Xo(n);return`Event \`${t}\` (type=${n.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function Xo(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:undefined}catch(n){}}function Vo(n){for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];if(e instanceof Error){return e}}}return undefined}function Wo(n,{metadata:t,tunnel:e,dsn:r}){const o={event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!e&&!!r&&{dsn:W(r)}};const i=Jo(n);return It(o,[i])}function Jo(n){const t={type:"user_report"};return[t,n]}class Ko extends Ar{constructor(n){const t={parentSpanIsAlwaysRootSpan:true,...n};const e=Co.SENTRY_SDK_SOURCE||Zn();Vr(t,"browser",["browser"],e);super(t);if(t.sendClientReports&&Co.document){Co.document.addEventListener("visibilitychange",(()=>{if(Co.document.visibilityState==="hidden"){this._flushOutcomes()}}))}}eventFromException(n,t){return Uo(this._options.stackParser,n,t,this._options.attachStacktrace)}eventFromMessage(n,t="info",e){return zo(this._options.stackParser,n,t,e,this._options.attachStacktrace)}captureUserFeedback(n){if(!this._isEnabled()){Mo&&G.warn("SDK not enabled, will not capture user feedback.");return}const t=Wo(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(n,t,e){n.platform=n.platform||"javascript";return super._prepareEvent(n,t,e)}}const Zo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const Qo=L;const ni=1e3;let ti;let ei;let ri;function oi(n){const t="dom";$n(t,n);Cn(t,ii)}function ii(){if(!Qo.document){return}const n=Tn.bind(null,"dom");const t=ui(n,true);Qo.document.addEventListener("click",t,false);Qo.document.addEventListener("keypress",t,false);["EventTarget","Node"].forEach((t=>{const e=Qo[t]&&Qo[t].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}tn(e,"addEventListener",(function(t){return function(e,r,o){if(e==="click"||e=="keypress"){try{const r=this;const i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{};const s=i[e]=i[e]||{refCount:0};if(!s.handler){const r=ui(n);s.handler=r;t.call(this,e,r,o)}s.refCount++}catch(n){}}return t.call(this,e,r,o)}}));tn(e,"removeEventListener",(function(n){return function(t,e,r){if(t==="click"||t=="keypress"){try{const e=this;const o=e.__sentry_instrumentation_handlers__||{};const i=o[t];if(i){i.refCount--;if(i.refCount<=0){n.call(this,t,i.handler,r);i.handler=undefined;delete o[t]}if(Object.keys(o).length===0){delete e.__sentry_instrumentation_handlers__}}}catch(n){}}return n.call(this,t,e,r)}}))}))}function si(n){if(n.type!==ei){return false}try{if(!n.target||n.target._sentryId!==ri){return false}}catch(n){}return true}function ci(n,t){if(n!=="keypress"){return false}if(!t||!t.tagName){return true}if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable){return false}return true}function ui(n,t=false){return e=>{if(!e||e["_sentryCaptured"]){return}const r=ai(e);if(ci(e.type,r)){return}en(e,"_sentryCaptured",true);if(r&&!r._sentryId){en(r,"_sentryId",rt())}const o=e.type==="keypress"?"input":e.type;if(!si(e)){const i={event:e,name:o,global:t};n(i);ei=e.type;ri=r?r._sentryId:undefined}clearTimeout(ti);ti=Qo.setTimeout((()=>{ri=undefined;ei=undefined}),ni)}}function ai(n){try{return n.target}catch(n){return null}}let fi;function li(n){const t="history";$n(t,n);Cn(t,di)}function di(){if(!Wt()){return}const n=Qo.onpopstate;Qo.onpopstate=function(...t){const e=Qo.location.href;const r=fi;fi=e;const o={from:r,to:e};Tn("history",o);if(n){try{return n.apply(this,t)}catch(n){}}};function t(n){return function(...t){const e=t.length>2?t[2]:undefined;if(e){const n=fi;const t=String(e);fi=t;const r={from:n,to:t};Tn("history",r)}return n.apply(this,t)}}tn(Qo.history,"pushState",t);tn(Qo.history,"replaceState",t)}const hi={};function pi(n){const t=hi[n];if(t){return t}let e=Qo[n];if(Dn(e)){return hi[n]=e.bind(Qo)}const r=Qo.document;if(r&&typeof r.createElement==="function"){try{const t=r.createElement("iframe");t.hidden=true;r.head.appendChild(t);const o=t.contentWindow;if(o&&o[n]){e=o[n]}r.head.removeChild(t)}catch(t){Zo&&G.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,t)}}if(!e){return e}return hi[n]=e.bind(Qo)}function mi(n){hi[n]=undefined}const bi="__sentry_xhr_v3__";function gi(n){const t="xhr";$n(t,n);Cn(t,_i)}function _i(){if(!Qo.XMLHttpRequest){return}const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(n,t,e){const r=Bn()*1e3;const o=l(e[0])?e[0].toUpperCase():undefined;const i=yi(e[1]);if(!o||!i){return n.apply(t,e)}t[bi]={method:o,url:i,request_headers:{}};if(o==="POST"&&i.match(/sentry_key/)){t.__sentry_own_request__=true}const s=()=>{const n=t[bi];if(!n){return}if(t.readyState===4){try{n.status_code=t.status}catch(n){}const e={endTimestamp:Bn()*1e3,startTimestamp:r,xhr:t};Tn("xhr",e)}};if("onreadystatechange"in t&&typeof t.onreadystatechange==="function"){t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(n,t,e){s();return n.apply(t,e)}})}else{t.addEventListener("readystatechange",s)}t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(n,t,e){const[r,o]=e;const i=t[bi];if(i&&l(r)&&l(o)){i.request_headers[r.toLowerCase()]=o}return n.apply(t,e)}});return n.apply(t,e)}});n.send=new Proxy(n.send,{apply(n,t,e){const r=t[bi];if(!r){return n.apply(t,e)}if(e[0]!==undefined){r.body=e[0]}const o={startTimestamp:Bn()*1e3,xhr:t};Tn("xhr",o);return n.apply(t,e)}})}function yi(n){if(l(n)){return n}try{return n.toString()}catch(n){}return undefined}function vi(n,t=pi("fetch")){let e=0;let r=0;function o(o){const i=o.body.length;e+=i;r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:e<=6e4&&r<15,...n.fetchOptions};if(!t){mi("fetch");return yt("No fetch implementation available")}try{return t(n.url,s).then((n=>{e-=i;r--;return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}))}catch(n){mi("fetch");e-=i;r--;return yt(n)}}return Gr(n,o)}const wi=30;const xi=50;function ki(n,t,e,r){const o={filename:n,function:t==="<anonymous>"?mn:t,in_app:true};if(e!==undefined){o.lineno=e}if(r!==undefined){o.colno=r}return o}const Ei=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;const Si=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;const Ni=/\((\S*)(?::(\d+))(?::(\d+))\)/;const $i=n=>{const t=Ei.exec(n);if(t){const[,n,e,r]=t;return ki(n,mn,+e,+r)}const e=Si.exec(n);if(e){const n=e[2]&&e[2].indexOf("eval")===0;if(n){const n=Ni.exec(e[2]);if(n){e[2]=n[1];e[3]=n[2];e[4]=n[3]}}const[t,r]=Ri(e[1]||mn,e[2]);return ki(r,t,e[3]?+e[3]:undefined,e[4]?+e[4]:undefined)}return};const Ci=[wi,$i];const Ti=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;const Ii=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;const ji=n=>{const t=Ti.exec(n);if(t){const n=t[3]&&t[3].indexOf(" > eval")>-1;if(n){const n=Ii.exec(t[3]);if(n){t[1]=t[1]||"eval";t[3]=n[1];t[4]=n[2];t[5]=""}}let e=t[3];let r=t[1]||mn;[r,e]=Ri(r,e);return ki(e,r,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}return};const Li=[xi,ji];const Mi=[Ci,Li];const Di=_n(...Mi);const Ri=(n,t)=>{const e=n.indexOf("safari-extension")!==-1;const r=n.indexOf("safari-web-extension")!==-1;return e||r?[n.indexOf("@")!==-1?n.split("@")[0]:mn,e?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]};const Oi=1024;const Fi="Breadcrumbs";const Ai=(n={})=>{const t={console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true,...n};return{name:Fi,setup(n){if(t.console){In(Ui(n))}if(t.dom){oi(qi(n,t.dom))}if(t.xhr){gi(zi(n))}if(t.fetch){Pn(Hi(n))}if(t.history){li(Yi(n))}if(t.sentry){n.on("beforeSendEvent",Pi(n))}}}};const Bi=Or(Ai);function Pi(n){return function t(e){if(xe()!==n){return}Jr({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:it(e)},{event:e})}}function qi(n,t){return function e(r){if(xe()!==n){return}let o;let i;let s=typeof t==="object"?t.serializeAttribute:undefined;let c=typeof t==="object"&&typeof t.maxStringLength==="number"?t.maxStringLength:undefined;if(c&&c>Oi){Mo&&G.warn(`\`dom.maxStringLength\` cannot exceed ${Oi}, but a value of ${c} was configured. Sentry will use ${Oi} instead.`);c=Oi}if(typeof s==="string"){s=[s]}try{const n=r.event;const t=Gi(n)?n.target:n;o=O(t,{keyAttrs:s,maxStringLength:c});i=B(t)}catch(n){o="<unknown>"}if(o.length===0){return}const u={category:`ui.${r.name}`,message:o};if(i){u.data={"ui.component_name":i}}Jr(u,{event:r.event,name:r.name,global:r.global})}}function Ui(n){return function t(e){if(xe()!==n){return}const r={category:"console",data:{arguments:e.args,logger:"console"},level:Et(e.level),message:k(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){r.message=`Assertion failed: ${k(e.args.slice(1)," ")||"console.assert"}`;r.data.arguments=e.args.slice(1)}else{return}}Jr(r,{input:e.args,level:e.level})}}function zi(n){return function t(e){if(xe()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;const i=e.xhr[bi];if(!r||!o||!i){return}const{method:s,url:c,status_code:u,body:a}=i;const f={method:s,url:c,status_code:u};const l={xhr:e.xhr,input:a,startTimestamp:r,endTimestamp:o};Jr({category:"xhr",data:f,type:"http"},l)}}function Hi(n){return function t(e){if(xe()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;if(!o){return}if(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"){return}if(e.error){const n=e.fetchData;const t={data:e.error,input:e.args,startTimestamp:r,endTimestamp:o};Jr({category:"fetch",data:n,level:"error",type:"http"},t)}else{const n=e.response;const t={...e.fetchData,status_code:n&&n.status};const i={input:e.args,response:n,startTimestamp:r,endTimestamp:o};Jr({category:"fetch",data:t,type:"http"},i)}}}function Yi(n){return function t(e){if(xe()!==n){return}let r=e.from;let o=e.to;const i=xt(Co.location.href);let s=r?xt(r):undefined;const c=xt(o);if(!s||!s.path){s=i}if(i.protocol===c.protocol&&i.host===c.host){o=c.relative}if(i.protocol===s.protocol&&i.host===s.host){r=s.relative}Jr({category:"navigation",data:{from:r,to:o}})}}function Gi(n){return!!n&&!!n.target}const Xi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];const Vi="BrowserApiErrors";const Wi=(n={})=>{const t={XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,...n};return{name:Vi,setupOnce(){if(t.setTimeout){tn(Co,"setTimeout",Ki)}if(t.setInterval){tn(Co,"setInterval",Ki)}if(t.requestAnimationFrame){tn(Co,"requestAnimationFrame",Zi)}if(t.XMLHttpRequest&&"XMLHttpRequest"in Co){tn(XMLHttpRequest.prototype,"send",Qi)}const n=t.eventTarget;if(n){const t=Array.isArray(n)?n:Xi;t.forEach(ns)}}}};const Ji=Or(Wi);function Ki(n){return function(...t){const e=t[0];t[0]=Lo(e,{mechanism:{data:{function:kn(n)},handled:false,type:"instrument"}});return n.apply(this,t)}}function Zi(n){return function(t){return n.apply(this,[Lo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:kn(n)},handled:false,type:"instrument"}})])}}function Qi(n){return function(...t){const e=this;const r=["onload","onerror","onprogress","onreadystatechange"];r.forEach((n=>{if(n in e&&typeof e[n]==="function"){tn(e,n,(function(t){const e={mechanism:{data:{function:n,handler:kn(t)},handled:false,type:"instrument"}};const r=on(t);if(r){e.mechanism.data.handler=kn(r)}return Lo(t,e)}))}}));return n.apply(this,t)}}function ns(n){const t=Co;const e=t[n]&&t[n].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}tn(e,"addEventListener",(function(t){return function(e,r,o){try{if(typeof r.handleEvent==="function"){r.handleEvent=Lo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:kn(r),target:n},handled:false,type:"instrument"}})}}catch(n){}return t.apply(this,[e,Lo(r,{mechanism:{data:{function:"addEventListener",handler:kn(r),target:n},handled:false,type:"instrument"}}),o])}}));tn(e,"removeEventListener",(function(n){return function(t,e,r){const o=e;try{const e=o&&o.__sentry_wrapped__;if(e){n.call(this,t,e,r)}}catch(n){}return n.call(this,t,o,r)}}))}const ts="GlobalHandlers";const es=(n={})=>{const t={onerror:true,onunhandledrejection:true,...n};return{name:ts,setupOnce(){Error.stackTraceLimit=50},setup(n){if(t.onerror){os(n);as("onerror")}if(t.onunhandledrejection){is(n);as("onunhandledrejection")}}}};const rs=Or(es);function os(n){Gn((t=>{const{stackParser:e,attachStacktrace:r}=fs();if(xe()!==n||Io()){return}const{msg:o,url:i,line:s,column:c,error:u}=t;const a=us(Ho(e,u||o,undefined,r,false),i,s,c);a.level="error";yr(a,{originalException:u,mechanism:{handled:false,type:"onerror"}})}))}function is(n){Wn((t=>{const{stackParser:e,attachStacktrace:r}=fs();if(xe()!==n||Io()){return}const o=ss(t);const i=h(o)?cs(o):Ho(e,o,undefined,r,true);i.level="error";yr(i,{originalException:o,mechanism:{handled:false,type:"onunhandledrejection"}})}))}function ss(n){if(h(n)){return n}try{if("reason"in n){return n.reason}if("detail"in n&&"reason"in n.detail){return n.detail.reason}}catch(n){}return n}function cs(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function us(n,t,e,r){const o=n.exception=n.exception||{};const i=o.values=o.values||[];const s=i[0]=i[0]||{};const c=s.stacktrace=s.stacktrace||{};const u=c.frames=c.frames||[];const a=isNaN(parseInt(r,10))?undefined:r;const f=isNaN(parseInt(e,10))?undefined:e;const d=l(t)&&t.length>0?t:A();if(u.length===0){u.push({colno:a,filename:d,function:mn,in_app:true,lineno:f})}return n}function as(n){Mo&&G.log(`Global Handler attached: ${n}`)}function fs(){const n=xe();const t=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:false};return t}const ls=Or((()=>({name:"HttpContext",preprocessEvent(n){if(!Co.navigator&&!Co.location&&!Co.document){return}const t=n.request&&n.request.url||Co.location&&Co.location.href;const{referrer:e}=Co.document||{};const{userAgent:r}=Co.navigator||{};const o={...n.request&&n.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}};const i={...n.request,...t&&{url:t},headers:o};n.request=i}})));const ds="cause";const hs=5;const ps="LinkedErrors";const ms=(n={})=>{const t=n.limit||hs;const e=n.key||ds;return{name:ps,preprocessEvent(n,r,o){const i=o.getOptions();N(Do,i.stackParser,i.maxValueLength,e,t,n,r)}}};const bs=Or(ms);function gs(n){return[io(),to(),Ji(),Bi(),rs(),bs(),vo(),ls()]}function _s(n={}){const t={defaultIntegrations:gs(),release:typeof __SENTRY_RELEASE__==="string"?__SENTRY_RELEASE__:Co.SENTRY_RELEASE&&Co.SENTRY_RELEASE.id?Co.SENTRY_RELEASE.id:undefined,autoSessionTracking:true,sendClientReports:true};if(n.defaultIntegrations==null){delete n.defaultIntegrations}return{...t,...n}}function ys(){const n=typeof Co.window!=="undefined"&&Co;if(!n){return false}const t=n.chrome?"chrome":"browser";const e=n[t];const r=e&&e.runtime&&e.runtime.id;const o=Co.location&&Co.location.href||"";const i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"];const s=!!r&&Co===Co.top&&i.some((n=>o.startsWith(`${n}//`)));const c=typeof n.nw!=="undefined";return!!r&&!s&&!c}function vs(n={}){const t=_s(n);if(ys()){H((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));return}if(Mo){if(!Mn()){G.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")}}const e={...t,stackParser:yn(t.stackParser||Di),integrations:Lr(t),transport:t.transport||vi};const r=zr(Ko,e);if(t.autoSessionTracking){ws()}return r}function ws(){if(typeof Co.document==="undefined"){Mo&&G.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}wr({ignoreDuration:true});Er();li((({from:n,to:t})=>{if(n!==undefined&&n!==t){wr({ignoreDuration:true});Er()}}))}const xs={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"};const ks=Co;async function Es(n,t){const e=xs[n];const r=ks.Sentry=ks.Sentry||{};if(!e){throw new Error(`Cannot lazy load integration: ${n}`)}const o=r[n];if(typeof o==="function"&&!("_isShim"in o)){return o}const i=Ss(e);const s=Co.document.createElement("script");s.src=i;s.crossOrigin="anonymous";s.referrerPolicy="origin";if(t){s.setAttribute("nonce",t)}const c=new Promise(((n,t)=>{s.addEventListener("load",(()=>n()));s.addEventListener("error",t)}));Co.document.body.appendChild(s);try{await c}catch(t){throw new Error(`Error when loading integration: ${n}`)}const u=r[n];if(typeof u!=="function"){throw new Error(`Could not load integration: ${n}`)}return u}function Ss(n){const t=xe();const e=t&&t.getOptions();const r=e&&e.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${j}/${n}.min.js`,r).toString()}const Ns=L;const $s=Ns.document;const Cs=Ns.navigator;const Ts="Report a Bug";const Is="Cancel";const js="Send Bug Report";const Ls="Confirm";const Ms="Report a Bug";const Ds="your.email@example.org";const Rs="Email";const Os="What's the bug? What did you expect?";const Fs="Description";const As="Your Name";const Bs="Name";const Ps="Thank you for your report!";const qs="(required)";const Us="Add a screenshot";const zs="Remove screenshot";const Hs="widget";const Ys="api";const Gs=5e3;const Xs=(n,t={includeReplay:true})=>{if(!n.message){throw new Error("Unable to submit feedback with empty message")}const e=xe();if(!e){throw new Error("No client setup, cannot send feedback.")}if(n.tags&&Object.keys(n.tags).length){_e().setTags(n.tags)}const r=$o({source:Ys,url:A(),...n},t);return new Promise(((n,t)=>{const o=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3);const i=e.on("afterSendEvent",((e,s)=>{if(e.event_id!==r){return}clearTimeout(o);i();if(s&&typeof s.statusCode==="number"&&s.statusCode>=200&&s.statusCode<300){n(r)}if(s&&typeof s.statusCode==="number"&&s.statusCode===0){return t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker.")}if(s&&typeof s.statusCode==="number"&&s.statusCode===403){return t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains.")}return t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))};const Vs=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Ws(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Cs.userAgent)){return false}if(/Macintosh/i.test(Cs.userAgent)&&Cs.maxTouchPoints&&Cs.maxTouchPoints>1){return false}if(!isSecureContext){return false}return true}function Js(n,t){return{...n,...t,tags:{...n.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen();n.onFormOpen&&n.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose();n.onFormClose&&n.onFormClose()},onSubmitSuccess:e=>{t.onSubmitSuccess&&t.onSubmitSuccess(e);n.onSubmitSuccess&&n.onSubmitSuccess(e)},onSubmitError:e=>{t.onSubmitError&&t.onSubmitError(e);n.onSubmitError&&n.onSubmitError(e)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted();n.onFormSubmitted&&n.onFormSubmitted()},themeDark:{...n.themeDark,...t.themeDark},themeLight:{...n.themeLight,...t.themeLight}}}function Ks(n){const t=$s.createElement("style");t.textContent=`\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Zs(n,t){Object.entries(t).forEach((([t,e])=>{n.setAttributeNS(null,t,e)}));return n}const Qs=20;const nc="http://www.w3.org/2000/svg";function tc(){const n=n=>Ns.document.createElementNS(nc,n);const t=Zs(n("svg"),{width:`${Qs}`,height:`${Qs}`,viewBox:`0 0 ${Qs} ${Qs}`,fill:"var(--foreground)"});const e=Zs(n("g"),{clipPath:"url(#clip0_57_80)"});const r=Zs(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(e).appendChild(r);const o=n("defs");const i=Zs(n("clipPath"),{id:"clip0_57_80"});const s=Zs(n("rect"),{width:`${Qs}`,height:`${Qs}`,fill:"white"});i.appendChild(s);o.appendChild(i);t.appendChild(o).appendChild(i).appendChild(s);return t}function ec({triggerLabel:n,triggerAriaLabel:t,shadow:e,styleNonce:r}){const o=$s.createElement("button");o.type="button";o.className="widget__actor";o.ariaHidden="false";o.ariaLabel=t||n||Ts;o.appendChild(tc());if(n){const t=$s.createElement("span");t.appendChild($s.createTextNode(n));o.appendChild(t)}const i=Ks(r);return{el:o,appendToDom(){e.appendChild(i);e.appendChild(o)},removeFromDom(){e.removeChild(o);e.removeChild(i)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const rc="rgba(88, 74, 192, 1)";const oc={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:rc,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"};const ic={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:rc,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function sc(n){return`\n --foreground: ${n.foreground};\n --background: ${n.background};\n --accent-foreground: ${n.accentForeground};\n --accent-background: ${n.accentBackground};\n --success-color: ${n.successColor};\n --error-color: ${n.errorColor};\n --border: ${n.border};\n --box-shadow: ${n.boxShadow};\n --outline: ${n.outline};\n --interactive-filter: ${n.interactiveFilter};\n `}function cc({colorScheme:n,themeDark:t,themeLight:e,styleNonce:r}){const o=$s.createElement("style");o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${n!=="system"?"color-scheme: only light;":""}\n\n ${sc(n==="dark"?{...ic,...t}:{...oc,...e})}\n}\n\n${n==="system"?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${sc({...ic,...t})}\n }\n}`:""}\n}\n`;if(r){o.setAttribute("nonce",r)}return o}const uc=({lazyLoadIntegration:n,getModalIntegration:t,getScreenshotIntegration:e})=>{const r=({id:r="sentry-feedback",autoInject:o=true,showBranding:i=true,isEmailRequired:s=false,isNameRequired:c=false,showEmail:u=true,showName:a=true,enableScreenshot:f=true,useSentryUser:l={email:"email",name:"username"},tags:d,styleNonce:h,scriptNonce:p,colorScheme:m="system",themeLight:b={},themeDark:g={},addScreenshotButtonLabel:_=Us,cancelButtonLabel:y=Is,confirmButtonLabel:v=Ls,emailLabel:w=Rs,emailPlaceholder:x=Ds,formTitle:k=Ms,isRequiredLabel:E=qs,messageLabel:S=Fs,messagePlaceholder:N=Os,nameLabel:$=Bs,namePlaceholder:C=As,removeScreenshotButtonLabel:T=zs,submitButtonLabel:I=js,successMessageText:j=Ps,triggerLabel:L=Ts,triggerAriaLabel:M="",onFormOpen:D,onFormClose:R,onSubmitSuccess:O,onSubmitError:F,onFormSubmitted:A}={})=>{const B={id:r,autoInject:o,showBranding:i,isEmailRequired:s,isNameRequired:c,showEmail:u,showName:a,enableScreenshot:f,useSentryUser:l,tags:d,styleNonce:h,scriptNonce:p,colorScheme:m,themeDark:g,themeLight:b,triggerLabel:L,triggerAriaLabel:M,cancelButtonLabel:y,submitButtonLabel:I,confirmButtonLabel:v,formTitle:k,emailLabel:w,emailPlaceholder:x,messageLabel:S,messagePlaceholder:N,nameLabel:$,namePlaceholder:C,successMessageText:j,isRequiredLabel:E,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:T,onFormClose:R,onFormOpen:D,onSubmitError:F,onSubmitSuccess:O,onFormSubmitted:A};let P=null;let q=[];const U=n=>{if(!P){const t=$s.createElement("div");t.id=String(n.id);$s.body.appendChild(t);P=t.attachShadow({mode:"open"});P.appendChild(cc(n))}return P};const z=async(t,e,r)=>{const o=xe();const i=o&&o.getIntegrationByName(t);if(i){return i}const s=e&&e()||await n(r,p);const c=s();o&&o.addIntegration(c);return c};const H=async n=>{const r=n.enableScreenshot&&Ws();const[o,i]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",e,"feedbackScreenshotIntegration"):undefined]);if(!o){Vs&&G.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`.");throw new Error("[Feedback] Missing feedback modal integration!")}if(r&&!i){Vs&&G.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const s=o.createDialog({options:{...n,onFormClose:()=>{s&&s.close();n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.close();n.onFormSubmitted&&n.onFormSubmitted()}},screenshotIntegration:r?i:undefined,sendFeedback:Xs,shadow:U(n)});return s};const Y=(n,t={})=>{const e=Js(B,t);const r=typeof n==="string"?$s.querySelector(n):typeof n.addEventListener==="function"?n:null;if(!r){Vs&&G.error("[Feedback] Unable to attach to target element");throw new Error("Unable to attach to target element")}let o=null;const i=async()=>{if(!o){o=await H({...e,onFormSubmitted:()=>{o&&o.removeFromDom();e.onFormSubmitted&&e.onFormSubmitted()}})}o.appendToDom();o.open()};r.addEventListener("click",i);const s=()=>{q=q.filter((n=>n!==s));o&&o.removeFromDom();o=null;r.removeEventListener("click",i)};q.push(s);return s};const X=(n={})=>{const t=Js(B,n);const e=U(t);const r=ec({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:e,styleNonce:h});Y(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}});return r};return{name:"Feedback",setupOnce(){if(!nt()||!B.autoInject){return}if($s.readyState==="loading"){$s.addEventListener("DOMContentLoaded",(()=>X().appendToDom()))}else{X().appendToDom()}},attachTo:Y,createWidget(n={}){const t=X(Js(B,n));t.appendToDom();return t},async createForm(n={}){return H(Js(B,n))},remove(){if(P){P.parentElement&&P.parentElement.remove();P=null}q.forEach((n=>n()));q=[]}}};return r};var ac,fc,lc,dc,hc,pc,mc,bc={},gc=[],_c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yc=Array.isArray;function vc(n,t){for(var e in t)n[e]=t[e];return n}function wc(n){var t=n.parentNode;t&&t.removeChild(n)}function xc(n,t,e){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ac.call(arguments,2):e),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===s[i]&&(s[i]=n.defaultProps[i]);return kc(n,s,r,o,null)}function kc(n,t,e,r,o){var i={type:n,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++lc:o,__i:-1,__u:0};return null==o&&null!=fc.vnode&&fc.vnode(i),i}function Ec(n){return n.children}function Sc(n,t){this.props=n,this.context=t}function Nc(n,t){if(null==t)return n.__?Nc(n.__,n.__i+1):null;for(var e;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e)return e.__e;return"function"==typeof n.type?Nc(n):null}function $c(n,t,e){var r,o=n.__v,i=o.__e,s=n.__P;if(s)return(r=vc({},o)).__v=o.__v+1,fc.vnode&&fc.vnode(r),Bc(s,r,o,n.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?Nc(o):i,!!(32&o.__u),e),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&Cc(r),r}function Cc(n){var t,e;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e){n.__e=n.__c.base=e.__e;break}return Cc(n)}}function Tc(n){(!n.__d&&(n.__d=!0)&&dc.push(n)&&!Ic.__r++||hc!==fc.debounceRendering)&&((hc=fc.debounceRendering)||pc)(Ic)}function Ic(){var n,t,e,r=[],o=[];for(dc.sort(mc);n=dc.shift();)n.__d&&(e=dc.length,t=$c(n,r,o)||t,0===e||dc.length>e?(Pc(r,t,o),o.length=r.length=0,t=void 0,dc.sort(mc)):t&&fc.__c&&fc.__c(t,gc));t&&Pc(r,t,o),Ic.__r=0}function jc(n,t,e,r,o,i,s,c,u,a,f){var l,d,h,p,m,b=r&&r.__k||gc,g=t.length;for(e.__d=u,Lc(e,t,b),u=e.__d,l=0;l<g;l++)null!=(h=e.__k[l])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?bc:b[h.__i]||bc,h.__i=l,Bc(n,h,d,o,i,s,c,u,a,f),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Uc(d.ref,null,h),f.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||d.__k===h.__k?u=Mc(h,u,n):"function"==typeof h.type&&void 0!==h.__d?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);e.__d=u,e.__e=m}function Lc(n,t,e){var r,o,i,s,c,u=t.length,a=e.length,f=a,l=0;for(n.__k=[],r=0;r<u;r++)null!=(o=n.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?kc(null,o,null,null,o):yc(o)?kc(Ec,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?kc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=n,o.__b=n.__b+1,c=Dc(o,e,s=r+l,f),o.__i=c,i=null,-1!==c&&(f--,(i=e[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&l--,"function"!=typeof o.type&&(o.__u|=65536)):c!==s&&(c===s+1?l++:c>s?f>u-s?l+=c-s:l--:l=c<s&&c==s-1?c-s:0,c!==r+l&&(o.__u|=65536))):(i=e[r])&&null==i.key&&i.__e&&(i.__e==n.__d&&(n.__d=Nc(i)),zc(i,i,!1),e[r]=null,f--);if(f)for(r=0;r<a;r++)null!=(i=e[r])&&0==(131072&i.__u)&&(i.__e==n.__d&&(n.__d=Nc(i)),zc(i,i))}function Mc(n,t,e){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,t=Mc(r[o],t,e));return t}n.__e!=t&&(e.insertBefore(n.__e,t||null),t=n.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Dc(n,t,e,r){var o=n.key,i=n.type,s=e-1,c=e+1,u=t[e];if(null===u||u&&o==u.key&&i===u.type)return e;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;s>=0||c<t.length;){if(s>=0){if((u=t[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(c<t.length){if((u=t[c])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Rc(n,t,e){"-"===t[0]?n.setProperty(t,null==e?"":e):n[t]=null==e?"":"number"!=typeof e||_c.test(t)?e:e+"px"}function Oc(n,t,e,r,o){var i;n:if("style"===t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)e&&t in e||Rc(n.style,t,"");if(e)for(t in e)r&&e[t]===r[t]||Rc(n.style,t,e[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+i]=e,e?r?e.u=r.u:(e.u=Date.now(),n.addEventListener(t,i?Ac:Fc,i)):n.removeEventListener(t,i?Ac:Fc,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in n)try{n[t]=null==e?"":e;break n}catch(n){}"function"==typeof e||(null==e||!1===e&&"-"!==t[4]?n.removeAttribute(t):n.setAttribute(t,e))}}function Fc(n){if(this.l){var t=this.l[n.type+!1];if(n.t){if(n.t<=t.u)return}else n.t=Date.now();return t(fc.event?fc.event(n):n)}}function Ac(n){if(this.l)return this.l[n.type+!0](fc.event?fc.event(n):n)}function Bc(n,t,e,r,o,i,s,c,u,a){var f,l,d,h,p,m,b,g,_,y,v,w,x,k,E,S=t.type;if(void 0!==t.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[c=t.__e=e.__e]),(f=fc.__b)&&f(t);n:if("function"==typeof S)try{if(g=t.props,_=(f=S.contextType)&&r[f.__c],y=f?_?_.props.value:f.__:r,e.__c?b=(l=t.__c=e.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(g,y):(t.__c=l=new Sc(g,y),l.constructor=S,l.render=Hc),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=vc({},l.__s)),vc(l.__s,S.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=t,d)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===e.__v)){for(t.__v!==e.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach((function(n){n&&(n.__=t)})),v=0;v<l._sb.length;v++)l.__h.push(l._sb[v]);l._sb=[],l.__h.length&&s.push(l);break n}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,p,m)}))}if(l.context=y,l.props=g,l.__P=n,l.__e=!1,w=fc.__r,x=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),k=0;k<l._sb.length;k++)l.__h.push(l._sb[k]);l._sb=[]}else do{l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++x<25);l.state=l.__s,null!=l.getChildContext&&(r=vc(vc({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(m=l.getSnapshotBeforeUpdate(h,p)),jc(n,yc(E=null!=f&&f.type===Ec&&null==f.key?f.props.children:f)?E:[E],t,e,r,o,i,s,c,u,a),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),b&&(l.__E=l.__=null)}catch(n){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=e.__e,t.__k=e.__k),fc.__e(n,t,e)}else null==i&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=qc(e.__e,t,e,r,o,i,s,u,a);(f=fc.diffed)&&f(t)}function Pc(n,t,e){for(var r=0;r<e.length;r++)Uc(e[r],e[++r],e[++r]);fc.__c&&fc.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){fc.__e(n,t.__v)}}))}function qc(n,t,e,r,o,i,s,c,u){var a,f,l,d,h,p,m,b=e.props,g=t.props,_=t.type;if("svg"===_&&(o=!0),null!=i)for(a=0;a<i.length;a++)if((h=i[a])&&"setAttribute"in h==!!_&&(_?h.localName===_:3===h.nodeType)){n=h,i[a]=null;break}if(null==n){if(null===_)return document.createTextNode(g);n=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,g.is&&g),i=null,c=!1}if(null===_)b===g||c&&n.data===g||(n.data=g);else{if(i=i&&ac.call(n.childNodes),b=e.props||bc,!c&&null!=i)for(b={},a=0;a<n.attributes.length;a++)b[(h=n.attributes[a]).name]=h.value;for(a in b)h=b[a],"children"==a||("dangerouslySetInnerHTML"==a?l=h:"key"===a||a in g||Oc(n,a,null,h,o));for(a in g)h=g[a],"children"==a?d=h:"dangerouslySetInnerHTML"==a?f=h:"value"==a?p=h:"checked"==a?m=h:"key"===a||c&&"function"!=typeof h||b[a]===h||Oc(n,a,h,b[a],o);if(f)c||l&&(f.__html===l.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),t.__k=[];else if(l&&(n.innerHTML=""),jc(n,yc(d)?d:[d],t,e,r,o&&"foreignObject"!==_,i,s,i?i[0]:e.__k&&Nc(e,0),c,u),null!=i)for(a=i.length;a--;)null!=i[a]&&wc(i[a]);c||(a="value",void 0!==p&&(p!==n[a]||"progress"===_&&!p||"option"===_&&p!==b[a])&&Oc(n,a,p,b[a],!1),a="checked",void 0!==m&&m!==n[a]&&Oc(n,a,m,b[a],!1))}return n}function Uc(n,t,e){try{"function"==typeof n?n(t):n.current=t}catch(n){fc.__e(n,e)}}function zc(n,t,e){var r,o;if(fc.unmount&&fc.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Uc(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){fc.__e(n,t)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&zc(r[o],t,e||"function"!=typeof n.type);e||null==n.__e||wc(n.__e),n.__=n.__e=n.__d=void 0}function Hc(n,t,e){return this.constructor(n,e)}function Yc(n,t,e){var r,o,i,s;fc.__&&fc.__(n,t),o=(r="function"==typeof e)?null:e&&e.__k||t.__k,i=[],s=[],Bc(t,n=(!r&&e||t).__k=xc(Ec,null,[n]),o||bc,bc,void 0!==t.ownerSVGElement,!r&&e?[e]:o?null:t.firstChild?ac.call(t.childNodes):null,i,!r&&e?e:o?o.__e:t.firstChild,r,s),n.__d=void 0,Pc(i,n,s)}ac=gc.slice,fc={__e:function(n,t,e,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(n)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(n,r||{}),s=o.__d),s)return o.__E=o}catch(t){n=t}throw n}},lc=0,Sc.prototype.setState=function(n,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vc({},this.state),"function"==typeof n&&(n=n(vc({},e),this.props)),n&&vc(e,n),null!=n&&this.__v&&(t&&this._sb.push(t),Tc(this))},Sc.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Tc(this))},Sc.prototype.render=Ec,dc=[],pc="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mc=function(n,t){return n.__v.__b-t.__v.__b},Ic.__r=0;var Gc,Xc,Vc,Wc,Jc=0,Kc=[],Zc=[],Qc=fc,nu=Qc.__b,tu=Qc.__r,eu=Qc.diffed,ru=Qc.__c,ou=Qc.unmount,iu=Qc.__;function su(n,t){Qc.__h&&Qc.__h(Xc,n,Jc||t),Jc=0;var e=Xc.__H||(Xc.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:Zc}),e.__[n]}function cu(n){return Jc=1,uu(Su,n)}function uu(n,t,e){var r=su(Gc++,2);if(r.t=n,!r.__c&&(r.__=[e?e(t):Su(void 0,t),function(n){var t=r.__N?r.__N[0]:r.__[0],e=r.t(t,n);t!==e&&(r.__N=[e,r.__[1]],r.__c.setState({}))}],r.__c=Xc,!Xc.u)){var o=function(n,t,e){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(n){return!!n.__c}));if(o.every((function(n){return!n.__N})))return!i||i.call(this,n,t,e);var s=!1;return o.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(s=!0)}})),!(!s&&r.__c.props===n)&&(!i||i.call(this,n,t,e))};Xc.u=!0;var i=Xc.shouldComponentUpdate,s=Xc.componentWillUpdate;Xc.componentWillUpdate=function(n,t,e){if(this.__e){var r=i;i=void 0,o(n,t,e),i=r}s&&s.call(this,n,t,e)},Xc.shouldComponentUpdate=o}return r.__N||r.__}function au(n,t){var e=su(Gc++,3);!Qc.__s&&Eu(e.__H,t)&&(e.__=n,e.i=t,Xc.__H.__h.push(e))}function fu(n,t){var e=su(Gc++,4);!Qc.__s&&Eu(e.__H,t)&&(e.__=n,e.i=t,Xc.__h.push(e))}function lu(n){return Jc=5,hu((function(){return{current:n}}),[])}function du(n,t,e){Jc=6,fu((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==e?e:e.concat(n))}function hu(n,t){var e=su(Gc++,7);return Eu(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function pu(n,t){return Jc=8,hu((function(){return n}),t)}function mu(n){var t=Xc.context[n.__c],e=su(Gc++,9);return e.c=n,t?(null==e.__&&(e.__=!0,t.sub(Xc)),t.props.value):n.__}function bu(n,t){Qc.useDebugValue&&Qc.useDebugValue(t?t(n):n)}function gu(n){var t=su(Gc++,10),e=cu();return t.__=n,Xc.componentDidCatch||(Xc.componentDidCatch=function(n,r){t.__&&t.__(n,r),e[1](n)}),[e[0],function(){e[1](void 0)}]}function _u(){var n=su(Gc++,11);if(!n.__){for(var t=Xc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var e=t.__m||(t.__m=[0,0]);n.__="P"+e[0]+"-"+e[1]++}return n.__}function yu(){for(var n;n=Kc.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(xu),n.__H.__h.forEach(ku),n.__H.__h=[]}catch(t){n.__H.__h=[],Qc.__e(t,n.__v)}}Qc.__b=function(n){Xc=null,nu&&nu(n)},Qc.__=function(n,t){t.__k&&t.__k.__m&&(n.__m=t.__k.__m),iu&&iu(n,t)},Qc.__r=function(n){tu&&tu(n),Gc=0;var t=(Xc=n.__c).__H;t&&(Vc===Xc?(t.__h=[],Xc.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=Zc,n.__N=n.i=void 0}))):(t.__h.forEach(xu),t.__h.forEach(ku),t.__h=[],Gc=0)),Vc=Xc},Qc.diffed=function(n){eu&&eu(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Kc.push(t)&&Wc===Qc.requestAnimationFrame||((Wc=Qc.requestAnimationFrame)||wu)(yu)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==Zc&&(n.__=n.__V),n.i=void 0,n.__V=Zc}))),Vc=Xc=null},Qc.__c=function(n,t){t.some((function(n){try{n.__h.forEach(xu),n.__h=n.__h.filter((function(n){return!n.__||ku(n)}))}catch(e){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Qc.__e(e,n.__v)}})),ru&&ru(n,t)},Qc.unmount=function(n){ou&&ou(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach((function(n){try{xu(n)}catch(n){t=n}})),e.__H=void 0,t&&Qc.__e(t,e.__v))};var vu="function"==typeof requestAnimationFrame;function wu(n){var t,e=function(){clearTimeout(r),vu&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(e,100);vu&&(t=requestAnimationFrame(e))}function xu(n){var t=Xc,e=n.__c;"function"==typeof e&&(n.__c=void 0,e()),Xc=t}function ku(n){var t=Xc;n.__c=n.__(),Xc=t}function Eu(n,t){return!n||n.length!==t.length||t.some((function(t,e){return t!==n[e]}))}function Su(n,t){return"function"==typeof t?t(n):t}const Nu={__proto__:null,useCallback:pu,useContext:mu,useDebugValue:bu,useEffect:au,useErrorBoundary:gu,useId:_u,useImperativeHandle:du,useLayoutEffect:fu,useMemo:hu,useReducer:uu,useRef:lu,useState:cu};const $u="http://www.w3.org/2000/svg";function Cu(){const n=n=>$s.createElementNS($u,n);const t=Zs(n("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"});const e=Zs(n("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});t.appendChild(e);return t}const Tu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function Iu({options:n}){const t=hu((()=>({__html:Cu().outerHTML})),[]);return xc("h2",{class:"dialog__header",__self:this,__source:{fileName:Tu,lineNumber:16}},n.formTitle,n.showBranding?xc("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:Tu,lineNumber:19}}):null)}function ju(n,t){const e=[];if(t.isNameRequired&&!n.name){e.push(t.nameLabel)}if(t.isEmailRequired&&!n.email){e.push(t.emailLabel)}if(!n.message){e.push(t.messageLabel)}return e}const Lu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Mu(n,t){const e=n.get(t);if(typeof e==="string"){return e.trim()}return""}function Du({options:n,defaultEmail:t,defaultName:e,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:c,showName:u,screenshotInput:a}){const{tags:f,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:b,isNameRequired:g,messageLabel:_,messagePlaceholder:y,nameLabel:v,namePlaceholder:w,submitButtonLabel:x,isRequiredLabel:k}=n;const[E,S]=cu(null);const[N,$]=cu(false);const C=a&&a.input;const[T,I]=cu(null);const j=pu((n=>{I(n);$(false)}),[]);const L=pu((n=>{const t=ju(n,{emailLabel:p,isEmailRequired:b,isNameRequired:g,messageLabel:_,nameLabel:v});if(t.length>0){S(`Please enter in the following required fields: ${t.join(", ")}`)}else{S(null)}return t.length===0}),[p,b,g,_,v]);const M=pu((async n=>{try{n.preventDefault();if(!(n.target instanceof HTMLFormElement)){return}const t=new FormData(n.target);const e=await(a&&N?a.value():undefined);const r={name:Mu(t,"name"),email:Mu(t,"email"),message:Mu(t,"message"),attachments:e?[e]:undefined};if(!L(r)){return}try{await o({name:r.name,email:r.email,message:r.message,source:Hs,tags:f},{attachments:r.attachments});i(r)}catch(n){Vs&&G.error(n);S(n);s(n)}}catch(n){}}),[a&&N,i,s]);return xc("form",{class:"form",onSubmit:M,__self:this,__source:{fileName:Lu,lineNumber:144}},C&&N?xc(C,{onError:j,__self:this,__source:{fileName:Lu,lineNumber:146}}):null,xc("div",{class:"form__right","data-sentry-feedback":true,__self:this,__source:{fileName:Lu,lineNumber:149}},xc("div",{class:"form__top",__self:this,__source:{fileName:Lu,lineNumber:150}},E?xc("div",{class:"form__error-container",__self:this,__source:{fileName:Lu,lineNumber:151}},E):null,u?xc("label",{for:"name",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:154}},xc(Ru,{label:v,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:Lu,lineNumber:155}}),xc("input",{class:"form__input",defaultValue:e,id:"name",name:"name",placeholder:w,required:g,type:"text",__self:this,__source:{fileName:Lu,lineNumber:156}})):xc("input",{"aria-hidden":true,value:e,name:"name",type:"hidden",__self:this,__source:{fileName:Lu,lineNumber:167}}),c?xc("label",{for:"email",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:171}},xc(Ru,{label:p,isRequiredLabel:k,isRequired:b,__self:this,__source:{fileName:Lu,lineNumber:172}}),xc("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email",__self:this,__source:{fileName:Lu,lineNumber:173}})):xc("input",{"aria-hidden":true,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:Lu,lineNumber:184}}),xc("label",{for:"message",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:187}},xc(Ru,{label:_,isRequiredLabel:k,isRequired:true,__self:this,__source:{fileName:Lu,lineNumber:188}}),xc("textarea",{autoFocus:true,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:y,required:true,rows:5,__self:this,__source:{fileName:Lu,lineNumber:189}})),C?xc("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:Lu,lineNumber:201}},xc("button",{class:"btn btn--default",type:"button",onClick:()=>{I(null);$((n=>!n))},__self:this,__source:{fileName:Lu,lineNumber:202}},N?d:l),T?xc("div",{class:"form__error-container",__self:this,__source:{fileName:Lu,lineNumber:212}},T.message):null):null),xc("div",{class:"btn-group",__self:this,__source:{fileName:Lu,lineNumber:216}},xc("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:Lu,lineNumber:217}},x),xc("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:Lu,lineNumber:220}},h))))}function Ru({label:n,isRequired:t,isRequiredLabel:e}){return xc("span",{class:"form__label__text",__self:this,__source:{fileName:Lu,lineNumber:239}},n,t&&xc("span",{class:"form__label__text--required",__self:this,__source:{fileName:Lu,lineNumber:241}},e))}const Ou=16;const Fu=17;const Au="http://www.w3.org/2000/svg";function Bu(){const n=n=>Ns.document.createElementNS(Au,n);const t=Zs(n("svg"),{width:`${Ou}`,height:`${Fu}`,viewBox:`0 0 ${Ou} ${Fu}`,fill:"inherit"});const e=Zs(n("g"),{clipPath:"url(#clip0_57_156)"});const r=Zs(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"});const o=Zs(n("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(e).append(o,r);const i=n("defs");const s=Zs(n("clipPath"),{id:"clip0_57_156"});const c=Zs(n("rect"),{width:`${Ou}`,height:`${Ou}`,fill:"white",transform:"translate(0 0.5)"});s.appendChild(c);i.appendChild(s);t.appendChild(i).appendChild(s).appendChild(c);return t}const Pu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function qu({open:n,onFormSubmitted:t,...e}){const r=e.options;const o=hu((()=>({__html:Bu().outerHTML})),[]);const[i,s]=cu(null);const c=pu((()=>{if(i){clearTimeout(i);s(null)}t()}),[i]);const u=pu((n=>{e.onSubmitSuccess(n);s(setTimeout((()=>{t();s(null)}),Gs))}),[t]);return xc(Ec,{__self:this,__source:{fileName:Pu,lineNumber:48}},i?xc("div",{class:"success__position",onClick:c,__self:this,__source:{fileName:Pu,lineNumber:50}},xc("div",{class:"success__content",__self:this,__source:{fileName:Pu,lineNumber:51}},r.successMessageText,xc("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:Pu,lineNumber:53}}))):xc("dialog",{class:"dialog",onClick:r.onFormClose,open:n,__self:this,__source:{fileName:Pu,lineNumber:57}},xc("div",{class:"dialog__position",__self:this,__source:{fileName:Pu,lineNumber:58}},xc("div",{class:"dialog__content",onClick:n=>{n.stopPropagation()},__self:this,__source:{fileName:Pu,lineNumber:59}},xc(Iu,{options:r,__self:this,__source:{fileName:Pu,lineNumber:66}}),xc(Du,{...e,onSubmitSuccess:u,__self:this,__source:{fileName:Pu,lineNumber:67}})))))}const Uu=`\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n`;const zu=`\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n`;const Hu=`\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 var(--form-width, 272px);\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: auto;\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n`;const Yu=`\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n`;const Gu=`\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n`;function Xu(n){const t=$s.createElement("style");t.textContent=`\n:host {\n --dialog-inset: var(--inset);\n}\n\n${Uu}\n${zu}\n${Hu}\n${Yu}\n${Gu}\n`;if(n){t.setAttribute("nonce",n)}return t}const Vu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";function Wu(){const n=_e().getUser();const t=ye().getUser();const e=ve().getUser();if(n&&Object.keys(n).length){return n}if(t&&Object.keys(t).length){return t}return e}const Ju=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:n,screenshotIntegration:t,sendFeedback:e,shadow:r})=>{const o=r;const i=n.useSentryUser;const s=Wu();const c=$s.createElement("div");const u=Xu(n.styleNonce);let a="";const f={get el(){return c},appendToDom(){if(!o.contains(u)&&!o.contains(c)){o.appendChild(u);o.appendChild(c)}},removeFromDom(){o.removeChild(c);o.removeChild(u);$s.body.style.overflow=a},open(){d(true);n.onFormOpen&&n.onFormOpen();a=$s.body.style.overflow;$s.body.style.overflow="hidden"},close(){d(false);$s.body.style.overflow=a}};const l=t&&t.createInput({h:xc,hooks:Nu,dialog:f,options:n});const d=t=>{Yc(xc(qu,{options:n,screenshotInput:l,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,defaultName:i&&s&&s[i.name]||"",defaultEmail:i&&s&&s[i.email]||"",onFormClose:()=>{d(false);n.onFormClose&&n.onFormClose()},onSubmit:e,onSubmitSuccess:t=>{d(false);n.onSubmitSuccess&&n.onSubmitSuccess(t)},onSubmitError:t=>{n.onSubmitError&&n.onSubmitError(t)},onFormSubmitted:()=>{n.onFormSubmitted&&n.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:Vu,lineNumber:67}}),c)};return f}});const Ku="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function Zu({h:n}){return function t({top:e,left:r,corner:o,onGrabButton:i}){return n("button",{class:`editor__crop-corner editor__crop-corner--${o} `,style:{top:e,left:r},onMouseDown:n=>{n.preventDefault();i(n,o)},onClick:n=>{n.preventDefault()},__self:this,__source:{fileName:Ku,lineNumber:22}})}}function Qu(n){const t=$s.createElement("style");const e="#1A141F";const r="#302735";t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${e};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${e} 8px,\n ${e} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function na({hooks:n}){return function t({onBeforeScreenshot:e,onScreenshot:r,onAfterScreenshot:o,onError:i}){n.useEffect((()=>{const n=async()=>{e();const n=await Cs.mediaDevices.getDisplayMedia({video:{width:Ns.innerWidth*Ns.devicePixelRatio,height:Ns.innerHeight*Ns.devicePixelRatio},audio:false,monitorTypeSurfaces:"exclude",preferCurrentTab:true,selfBrowserSurface:"include",surfaceSwitching:"exclude"});const t=$s.createElement("video");await new Promise(((e,o)=>{t.srcObject=n;t.onloadedmetadata=()=>{r(t);n.getTracks().forEach((n=>n.stop()));e()};t.play().catch(o)}));o()};n().catch(i)}),[])}}const ta="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx";const ea=30;const ra=3;const oa=ea+ra;const ia=Ns.devicePixelRatio;const sa=n=>({x:Math.min(n.startX,n.endX),y:Math.min(n.startY,n.endY),width:Math.abs(n.startX-n.endX),height:Math.abs(n.startY-n.endY)});const ca=n=>{const t=n.clientHeight;const e=n.clientWidth;const r=n.width/n.height;let o=t*r;let i=t;if(o>e){o=e;i=e/r}const s=(e-o)/2;const c=(t-i)/2;return{startX:s,startY:c,endX:o+s,endY:i+c}};function ua({h:n,hooks:t,imageBuffer:e,dialog:r,options:o}){const i=na({hooks:t});return function s({onError:c}){const u=t.useMemo((()=>({__html:Qu(o.styleNonce).innerText})),[]);const a=Zu({h:n});const f=t.useRef(null);const l=t.useRef(null);const d=t.useRef(null);const[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0});const[m,b]=t.useState(false);const[g,_]=t.useState(false);t.useEffect((()=>{Ns.addEventListener("resize",y,false)}),[]);function y(){const n=d.current;const t=sa(ca(e));if(n){n.width=t.width*ia;n.height=t.height*ia;n.style.width=`${t.width}px`;n.style.height=`${t.height}px`;const e=n.getContext("2d");if(e){e.scale(ia,ia)}}const r=l.current;if(r){r.style.width=`${t.width}px`;r.style.height=`${t.height}px`}p({startX:0,startY:0,endX:t.width,endY:t.height})}t.useEffect((()=>{const n=d.current;if(!n){return}const t=n.getContext("2d");if(!t){return}const r=sa(ca(e));const o=sa(h);t.clearRect(0,0,r.width,r.height);t.fillStyle="rgba(0, 0, 0, 0.5)";t.fillRect(0,0,r.width,r.height);t.clearRect(o.x,o.y,o.width,o.height);t.strokeStyle="#ffffff";t.lineWidth=3;t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2);t.strokeStyle="#000000";t.lineWidth=1;t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)}),[h]);function v(n,t){b(false);_(true);const e=w(t);const r=()=>{$s.removeEventListener("mousemove",e);$s.removeEventListener("mouseup",r);b(true);_(false)};$s.addEventListener("mouseup",r);$s.addEventListener("mousemove",e)}const w=t.useCallback((n=>function(t){if(!d.current){return}const e=d.current;const r=e.getBoundingClientRect();const o=t.clientX-r.x;const i=t.clientY-r.y;switch(n){case"top-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-oa),startY:Math.min(Math.max(0,i),n.endY-oa)})));break;case"top-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ia),n.startX+oa),startY:Math.min(Math.max(0,i),n.endY-oa)})));break;case"bottom-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-oa),endY:Math.max(Math.min(i,e.height/ia),n.startY+oa)})));break;case"bottom-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ia),n.startX+oa),endY:Math.max(Math.min(i,e.height/ia),n.startY+oa)})));break}}),[]);const x=t.useRef({initialX:0,initialY:0});function k(n){if(g)return;x.current={initialX:n.clientX,initialY:n.clientY};const t=n=>{const t=d.current;if(!t)return;const e=n.clientX-x.current.initialX;const r=n.clientY-x.current.initialY;p((o=>{const i=Math.max(0,Math.min(o.startX+e,t.width/ia-(o.endX-o.startX)));const s=Math.max(0,Math.min(o.startY+r,t.height/ia-(o.endY-o.startY)));const c=i+(o.endX-o.startX);const u=s+(o.endY-o.startY);x.current.initialX=n.clientX;x.current.initialY=n.clientY;return{startX:i,startY:s,endX:c,endY:u}}))};const e=()=>{$s.removeEventListener("mousemove",t);$s.removeEventListener("mouseup",e)};$s.addEventListener("mousemove",t);$s.addEventListener("mouseup",e)}function E(){const n=$s.createElement("canvas");const t=sa(ca(e));const r=sa(h);n.width=r.width*ia;n.height=r.height*ia;const o=n.getContext("2d");if(o&&e){o.drawImage(e,r.x/t.width*e.width,r.y/t.height*e.height,r.width/t.width*e.width,r.height/t.height*e.height,0,0,n.width,n.height)}const i=e.getContext("2d");if(i){i.clearRect(0,0,e.width,e.height);e.width=n.width;e.height=n.height;e.style.width=`${r.width}px`;e.style.height=`${r.height}px`;i.drawImage(n,0,0);y()}}i({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((n=>{const t=e.getContext("2d");if(!t){throw new Error("Could not get canvas context")}e.width=n.videoWidth;e.height=n.videoHeight;e.style.width="100%";e.style.height="100%";t.drawImage(n,0,0)}),[e]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const n=f.current;n&&n.appendChild(e);y()}),[]),onError:t.useCallback((n=>{r.el.style.display="block";c(n)}),[])});return n("div",{class:"editor",__self:this,__source:{fileName:ta,lineNumber:315}},n("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:ta,lineNumber:316}}),n("div",{class:"editor__canvas-container",ref:f,__self:this,__source:{fileName:ta,lineNumber:317}},n("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l,__self:this,__source:{fileName:ta,lineNumber:318}},n("canvas",{onMouseDown:k,style:{position:"absolute",cursor:m?"move":"auto"},ref:d,__self:this,__source:{fileName:ta,lineNumber:319}}),n(a,{left:h.startX-ra,top:h.startY-ra,onGrabButton:v,corner:"top-left",__self:this,__source:{fileName:ta,lineNumber:324}}),n(a,{left:h.endX-ea+ra,top:h.startY-ra,onGrabButton:v,corner:"top-right",__self:this,__source:{fileName:ta,lineNumber:330}}),n(a,{left:h.startX-ra,top:h.endY-ea+ra,onGrabButton:v,corner:"bottom-left",__self:this,__source:{fileName:ta,lineNumber:336}}),n(a,{left:h.endX-ea+ra,top:h.endY-ea+ra,onGrabButton:v,corner:"bottom-right",__self:this,__source:{fileName:ta,lineNumber:342}}),n("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:ta,lineNumber:348}},n("button",{onClick:n=>{n.preventDefault();if(d.current){p({startX:0,startY:0,endX:d.current.width/ia,endY:d.current.height/ia})}b(false)},class:"btn btn--default",__self:this,__source:{fileName:ta,lineNumber:356}},o.cancelButtonLabel),n("button",{onClick:n=>{n.preventDefault();E();b(false)},class:"btn btn--primary",__self:this,__source:{fileName:ta,lineNumber:373}},o.confirmButtonLabel)))))}}const aa=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:n,hooks:t,dialog:e,options:r})=>{const o=$s.createElement("canvas");return{input:ua({h:n,hooks:t,imageBuffer:o,dialog:e,options:r}),value:async()=>{const n=await new Promise((n=>{o.toBlob(n,"image/png")}));if(n){const t=new Uint8Array(await n.arrayBuffer());const e={data:t,filename:"screenshot.png",contentType:"application/png"};return e}return undefined}}}});const fa=uc({lazyLoadIntegration:Es,getModalIntegration:()=>Ju,getScreenshotIntegration:()=>aa});export{r as E,vs as a,$o as b,_r as c,fa as f,vr as i};
2
+ //# sourceMappingURL=p-094be30f.js.map