bitfocus / companion-module-generic-pjlink

Companion Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

V3.0 will no longer connect to any of my Epson L1500, L510U, or PowerLite725W Projectors

obcocav opened this issue · comments

Testing out V3 update and can no longer connect to any of my epson projectors. Just getting an "Unknown Error: STOPPED" in the connection state. Connection Settings will not open. Just endless loading animation. Adding a new module does the same. Anyone else having this issue?

Open the log page for the module and post a copy. (Click on the >_)
image

There is an update waiting to be approved, too.

@istnv. Here you go. The error text goes on for pages and then crashes. I can try to get more than this first bit if needed. Thank you!
pjlink error

The ERR1 is a laser projector whining about not having a lamp model number. A warn: is normal for that.
The actual error is buried in that long line of text. Could you save the text (copy/paste, not a screen shot) so I can unpack it and find what the error is?

@istnv That makes way more sense! Brain not working today. Here it is for the L1500U

system: ** Connection started **
Starting up module class: _
Sentry disabled
Module-host accepted registration
error: Feedback check failed: {"id":"IpLuUTk3YhJs10NY5hc_7","controlId":"bank:31-10","feedbackId":"muteState","options":{"item":"3","opt":"1"},"disabled":false,"image":{"width":72,"height":58},"page":31,"bank":10,"referencedVariables":null} - Cannot read properties of undefined (reading '0') TypeError: Cannot read properties of undefined (reading '0')
at Object.callback (/Applications/Companion.app/Contents/Resources/bundled-modules/generic-pjlink/main.js:2:246710)
at /Applications/Companion.app/Contents/Resources/bundled-modules/generic-pjlink/main.js:2:202215
info: Connected
debug: PJLINK: < PJLINK 0
debug: Projector does not need password
debug: PJLINK(send): > %1CLSS ?
debug: PJLINK: < %1POWR=0
debug: PJLINK: < %1CLSS=2
debug: PJLINK(send): > %1NAME ?
debug: PJLINK(send): > %1INF1 ?
debug: PJLINK(send): > %1INF2 ?
debug: PJLINK(send): > %1INFO ?
debug: PJLINK(send): > %2INST ?
debug: PJLINK(send): > %2SNUM ?
debug: PJLINK(send): > %2SVER ?
debug: PJLINK(send): > %2RLMP ?
debug: PJLINK(send): > %2RFIL ?
debug: PJLINK(send): > %2RRES ?
debug: PJLINK: < %1NAME=MainProjector
debug: PJLINK: < %1INF1=EPSON
debug: PJLINK: < %1INF2=EPSON L1505U/L1500U
debug: PJLINK: < %1INFO=214.214.100
debug: PJLINK: < %2INST=11 13 31 32 34 52 56
debug: PJLINK(send): > %2INNM ?11
debug: PJLINK(send): > %2INNM ?13
debug: PJLINK(send): > %2INNM ?31
debug: PJLINK(send): > %2INNM ?32
debug: PJLINK(send): > %2INNM ?34
debug: PJLINK(send): > %2INNM ?52
debug: PJLINK(send): > %2INNM ?56
debug: PJLINK: < %2SNUM=X2YR760080L
debug: PJLINK: < %2SVER=99007973ARWWV214
debug: PJLINK: < %2RLMP=ERR1
warn: Undefined command: %2RLMP
system: ** Connection crashed **
system: ** Connection stopped **
error: /Applications/Companion.app/Contents/Resources/bundled-modules/generic-pjlink/main.js:2
(()=>{var e={7056:(e,t,n)=>{"use strict";const s=n(4063);s.code='require("ajv/dist/runtime/equal").default',t.Z=s},1460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>I,__asyncGenerator:()=>w,__asyncValues:()=>T,__await:()=>k,__awaiter:()=>f,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>A,__createBinding:()=>m,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>r,__generator:()=>,__importDefault:()=>N,__importStar:()=>C,__makeTemplateObject:()=>x,__metadata:()=>h,__param:()=>c,__propKey:()=>d,__read:()=>b,__rest:()=>o,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>v,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>y});var s=function(e,t){return s=Object.setPrototypeOf||{proto:[]}instanceof Array&&function(e,t){e.proto=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}function a(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,s){t(n,s,e)}}function u(e,t,n,s,r,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=s.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?s.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,s.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var _ in s)f[]="access"===?{}:s[];for(var _ in s.access)f.access[]=s.access[];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,n[h])("accessor"===c?{get:d.get,set:d.set}:d[u],f);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(d.get=a),(a=o(m.set))&&(d.set=a),(a=o(m.init))&&r.push(a)}else(a=o(m))&&("field"===c?r.push(a):d[u]=a)}l&&Object.defineProperty(l,s.name,d),p=!0}function l(e,t,n){for(var s=arguments.length>2,r=0;r<t.length;r++)n=s?t[r].call(e,n):t[r].call(e);return s?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,s){return new(n||(n=Promise))((function(r,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))}function _(e,t){var n,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(o=0)),o;)try{if(n=1,s&&(r=2&a[0]?s.return:a[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;switch(s=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,s=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],s=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var m=Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,r++)s[r]=i[o];return s}function E(e,t,n){if(n||2===arguments.length)for(var s,r=0,i=t.length;r<i;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,r=n.apply(e,t||[]),i=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(e){r[e]&&(s[e]=function(t){return new Promise((function(n,s){i.push([e,t,n,s])>1||a(e,t)}))})}function a(e,t){try{(n=re).value instanceof k?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function I(e){var t,n;return t={},s("next"),s("throw",(function(e){throw e})),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,r){t[s]=e[s]?function(t){return(n=!n)?{value:k(es),done:!1}:r?r(t):t}:r}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(t){return new Promise((function(s,r){!function(e,t,n,s){Promise.resolve(s).then((function(t){e({value:t,done:n})}),t)}(s,r,(t=en).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return O(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw n

Yeah. That was fixed last week. Still waiting for the update to be included.

These go on FOR A WHILE on both of the L510Us. Little different than the L1500. Also the L1500 throws a checkmark every so often for just a sec

error: /Applications/Companion.app/Contents/Resources/bundled-modules/generic-pjlink/main.js:2
(()=>{var e={7056:(e,t,n)=>{"use strict";const s=n(4063);s.code='require("ajv/dist/runtime/equal").default',t.Z=s},1460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>I,__asyncGenerator:()=>w,__asyncValues:()=>T,__await:()=>k,__awaiter:()=>f,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>A,__createBinding:()=>m,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>r,__generator:()=>,__importDefault:()=>N,__importStar:()=>C,__makeTemplateObject:()=>x,__metadata:()=>h,__param:()=>c,__propKey:()=>d,__read:()=>b,__rest:()=>o,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>v,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>y});var s=function(e,t){return s=Object.setPrototypeOf||{proto:[]}instanceof Array&&function(e,t){e.proto=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}function a(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,s){t(n,s,e)}}function u(e,t,n,s,r,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=s.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?s.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,s.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var _ in s)f[]="access"===?{}:s[];for(var _ in s.access)f.access[]=s.access[];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,n[h])("accessor"===c?{get:d.get,set:d.set}:d[u],f);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(d.get=a),(a=o(m.set))&&(d.set=a),(a=o(m.init))&&r.push(a)}else(a=o(m))&&("field"===c?r.push(a):d[u]=a)}l&&Object.defineProperty(l,s.name,d),p=!0}function l(e,t,n){for(var s=arguments.length>2,r=0;r<t.length;r++)n=s?t[r].call(e,n):t[r].call(e);return s?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,s){return new(n||(n=Promise))((function(r,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))}function (e,t){var n,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(o=0)),o;)try{if(n=1,s&&(r=2&a[0]?s.return:a[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;switch(s=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,s=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],s=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var m=Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,r++)s[r]=i[o];return s}function E(e,t,n){if(n||2===arguments.length)for(var s,r=0,i=t.length;r<i;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,r=n.apply(e,t||[]),i=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(e){r[e]&&(s[e]=function(t){return new Promise((function(n,s){i.push([e,t,n,s])>1||a(e,t)}))})}function a(e,t){try{(n=re).value instanceof k?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function I(e){var t,n;return t={},s("next"),s("throw",(function(e){throw e})),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,r){t[s]=e[s]?function(t){return(n=!n)?{value:k(es),done:!1}:r?r(t):t}:r}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(t){return new Promise((function(s,r){!function(e,t,n,s){Promise.resolve(s).then((function(t){e({value:t,done:n})}),t)}(s,r,(t=en).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return O(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw n
error: ew TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?s:"a"===n?s.call(e):s?s.value:t.get(e)}function A(e,t,n,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(e,n):r?r.value=n:t.set(e,n),n}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},5659:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>
,Xb:()=>p,cu:()=>h,j0:()=>y,pj:()=>f,vi:()=>g});var s=n(2844),r=n(1170),i=n(2343),o=n(1235),a=n(2176),c=n(350),u=n(9015);const l=4,d=100;class p{__init(){this._stack=[{}]}constructor(e,t=new c.s,n=l){this._version=n,p.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,s.DM)(),r=new Error("Sentry syntheticException");return this._withClient(((s,i)=>{s.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),i=new Error(e);return this._withClient(((s,o)=>{s.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},o)})),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,s.DM)();return e.type||(this._lastEventId=n),this._withClient(((s,r)=>{s.captureEvent(e,{...t,event_id:n},r)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:s}=this.getStackTop();if(!n||!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=d}=s.getOptions&&s.getOptions()||{};if(a<=0)return;const c={timestamp:(0,r.yW)(),...e},u=o?(0,i.Cf)((()=>o(c,t))):c;null!==u&&n.addBreadcrumb(u,a)}setUser(e){const t=this.getScope();t&&t.setUser(e)}setTags(e){const t=this.getScope();t&&t.setTags(e)}setExtras(e){const t=this.getScope();t&&t.setExtras(e)}setTag(e,t){const n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){const n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){const n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){const t=f(this);try{e(this)}finally{f(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&i.kg.warn(Cannot retrieve integration ${e.id} from the current Hub),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,u.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:s,environment:r}=n&&n.getOptions()||{},{userAgent:i}=o.n2.navigator||{},a=(0,u.Hv)({release:s,environment:r,...t&&{user:t.getUser()},...i&&{userAgent:i},...e});if(t){const e=t.getSession&&t.getSession();e&&"ok"===e.status&&(0,u.CT)(e,{status:"exited"}),this.endSession(),t.setSession(a)}return a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(!e)return;const n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=h().SENTRY;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&i.kg.warn(Extension method ${e} couldn't be found, doing nothing.)}}function h(){return o.n2.SENTRY=o.n2.SENTRY||{extensions:{},hub:void 0},o.n2}function f(e){const t=h(),n=g(t);return y(t,e),n}function _(){const e=h();return m(e)&&!g(e).isOlderThan(l)||y(e,new p),(0,a.KV)()?function(e){try{const t=h().SENTRY,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return g(e);if(!m(n)||g(n).isOlderThan(l)){const t=g(e).getStackTop();y(n,new p(t.client,c.s.clone(t.scope)))}return g(n)}catch(t){return g(e)}}(e):g(e)}function m(e){return!!(e&&e.SENTRY&&e.SENTRY.hub)}function g(e){return(0,o.YO)("hub",(()=>new p),e)}function y(e,t){return!!e&&((e.SENTRY=e.SENTRY||{}).hub=t,!0)}},350:(e,t,n)=>{"use strict";n.d(t,{c:()=>p,s:()=>l});var s=n(7597),r=n(1170),i=n(6893),o=n(2343),a=n(2844),c=n(1235),u=n(9015);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new l;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof l?t:this}return e instanceof l?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,s.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},
error: this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s={timestamp:(0,r.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,s].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new i.cW(((i,a)=>{const c=e[r];if(null===t||"function"!=typeof c)i(t);else{const u=c({...t},n);("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&c.id&&null===u&&o.kg.log(Event processor "${c.id}" dropped event),(0,s.J8)(u)?u.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,a):this._notifyEventProcessors(e,u,n,r+1).then(i).then(null,a)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}applyFingerprint(e){e.fingerprint=e.fingerprint?(0,a.lE)(e.fingerprint):[],this.fingerprint&&(e.fingerprint=e.fingerprint.concat(this.fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,c.YO)("globalEventProcessors",(()=>[]))}function p(e){d().push(e)}},9015:(e,t,n)=>{"use strict";n.d(t,{CT:()=>a,Hv:()=>o,RJ:()=>c});var s=n(1170),r=n(2844),i=n(535);function o(e){const t=(0,s.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:${e.sid},init:e.init,started:new Date(1e3e.started).toISOString(),timestamp:new Date(1e3e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?${e.did}:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,s.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=${t.did}),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},9345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_USER_INCLUDES:()=>pt,Handlers:()=>r,Hub:()=>.Xb,Integrations:()=>Lt,NodeClient:()=>me,SDK_VERSION:()=>m,Scope:()=>Q.s,addBreadcrumb:()=>S,addGlobalEventProcessor:()=>Q.c,addRequestDataToEvent:()=>t,captureEvent:()=>b,captureException:()=>g,captureMessage:()=>y,close:()=>Nt,configureScope:()=>v,createTransport:()=>Z,deepReadDirSync:()=>Pt,defaultIntegrations:()=>Tt,defaultStackParser:()=>Dt,extractRequestData:()=>ft,flush:()=>Ct,getCurrentHub:()=>.Gd,getHubFromCarrier:()=>.vi,getSentryRelease:()=>At,init:()=>xt,lastEventId:()=>Ot,makeMain:()=>.pj,makeNodeTransport:()=>we,setContext:()=>E,setExtra:()=>w,setExtras:()=>k,setTag:()=>T,setTags:()=>I,setUser:()=>x,startTransaction:()=>C,withScope:()=>O});var s={};n.r(s),n.d(s,{FunctionToString:()=>c,InboundFilters:()=>h});var r={};n.r(r),n.d(r,{errorHandler:()=>Gt,extractRequestData:()=>Ut,parseRequest:()=>$t,requestHandler:()=>Mt,tracingHandler:()=>Bt});var i={};n.r(i),n.d(i,{Console:()=>Oe,Context:()=>tt,ContextLines:()=>He,Http:()=>$e,LinkedErrors:()=>Je,LocalVariables:()=>St,Modules:()=>Ze,OnUncaughtException:()=>Le,OnUnhandledRejection:()=>Ye,RequestData:()=>gt});var o=n(535);let a;class c{constructor(){c.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=c.id}setupOnce(){a=Function.prototype.toString,Function.prototype.toString=function(...e){const t=(0,o.HK)(this)||this;return a.apply(t,e)}}}c.__initStatic();var u=n(2343),l=n(2844),d=n(7321);const p=[/^Script error.?$/,/^Javascript error: Script error.? on line 0$/];class h{static __initStatic(){this.id="InboundFilters"}__init(){this.name=h.id}constructor(e={}){this._options=e,h.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(h);if(t){const s=n.getClient(),r=s?s.getOptions():{},i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...p],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,r);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.warn(Event dropped due to being internal Sentry Error.\nEvent: ${(0,l.jH)(e)}),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[${n},${t}: ${n}]}catch(t){return("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.error(Cannot extract message for event ${(0,l.jH)(e)}),[]}return[]}(e).some((e=>(0,d.U0)(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.warn(Event dropped due to being matched by \ignoreErrors` option.\nEvent: ${(0,l.jH)(e)}),!0):function(e,t){if(!t||!t.length)return!1;const n=f(e);return!!n&&(0,d.U0)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn(Event dropped due to being matched by `denyUrls` option.\nEvent: ${(0,l.jH)(e)}.\nUrl: ${f(e)}),!0):!function(e,t){if(!t||!t.length)return!0;const n=f(e);return!n||(0,d.U0)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn(Event dropped due to not being matched by `allowUrls` option.\nEvent: ${(0,l.jH)(e)}.\nUrl: ${f(e)}),!0)}(e,i)?null:e}}return e};n.id=this.name,e(n)}}function f(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error(Cannot extract url for event ${(0,l.jH)(e)}),null}}h.__initStatic();var _=n(5659);const m="7.38.0";function g(e,t){return(0,_.Gd)().captureExceptio error: n(e,{captureContext:t})}function y(e,t){const n="string"==typeof t?t:void 0,s="string"!=typeof t?{captureContext:t}:void 0;return(0,_.Gd)().captureMessage(e,n,s)}function b(e,t){return(0,_.Gd)().captureEvent(e,t)}function v(e){(0,_.Gd)().configureScope(e)}function S(e){(0,_.Gd)().addBreadcrumb(e)}function E(e,t){(0,_.Gd)().setContext(e,t)}function k(e){(0,_.Gd)().setExtras(e)}function w(e,t){(0,_.Gd)().setExtra(e,t)}function I(e){(0,_.Gd)().setTags(e)}function T(e,t){(0,_.Gd)().setTag(e,t)}function x(e){(0,_.Gd)().setUser(e)}function O(e){(0,_.Gd)().withScope(e)}function C(e,t){return(0,_.Gd)().startTransaction({...e},t)}class N extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var R=n(6893);const A=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function D(e,t=!1){const{host:n,path:s,pass:r,port:i,projectId:o,protocol:a,publicKey:c}=e;return${a}://${c}${t&&r?:${r}:""}@${n}${i?:${i}:""}/${s?${s}/:s}${o}}function P(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var j=n(7597),U=n(360);function $(e,t=1/0,n=1/0){try{return M("",e,t,n)}catch(e){return{ERROR:non-serializable (${e})}}}function B(e,t=3,n=102400){const s=$(e,t);return r=s,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?B(e,t-1,n):s;var r}function M(e,t,n=1/0,s=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=r;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,j.i2)(t))return t;const c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,j.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?[Function: ${(0,U.$P)(t)}]:"symbol"==typeof t?[${String(t)}]:"bigint"==typeof t?[BigInt: ${String(t)}]:[object ${function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t)}]}catch(e){returnnon-serializable (${e})}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===n)return c.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return M("",u.toJSON(),n-1,s,r)}catch(e){}const l=Array.isArray(t)?[]:{};let d=0;const p=(0,o.Sh)(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=s){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=M(e,t,n-1,s,r),d++}return a(t),l}function F(e,t=[]){return[e,t]}function G(e,t){const[n,s]=e;return[n,[...s,t]]}function L(e,t){e[1].forEach((e=>{const n=e[0].type;t(e,n)}))}function Y(e,t){return(t||new TextEncoder).encode(e)}function V(e,t){const[n,s]=e;let r=JSON.stringify(n);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[Y(r,t),e]:r.push("string"==typeof e?Y(e,t):e)}for(const e of s){const[t,n]=e;if(i(\n${JSON.stringify(t)}\n),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify($(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let s=0;for(const t of e)n.set(t,s),s+=t.length;return n}(r)}function q(e,t){const n="string"==typeof e.data?Y(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const H={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function z(e){return H[e]}function J(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const W=6e4;const K=30;function Z(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(s){if(!(void 0===e||t.length<e))return(0,R.$2)(new N("Not adding Promise because buffer limit was reached."));const r=s();return-1===t.indexOf(r)&&t.push(r),r.then((()=>n(r))).then(null,(()=>n(r).then(null,(()=>{})))),r},drain:function(e){return new R.cW(((n,s)=>{let r=t.length;if(!r)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,R.WD)(e).then((()=>{--r||(clearTimeout(i),n(!0))}),s)}))}))}}}(e.bufferSize||K)){let s={};return{send:function(r){const i=[];if(L(r,((t,n)=>{const r=z(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(s,r)){const s=X(t,n);e.recordDroppedEvent("ratelimit_backoff",r,s)}else i.push(t)})),0===i.length)return(0,R.WD)();const o=F(r[0],i),a=t=>{L(o,((n,s)=>{const r=X(n,s);e.recordDroppedEvent(t,z(s),r)}))};return n.add((()=>t({body:V(o,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn(Sentry responded with status code ${e.statusCode} to sent event.),s=function(e,{statusCode:t,headers:n},s=Date.now()){const r={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),o=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))r[e]=s+o;else r.all=s+o}else o?r.all=s+function(e,t=Date.now()){const n=parseInt(${e},10);if(!isNaN(n))return 1e3*n;const s=Date.parse(${e});return isNaN(s)?W:s-t}(o,s):429===t&&(r.all=s+6e4);return r}(s,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof N)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,R.WD)();throw e}))},flush:e=>n.drain(e)}}function X(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Q=n(350),ee=n(4307);const te="7";const ne=[];function se(e){const t=e.defaultIntegrations||[],n=e.integrations;let s;t.forEach((e=>{e.isDefaultInstance=!0})),s=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,l.lE)(n(t)):t;const r=function(e){const t={};return e.forEach((e=>{const{name:n}=e,s=t[n];s&&!s.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(s),i=r.findIndex((e=>"Debug"===e.name));if(-1!==i){const[e]=r.splice(i,1);r.push(e)}return r}function re(e,t){t[e.name]=e,-1===ne.indexOf(e.name)&&(e.setupOnce(Q.c,_.Gd),ne.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log(Integration installed: ${e.name}))}var ie=n(9015),oe=n(1170);const ae="Not capturing exception because it's already been captured.";class ce{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(ce.prototype.__init.call(this),ce.prototype.__init2.call(this),ce.prototype.__init3.call(this),ce.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=function(e){const t="string"==typeof e?function(e){const t=A.exec(e);if(!t)throw new N(Invalid Sentry Dsn: ${e});const[n,s,r="",i,o="",a]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return P({host:i,pass:r,path:c,projectId:u,port:o,protocol:n,publicKey:s})}(e):P(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:s}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new N(Invalid Sentry Dsn: ${t} missing)})),!n.match(/^\d+$/))throw new N(Invalid Sentry Dsn: Invalid projectId ${n});if(!function(e){return"http"===e||"https"===e}(s))throw new N(Invalid Sentry Dsn: Invalid protocol ${s});if(t&&isNaN(parseInt(t,1 error: 0)))throw new N(Invalid Sentry Dsn: Invalid port ${t})}(t),t}(e.dsn);const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,s="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||${function(e){return${function(e){const t=e.protocol?${e.protocol}::"",n=e.port?:${e.port}:"";return${t}//${e.host}${n}${e.path?/${e.path}:""}/api/}(e)}${e.projectId}/envelope/}(e)}?${function(e,t){return(0,o._j)({sentry_key:e.publicKey,sentry_version:te,...t&&{sentry_client:${t.name}/${t.version}}})}(e,s)}}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,l.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log(ae));let s=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{s=e}))),s}captureMessage(e,t,n,s){let r=n&&n.event_id;const i=(0,j.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,s))).then((e=>{r=e}))),r}captureEvent(e,t,n){if(t&&t.originalException&&(0,l.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log(ae));let s=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{s=e}))),s}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,ie.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,R.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&re(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn(Cannot retrieve integration ${e.id} from the current Client),null}}addIntegration(e){re(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,s){const r=J(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,s){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:D(s)},..."transaction"===e.type&&r&&{trace:(0,o.Jr)({...r})}}}(e,r,s,t);return delete e.sdkProcessingMetadata,F(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=G(n,q(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(e){if(this._dsn){const t=function(e,t,n,s){const r=J(n);return F({sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!s&&{dsn:D(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=${e}:${t};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log(Adding outcome: "${n}"),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,s=!1;const r=t.exception&&t.exception.values;if(r){s=!0;for(const e of r){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,ie.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new R.cW((t=>{let n=0;const s=setInterval((()=>{0==this._numProcessing?(clearInterval(s),t(!0)):(n+=1,e&&n>=e&&(clearInterval(s),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const s=this.getOptions(),r=Object.keys(this._integrations);return!t.integrations&&r.length>0&&(t.integrations=r),function(e,t,n,s){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e,o={...t,event_id:t.event_id||n.event_id||(0,l.DM)(),timestamp:t.timestamp||(0,oe.yW)()},a=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:s,dist:r,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==s&&(e.release=s),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,d.$G)(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,d.$G)(o.value,i));const a=e.request;a&&a.url&&(a.url=(0,d.$G)(a.url,i))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,a);let c=s;n.captureContext&&(c=Q.s.clone(c).update(n.captureContext));let u=(0,R.WD)(o);if(c){if(c.getAttachments){const e=[...n.attachments||[],...c.getAttachments()];e.length&&(n.attachments=e)}u=c.applyToEvent(o,n)}return u.then((e=>"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:$(e.data,t,n)}})))},...e.user&&{user:$(e.user,t,n)},...e.contexts&&{contexts:$(e.contexts,t,n)},...e.extra&&{extra:$(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=$(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map((e=>(e.data&&(e.data=$(e.data,t,n)),e)))),s}(e,r,i):e))}(s,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?u.kg.log(t.message):u.kg.warn(t)}}))}_processEvent(e,t,n){const s=this.getOptions(),{sampleRate:r}=s;if(!this._isEnabled())return(0,R.$2)(new N("SDK not enabled, will not capture event.","log"));const i=le(e),o=ue(e),a=e.type||"error",c=before send for type `${a}`;if(o&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",e),(0,R.$2)(new N(Discarding event because it's not included in the random sample (sampling rate = ${r}),"log"));const u="replay_event"===a?"replay":a;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new N("An event processor returned null, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const r=function(e,t,n){const{beforeSend:s,beforeSendTransaction:r}=e;return ue(t)&&s?s(t,n):le(t)&&r?r(t,n):t}(s,n,t);return function(e,t){const n=${t} must return `null` or a valid event.;if((0,j.J8)(e))return e.then((e=>{if(!(0,j.PO)(e)&&null!==e)throw new N(n);return e}),(e=>{throw new N(${t} rejected with ${e})}));if(!(0,j.PO)(e)&&null!==e)throw new N(n);return e}(r,c)})).then((s=>{if(null===s)throw this.recordDroppedEvent("before_send",u,e),new N(${c} returned `null`, will not send event.,"log");const r=n&&n.getSession();!i&&r&&this._updateSessionFromEvent(r,s);const o=s.transaction_info;if(i&&o&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...o,source:e}}return this.sendEvent(s,t),s})).then(null,(e=>{if(e instanceof N)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new N(Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
error: \nReason: ${e})}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,s]=t.split(":");return{reason:n,category:s,quantity:e[t]}}))}}function ue(e){return void 0===e.type}function le(e){return"transaction"===e.type}class de{__init(){this.flushTimeout=60}__init2(){this._pendingAggregates={}}__init3(){this._isEnabled=!0}constructor(e,t){de.prototype.__init.call(this),de.prototype.__init2.call(this),de.prototype.__init3.call(this),this._client=e,this._intervalId=setInterval((()=>this.flush()),1e3*this.flushTimeout),this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){const e=Object.keys(this._pendingAggregates).map((e=>this._pendingAggregates[parseInt(e)])),t={attrs:this._sessionAttrs,aggregates:e};return(0,o.Jr)(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const e=(0,_.Gd)().getScope(),t=e&&e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e&&e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};const s=this._pendingAggregates[n];switch(s.started||(s.started=new Date(n).toISOString()),e){case"errored":return s.errored=(s.errored||0)+1,s.errored;case"ok":return s.exited=(s.exited||0)+1,s.exited;default:return s.crashed=(s.crashed||0)+1,s.crashed}}}var pe=n(2037),he=n(3837);function fe(e,t){return e(t.stack||"",1)}function _e(e,t){const n={type:t.name||t.constructor.name,value:t.message},s=fe(e,t);return s.length&&(n.stacktrace={frames:s}),n}class me extends ce{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:m}],version:m},e.transportOptions={textEncoder:new he.TextEncoder,...e.transportOptions},super(e)}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,n)}close(e){return(0,ee.x)([this,"access",e=>e._sessionFlusher,"optionalAccess",e=>e.close,"call",e=>e()]),super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;e?this._sessionFlusher=new de(this,{release:e,environment:t}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}eventFromException(e,t){return(0,R.WD)(function(e,t,n){let s=t;const r=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"};if(!(0,j.VZ)(t)){if((0,j.PO)(t)){const e=Non-Error exception captured with keys: ${(0,o.zf)(t)},r=(0,_.Gd)(),i=r.getClient(),a=i&&i.getOptions().normalizeDepth;r.configureScope((e=>{e.setExtra("__serialized__",B(t,a))})),s=n&&n.syntheticException||new Error(e),s.message=e}else s=n&&n.syntheticException||new Error(t),s.message=t;r.synthetic=!0}const i={exception:{values:[_e(e,s)]}};return(0,l.Db)(i,void 0,void 0),(0,l.EG)(i,r),{...i,event_id:n&&n.event_id}}(this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return(0,R.WD)(function(e,t,n="info",s,r){const i={event_id:s&&s.event_id,level:n,message:t};if(r&&s&&s.syntheticException){const n=fe(e,s.syntheticException);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}return i}(this._options.stackParser,e,t,n,this._options.attachStacktrace))}_prepareEvent(e,t,n){return e.platform=e.platform||"node",e.contexts={...e.contexts,runtime:(0,ee.x)([e,"access",e=>e.contexts,"optionalAccess",e=>e.runtime])||{name:"node",version:global.process.version}},e.server_name=e.server_name||this.getOptions().serverName||global.process.env.SENTRY_NAME||pe.hostname(),super._prepareEvent(e,t,n)}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("Discarded request mode session because autoSessionTracking option was disabled")}}function ge(e,t){return null!=e?e:t()}var ye=n(3685),be=n(5687),ve=n(2781),Se=n(7310);const Ee=require("zlib"),ke=32768;function we(e){let t;try{t=new Se.URL(e.url)}catch(t){return console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used."),Z(e,(()=>Promise.resolve({})))}const s="https:"===t.protocol,r=function(e,t){const{no_proxy:n}=process.env;return n&&n.split(",").some((t=>e.host.endsWith(t)||e.hostname.endsWith(t)))?void 0:t}(t,e.proxy||(s?process.env.https_proxy:void 0)||process.env.http_proxy),i=s?be:ye,o=void 0!==e.keepAlive&&e.keepAlive,a=r?new(n(6018))(r):new i.Agent({keepAlive:o,maxSockets:30,timeout:2e3}),c=function(e,t,n){const{hostname:s,pathname:r,port:i,protocol:o,search:a}=new Se.URL(e.url);return function(c){return new Promise(((u,l)=>{let d=function(e){return new ve.Readable({read(){this.push(e),this.push(null)}})}(c.body);const p={...e.headers};c.body.length>ke&&(p["content-encoding"]="gzip",d=d.pipe((0,Ee.createGzip)()));const h=t.request({method:"POST",agent:n,headers:p,hostname:s,path:${r}${a},port:i,protocol:o,ca:e.caCerts},(e=>{e.on("data",(()=>{})),e.on("end",(()=>{})),e.setEncoding("utf8");const t=ge(e.headers["retry-after"],(()=>null)),n=ge(e.headers["x-sentry-rate-limits"],(()=>null));u({statusCode:e.statusCode,headers:{"retry-after":t,"x-sentry-rate-limits":Array.isArray(n)?n[0]:n}})}));h.on("error",l),d.pipe(h)}))}}(e,ge(e.httpModule,(()=>i)),a);return Z(e,c)}var Ie=n(1235);const Te=require("domain"),xe=["fatal","error","warning","log","info","debug"];class Oe{constructor(){Oe.prototype.__init.call(this)}static __initStatic(){this.id="Console"}__init(){this.name=Oe.id}setupOnce(){for(const e of["debug","info","warn","error","log"])(0,o.hl)(console,e,Ce(e))}}function Ce(e){return function(t){const n=function(e){return"warn"===e?"warning":xe.includes(e)?e:"log"}(e);return function(){(0,_.Gd)().getIntegration(Oe)&&(0,_.Gd)().addBreadcrumb({category:"console",level:n,message:he.format.apply(void 0,arguments)},{input:[...arguments],level:e}),t.apply(this,arguments)}}}Oe.__initStatic();var Ne=n(9181),Re=n(7612);const Ae=(0,l.J4)(process.versions.node);function De(e){return${e.protocol||""}//${e.hostname||e.host||""}${e.port&&80!==e.port&&443!==e.port?:${e.port}:""}${e.path?e.path:"/"}}function Pe(e,t,n){if(!e)return e;let[s,r]=e.split(" ");return t.host&&!t.protocol&&(t.protocol=(0,ee.x)([n,"optionalAccess",e=>e.agent,"optionalAccess",e=>e.protocol]),r=De(t)),(0,ee.x)([r,"optionalAccess",e=>e.startsWith,"call",e=>e("///")])&&(r=r.slice(2)),${s} ${r}}function je(e){const t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:${e.pathname||""}${e.search||""},href:e.href};return""!==e.port&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=${e.username}:${e.password}),t}const Ue=(0,l.J4)(process.versions.node);class $e{static __initStatic(){this.id="Http"}__init(){this.name=$e.id}constructor(e={}){$e.prototype.__init.call(this),this._breadcrumbs=void 0===e.breadcrumbs||e.breadcrumbs,this._tracing=e.tracing?!0===e.tracing?{}:e.tracing:void 0}setupOnce(e,t){if(!this._breadcrumbs&&!this._tracing)return;const s=(0,ee.x)([t,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalA error: ccess",e=>e.getOptions,"call",e=>e()]);if(s&&"sentry"!==s.instrumenter)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log("HTTP Integration is skipped because of instrumenter configuration."));const r=this._tracing?{...s,...this._tracing}:void 0,i=n(3685),a=Be(this._breadcrumbs,r,i);if((0,o.hl)(i,"get",a),(0,o.hl)(i,"request",a),Ue.major&&Ue.major>8){const e=n(5687),t=Be(this._breadcrumbs,r,e);(0,o.hl)(e,"get",t),(0,o.hl)(e,"request",t)}}}function Be(e,t,n){const s=new Re.LRUMap(100),r={};return function(i){return function(...o){const a=function(e,t){let n,s;return"function"==typeof t[t.length-1]&&(n=t.pop()),s="string"==typeof t[0]?je(new Se.URL(t[0])):t[0]instanceof Se.URL?je(t[0]):t[0],2===t.length&&(s={...s,...t[1]}),void 0===s.protocol&&(Ae.major&&Ae.major>8?s.protocol=(0,ee.x)([(0,ee.x)([e,"optionalAccess",e=>e.globalAgent]),"optionalAccess",e=>e.protocol])||(0,ee.x)([s.agent,"optionalAccess",e=>e.protocol])||(0,ee.x)([s._defaultAgent,"optionalAccess",e=>e.protocol]):s.protocol=(0,ee.x)([s.agent,"optionalAccess",e=>e.protocol])||(0,ee.x)([s._defaultAgent,"optionalAccess",e=>e.protocol])||(0,ee.x)([(0,ee.x)([e,"optionalAccess",e=>e.globalAgent]),"optionalAccess",e=>e.protocol])),n?[s,n]:[s]}(n,o),c=a[0],l=De(c);if(function(e){const t=(0,ee.x)([_.Gd,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getDsn,"call",e=>e()]);return!!t&&e.includes(t.host)}(l))return i.apply(n,a);let p,h;const f=(0,_.Gd)().getScope();if(f&&t&&(e=>{if(void 0===(0,ee.x)([t,"optionalAccess",e=>e.shouldCreateSpanForRequest]))return!0;const n=s.get(e);if(void 0!==n)return n;const r=t.shouldCreateSpanForRequest(e);return s.set(e,r),r})(l)&&(h=f.getSpan(),h))if(p=h.startChild({description:${c.method||"GET"} ${l},op:"http.client"}),(e=>void 0===(0,ee.x)([t,"optionalAccess",e=>e.tracePropagationTargets])||(r[e]||(r[e]=(0,d.U0)(e,t.tracePropagationTargets)),r[e]))(l)){const e=p.toTraceparent();if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log([Tracing] Adding sentry-trace header ${e} to outgoing request to "${l}": ),c.headers={...c.headers,"sentry-trace":e},h.transaction){const e=h.transaction.getDynamicSamplingContext(),t=(0,Ne.IQ)(e);let n;n=c.headers&&c.headers.baggage?t?Array.isArray(c.headers.baggage)?[...c.headers.baggage,t]:[c.headers.baggage,t]:c.headers.baggage:t,c.headers={...c.headers,...n&&{baggage:n}}}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log([Tracing] Not adding sentry-trace header to outgoing request (${l}) due to mismatching tracePropagationTargets option.);return i.apply(n,a).once("response",(function(t){e&&Me("response",l,this,t),p&&(t.statusCode&&p.setHttpStatus(t.statusCode),p.description=Pe(p.description,c,this),p.finish())})).once("error",(function(){e&&Me("error",l,this),p&&(p.setHttpStatus(500),p.description=Pe(p.description,c,this),p.finish())}))}}}function Me(e,t,n,s){(0,_.Gd)().getIntegration($e)&&(0,_.Gd)().addBreadcrumb({category:"http",data:{method:n.method,status_code:s&&s.statusCode,url:t},type:"http"},{event:e,request:n,response:s})}$e.__initStatic();const Fe=2e3;function Ge(e){console.error(e&&e.stack?e.stack:e);const t=(0,_.Gd)().getClient();void 0===t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1));const n=t.getOptions(),s=n&&n.shutdownTimeout&&n.shutdownTimeout>0&&n.shutdownTimeout||Fe;t.close(s).then((e=>{e||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.error(e)}))}class Le{static __initStatic(){this.id="OnUncaughtException"}__init(){this.name=Le.id}__init2(){this.handler=this._makeErrorHandler()}constructor(e={}){Le.prototype.__init.call(this),Le.prototype.__init2.call(this),this._options={exitEvenIfOtherHandlersAreRegistered:!0,...e}}setupOnce(){global.process.on("uncaughtException",this.handler)}_makeErrorHandler(){let e,t=!1,n=!1,s=!1;return r=>{let i=Ge;const o=(0,_.Gd)().getClient();this._options.onFatalError?i=this._options.onFatalError:o&&o.getOptions().onFatalError&&(i=o.getOptions().onFatalError);const a=0===global.process.listeners("uncaughtException").reduce(((e,t)=>"domainUncaughtExceptionClear"===t.name||t===this.handler?e:e+1),0),c=this._options.exitEvenIfOtherHandlersAreRegistered||a;if(t)c&&(s?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),Ge(r)):n||(n=!0,setTimeout((()=>{s||(s=!0,i(e,r))}),2e3)));else{const n=(0,_.Gd)();e=r,t=!0,n.getIntegration(Le)?n.withScope((e=>{e.setLevel("fatal"),n.captureException(r,{originalException:r,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),!s&&c&&(s=!0,i(r))})):!s&&c&&(s=!0,i(r))}}}}Le.__initStatic();class Ye{static __initStatic(){this.id="OnUnhandledRejection"}__init(){this.name=Ye.id}constructor(e={mode:"warn"}){this._options=e,Ye.prototype.__init.call(this)}setupOnce(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))}sendUnhandledPromise(e,t){const n=(0,_.Gd)();n.getIntegration(Ye)&&n.withScope((s=>{s.setExtra("unhandledPromiseRejection",!0),n.captureException(e,{originalException:t,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})})),this._handleRejection(e)}_handleRejection(e){const t="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";"warn"===this._options.mode?(0,u.Cf)((()=>{console.warn(t),console.error(e&&e.stack?e.stack:e)})):"strict"===this._options.mode&&((0,u.Cf)((()=>{console.warn(t)})),Ge(e))}}Ye.__initStatic();const Ve=require("fs"),qe=new Re.LRUMap(100);class He{static __initStatic(){this.id="ContextLines"}__init(){this.name=He.id}constructor(e={}){this._options=e,He.prototype.__init.call(this)}get _contextLines(){return void 0!==this._options.frameContextLines?this._options.frameContextLines:7}setupOnce(e){e((e=>this.addSourceContext(e)))}async addSourceContext(e){if(this._contextLines>0&&(0,ee.x)([e,"access",e=>e.exception,"optionalAccess",e=>e.values]))for(const t of e.exception.values)(0,ee.x)([t,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames])&&await this.addSourceContextToFrames(t.stacktrace.frames);return e}async addSourceContextToFrames(e){const t=this._contextLines;for(const n of e)if(n.filename&&void 0===n.context_line){const e=await ze(n.filename);if(e)try{const s=e.split("\n");(0,l.go)(s,n,t)}catch(e){}}}}async function ze(e){const t=qe.get(e);if(void 0!==t)return t;let n=null;try{n=await(s=e,new Promise(((e,t)=>{(0,Ve.readFile)(s,"utf8",((n,s)=>{n?t(n):e(s)}))})))}catch(e){}var s;return qe.set(e,n),n}He.__initStatic();class Je{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Je.id}constructor(e={}){Je.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){(0,Q.c)((async(e,t)=>{const n=(0,_.Gd)(),s=n.getIntegration(Je),r=n.getClient();return r&&s&&s._handler&&"function"==typeof s._handler&&await s._handler(r.getOptions().stackParser,e,t),e}))}_handler(e,t,n){return t.exception&&t.exception.values&&(0,j.V9)(n.originalException,Error)?new R.cW((s=>{this._walkErrorTree(e,n.originalException,this._key).then((e=>{t&&t.exception&&t.exception.values&&(t.exception.values=[...e,...t.exception.values]),s(t)})).then(null,(()=>{s(t)}))})):(0,R.WD)(t)}async _walkErrorTree(e,t,n,s=[]){if(!(0,j.V9)(t[n],Error)||s.length+1>=this._limit)return Promise.resolve(s);const r=_e(e,t[n]),i=(0,_.Gd)().getIntegration(He);return i&&(0,ee.x)([r,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames])&&await i.addSourceContextToFrames(r.stacktrace.frames),new Promise(((i,o)=>{this._walkErrorTree(e,t[n],n,[r,...s]).then(i).then(null,(()=>{o()}))}))}}Je.__initStatic();const We=require("path");let Ke;class Ze{constructor(){Ze.prototype.__init.call(this)}static __initStatic(){this.id="Modules"}__init(){this.name=Ze.id} error: setupOnce(e,t){e((e=>t().getIntegration(Ze)?{...e,modules:{...e.modules,...this._getModules()}}:e))}_getModules(){return Ke||(Ke=function(){const e=n.c[n.s]&&n.c[n.s].paths||[],t=function(){try{return n.c?Object.keys(n.c):[]}catch(e){return[]}}(),s={},r={};return t.forEach((t=>{let n=t;const i=()=>{const t=n;if(n=(0,We.dirname)(t),!n||t===n||r[t])return;if(e.indexOf(n)<0)return i();const o=(0,We.join)(t,"package.json");if(r[t]=!0,!(0,Ve.existsSync)(o))return i();try{const e=JSON.parse((0,Ve.readFileSync)(o,"utf8"));s[e.name]=e.version}catch(e){}};i()})),s}()),Ke}}Ze.__initStatic();const Xe=require("child_process"),Qe=(0,he.promisify)(Ve.readFile),et=(0,he.promisify)(Ve.readdir);class tt{static __initStatic(){this.id="Context"}__init(){this.name=tt.id}constructor(e={app:!0,os:!0,device:!0,culture:!0}){this._options=e,tt.prototype.__init.call(this)}setupOnce(e){e((e=>this.addContext(e)))}async addContext(e){void 0===this._cachedContext&&(this._cachedContext=this._getContexts());const t=this._updateContext(await this._cachedContext);return e.contexts={...e.contexts,app:{...t.app,...(0,ee.x)([e,"access",e=>e.contexts,"optionalAccess",e=>e.app])},os:{...t.os,...(0,ee.x)([e,"access",e=>e.contexts,"optionalAccess",e=>e.os])},device:{...t.device,...(0,ee.x)([e,"access",e=>e.contexts,"optionalAccess",e=>e.device])},culture:{...t.culture,...(0,ee.x)([e,"access",e=>e.contexts,"optionalAccess",e=>e.culture])}},e}_updateContext(e){return(0,ee.x)([e,"optionalAccess",e=>e.app,"optionalAccess",e=>e.app_memory])&&(e.app.app_memory=process.memoryUsage().rss),(0,ee.x)([e,"optionalAccess",e=>e.device,"optionalAccess",e=>e.free_memory])&&(e.device.free_memory=pe.freemem()),e}async _getContexts(){const e={};if(this._options.os&&(e.os=await async function(){const e=pe.platform();switch(e){case"darwin":return async function(){const e={kernel_version:pe.release(),name:"Mac OS X",version:"10."+(Number(pe.release().split(".")[0])-4)};try{const t=await new Promise(((e,t)=>{(0,Xe.execFile)("/usr/bin/sw_vers",((n,s)=>{n?t(n):e(s)}))}));e.name=it(/^ProductName:\s+(.*)$/m,t),e.version=it(/^ProductVersion:\s+(.*)$/m,t),e.build=it(/^BuildVersion:\s+(.*)$/m,t)}catch(e){}return e}();case"linux":return async function(){const e={kernel_version:pe.release(),name:"Linux"};try{const t=await et("/etc"),n=st.find((e=>t.includes(e.name)));if(!n)return e;const s=(0,We.join)("/etc",n.name),r=(await Qe(s,{encoding:"utf-8"})).toLowerCase(),{distros:i}=n;e.name=i.find((e=>r.indexOf(ot(e))>=0))||i[0];const o=ot(e.name);e.version=rt[o](r)}catch(e){}return e}();default:return{name:nt[e]||e,version:pe.release()}}}()),this._options.app&&(e.app=function(){const e=process.memoryUsage().rss;return{app_start_time:new Date(Date.now()-1e3*process.uptime()).toISOString(),app_memory:e}}()),this._options.device&&(e.device=function(e){const t={},n=pe.uptime&&pe.uptime();if("number"==typeof n&&(t.boot_time=new Date(Date.now()-1e3*n).toISOString()),t.arch=pe.arch(),(!0===e||e.memory)&&(t.memory_size=pe.totalmem(),t.free_memory=pe.freemem()),!0===e||e.cpu){const e=pe.cpus();if(e&&e.length){const n=e[0];t.processor_count=e.length,t.cpu_description=n.model,t.processor_frequency=n.speed}}return t}(this._options.device)),this._options.culture){const t=function(){try{if("string"!=typeof process.versions.icu)return;const e=new Date(9e8);if("enero"===new Intl.DateTimeFormat("es",{month:"long"}).format(e)){const e=Intl.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone}}}catch(e){}}();t&&(e.culture=t)}return e}}tt.__initStatic();const nt={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},st=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],rt={alpine:e=>e,arch:e=>it(/distrib_release=(.*)/,e),centos:e=>it(/release ([^ ]+)/,e),debian:e=>e,fedora:e=>it(/release (..)/,e),mint:e=>it(/distrib_release=(.*)/,e),red:e=>it(/release ([^ ]+)/,e),suse:e=>it(/VERSION = (.*)\n/,e),ubuntu:e=>it(/distrib_release=(.*)/,e)};function it(e,t){const n=e.exec(t);return n?n[1]:void 0}function ot(e){return e.split(" ")[0].toLowerCase()}var at=n(442),ct=n(6956),ut=n(6489);const lt={ip:!1,request:!0,transaction:!0,user:!0},dt=["cookies","data","headers","method","query_string","url"],pt=["id","username","email"];function ht(e,t={}){const n=e.method&&e.method.toUpperCase();let s="",r="url";t.customRoute||e.route?(s=t.customRoute||${e.baseUrl||""}${e.route&&e.route.path},r="route"):(e.originalUrl||e.url)&&(s=(0,ct.rt)(e.originalUrl||e.url||""));let i="";return t.method&&n&&(i+=n),t.method&&t.path&&(i+=" "),t.path&&s&&(i+=s),[i,r]}function ft(e,t){const{include:n=dt}=t||{},s={},r=e.headers||{},i=e.method,o=e.hostname||e.host||r.host||"<no host>",a="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",c=e.originalUrl||e.url||"",u=c.startsWith(a)?c:${a}://${o}${c};return n.forEach((t=>{switch(t){case"headers":s.headers=r,n.includes("cookies")||delete s.headers.cookie;break;case"method":s.method=i;break;case"url":s.url=u;break;case"cookies":s.cookies=e.cookies||r.cookie&&ut.Q(r.cookie)||{};break;case"query_string":s.query_string=function(e){let t=e.originalUrl||e.url||"";if(t)return t.startsWith("/")&&(t=http://dogs.are.great${t}`),e.query||void 0!==typeof URL&&new URL(t).search.replace("?","")||Se.parse(t).query||void 0}(e);break;case"data":if("GET"===i||"HEAD"===i)break;void 0!==e.body&&(s.data=(0,j.HD)(e.body)?e.body:JSON.stringify($(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(s[t]=e[t])}})),s}function _t(e,t,n){const s={...lt,...(0,ee.x)([n,"optionalAccess",e=>e.include])};if(s.request){const n=Array.isArray(s.request)?ft(t,{include:s.request}):ft(t);e.request={...e.request,...n}}if(s.user){const n=t.user&&(0,j.PO)(t.user)?function(e,t){const n={};return(Array.isArray(t)?t:pt).forEach((t=>{e&&t in e&&(n[t]=e[t])})),n}(t.user,s.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(s.ip){const n=t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return s.transaction&&!e.transaction&&(e.transaction=function(e,t){switch(t){case"path":return ht(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"";default:return ht(e,{path:!0,method:!0})[0]}}(t,s.transaction)),e}const mt={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"};class gt{static __initStatic(){this.id="RequestData"}__init(){this.name=gt.id}constructor(e={}){gt.prototype.__init.call(this),this._addRequestData=_t,this._options={...mt,...e,include:{method:!0,...mt.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...mt.include.user,...(e.include||{}).user}}}}setupOnce(e,t){const{transactionNamingScheme:n}=this._options;e((e=>{const s=t(),r=s.getIntegration(gt),{sdkProcessingMetadata:i={}}=e,o=i.request;if(!r||!o)return e;const a=i.requestDataOptionsFromExpressHandler||i.requestDataOptionsFromGCPWrapper||function(e){const{transactionNamingScheme:t,include:{ip:n,user:s,...r}}=e,i=[];for(const[e,t]of Object.entries(r))t&&i.push(e);let o;if(void 0===s)o=!0;else if("boolean"==typeof s)o=s;else{const e=[];for(const[t,n]of Object.entries(s))n&&e.push(t);o=e}return{include:{ip:n,user:o,request:0!==i.length?i:void 0,transaction:t}}}(this._options),c=this._addRequestData(e,o,a);if("transaction"===e.type||"handler"===n)return c;const u=o._sentryTransaction;if(u){const e="sentry.javascript.nextjs"===function(e){try{return e.getClient().getOptions()._metadata.sdk.name}catch(e){return}}(s)?u.name.startsWith("/api"):"path"!==n,[t]=(0,at.oA)(o,{path:!0,method:e,customRoute:u.name});c.transaction=t}return c}))}}gt.__initStatic()
error: ;class yt{constructor(){const{Session:e}=n(1405);this._session=new e}configureAndConnect(e,t){this._session.connect(),this._session.on("Debugger.paused",e),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:t?"all":"uncaught"})}async getLocalVariables(e){const t=await this._getProperties(e),n={};for(const e of t)(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.objectId])&&"Array"===(0,ee.x)([e,"optionalAccess",e=>e.value,"access",e=>e.className])?n[e.name]=await this._unrollArray(e.value.objectId):(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.objectId])&&"Object"===(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.className])?n[e.name]=await this._unrollObject(e.value.objectId):((0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])||(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.description]))&&(n[e.name]=e.value.value||<${e.value.description}>);return n}_getProperties(e){return new Promise(((t,n)=>{this._session.post("Runtime.getProperties",{objectId:e,ownProperties:!0},((e,s)=>{e?n(e):t(s.result)}))}))}async _unrollArray(e){return(await this._getProperties(e)).filter((e=>"length"!==e.name&&!isNaN(parseInt(e.name,10)))).sort(((e,t)=>parseInt(e.name,10)-parseInt(t.name,10))).map((e=>(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])))}async _unrollObject(e){return(await this._getProperties(e)).map((e=>[e.name,(0,ee.x)([e,"optionalAccess",e=>e.value,"optionalAccess",e=>e.value])])).reduce(((e,[t,n])=>(e[t]=n,e)),{})}}function bt(e){return void 0!==e&&["","?",""].includes(e)}function vt(e){if(void 0!==e)return e.slice(-10).reduce(((e,t)=>${e},${t.function},${t.lineno},${t.colno}),"")}class St{static __initStatic(){this.id="LocalVariables"}__init(){this.name=St.id}__init2(){this._cachedFrames=new Re.LRUMap(20)}constructor(e={},t=function(){try{return new yt}catch(e){return}}()){this._options=e,this._session=t,St.prototype.__init.call(this),St.prototype.__init2.call(this)}setupOnce(e,t){this._setup(e,(0,ee.x)([t,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]))}_setup(e,t){this._session&&(0,ee.x)([t,"optionalAccess",e=>e.includeLocalVariables])&&(this._session.configureAndConnect((e=>this.handlePaused(t.stackParser,e)),!!this.options.captureAllExceptions),e((async e=>this.addLocalVariables(e))))}async handlePaused(e,{params:{reason:t,data:n,callFrames:s}}){if("exception"!==t&&"promiseRejection"!==t)return;const r=function(e,t){if(void 0!==t)return vt(e(t,1))}(e,(0,ee.x)([n,"optionalAccess",e=>e.description]));if(null==r)return;const i=s.map((async({scopeChain:e,functionName:t,this:n})=>{const s=e.find((e=>"local"===e.type)),r="global"!==n.className&&n.className?${n.className}.${t}:t;return void 0===(0,ee.x)([s,"optionalAccess",e=>e.object,"access",e=>e.objectId])?{function:r}:{function:r,vars:await(0,ee.x)([this,"access",e=>e.session,"optionalAccess",e=>e.getLocalVariables,"call",e=>e(s.object.objectId)])}}));this.cachedFrames.set(r,Promise.all(i))}async addLocalVariables(e){for(const t of(0,ee.x)([e,"optionalAccess",e=>e.exception,"optionalAccess",e=>e.values])||[])await this.addLocalVariablesToException(t);return e}async addLocalVariablesToException(e){const t=vt((0,ee.x)([e,"optionalAccess",e=>e.stacktrace,"optionalAccess",e=>e.frames]));if(void 0===t)return;const n=await this.cachedFrames.delete(t);if(void 0===n)return;const s=(0,ee.x)([e,"access",e=>e.stacktrace,"optionalAccess",e=>e.frames,"optionalAccess",e=>e.length])||0;for(let t=0;t<s;t++){const o=s-t-1;if(!(0,ee.x)([e,"optionalAccess",e=>e.stacktrace,"optionalAccess",e=>e.frames,"optionalAccess",e=>e[o]])||!n[t])break;void 0!==n[t].vars&&!1!==e.stacktrace.frames[o].in_app&&((r=e.stacktrace.frames[o].function)===(i=n[t].function)||bt(r)&&bt(i))&&(e.stacktrace.frames[o].vars=n[t].vars)}var r,i}}St.__initStatic();const Et=/^(/?|)([\s\S]?)((?:.{1,2}|[^/]+?|)(.[^./]|))(?:[/]*)$/;function kt(e){const t=Et.exec(e);return t?t.slice(1):[]}function wt(e){const t=kt(e),n=t[0];let s=t[1];return n||s?(s&&(s=s.slice(0,s.length-1)),n+s):"."}function It(e){return e.replace(/^[A-Z]:/,"").replace(/\/g,"/")}const Tt=[new h,new c,new Oe,new $e,new Le,new Ye,new He,new St,new tt,new Ze,new gt,new Je];function xt(e={}){const t=(0,.cu)(),n=(0,ee.x)([t,"access",e=>e.SENTRY,"optionalAccess",e=>e.integrations])||[];if(e.defaultIntegrations=!1===e.defaultIntegrations?[]:[...Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:Tt,...n],void 0===e.dsn&&process.env.SENTRY_DSN&&(e.dsn=process.env.SENTRY_DSN),void 0===e.tracesSampleRate&&process.env.SENTRY_TRACES_SAMPLE_RATE){const t=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(t)&&(e.tracesSampleRate=t)}if(void 0===e.release){const t=At();void 0!==t?e.release=t:e.autoSessionTracking=!1}void 0===e.environment&&process.env.SENTRY_ENVIRONMENT&&(e.environment=process.env.SENTRY_ENVIRONMENT),void 0===e.autoSessionTracking&&void 0!==e.dsn&&(e.autoSessionTracking=!0),void 0===e.instrumenter&&(e.instrumenter="sentry"),Te.active&&(0,.j0)(t,(0,.Gd)());const s={...e,stackParser:(0,U.Sq)(e.stackParser||Dt),integrations:se(e),transport:e.transport||we};!function(e,t){!0===t.debug&&("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG?u.kg.enable():console.warn("[Sentry] Cannot initialize SDK with debug option using a non-debug bundle."));const n=(0,.Gd)(),s=n.getScope();s&&s.update(t.initialScope);const r=new e(t);n.bindClient(r)}(me,s),e.autoSessionTracking&&function(){const e=(0,.Gd)();e.startSession(),process.on("beforeExit",(()=>{const t=(0,ee.x)([e,"access",e=>e.getScope,"call",e=>e(),"optionalAccess",e=>e.getSession,"call",e=>e()]);t&&!["exited","crashed"].includes(t.status)&&e.endSession()}))}()}function Ot(){return(0,.Gd)().lastEventId()}async function Ct(e){const t=(0,.Gd)().getClient();return t?t.flush(e):(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Nt(e){const t=(0,.Gd)().getClient();return t?t.close(e):(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Rt(e){if(void 0===e)return!1;const t=e&&e.getOptions();return!(!t||void 0===t.autoSessionTracking)&&t.autoSessionTracking}function At(e){return process.env.SENTRY_RELEASE?process.env.SENTRY_RELEASE:Ie.n2.SENTRY_RELEASE&&Ie.n2.SENTRY_RELEASE.id?Ie.n2.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}const Dt=(0,U.pE)((0,U.Ep)((function(e){if(!e)return;const t=It(e),s=It(${n.c[n.s]&&n.c[n.s].filename&&wt(n.c[n.s].filename)||global.process.cwd()}/),r=function(e,t){let n=kt(e)[2];return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n}(t,".js"),i=wt(t);let o=i.lastIndexOf("/node_modules/");if(o>-1)return${i.slice(o+14).replace(/\//g,".")}:${r};if(o=${i}/.lastIndexOf(s,0),0===o){let e=i.slice(s.length).replace(///g,".");return e&&(e+=":"),e+=r,e}return r})));function Pt(e){const t=We.resolve(e);if(!Ve.existsSync(t))throw new Error(Cannot read contents of ${t}. Directory does not exist.);if(!Ve.statSync(t).isDirectory())throw new Error(Cannot read contents of ${t}, because it is not a directory.);const n=e=>Ve.readdirSync(e).reduce(((t,s)=>{const r=We.join(e,s);return Ve.statSync(r).isDirectory()?[...t,...n(r)]:[...t,r]}),[]);return n(t).map((e=>We.relative(t,e)))}var jt=n(7638);function Ut(e,t){return ft(e,{include:t})}function $t(e,t,n={}){return t(e,t,{include:n})}function Bt(){return function(e,t,n){const s=(0,.Gd)(),r=(0,ee.x)([s,"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);if(!r||"sentry"!==r.instrumenter||"OPTIONS"===(0,ee.x)([e,"access",e=>e.method,"optionalAccess",e=>e.toUpperCase,"call",e=>e()])||"HEAD"===(
error: 0,ee.x)([e,"access",e=>e.method,"optionalAccess",e=>e.toUpperCase,"call",e=>e()]))return n();if(!("tracesSampleRate"in r)&&!("tracesSampler"in r))return("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.warn("Sentry tracingHandler is being used, but tracing is disabled. Please enable tracing by setting either tracesSampleRate or tracesSampler in your Sentry.init() options."),n();const i=e.headers&&(0,j.HD)(e.headers["sentry-trace"])&&(0,jt.q)(e.headers["sentry-trace"]),o=(0,ee.x)([e,"access",e=>e.headers,"optionalAccess",e=>e.baggage]),a=(0,Ne.EN)(o),[c,l]=(0,at.oA)(e,{path:!0,method:!0}),d=C({name:c,op:"http.server",...i,metadata:{dynamicSamplingContext:i&&!a?{}:a,request:e,source:l}},{request:ft(e)});s.configureScope((e=>{e.setSpan(d)})),t.__sentry_transaction=d,t.once("finish",(()=>{setImmediate((()=>{(0,at.dB)(d,e),d.setHttpStatus(t.statusCode),d.finish()}))})),n()}}function Mt(e){const t=function(e={}){let t;if("include"in e)t={include:e.include};else{const{ip:n,request:s,transaction:r,user:i}=e;(n||s||r||i)&&(t={include:(0,o.Jr)({ip:n,request:s,transaction:r,user:i})})}return t}(e),n=(0,
.Gd)(),s=n.getClient();if(s&&Rt(s)){s.initSessionFlusher();const e=n.getScope();e&&e.getSession()&&e.setSession()}return function(n,s,r){if(e&&e.flushTimeout&&e.flushTimeout>0){const t=s.end;s.end=function(n,s,r){Ct(e.flushTimeout).then((()=>{t.call(this,n,s,r)})).then(null,(e=>{("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&u.kg.error(e),t.call(this,n,s,r)}))}}const i=Te.create();i.add(n),i.add(s),i.run((()=>{const e=(0,
.Gd)();e.configureScope((s=>{if(s.setSDKProcessingMetadata({request:n,requestDataOptionsFromExpressHandler:t}),Rt(e.getClient())){const t=e.getScope();t&&t.setRequestSession({status:"ok"})}})),s.once("finish",(()=>{const t=e.getClient();Rt(t)&&setImmediate((()=>{t&&t.captureRequestSession&&t.captureRequestSession()}))})),r()}))}}function Ft(e){const t=function(e){const t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}(e);return t>=500}function Gt(e){return function(t,n,s,r){(e&&e.shouldHandleError||Ft)(t)?O((e=>{e.setSDKProcessingMetadata({request:n});const i=s.__sentry_transaction;i&&void 0===e.getSpan()&&e.setSpan(i);const o=(0,.Gd)().getClient();if(o&&Rt(o)&&void 0!==o.sessionFlusher){const t=e.getRequestSession();t&&void 0!==t.status&&(t.status="crashed")}const a=g(t);s.sentry=a,r(t)})):r(t)}}const Lt={...s,...i},Yt=(0,.cu)();Yt.SENTRY&&(Yt.SENTRY.extensions=Yt.SENTRY.extensions||{},Yt.SENTRY.extensions.domain=Yt.SENTRY.extensions.domain||Te)},790:(e,t,n)=>{"use strict";n.d(t,{ro:()=>m,lb:()=>});var s=n(5659),r=n(2343),i=n(7597),o=n(2176),a=n(4863),c=n(3233);function u(){const e=(0,c.x1)();if(e){const t="internal_error";("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.log([Tracing] Transaction: ${t} -> Global error occured),e.setStatus(t)}}var l=n(6458),d=n(3391);function p(){const e=this.getScope();if(e){const t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function h(e,t,n){if(!(0,c.zu)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let s;return"function"==typeof t.tracesSampler?(s=t.tracesSampler(n),e.setMetadata({sampleRate:Number(s)})):void 0!==n.parentSampled?s=n.parentSampled:(s=t.tracesSampleRate,e.setMetadata({sampleRate:Number(s)})),o=s,((0,i.i2)(o)||"number"!=typeof o&&"boolean"!=typeof o?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.warn([Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.),0):!(o<0||o>1)||(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.warn([Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${o}.),0))?s?(e.sampled=Math.random()<s,e.sampled?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.log([Tracing] starting ${e.op} transaction - ${e.name}),e):(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.log([Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})),e)):(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e);var o}function f(e,t){const n=this.getClient(),s=n&&n.getOptions()||{},i=s.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&r.kg.error(A transaction was started with instrumenter=\${o}`, but the SDK is configured with the `${i}` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.),e.sampled=!1);let a=new d.Y(e,this);return a=h(a,s,{parentSampled:e.parentSampled,transactionContext:e,...t}),a.sampled&&a.initSpanRecorder(s._experiments&&s._experiments.maxSpans),a}function _(e,t,n,s,r,i,o){const a=e.getClient(),c=a&&a.getOptions()||{};let u=new l.io(t,e,n,s,o,r);return u=h(u,c,{parentSampled:t.parentSampled,transactionContext:t,...i}),u.sampled&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),u}function m(){!function(){const e=(0,s.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=f),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=p))}(),(0,o.KV)()&&function(){const t=(0,s.cu)();if(!t.__SENTRY__)return;const n={mongodb:()=>new((0,o.l$)(e,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,o.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,o.l$)(e,"./integrations/node/mysql").Mysql),pg:()=>new((0,o.l$)(e,"./integrations/node/postgres").Postgres)},r=Object.keys(n).filter((e=>!!(0,o.$y)(e))).map((e=>{try{return n[e]()}catch(e){return}})).filter((e=>e));r.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...r])}(),(0,a.o)("error",u),(0,a.o)("unhandledrejection",u)}e=n.hmd(e)},6458:(e,t,n)=>{"use strict";n.d(t,{hd:()=>u,io:()=>d,mg:()=>c,nT:()=>a});var s=n(1170),r=n(2343),i=n(5334),o=n(3391);const a=1e3,c=3e4,u=5e3;class l extends i.gB{constructor(e,t,n,s){super(s),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,s._I)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class d extends o.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(e,t,n=a,s=c,i=u,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=o,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),o&&(p(t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(Setting idle transaction on scope. Span ID: ${this.spanId}),t.configureScope((e=>e.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(e=(0,s._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e;return n| error: |("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&p(this._idleHub),super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new l(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(e)}),this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log([Tracing] pushActivity: ${e}),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log([Tracing] popActivity ${e}),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,s._I)()+this._idleTimeout/1e3;this._startIdleTimeout(e)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(pinging Heartbeat -> current counter: ${this._heartbeatCounter}),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function p(e){const t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}},9262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>re,BrowserTracing:()=>oe,IdleTransaction:()=>O.io,Integrations:()=>s,Span:()=>ue.Dr,SpanStatus:()=>ce,TRACEPARENT_REGEXP:()=>I.K,Transaction:()=>le.Y,addExtensionMethods:()=>r.ro,defaultRequestInstrumentationOptions:()=>ne,extractTraceparentData:()=>I.q,getActiveTransaction:()=>C.x1,hasTracingEnabled:()=>C.zu,instrumentOutgoingRequests:()=>se,spanStatusfromHttpCode:()=>ue.Zd,startIdleTransaction:()=>r.lb,stripUrlQueryAndFragment:()=>a.rt});var s={};n.r(s),n.d(s,{Apollo:()=>k,BrowserTracing:()=>oe,Express:()=>d,GraphQL:()=>S,Mongo:()=>b,Mysql:()=>m,Postgres:()=>_,Prisma:()=>v});var r=n(790),i=n(4307),o=n(2343),a=n(6956),c=n(442),u=n(7597);function l(e){const t=(0,i.x)([e,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==((0,i.x)([t,"optionalAccess",e=>e.instrumenter])||"sentry")}class d{static __initStatic(){this.id="Express"}__init(){this.name=d.id}constructor(e={}){d.prototype.__init.call(this),this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?l(t)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(e,t=[]){t.forEach((t=>function(e,t){const n=e[t];return e[t]=function(...e){return n.call(this,...function(e,t){return e.map((e=>"function"==typeof e?p(e,t):Array.isArray(e)?e.map((e=>"function"==typeof e?p(e,t):e)):e))}(e,t))},e}(e,t)))}(this._router,this._methods),function(e){const t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();const n=t?e._router:e;if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.debug("Routing instrumentation is currently only supported in Express 4."));const s=Object.getPrototypeOf(n),r=s.process_params;s.process_params=function(e,t,n,s,o){n._reconstructedRoute||(n._reconstructedRoute="");const{layerRoutePath:l,isRegex:d,isArray:p,numExtraSegments:h}=function(e){const t=(0,i.x)([e,"access",e=>e.route,"optionalAccess",e=>e.path]),n=(0,u.Kj)(t),s=Array.isArray(t);if(!t)return{isRegex:n,isArray:s,numExtraSegments:0};const r=s?Math.max(t.reduce(((e,t)=>e+(0,a.$A)(t.toString())),0)-(0,a.$A)(e.path||""),0):0,o=function(e,t){return e?t.map((e=>e.toString())).join(","):t&&t.toString()}(s,t);return{layerRoutePath:o,isRegex:n,isArray:s,numExtraSegments:r}}(e);(l||d||p)&&(n._hasParameters=!0);const f=(l||e.path||"").split("/").filter((e=>e.length>0&&(d||p||!e.includes("*")))).join("/");if(f&&f.length>0&&(n._reconstructedRoute+=/${f}${d?"/":""}),(0,a.$A)(n.originalUrl||"")+h===(0,a.$A)(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl);const e=s.__sentry_transaction;if(e&&"custom"!==e.metadata.source){const t=n._reconstructedRoute||"/";e.setName(...(0,c.oA)(n,{path:!0,method:!0,customRoute:t}))}}return r.call(this,e,t,n,s,o)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("ExpressIntegration is missing an Express instance")}}function p(e,t){const n=e.length;switch(n){case 2:return function(n,s){const r=s.__sentry_transaction;if(r){const n=r.startChild({description:e.name,op:middleware.express.${t}});s.once("finish",(()=>{n.finish()}))}return e.call(this,n,s)};case 3:return function(n,s,r){const o=s.__sentry_transaction,a=(0,i.x)([o,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:middleware.express.${t}})]);e.call(this,n,s,(function(...e){(0,i.x)([a,"optionalAccess",e=>e.finish,"call",e=>e()]),r.call(this,...e)}))};case 4:return function(n,s,r,o){const a=r.__sentry_transaction,c=(0,i.x)([a,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:middleware.express.${t}})]);e.call(this,n,s,r,(function(...e){(0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),o.call(this,...e)}))};default:throw new Error(Express middleware takes 2-4 arguments. Got: ${n})}}d.__initStatic();var h=n(2176),f=n(535);class _{static __initStatic(){this.id="Postgres"}__init(){this.name=_.id}constructor(e={}){_.prototype.__init.call(this),this._usePgNative=!!e.usePgNative}setupOnce(e,t){if(l(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Postgres Integration is skipped because of instrumenter configuration."));const n=(0,h.$y)("pg");if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Postgres Integration was unable to require pgpackage."));if(this._usePgNative&&!(0,i.x)([n,"access",e=>e.native,"optionalAccess",e=>e.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Postgres Integration was unable to access 'pg-native' bindings."));const{Client:s}=this._usePgNative?n.native:n;(0,f.hl)(s.prototype,"query",(function(e){return function(n,s,r){const o=t().getScope(),a=(0,i.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),c=(0,i.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof n?n:n.text,op:"db"})]);if("function"==typeof r)return e.call(this,n,s,(function(e,t){(0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),r(e,t)}));if("function"==typeof s)return e.call(this,n,(function(e,t){(0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),s(e,t)}));const l=void 0!==s?e.call(this,n,s):e.call(this,n);return(0,u.J8)(l)?l.then((e=>((0,i.x)([c,"optionalAccess",e=>e.fi error: nish,"call",e=>e()]),e))):((0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}}_.__initStatic();class m{constructor(){m.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=m.id}setupOnce(e,t){if(l(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Mysql Integration is skipped because of instrumenter configuration."));const n=(0,h.$y)("mysql/lib/Connection.js");n?(0,f.hl)(n,"createQuery",(function(e){return function(n,s,r){const o=t().getScope(),a=(0,i.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),c=(0,i.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof n?n:n.sql,op:"db"})]);return"function"==typeof r?e.call(this,n,s,(function(e,t,n){(0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),r(e,t,n)})):"function"==typeof s?e.call(this,n,(function(e,t,n){(0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),s(e,t,n)})):e.call(this,n,s,r)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Mysql Integration was unable to requiremysql package.")}}m.__initStatic();const g=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],y={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class b{static __initStatic(){this.id="Mongo"}__init(){this.name=b.id}constructor(e={}){b.prototype.__init.call(this),this._operations=Array.isArray(e.operations)?e.operations:g,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}setupOnce(e,t){if(l(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Mongo Integration is skipped because of instrumenter configuration."));const n=this._useMongoose?"mongoose":"mongodb",s=(0,h.$y)(n);s?this._instrumentOperations(s.Collection,this._operations,t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(Mongo Integration was unable to require `${n}` package.)}_instrumentOperations(e,t,n){t.forEach((t=>this._patchOperation(e,t,n)))}_patchOperation(e,t,n){if(!(t in e.prototype))return;const s=this._getSpanContextFromOperationArguments.bind(this);(0,f.hl)(e.prototype,t,(function(e){return function(...r){const o=r[r.length-1],a=n().getScope(),c=(0,i.x)([a,"optionalAccess",e=>e.getSpan,"call",e=>e()]);if("function"!=typeof o||"mapReduce"===t&&2===r.length){const n=(0,i.x)([c,"optionalAccess",e=>e.startChild,"call",e=>e(s(this,t,r))]),o=e.call(this,...r);if((0,u.J8)(o))return o.then((e=>((0,i.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()]),e)));if((l=o)&&"object"==typeof l&&l.once&&"function"==typeof l.once){const e=o;try{e.once("close",(()=>{(0,i.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()])}))}catch(e){(0,i.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()])}return e}return(0,i.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()]),o}var l;const d=(0,i.x)([c,"optionalAccess",e=>e.startChild,"call",e=>e(s(this,t,r.slice(0,-1)))]);return e.call(this,...r.slice(0,-1),(function(e,t){(0,i.x)([d,"optionalAccess",e=>e.finish,"call",e=>e()]),o(e,t)}))}}))}_getSpanContextFromOperationArguments(e,t,n){const s={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace},r={op:"db",description:t,data:s},i=y[t],o=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!i||!o)return r;try{if("mapReduce"===t){const[e,t]=n;s[i[0]]="string"==typeof e?e:e.name||"<anonymous>",s[i[1]]="string"==typeof t?t:t.name||"<anonymous>"}else for(let e=0;e<i.length;e++)s[i[e]]=JSON.stringify(n[e])}catch(e){}return r}}b.__initStatic();class v{static __initStatic(){this.id="Prisma"}__init(){this.name=v.id}constructor(e={}){var t;v.prototype.__init.call(this),(t=e.client)&&t.$use?this._client=e.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(e.client)})}setupOnce(e,t){this._client?l(t)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Prisma Integration is skipped because of instrumenter configuration."):this._client.$use(((e,n)=>{const s=t().getScope(),r=(0,i.x)([s,"optionalAccess",e=>e.getSpan,"call",e=>e()]),o=e.action,a=e.model,c=(0,i.x)([r,"optionalAccess",e=>e.startChild,"call",e=>e({description:a?${a} ${o}:o,op:"db.sql.prisma"})]),l=n(e);return(0,u.J8)(l)?l.then((e=>((0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):((0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),l)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}v.__initStatic();class S{constructor(){S.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=S.id}setupOnce(e,t){if(l(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("GraphQL Integration is skipped because of instrumenter configuration."));const n=(0,h.$y)("graphql/execution/execute.js");n?(0,f.hl)(n,"execute",(function(e){return function(...n){const s=t().getScope(),r=(0,i.x)([s,"optionalAccess",e=>e.getSpan,"call",e=>e()]),o=(0,i.x)([r,"optionalAccess",e=>e.startChild,"call",e=>e({description:"execute",op:"graphql.execute"})]);(0,i.x)([s,"optionalAccess",e=>e.setSpan,"call",e=>e(o)]);const a=e.call(this,...n);return(0,u.J8)(a)?a.then((e=>((0,i.x)([o,"optionalAccess",e=>e.finish,"call",e=>e()]),(0,i.x)([s,"optionalAccess",e=>e.setSpan,"call",e=>e(r)]),e))):((0,i.x)([o,"optionalAccess",e=>e.finish,"call",e=>e()]),(0,i.x)([s,"optionalAccess",e=>e.setSpan,"call",e=>e(r)]),a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}S.__initStatic();var E=n(2844);class k{static __initStatic(){this.id="Apollo"}__init(){this.name=k.id}constructor(e={useNestjs:!1}){k.prototype.__init.call(this),this._useNest=!!e.useNestjs}setupOnce(e,t){if(l(t))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const e=(0,h.$y)("@nestjs/graphql");if(!e)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,f.hl)(e.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(...n){return(0,f.hl)(this.resolversExplorerService,"explore",(function(e){return function(){return w((0,E.lE)(e.call(this)),t)}})),e.call(this,...n)}}))}else{const e=(0,h.$y)("apollo-server-core");if(!e)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Apollo Integration was unable to require apollo-server-core package."));(0,f.hl)(e.ApolloServerBase.prototype,"constructSchema",(function(e){return function(){if(!this.config.resolvers)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this.config.schema?(o.kg.warn("Apollo integration is not able to trace ApolloServerinstances constructed viaschemaproperty.If you are using NestJS with Apollo, please useSentry.Integrations.Apollo({ useNestjs: true })instead."),o.kg.warn()):this.config.modules&&o.kg.warn("Apollo integration is not able to traceApolloServerinstances constructed viamodulesproperty."),o.kg.error( error: "Skipping tracing as no resolvers found on theApolloServer instance.")),e.call(this);const n=(0,E.lE)(this.config.resolvers);return this.config.resolvers=w(n,t),e.call(this)}}))}}}function w(e,t){return e.map((e=>(Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((s=>{"function"==typeof e[n][s]&&function(e,t,n,s){(0,f.hl)(e[t],n,(function(e){return function(...r){const o=s().getScope(),a=(0,i.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),c=(0,i.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:${t}.${n},op:"graphql.resolve"})]),l=e.call(this,...r);return(0,u.J8)(l)?l.then((e=>((0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):((0,i.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}(e,n,s,t)}))})),e)))}k.__initStatic();var I=n(7638),T=n(9181),x=n(8464),O=n(6458),C=n(3233);const N=n(1235).n2;var R=n(1170);const A=(e,t,n)=>{let s,r;return i=>{t.value>=0&&(i||n)&&(r=t.value-(s||0),(r||void 0===s)&&(s=t.value,t.delta=r,e(t)))}},D=()=>N.__WEB_VITALS_POLYFILL__?N.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=N.performance.timing,t=N.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):N.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],P=()=>{const e=D();return e&&e.activationStart||0},j=(e,t)=>{const n=D();let s="navigate";return n&&(s=N.document.prerendering||P()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12},navigationType:s}},U=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const s=new PerformanceObserver((e=>{t(e.getEntries())}));return s.observe(Object.assign({type:e,buffered:!0},n||{})),s}}catch(e){}},$=(e,t)=>{const n=s=>{"pagehide"!==s.type&&"hidden"!==N.document.visibilityState||(e(s),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},B=e=>{const t=j("CLS",0);let n,s=0,r=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const i=r[0],o=r[r.length-1];s&&0!==r.length&&e.startTime-o.startTime<1e3&&e.startTime-i.startTime<5e3?(s+=e.value,r.push(e)):(s=e.value,r=[e]),s>t.value&&(t.value=s,t.entries=r,n&&n())}}))},o=U("layout-shift",i);o&&(n=A(e,t),$((()=>{i(o.takeRecords()),n(!0)})))};let M=-1;const F=()=>(M<0&&(M="hidden"!==N.document.visibilityState||N.document.prerendering?1/0:0,$((({timeStamp:e})=>{M=e}),!0)),{get firstHiddenTime(){return M}}),G=e=>{const t=F(),n=j("FID");let s;const r=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),s(!0))},i=e=>{e.forEach(r)},o=U("first-input",i);s=A(e,n),o&&$((()=>{i(o.takeRecords()),o.disconnect()}),!0)},L={},Y=e=>{const t=F(),n=j("LCP");let s;const r=e=>{const r=e[e.length-1];if(r){const e=Math.max(r.startTime-P(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[r],s())}},i=U("largest-contentful-paint",r);if(i){s=A(e,n);const t=()=>{L[n.id]||(r(i.takeRecords()),i.disconnect(),L[n.id]=!0,s(!0))};["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),$(t,!0)}};function V(e){return"number"==typeof e&&isFinite(e)}function q(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function H(){return N&&N.addEventListener&&N.performance}let z,J,W=0,K={};function Z(e,t,n,s,r,i){const o=i?t[i]:t[${n}End],a=t[${n}Start];a&&o&&q(e,{op:"browser",description:r||n,startTimestamp:s+(0,C.XL)(a),endTimestamp:s+(0,C.XL)(o)})}var X=n(5659),Q=n(4863),ee=n(7321);const te=["localhost",/^\//],ne={traceFetch:!0,traceXHR:!0,tracingOrigins:te,tracePropagationTargets:te};function se(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:s,tracingOrigins:r,shouldCreateSpanForRequest:i}={traceFetch:ne.traceFetch,traceXHR:ne.traceXHR,...e},o="function"==typeof i?i:e=>!0,a=e=>function(e,t){return(0,ee.U0)(e,t||te)}(e,s||r),c={};t&&(0,Q.o)("fetch",(e=>{!function(e,t,n,s){if(!(0,C.zu)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=s[t];return void(n&&(e.response?n.setHttpStatus(e.response.status):e.error&&n.setStatus("internal_error"),n.finish(),delete s[t]))}const r=(0,X.Gd)().getScope(),i=r&&r.getSpan(),o=i&&i.transaction;if(i&&o){const t=i.startChild({data:{...e.fetchData,type:"fetch"},description:${e.fetchData.method} ${e.fetchData.url},op:"http.client"});e.fetchData.__span=t.spanId,s[t.spanId]=t;const r=e.args[0];e.args[1]=e.args[1]||{};const a=e.args[1];n(e.fetchData.url)&&(a.headers=function(e,t,n,s){const r=(0,T.IQ)(t),i=n.toTraceparent(),o="undefined"!=typeof Request&&(0,u.V9)(e,Request)?e.headers:s.headers;if(o){if("undefined"!=typeof Headers&&(0,u.V9)(o,Headers)){const e=new Headers(o);return e.append("sentry-trace",i),r&&e.append(T.bU,r),e}if(Array.isArray(o)){const e=[...o,["sentry-trace",i]];return r&&e.push([T.bU,r]),e}{const e="baggage"in o?o.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),r&&t.push(r),{...o,"sentry-trace":i,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":i,baggage:r}}(r,o.getDynamicSamplingContext(),t,a))}}(e,o,a,c)})),n&&(0,Q.o)("xhr",(e=>{!function(e,t,n,s){if(!(0,C.zu)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;const r=e.xhr.__sentry_xhr__;if(e.endTimestamp){const t=e.xhr.__sentry_xhr_span_id__;if(!t)return;const n=s[t];return void(n&&(n.setHttpStatus(r.status_code),n.finish(),delete s[t]))}const i=(0,X.Gd)().getScope(),o=i&&i.getSpan(),a=o&&o.transaction;if(o&&a){const t=o.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:${r.method} ${r.url},op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=t.spanId,s[e.xhr.__sentry_xhr_span_id__]=t,e.xhr.setRequestHeader&&n(e.xhr.__sentry_xhr__.url))try{e.xhr.setRequestHeader("sentry-trace",t.toTraceparent());const n=a.getDynamicSamplingContext(),s=(0,T.IQ)(n);s&&e.xhr.setRequestHeader(T.bU,s)}catch(e){}}}(e,o,a,c)}))}const re="BrowserTracing",ie={idleTimeout:O.nT,finalTimeout:O.mg,heartbeatInterval:O.hd,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!N||!N.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not initialize routing instrumentation due to invalid location"));let s,r=N.location.href;t&&(s=e({name:N.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,Q.o)("history",(({to:t,from:n})=>{void 0===n&&r&&-1!==r.indexOf(t)?r=void 0:n!==t&&(r=void 0,s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log([Tracing] Finishing current transaction with op: ${s.op}),s.finish()),s=e({name:N.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ne};class oe{__init(){this.name=re}constructor(e){oe.prototype.__init.call(this),this.options={...ie,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),function(){const e=H();e&&R.Z1&&(e.mark&&N.performance.mark("sentry-tracing-init"),B((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS"),K.cls={value:e.value,unit:""},J=t)})),Y((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP"),K.lcp={value:e.value,unit:"millisecond"},z=t)})),G((e=>{const t=e.entries.pop();if(!t)return;const n=(0,C.XL)(R.Z1),s=(0,C.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FID"),K.fid={value:e.value,unit:"millisecond"},K["mark.fid"]={value:n+s,uni error: t:"second"}})))}(),this.options.enableLongTask&&U("longtask",(e=>{for(const t of e){const e=(0,C.x1)();if(!e)return;const n=(0,C.XL)(R.Z1+t.startTime),s=(0,C.XL)(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+s})}}))}setupOnce(e,t){this._getCurrentHub=t;const{routingInstrumentation:n,startTransactionOnLocationChange:s,startTransactionOnPageLoad:r,markBackgroundTransactions:i,traceFetch:a,traceXHR:c,tracePropagationTargets:u,shouldCreateSpanForRequest:l,_experiments:d}=this.options;n((e=>this._createRouteTransaction(e)),r,s),i&&(N&&N.document?N.document.addEventListener("visibilitychange",(()=>{const e=(0,C.x1)();if(N.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log([Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d.enableInteractions&&this._registerInteractionListener(),se({traceFetch:a,traceXHR:c,tracePropagationTargets:u,shouldCreateSpanForRequest:l})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn([Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.));const{beforeNavigate:t,idleTimeout:n,finalTimeout:s,heartbeatInterval:i}=this.options,a="pageload"===e.op,c=a?ae("sentry-trace"):null,u=a?ae("baggage"):null,l=c?(0,I.q)(c):void 0,d=u?(0,T.EN)(u):void 0,p={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!d?{}:d},trimEnd:!0},h="function"==typeof t?t(p):p,f=void 0===h?{...p,sampled:!1}:h;f.metadata=f.name!==p.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,!1===f.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log([Tracing] Will not send ${f.op} transaction because of beforeNavigate.),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log([Tracing] Starting ${f.op} transaction on scope);const _=this._getCurrentHub(),{location:m}=N,g=(0,r.lb)(_,f,n,s,!0,{location:m},i);return g.registerBeforeFinishCallback((e=>{!function(e){const t=H();if(!t||!N.performance.getEntries||!R.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=(0,C.XL)(R.Z1),s=t.getEntries();let r,i;if(s.slice(W).forEach((t=>{const s=(0,C.XL)(t.startTime),a=(0,C.XL)(t.duration);if(!("navigation"===e.op&&n+s<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((s=>{Z(e,t,s,n)})),Z(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Z(e,t,"fetch",n,"cache","domainLookupStart"),Z(e,t,"domainLookup",n,"DNS"),function(e,t,n){q(e,{op:"browser",description:"request",startTimestamp:n+(0,C.XL)(t.requestStart),endTimestamp:n+(0,C.XL)(t.responseEnd)}),q(e,{op:"browser",description:"response",startTimestamp:n+(0,C.XL)(t.responseStart),endTimestamp:n+(0,C.XL)(t.responseEnd)})}(e,t,n)}(e,t,n),r=n+(0,C.XL)(t.responseStart),i=n+(0,C.XL)(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,s,r){const i=r+n,o=i+s;q(e,{description:t.name,endTimestamp:o,op:t.entryType,startTimestamp:i})}(e,t,s,a,n);const r=F(),i=t.startTime<r.firstHiddenTime;"first-paint"===t.name&&i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FP"),K.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FCP"),K.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const r=t.name.replace(N.location.origin,"");!function(e,t,n,s,r,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const o={};"transferSize"in t&&(o["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(o["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(o["Decoded Body Size"]=t.decodedBodySize),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);const a=i+s;q(e,{description:n,endTimestamp:a+r,op:t.initiatorType?resource.${t.initiatorType}:"resource.other",startTimestamp:a,data:o})}(e,t,r,s,a,n);break}}})),W=Math.max(s.length-1,0),function(e){const t=N.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),V(n.rtt)&&(K["connection.rtt"]={value:n.rtt,unit:"millisecond"})),V(t.deviceMemory)&&e.setTag("deviceMemory",${t.deviceMemory} GB),V(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding TTFB"),K.ttfb={value:1e3*(r-e.startTimestamp),unit:"millisecond"},"number"==typeof i&&i<=r&&(K["ttfb.requestTime"]={value:1e3*(r-i),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!K[t]||n>=e.startTimestamp)return;const s=K[t].value,r=n+(0,C.XL)(s),i=Math.abs(1e3*(r-e.startTimestamp)),a=i-s;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log([Measurements] Normalized ${t} from ${s} to ${i} (${a})),K[t].value=i}));const t=K["mark.fid"];t&&K.fid&&(q(e,{description:"first input delay",endTimestamp:t.value+(0,C.XL)(K.fid.value),op:"ui.action",startTimestamp:t.value}),delete K["mark.fid"]),"fcp"in K||delete K.cls,Object.keys(K).forEach((t=>{e.setMeasurement(t,K[t].value,K[t].unit)})),function(e){z&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP Data"),z.element&&e.setTag("lcp.element",(0,x.Rt)(z.element)),z.id&&e.setTag("lcp.id",z.id),z.url&&e.setTag("lcp.url",z.url.trim().slice(0,200)),e.setTag("lcp.size",z.size)),J&&J.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS Data"),J.sources.forEach(((t,n)=>e.setTag(cls.source.${n+1},(0,x.Rt)(t.node)))))}(e)}z=void 0,J=void 0,K={}}(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:s}=this.options,i="ui.action.click";if(e&&(e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn([Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn([Tracing] Did not create ${i} transaction because _latestRouteName is missing.));const a=this._getCurrentHub(),{location:c}=N,u={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=(0,r.lb)(a,u,t,n,!0,{location:c},s)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function ae(e){const t=(0,x.qT)(meta[name=${e}]);return t?t.getAttribute("content"):null}var ce,ue=n(5334);!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(ce||(ce={}));var le=n(3391);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,r.ro)()},5334:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>c,Zd:()=>u,gB:()=>a});var s=n(2844),r=n(1170),i=n(2343),o=n(535);class a{__init(){this.spans=[]}constructor(e=1e3){a.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class c{__init2(){this.traceId=(0,s.D error: M)()}__init3(){this.spanId=(0,s.DM)().substring(16)}__init4(){this.startTimestamp=(0,r._I)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const t=new c({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},i.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));const t=u(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&i.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,r._I)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),${this.traceId}-${this.spanId}${e}}toContext(){return(0,o.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function u(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},3391:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var s=n(5659),r=n(2343),i=n(535),o=n(5334);class a extends o.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,t){super(e),a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),this._hub=t||(0,s.Gd)(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new o.gB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to ."),this.name="<unlabeled transaction>"),super.finish(e),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");const e=this._hub.getClient();return void(e&&e.recordDroppedEvent("sample_rate","transaction"))}const t=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&t.length>0&&(this.endTimestamp=t.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const n=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:t,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log([Tracing] Finishing ${this.op} transaction: ${this.name}.),this._hub.captureEvent(s)}toContext(){const e=super.toContext();return(0,i.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,s.Gd)(),t=e&&e.getClient();if(!t)return{};const{environment:n,release:r}=t.getOptions()||{},{publicKey:o}=t.getDsn()||{},a=this.metadata.sampleRate,c=void 0!==a?a.toString():void 0,u=e.getScope(),{segment:l}=u&&u.getUser()||{},d=this.metadata.source,p=d&&"url"!==d?this.name:void 0;return(0,i.Jr)({environment:n,release:r,transaction:p,user_segment:l,public_key:o,trace_id:this.traceId,sample_rate:c})}}},3233:(e,t,n)=>{"use strict";n.d(t,{XL:()=>o,x1:()=>i,zu:()=>r});var s=n(5659);function r(e){const t=(0,s.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){const t=(e||(0,s.Gd)()).getScope();return t&&t.getTransaction()}function o(e){return e/1e3}},9181:(e,t,n)=>{"use strict";n.d(t,{EN:()=>u,IQ:()=>l,bU:()=>i});var s=n(7597),r=n(2343);const i="baggage",o="sentry-",a=/^sentry-/,c=8192;function u(e){if(!(0,s.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...d(t)})),{});else{if(!e)return;t=d(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(a)&&(e[t.slice(o.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function l(e){return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],s)=>{const i=${encodeURIComponent(t)}=${encodeURIComponent(n)},o=0===s?i:${e},${i};return o.length>c?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.e

@istnv. Oh ok. Saw your reply after I posted the second set of errors. I grabbed the latest and didn't realize. Sure miss the old method the betas were listed with the commits listed with the download! Made much more sense that way to an amateur like myself. Ill check it out later this week. Thanks!

Next release should have this fix.

Re-open if this is still an issue.