diff --git a/client/package.json b/client/package.json index 1eb7a9b284bb..13bc51608708 100644 --- a/client/package.json +++ b/client/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@popperjs/core": "^2.11.8", - "@sentry/browser": "10.42.0", + "@sentry/browser": "10.43.0", "@tarekraafat/autocomplete.js": "10.2.9", "altcha": "2.3.0", "autosize": "6.0.1", diff --git a/client/yarn.lock b/client/yarn.lock index 57d4b4922e52..695455ebe457 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -56,51 +56,51 @@ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz#1a7481137a54740bee1ded4ae5752450f155d942" integrity sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w== -"@sentry-internal/browser-utils@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-10.42.0.tgz#97b7f8652e66e2ad4b3f14e12c47e5f827d8d763" - integrity sha512-HCEICKvepxN4/6NYfnMMMlppcSwIEwtS66X6d1/mwaHdi2ivw0uGl52p7Nfhda/lIJArbrkWprxl0WcjZajhQA== - dependencies: - "@sentry/core" "10.42.0" - -"@sentry-internal/feedback@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-10.42.0.tgz#5c965367ff839da8289a27b308f14eab152eb8d7" - integrity sha512-lpPcHsog10MVYFTWE0Pf8vQRqQWwZHJpkVl2FEb9/HDdHFyTBUhCVoWo1KyKaG7GJl9AVKMAg7bp9SSNArhFNQ== - dependencies: - "@sentry/core" "10.42.0" - -"@sentry-internal/replay-canvas@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-10.42.0.tgz#091ca5a4d314aa599bd9f3988f57ed744f828249" - integrity sha512-am3m1Fj8ihoPfoYo41Qq4KeCAAICn4bySso8Oepu9dMNe9Lcnsf+reMRS2qxTPg3pZDc4JEMOcLyNCcgnAfrHw== - dependencies: - "@sentry-internal/replay" "10.42.0" - "@sentry/core" "10.42.0" - -"@sentry-internal/replay@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-10.42.0.tgz#bcc9e5d9468389c0fb4de557432a6fbba739fdeb" - integrity sha512-Zh3EoaH39x2lqVY1YyVB2vJEyCIrT+YLUQxYl1yvP0MJgLxaR6akVjkgxbSUJahan4cX5DxpZiEHfzdlWnYPyQ== - dependencies: - "@sentry-internal/browser-utils" "10.42.0" - "@sentry/core" "10.42.0" - -"@sentry/browser@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-10.42.0.tgz#918af1109d7fd93720d75b80ae33b347883caacd" - integrity sha512-iXxYjXNEBwY1MH4lDSDZZUNjzPJDK7/YLwVIJq/3iBYpIQVIhaJsoJnf3clx9+NfJ8QFKyKfcvgae61zm+hgTA== - dependencies: - "@sentry-internal/browser-utils" "10.42.0" - "@sentry-internal/feedback" "10.42.0" - "@sentry-internal/replay" "10.42.0" - "@sentry-internal/replay-canvas" "10.42.0" - "@sentry/core" "10.42.0" - -"@sentry/core@10.42.0": - version "10.42.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-10.42.0.tgz#5b6e38d4fde9276588f507d082c9b46debd3d666" - integrity sha512-L4rMrXMqUKBanpjpMT+TuAVk6xAijz6AWM6RiEYpohAr7SGcCEc1/T0+Ep1eLV8+pwWacfU27OvELIyNeOnGzA== +"@sentry-internal/browser-utils@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-10.43.0.tgz#afced399ac5707b59f1a174aecd5bd5e1edd9d8f" + integrity sha512-8zYTnzhAPvNkVH1Irs62wl0J/c+0QcJ62TonKnzpSFUUD3V5qz8YDZbjIDGfxy+1EB9fO0sxtddKCzwTHF/MbQ== + dependencies: + "@sentry/core" "10.43.0" + +"@sentry-internal/feedback@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-10.43.0.tgz#d2b569c9d8d6cb6a59dd1cf512e1d8edb6694f9d" + integrity sha512-YoXuwluP6eOcQxTeTtaWb090++MrLyWOVsUTejzUQQ6LFL13Jwt+bDPF1kvBugMq4a7OHw/UNKQfd6//rZMn2g== + dependencies: + "@sentry/core" "10.43.0" + +"@sentry-internal/replay-canvas@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-10.43.0.tgz#8e9649e007ef8cd1d7c87e381b48d5a4f7235594" + integrity sha512-ZIw1UNKOFXo1LbPCJPMAx9xv7D8TMZQusLDUgb6BsPQJj0igAuwd7KRGTkjjgnrwBp2O/sxcQFRhQhknWk7QPg== + dependencies: + "@sentry-internal/replay" "10.43.0" + "@sentry/core" "10.43.0" + +"@sentry-internal/replay@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-10.43.0.tgz#a107067cb2049d862c88797b64b1310e0e209ad4" + integrity sha512-khCXlGrlH1IU7P5zCEAJFestMeH97zDVCekj8OsNNDtN/1BmCJ46k6Xi0EqAUzdJgrOLJeLdoYdgtiIjovZ8Sg== + dependencies: + "@sentry-internal/browser-utils" "10.43.0" + "@sentry/core" "10.43.0" + +"@sentry/browser@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-10.43.0.tgz#744e1593d8578e4ea37579230041c8bdd64520c6" + integrity sha512-2V3I3sXi3SMeiZpKixd9ztokSgK27cmvsD9J5oyOyjhGLTW/6QKCwHbKnluMgQMXq20nixQk5zN4wRjRUma3sg== + dependencies: + "@sentry-internal/browser-utils" "10.43.0" + "@sentry-internal/feedback" "10.43.0" + "@sentry-internal/replay" "10.43.0" + "@sentry-internal/replay-canvas" "10.43.0" + "@sentry/core" "10.43.0" + +"@sentry/core@10.43.0": + version "10.43.0" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-10.43.0.tgz#48b7b2295f36097775b529c59712688c9087c7bc" + integrity sha512-l0SszQAPiQGWl/ferw8GP3ALyHXiGiRKJaOvNmhGO+PrTQyZTZ6OYyPnGijAFRg58dE1V3RCH/zw5d2xSUIiNg== "@tarekraafat/autocomplete.js@10.2.9": version "10.2.9" diff --git a/docs/specs/sbom/partial/javascript.json b/docs/specs/sbom/partial/javascript.json index 3e473912cc5b..a0e078cccb75 100644 --- a/docs/specs/sbom/partial/javascript.json +++ b/docs/specs/sbom/partial/javascript.json @@ -2,7 +2,7 @@ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", "bomFormat": "CycloneDX", "specVersion": "1.5", - "serialNumber": "urn:uuid:bf92f603-fd52-5886-b75f-cec086f7f1c5", + "serialNumber": "urn:uuid:5418763d-3663-50e3-ad20-2b902a8c0fb5", "version": 1, "metadata": { "lifecycles": [ @@ -172,14 +172,14 @@ ] }, { - "bom-ref": "@sentry-internal/browser-utils@10.42.0", + "bom-ref": "@sentry-internal/browser-utils@10.43.0", "type": "library", "name": "@sentry-internal/browser-utils", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "Browser Utilities for all Sentry JavaScript SDKs", - "purl": "pkg:npm/%40sentry-internal/browser-utils@10.42.0", + "purl": "pkg:npm/%40sentry-internal/browser-utils@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -189,7 +189,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.43.0.tgz" }, { "type": "vcs", @@ -207,7 +207,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "1c210808abdea71378ffa3587e730c325a69712c08130b52eba5fa775fe6c1a1dd8b68afc34b86979da9ecd7e175afe520902b6eb916a6bc65d1672365a8e140" + "content": "f336139f38403ef364547d48aeceb6c25d09fdcfb441c27ad93a272a7ce94855140f7579ab3f180d96e320319fc72fb5101f5f3b4b31b5d74a0b3c131c5fcc6d" } ], "licenses": [ @@ -219,14 +219,14 @@ ] }, { - "bom-ref": "@sentry-internal/feedback@10.42.0", + "bom-ref": "@sentry-internal/feedback@10.43.0", "type": "library", "name": "@sentry-internal/feedback", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "Sentry SDK integration for user feedback", - "purl": "pkg:npm/%40sentry-internal/feedback@10.42.0", + "purl": "pkg:npm/%40sentry-internal/feedback@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -236,7 +236,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.43.0.tgz" }, { "type": "vcs", @@ -254,7 +254,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "9693dc1eca20d743156054d61343dff2f411a905b06472699159761446fdfc70dd1c5c930548425685a8d4ac8a686ec6265f4054a30083b6e9f5248d02b84535" + "content": "6285eec25b8fe9e39c4314de4ed6966f4f74fbe32b2f258e56c5137a3cd4410e8b14bd77270b7e6c33c5d64bc1ba032ae1aece1f0fd434a41f77afffad9327da" } ], "licenses": [ @@ -266,14 +266,14 @@ ] }, { - "bom-ref": "@sentry-internal/replay@10.42.0", + "bom-ref": "@sentry-internal/replay@10.43.0", "type": "library", "name": "@sentry-internal/replay", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "User replays for Sentry", - "purl": "pkg:npm/%40sentry-internal/replay@10.42.0", + "purl": "pkg:npm/%40sentry-internal/replay@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -283,7 +283,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.43.0.tgz" }, { "type": "vcs", @@ -301,7 +301,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "661dc4a1a1f7f71da5a95635632541daf244c8222b4fe60b510c58975caf3f430980bc5a47a6a4563920c5b49425a85a9f8717e43c696621077f37655a760fc9" + "content": "921097946ae51f5214ecfe7308400915eb2d31e1fdef30d509e923f0eb0d343b4dff5066089e3a93a5e2d04a8053374982b38b25e2dda18760b62223a2f67c4a" } ], "licenses": [ @@ -313,14 +313,14 @@ ] }, { - "bom-ref": "@sentry-internal/replay-canvas@10.42.0", + "bom-ref": "@sentry-internal/replay-canvas@10.43.0", "type": "library", "name": "@sentry-internal/replay-canvas", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "Replay canvas integration", - "purl": "pkg:npm/%40sentry-internal/replay-canvas@10.42.0", + "purl": "pkg:npm/%40sentry-internal/replay-canvas@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -330,7 +330,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.43.0.tgz" }, { "type": "vcs", @@ -348,7 +348,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "6a6de6d458fc8a1a0f7e8628e3542ae0a7820002029f86f24aca3c39ea6ef5d30d7bd2dc9ec7feade3114b6ab14cf837a590dce0910c39c2f23427209c07eb1f" + "content": "648c3550d28e157a352db3c224f300c7dc6fec3f1331942eb0b0d481be81b0f4098f48a002ec1deca4464e48e3827af0069d8efecc5c4054614219275a4ed03e" } ], "licenses": [ @@ -360,14 +360,14 @@ ] }, { - "bom-ref": "@sentry/browser@10.42.0", + "bom-ref": "@sentry/browser@10.43.0", "type": "library", "name": "@sentry/browser", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "Official Sentry SDK for browsers", - "purl": "pkg:npm/%40sentry/browser@10.42.0", + "purl": "pkg:npm/%40sentry/browser@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -377,7 +377,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry/browser/-/browser-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry/browser/-/browser-10.43.0.tgz" }, { "type": "vcs", @@ -395,7 +395,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "897c588d7344070635307e250d20d9654363ccf2432bbfd82f054826aff788162921054885a26ca099dfddc971f7e35f27c4052b229f72f81a7bad739be8604c" + "content": "d95dc8dec5e2dd231e899a4a8b177dceda244a02b6edc9afb03f49e68c8eca38462d35bfe90282c076ca9e5b8c810317ab6d278b1424e73378c118d15266b7b2" } ], "licenses": [ @@ -407,14 +407,14 @@ ] }, { - "bom-ref": "@sentry/core@10.42.0", + "bom-ref": "@sentry/core@10.43.0", "type": "library", "name": "@sentry/core", - "version": "10.42.0", + "version": "10.43.0", "scope": "required", "author": "Sentry", "description": "Base implementation for all Sentry JavaScript SDKs", - "purl": "pkg:npm/%40sentry/core@10.42.0", + "purl": "pkg:npm/%40sentry/core@10.43.0", "properties": [ { "name": "cdx:npm:package:path", @@ -424,7 +424,7 @@ "externalReferences": [ { "type": "distribution", - "url": "https://registry.npmjs.org/@sentry/core/-/core-10.42.0.tgz" + "url": "https://registry.npmjs.org/@sentry/core/-/core-10.43.0.tgz" }, { "type": "vcs", @@ -442,7 +442,7 @@ "hashes": [ { "alg": "SHA-512", - "content": "2f8accad732a50a05a9e98e9313f93b80564eb10228f3e8058ce91884629a2102bed219c084735fd3d3e129d5e2d5f3ea7059a71f536ecebc42c8c8d78e9c6cc" + "content": "9744accd000f89019697f7deaf0f063f700bc875e21a244a25a3af3668463be3eb4d0c994d9e8e6323e71a28c0151839f1d1355774421ffcf0e5ddb149422236" } ], "licenses": [ @@ -1070,7 +1070,7 @@ "ref": "weblate-client-libs@5.17.0", "dependsOn": [ "@popperjs/core@2.11.8", - "@sentry/browser@10.42.0", + "@sentry/browser@10.43.0", "@tarekraafat/autocomplete.js@10.2.9", "altcha@2.3.0", "autosize@6.0.1", @@ -1099,43 +1099,43 @@ "dependsOn": [] }, { - "ref": "@sentry-internal/browser-utils@10.42.0", + "ref": "@sentry-internal/browser-utils@10.43.0", "dependsOn": [ - "@sentry/core@10.42.0" + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/feedback@10.42.0", + "ref": "@sentry-internal/feedback@10.43.0", "dependsOn": [ - "@sentry/core@10.42.0" + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/replay@10.42.0", + "ref": "@sentry-internal/replay@10.43.0", "dependsOn": [ - "@sentry-internal/browser-utils@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/browser-utils@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/replay-canvas@10.42.0", + "ref": "@sentry-internal/replay-canvas@10.43.0", "dependsOn": [ - "@sentry-internal/replay@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/replay@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry/browser@10.42.0", + "ref": "@sentry/browser@10.43.0", "dependsOn": [ - "@sentry-internal/browser-utils@10.42.0", - "@sentry-internal/feedback@10.42.0", - "@sentry-internal/replay@10.42.0", - "@sentry-internal/replay-canvas@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/browser-utils@10.43.0", + "@sentry-internal/feedback@10.43.0", + "@sentry-internal/replay@10.43.0", + "@sentry-internal/replay-canvas@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry/core@10.42.0", + "ref": "@sentry/core@10.43.0", "dependsOn": [] }, { diff --git a/docs/specs/sbom/sbom.json b/docs/specs/sbom/sbom.json index 14095df90a40..73c5ca29a717 100644 --- a/docs/specs/sbom/sbom.json +++ b/docs/specs/sbom/sbom.json @@ -1,7 +1,7 @@ { "bomFormat": "CycloneDX", "specVersion": "1.7", - "serialNumber": "urn:uuid:403d97be-7ce8-5ee7-b78d-c5b215b26640", + "serialNumber": "urn:uuid:01c6d39e-ad25-5b08-a34a-3dc176b7310d", "version": 1, "metadata": { "tools": [ @@ -172,16 +172,16 @@ }, { "type": "library", - "bom-ref": "@sentry-internal/browser-utils@10.42.0", + "bom-ref": "@sentry-internal/browser-utils@10.43.0", "author": "Sentry", "name": "@sentry-internal/browser-utils", - "version": "10.42.0", + "version": "10.43.0", "description": "Browser Utilities for all Sentry JavaScript SDKs", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "1c210808abdea71378ffa3587e730c325a69712c08130b52eba5fa775fe6c1a1dd8b68afc34b86979da9ecd7e175afe520902b6eb916a6bc65d1672365a8e140" + "content": "f336139f38403ef364547d48aeceb6c25d09fdcfb441c27ad93a272a7ce94855140f7579ab3f180d96e320319fc72fb5101f5f3b4b31b5d74a0b3c131c5fcc6d" } ], "licenses": [ @@ -191,10 +191,10 @@ } } ], - "purl": "pkg:npm/%40sentry-internal/browser-utils@10.42.0", + "purl": "pkg:npm/%40sentry-internal/browser-utils@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.43.0.tgz", "type": "distribution" }, { @@ -219,16 +219,16 @@ }, { "type": "library", - "bom-ref": "@sentry-internal/feedback@10.42.0", + "bom-ref": "@sentry-internal/feedback@10.43.0", "author": "Sentry", "name": "@sentry-internal/feedback", - "version": "10.42.0", + "version": "10.43.0", "description": "Sentry SDK integration for user feedback", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "9693dc1eca20d743156054d61343dff2f411a905b06472699159761446fdfc70dd1c5c930548425685a8d4ac8a686ec6265f4054a30083b6e9f5248d02b84535" + "content": "6285eec25b8fe9e39c4314de4ed6966f4f74fbe32b2f258e56c5137a3cd4410e8b14bd77270b7e6c33c5d64bc1ba032ae1aece1f0fd434a41f77afffad9327da" } ], "licenses": [ @@ -238,10 +238,10 @@ } } ], - "purl": "pkg:npm/%40sentry-internal/feedback@10.42.0", + "purl": "pkg:npm/%40sentry-internal/feedback@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.43.0.tgz", "type": "distribution" }, { @@ -266,16 +266,16 @@ }, { "type": "library", - "bom-ref": "@sentry-internal/replay@10.42.0", + "bom-ref": "@sentry-internal/replay@10.43.0", "author": "Sentry", "name": "@sentry-internal/replay", - "version": "10.42.0", + "version": "10.43.0", "description": "User replays for Sentry", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "661dc4a1a1f7f71da5a95635632541daf244c8222b4fe60b510c58975caf3f430980bc5a47a6a4563920c5b49425a85a9f8717e43c696621077f37655a760fc9" + "content": "921097946ae51f5214ecfe7308400915eb2d31e1fdef30d509e923f0eb0d343b4dff5066089e3a93a5e2d04a8053374982b38b25e2dda18760b62223a2f67c4a" } ], "licenses": [ @@ -285,10 +285,10 @@ } } ], - "purl": "pkg:npm/%40sentry-internal/replay@10.42.0", + "purl": "pkg:npm/%40sentry-internal/replay@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.43.0.tgz", "type": "distribution" }, { @@ -313,16 +313,16 @@ }, { "type": "library", - "bom-ref": "@sentry-internal/replay-canvas@10.42.0", + "bom-ref": "@sentry-internal/replay-canvas@10.43.0", "author": "Sentry", "name": "@sentry-internal/replay-canvas", - "version": "10.42.0", + "version": "10.43.0", "description": "Replay canvas integration", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "6a6de6d458fc8a1a0f7e8628e3542ae0a7820002029f86f24aca3c39ea6ef5d30d7bd2dc9ec7feade3114b6ab14cf837a590dce0910c39c2f23427209c07eb1f" + "content": "648c3550d28e157a352db3c224f300c7dc6fec3f1331942eb0b0d481be81b0f4098f48a002ec1deca4464e48e3827af0069d8efecc5c4054614219275a4ed03e" } ], "licenses": [ @@ -332,10 +332,10 @@ } } ], - "purl": "pkg:npm/%40sentry-internal/replay-canvas@10.42.0", + "purl": "pkg:npm/%40sentry-internal/replay-canvas@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.43.0.tgz", "type": "distribution" }, { @@ -360,16 +360,16 @@ }, { "type": "library", - "bom-ref": "@sentry/browser@10.42.0", + "bom-ref": "@sentry/browser@10.43.0", "author": "Sentry", "name": "@sentry/browser", - "version": "10.42.0", + "version": "10.43.0", "description": "Official Sentry SDK for browsers", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "897c588d7344070635307e250d20d9654363ccf2432bbfd82f054826aff788162921054885a26ca099dfddc971f7e35f27c4052b229f72f81a7bad739be8604c" + "content": "d95dc8dec5e2dd231e899a4a8b177dceda244a02b6edc9afb03f49e68c8eca38462d35bfe90282c076ca9e5b8c810317ab6d278b1424e73378c118d15266b7b2" } ], "licenses": [ @@ -379,10 +379,10 @@ } } ], - "purl": "pkg:npm/%40sentry/browser@10.42.0", + "purl": "pkg:npm/%40sentry/browser@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry/browser/-/browser-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry/browser/-/browser-10.43.0.tgz", "type": "distribution" }, { @@ -407,16 +407,16 @@ }, { "type": "library", - "bom-ref": "@sentry/core@10.42.0", + "bom-ref": "@sentry/core@10.43.0", "author": "Sentry", "name": "@sentry/core", - "version": "10.42.0", + "version": "10.43.0", "description": "Base implementation for all Sentry JavaScript SDKs", "scope": "required", "hashes": [ { "alg": "SHA-512", - "content": "2f8accad732a50a05a9e98e9313f93b80564eb10228f3e8058ce91884629a2102bed219c084735fd3d3e129d5e2d5f3ea7059a71f536ecebc42c8c8d78e9c6cc" + "content": "9744accd000f89019697f7deaf0f063f700bc875e21a244a25a3af3668463be3eb4d0c994d9e8e6323e71a28c0151839f1d1355774421ffcf0e5ddb149422236" } ], "licenses": [ @@ -426,10 +426,10 @@ } } ], - "purl": "pkg:npm/%40sentry/core@10.42.0", + "purl": "pkg:npm/%40sentry/core@10.43.0", "externalReferences": [ { - "url": "https://registry.npmjs.org/@sentry/core/-/core-10.42.0.tgz", + "url": "https://registry.npmjs.org/@sentry/core/-/core-10.43.0.tgz", "type": "distribution" }, { @@ -2645,7 +2645,7 @@ "ref": "weblate-client-libs@5.17.0", "dependsOn": [ "@popperjs/core@2.11.8", - "@sentry/browser@10.42.0", + "@sentry/browser@10.43.0", "@tarekraafat/autocomplete.js@10.2.9", "altcha@2.3.0", "autosize@6.0.1", @@ -2674,43 +2674,43 @@ "dependsOn": [] }, { - "ref": "@sentry-internal/browser-utils@10.42.0", + "ref": "@sentry-internal/browser-utils@10.43.0", "dependsOn": [ - "@sentry/core@10.42.0" + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/feedback@10.42.0", + "ref": "@sentry-internal/feedback@10.43.0", "dependsOn": [ - "@sentry/core@10.42.0" + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/replay@10.42.0", + "ref": "@sentry-internal/replay@10.43.0", "dependsOn": [ - "@sentry-internal/browser-utils@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/browser-utils@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry-internal/replay-canvas@10.42.0", + "ref": "@sentry-internal/replay-canvas@10.43.0", "dependsOn": [ - "@sentry-internal/replay@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/replay@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry/browser@10.42.0", + "ref": "@sentry/browser@10.43.0", "dependsOn": [ - "@sentry-internal/browser-utils@10.42.0", - "@sentry-internal/feedback@10.42.0", - "@sentry-internal/replay@10.42.0", - "@sentry-internal/replay-canvas@10.42.0", - "@sentry/core@10.42.0" + "@sentry-internal/browser-utils@10.43.0", + "@sentry-internal/feedback@10.43.0", + "@sentry-internal/replay@10.43.0", + "@sentry-internal/replay-canvas@10.43.0", + "@sentry/core@10.43.0" ] }, { - "ref": "@sentry/core@10.42.0", + "ref": "@sentry/core@10.43.0", "dependsOn": [] }, { diff --git a/weblate/static/js/vendor/sentry.js b/weblate/static/js/vendor/sentry.js index f12b5e26925b..080cf71fc2ac 100644 --- a/weblate/static/js/vendor/sentry.js +++ b/weblate/static/js/vendor/sentry.js @@ -1 +1 @@ -(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();const e="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,n="10.42.0",r=globalThis;function s(){return o(r),r}function o(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n,e[n]=e[n]||{}}function i(t,e,s=r){const o=s.__SENTRY__=s.__SENTRY__||{},i=o[n]=o[n]||{};return i[t]||(i[t]=e())}const a=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in r))return t();const e=r.console,n={},s=Object.keys(c);s.forEach(t=>{const r=c[t];n[t]=e[t],e[t]=r});try{return t()}finally{s.forEach(t=>{e[t]=n[t]})}}function p(){return l().enabled}function d(t,...n){e&&p()&&u(()=>{r.console[t](`Sentry Logger [${t}]:`,...n)})}function l(){return e?i("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const f={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:p,log:function(...t){d("log",...t)},warn:function(...t){d("warn",...t)},error:function(...t){d("error",...t)}};const h=[];function m(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function _(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function g(t,n,r){if(r[n.name])e&&f.log(`Integration skipped because it was already installed: ${n.name}`);else{if(r[n.name]=n,h.includes(n.name)||"function"!=typeof n.setupOnce||(n.setupOnce(),h.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",(n,r)=>e(n,r,t))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}e&&f.log(`Integration installed: ${n.name}`)}}function y(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}const v=Object.prototype.toString;function b(t){switch(v.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return C(t,Error)}}function E(t,e){return v.call(t)===`[object ${e}]`}function S(t){return E(t,"ErrorEvent")}function x(t){return E(t,"DOMError")}function w(t){return E(t,"String")}function k(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $(t){return null===t||k(t)||"object"!=typeof t&&"function"!=typeof t}function I(t){return E(t,"Object")}function O(t){return"undefined"!=typeof Event&&C(t,Event)}function T(t){return Boolean(t?.then&&"function"==typeof t.then)}function C(t,e){try{return t instanceof e}catch{return!1}}function D(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function P(t){return"undefined"!=typeof Request&&C(t,Request)}const j=r;function A(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function N(t,e){const n=t,r=[];if(!n?.tagName)return"";if(j.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(s?.length)s.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&w(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function R(){try{return j.document.location.href}catch{return""}}function L(t,n,r){if(!(n in t))return;const s=t[n];if("function"!=typeof s)return;const o=r(s);"function"==typeof o&&U(o,s);try{t[n]=o}catch{e&&f.log(`Failed to replace method "${n}" in object`,t)}}function M(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&f.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function U(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,M(t,"__sentry_original__",e)}catch{}}function B(t){return t.__sentry_original__}function F(t){if(b(t))return{message:t.message,name:t.name,stack:t.stack,...H(t)};if(O(t)){const e={type:t.type,target:q(t.target),currentTarget:q(t.currentTarget),...H(t)};return"undefined"!=typeof CustomEvent&&C(t,CustomEvent)&&(e.detail=t.detail),e}return t}function q(t){try{return e=t,"undefined"!=typeof Element&&C(e,Element)?A(t):Object.prototype.toString.call(t)}catch{return""}var e}function H(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}let W;function z(t){if(void 0!==W)return W?W(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r;return e in n&&"function"==typeof n[e]?(W=n[e],W(t)):(W=null,t())}function Y(){return z(()=>Math.random())}function G(){return z(()=>Date.now())}let J;function K(t=function(){const t=r;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return z(()=>t.randomUUID()).replace(/-/g,"")}catch{}return J||(J=[1e7]+1e3+4e3+8e3+1e11),J.replace(/[018]/g,t=>(t^(16*Y()&15)>>t/4).toString(16))}function V(t){return t.exception?.values?.[0]}function X(t){const{message:e,event_id:n}=t;if(e)return e;const r=V(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Z(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Q(t,e){const n=V(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function tt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{M(t,"__sentry_captured__",!0)}catch{}return!1}const et="?",nt=/\(error: (.*)\)/,rt=/captureMessage|captureException/;function st(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));const i=nt.test(n)?n.replace(nt,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(ot(e).function||"")&&e.pop();e.reverse(),rt.test(ot(e).function||"")&&(e.pop(),rt.test(ot(e).function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||ot(e).filename,function:t.function||et}))}(s.slice(r))}}function ot(t){return t[t.length-1]||{}}const it="";function at(t){try{return t&&"function"==typeof t&&t.name||it}catch{return it}}function ct(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}function ut(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function pt(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function dt(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;elt(t,e,n))}const ht=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'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",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],mt=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=gt(t,r)},processEvent(r,s,o){if(!n){const e=o.getOptions();n=gt(t,e)}return function(t,n){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&ft(n,e)}(t,n.ignoreTransactions))return e&&f.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${X(t)}`),!0}else{if(function(t,e){if(!e?.length)return!1;return y(t).some(t=>ft(t,e))}(t,n.ignoreErrors))return e&&f.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${X(t)}`),!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return e&&f.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${X(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=yt(t);return!!n&&ft(n,e)}(t,n.denyUrls))return e&&f.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${X(t)}.\nUrl: ${yt(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=yt(t);return!n||ft(n,e)}(t,n.allowUrls))return e&&f.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${X(t)}.\nUrl: ${yt(t)}`),!0}return!1}(r,n)?null:r}}},_t=(t={})=>({...mt(t),name:"InboundFilters"});function gt(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ht],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function yt(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return e&&f.error(`Cannot extract url for event ${X(t)}`),null}}function vt(){return G()/1e3}let bt;function Et(){return(bt??(bt=function(){const{performance:t}=r;if(!t?.now||!t.timeOrigin)return vt;const e=t.timeOrigin;return()=>(e+z(()=>t.now()))/1e3}()))()}function St(t){const e=Et(),n={sid:K(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&xt(n,t),n}function xt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Et(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:K()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function wt(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=wt(r[t],e[t],n-1));return r}function kt(){return K()}function $t(){return K().substring(16)}const It="_sentrySpan";function Ot(t,e){e?M(t,It,e):delete t[It]}function Tt(t){return t[It]}class Ct{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:kt(),sampleRand:Y()}}clone(){const t=new Ct;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ot(t,Tt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&xt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof Ct?e.getScopeData():I(e)?t:void 0,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:p,conversationId:d}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ot(this,void 0),this._attachments=[],this.setPropagationContext({traceId:kt(),sampleRand:Y()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:vt(),...t,message:t.message?pt(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:Tt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=wt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||K();if(!this._client)return e&&f.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||K();if(!this._client)return e&&f.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||K();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&f.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}class Dt{constructor(t,e){let n,r;n=t||new Ct,r=e||new Ct,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return T(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Pt(){const t=o(s());return t.stack=t.stack||new Dt(i("defaultCurrentScope",()=>new Ct),i("defaultIsolationScope",()=>new Ct))}function jt(t){return Pt().withScope(t)}function At(t,e){const n=Pt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Nt(t){return Pt().withScope(()=>t(Pt().getIsolationScope()))}function Rt(t){const e=o(t);return e.acs?e.acs:{withIsolationScope:Nt,withScope:jt,withSetScope:At,withSetIsolationScope:(t,e)=>Nt(e),getCurrentScope:()=>Pt().getScope(),getIsolationScope:()=>Pt().getIsolationScope()}}function Lt(){return Rt(s()).getCurrentScope()}function Mt(){return Rt(s()).getIsolationScope()}function Ut(){return Lt().getClient()}function Bt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||$t()};return r&&(o.parent_span_id=r),o}let Ft;const qt=new WeakMap,Ht=()=>({name:"FunctionToString",setupOnce(){Ft=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=B(this),n=qt.has(Ut())&&void 0!==e?e:this;return Ft.apply(n,t)}}catch{}},setup(t){qt.set(t,!0)}}),Wt="sentry.profile_id",zt="sentry.exclusive_time",Yt=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=Lt().getScopeData(),n=Mt().getScopeData(),r=e.conversationId||n.conversationId;r&&t.setAttribute("gen_ai.conversation.id",r)})}}),Gt=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Kt(t,e))return!1;if(!Jt(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Vt(e),r=Vt(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Kt(t,e))return!1;if(!Jt(t,e))return!1;return!0}(t,e))return!0;return!1}(n,t))return e&&f.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=n}}};function Jt(t,e){let n=ct(t),r=ct(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));Lt().update(n.initialScope);const r=new t(n);return function(t){Lt().setClient(t)}(r),r.init(),r}const Zt=/^o(\d+)\./,Qt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function te(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function ee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ne(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(Zt);return e?.[1]}(n)),r}function re(t){const n="string"==typeof t?function(t){const e=Qt.exec(t);if(!e)return void u(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",p=a;const d=p.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),p=d.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return ee({host:o,pass:s,path:c,projectId:p,port:i,protocol:n,publicKey:r})}(t):ee(t);if(n&&function(t){if(!e)return!0;const{port:n,projectId:r,protocol:s}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(f.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(r.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?n&&isNaN(parseInt(n,10))&&(f.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(f.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(n))return n}function se(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function oe(t,e,n){return e||`${function(t){return`${se(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}const ie="production";function ae(t,e=100,n=1/0){try{return ue("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function ce(t,e=3,n=102400){const r=ae(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?ce(t,e-1,n):r;var s}function ue(e,n,r=1/0,s=1/0,o=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[i,a]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(D(n))return ut(n);if(I(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${at(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}var r}(e,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===u)return c.replace("object ","");if(i(n))return"[Circular ~]";const p=n;if(p&&"function"==typeof p.toJSON)try{return ue("",p.toJSON(),u-1,s,o)}catch{}const d=Array.isArray(n)?[]:{};let l=0;const f=F(n);for(const t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(l>=s){d[t]="[MaxProperties ~]";break}const e=f[t];d[t]=ue(t,e,u-1,s,o),l++}return a(n),d}function pe(t,e=[]){return[t,e]}function de(t,e){const[n,r]=t;return[n,[...r,e]]}function le(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function fe(t){const e=o(r);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function he(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[fe(r),t]:r.push("string"==typeof t?fe(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(ae(n))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function me(t){const e="string"==typeof t.data?fe(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const _e={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",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ge(t){return _e[t]}function ye(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ve(t,e,n,r){const s=ye(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:te(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return pe(i,[[{type:o},t]])}function be(t,e){const n=e??Ee(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=te(r)),pe(s,[(o=t,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());Se().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Ee(t){return Se().get(t)}function Se(){return i("clientToLogBufferMap",()=>new WeakMap)}function xe(t,e){const n=e??we(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=te(r)),pe(s,[(o=t,[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());ke().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function we(t){return ke().get(t)}function ke(){return i("clientToMetricBufferMap",()=>new WeakMap)}const $e=/^sentry-/;function Ie(t){const e=function(t){if(!t||!w(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,e)=>{const n=Oe(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{});return Oe(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match($e)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function Oe(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const Te="_sentryScope",Ce="_sentryIsolationScope";function De(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Pe(t){const e=t;return{scope:e[Te],isolationScope:De(e[Ce])}}let je=!1;function Ae(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Me(t).parent_span_id,o=Pe(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||$t():e,trace_id:n}}function Ne(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function Re(t){return"number"==typeof t?Le(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Le(t.getTime()):Et()}function Le(t){return t>9999999999?t/1e3:t}function Me(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:Re(s),timestamp:Re(i)||void 0,status:Be(a),op:r["sentry.op"],origin:r["sentry.origin"],links:Ne(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Ue(t){const{traceFlags:e}=t.spanContext();return 1===e}function Be(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const Fe="_sentryRootSpan";function qe(t){return t[Fe]||t}function He(){je||(u(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),je=!0)}const We="_frozenDsc";function ze(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||ie,release:n.release,public_key:r,trace_id:t,org_id:ne(e)};return e.emit("createDsc",s),s}function Ye(t){const e=Ut();if(!e)return{};const n=qe(t),r=Me(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n[We];if(c)return a(c);const u=o?.get("sentry.dsc"),p=u&&Ie(u);if(p)return a(p);const d=ze(t.spanContext().traceId,e),l=s["sentry.source"],f=r.description;return"url"!==l&&f&&(d.transaction=f),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||Ut()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(d.sampled=String(Ue(n)),d.sample_rand=o?.get("sentry.sample_rand")??Pe(n).scope?.getPropagationContext().sampleRand.toString()),a(d),e.emit("createDsc",d,n),d}function Ge(t){return new Ke(e=>{e(t)})}function Je(t){return new Ke((e,n)=>{n(t)})}class Ke{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new Ke((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new Ke((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(T(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}function Ve(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}const Xe=Symbol.for("SentryBufferFullError");function Ze(t=100){const e=new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.sizen(s),()=>n(s)),s},drain:function(t){if(!e.size)return Ge(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>Ve(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function Qe(t,{statusCode:e,headers:n},r=G()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?s.all=r+function(t,e=G()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(s.all=r+6e4);return s}function tn(t,n,r=Ze(t.bufferSize||64)){let s={};return{send:function(o){const i=[];if(le(o,(e,n)=>{const r=ge(n);!function(t,e,n=G()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",r)}),0===i.length)return Promise.resolve({});const a=pe(o[0],i),c=n=>{!function(t,e){return le(t,(t,n)=>e.includes(n))}(a,["client_report"])?le(a,(e,r)=>{t.recordDroppedEvent(n,ge(r))}):e&&f.warn(`Dropping client report. Will not send outcomes (reason: ${n}).`)};return r.add(()=>n({body:he(a)}).then(t=>413===t.statusCode?(e&&f.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),t):(e&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&f.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=Qe(s,t),t),t=>{throw c("network_error"),e&&f.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Xe)return e&&f.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>r.drain(t)}}function en(t,e,n,r=0){try{const s=nn(e,n,t,r);return T(s)?s:Ge(s)}catch(t){return Je(t)}}function nn(t,n,r,s){const o=r[s];if(!t||!o)return t;const i=o({...t},n);return e&&null===i&&f.log(`Event processor "${o.id||"?"}" dropped event`),T(i)?i.then(t=>nn(t,n,r,s+1)):nn(i,n,r,s+1)}let rn,sn,on,an;function cn(t){const e=r._sentryDebugIds,n=r._debugIds;if(!e&&!n)return{};const s=e?Object.keys(e):[],o=n?Object.keys(n):[];if(an&&s.length===sn&&o.length===on)return an;sn=s.length,on=o.length,an={},rn||(rn={});const i=(e,n)=>{for(const r of e){const e=n[r],s=rn?.[r];if(s&&an&&e)an[s[0]]=e,rn&&(rn[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],o=s?.filename;if(o&&an&&rn){an[o]=e,rn[r]=[o,e];break}}}}};return e&&i(s,e),n&&i(o,n),an}function un(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(o).length&&(t.contexts={...o,...t.contexts});i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Ae(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ye(e),...t.sdkProcessingMetadata};const n=qe(e),r=Me(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function pn(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:d,attachments:l,propagationContext:f,transactionName:h,span:m}=e;dn(t,"extra",n),dn(t,"tags",r),dn(t,"attributes",s),dn(t,"user",o),dn(t,"contexts",i),t.sdkProcessingMetadata=wt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...f}}function dn(t,e,n){t[e]=wt(t[e],n,1)}function ln(t,e){const n=i("globalScope",()=>new Ct).getScopeData();return t&&pn(n,t.getScopeData()),e&&pn(n,e.getScopeData()),n}function fn(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||K(),timestamp:e.timestamp||vt()},u=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||ie,!t.release&&r&&(t.release=r);!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=pt(i.url,o));o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=pt(t.value,o))})}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=cn(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(c,t.stackParser);const p=function(t,e){if(!e)return t;const n=t?t.clone():new Ct;return n.update(e),n}(r,n.captureContext);n.mechanism&&Q(c,n.mechanism);const d=s?s.getEventProcessors():[],l=ln(o,p),f=[...n.attachments||[],...l.attachments];f.length&&(n.attachments=f),un(c,l);const h=[...d,...l.eventProcessors];return(n.data&&!0===n.data.__sentry__?Ge(c):en(h,c,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:ae(t.data,e,n)}}))},...t.user&&{user:ae(t.user,e,n)},...t.contexts&&{contexts:ae(t.contexts,e,n)},...t.extra&&{extra:ae(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ae(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:ae(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=ae(t.contexts.flags,3,n));return r}(t,i,a):t))}function hn(t){if(t)return function(t){return t instanceof Ct||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>mn.includes(t))}(t)?{captureContext:t}:t}const mn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function _n(t){f.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function gn(t,n){if(!n?.length||!t.description)return!1;for(const r of n){if(vn(r)){if(lt(t.description,r))return e&&_n(t),!0;continue}if(!r.name&&!r.op)continue;const n=!r.name||lt(t.description,r.name),s=!r.op||t.op&<(t.op,r.op);if(n&&s)return e&&_n(t),!0}return!1}function yn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function vn(t){return"string"==typeof t||t instanceof RegExp}const bn="Not capturing exception because it's already been captured.",En="Discarded session because of missing or non-string release",Sn=Symbol.for("SentryInternalError"),xn=Symbol.for("SentryDoNotSendEventError");function wn(t){return{message:t,[Sn]:!0}}function kn(t){return{message:t,[xn]:!0}}function $n(t){return!!t&&"object"==typeof t&&Sn in t}function In(t){return!!t&&"object"==typeof t&&xn in t}function On(t,e,n,r,s){let o,i=0,a=!1;t.on(n,()=>{i=0,clearTimeout(o),a=!1}),t.on(e,e=>{i+=r(e),i>=8e5?s(t):a||(a=!0,o=Ve(setTimeout(()=>{s(t)},5e3)))}),t.on("flush",()=>{s(t)})}class Tn{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ze(t.transportOptions?.bufferSize??64),t.dsn?this._dsn=re(t.dsn):e&&f.warn("No DSN provided, client will not send events."),this._dsn){const e=oe(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&On(this,"afterCaptureLog","flushLogs",An,be);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&On(this,"afterCaptureMetric","flushMetrics",jn,xe)}captureException(t,n,r){const s=K();if(tt(t))return e&&f.log(bn),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(t,o).then(t=>this._captureEvent(t,o,r)).then(t=>t),"error"),o.event_id}captureMessage(t,e,n,r){const s={event_id:K(),...n},o=k(t)?t:String(t),i=$(t),a=i?this.eventFromMessage(o,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,n,r){const s=K();if(n?.originalException&&tt(n.originalException))return e&&f.log(bn),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Cn(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),xt(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(!e)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){be(this);const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];g(this,t,this._integrations),e||_(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=ve(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=de(n,me(t));this.sendEnvelope(n).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:n,environment:r=ie}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return void(e&&f.warn(En));s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n)return void(e&&f.warn(En));t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=function(t,e,n,r){const s=ye(n);return pe({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:te(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;e&&f.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(t){return e&&f.error("Error while sending envelope:",t),{}}return e&&f.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e&&g(t,e,n)}),n}(this,t),_(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(xt(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||esetTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o?.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),fn(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:Bt(n),...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||ze(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,n={},r=Lt(),s=Mt()){return e&&Dn(t)&&f.log(`Captured error event \`${y(t)[0]||""}\``),this._processEvent(t,n,r,s).then(t=>t.event_id,t=>{e&&(In(t)?f.log(t.message):$n(t)?f.warn(t.message):f.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Pn(t),a=Dn(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===o?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(o);if(a&&"number"==typeof u&&Y()>u)return this.recordDroppedEvent("sample_rate","error"),Je(kn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=Cn(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",p),kn("An event processor returned `null`, will not send event.");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=e;let c=n;if(Dn(c)&&s)return s(c,r);if(Pn(c)){if(i||a){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i?.[Wt],exclusive_time:i?.[zt],measurements:t.measurements,is_segment:!0}}(c);if(a?.length&&gn(e,a))return null;if(i){const t=i(e);t?c=wt(n,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Wt]:u.profile_id},...u.exclusive_time&&{[zt]:u.exclusive_time}}}},measurements:u.measurements}):He()}if(c.spans){const e=[],n=c.spans;for(const t of n)if(a?.length&&gn(t,a))yn(n,t);else if(i){const n=i(t);n?e.push(n):(He(),e.push(t))}else e.push(t);const r=c.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),c.spans=e}}if(o){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(c,r)}}var u;return c}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(T(t))return t.then(t=>{if(!I(t)&&null!==t)throw wn(n);return t},t=>{throw wn(`${e} rejected with ${t}`)});if(!I(t)&&null!==t)throw wn(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",p),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw kn(`${c} returned \`null\`, will not send event.`)}const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(i&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(In(t)||$n(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),wn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Xe&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){e&&f.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(e&&f.log("No outcomes to send"));if(!this._dsn)return void(e&&f.log("No dsn provided, will not send outcomes"));e&&f.log("Sending outcomes:",t);const n=(r=t,pe((s=this._options.tunnel&&te(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:o||vt(),discarded_events:r}]]));var r,s,o;this.sendEnvelope(n)}}function Cn(t){return"replay_event"===t?"replay":t||"error"}function Dn(t){return void 0===t.type}function Pn(t){return"transaction"===t.type}function jn(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+Nn(t.attributes)}function An(t){let e=0;return t.message&&(e+=2*t.message.length),e+Nn(t.attributes)}function Nn(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Rn(t[0]):$(t)?e+=Rn(t):e+=100}),e}function Rn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Ln(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Mn(t){return function(t){return b(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function Un(t,e){const n=qn(t,e),r={type:zn(e),value:Yn(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Bn(t,e,n,r){const s=Ut(),o=s?.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),a={__serialized__:ce(e,o)};if(i)return{exception:{values:[Un(t,i)]},extra:a};const c={exception:{values:[{type:O(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Kn(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=qn(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function Fn(t,e){return{exception:{values:[Un(t,e)]}}}function qn(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&Hn.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const Hn=/Minified React error #\d+;/i;function Wn(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function zn(t){const e=t?.name;if(!e&&Wn(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function Yn(t){const e=t?.message;return Wn(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?Mn(e.error):Mn(t):"No error message"}function Gn(t,e,n,r,s){let o;if(S(e)&&e.error){return Fn(t,e.error)}if(x(e)||E(e,"DOMException")){const s=e;if("stack"in e)o=Fn(t,e);else{const e=s.name||(x(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=Jn(t,i,n,r),Z(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}if(b(e))return Fn(t,e);if(I(e)||O(e)){return o=Bn(t,e,n,s),Q(o,{synthetic:!0}),o}return o=Jn(t,e,n,r),Z(o,`${e}`,void 0),Q(o,{synthetic:!0}),o}function Jn(t,e,n,r){const s={};if(r&&n){const r=qn(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),Q(s,{synthetic:!0})}if(k(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Kn(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(F(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(S(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(O(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function Vn(t,e){return Lt().captureEvent(t,e)}function Xn(t){const e=Mt(),{user:n}=ln(e,Lt()),{userAgent:s}=r.navigator||{},o=St({user:n,...s&&{userAgent:s},...t}),i=e.getSession();return"ok"===i?.status&&xt(i,{status:"exited"}),Zn(),e.setSession(o),o}function Zn(){const t=Mt(),e=Lt().getSession()||t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),xt(t,n)}(e),Qn(),t.setSession()}function Qn(){const t=Mt(),e=Ut(),n=t.getSession();n&&e&&e.captureSession(n)}function tr(t=!1){t?Zn():Qn()}const er=r;let nr=0;function rr(){return nr>0}function sr(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(B(t))return t}catch{return t}const n=function(...n){try{const r=n.map(t=>sr(t,e));return t.apply(this,r)}catch(t){throw nr++,setTimeout(()=>{nr--}),function(...t){const e=Rt(s());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(r=>{var s,o;r.addEventProcessor(t=>(e.mechanism&&(Z(t,void 0,void 0),Q(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),s=t,Lt().captureException(s,hn(o))}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}U(n,t),M(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}class or extends Tn{constructor(t){const e=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:er.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,e,r=[e],s="npm"){const o=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${e}`,o.packages=r.map(t=>({name:`${s}:@sentry/${t}`,version:n})),o.version=n)}(e,"browser",["browser"],er.SENTRY_SDK_SOURCE||"npm"),e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:e.sendDefaultPii?"auto":"never",...e._metadata.sdk.settings}),super(e);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;er.document&&(o||i||u)&&er.document.addEventListener("visibilitychange",()=>{"hidden"===er.document.visibilityState&&(o&&this._flushOutcomes(),i&&be(this),u&&xe(this))}),s&&this.on("beforeSendSession",Ln)}eventFromException(t,e){return function(t,e,n,r){const s=Gn(t,e,n?.syntheticException||void 0,r);return Q(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Ge(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=Jn(t,e,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Ge(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const ir={},ar={};function cr(t,e){ir[t]=ir[t]||[],ir[t].push(e)}function ur(t,n){if(!ar[t]){ar[t]=!0;try{n()}catch(n){e&&f.error(`Error while instrumenting ${t}`,n)}}}function pr(t,n){const r=t&&ir[t];if(r)for(const s of r)try{s(n)}catch(n){e&&f.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${at(s)}\nError:`,n)}}function dr(){"console"in r&&a.forEach(function(t){t in r.console&&L(r.console,t,function(e){return c[t]=e,function(...e){pr("console",{args:e,level:t});const n=c[t];n?.apply(r.console,e)}})})}const lr=r;function fr(){if(!("fetch"in lr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function hr(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function mr(t,n=!1){n&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!fr())return!1;if(hr(lr.fetch))return!0;let t=!1;const n=lr.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=hr(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||L(r,"fetch",function(e){return function(...n){const s=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:gr(e),method:_r(n,"method")?String(n.method).toUpperCase():P(e)&&_r(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:gr(e),method:_r(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*Et(),virtualError:s,headers:yr(n)};return t||pr("fetch",{...a}),e.apply(r,n).then(async e=>(t?t(e):pr("fetch",{...a,endTimestamp:1e3*Et(),response:e}),e),t=>{pr("fetch",{...a,endTimestamp:1e3*Et(),error:t}),b(t)&&void 0===t.stack&&(t.stack=s.stack,M(t,"framesToPop",1));const e=Ut(),n=e?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(a.fetchData.url).host;"always"===n?t.message=`${t.message} (${e})`:M(t,"__sentry_fetch_url_host__",e)}catch{}throw t})}})}function _r(t,e){return!!t&&"object"==typeof t&&!!t[e]}function gr(t){return"string"==typeof t?t:t?_r(t,"url")?t.url:t.toString?t.toString():"":""}function yr(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(P(e))return new Headers(e.headers)}catch{}}const vr=100;function br(t,e){const n=Ut(),r=Mt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=vr}=n.getOptions();if(o<=0)return;const i={timestamp:vt(),...t},a=s?u(()=>s(i,e)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Er(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}function Sr(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function xr(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const wr=r;let kr,$r,Ir;function Or(){if(!wr.document)return;const t=pr.bind(null,"dom"),e=Tr(t,!0);wr.document.addEventListener("click",e,!1),wr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=wr,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(L(r,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=Tr(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch{}return e.call(this,n,r,s)}}),L(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function Tr(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;M(n,"_sentryCaptured",!0),r&&!r._sentryId&&M(r,"_sentryId",K());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==$r)return!1;try{if(!t.target||t.target._sentryId!==Ir)return!1}catch{}return!0}(n)){t({event:n,name:s,global:e}),$r=n.type,Ir=r?r._sentryId:void 0}clearTimeout(kr),kr=wr.setTimeout(()=>{Ir=void 0,$r=void 0},1e3)}}const Cr="__sentry_xhr_v3__";function Dr(){if(!wr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*Et(),o=w(n[0])?n[0].toUpperCase():void 0,i=function(t){if(w(t))return t;try{return t.toString()}catch{}return}(n[1]);if(!o||!i)return t.apply(e,n);e[Cr]={method:o,url:i,request_headers:{}},"POST"===o&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Cr];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}pr("xhr",{endTimestamp:1e3*Et(),startTimestamp:s,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,o=e[Cr];return o&&w(r)&&w(s)&&(o.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Cr];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return pr("xhr",{startTimestamp:1e3*Et(),xhr:e}),t.apply(e,n)}})}let Pr;function jr(t){const e="history";cr(e,t),ur(e,Ar)}function Ar(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=Pr,s=function(t){try{return new URL(t,wr.location.origin).toString()}catch{return t}}(String(n));if(Pr=s,r===s)return t.apply(this,e);pr("history",{from:r,to:s})}return t.apply(this,e)}}wr.addEventListener("popstate",()=>{const t=wr.location.href,e=Pr;if(Pr=t,e===t)return;pr("history",{from:e,to:t})}),"history"in lr&&lr.history&&(L(wr.history,"pushState",t),L(wr.history,"replaceState",t))}const Nr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Rr=1024,Lr=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";cr(e,t),ur(e,dr)}(function(t){return function(e){if(Ut()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Er(e.level),message:dt(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${dt(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}br(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Ut()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Rr&&(Nr&&f.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Rr),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=A(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!j.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch{r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),br(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),cr("dom",n),ur("dom",Or)),e.xhr&&function(t){cr("xhr",t),ur("xhr",Dr)}(function(t){return function(e){if(Ut()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Cr];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},p={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Sr(a)};t.emit("beforeOutgoingRequestBreadcrumb",d,p),br(d,p)}}(t)),e.fetch&&function(t,e){const n="fetch";cr(n,t),ur(n,()=>mr(void 0,e))}(function(t){return function(e){if(Ut()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const s=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:s,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),br(i,o)}else{const s=e.response,o={...e.fetchData,status_code:s?.status};e.fetchData.request_body_size,e.fetchData.response_body_size;const i={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:Sr(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),br(a,i)}}}(t)),e.history&&jr(function(t){return function(e){if(Ut()!==t)return;let n=e.from,r=e.to;const s=xr(er.location.href);let o=n?xr(n):void 0;const i=xr(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),br({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Ut()===t&&br({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:X(e)},{event:e})}}(t))}}};const Mr=["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"],Ur=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&L(er,"setTimeout",Br),e.setInterval&&L(er,"setInterval",Br),e.requestAnimationFrame&&L(er,"requestAnimationFrame",Fr),e.XMLHttpRequest&&"XMLHttpRequest"in er&&L(XMLHttpRequest.prototype,"send",qr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Mr).forEach(t=>function(t,e){const n=er,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;L(r,"addEventListener",function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=sr(s.handleEvent,{mechanism:{data:{handler:at(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,sr(s,{mechanism:{data:{handler:at(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),L(r,"removeEventListener",function(t){return function(e,n,r){try{const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function Br(t){return function(...e){const n=e[0];return e[0]=sr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${at(t)}`}}),t.apply(this,e)}}function Fr(t){return function(e){return t.apply(this,[sr(e,{mechanism:{data:{handler:at(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function qr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&L(n,t,function(e){const n={mechanism:{data:{handler:at(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=B(e);return r&&(n.mechanism.data.handler=at(r)),sr(e,n)})}),t.apply(this,e)}}const Hr=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===er.document)return void(Nr&&f.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));Xn({ignoreDuration:!0}),tr();const t=Mt();let n=t.getUser();t.addScopeListener(t=>{const e=t.getUser();n?.id===e?.id&&n?.ip_address===e?.ip_address||(tr(),n=e)}),"route"===e&&jr(({from:t,to:e})=>{t!==e&&(Xn({ignoreDuration:!0}),tr())})}}},Wr=()=>({name:"CultureContext",preprocessEvent(t){const e=function(){try{const t=er.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})}});let zr=null;function Yr(){zr=r.onerror,r.onerror=function(t,e,n,r,s){return pr("error",{column:r,error:s,line:n,msg:t,url:e}),!!zr&&zr.apply(this,arguments)},r.onerror.__SENTRY_INSTRUMENTED__=!0}let Gr=null;function Jr(){Gr=r.onunhandledrejection,r.onunhandledrejection=function(t){return pr("unhandledrejection",t),!Gr||Gr.apply(this,arguments)},r.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Kr=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";cr(e,t),ur(e,Yr)}(e=>{const{stackParser:n,attachStacktrace:r}=Xr();if(Ut()!==t||rr())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,p=n,d=function(t){if(!w(t)||0===t.length)return;if(t.startsWith("data:"))return`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&-1!==o){const e=t.slice(o+1);i=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}(t,!1)}>`;return t}(e)??R();0===c.length&&c.push({colno:u,filename:d,function:et,in_app:!0,lineno:p});return t}(Gn(n,c||s,void 0,r,!1),o,i,a);u.level="error",Vn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),Vr("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";cr(e,t),ur(e,Jr)}(e=>{const{stackParser:n,attachStacktrace:r}=Xr();if(Ut()!==t||rr())return;const s=function(t){if($(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),o=$(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Gn(n,s,void 0,r,!0);o.level="error",Vn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),Vr("onunhandledrejection"))}}};function Vr(t){Nr&&f.log(`Global Handler attached: ${t}`)}function Xr(){const t=Ut();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Zr=()=>({name:"HttpContext",preprocessEvent(t){if(!er.navigator&&!er.location&&!er.document)return;const e=function(){const t=R(),{referrer:e}=er.document||{},{userAgent:n}=er.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}});function Qr(t,e,n,r,s,o){if(!s.exception?.values||!o||!C(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=ts(t,e,r,o.originalException,n,s.exception.values,i,0))}function ts(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(C(r[s],Error)){ns(i,a,r);const o=t(e,r[s]),u=c.length;rs(o,s,u,a),c=ts(t,e,n,r[s],s,[o,...c],o,u)}return es(r)&&r.errors.forEach((o,u)=>{if(C(o,Error)){ns(i,a,r);const p=t(e,o),d=c.length;rs(p,`errors[${u}]`,d,a),c=ts(t,e,n,o,s,[p,...c],p,d)}}),c}function es(t){return Array.isArray(t.errors)}function ns(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...es(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function rs(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const ss=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){Qr(Un,s.getOptions().stackParser,n,e,t,r)}}};function os(t,e,n,r){const s={filename:t,function:""===e?et:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const is=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,as=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cs=/\((\S*)(?::(\d+))(?::(\d+))\)/,us=/at (.+?) ?\(data:(.+?),/,ps=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ds=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ls=st(...[[30,t=>{const e=t.match(us);if(e)return{filename:``,function:e[1]};const n=is.exec(t);if(n){const[,t,e,r]=n;return os(t,et,+e,+r)}const r=as.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=cs.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=fs(r[1]||et,r[2]);return os(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=ps.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ds.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||et;return[n,t]=fs(n,t),os(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),fs=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:et,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},hs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ms={};function _s(t){const e=ms[t];if(e)return e;let n=wr[t];if(hr(n))return ms[t]=n.bind(wr);const r=wr.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(e){hs&&f.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?ms[t]=n.bind(wr):n}function gs(t,e=_s("fetch")){let n=0,r=0;return tn(t,async function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(t){throw ms["fetch"]=void 0,t}finally{n-=o,r--}},Ze(t.bufferSize||40))}function ys(){return!!function(){if(void 0===er.window)return!1;const t=er;if(t.nw)return!1;const e=t.chrome||t.browser;if(!e?.runtime?.id)return!1;const n=R(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(er===er.top&&r.some(t=>n.startsWith(`${t}://`)))}()&&(Nr&&u(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}const vs={init:function(t={}){const e=!t.skipBrowserExtensionCheck&&ys();let n=null==t.defaultIntegrations?[_t(),Ht(),Yt(),Ur(),Lr(),Kr(),ss(),Gt(),Zr(),Wr(),Hr()]:t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||ls,Array.isArray(s)?st(...s):s),integrations:m({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||gs};var s;return Xt(or,r)},showReportDialog:function(t={}){const e=er.document,n=e?.head||e?.body;if(!n)return void(Nr&&f.error("[showReportDialog] Global document not defined"));const r=Lt(),s=Ut(),o=s?.getDsn();if(!o)return void(Nr&&f.error("[showReportDialog] DSN not configured"));const i={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||Mt().lastEventId()},a=er.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(t,e){const n=re(t);if(!n)return"";const r=`${se(n)}embed/error-page/`;let s=`dsn=${te(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(s+=`&name=${encodeURIComponent(t.name)}`),t.email&&(s+=`&email=${encodeURIComponent(t.email)}`)}else s+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${s}`}(o,i);const{onLoad:c,onClose:u}=i;if(c&&(a.onload=c),u){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{u()}finally{er.removeEventListener("message",t)}};er.addEventListener("message",t)}n.appendChild(a)}};window.Sentry=vs})(); \ No newline at end of file +(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();const e="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,n="10.43.0",r=globalThis;function s(){return o(r),r}function o(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n,e[n]=e[n]||{}}function i(t,e,s=r){const o=s.__SENTRY__=s.__SENTRY__||{},i=o[n]=o[n]||{};return i[t]||(i[t]=e())}const a=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in r))return t();const e=r.console,n={},s=Object.keys(c);s.forEach(t=>{const r=c[t];n[t]=e[t],e[t]=r});try{return t()}finally{s.forEach(t=>{e[t]=n[t]})}}function p(){return l().enabled}function d(t,...n){e&&p()&&u(()=>{r.console[t](`Sentry Logger [${t}]:`,...n)})}function l(){return e?i("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const f={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:p,log:function(...t){d("log",...t)},warn:function(...t){d("warn",...t)},error:function(...t){d("error",...t)}};const h=[];function m(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function _(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function g(t,n,r){if(r[n.name])e&&f.log(`Integration skipped because it was already installed: ${n.name}`);else{if(r[n.name]=n,h.includes(n.name)||"function"!=typeof n.setupOnce||(n.setupOnce(),h.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",(n,r)=>e(n,r,t))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}e&&f.log(`Integration installed: ${n.name}`)}}function y(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}const v=Object.prototype.toString;function b(t){switch(v.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return C(t,Error)}}function E(t,e){return v.call(t)===`[object ${e}]`}function S(t){return E(t,"ErrorEvent")}function x(t){return E(t,"DOMError")}function w(t){return E(t,"String")}function k(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $(t){return null===t||k(t)||"object"!=typeof t&&"function"!=typeof t}function I(t){return E(t,"Object")}function O(t){return"undefined"!=typeof Event&&C(t,Event)}function T(t){return Boolean(t?.then&&"function"==typeof t.then)}function C(t,e){try{return t instanceof e}catch{return!1}}function D(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function P(t){return"undefined"!=typeof Request&&C(t,Request)}const j=r;function A(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function N(t,e){const n=t,r=[];if(!n?.tagName)return"";if(j.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(s?.length)s.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&w(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function R(){try{return j.document.location.href}catch{return""}}function L(t,n,r){if(!(n in t))return;const s=t[n];if("function"!=typeof s)return;const o=r(s);"function"==typeof o&&U(o,s);try{t[n]=o}catch{e&&f.log(`Failed to replace method "${n}" in object`,t)}}function M(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&f.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function U(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,M(t,"__sentry_original__",e)}catch{}}function B(t){return t.__sentry_original__}function F(t){if(b(t))return{message:t.message,name:t.name,stack:t.stack,...H(t)};if(O(t)){const e={type:t.type,target:q(t.target),currentTarget:q(t.currentTarget),...H(t)};return"undefined"!=typeof CustomEvent&&C(t,CustomEvent)&&(e.detail=t.detail),e}return t}function q(t){try{return e=t,"undefined"!=typeof Element&&C(e,Element)?A(t):Object.prototype.toString.call(t)}catch{return""}var e}function H(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}let W;function z(t){if(void 0!==W)return W?W(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r;return e in n&&"function"==typeof n[e]?(W=n[e],W(t)):(W=null,t())}function Y(){return z(()=>Math.random())}function G(){return z(()=>Date.now())}let J;function K(t=function(){const t=r;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return z(()=>t.randomUUID()).replace(/-/g,"")}catch{}return J||(J=[1e7]+1e3+4e3+8e3+1e11),J.replace(/[018]/g,t=>(t^(16*Y()&15)>>t/4).toString(16))}function V(t){return t.exception?.values?.[0]}function X(t){const{message:e,event_id:n}=t;if(e)return e;const r=V(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Z(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Q(t,e){const n=V(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function tt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{M(t,"__sentry_captured__",!0)}catch{}return!1}const et="?",nt=/\(error: (.*)\)/,rt=/captureMessage|captureException/;function st(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));const i=nt.test(n)?n.replace(nt,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(ot(e).function||"")&&e.pop();e.reverse(),rt.test(ot(e).function||"")&&(e.pop(),rt.test(ot(e).function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||ot(e).filename,function:t.function||et}))}(s.slice(r))}}function ot(t){return t[t.length-1]||{}}const it="";function at(t){try{return t&&"function"==typeof t&&t.name||it}catch{return it}}function ct(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}function ut(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function pt(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function dt(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;elt(t,e,n))}const ht=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'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",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],mt=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=gt(t,r)},processEvent(r,s,o){if(!n){const e=o.getOptions();n=gt(t,e)}return function(t,n){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&ft(n,e)}(t,n.ignoreTransactions))return e&&f.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${X(t)}`),!0}else{if(function(t,e){if(!e?.length)return!1;return y(t).some(t=>ft(t,e))}(t,n.ignoreErrors))return e&&f.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${X(t)}`),!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return e&&f.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${X(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=yt(t);return!!n&&ft(n,e)}(t,n.denyUrls))return e&&f.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${X(t)}.\nUrl: ${yt(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=yt(t);return!n||ft(n,e)}(t,n.allowUrls))return e&&f.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${X(t)}.\nUrl: ${yt(t)}`),!0}return!1}(r,n)?null:r}}},_t=(t={})=>({...mt(t),name:"InboundFilters"});function gt(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ht],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function yt(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return e&&f.error(`Cannot extract url for event ${X(t)}`),null}}function vt(){return G()/1e3}let bt;function Et(){return(bt??(bt=function(){const{performance:t}=r;if(!t?.now||!t.timeOrigin)return vt;const e=t.timeOrigin;return()=>(e+z(()=>t.now()))/1e3}()))()}function St(t){const e=Et(),n={sid:K(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&xt(n,t),n}function xt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Et(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:K()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function wt(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=wt(r[t],e[t],n-1));return r}function kt(){return K()}function $t(){return K().substring(16)}const It="_sentrySpan";function Ot(t,e){e?M(t,It,e):delete t[It]}function Tt(t){return t[It]}class Ct{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:kt(),sampleRand:Y()}}clone(){const t=new Ct;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ot(t,Tt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&xt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof Ct?e.getScopeData():I(e)?t:void 0,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:p,conversationId:d}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ot(this,void 0),this._attachments=[],this.setPropagationContext({traceId:kt(),sampleRand:Y()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:vt(),...t,message:t.message?pt(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:Tt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=wt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||K();if(!this._client)return e&&f.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||K();if(!this._client)return e&&f.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||K();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&f.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}class Dt{constructor(t,e){let n,r;n=t||new Ct,r=e||new Ct,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return T(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Pt(){const t=o(s());return t.stack=t.stack||new Dt(i("defaultCurrentScope",()=>new Ct),i("defaultIsolationScope",()=>new Ct))}function jt(t){return Pt().withScope(t)}function At(t,e){const n=Pt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Nt(t){return Pt().withScope(()=>t(Pt().getIsolationScope()))}function Rt(t){const e=o(t);return e.acs?e.acs:{withIsolationScope:Nt,withScope:jt,withSetScope:At,withSetIsolationScope:(t,e)=>Nt(e),getCurrentScope:()=>Pt().getScope(),getIsolationScope:()=>Pt().getIsolationScope()}}function Lt(){return Rt(s()).getCurrentScope()}function Mt(){return Rt(s()).getIsolationScope()}function Ut(){return Lt().getClient()}function Bt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||$t()};return r&&(o.parent_span_id=r),o}let Ft;const qt=new WeakMap,Ht=()=>({name:"FunctionToString",setupOnce(){Ft=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=B(this),n=qt.has(Ut())&&void 0!==e?e:this;return Ft.apply(n,t)}}catch{}},setup(t){qt.set(t,!0)}}),Wt="sentry.profile_id",zt="sentry.exclusive_time",Yt=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=Lt().getScopeData(),n=Mt().getScopeData(),r=e.conversationId||n.conversationId;r&&t.setAttribute("gen_ai.conversation.id",r)})}}),Gt=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Kt(t,e))return!1;if(!Jt(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Vt(e),r=Vt(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Kt(t,e))return!1;if(!Jt(t,e))return!1;return!0}(t,e))return!0;return!1}(n,t))return e&&f.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=n}}};function Jt(t,e){let n=ct(t),r=ct(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));Lt().update(n.initialScope);const r=new t(n);return function(t){Lt().setClient(t)}(r),r.init(),r}const Zt=/^o(\d+)\./,Qt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function te(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function ee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ne(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(Zt);return e?.[1]}(n)),r}function re(t){const n="string"==typeof t?function(t){const e=Qt.exec(t);if(!e)return void u(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",p=a;const d=p.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),p=d.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return ee({host:o,pass:s,path:c,projectId:p,port:i,protocol:n,publicKey:r})}(t):ee(t);if(n&&function(t){if(!e)return!0;const{port:n,projectId:r,protocol:s}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(f.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(r.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?n&&isNaN(parseInt(n,10))&&(f.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(f.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(n))return n}function se(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function oe(t,e,n){return e||`${function(t){return`${se(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}const ie="production";function ae(t,e=100,n=1/0){try{return ue("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function ce(t,e=3,n=102400){const r=ae(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?ce(t,e-1,n):r;var s}function ue(e,n,r=1/0,s=1/0,o=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[i,a]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(D(n))return ut(n);if(I(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${at(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}var r}(e,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===u)return c.replace("object ","");if(i(n))return"[Circular ~]";const p=n;if(p&&"function"==typeof p.toJSON)try{return ue("",p.toJSON(),u-1,s,o)}catch{}const d=Array.isArray(n)?[]:{};let l=0;const f=F(n);for(const t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(l>=s){d[t]="[MaxProperties ~]";break}const e=f[t];d[t]=ue(t,e,u-1,s,o),l++}return a(n),d}function pe(t,e=[]){return[t,e]}function de(t,e){const[n,r]=t;return[n,[...r,e]]}function le(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function fe(t){const e=o(r);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function he(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[fe(r),t]:r.push("string"==typeof t?fe(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(ae(n))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function me(t){const e="string"==typeof t.data?fe(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const _e={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",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ge(t){return _e[t]}function ye(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ve(t,e,n,r){const s=ye(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:te(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return pe(i,[[{type:o},t]])}function be(t,e){const n=e??Ee(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=te(r)),pe(s,[(o=t,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());Se().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Ee(t){return Se().get(t)}function Se(){return i("clientToLogBufferMap",()=>new WeakMap)}function xe(t,e){const n=e??we(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=te(r)),pe(s,[(o=t,[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());ke().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function we(t){return ke().get(t)}function ke(){return i("clientToMetricBufferMap",()=>new WeakMap)}const $e=/^sentry-/;function Ie(t){const e=function(t){if(!t||!w(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,e)=>{const n=Oe(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{});return Oe(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match($e)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function Oe(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const Te="_sentryScope",Ce="_sentryIsolationScope";function De(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Pe(t){const e=t;return{scope:e[Te],isolationScope:De(e[Ce])}}let je=!1;function Ae(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Me(t).parent_span_id,o=Pe(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||$t():e,trace_id:n}}function Ne(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function Re(t){return"number"==typeof t?Le(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Le(t.getTime()):Et()}function Le(t){return t>9999999999?t/1e3:t}function Me(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:Re(s),timestamp:Re(i)||void 0,status:Be(a),op:r["sentry.op"],origin:r["sentry.origin"],links:Ne(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Ue(t){const{traceFlags:e}=t.spanContext();return 1===e}function Be(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const Fe="_sentryRootSpan";function qe(t){return t[Fe]||t}function He(){je||(u(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),je=!0)}const We="_frozenDsc";function ze(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||ie,release:n.release,public_key:r,trace_id:t,org_id:ne(e)};return e.emit("createDsc",s),s}function Ye(t){const e=Ut();if(!e)return{};const n=qe(t),r=Me(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n[We];if(c)return a(c);const u=o?.get("sentry.dsc"),p=u&&Ie(u);if(p)return a(p);const d=ze(t.spanContext().traceId,e),l=s["sentry.source"],f=r.description;return"url"!==l&&f&&(d.transaction=f),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||Ut()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(d.sampled=String(Ue(n)),d.sample_rand=o?.get("sentry.sample_rand")??Pe(n).scope?.getPropagationContext().sampleRand.toString()),a(d),e.emit("createDsc",d,n),d}function Ge(t){return new Ke(e=>{e(t)})}function Je(t){return new Ke((e,n)=>{n(t)})}class Ke{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new Ke((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new Ke((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(T(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}function Ve(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}const Xe=Symbol.for("SentryBufferFullError");function Ze(t=100){const e=new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.sizen(s),()=>n(s)),s},drain:function(t){if(!e.size)return Ge(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>Ve(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function Qe(t,{statusCode:e,headers:n},r=G()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?s.all=r+function(t,e=G()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(s.all=r+6e4);return s}function tn(t,n,r=Ze(t.bufferSize||64)){let s={};return{send:function(o){const i=[];if(le(o,(e,n)=>{const r=ge(n);!function(t,e,n=G()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",r)}),0===i.length)return Promise.resolve({});const a=pe(o[0],i),c=n=>{!function(t,e){return le(t,(t,n)=>e.includes(n))}(a,["client_report"])?le(a,(e,r)=>{t.recordDroppedEvent(n,ge(r))}):e&&f.warn(`Dropping client report. Will not send outcomes (reason: ${n}).`)};return r.add(()=>n({body:he(a)}).then(t=>413===t.statusCode?(e&&f.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),t):(e&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&f.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=Qe(s,t),t),t=>{throw c("network_error"),e&&f.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Xe)return e&&f.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>r.drain(t)}}function en(t,e,n,r=0){try{const s=nn(e,n,t,r);return T(s)?s:Ge(s)}catch(t){return Je(t)}}function nn(t,n,r,s){const o=r[s];if(!t||!o)return t;const i=o({...t},n);return e&&null===i&&f.log(`Event processor "${o.id||"?"}" dropped event`),T(i)?i.then(t=>nn(t,n,r,s+1)):nn(i,n,r,s+1)}let rn,sn,on,an;function cn(t){const e=r._sentryDebugIds,n=r._debugIds;if(!e&&!n)return{};const s=e?Object.keys(e):[],o=n?Object.keys(n):[];if(an&&s.length===sn&&o.length===on)return an;sn=s.length,on=o.length,an={},rn||(rn={});const i=(e,n)=>{for(const r of e){const e=n[r],s=rn?.[r];if(s&&an&&e)an[s[0]]=e,rn&&(rn[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],o=s?.filename;if(o&&an&&rn){an[o]=e,rn[r]=[o,e];break}}}}};return e&&i(s,e),n&&i(o,n),an}function un(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(o).length&&(t.contexts={...o,...t.contexts});i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Ae(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ye(e),...t.sdkProcessingMetadata};const n=qe(e),r=Me(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function pn(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:d,attachments:l,propagationContext:f,transactionName:h,span:m}=e;dn(t,"extra",n),dn(t,"tags",r),dn(t,"attributes",s),dn(t,"user",o),dn(t,"contexts",i),t.sdkProcessingMetadata=wt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...f}}function dn(t,e,n){t[e]=wt(t[e],n,1)}function ln(t,e){const n=i("globalScope",()=>new Ct).getScopeData();return t&&pn(n,t.getScopeData()),e&&pn(n,e.getScopeData()),n}function fn(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||K(),timestamp:e.timestamp||vt()},u=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||ie,!t.release&&r&&(t.release=r);!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=pt(i.url,o));o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=pt(t.value,o))})}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=cn(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(c,t.stackParser);const p=function(t,e){if(!e)return t;const n=t?t.clone():new Ct;return n.update(e),n}(r,n.captureContext);n.mechanism&&Q(c,n.mechanism);const d=s?s.getEventProcessors():[],l=ln(o,p),f=[...n.attachments||[],...l.attachments];f.length&&(n.attachments=f),un(c,l);const h=[...d,...l.eventProcessors];return(n.data&&!0===n.data.__sentry__?Ge(c):en(h,c,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:ae(t.data,e,n)}}))},...t.user&&{user:ae(t.user,e,n)},...t.contexts&&{contexts:ae(t.contexts,e,n)},...t.extra&&{extra:ae(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ae(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:ae(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=ae(t.contexts.flags,3,n));return r}(t,i,a):t))}function hn(t){if(t)return function(t){return t instanceof Ct||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>mn.includes(t))}(t)?{captureContext:t}:t}const mn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function _n(t){f.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function gn(t,n){if(!n?.length||!t.description)return!1;for(const r of n){if(vn(r)){if(lt(t.description,r))return e&&_n(t),!0;continue}if(!r.name&&!r.op)continue;const n=!r.name||lt(t.description,r.name),s=!r.op||t.op&<(t.op,r.op);if(n&&s)return e&&_n(t),!0}return!1}function yn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function vn(t){return"string"==typeof t||t instanceof RegExp}const bn="Not capturing exception because it's already been captured.",En="Discarded session because of missing or non-string release",Sn=Symbol.for("SentryInternalError"),xn=Symbol.for("SentryDoNotSendEventError");function wn(t){return{message:t,[Sn]:!0}}function kn(t){return{message:t,[xn]:!0}}function $n(t){return!!t&&"object"==typeof t&&Sn in t}function In(t){return!!t&&"object"==typeof t&&xn in t}function On(t,e,n,r,s){let o,i=0,a=!1;t.on(n,()=>{i=0,clearTimeout(o),a=!1}),t.on(e,e=>{i+=r(e),i>=8e5?s(t):a||(a=!0,o=Ve(setTimeout(()=>{s(t)},5e3)))}),t.on("flush",()=>{s(t)})}class Tn{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ze(t.transportOptions?.bufferSize??64),t.dsn?this._dsn=re(t.dsn):e&&f.warn("No DSN provided, client will not send events."),this._dsn){const e=oe(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&On(this,"afterCaptureLog","flushLogs",An,be);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&On(this,"afterCaptureMetric","flushMetrics",jn,xe)}captureException(t,n,r){const s=K();if(tt(t))return e&&f.log(bn),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(t,o).then(t=>this._captureEvent(t,o,r)).then(t=>t),"error"),o.event_id}captureMessage(t,e,n,r){const s={event_id:K(),...n},o=k(t)?t:String(t),i=$(t),a=i?this.eventFromMessage(o,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,n,r){const s=K();if(n?.originalException&&tt(n.originalException))return e&&f.log(bn),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Cn(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),xt(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(!e)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){be(this);const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];g(this,t,this._integrations),e||_(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=ve(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=de(n,me(t));this.sendEnvelope(n).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:n,environment:r=ie}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return void(e&&f.warn(En));s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n)return void(e&&f.warn(En));t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=function(t,e,n,r){const s=ye(n);return pe({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:te(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;e&&f.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(t){return e&&f.error("Error while sending envelope:",t),{}}return e&&f.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e&&g(t,e,n)}),n}(this,t),_(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(xt(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||esetTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o?.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),fn(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,...Bt(n)},...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||ze(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,n={},r=Lt(),s=Mt()){return e&&Dn(t)&&f.log(`Captured error event \`${y(t)[0]||""}\``),this._processEvent(t,n,r,s).then(t=>t.event_id,t=>{e&&(In(t)?f.log(t.message):$n(t)?f.warn(t.message):f.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Pn(t),a=Dn(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===o?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(o);if(a&&"number"==typeof u&&Y()>u)return this.recordDroppedEvent("sample_rate","error"),Je(kn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=Cn(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",p),kn("An event processor returned `null`, will not send event.");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=e;let c=n;if(Dn(c)&&s)return s(c,r);if(Pn(c)){if(i||a){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i?.[Wt],exclusive_time:i?.[zt],measurements:t.measurements,is_segment:!0}}(c);if(a?.length&&gn(e,a))return null;if(i){const t=i(e);t?c=wt(n,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Wt]:u.profile_id},...u.exclusive_time&&{[zt]:u.exclusive_time}}}},measurements:u.measurements}):He()}if(c.spans){const e=[],n=c.spans;for(const t of n)if(a?.length&&gn(t,a))yn(n,t);else if(i){const n=i(t);n?e.push(n):(He(),e.push(t))}else e.push(t);const r=c.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),c.spans=e}}if(o){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(c,r)}}var u;return c}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(T(t))return t.then(t=>{if(!I(t)&&null!==t)throw wn(n);return t},t=>{throw wn(`${e} rejected with ${t}`)});if(!I(t)&&null!==t)throw wn(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",p),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw kn(`${c} returned \`null\`, will not send event.`)}const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(i&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(In(t)||$n(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),wn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Xe&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){e&&f.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(e&&f.log("No outcomes to send"));if(!this._dsn)return void(e&&f.log("No dsn provided, will not send outcomes"));e&&f.log("Sending outcomes:",t);const n=(r=t,pe((s=this._options.tunnel&&te(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:o||vt(),discarded_events:r}]]));var r,s,o;this.sendEnvelope(n)}}function Cn(t){return"replay_event"===t?"replay":t||"error"}function Dn(t){return void 0===t.type}function Pn(t){return"transaction"===t.type}function jn(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+Nn(t.attributes)}function An(t){let e=0;return t.message&&(e+=2*t.message.length),e+Nn(t.attributes)}function Nn(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Rn(t[0]):$(t)?e+=Rn(t):e+=100}),e}function Rn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Ln(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Mn(t){return function(t){return b(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function Un(t,e){const n=qn(t,e),r={type:zn(e),value:Yn(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Bn(t,e,n,r){const s=Ut(),o=s?.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),a={__serialized__:ce(e,o)};if(i)return{exception:{values:[Un(t,i)]},extra:a};const c={exception:{values:[{type:O(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Kn(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=qn(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function Fn(t,e){return{exception:{values:[Un(t,e)]}}}function qn(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&Hn.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const Hn=/Minified React error #\d+;/i;function Wn(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function zn(t){const e=t?.name;if(!e&&Wn(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function Yn(t){const e=t?.message;return Wn(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?Mn(e.error):Mn(t):"No error message"}function Gn(t,e,n,r,s){let o;if(S(e)&&e.error){return Fn(t,e.error)}if(x(e)||E(e,"DOMException")){const s=e;if("stack"in e)o=Fn(t,e);else{const e=s.name||(x(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=Jn(t,i,n,r),Z(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}if(b(e))return Fn(t,e);if(I(e)||O(e)){return o=Bn(t,e,n,s),Q(o,{synthetic:!0}),o}return o=Jn(t,e,n,r),Z(o,`${e}`,void 0),Q(o,{synthetic:!0}),o}function Jn(t,e,n,r){const s={};if(r&&n){const r=qn(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),Q(s,{synthetic:!0})}if(k(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Kn(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(F(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(S(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(O(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function Vn(t,e){return Lt().captureEvent(t,e)}function Xn(t){const e=Mt(),{user:n}=ln(e,Lt()),{userAgent:s}=r.navigator||{},o=St({user:n,...s&&{userAgent:s},...t}),i=e.getSession();return"ok"===i?.status&&xt(i,{status:"exited"}),Zn(),e.setSession(o),o}function Zn(){const t=Mt(),e=Lt().getSession()||t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),xt(t,n)}(e),Qn(),t.setSession()}function Qn(){const t=Mt(),e=Ut(),n=t.getSession();n&&e&&e.captureSession(n)}function tr(t=!1){t?Zn():Qn()}const er=r;let nr=0;function rr(){return nr>0}function sr(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(B(t))return t}catch{return t}const n=function(...n){try{const r=n.map(t=>sr(t,e));return t.apply(this,r)}catch(t){throw nr++,setTimeout(()=>{nr--}),function(...t){const e=Rt(s());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(r=>{var s,o;r.addEventProcessor(t=>(e.mechanism&&(Z(t,void 0,void 0),Q(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),s=t,Lt().captureException(s,hn(o))}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}U(n,t),M(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}class or extends Tn{constructor(t){const e=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:er.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,e,r=[e],s="npm"){const o=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${e}`,o.packages=r.map(t=>({name:`${s}:@sentry/${t}`,version:n})),o.version=n)}(e,"browser",["browser"],er.SENTRY_SDK_SOURCE||"npm"),e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:e.sendDefaultPii?"auto":"never",...e._metadata.sdk.settings}),super(e);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;er.document&&(o||i||u)&&er.document.addEventListener("visibilitychange",()=>{"hidden"===er.document.visibilityState&&(o&&this._flushOutcomes(),i&&be(this),u&&xe(this))}),s&&this.on("beforeSendSession",Ln)}eventFromException(t,e){return function(t,e,n,r){const s=Gn(t,e,n?.syntheticException||void 0,r);return Q(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Ge(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=Jn(t,e,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Ge(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const ir={},ar={};function cr(t,e){ir[t]=ir[t]||[],ir[t].push(e)}function ur(t,n){if(!ar[t]){ar[t]=!0;try{n()}catch(n){e&&f.error(`Error while instrumenting ${t}`,n)}}}function pr(t,n){const r=t&&ir[t];if(r)for(const s of r)try{s(n)}catch(n){e&&f.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${at(s)}\nError:`,n)}}function dr(){"console"in r&&a.forEach(function(t){t in r.console&&L(r.console,t,function(e){return c[t]=e,function(...e){pr("console",{args:e,level:t});const n=c[t];n?.apply(r.console,e)}})})}const lr=r;function fr(){if(!("fetch"in lr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function hr(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function mr(t,n=!1){n&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!fr())return!1;if(hr(lr.fetch))return!0;let t=!1;const n=lr.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=hr(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||L(r,"fetch",function(e){return function(...n){const s=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:gr(e),method:_r(n,"method")?String(n.method).toUpperCase():P(e)&&_r(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:gr(e),method:_r(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*Et(),virtualError:s,headers:yr(n)};return t||pr("fetch",{...a}),e.apply(r,n).then(async e=>(t?t(e):pr("fetch",{...a,endTimestamp:1e3*Et(),response:e}),e),t=>{pr("fetch",{...a,endTimestamp:1e3*Et(),error:t}),b(t)&&void 0===t.stack&&(t.stack=s.stack,M(t,"framesToPop",1));const e=Ut(),n=e?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(a.fetchData.url).host;"always"===n?t.message=`${t.message} (${e})`:M(t,"__sentry_fetch_url_host__",e)}catch{}throw t})}})}function _r(t,e){return!!t&&"object"==typeof t&&!!t[e]}function gr(t){return"string"==typeof t?t:t?_r(t,"url")?t.url:t.toString?t.toString():"":""}function yr(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(P(e))return new Headers(e.headers)}catch{}}const vr=100;function br(t,e){const n=Ut(),r=Mt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=vr}=n.getOptions();if(o<=0)return;const i={timestamp:vt(),...t},a=s?u(()=>s(i,e)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Er(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}function Sr(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function xr(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const wr=r;let kr,$r,Ir;function Or(){if(!wr.document)return;const t=pr.bind(null,"dom"),e=Tr(t,!0);wr.document.addEventListener("click",e,!1),wr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=wr,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(L(r,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=Tr(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch{}return e.call(this,n,r,s)}}),L(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function Tr(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;M(n,"_sentryCaptured",!0),r&&!r._sentryId&&M(r,"_sentryId",K());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==$r)return!1;try{if(!t.target||t.target._sentryId!==Ir)return!1}catch{}return!0}(n)){t({event:n,name:s,global:e}),$r=n.type,Ir=r?r._sentryId:void 0}clearTimeout(kr),kr=wr.setTimeout(()=>{Ir=void 0,$r=void 0},1e3)}}const Cr="__sentry_xhr_v3__";function Dr(){if(!wr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*Et(),o=w(n[0])?n[0].toUpperCase():void 0,i=function(t){if(w(t))return t;try{return t.toString()}catch{}return}(n[1]);if(!o||!i)return t.apply(e,n);e[Cr]={method:o,url:i,request_headers:{}},"POST"===o&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Cr];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}pr("xhr",{endTimestamp:1e3*Et(),startTimestamp:s,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,o=e[Cr];return o&&w(r)&&w(s)&&(o.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Cr];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return pr("xhr",{startTimestamp:1e3*Et(),xhr:e}),t.apply(e,n)}})}let Pr;function jr(t){const e="history";cr(e,t),ur(e,Ar)}function Ar(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=Pr,s=function(t){try{return new URL(t,wr.location.origin).toString()}catch{return t}}(String(n));if(Pr=s,r===s)return t.apply(this,e);pr("history",{from:r,to:s})}return t.apply(this,e)}}wr.addEventListener("popstate",()=>{const t=wr.location.href,e=Pr;if(Pr=t,e===t)return;pr("history",{from:e,to:t})}),"history"in lr&&lr.history&&(L(wr.history,"pushState",t),L(wr.history,"replaceState",t))}const Nr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Rr=1024,Lr=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";cr(e,t),ur(e,dr)}(function(t){return function(e){if(Ut()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Er(e.level),message:dt(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${dt(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}br(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Ut()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Rr&&(Nr&&f.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Rr),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=A(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!j.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch{r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),br(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),cr("dom",n),ur("dom",Or)),e.xhr&&function(t){cr("xhr",t),ur("xhr",Dr)}(function(t){return function(e){if(Ut()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Cr];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},p={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Sr(a)};t.emit("beforeOutgoingRequestBreadcrumb",d,p),br(d,p)}}(t)),e.fetch&&function(t,e){const n="fetch";cr(n,t),ur(n,()=>mr(void 0,e))}(function(t){return function(e){if(Ut()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const s=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:s,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),br(i,o)}else{const s=e.response,o={...e.fetchData,status_code:s?.status};e.fetchData.request_body_size,e.fetchData.response_body_size;const i={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:Sr(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),br(a,i)}}}(t)),e.history&&jr(function(t){return function(e){if(Ut()!==t)return;let n=e.from,r=e.to;const s=xr(er.location.href);let o=n?xr(n):void 0;const i=xr(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),br({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Ut()===t&&br({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:X(e)},{event:e})}}(t))}}};const Mr=["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"],Ur=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&L(er,"setTimeout",Br),e.setInterval&&L(er,"setInterval",Br),e.requestAnimationFrame&&L(er,"requestAnimationFrame",Fr),e.XMLHttpRequest&&"XMLHttpRequest"in er&&L(XMLHttpRequest.prototype,"send",qr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Mr).forEach(t=>function(t,e){const n=er,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;L(r,"addEventListener",function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=sr(s.handleEvent,{mechanism:{data:{handler:at(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,sr(s,{mechanism:{data:{handler:at(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),L(r,"removeEventListener",function(t){return function(e,n,r){try{const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function Br(t){return function(...e){const n=e[0];return e[0]=sr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${at(t)}`}}),t.apply(this,e)}}function Fr(t){return function(e){return t.apply(this,[sr(e,{mechanism:{data:{handler:at(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function qr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&L(n,t,function(e){const n={mechanism:{data:{handler:at(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=B(e);return r&&(n.mechanism.data.handler=at(r)),sr(e,n)})}),t.apply(this,e)}}const Hr=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===er.document)return void(Nr&&f.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));Xn({ignoreDuration:!0}),tr();const t=Mt();let n=t.getUser();t.addScopeListener(t=>{const e=t.getUser();n?.id===e?.id&&n?.ip_address===e?.ip_address||(tr(),n=e)}),"route"===e&&jr(({from:t,to:e})=>{t!==e&&(Xn({ignoreDuration:!0}),tr())})}}},Wr=()=>({name:"CultureContext",preprocessEvent(t){const e=function(){try{const t=er.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})}});let zr=null;function Yr(){zr=r.onerror,r.onerror=function(t,e,n,r,s){return pr("error",{column:r,error:s,line:n,msg:t,url:e}),!!zr&&zr.apply(this,arguments)},r.onerror.__SENTRY_INSTRUMENTED__=!0}let Gr=null;function Jr(){Gr=r.onunhandledrejection,r.onunhandledrejection=function(t){return pr("unhandledrejection",t),!Gr||Gr.apply(this,arguments)},r.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Kr=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";cr(e,t),ur(e,Yr)}(e=>{const{stackParser:n,attachStacktrace:r}=Xr();if(Ut()!==t||rr())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,p=n,d=function(t){if(!w(t)||0===t.length)return;if(t.startsWith("data:"))return`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&-1!==o){const e=t.slice(o+1);i=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}(t,!1)}>`;return t}(e)??R();0===c.length&&c.push({colno:u,filename:d,function:et,in_app:!0,lineno:p});return t}(Gn(n,c||s,void 0,r,!1),o,i,a);u.level="error",Vn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),Vr("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";cr(e,t),ur(e,Jr)}(e=>{const{stackParser:n,attachStacktrace:r}=Xr();if(Ut()!==t||rr())return;const s=function(t){if($(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),o=$(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Gn(n,s,void 0,r,!0);o.level="error",Vn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),Vr("onunhandledrejection"))}}};function Vr(t){Nr&&f.log(`Global Handler attached: ${t}`)}function Xr(){const t=Ut();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Zr=()=>({name:"HttpContext",preprocessEvent(t){if(!er.navigator&&!er.location&&!er.document)return;const e=function(){const t=R(),{referrer:e}=er.document||{},{userAgent:n}=er.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}});function Qr(t,e,n,r,s,o){if(!s.exception?.values||!o||!C(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=ts(t,e,r,o.originalException,n,s.exception.values,i,0))}function ts(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(C(r[s],Error)){ns(i,a,r);const o=t(e,r[s]),u=c.length;rs(o,s,u,a),c=ts(t,e,n,r[s],s,[o,...c],o,u)}return es(r)&&r.errors.forEach((o,u)=>{if(C(o,Error)){ns(i,a,r);const p=t(e,o),d=c.length;rs(p,`errors[${u}]`,d,a),c=ts(t,e,n,o,s,[p,...c],p,d)}}),c}function es(t){return Array.isArray(t.errors)}function ns(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...es(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function rs(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const ss=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){Qr(Un,s.getOptions().stackParser,n,e,t,r)}}};function os(t,e,n,r){const s={filename:t,function:""===e?et:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const is=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,as=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cs=/\((\S*)(?::(\d+))(?::(\d+))\)/,us=/at (.+?) ?\(data:(.+?),/,ps=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ds=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ls=st(...[[30,t=>{const e=t.match(us);if(e)return{filename:``,function:e[1]};const n=is.exec(t);if(n){const[,t,e,r]=n;return os(t,et,+e,+r)}const r=as.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=cs.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=fs(r[1]||et,r[2]);return os(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=ps.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ds.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||et;return[n,t]=fs(n,t),os(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),fs=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:et,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},hs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ms={};function _s(t){const e=ms[t];if(e)return e;let n=wr[t];if(hr(n))return ms[t]=n.bind(wr);const r=wr.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(e){hs&&f.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?ms[t]=n.bind(wr):n}function gs(t,e=_s("fetch")){let n=0,r=0;return tn(t,async function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(t){throw ms["fetch"]=void 0,t}finally{n-=o,r--}},Ze(t.bufferSize||40))}function ys(){return!!function(){if(void 0===er.window)return!1;const t=er;if(t.nw)return!1;const e=t.chrome||t.browser;if(!e?.runtime?.id)return!1;const n=R(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(er===er.top&&r.some(t=>n.startsWith(`${t}://`)))}()&&(Nr&&u(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}const vs={init:function(t={}){const e=!t.skipBrowserExtensionCheck&&ys();let n=null==t.defaultIntegrations?[_t(),Ht(),Yt(),Ur(),Lr(),Kr(),ss(),Gt(),Zr(),Wr(),Hr()]:t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||ls,Array.isArray(s)?st(...s):s),integrations:m({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||gs};var s;return Xt(or,r)},showReportDialog:function(t={}){const e=er.document,n=e?.head||e?.body;if(!n)return void(Nr&&f.error("[showReportDialog] Global document not defined"));const r=Lt(),s=Ut(),o=s?.getDsn();if(!o)return void(Nr&&f.error("[showReportDialog] DSN not configured"));const i={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||Mt().lastEventId()},a=er.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(t,e){const n=re(t);if(!n)return"";const r=`${se(n)}embed/error-page/`;let s=`dsn=${te(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(s+=`&name=${encodeURIComponent(t.name)}`),t.email&&(s+=`&email=${encodeURIComponent(t.email)}`)}else s+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${s}`}(o,i);const{onLoad:c,onClose:u}=i;if(c&&(a.onload=c),u){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{u()}finally{er.removeEventListener("message",t)}};er.addEventListener("message",t)}n.appendChild(a)}};window.Sentry=vs})(); \ No newline at end of file