var Sentry=function(){function _array_like_to_array(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function _object_without_properties_loose(t,n){if(null==t)return{};var r,o,a={},i=Object.keys(t);for(o=0;o=0||(a[r]=t[r]);return a}function _possible_constructor_return(t,n){return!n||"object"!==_type_of(n)&&"function"!=typeof n?_assert_this_initialized(t):n}function _set_prototype_of(t,n){return _set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(t,n){return t.__proto__=n,t},_set_prototype_of(t,n)}function _sliced_to_array(t,n){return _array_with_holes(t)||_iterable_to_array_limit(t,n)||_unsupported_iterable_to_array(t,n)||_non_iterable_rest()}function _super_prop_base(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=_get_prototype_of(t)););return t}function _to_consumable_array(t){return _array_without_holes(t)||_iterable_to_array(t)||_unsupported_iterable_to_array(t)||_non_iterable_spread()}function _type_of(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _unsupported_iterable_to_array(t,n){if(t){if("string"==typeof t)return _array_like_to_array(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(t,n):void 0}}function _wrap_native_super(t){var n="function"==typeof Map?new Map:void 0;return _wrap_native_super=function wrapNativeSuper(t){if(null===t||!_is_native_function(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_get_prototype_of(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(Wrapper,t)},_wrap_native_super(t)}function _is_native_reflect_construct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _create_super(t){var n=_is_native_reflect_construct();return function _createSuperInternal(){var r,o=_get_prototype_of(t);if(n){var a=_get_prototype_of(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return _possible_constructor_return(this,r)}}function _ts_generator(t,n){var r,o,a,i,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(i){return function(u){return function step(i){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,o&&(a=2&i[0]?o.return:i[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;switch(o=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===n||t.length<=n?t:"".concat(t.slice(0,n),"...")},v=function snipLine(t,n){var r=t,o=r.length;if(o<=150)return r;n>o&&(n=o);var a=Math.max(n-60,0);a<5&&(a=0);var i=Math.min(a+140,o);return i>o-5&&(i=o),i===o&&(a=Math.max(i-140,0)),r=r.slice(a,i),a>0&&(r="'{snip} ".concat(r)),i2&&void 0!==arguments[2]&&arguments[2];return!!c(t)&&(function isRegExp(t){return o(t,"RegExp")}(n)?n.test(t):!!c(n)&&(r?t===n:t.includes(n)))},b=function stringMatchesSomePattern(t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(r){return g(t,r,n)}))},S=function applyAggregateErrorsToEvent(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0;if(i.exception&&i.exception.values&&c&&_(c.originalException,Error)){var u=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;u&&(i.exception.values=T(aggregateExceptionsFromError(t,n,a,c.originalException,o,i.exception.values,u,0),r))}},E=function applyExceptionGroupFieldsForParentException(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=_object_spread_props(_object_spread({},t.mechanism),{is_exception_group:!0,exception_id:n})},k=function applyExceptionGroupFieldsForChildException(t,n,r,o){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=_object_spread_props(_object_spread({},t.mechanism),{type:"chained",source:n,exception_id:r,parent_id:o})},T=function truncateAggregateExceptions(t,n){return t.map((function(t){return t.value&&(t.value=m(t.value,n)),t}))},w=function isGlobalObj(t){return t&&t.Math==Math?t:void 0},x=function getGlobalObject(){return ks},R=function getGlobalSingleton(t,n,r){var o=r||ks,a=o.__SENTRY__=o.__SENTRY__||{};return a[t]||(a[t]=n())},I=function htmlTreeAsString(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"";try{for(var r,o=t,a=[],i=0,c=0,u=Array.isArray(n)?n:n.keyAttrs,l=!Array.isArray(n)&&n.maxStringLength||ws;o&&i++<5&&!("html"===(r=C(o,u))||i>1&&c+3*a.length+r.length>=l);)a.push(r),c+=r.length,o=o.parentNode;return a.reverse().join(" > ")}catch(t){return""}},C=function _htmlElementAsString(t,n){var r,o,a,i,u,l=t,d=[];if(!l||!l.tagName)return"";d.push(l.tagName.toLowerCase());var p=n&&n.length?n.filter((function(t){return l.getAttribute(t)})).map((function(t){return[t,l.getAttribute(t)]})):null;if(p&&p.length)p.forEach((function(t){d.push("[".concat(t[0],'="').concat(t[1],'"]'))}));else if(l.id&&d.push("#".concat(l.id)),(r=l.className)&&c(r))for(o=r.split(/\s+/),u=0;u1&&void 0!==arguments[1]&&arguments[1],r=t.host,o=t.path,a=t.pass,i=t.port,c=t.projectId,u=t.protocol,l=t.publicKey;return"".concat(u,"://").concat(l).concat(n&&a?":".concat(a):"","@").concat(r).concat(i?":".concat(i):"","/").concat(o?"".concat(o,"/"):o).concat(c)},O=function dsnFromString(t){var n=js.exec(t);if(n){var r=_sliced_to_array(n.slice(1),6),o=r[0],a=r[1],i=r[2],c=void 0===i?"":i,u=r[3],l=r[4],d=void 0===l?"":l,p="",f=r[5],_=f.split("/");if(_.length>1&&(p=_.slice(0,-1).join("/"),f=_.pop()),f){var h=f.match(/^\d+/);h&&(f=h[0])}return N({host:u,pass:c,path:p,projectId:f,port:d,protocol:o,publicKey:a})}console.error("Invalid Sentry Dsn: ".concat(t))},N=function dsnFromComponents(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}},M=function makeDsn(t){var n="string"==typeof t?O(t):N(t);if(n&&function validateDsn(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;var n=t.port,r=t.projectId,o=t.protocol;return!(["protocol","publicKey","host","projectId"].find((function(n){return!t[n]&&(Cs.error("Invalid Sentry Dsn: ".concat(n," missing")),!0)}))||(r.match(/^\d+$/)?function isValidProtocol(t){return"http"===t||"https"===t}(o)?n&&isNaN(parseInt(n,10))&&(Cs.error("Invalid Sentry Dsn: Invalid port ".concat(n)),1):(Cs.error("Invalid Sentry Dsn: Invalid protocol ".concat(o)),1):(Cs.error("Invalid Sentry Dsn: Invalid projectId ".concat(r)),1)))}(n))return n},B=function fill(t,n,r){if(n in t){var o=t[n],a=r(o);"function"==typeof a&&U(a,o),t[n]=a}},A=function addNonEnumerableProperty(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch(r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log('Failed to add non-enumerable property "'.concat(n,'" to object'),t)}},U=function markFunctionWrapped(t,n){try{var r=n.prototype||{};t.prototype=n.prototype=r,A(t,"__sentry_original__",n)}catch(t){}},P=function getOriginalFunction(t){return t.__sentry_original__},L=function convertToPlainObject(t){if(r(t))return _object_spread({message:t.message,name:t.name,stack:t.stack},G(t));if(d(t)){var n=_object_spread({type:t.type,target:F(t.target),currentTarget:F(t.currentTarget)},G(t));return"undefined"!=typeof CustomEvent&&_(t,CustomEvent)&&(n.detail=t.detail),n}return t},F=function serializeEventTarget(t){try{return function isElement(t){return"undefined"!=typeof Element&&_(t,Element)}(t)?I(t):Object.prototype.toString.call(t)}catch(t){return""}},G=function getOwnProperties(t){if("object"==typeof t&&null!==t){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}return{}},Y=function dropUndefinedKeys(t){return _dropUndefinedKeys(t,new Map)},H=function uuid4(){var t=ks,n=t.crypto||t.msCrypto,getRandomByte=function(){return 16*Math.random()};try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(getRandomByte=function(){return n.getRandomValues(new Uint8Array(1))[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(t){return(t^(15&getRandomByte())>>t/4).toString(16)}))},z=function getFirstException(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0},q=function getEventDescription(t){var n=t.message,r=t.event_id;if(n)return n;var o=z(t);return o?o.type&&o.value?"".concat(o.type,": ").concat(o.value):o.type||o.value||r||"":r||""},W=function addExceptionTypeValue(t,n,r){var o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{};i.value||(i.value=n||""),i.type||(i.type=r||"Error")},V=function addExceptionMechanism(t,n){var r=z(t);if(r){var o=r.mechanism;if(r.mechanism=_object_spread({},{type:"generic",handled:!0},o,n),n&&"data"in n){var a=_object_spread({},o&&o.data,n.data);r.mechanism.data=a}}},$=function checkOrSetAlreadyCaught(t){if(t&&t.__sentry_captured__)return!0;try{A(t,"__sentry_captured__",!0)}catch(t){}return!1},K=function arrayify(t){return Array.isArray(t)?t:[t]},J=function createStackParser(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,r=[],a=t.split("\n"),i=n;i1024)){var u=Ls.test(c)?c.replace(Ls,"$1"):c;if(!u.match(/\S*Error: /)){var l=!0,d=!1,p=void 0;try{for(var f,_=o[Symbol.iterator]();!(l=(f=_.next()).done);l=!0){var h=(0,f.value)(u);if(h){r.push(h);break}}}catch(t){d=!0,p=t}finally{try{l||null==_.return||_.return()}finally{if(d)throw p}}if(r.length>=Ps)break}}}return Q(r)}},X=function stackParserFromStackParserOptions(t){return Array.isArray(t)?J.apply(void 0,_to_consumable_array(t)):t},Q=function stripSentryFramesAndReverse(t){if(!t.length)return[];var n=Array.from(t);return/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop(),n.reverse(),Fs.test(n[n.length-1].function||"")&&(n.pop(),Fs.test(n[n.length-1].function||"")&&n.pop()),n.slice(0,Ps).map((function(t){return _object_spread_props(_object_spread({},t),{filename:t.filename||n[n.length-1].filename,function:t.function||"?"})}))},Z=function getFunctionName(t){try{return t&&"function"==typeof t&&t.name||Gs}catch(t){return Gs}},ee=function supportsFetch(){if(!("fetch"in Ys))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}},te=function isNativeFetch(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())},ne=function supportsNativeFetch(){if(!ee())return!1;if(te(Ys.fetch))return!0;var t=!1,n=Ys.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=te(r.contentWindow.fetch)),n.head.removeChild(r)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t},re=function addInstrumentationHandler(t,n){Ws[t]=Ws[t]||[],Ws[t].push(n),function instrument(t){if(!Vs[t])switch(Vs[t]=!0,t){case"console":ae();break;case"dom":fe();break;case"xhr":le();break;case"fetch":ie();break;case"history":de();break;case"error":_e();break;case"unhandledrejection":he();break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("unknown instrumentation type:",t)}}(t)},oe=function triggerHandlers(t,n){if(t&&Ws[t]){var r=!0,o=!1,a=void 0;try{for(var i,c=(Ws[t]||[])[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var u=i.value;try{u(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(Z(u),"\nError:"),n)}}}catch(t){o=!0,a=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}}},ae=function instrumentConsole(){"console"in ks&&Rs.forEach((function(t){t in ks.console&&B(ks.console,t,(function(n){return Is[t]=n,function(){for(var n=arguments.length,r=new Array(n),o=0;o2?r[2]:void 0;if(a){var i=$s,c=String(a);$s=c,oe("history",{from:i,to:c})}return t.apply(this,r)}}},pe=function makeDOMEventHandler(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r){if(r&&!r._sentryCaptured){var o=function getEventTarget(t){try{return t.target}catch(t){return null}}(r);if(!function shouldSkipDOMEvent(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(r.type,o)){A(r,"_sentryCaptured",!0),o&&!o._sentryId&&A(o,"_sentryId",H());var a="keypress"===r.type?"input":r.type;(function isSimilarToLastCapturedEvent(t){if(t.type!==Xs)return!1;try{if(!t.target||t.target._sentryId!==Qs)return!1}catch(t){}return!0})(r)||(t({event:r,name:a,global:n}),Xs=r.type,Qs=o?o._sentryId:void 0),clearTimeout(Js),Js=zs.setTimeout((function(){Qs=void 0,Xs=void 0}),Ks)}}}},fe=function instrumentDOM(){if(zs.document){var t=oe.bind(null,"dom"),n=pe(t,!0);zs.document.addEventListener("click",n,!1),zs.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var r=zs[n]&&zs[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(B(r,"addEventListener",(function(n){return function(r,o,a){if("click"===r||"keypress"==r)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=i[r]=i[r]||{refCount:0};if(!c.handler){var u=pe(t);c.handler=u,n.call(this,r,u,a)}c.refCount++}catch(t){}return n.call(this,r,o,a)}})),B(r,"removeEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var a=this.__sentry_instrumentation_handlers__||{},i=a[n];i&&(i.refCount--,i.refCount<=0&&(t.call(this,n,i.handler,o),i.handler=void 0,delete a[n]),0===Object.keys(a).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,o)}})))}))}},_e=function instrumentError(){Zs=zs.onerror,zs.onerror=function(t,n,r,o,a){return oe("error",{column:o,error:a,line:r,msg:t,url:n}),!(!Zs||Zs.__SENTRY_LOADER__)&&Zs.apply(this,arguments)},zs.onerror.__SENTRY_INSTRUMENTED__=!0},he=function instrumentUnhandledRejection(){ec=zs.onunhandledrejection,zs.onunhandledrejection=function(t){return oe("unhandledrejection",t),!(ec&&!ec.__SENTRY_LOADER__)||ec.apply(this,arguments)},zs.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0},me=function isBrowser(){return"undefined"!=typeof window&&!0},ve=function normalize(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return visit("",t,n,r)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}},ye=function stringifyValue(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(h(n))return"[VueViewModel]";if(function isSyntheticEvent(t){return l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return"[Function: ".concat(Z(n),"]");if("symbol"===(void 0===n?"undefined":_type_of(n)))return"[".concat(String(n),"]");if("bigint"===(void 0===n?"undefined":_type_of(n)))return"[BigInt: ".concat(String(n),"]");var r=ge(n);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(t){return"**non-serializable** (".concat(t,")")}},ge=function getConstructorName(t){var n=Object.getPrototypeOf(t);return n?n.constructor.name:"null prototype"},be=function jsonSize(t){return function utf8Length(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))},Se=function resolve(){for(var t=arguments.length,n=new Array(t),r=0;r=-1&&!a;i--){var c=i>=0?n[i]:"/";c&&(o="".concat(c,"/").concat(o),a="/"===c.charAt(0))}return o=function normalizeArray(t,n){for(var r=0,o=t.length-1;o>=0;o--){var a=t[o];"."===a?t.splice(o,1):".."===a?(t.splice(o,1),r++):r&&(t.splice(o,1),r--)}if(n)for(;r--;r)t.unshift("..");return t}(o.split("/").filter((function(t){return!!t})),!a).join("/"),(a?"/":"")+o||"."},Ee=function trim(t){for(var n=0;n=0&&""===t[r];r--);return n>r?[]:t.slice(n,r-n+1)},ke=function basename(t,n){var r=function splitPath(t){var n=t.length>1024?"".concat(t.slice(-1024)):t,r=dc.exec(n);return r?r.slice(1):[]}(t)[2];return n&&r.slice(-1*n.length)===n&&(r=r.slice(0,r.length-n.length)),r},Te=function resolvedSyncPromise(t){return new fc((function(n){n(t)}))},we=function rejectedSyncPromise(t){return new fc((function(n,r){r(t)}))},xe=function makePromiseBuffer(t){var n=[];function remove(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function add(r){if(!function isReady(){return void 0===t||n.length0&&r(!1)}),t);n.forEach((function(t){Te(t).then((function(){--a||(clearTimeout(i),r(!0))}),o)}))}))}}},Re=function parseUrl(t){if(!t)return{};var n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",o=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:r,hash:o,relative:n[5]+r+o}},Ie=function severityLevelFromString(t){return"warn"===t?"warning":_c.includes(t)?t:"log"},Ce=function dynamicSamplingContextToSentryBaggageHeader(t){if(t){var n=Object.entries(t).reduce((function(t,n){var r=_sliced_to_array(n,2),o=r[0],a=r[1];return a&&(t["".concat(kc).concat(o)]=a),t}),{});return De(n)}},je=function baggageHeaderToObject(t){return t.split(",").map((function(t){return t.split("=").map((function(t){return decodeURIComponent(t.trim())}))})).reduce((function(t,n){var r=_sliced_to_array(n,2),o=r[0],a=r[1];return t[o]=a,t}),{})},De=function objectToBaggageHeader(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((function(t,n,r){var o=_sliced_to_array(n,2),a=o[0],i=o[1],c="".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(i)),u=0===r?c:"".concat(t,",").concat(c);return u.length>wc?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Not adding key: ".concat(a," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),t):u}),"")},Oe=function extractTraceparentData(t){if(t){var n,r=t.match(xc);if(r)return"1"===r[3]?n=!0:"0"===r[3]&&(n=!1),{traceId:r[1],parentSampled:n,parentSpanId:r[2]}}},Ne=function tracingContextFromHeaders(t,n){var r=Oe(t),o=function baggageHeaderToDynamicSamplingContext(t){if(c(t)||Array.isArray(t)){var n={};if(Array.isArray(t))n=t.reduce((function(t,n){return _object_spread({},t,je(n))}),{});else{if(!t)return;n=je(t)}var r=Object.entries(n).reduce((function(t,n){var r=_sliced_to_array(n,2),o=r[0],a=r[1];return o.match(Tc)&&(t[o.slice(kc.length)]=a),t}),{});return Object.keys(r).length>0?r:void 0}}(n),a=r||{},i=a.traceId,u=a.parentSpanId,l=a.parentSampled,d={traceId:i||H(),spanId:H().substring(16),sampled:l};return u&&(d.parentSpanId=u),o&&(d.dsc=o),{traceparentData:r,dynamicSamplingContext:o,propagationContext:d}},Me=function generateSentryTraceHeader(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H().substring(16),r=arguments.length>2?arguments[2]:void 0,o="";return void 0!==r&&(o=r?"-1":"-0"),"".concat(t,"-").concat(n).concat(o)},Be=function createEnvelope(t){return[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]},Ae=function addItemToEnvelope(t,n){var r=_sliced_to_array(t,2);return[r[0],_to_consumable_array(r[1]).concat([n])]},Ue=function forEachEnvelopeItem(t,n){var r=t[1],o=!0,a=!1,i=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value;if(n(l,l[0].type))return!0}}catch(t){a=!0,i=t}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}return!1},Pe=function encodeUTF8(t,n){return(n||new TextEncoder).encode(t)},Le=function serializeEnvelope(t,n){var r=_sliced_to_array(t,2),o=r[0],a=r[1],i=JSON.stringify(o);function append(t){"string"==typeof i?i="string"==typeof t?i+t:[Pe(i,n),t]:i.push("string"==typeof t?Pe(t,n):t)}var c=!0,u=!1,l=void 0;try{for(var d,p=a[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var f=_sliced_to_array(d.value,2),_=f[0],h=f[1];if(append("\n".concat(JSON.stringify(_),"\n")),"string"==typeof h||_instanceof(h,Uint8Array))append(h);else{var m=void 0;try{m=JSON.stringify(h)}catch(t){m=JSON.stringify(ve(h))}append(m)}}}catch(t){u=!0,l=t}finally{try{c||null==p.return||p.return()}finally{if(u)throw l}}return"string"==typeof i?i:Fe(i)},Fe=function concatBuffers(t){var n=t.reduce((function(t,n){return t+n.length}),0),r=new Uint8Array(n),o=0,a=!0,i=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;r.set(d,o),o+=d.length}}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}return r},Ge=function parseEnvelope(t,n,r){var o="string"==typeof t?n.encode(t):t;function readBinary(t){var n=o.subarray(0,t);return o=o.subarray(t+1),n}function readJson(){var t=o.indexOf(10);return t<0&&(t=o.length),JSON.parse(r.decode(readBinary(t)))}for(var a=readJson(),i=[];o.length;){var c=readJson(),u="number"==typeof c.length?c.length:void 0;i.push([c,u?readBinary(u):readJson()])}return[a,i]},Ye=function createAttachmentEnvelopeItem(t,n){var r="string"==typeof t.data?Pe(t.data,n):t.data;return[Y({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]},He=function envelopeItemTypeToDataCategory(t){return Rc[t]},ze=function getSdkMetadataForEnvelopeHeader(t){if(t&&t.sdk){var n=t.sdk;return{name:n.name,version:n.version}}},qe=function createEventEnvelopeHeaders(t,n,r,o){var a=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return _object_spread({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n},!!r&&o&&{dsn:D(o)},a&&{trace:Y(_object_spread({},a))})},We=function parseRetryAfterHeader(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=parseInt("".concat(t),10);if(!isNaN(r))return 1e3*r;var o=Date.parse("".concat(t));return isNaN(o)?Ic:o-n},Ve=function isRateLimited(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function disabledUntil(t,n){return t[n]||t.all||0}(t,n)>r},$e=function updateRateLimits(t,n){var r=n.statusCode,o=n.headers,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),i=_object_spread({},t),c=o&&o["x-sentry-rate-limits"],u=o&&o["retry-after"];if(c){var l=!0,d=!1,p=void 0;try{for(var f,_=c.trim().split(",")[Symbol.iterator]();!(l=(f=_.next()).done);l=!0){var h=_sliced_to_array(f.value.split(":",2),2),m=h[0],v=h[1],y=parseInt(m,10),g=1e3*(isNaN(y)?60:y);if(v){var b=!0,S=!1,E=void 0;try{for(var k,T=v.split(";")[Symbol.iterator]();!(b=(k=T.next()).done);b=!0){i[k.value]=a+g}}catch(t){S=!0,E=t}finally{try{b||null==T.return||T.return()}finally{if(S)throw E}}}else i.all=a+g}}catch(t){d=!0,p=t}finally{try{l||null==_.return||_.return()}finally{if(d)throw p}}}else u?i.all=a+We(u,a):429===r&&(i.all=a+6e4);return i},Ke=function exceptionFromError(t,n){var r={type:n.name||n.constructor.name,value:n.message},o=function parseStackFrames(t,n){return t(n.stack||"",1)}(t,n);return o.length&&(r.stacktrace={frames:o}),r},Je=function getGlobalEventProcessors(){return R("globalEventProcessors",(function(){return[]}))},Xe=function addGlobalEventProcessor(t){Je().push(t)},Qe=function updateSession(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||bc(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:H()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did="".concat(n.did)),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{var r=t.timestamp-t.started;t.duration=r>=0?r:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)},Ze=function sessionToJSON(t){return Y({sid:"".concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?"".concat(t.did):void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})},et=function generatePropagationContext(){return{traceId:H(),spanId:H().substring(16)}},tt=function getMainCarrier(){return ks.__SENTRY__=ks.__SENTRY__||{extensions:{},hub:void 0},ks},nt=function makeMain(t){var n=tt(),r=it(n);return st(n,t),r},rt=function getCurrentHub(){var t=tt();if(t.__SENTRY__&&t.__SENTRY__.acs){var n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return ot(t)},ot=function getGlobalHub(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt();return at(t)&&!it(t).isOlderThan(Wc)||st(t,new Vc),it(t)},at=function hasHubOnCarrier(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)},it=function getHubFromCarrier(t){return R("hub",(function(){return new Vc}),t)},st=function setHubOnCarrier(t,n){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0)},ct=function getActiveTransaction(t){return(t||rt()).getScope().getTransaction()},ut=function errorCallback(){var t=ct();if(t){var n="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Transaction: ".concat(n," -> Global error occured")),t.setStatus(n)}},lt=function spanStatusfromHttpCode(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){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(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"},dt=function getDynamicSamplingContextFromClient(t,n,r){var o=n.getOptions(),a=(n.getDsn()||{}).publicKey,i=(r&&r.getUser()||{}).segment,c=Y({environment:o.environment||Cc,release:o.release,user_segment:i,public_key:a,trace_id:t});return n.emit&&n.emit("createDsc",c),c},pt=function hasTracingEnabled(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var n=rt().getClient(),r=t||n&&n.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)},ft=function sampleTransaction(t,n,r){return pt(n)?void 0!==t.sampled?(t.setMetadata({sampleRate:Number(t.sampled)}),t):("function"==typeof n.tracesSampler?(o=n.tracesSampler(r),t.setMetadata({sampleRate:Number(o)})):void 0!==r.parentSampled?o=r.parentSampled:void 0!==n.tracesSampleRate?(o=n.tracesSampleRate,t.setMetadata({sampleRate:Number(o)})):(o=1,t.setMetadata({sampleRate:o})),_t(o)?o?(t.sampled=Math.random()1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1)},ht=function traceHeaders(){var t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}},mt=function _startTransaction(t,n){var r=this.getClient(),o=r&&r.getOptions()||{},a=o.instrumenter||"sentry",i=t.instrumenter||"sentry";a!==i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("A transaction was started with instrumenter=`".concat(i,"`, but the SDK is configured with the `").concat(a,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(a," instrumentation to start transactions.")),t.sampled=!1);var c=new Xc(t,this);return(c=ft(c,o,_object_spread({parentSampled:t.parentSampled,transactionContext:t},n))).sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",c),c},vt=function startIdleTransaction(t,n,r,o,a,i,c){var u=t.getClient(),l=u&&u.getOptions()||{},d=new tu(n,t,r,o,c,a);return(d=ft(d,l,_object_spread({parentSampled:n.parentSampled,transactionContext:n},i))).sampled&&d.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",d),d},yt=function addTracingExtensions(){var t=tt();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=mt),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=ht),function registerErrorInstrumentation(){$c||($c=!0,re("error",ut),re("unhandledrejection",ut))}())},gt=function trace(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=xt(t),i=rt(),c=i.getScope(),u=c.getSpan(),l=wt(i,u,a);function finishAndSetSpan(){l&&l.finish(),i.getScope().setSpan(u)}c.setSpan(l);try{r=n(l)}catch(t){throw l&&l.setStatus("internal_error"),o(t),finishAndSetSpan(),t}return p(r)?Promise.resolve(r).then((function(){finishAndSetSpan()}),(function(t){l&&l.setStatus("internal_error"),o(t),finishAndSetSpan()})):finishAndSetSpan(),r},bt=function startSpan(t,n){var r,o=xt(t),a=rt(),i=a.getScope(),c=i.getSpan(),u=wt(a,c,o);function finishAndSetSpan(){u&&u.finish(),a.getScope().setSpan(c)}i.setSpan(u);try{r=n(u)}catch(t){throw u&&u.setStatus("internal_error"),finishAndSetSpan(),t}return p(r)?Promise.resolve(r).then((function(){finishAndSetSpan()}),(function(){u&&u.setStatus("internal_error"),finishAndSetSpan()})):finishAndSetSpan(),r},St=function startSpanManual(t,n){var r,o=xt(t),a=rt(),i=a.getScope(),c=i.getSpan(),u=wt(a,c,o);i.setSpan(u);try{r=n(u,(function finishAndSetSpan(){u&&u.finish(),a.getScope().setSpan(c)}))}catch(t){throw u&&u.setStatus("internal_error"),t}return p(r)&&Promise.resolve(r).then(void 0,(function(){u&&u.setStatus("internal_error")})),r},Et=function startInactiveSpan(t){if(pt()){var n=_object_spread({},t);void 0!==n.name&&void 0===n.description&&(n.description=n.name);var r=rt(),o=kt();return o?o.startChild(n):r.startTransaction(n)}},kt=function getActiveSpan(){return rt().getScope().getSpan()},Tt=function continueTrace(t,n){var r=t.sentryTrace,o=t.baggage,a=rt().getScope(),i=Ne(r,o),c=i.traceparentData,u=i.dynamicSamplingContext,l=i.propagationContext;return a.setPropagationContext(l),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c&&Cs.log("[Tracing] Continuing trace ".concat(c.traceId,".")),n(_object_spread_props(_object_spread({},c),{metadata:Y({dynamicSamplingContext:c&&!u?{}:u})}))},wt=function createChildSpanOrTransaction(t,n,r){if(pt())return n?n.startChild(r):t.startTransaction(r)},xt=function normalizeContext(t){var n=_object_spread({},t);return void 0!==n.name&&void 0===n.description&&(n.description=n.name),n},Rt=function setMeasurement(t,n,r){var o=ct();o&&o.setMeasurement(t,n,r)},It=function captureException(t,n){return rt().captureException(t,{captureContext:n})},Ct=function captureMessage(t,n){var r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return rt().captureMessage(t,r,o)},jt=function captureEvent(t,n){return rt().captureEvent(t,n)},Dt=function configureScope(t){rt().configureScope(t)},Ot=function addBreadcrumb(t){rt().addBreadcrumb(t)},Nt=function setContext(t,n){rt().setContext(t,n)},Mt=function setExtras(t){rt().setExtras(t)},Bt=function setExtra(t,n){rt().setExtra(t,n)},At=function setTags(t){rt().setTags(t)},Ut=function setTag(t,n){rt().setTag(t,n)},Pt=function setUser(t){rt().setUser(t)},Lt=function withScope(t){rt().withScope(t)},Ft=function startTransaction(t,n){return rt().startTransaction(_object_spread({},t),n)},Gt=function lastEventId(){return rt().lastEventId()},Yt=function getBaseApiEndpoint(t){var n=t.protocol?"".concat(t.protocol,":"):"",r=t.port?":".concat(t.port):"";return"".concat(n,"//").concat(t.host).concat(r).concat(t.path?"/".concat(t.path):"","/api/")},Ht=function _encodedAuth(t,n){return function urlEncode(t){return Object.keys(t).map((function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n]))})).join("&")}(_object_spread({sentry_key:t.publicKey,sentry_version:vu},n&&{sentry_client:"".concat(n.name,"/").concat(n.version)}))},zt=function getEnvelopeEndpointWithUrlEncodedAuth(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="string"==typeof n?n:n.tunnel,o="string"!=typeof n&&n._metadata?n._metadata.sdk:void 0;return r||"".concat(function _getIngestEndpoint(t){return"".concat(Yt(t)).concat(t.projectId,"/envelope/")}(t),"?").concat(Ht(t,o))},qt=function createEventEnvelope(t,n,r,o){var a=ze(r),i=t.type&&"replay_event"!==t.type?t.type:"event";!function enhanceEventWithSdkInfo(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=_to_consumable_array(t.sdk.integrations||[]).concat(_to_consumable_array(n.integrations||[])),t.sdk.packages=_to_consumable_array(t.sdk.packages||[]).concat(_to_consumable_array(n.packages||[])))}(t,r&&r.sdk);var c=qe(t,a,o,n);return delete t.sdkProcessingMetadata,Be(c,[[{type:i},t]])},Wt=function getIntegrationsToSetup(t){var n=t.defaultIntegrations||[],r=t.integrations;n.forEach((function(t){t.isDefaultInstance=!0}));var o=function filterDuplicates(t){var n={};return t.forEach((function(t){var r=t.name,o=n[r];o&&!o.isDefaultInstance&&t.isDefaultInstance||(n[r]=t)})),Object.keys(n).map((function(t){return n[t]}))}(Array.isArray(r)?_to_consumable_array(n).concat(_to_consumable_array(r)):"function"==typeof r?K(r(n)):n),a=Kt(o,(function(t){return"Debug"===t.name}));if(-1!==a){var i=_sliced_to_array(o.splice(a,1),1)[0];o.push(i)}return o},Vt=function setupIntegration(t,n,r){if(r[n.name]=n,-1===yu.indexOf(n.name)&&(n.setupOnce(Xe,rt),yu.push(n.name)),t.on&&"function"==typeof n.preprocessEvent){var o=n.preprocessEvent.bind(n);t.on("preprocessEvent",(function(n,r){return o(n,r,t)}))}if(t.addEventProcessor&&"function"==typeof n.processEvent){var a=n.processEvent.bind(n),i=Object.assign((function(n,r){return a(n,r,t)}),{id:n.name});t.addEventProcessor(i)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Integration installed: ".concat(n.name))},$t=function addIntegration(t){var n=rt().getClient();n&&n.addIntegration?n.addIntegration(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn('Cannot add integration "'.concat(t.name,'" because no SDK Client is available.'))},Kt=function findIndex(t,n){for(var r=0;r0?tn(t,c,l):t}))},Xt=function applyClientOptions(t,n){var r=n.environment,o=n.release,a=n.dist,i=n.maxValueLength,c=void 0===i?250:i;"environment"in t||(t.environment="environment"in n?r:Cc),void 0===t.release&&void 0!==o&&(t.release=o),void 0===t.dist&&void 0!==a&&(t.dist=a),t.message&&(t.message=m(t.message,c));var u=t.exception&&t.exception.values&&t.exception.values[0];u&&u.value&&(u.value=m(u.value,c));var l=t.request;l&&l.url&&(l.url=m(l.url,c))},Qt=function applyDebugIds(t,n){var r=ks._sentryDebugIds;if(r){var o,a=gu.get(n);a?o=a:(o=new Map,gu.set(n,o));var i=Object.keys(r).reduce((function(t,a){var i,c=o.get(a);c?i=c:(i=n(a),o.set(a,i));for(var u=i.length-1;u>=0;u--){var l=i[u];if(l.filename){t[l.filename]=r[a];break}}return t}),{});try{t.exception.values.forEach((function(t){t.stacktrace.frames.forEach((function(t){t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}},Zt=function applyDebugMeta(t){var n={};try{t.exception.values.forEach((function(t){t.stacktrace.frames.forEach((function(t){t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0!==Object.keys(n).length){t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];var r=t.debug_meta.images;Object.keys(n).forEach((function(t){r.push({type:"sourcemap",code_file:t,debug_id:n[t]})}))}},en=function applyIntegrationsMetadata(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=_to_consumable_array(t.sdk.integrations||[]).concat(_to_consumable_array(n)))},tn=function normalizeEvent(t,n,r){if(!t)return null;var o=_object_spread({},t,t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return _object_spread({},t,t.data&&{data:ve(t.data,n,r)})}))},t.user&&{user:ve(t.user,n,r)},t.contexts&&{contexts:ve(t.contexts,n,r)},t.extra&&{extra:ve(t.extra,n,r)});return t.contexts&&t.contexts.trace&&o.contexts&&(o.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(o.contexts.trace.data=ve(t.contexts.trace.data,n,r))),t.spans&&(o.spans=t.spans.map((function(t){return t.data&&(t.data=ve(t.data,n,r)),t}))),o},nn=function isErrorEvent2(t){return void 0===t.type},rn=function isTransactionEvent(t){return"transaction"===t.type},an=function createTransport(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xe(t.bufferSize||Eu),o={};function send(a){var i=[];if(Ue(a,(function(n,r){var a=He(r);if(Ve(o,a)){var c=sn(n,r);t.recordDroppedEvent("ratelimit_backoff",a,c)}else i.push(n)})),0===i.length)return Te();var c=Be(a[0],i),recordEnvelopeLoss=function(n){Ue(c,(function(r,o){var a=sn(r,o);t.recordDroppedEvent(n,He(o),a)}))};return r.add((function(){return n({body:Le(c,t.textEncoder)}).then((function(t){return void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Sentry responded with status code ".concat(t.statusCode," to sent event.")),o=$e(o,t),t}),(function(t){throw recordEnvelopeLoss("network_error"),t}))})).then((function(t){return t}),(function(t){if(_instanceof(t,Ds))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Skipped sending event because buffer is full."),recordEnvelopeLoss("queue_overflow"),Te();throw t}))}return send.__sentry__baseTransport__=!0,{send:send,flush:function(t){return r.drain(t)}}},sn=function getEventForEnvelopeItem(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0},cn=function log(t,n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.info("[Offline]: ".concat(t),n)},un=function makeOfflineTransport(t){return function(n){var r,o=t(n),a=n.createStore?n.createStore(n):void 0,i=Tu;function shouldQueue(t,r,o){return!function envelopeContainsItemType(t,n){return Ue(t,(function(t,r){return n.includes(r)}))}(t,["replay_event","replay_recording","client_report"])&&(!n.shouldStore||n.shouldStore(t,r,o))}function flushIn(t){a&&(r&&clearTimeout(r),"number"!=typeof(r=setTimeout(_async_to_generator((function(){var t;return _ts_generator(this,(function(n){switch(n.label){case 0:return r=void 0,[4,a.pop()];case 1:return(t=n.sent())&&(cn("Attempting to send previously queued event"),send(t).catch((function(t){cn("Failed to retry sending",t)}))),[2]}}))})),t))&&r.unref&&r.unref())}function flushWithBackOff(){r||(flushIn(i),i=Math.min(2*i,wu))}function send(t){return _send.apply(this,arguments)}function _send(){return(_send=_async_to_generator((function(t){var n,r,c,u;return _ts_generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,8]),[4,o.send(t)];case 1:if(n=l.sent(),r=ku,n)if(n.headers&&n.headers["retry-after"])r=We(n.headers["retry-after"]);else if((n.statusCode||0)>=400)return[2,n];return flushIn(r),i=Tu,[2,n];case 2:return c=l.sent(),(u=a)?[4,shouldQueue(t,c,i)]:[3,4];case 3:u=l.sent(),l.label=4;case 4:return u?[4,a.insert(t)]:[3,6];case 5:return l.sent(),flushWithBackOff(),cn("Error sending. Event queued",c),[2,{}];case 6:throw c;case 7:return[3,8];case 8:return[2]}}))}))).apply(this,arguments)}return n.flushAtStartup&&flushWithBackOff(),{send:send,flush:function(t){return o.flush(t)}}}},ln=function eventFromEnvelope(t,n){var r;return Ue(t,(function(t,o){return n.includes(o)&&(r=Array.isArray(t)?t[1]:void 0),!!r})),r},dn=function makeMultiplexedTransport(t,n){return function(r){var o=t(r),a={};function getTransport(n,o){var i=o?"".concat(n,":").concat(o):n;if(!a[i]){var c=O(n);if(!c)return;var u=zt(c);a[i]=o?function makeOverrideReleaseTransport(t,n){return function(r){var o,a=t(r);return{send:(o=_async_to_generator((function(t){var r;return _ts_generator(this,(function(o){return(r=ln(t,["event","transaction","profile","replay_event"]))&&(r.release=n),[2,a.send(t)]}))})),function(t){return o.apply(this,arguments)}),flush:function(t){return a.flush(t)}}}}(t,o)(_object_spread_props(_object_spread({},r),{url:u})):t(_object_spread_props(_object_spread({},r),{url:u}))}return a[i]}function _send(){return(_send=_async_to_generator((function(t){var r;function getEvent(n){var r=n&&n.length?n:["event"];return ln(t,r)}return _ts_generator(this,(function(a){switch(a.label){case 0:return 0===(r=n({envelope:t,getEvent:getEvent}).map((function(t){return"string"==typeof t?getTransport(t,void 0):getTransport(t.dsn,t.release)})).filter((function(t){return!!t}))).length&&r.push(o),[4,Promise.all(r.map((function(n){return n.send(t)})))];case 1:return[2,a.sent()[0]]}}))}))).apply(this,arguments)}function _flush2(){return(_flush2=_async_to_generator((function(t){var n;return _ts_generator(this,(function(r){switch(r.label){case 0:return n=_to_consumable_array(Object.keys(a).map((function(t){return a[t]}))).concat([o]),[4,Promise.all(n.map((function(n){return n.flush(t)})))];case 1:return[2,r.sent().every((function(t){return t}))]}}))}))).apply(this,arguments)}return{send:function send(t){return _send.apply(this,arguments)},flush:function flush2(t){return _flush2.apply(this,arguments)}}}},pn=function _isIgnoredError(t,n){return!(t.type||!n||!n.length)&&mn(t).some((function(t){return b(t,n)}))},fn=function _isIgnoredTransaction(t,n){if("transaction"!==t.type||!n||!n.length)return!1;var r=t.transaction;return!!r&&b(r,n)},_n=function _isDeniedUrl(t,n){if(!n||!n.length)return!1;var r=yn(t);return!!r&&b(r,n)},hn=function _isAllowedUrl(t,n){if(!n||!n.length)return!0;var r=yn(t);return!r||b(r,n)},mn=function _getPossibleEventMessages(t){var n,r=[];t.message&&r.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(r.push(n.value),n.type&&r.push("".concat(n.type,": ").concat(n.value))),"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==r.length||Cs.error("Could not extract message for event ".concat(q(t))),r},vn=function _isSentryError(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1},yn=function _getEventFilterUrl(t){try{var n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function _getLastValidUrl(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.length-1;n>=0;n--){var r=t[n];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(n):null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Cannot extract url for event ".concat(q(t))),null}},gn=function isSentryRequestUrl(t,n){var r=n.getClient(),o=r&&r.getDsn(),a=r&&r.getOptions().tunnel;return Sn(t,o)||bn(t,a)},bn=function checkTunnel(t,n){return!!n&&En(t)===En(n)},Sn=function checkDsn(t,n){return!!n&&t.includes(n.host)},En=function removeTrailingSlash(t){return"/"===t[t.length-1]?t.slice(0,-1):t},kn=function getMetadataForUrl(t,n){return function ensureMetadataStacksAreParsed(t){if(ks._sentryModuleMetadata){var n=!0,r=!1,o=void 0;try{for(var a,i=Object.keys(ks._sentryModuleMetadata)[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value,u=ks._sentryModuleMetadata[c];if(!Ku.has(c)){Ku.add(c);var l=t(c),d=!0,p=!1,f=void 0;try{for(var _,h=l.reverse()[Symbol.iterator]();!(d=(_=h.next()).done);d=!0){var m=_.value;if(m.filename){$u.set(m.filename,u);break}}}catch(t){p=!0,f=t}finally{try{d||null==h.return||h.return()}finally{if(p)throw f}}}}}catch(t){r=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}}(t),$u.get(n)},Tn=function shouldIgnoreOnError(){return Qu>0},wn=function exceptionFromError2(t,n){var r=Rn(t,n),o={type:n&&n.name,value:Cn(n)};return r.length&&(o.stacktrace={frames:r}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o},xn=function eventFromError(t,n){return{exception:{values:[wn(t,n)]}}},Rn=function parseStackFrames2(t,n){var r=n.stacktrace||n.stack||"",o=In(n);try{return t(r,o)}catch(t){}return[]},In=function getPopSize(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ol.test(t.message))return 1}return 0},Cn=function extractMessage(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"},jn=function eventFromException(t,n,r,o){var a=r&&r.syntheticException||void 0,i=On(t,n,a,o);return V(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),Te(i)},Dn=function eventFromMessage2(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=o&&o.syntheticException||void 0,c=Nn(t,n,i,a);return c.level=r,o&&o.event_id&&(c.event_id=o.event_id),Te(c)},On=function eventFromUnknownInput2(t,n,c,u,p){var f;if(a(n)&&n.error)return xn(t,n.error);if(i(n)||function isDOMException(t){return o(t,"DOMException")}(n)){var _=n;if("stack"in n)f=xn(t,n);else{var h=_.name||(i(_)?"DOMError":"DOMException"),m=_.message?"".concat(h,": ").concat(_.message):h;f=Nn(t,m,c,u),W(f,m)}return"code"in _&&(f.tags=_object_spread_props(_object_spread({},f.tags),{"DOMException.code":"".concat(_.code)})),f}return r(n)?xn(t,n):l(n)||d(n)?(f=function eventFromPlainObject(t,n,r,o){var a=rt().getClient(),i=a&&a.getOptions().normalizeDepth,c={exception:{values:[{type:d(n)?n.constructor.name:o?"UnhandledRejection":"Error",value:Mn(n,{isUnhandledRejection:o})}]},extra:{__serialized__:normalizeToSize(n,i)}};if(r){var u=Rn(t,r);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}(t,n,c,p),V(f,{synthetic:!0}),f):(f=Nn(t,n,c,u),W(f,"".concat(n),void 0),V(f,{synthetic:!0}),f)},Nn=function eventFromString(t,n,r,o){var a={message:n};if(o&&r){var i=Rn(t,r);i.length&&(a.exception={values:[{value:n,stacktrace:{frames:i}}]})}return a},Mn=function getNonErrorObjectExceptionValue(t,n){var r=n.isUnhandledRejection,o=function extractExceptionKeysForMessage(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=Object.keys(L(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return m(r[0],n);for(var o=r.length;o>0;o--){var a=r.slice(0,o).join(", ");if(!(a.length>n))return o===r.length?a:m(a,n)}return""}(t),i=r?"promise rejection":"exception";if(a(t))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(t.message,"`");if(d(t)){var c=Bn(t);return"Event `".concat(c,"` (type=").concat(t.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(o)},Bn=function getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}},An=function createUserFeedbackEnvelope(t,n){var r=n.metadata,o=n.tunnel,a=n.dsn,i=_object_spread({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&r.sdk&&{sdk:{name:r.sdk.name,version:r.sdk.version}},!!o&&!!a&&{dsn:D(a)}),c=Un(t);return Be(i,[c])},Un=function createUserFeedbackEnvelopeItem(t){return[{type:"user_report"},t]},Pn=function makeFetchTransport(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function getNativeFetchImplementation(){if(il)return il;if(te(Xu.fetch))return il=Xu.fetch.bind(Xu);var t=Xu.document,n=Xu.fetch;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);var o=r.contentWindow;o&&o.fetch&&(n=o.fetch),t.head.removeChild(r)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return il=n.bind(Xu)}(),r=0,o=0;return an(t,(function makeRequest(a){var i=a.body.length;r+=i,o++;var c=_object_spread({body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&o<15},t.fetchOptions);try{return n(t.url,c).then((function(t){return r-=i,o--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}))}catch(t){return function clearCachedFetchImplementation(){il=void 0}(),r-=i,o--,we(t)}}))},Ln=function makeXHRTransport(t){return an(t,(function makeRequest(n){return new fc((function(r,o){var a=new XMLHttpRequest;for(var i in a.onerror=o,a.onreadystatechange=function(){a.readyState===sl&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&a.setRequestHeader(i,t.headers[i]);a.send(n.body)}))}))},Fn=function createFrame(t,n,r,o){var a={filename:t,function:n,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==o&&(a.colno=o),a},Gn=function _installGlobalOnErrorHandler(){re("error",(function(t){var n=_sliced_to_array($n(),3),r=n[0],o=n[1],a=n[2];if(r.getIntegration(Tl)){var i=t.msg,u=t.url,l=t.line,d=t.column,p=t.error;if(!(Tn()||p&&p.__sentry_own_request__)){var f=void 0===p&&c(i)?zn(i,u,l,d):qn(On(o,p||i,void 0,a,!1),u,l,d);f.level="error",Vn(r,p,f,"onerror")}}}))},Yn=function _installGlobalOnUnhandledRejectionHandler(){re("unhandledrejection",(function(t){var n=_sliced_to_array($n(),3),r=n[0],o=n[1],a=n[2];if(r.getIntegration(Tl)){var i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(Tn()||i&&i.__sentry_own_request__)return!0;var c=u(i)?Hn(i):On(o,i,void 0,a,!0);c.level="error",Vn(r,i,c,"onunhandledrejection")}}))},Hn=function _eventFromRejectionWithPrimitive(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(t))}]}}},zn=function _eventFromIncompleteOnError(t,n,r,o){var i=a(t)?t.message:t,c="Error",u=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return u&&(c=u[1],i=u[2]),qn({exception:{values:[{type:c,value:i}]}},n,r,o)},qn=function _enhanceEventWithInitialFrame(t,n,r,o){var a=t.exception=t.exception||{},i=a.values=a.values||[],u=i[0]=i[0]||{},l=u.stacktrace=u.stacktrace||{},d=l.frames=l.frames||[],p=isNaN(parseInt(o,10))?void 0:o,f=isNaN(parseInt(r,10))?void 0:r,_=c(n)&&n.length>0?n:function getLocationHref(){try{return Ts.document.location.href}catch(t){return""}}();return 0===d.length&&d.push({colno:p,filename:_,function:"?",in_app:!0,lineno:f}),t},Wn=function globalHandlerLog(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Global Handler attached: ".concat(t))},Vn=function addMechanismAndCapture(t,n,r,o){V(r,{handled:!1,type:o}),t.captureEvent(r,{originalException:n})},$n=function getHubAndOptions(){var t=rt(),n=t.getClient(),r=n&&n.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[t,r.stackParser,r.attachStacktrace]},Kn=function _wrapTimeFunction(t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};void 0===t.defaultIntegrations&&(t.defaultIntegrations=Ol),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Xu.SENTRY_RELEASE&&Xu.SENTRY_RELEASE.id&&(t.release=Xu.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var n=_object_spread_props(_object_spread({},t),{stackParser:X(t.stackParser||El),integrations:Wt(t),transport:t.transport||(ee()?Pn:Ln)});!function initAndBind(t,n){!0===n.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Cs.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var r=rt();r.getScope().update(n.initialScope);var o=new t(n);r.bindClient(o)}(al,n),t.autoSessionTracking&&yr()},fr=function showReportDialog(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt();if(Xu.document){var r=n.getStackTop(),o=r.client,a=r.scope,i=t.dsn||o&&o.getDsn();if(i){a&&(t.user=_object_spread({},a.getUser(),t.user)),t.eventId||(t.eventId=n.lastEventId());var c=Xu.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=function getReportDialogEndpoint(t,n){var r=M(t);if(!r)return"";var o="".concat(Yt(r),"embed/error-page/"),a="dsn=".concat(D(r));for(var i in n)if("dsn"!==i)if("user"===i){var c=n.user;if(!c)continue;c.name&&(a+="&name=".concat(encodeURIComponent(c.name))),c.email&&(a+="&email=".concat(encodeURIComponent(c.email)))}else a+="&".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(n[i]));return"".concat(o,"?").concat(a)}(i,t),t.onLoad&&(c.onload=t.onLoad);var u=Xu.document.head||Xu.document.body;u?u.appendChild(c):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("DSN not configured for showReportDialog call")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Global document not defined in showReportDialog call")},_r=function forceLoad(){},hr=function onLoad(t){t()},mr=function wrap2(t){return wrap(t)()},vr=function startSessionOnHub(t){t.startSession({ignoreDuration:!0}),t.captureSession()},yr=function startSessionTracking(){if(void 0!==Xu.document){var t=rt();t.captureSession&&(vr(t),re("history",(function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&vr(rt())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")},gr=function captureUserFeedback(t){var n=rt().getClient();n&&n.captureUserFeedback(t)},br=function addLcpInstrumentationHandler(t){return xr("lcp",t,wr,md)},Sr=function addPerformanceInstrumentationHandler(t,n){return Ir(t,n),fd[t]||(Rr(t),fd[t]=!0),Cr(t,n)},Er=function triggerHandlers2(t,n){var r=pd[t];if(r&&r.length){var o=!0,a=!1,i=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value;try{l(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(Z(l),"\nError:"),n)}}}catch(t){a=!0,i=t}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}}},kr=function instrumentCls(){od((function(t){Er("cls",{metric:t}),_d=t}))},Tr=function instrumentFid(){ud((function(t){Er("fid",{metric:t}),hd=t}))},wr=function instrumentLcp(){dd((function(t){Er("lcp",{metric:t}),md=t}))},xr=function addMetricObserver(t,n,r,o){return Ir(t,n),fd[t]||(r(),fd[t]=!0),o&&n({metric:o}),Cr(t,n)},Rr=function instrumentPerformanceObserver(t){var n={};"event"===t&&(n.durationThreshold=0),nd(t,(function(n){Er(t,{entries:n})}),n)},Ir=function addHandler(t,n){pd[t]=pd[t]||[],pd[t].push(n)},Cr=function getCleanupCallback(t,n){return function(){var r=pd[t];if(r){var o=r.indexOf(n);-1!==o&&r.splice(o,1)}}},jr=function isMeasurementValue(t){return"number"==typeof t&&isFinite(t)},Dr=function _startChild(t,n){var r=n.startTimestamp,o=_object_without_properties(n,["startTimestamp"]);return r&&t.startTimestamp>r&&(t.startTimestamp=r),t.startChild(_object_spread({startTimestamp:r},o))},Or=function msToSec(t){return t/1e3},Nr=function getBrowserPerformanceAPI(){return Kl&&Kl.addEventListener&&Kl.performance},Mr=function _trackCLS(){return function addClsInstrumentationHandler(t){return xr("cls",t,kr,_d)}((function(t){var n=t.metric,r=n.entries.pop();r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding CLS"),yd.cls={value:n.value,unit:""},bd=r)}))},Br=function _trackLCP(){return br((function(t){var n=t.metric,r=n.entries.pop();r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding LCP"),yd.lcp={value:n.value,unit:"millisecond"},gd=r)}))},Ar=function _trackFID(){return function addFidInstrumentationHandler(t){return xr("fid",t,Tr,hd)}((function(t){var n=t.metric,r=n.entries.pop();if(r){var o=Or(Sc),a=Or(r.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding FID"),yd.fid={value:n.value,unit:"millisecond"},yd["mark.fid"]={value:o+a,unit:"second"}}}))},Ur=function _addMeasureSpans(t,n,r,o,a){var i=a+r,c=i+o;return Dr(t,{description:n.name,endTimestamp:c,op:n.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i},Pr=function _addNavigationSpans(t,n,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(o){Lr(t,n,o,r)})),Lr(t,n,"secureConnection",r,"TLS/SSL","connectEnd"),Lr(t,n,"fetch",r,"cache","domainLookupStart"),Lr(t,n,"domainLookup",r,"DNS"),Fr(t,n,r)},Lr=function _addPerformanceNavigationTiming(t,n,r,o,a,i){var c=i?n[i]:n["".concat(r,"End")],u=n["".concat(r,"Start")];u&&c&&Dr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:a||r,startTimestamp:o+Or(u),endTimestamp:o+Or(c)})},Fr=function _addRequest(t,n,r){Dr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Or(n.requestStart),endTimestamp:r+Or(n.responseEnd)}),Dr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Or(n.responseStart),endTimestamp:r+Or(n.responseEnd)})},Gr=function _addResourceSpans(t,n,r,o,a,i){if("xmlhttprequest"!==n.initiatorType&&"fetch"!==n.initiatorType){var c={};"transferSize"in n&&(c["http.response_transfer_size"]=n.transferSize),"encodedBodySize"in n&&(c["http.response_content_length"]=n.encodedBodySize),"decodedBodySize"in n&&(c["http.decoded_response_content_length"]=n.decodedBodySize),"renderBlockingStatus"in n&&(c["resource.render_blocking_status"]=n.renderBlockingStatus);var u=i+o;Dr(t,{description:r,endTimestamp:u+a,op:n.initiatorType?"resource.".concat(n.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:c})}},Yr=function _trackNavigator(t){var n=Kl.navigator;if(n){var r=n.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),jr(r.rtt)&&(yd["connection.rtt"]={value:r.rtt,unit:"millisecond"})),jr(n.deviceMemory)&&t.setTag("deviceMemory","".concat(n.deviceMemory," GB")),jr(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},Hr=function _tagMetricInfo(t){gd&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding LCP Data"),gd.element&&t.setTag("lcp.element",I(gd.element)),gd.id&&t.setTag("lcp.id",gd.id),gd.url&&t.setTag("lcp.url",gd.url.trim().slice(0,200)),t.setTag("lcp.size",gd.size)),bd&&bd.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding CLS Data"),bd.sources.forEach((function(n,r){return t.setTag("cls.source.".concat(r+1),I(n.node))})))},zr=function instrumentOutgoingRequests(t){var n=_object_spread({traceFetch:Ed.traceFetch,traceXHR:Ed.traceXHR},t),r=n.traceFetch,o=n.traceXHR,a=n.tracePropagationTargets,i=n.tracingOrigins,c=n.shouldCreateSpanForRequest,u=n.enableHTTPTimings,l="function"==typeof c?c:function(t){return!0},shouldAttachHeadersWithTargets=function(t){return $r(t,a||i)},d={};r&&re("fetch",(function(t){var n=Kr(t,l,shouldAttachHeadersWithTargets,d);u&&n&&qr(n)})),o&&re("xhr",(function(t){var n=Xr(t,l,shouldAttachHeadersWithTargets,d);u&&n&&qr(n)}))},qr=function addHTTPTimings(t){var n=t.data.url;if(n)var r=Sr("resource",(function(o){o.entries.forEach((function(o){var a;(function isPerformanceResourceTiming(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)})(o)&&o.name.endsWith(n)&&(Vr(o).forEach((function(n){return(a=t).setData.apply(a,_to_consumable_array(n))})),setTimeout(r))}))}))},Wr=function getAbsoluteTime(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((Sc||performance.timeOrigin)+t)/1e3},Vr=function resourceTimingEntryToSpanData(t){var n=function extractNetworkProtocol(t){var n="unknown",r="unknown",o="",a=!0,i=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;if("/"===d){var p;n=(p=_sliced_to_array(t.split("/"),2))[0],r=p[1];break}if(!isNaN(Number(d))){n="h"===o?"http":o,r=t.split(o)[1];break}o+=d}}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}return o===t&&(n=o),{name:n,version:r}}(t.nextHopProtocol),r=n.name,o=n.version,a=[];return a.push(["network.protocol.version",o],["network.protocol.name",r]),Sc?_to_consumable_array(a).concat([["http.request.redirect_start",Wr(t.redirectStart)],["http.request.fetch_start",Wr(t.fetchStart)],["http.request.domain_lookup_start",Wr(t.domainLookupStart)],["http.request.domain_lookup_end",Wr(t.domainLookupEnd)],["http.request.connect_start",Wr(t.connectStart)],["http.request.secure_connection_start",Wr(t.secureConnectionStart)],["http.request.connection_end",Wr(t.connectEnd)],["http.request.request_start",Wr(t.requestStart)],["http.request.response_start",Wr(t.responseStart)],["http.request.response_end",Wr(t.responseEnd)]]):a},$r=function shouldAttachHeaders(t,n){return b(t,n||Sd)},Kr=function fetchCallback(t,n,r,o){if(pt()&&t.fetchData){var a=n(t.fetchData.url);if(!t.endTimestamp||!a){var i=rt(),c=i.getScope(),u=i.getClient(),l=c.getSpan(),d=t.fetchData,p=d.method,f=d.url,_=a&&l?l.startChild({data:{url:f,type:"fetch","http.method":p},description:"".concat(p," ").concat(f),op:"http.client",origin:"auto.http.browser"}):void 0;if(_&&(t.fetchData.__span=_.spanId,o[_.spanId]=_),r(t.fetchData.url)&&u){var h=t.args[0];t.args[1]=t.args[1]||{};var m=t.args[1];m.headers=Jr(h,u,c,m,_)}return _}var v=t.fetchData.__span;if(!v)return;var y=o[v];if(y){if(t.response){y.setHttpStatus(t.response.status);var g=t.response&&t.response.headers&&t.response.headers.get("content-length"),b=parseInt(g);b>0&&y.setData("http.response_content_length",b)}else t.error&&y.setStatus("internal_error");y.finish(),delete o[v]}}},Jr=function addTracingHeadersToFetchRequest(t,n,r,o,a){var i=a||r.getSpan(),c=i&&i.transaction,u=r.getPropagationContext(),l=u.traceId,d=u.sampled,p=u.dsc,f=i?i.toTraceparent():Me(l,void 0,d),h=c?c.getDynamicSamplingContext():p||dt(l,n,r),m=Ce(h),v="undefined"!=typeof Request&&_(t,Request)?t.headers:o.headers;if(v){if("undefined"!=typeof Headers&&_(v,Headers)){var y=new Headers(v);return y.append("sentry-trace",f),m&&y.append(Ec,m),y}if(Array.isArray(v)){var g=_to_consumable_array(v).concat([["sentry-trace",f]]);return m&&g.push([Ec,m]),g}var b,S="baggage"in v?v.baggage:void 0,E=[];return Array.isArray(S)?(b=E).push.apply(b,_to_consumable_array(S)):S&&E.push(S),m&&E.push(m),_object_spread_props(_object_spread({},v),{"sentry-trace":f,baggage:E.length>0?E.join(","):void 0})}return{"sentry-trace":f,baggage:m}},Xr=function xhrCallback(t,n,r,o){var a=t.xhr,i=a&&a[qs];if(!(!pt()||a&&a.__sentry_own_request__)&&a&&i){var c=n(i.url);if(!t.endTimestamp||!c){var u=rt(),l=u.getScope(),d=l.getSpan(),p=c&&d?d.startChild({data:_object_spread_props(_object_spread({},i.data),{type:"xhr","http.method":i.method,url:i.url}),description:"".concat(i.method," ").concat(i.url),op:"http.client",origin:"auto.http.browser"}):void 0;if(p&&(a.__sentry_xhr_span_id__=p.spanId,o[a.__sentry_xhr_span_id__]=p),a.setRequestHeader&&r(i.url))if(p){var f=p&&p.transaction,_=f&&f.getDynamicSamplingContext(),h=Ce(_);Qr(a,p.toTraceparent(),h)}else{var m=u.getClient(),v=l.getPropagationContext(),y=v.traceId,g=v.sampled,b=v.dsc,S=Me(y,void 0,g),E=b||(m?dt(y,m,l):void 0),k=Ce(E);Qr(a,S,k)}return p}var T=a.__sentry_xhr_span_id__;if(!T)return;var w=o[T];w&&(w.setHttpStatus(i.status_code),w.finish(),delete o[T])}},Qr=function setHeaderOnXhr(t,n,r){try{t.setRequestHeader("sentry-trace",n),r&&t.setRequestHeader(Ec,r)}catch(t){}},Zr=function instrumentRoutingWithDefaults(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Kl&&Kl.location){var o,a=Kl.location.href;n&&(o=t({name:Kl.location.pathname,startTimestamp:Sc?Sc/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&re("history",(function(n){var r=n.to,i=n.from;void 0===i&&a&&-1!==a.indexOf(r)?a=void 0:i!==r&&(a=void 0,o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Finishing current transaction with op: ".concat(o.op)),o.finish()),o=t({name:Kl.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Could not initialize routing instrumentation due to invalid location")},eo=function getMetaContent(t){var n=function getDomElement(t){return Ts.document&&Ts.document.querySelector?Ts.document.querySelector(t):null}("meta[name=".concat(t,"]"));return n?n.getAttribute("content"):void 0},to=function isShadowRoot(t){var n=null==t?void 0:t.host;return Boolean((null==n?void 0:n.shadowRoot)===t)},no=function isNativeShadowDom(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)},ro=function stringifyStylesheet(t){try{var n=t.rules||t.cssRules;return n?function fixBrowserCompatibilityIssuesInCSS(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}(Array.from(n,oo).join("")):null}catch(t){return null}},oo=function stringifyRule(t){var n;if(io(t))try{n=ro(t.styleSheet)||function escapeImportStatement(t){var n=t.cssText;if(n.split('"').length<3)return n;var r=["@import","url(".concat(JSON.stringify(t.href),")")];return""===t.layerName?r.push("layer"):t.layerName&&r.push("layer(".concat(t.layerName,")")),t.supportsText&&r.push("supports(".concat(t.supportsText,")")),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}(t)}catch(t){}else if(so(t)&&t.selectorText.includes(":"))return ao(t.cssText);return n||t.cssText},ao=function fixSafariColons(t){return t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")},io=function isCSSImportRule(t){return"styleSheet"in t},so=function isCSSStyleRule(t){return"selectorText"in t},co=function shouldMaskInput(t){var n=t.maskInputOptions,r=t.tagName,o=t.type;return"OPTION"===r&&(r="SELECT"),Boolean(n[r.toLowerCase()]||o&&n[o]||"password"===o||"INPUT"===r&&!o&&n.text)},uo=function maskInputValue(t){var n=t.isMasked,r=t.element,o=t.value,a=t.maskInputFn,i=o||"";return n?(a&&(i=a(i,r)),"*".repeat(i.length)):i},lo=function toLowerCase(t){return t.toLowerCase()},po=function toUpperCase(t){return t.toUpperCase()},fo=function getInputType(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?lo(n):null},_o=function getInputValue(t,n,r){return"INPUT"!==n||"radio"!==r&&"checkbox"!==r?t.value:t.getAttribute("value")||""},ho=function genId(){return Pd++},mo=function absoluteToStylesheet(t,n){return(t||"").replace(Hd,(function(t,r,o,a,i,c){var u=o||i||c,l=r||a||"";if(!u)return t;if(zd.test(u)||qd.test(u))return"url(".concat(l).concat(u).concat(l,")");if(Wd.test(u))return"url(".concat(l).concat(u).concat(l,")");if("/"===u[0])return"url(".concat(l).concat(function extractOrigin(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(n)+u).concat(l,")");var d=n.split("/"),p=u.split("/");d.pop();var f=!0,_=!1,h=void 0;try{for(var m,v=p[Symbol.iterator]();!(f=(m=v.next()).done);f=!0){var y=m.value;"."!==y&&(".."===y?d.pop():d.push(y))}}catch(t){_=!0,h=t}finally{try{f||null==v.return||v.return()}finally{if(_)throw h}}return"url(".concat(l).concat(d.join("/")).concat(l,")")}))},vo=function absoluteToDoc(t,n){if(!n||""===n.trim())return n;var r=t.createElement("a");return r.href=n,r.href},yo=function isSVGElement(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)},go=function getHref(){var t=document.createElement("a");return t.href="",t.href},bo=function transformAttribute(t,n,r,o,a,i){return o?"src"===r||"href"===r&&("use"!==n||"#"!==o[0])||"xlink:href"===r&&"#"!==o[0]?vo(t,o):"background"!==r||"table"!==n&&"td"!==n&&"th"!==n?"srcset"===r?function getAbsoluteSrcsetString(t,n){if(""===n.trim())return n;var r=0;function collectCharacters(t){var o,a=t.exec(n.substring(r));return a?(o=a[0],r+=o.length,o):""}for(var o=[];collectCharacters($d),!(r>=n.length);){var a=collectCharacters(Vd);if(","===a.slice(-1))a=vo(t,a.substring(0,a.length-1)),o.push(a);else{var i="";a=vo(t,a);for(var c=!1;;){var u=n.charAt(r);if(""===u){o.push((a+i).trim());break}if(c)")"===u&&(c=!1);else{if(","===u){r+=1,o.push((a+i).trim());break}"("===u&&(c=!0)}i+=u,r+=1}}}return o.join(", ")}(t,o):"style"===r?mo(o,go()):"object"===n&&"data"===r?vo(t,o):"function"==typeof i?i(r,o,a):o:vo(t,o):o},So=function ignoreAttribute(t,n,r){return("video"===t||"audio"===t)&&"autoplay"===n},Eo=function createMatchPredicate(t,n){return function(r){var o=r;if(null===o)return!1;if(t)if("string"==typeof t){if(o.matches(".".concat(t)))return!0}else if(function elementClassMatchesRegex(t,n){for(var r=t.classList.length;r--;){var o=t.classList[r];if(n.test(o))return!0}return!1}(o,t))return!0;return!(!n||!o.matches(n))}},ko=function needMaskingText(t,n,r,o,a,i){try{var c=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===c)return!1;var u=-1,l=-1;if(i){if((l=distanceToMatch(c,Eo(o,a)))<0)return!0;u=distanceToMatch(c,Eo(n,r),l>=0?l:1/0)}else{if((u=distanceToMatch(c,Eo(n,r)))<0)return!1;l=distanceToMatch(c,Eo(o,a),u>=0?u:1/0)}return u>=0?!(l>=0)||u<=l:!(l>=0)&&!!i}catch(t){}return!!i},To=function getRootId(t,n){if(n.hasNode(t)){var r=n.getId(t);return 1===r?void 0:r}},wo=function serializeTextNode(t,n){var r,o=n.maskAllText,a=n.maskTextClass,i=n.unmaskTextClass,c=n.maskTextSelector,u=n.unmaskTextSelector,l=n.maskTextFn,d=n.maskInputOptions,p=n.maskInputFn,f=n.rootId,_=t.parentNode&&t.parentNode.tagName,h=t.textContent,m="STYLE"===_||void 0,v="SCRIPT"===_||void 0,y="TEXTAREA"===_||void 0;if(m&&h){try{t.nextSibling||t.previousSibling||(null===(r=t.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(h=ro(t.parentNode.sheet))}catch(n){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(n),t)}h=mo(h,go())}v&&(h="SCRIPT_PLACEHOLDER");var g=ko(t,a,c,i,u,o);if(m||v||y||!h||!g||(h=l?l(h):h.replace(/[\S]/g,"*")),y&&h&&(d.textarea||g)&&(h=p?p(h,t.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===_&&h){var b=co({type:null,tagName:_,maskInputOptions:d});h=uo({isMasked:ko(t,a,c,i,u,b),element:t,value:h,maskInputFn:p})}return{type:Bd.Text,textContent:h||"",isStyle:m,rootId:f}},xo=function serializeElementNode(t,n){for(var r,o=n.doc,a=n.blockClass,i=n.blockSelector,c=n.unblockSelector,u=n.inlineStylesheet,l=n.maskInputOptions,d=void 0===l?{}:l,p=n.maskAttributeFn,f=n.maskInputFn,_=n.dataURLOptions,h=void 0===_?{}:_,m=n.inlineImages,v=n.recordCanvas,y=n.keepIframeSrcFn,g=n.newlyAddedElement,b=void 0!==g&&g,S=n.rootId,E=(n.maskAllText,n.maskTextClass),k=n.unmaskTextClass,T=n.maskTextSelector,w=n.unmaskTextSelector,x=function _isBlockedElement(t,n,r,o){try{if(o&&t.matches(o))return!1;if("string"==typeof n){if(t.classList.contains(n))return!0}else for(var a=t.classList.length;a--;){var i=t.classList[a];if(n.test(i))return!0}if(r)return t.matches(r)}catch(t){}return!1}(t,a,i,c),R=function getValidTagName(t){if(_instanceof(t,HTMLFormElement))return"form";var n=lo(t.tagName);return Ld.test(n)?"div":n}(t),I={},C=t.attributes.length,j=0;j2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return r.addEventListener(t,n,o),function(){return r.removeEventListener(t,n,o)}},Co=function throttle$1(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,a=0;return function(){for(var i=arguments.length,c=new Array(i),u=0;un?(o&&(clearTimeout(o),o=null),a=l,t.apply(p,c)):o||!1===r.trailing||(o=setTimeout((function(){a=!1===r.leading?0:Date.now(),o=null,t.apply(p,c)}),d))}},jo=function patch(t,n,r){try{if(!(n in t))return function(){};var o=t[n],a=r(o);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:o}})),t[n]=a,function(){t[n]=o}}catch(t){return function(){}}},Do=function getWindowScroll(t){var n,r,o,a,i,c,u=t.document;return{left:u.scrollingElement?u.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:(null==u?void 0:u.documentElement.scrollLeft)||(null===(r=null===(n=null==u?void 0:u.body)||void 0===n?void 0:n.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(o=null==u?void 0:u.body)||void 0===o?void 0:o.scrollLeft)||0,top:u.scrollingElement?u.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==u?void 0:u.documentElement.scrollTop)||(null===(i=null===(a=null==u?void 0:u.body)||void 0===a?void 0:a.parentElement)||void 0===i?void 0:i.scrollTop)||(null===(c=null==u?void 0:u.body)||void 0===c?void 0:c.scrollTop)||0}},Oo=function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},No=function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},Mo=function isBlocked(t,n,r,o,a){if(!t)return!1;var i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!i)return!1;var c=Eo(n,r);if(!a){var u=o&&i.matches(o);return c(i)&&!u}var l=distanceToMatch(i,c),d=-1;return!(l<0)&&(o&&(d=distanceToMatch(i,Eo(null,o))),l>-1&&d<0||l0&&void 0!==arguments[0]?arguments[0]:{},n=t.emit,r=t.checkoutEveryNms,o=t.checkoutEveryNth,a=t.blockClass,i=void 0===a?"rr-block":a,c=t.blockSelector,u=void 0===c?null:c,l=t.unblockSelector,d=void 0===l?null:l,p=t.ignoreClass,f=void 0===p?"rr-ignore":p,_=t.ignoreSelector,h=void 0===_?null:_,m=t.maskAllText,v=void 0!==m&&m,y=t.maskTextClass,g=void 0===y?"rr-mask":y,b=t.unmaskTextClass,S=void 0===b?null:b,E=t.maskTextSelector,k=void 0===E?null:E,T=t.unmaskTextSelector,w=void 0===T?null:T,x=t.inlineStylesheet,R=void 0===x||x,I=t.maskAllInputs,C=t.maskInputOptions,j=t.slimDOMOptions,D=t.maskAttributeFn,O=t.maskInputFn,N=t.maskTextFn,M=t.packFn,B=t.sampling,A=void 0===B?{}:B,U=t.dataURLOptions,P=void 0===U?{}:U,L=t.mousemoveWait,F=t.recordCanvas,G=void 0!==F&&F,Y=t.recordCrossOriginIframes,H=void 0!==Y&&Y,z=t.recordAfter,q=void 0===z?"DOMContentLoaded"===t.recordAfter?t.recordAfter:"load":z,W=t.userTriggeredOnInput,V=void 0!==W&&W,$=t.collectFonts,K=void 0!==$&&$,J=t.inlineImages,X=void 0!==J&&J,Q=t.keepIframeSrcFn,Z=void 0===Q?function(){return!1}:Q,ee=t.ignoreCSSAttributes,te=void 0===ee?new Set([]):ee,ne=t.errorHandler,re=t.onMutation,oe=t.getCanvasManager;!function registerErrorHandler(t){ip=t}(ne);var ae=!H||window.parent===window,ie=!1;if(!ae)try{window.parent.document&&(ie=!1)}catch(t){ie=!0}if(ae&&!n)throw new Error("emit function is required");void 0!==L&&void 0===A.mousemove&&(A.mousemove=L),bp.reset();var se,ce=!0===I?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==C?C:{},ue=!0===j||"all"===j?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===j,headMetaDescKeywords:"all"===j}:j||{};!function polyfill(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,n=this;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=new Array(t),o=0;o=o,l=r&&t.timestamp-se.timestamp>r;(u||l)&&takeFullSnapshot2(!0)}},wrappedMutationEmit=function(t){wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.Mutation},t)}))},wrappedScrollEmit=function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.Scroll},t)}))},wrappedCanvasMutationEmit=function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.CanvasMutation},t)}))},de=new vp({mutationCb:wrappedMutationEmit,adoptedStyleSheetCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.AdoptedStyleSheet},t)}))}}),pe="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new pp:new fp({mirror:bp,mutationCb:wrappedMutationEmit,stylesheetManager:de,recordCrossOriginIframes:H,wrappedEmit:wrappedEmit}),fe=new yp,_e=oe?oe({recordCanvas:G,blockClass:i,blockSelector:u,unblockSelector:d,sampling:A.canvas,dataURLOptions:P}):new mp,he="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new _p:new hp({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{onMutation:re,blockClass:i,blockSelector:u,unblockSelector:d,maskAllText:v,maskTextClass:g,unmaskTextClass:S,maskTextSelector:k,unmaskTextSelector:w,inlineStylesheet:R,maskInputOptions:ce,dataURLOptions:P,maskAttributeFn:D,maskTextFn:N,maskInputFn:O,recordCanvas:G,inlineImages:X,sampling:A,slimDOMOptions:ue,iframeManager:pe,stylesheetManager:de,canvasManager:_e,keepIframeSrcFn:Z,processedNodeManager:fe},mirror:bp}),takeFullSnapshot2=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];wrappedEmit(ra({type:Zd.Meta,data:{href:window.location.href,width:No(),height:Oo()}}),t),de.reset(),he.init(),cp.forEach((function(t){return t.lock()}));var n=function snapshot(t,n){var r=n||{},o=r.mirror,a=void 0===o?new Ad:o,i=r.blockClass,c=void 0===i?"rr-block":i,u=r.blockSelector,l=void 0===u?null:u,d=r.unblockSelector,p=void 0===d?null:d,f=r.maskAllText,_=void 0!==f&&f,h=r.maskTextClass,m=void 0===h?"rr-mask":h,v=r.unmaskTextClass,y=void 0===v?null:v,g=r.maskTextSelector,b=void 0===g?null:g,S=r.unmaskTextSelector,E=void 0===S?null:S,k=r.inlineStylesheet,T=void 0===k||k,w=r.inlineImages,x=void 0!==w&&w,R=r.recordCanvas,I=void 0!==R&&R,C=r.maskAllInputs,j=void 0!==C&&C,D=r.maskAttributeFn,O=r.maskTextFn,N=r.maskInputFn,M=r.slimDOM,B=void 0!==M&&M,A=r.dataURLOptions,U=r.preserveWhiteSpace,P=r.onSerialize,L=r.onIframeLoad,F=r.iframeLoadTimeout,G=r.onStylesheetLoad,Y=r.stylesheetLoadTimeout,H=r.keepIframeSrcFn;return serializeNodeWithId(t,{doc:t,mirror:a,blockClass:c,blockSelector:l,unblockSelector:p,maskAllText:_,maskTextClass:m,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:E,skipChild:!1,inlineStylesheet:T,maskInputOptions:!0===j?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===j?{}:j,maskAttributeFn:D,maskTextFn:O,maskInputFn:N,slimDOMOptions:!0===B||"all"===B?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===B,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===B?{}:B,dataURLOptions:A,inlineImages:x,recordCanvas:I,preserveWhiteSpace:U,onSerialize:P,onIframeLoad:L,iframeLoadTimeout:F,onStylesheetLoad:G,stylesheetLoadTimeout:Y,keepIframeSrcFn:void 0===H?function(){return!1}:H,newlyAddedElement:!1})}(document,{mirror:bp,blockClass:i,blockSelector:u,unblockSelector:d,maskAllText:v,maskTextClass:g,unmaskTextClass:S,maskTextSelector:k,unmaskTextSelector:w,inlineStylesheet:R,maskAllInputs:ce,maskAttributeFn:D,maskInputFn:O,maskTextFn:N,slimDOM:ue,dataURLOptions:P,recordCanvas:G,inlineImages:X,onSerialize:function(t){Uo(t,bp)&&pe.addIframe(t),Po(t,bp)&&de.trackLinkElement(t),Lo(t)&&he.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,n){pe.attachIframe(t,n),he.observeAttachShadow(t)},onStylesheetLoad:function(t,n){de.attachLinkElement(t,n)},keepIframeSrcFn:Z});if(!n)return console.warn("Failed to snapshot the document");wrappedEmit(ra({type:Zd.FullSnapshot,data:{node:n,initialOffset:Do(window)}}),t),cp.forEach((function(t){return t.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&de.adoptStyleSheets(document.adoptedStyleSheets,bp.getId(document))};gp=takeFullSnapshot2;try{var me=[],observe2=function(t){return sp(ea)({onMutation:re,mutationCb:wrappedMutationEmit,mousemoveCb:function(t,n){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:{source:n,positions:t}}))},mouseInteractionCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.MouseInteraction},t)}))},scrollCb:wrappedScrollEmit,viewportResizeCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.ViewportResize},t)}))},inputCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.Input},t)}))},mediaInteractionCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.MediaInteraction},t)}))},styleSheetRuleCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.StyleSheetRule},t)}))},styleDeclarationCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.StyleDeclaration},t)}))},canvasMutationCb:wrappedCanvasMutationEmit,fontCb:function(t){return wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.Font},t)}))},selectionCb:function(t){wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.Selection},t)}))},customElementCb:function(t){wrappedEmit(ra({type:Zd.IncrementalSnapshot,data:Object.assign({source:ep.CustomElement},t)}))},blockClass:i,ignoreClass:f,ignoreSelector:h,maskAllText:v,maskTextClass:g,unmaskTextClass:S,maskTextSelector:k,unmaskTextSelector:w,maskInputOptions:ce,inlineStylesheet:R,sampling:A,recordCanvas:G,inlineImages:X,userTriggeredOnInput:V,collectFonts:K,doc:t,maskAttributeFn:D,maskInputFn:O,maskTextFn:N,keepIframeSrcFn:Z,blockSelector:u,unblockSelector:d,slimDOMOptions:ue,dataURLOptions:P,mirror:bp,iframeManager:pe,stylesheetManager:de,shadowDomManager:he,processedNodeManager:fe,canvasManager:_e,ignoreCSSAttributes:te,plugins:[]},{})};pe.addLoadListener((function(t){try{me.push(observe2(t.contentDocument))}catch(t){console.warn(t)}}));var init4=function(){takeFullSnapshot2(),me.push(observe2(document))};return"interactive"===document.readyState||"complete"===document.readyState?init4():(me.push(Io("DOMContentLoaded",(function(){wrappedEmit(ra({type:Zd.DomContentLoaded,data:{}})),"DOMContentLoaded"===q&&init4()}))),me.push(Io("load",(function(){wrappedEmit(ra({type:Zd.Load,data:{}})),"load"===q&&init4()}),window))),function(){me.forEach((function(t){return t()})),fe.destroy(),gp=void 0,function unregisterErrorHandler(){ip=void 0}()}}catch(t){console.warn(t)}},aa=function takeFullSnapshot(t){if(!gp)throw new Error("please take full snapshot after start recording");gp(t)},ia=function timestampToMs(t){return t>9999999999?t:1e3*t},sa=function timestampToS(t){return t>9999999999?t/1e3:t},ca=function addBreadcrumbEvent(t,n){"sentry.transaction"!==n.category&&(["ui.click","ui.input"].includes(n.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((function(){return t.throttledAddEvent({type:Zd.Custom,timestamp:1e3*(n.timestamp||0),data:{tag:"breadcrumb",payload:ve(n,10,1e3)}}),"console"===n.category})))},ua=function getClosestInteractive(t){return t.closest(Ep)||t},la=function getClickTargetNode(t){var n=da(t);return n&&_instanceof(n,Element)?ua(n):n},da=function getTargetNode(t){return pa(t)?t.target:t},pa=function isEventWithTarget(t){return"object"==typeof t&&!!t&&"target"in t},fa=function monkeyPatchWindowOpen(){B(wd,"open",(function(t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o"}catch(t){n=""}return{target:o,message:n}},Sa=function isElement2(t){return t.type===xp.Element},Ea=function getKeyboardBreadcrumb(t){var n=t.metaKey,r=t.shiftKey,o=t.ctrlKey,a=t.altKey,i=t.key,c=t.target;if(!c||ka(c)||!i)return null;var u=n||o||a,l=1===i.length;if(!u&&l)return null;var d=I(c,{maxStringLength:200})||"",p=ga(c,d);return va({category:"ui.keyDown",message:d,data:_object_spread_props(_object_spread({},p.data),{metaKey:n,shiftKey:r,ctrlKey:o,altKey:a,key:i})})},ka=function isInputElement(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable},Ta=function createPerformanceEntry(t){return Cp[t.entryType]?Cp[t.entryType](t):null},wa=function getAbsoluteTime2(t){return((Sc||wd.performance.timeOrigin)+t)/1e3},xa=function createPaintEntry(t){var n=t.duration,r=t.entryType,o=t.name,a=t.startTime,i=wa(a);return{type:r,name:o,start:i,end:i+n,data:void 0}},Ra=function createNavigationEntry(t){var n=t.entryType,r=t.name,o=t.decodedBodySize,a=t.duration,i=t.domComplete,c=t.encodedBodySize,u=t.domContentLoadedEventStart,l=t.domContentLoadedEventEnd,d=t.domInteractive,p=t.loadEventStart,f=t.loadEventEnd,_=t.redirectCount,h=t.startTime,m=t.transferSize,v=t.type;return 0===a?null:{type:"".concat(n,".").concat(v),start:wa(h),end:wa(i),name:r,data:{size:m,decodedBodySize:o,encodedBodySize:c,duration:a,domInteractive:d,domContentLoadedEventStart:u,domContentLoadedEventEnd:l,loadEventStart:p,loadEventEnd:f,domComplete:i,redirectCount:_}}},Ia=function createResourceEntry(t){var n=t.entryType,r=t.initiatorType,o=t.name,a=t.responseEnd,i=t.startTime,c=t.decodedBodySize,u=t.encodedBodySize,l=t.responseStatus,d=t.transferSize;return["fetch","xmlhttprequest"].includes(r)?null:{type:"".concat(n,".").concat(r),start:wa(i),end:wa(a),name:o,data:{size:d,statusCode:l,decodedBodySize:c,encodedBodySize:u}}},Ca=function setupPerformanceObserver(t){function addPerformanceEntry(n){t.performanceEntries.includes(n)||t.performanceEntries.push(n)}function onEntries(t){t.entries.forEach(addPerformanceEntry)}var n=[];return["navigation","paint","resource"].forEach((function(t){n.push(Sr(t,onEntries))})),n.push(br((function(n){var r=n.metric;t.replayPerformanceEntries.push(function getLargestContentfulPaint(t){var n=t.entries,r=n[n.length-1],o=r?r.element:void 0,a=t.value,i=wa(a);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:a,size:a,nodeId:o?oa.mirror.getId(o):void 0}}}(r))}))),function(){n.forEach((function(t){return t()}))}},ja=function logInfo(t,n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Cs.info(t),n&&Oa(t))},Da=function logInfoNextTick(t,n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Cs.info(t),n&&setTimeout((function(){Oa(t)}),0))},Oa=function addBreadcrumb2(t){rt().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})},Na=function _loadWorker(t){try{var n=t||Ma();if(!n)return;ja("[Replay] Using compression worker".concat(t?" from ".concat(t):""));var r=new Worker(n);return new Bp(r)}catch(t){ja("[Replay] Failed to create compression worker")}},Ma=function _getWorkerUrl(){return"undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function e(){var t=new Blob([jp]);return URL.createObjectURL(t)}()},Ba=function hasSessionStorage(){try{return"sessionStorage"in wd&&!!wd.sessionStorage}catch(t){return!1}},Aa=function deleteSession(){if(Ba())try{wd.sessionStorage.removeItem(xd)}catch(t){}},Ua=function isSampled(t){return void 0!==t&&Math.random()1&&void 0!==arguments[1]?arguments[1]:{}).previousSessionId,c=function getSessionSampleType(t,n){return Ua(t)?"session":!!n&&"buffer"}(n,r),u=La({sampled:c,previousSessionId:i});return a&&Pa(u),u},Ga=function isExpired(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===t||void 0===n||n<0||0!==n&&t+n<=r},Ya=function isSessionExpired(t,n){var r=n.maxReplayDuration,o=n.sessionIdleExpire,a=n.targetTime,i=void 0===a?Date.now():a;return Ga(t.started,r,i)||Ga(t.lastActivity,o,i)},Ha=function shouldRefreshSession(t,n){var r=n.sessionIdleExpire,o=n.maxReplayDuration;return!!Ya(t,{sessionIdleExpire:r,maxReplayDuration:o})&&("buffer"!==t.sampled||0!==t.segmentId)},za=function loadOrCreateSession(t,n){var r=t.traceInternals,o=t.sessionIdleExpire,a=t.maxReplayDuration,i=t.previousSessionId,c=n.stickySession&&function fetchSession(t){if(!Ba())return null;try{var n=wd.sessionStorage.getItem(xd);if(!n)return null;var r=JSON.parse(n);return Da("[Replay] Loading existing session",t),La(r)}catch(t){return null}}(r);return c?Ha(c,{sessionIdleExpire:o,maxReplayDuration:a})?(Da("[Replay] Session in sessionStorage is expired, creating new one..."),Fa(n,{previousSessionId:c.id})):c:(Da("[Replay] Creating new session",r),Fa(n,{previousSessionId:i}))},qa=function addEventSync(t,n,r){return!!Wa(t,n)&&(_addEvent(t,n,r),!0)},Wa=function shouldAddEvent(t,n){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;var r=ia(n.timestamp);return!(r+t.timeouts.sessionIdlePauset.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(ja("[Replay] Skipping event with timestamp ".concat(r," because it is after maxReplayDuration"),t.getOptions()._experiments.traceInternals),!1))},Va=function maybeApplyCallback(t,n){try{if("function"==typeof n&&function isCustomEvent(t){return t.type===Zd.Custom}(t))return n(t)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",t),null}return t},$a=function isErrorEvent3(t){return!t.type},Ka=function isTransactionEvent2(t){return"transaction"===t.type},Ja=function handleAfterSendEvent(t){var n=Za();return function(r,o){if(t.isEnabled()&&($a(r)||Ka(r))){var a=o&&o.statusCode;n&&(!a||a<200||a>=300)||(Ka(r)?Xa(t,r):Qa(t,r))}}},Xa=function handleTransactionEvent(t,n){var r=t.getContext();n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(n.contexts.trace.trace_id)},Qa=function handleErrorEvent(t,n){var r=t.getContext();if(n.event_id&&r.errorIds.size<100&&r.errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId){var o=t.getOptions().beforeErrorSampling;("function"!=typeof o||o(n))&&setTimeout((function(){t.sendBufferedReplayOrFlush()}))}},Za=function isBaseTransportSend(){var t=rt().getClient();if(!t)return!1;var n=t.getTransport();return n&&n.send.__sentry__baseTransport__||!1},ei=function handleGlobalEventListener(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Ja(t):void 0;return Object.assign((function(r,o){if(!t.isEnabled())return r;if(function isReplayEvent(t){return"replay_event"===t.type}(r))return delete r.breadcrumbs,r;if(!$a(r)&&!Ka(r))return r;if(!t.checkAndHandleExpiredSession())return r;if(function isRrwebError(t,n){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length||!n.originalException||!n.originalException.__rrweb__)}(r,o)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Replay] Ignoring error from rrweb internals",r),null;var a=function shouldSampleForBufferEvent(t,n){return"buffer"===t.recordingMode&&n.message!==Id&&!(!n.exception||n.type)&&Ua(t.getOptions().errorSampleRate)}(t,r);return(a||"session"===t.recordingMode)&&(r.tags=_object_spread_props(_object_spread({},r.tags),{replayId:t.getSessionId()})),n&&n(r,{statusCode:200}),r}),{id:"Replay"})},ti=function createPerformanceSpans(t,n){return n.map((function(n){var r=n.type,o=n.start,a=n.end,i=n.name,c=n.data,u=t.throttledAddEvent({type:Zd.Custom,timestamp:o,data:{tag:"performanceSpan",payload:{op:r,description:i,startTimestamp:o,endTimestamp:a,data:c}}});return"string"==typeof u?Promise.resolve(null):u}))},ni=function handleHistorySpanListener(t){return function(n){if(t.isEnabled()){var r=function handleHistory(t){var n=t.from,r=t.to,o=Date.now()/1e3;return{type:"navigation.push",start:o,end:o,name:r,data:{previous:n}}}(n);null!==r&&(t.getContext().urls.push(r.name),t.triggerUserActivity(),t.addUpdate((function(){return ti(t,[r]),!1})))}}},ri=function addNetworkBreadcrumb(t,n){t.isEnabled()&&null!==n&&(function shouldFilterRequest(t,n){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&gn(n,rt())}(t,n.name)||t.addUpdate((function(){return ti(t,[n]),!0})))},oi=function handleXhrSpanListener(t){return function(n){if(t.isEnabled()){var r=function handleXhr(t){var n=t.startTimestamp,r=t.endTimestamp,o=t.xhr[qs];if(!n||!r||!o)return null;var a=o.method,i=o.url,c=o.status_code;return void 0===i?null:{type:"resource.xhr",name:i,start:n/1e3,end:r/1e3,data:{method:a,statusCode:c}}}(n);ri(t,r)}}},ai=function getBodySize(t,n){if(t)try{if("string"==typeof t)return n.encode(t).length;if(_instanceof(t,URLSearchParams))return n.encode(t.toString()).length;if(_instanceof(t,FormData)){var r=pi(t);return n.encode(r).length}if(_instanceof(t,Blob))return t.size;if(_instanceof(t,ArrayBuffer))return t.byteLength}catch(t){}},ii=function parseContentLengthHeader(t){if(t){var n=parseInt(t,10);return isNaN(n)?void 0:n}},si=function getBodyString(t){return"string"==typeof t?t:_instanceof(t,URLSearchParams)?t.toString():_instanceof(t,FormData)?pi(t):void 0},ci=function makeNetworkReplayBreadcrumb(t,n){if(!n)return null;var r=n.startTimestamp,o=n.endTimestamp,a=n.url,i=n.method,c=n.statusCode,u=n.request,l=n.response;return{type:t,start:r/1e3,end:o/1e3,name:a,data:Y({method:i,statusCode:c,request:u,response:l})}},ui=function buildSkippedNetworkRequestOrResponse(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}},li=function buildNetworkRequestOrResponse(t,n,r){if(n||0!==Object.keys(t).length){if(!n)return{headers:t};if(!r)return{headers:t,size:n};var o={headers:t,size:n},a=fi(r),i=a.body,c=a.warnings;return o.body=i,c&&c.length>0&&(o._meta={warnings:c}),o}},di=function getAllowedHeaders(t,n){return Object.keys(t).reduce((function(r,o){var a=o.toLowerCase();return n.includes(a)&&t[o]&&(r[a]=t[o]),r}),{})},pi=function _serializeFormData(t){return new URLSearchParams(t).toString()},fi=function normalizeNetworkBody(t){if(!t||"string"!=typeof t)return{body:t};var n=t.length>Dd,r=_i(t);if(n){var o=t.slice(0,Dd);return r?{body:o,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(o,"…"),warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(t)}}catch(t){}return{body:t}},_i=function _strIsProbablyJson(t){var n=t[0],r=t[t.length-1];return"["===n&&"]"===r||"{"===n&&"}"===r},hi=function urlMatches(t,n){var r=mi(t);return b(r,n)},mi=function getFullUrl(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wd.document.baseURI;if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(wd.location.origin))return t;var r=new URL(t,n);if(r.origin!==new URL(n).origin)return t;var o=r.href;return!t.endsWith("/")&&o.endsWith("/")?o.slice(0,-1):o},vi=function _getRequestInfo(t,n,r){var o=t.networkCaptureBodies,a=t.networkRequestHeaders,i=bi(n,a);if(!o)return li(i,r,void 0);var c=yi(n),u=si(c);return li(i,r,u)},yi=function _getFetchRequestArgBody(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===t.length&&"object"==typeof t[1])return t[1].body},gi=function getAllHeaders(t,n){var r={};return n.forEach((function(n){t.get(n)&&(r[n]=t.get(n))})),r},bi=function getRequestHeaders(t,n){return 1===t.length&&"string"!=typeof t[0]?Si(t[0],n):2===t.length?Si(t[1],n):{}},Si=function getHeadersFromOptions(t,n){if(!t)return{};var r=t.headers;return r?_instanceof(r,Headers)?gi(r,n):Array.isArray(r)?{}:di(r,n):{}},Ei=function _prepareXhrData(t,n,r){var o=n.startTimestamp,a=n.endTimestamp,i=n.input,c=n.xhr,u=t.data,l=u.url,d=u.method,p=u.status_code,f=void 0===p?0:p,_=u.request_body_size,h=u.response_body_size;if(!l)return null;if(!hi(l,r.networkDetailAllowUrls)||hi(l,r.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:a,url:l,method:d,statusCode:f,request:ui(_),response:ui(h)};var m=c[qs],v=m?di(m.request_headers,r.networkRequestHeaders):{},y=di(ki(c),r.networkResponseHeaders);return{startTimestamp:o,endTimestamp:a,url:l,method:d,statusCode:f,request:li(v,_,r.networkCaptureBodies?si(i):void 0),response:li(y,h,r.networkCaptureBodies?n.xhr.responseText:void 0)}},ki=function getResponseHeaders(t){var n=t.getAllResponseHeaders();return n?n.split("\r\n").reduce((function(t,n){var r=_sliced_to_array(n.split(": "),2),o=r[0],a=r[1];return t[o.toLowerCase()]=a,t}),{}):{}},Ti=function handleNetworkBreadcrumbs(t){var n=rt().getClient();try{var r=new TextEncoder,o=t.getOptions(),a={replay:t,textEncoder:r,networkDetailAllowUrls:o.networkDetailAllowUrls,networkDetailDenyUrls:o.networkDetailDenyUrls,networkCaptureBodies:o.networkCaptureBodies,networkRequestHeaders:o.networkRequestHeaders,networkResponseHeaders:o.networkResponseHeaders};n&&n.on?n.on("beforeAddBreadcrumb",(function(t,n){return wi(a,t,n)})):(re("fetch",function handleFetchSpanListener(t){return function(n){if(t.isEnabled()){var r=function handleFetch(t){var n=t.startTimestamp,r=t.endTimestamp,o=t.fetchData,a=t.response;if(!r)return null;var i=o.method;return{type:"resource.fetch",start:n/1e3,end:r/1e3,name:o.url,data:{method:i,statusCode:a?a.status:void 0}}}(n);ri(t,r)}}}(t)),re("xhr",oi(t)))}catch(t){}},wi=function beforeAddNetworkBreadcrumb(t,n,r){if(n.data)try{xi(n)&&Ii(r)&&(!function enrichXhrBreadcrumb(t,n,r){var o=n.xhr,a=n.input,i=ai(a,r.textEncoder),c=o.getResponseHeader("content-length")?ii(o.getResponseHeader("content-length")):ai(o.response,r.textEncoder);void 0!==i&&(t.data.request_body_size=i),void 0!==c&&(t.data.response_body_size=c)}(n,r,t),function captureXhrBreadcrumbToReplay(t,n,r){return _captureXhrBreadcrumbToReplay.apply(this,arguments)}(n,r,t)),Ri(n)&&Ci(r)&&(!function enrichFetchBreadcrumb(t,n,r){var o=n.input,a=n.response,i=yi(o),c=ai(i,r.textEncoder),u=a?ii(a.headers.get("content-length")):void 0;void 0!==c&&(t.data.request_body_size=c),void 0!==u&&(t.data.response_body_size=u)}(n,r,t),function captureFetchBreadcrumbToReplay(t,n,r){return _captureFetchBreadcrumbToReplay.apply(this,arguments)}(n,r,t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Error when enriching network breadcrumb")}},xi=function _isXhrBreadcrumb(t){return"xhr"===t.category},Ri=function _isFetchBreadcrumb(t){return"fetch"===t.category},Ii=function _isXhrHint(t){return t&&t.xhr},Ci=function _isFetchHint(t){return t&&t.response},ji=function normalizeConsoleBreadcrumb(t){var n=t.data&&t.data.arguments;if(!Array.isArray(n)||0===n.length)return va(t);var r=!1,o=n.map((function(t){if(!t)return t;if("string"==typeof t)return t.length>Od?(r=!0,"".concat(t.slice(0,Od),"…")):t;if("object"==typeof t)try{var n=ve(t,7);return JSON.stringify(n).length>Od?(r=!0,"".concat(JSON.stringify(n,null,2).slice(0,Od),"…")):n}catch(t){}return t}));return va(_object_spread_props(_object_spread({},t),{data:_object_spread(_object_spread_props(_object_spread({},t.data),{arguments:o}),r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))},Di=function hasHooks(t){return!(!t||!t.on)},Oi=function createMemoryEntry(t){var n=t.jsHeapSizeLimit,r=t.totalJSHeapSize,o=t.usedJSHeapSize,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:n,totalJSHeapSize:r,usedJSHeapSize:o}}}},Ni=function getHandleRecordingEmit(t){var n=!1;return function(r,o){if(t.checkAndHandleExpiredSession()){var a=o||!n;n=!0,t.clickDetector&&function updateClickDetectorForRecordingEvent(t,n){try{if(!ha(n))return;var r=n.data.source;if(r===ep.Mutation&&t.registerMutation(n.timestamp),r===ep.Scroll&&t.registerScroll(n.timestamp),ma(n)){var o=n.data,a=o.type,i=o.id,c=oa.mirror.getNode(i);_instanceof(c,HTMLElement)&&a===tp.Click&&t.registerClick(c)}}catch(t){}}(t.clickDetector,r),t.addUpdate((function(){if("buffer"===t.recordingMode&&a&&t.setInitialState(),!qa(t,r,a))return!0;if(!a)return!1;if(Mi(t,a),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){var n=t.eventBuffer.getEarliestTimestamp();n&&(ja("[Replay] Updating session start time to earliest event in buffer to ".concat(new Date(n)),t.getOptions()._experiments.traceInternals),t.session.started=n,t.getOptions().stickySession&&Pa(t.session))}return"session"===t.recordingMode&&t.flush(),!0}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Replay] Received replay event after session expired.")}},Mi=function addSettingsEvent(t,n){n&&t.session&&0===t.session.segmentId&&qa(t,function createOptionsEvent(t){var n=t.getOptions();return{type:Zd.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:n.sessionSampleRate,errorSampleRate:n.errorSampleRate,useCompressionOption:n.useCompression,blockAllMedia:n.blockAllMedia,maskAllText:n.maskAllText,maskAllInputs:n.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:n.networkDetailAllowUrls.length>0,networkCaptureBodies:n.networkCaptureBodies,networkRequestHasHeaders:n.networkRequestHeaders.length>0,networkResponseHasHeaders:n.networkResponseHeaders.length>0}}}}(t),!1)},Bi=function createReplayEnvelope(t,n,r,o){return Be(qe(t,ze(t),o,r),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof n?(new TextEncoder).encode(n).length:n.length},n]])},Ai=function prepareRecordingData(t){var n,r=t.recordingData,o=t.headers,a="".concat(JSON.stringify(o),"\n");if("string"==typeof r)n="".concat(a).concat(r);else{var i=(new TextEncoder).encode(a);(n=new Uint8Array(i.length+r.length)).set(i),n.set(r,i.length)}return n},Ui=function throttle(t,n,r){var o=new Map,a=!1;return function(){for(var i=arguments.length,c=new Array(i),u=0;u=n){var d=a;return a=!0,d?Gp:Fp}a=!1;var p=o.get(l)||0;return o.set(l,p+1),t.apply(void 0,_to_consumable_array(c))}},Pi=function getOption(t,n,r,o){var a="string"==typeof o?o.split(","):[],i=_to_consumable_array(t).concat(_to_consumable_array(a),_to_consumable_array(n));return void 0!==r&&("string"==typeof r&&i.push(".".concat(r)),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")},Li=function _getMergedNetworkHeaders(t){return _to_consumable_array(zp).concat(_to_consumable_array(t.map((function(t){return t.toLowerCase()}))))},Fi=function promisifyRequest(t){return new Promise((function(n,r){t.oncomplete=t.onsuccess=function(){return n(t.result)},t.onabort=t.onerror=function(){return r(t.error)}}))},Gi=function keys(t){return Fi(t.getAllKeys())},Yi=function insert(t,n,r){return t((function(t){return Gi(t).then((function(o){var a;if(!(o.length>=r))return t.put(n,(a=Math).max.apply(a,_to_consumable_array(o).concat([0]))+1),Fi(t.transaction)}))}))},Hi=function pop(t){return t((function(t){return Gi(t).then((function(n){if(0!==n.length)return Fi(t.get(n[0])).then((function(r){return t.delete(n[0]),Fi(t.transaction).then((function(){return r}))}))}))}))},zi=function createIndexedDbStore(t){var n,r;function getStore(){return null==n&&(n=function createStore(t,n){var r=indexedDB.open(t);r.onupgradeneeded=function(){return r.result.createObjectStore(n)};var o=Fi(r);return function(t){return o.then((function(r){return t(r.transaction(n,"readwrite").objectStore(n))}))}}(t.dbName||"sentry-offline",t.storeName||"queue")),n}return{insert:(r=_async_to_generator((function(n){var r;return _ts_generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,Le(n,t.textEncoder)];case 1:return r=o.sent(),[4,Yi(getStore(),r,t.maxQueueSize||30)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))})),function(t){return r.apply(this,arguments)}),pop:_async_to_generator((function(){var n;return _ts_generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Hi(getStore())];case 1:return(n=r.sent())?[2,Ge(n,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)]:[3,3];case 2:return r.sent(),[3,3];case 3:return[2,void 0]}}))}))}},qi=function makeBrowserOfflineTransport(t){return function makeIndexedDbOfflineTransport(t){return function(n){return t(_object_spread_props(_object_spread({},n),{createStore:zi}))}}(un(t))},Wi=function createProfilePayload(t,n,r,o){if("transaction"!==o.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError("Cannot construct profiling event envelope without a valid profile. Got ".concat(r," instead."));var a=function getTraceId(t){var n=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"==typeof n&&32!==n.length&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] Invalid traceId: ".concat(n," on profiled event")),"string"!=typeof n?"":n}(o),i=function enrichWithThreadInformation(t){return function isProcessedJSSelfProfile(t){return!("thread_metadata"in t)}(t)?$i(t):t}(r),c=n||("number"==typeof o.start_timestamp?1e3*o.start_timestamp:Date.now()),u="number"==typeof o.timestamp?1e3*o.timestamp:Date.now();return{event_id:t,timestamp:new Date(c).toISOString(),platform:"javascript",version:"1",release:o.release||"",environment:o.environment||Cc,runtime:{name:"javascript",version:Xu.navigator.userAgent},os:{name:yf,version:gf,build_number:Sf},device:{locale:kf,model:Ef,manufacturer:Sf,architecture:bf,is_emulator:!1},debug_meta:{images:Ki(r.resources)},profile:i,transactions:[{name:o.transaction||"",id:o.event_id||H(),trace_id:a,active_thread_id:mf,relative_start_ns:"0",relative_end_ns:(1e6*(u-c)).toFixed(0)}]}},Vi=function isAutomatedPageLoadTransaction(t){return"pageload"===t.op},$i=function convertJSSelfProfileToSampledFormat(t){var n=void 0,r=0,o={samples:[],stacks:[],frames:[],thread_metadata:_define_property({},mf,{name:vf})};if(!t.samples.length)return o;for(var a=t.samples[0].timestamp,i="number"==typeof performance.timeOrigin?performance.timeOrigin:Sc||0,c=i-(Sc||i),u=0;u=0;u--){var l=o[u],d=l&&l.filename;if(l&&d){t[d]=n[r];break}}return t}),{}),d=[],p=!0,f=!1,_=void 0;try{for(var h,m=t[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var v=h.value;v&&l[v]&&d.push({type:"sourcemap",code_file:v,debug_id:l[v]})}}catch(t){f=!0,_=t}finally{try{p||null==m.return||m.return()}finally{if(f)throw _}}return d},Ji=function shouldProfileTransaction(t){if(xf)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] Discarding profile because transaction was not sampled."),!1;var n=rt().getClient(),r=n&&n.getOptions();if(!r)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] Profiling disabled, no options found."),!1;var o=r.profilesSampleRate;return function isValidSampleRate2(t){return"number"!=typeof t&&"boolean"!=typeof t||"number"==typeof t&&isNaN(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(void 0===t?"undefined":_type_of(t)),".")),!1):!0===t||!1===t||!(t<0||t>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1)}(o)?o?!!(!0===o||Math.random()30){var r=If.keys().next().value;If.delete(r)}}(o,n),null):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] profiler returned null profile for: ".concat(t.name||t.description),"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)})).catch((function(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] error while stopping profiler:",t),null}))]:[2,null]}))}))).apply(this,arguments)}var a=Xu.setTimeout((function(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Profiling] max profile duration elapsed, stopping profiling for:",t.name||t.description),onProfileHandler()}),Rf),i=t.finish.bind(t);return t.finish=function profilingWrappedTransactionFinish(){return t?(onProfileHandler().then((function(){t.setContext("profile",{profile_id:o,start_timestamp:n}),i()}),(function(){i()})),t):i()},t},ts=function _isSameMessageEvent2(t,n){var r=t.message,o=n.message;return!(!r&&!o)&&(!(r&&!o||!r&&o)&&(r===o&&(!!os(t,n)&&!!rs(t,n))))},ns=function _isSameExceptionEvent2(t,n){var r=as(n),o=as(t);return!(!r||!o)&&(r.type===o.type&&r.value===o.value&&(!!os(t,n)&&!!rs(t,n)))},rs=function _isSameStacktrace2(t,n){var r=is(t),o=is(n);if(!r&&!o)return!0;if(r&&!o||!r&&o)return!1;if(o.length!==r.length)return!1;for(var a=0;a"},us=function applySourceContextToFrame(t,n,r,o){return t.filename===r&&t.lineno&&n.length?(function addContextToFrame(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0!==n.lineno){var o=t.length,a=Math.max(Math.min(o-1,n.lineno-1),0);n.pre_context=t.slice(Math.max(0,a-r),a).map((function(t){return v(t,0)})),n.context_line=v(t[Math.min(o-1,a)],n.colno||0),n.post_context=t.slice(Math.min(a+1,o),a+1+r).map((function(t){return v(t,0)}))}}(n,t,o),t):t},ls=function getActiveTransaction2(){return rt().getScope().getTransaction()},ds=function init2(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=_object_spread({_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:xu}],version:xu}},defaultIntegrations:_to_consumable_array(Ol).concat([new ov])},t);pr(n)},ps=function vueRouterInstrumentation(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i={"routing.instrumentation":"vue-router"};o&&Xu&&Xu.location&&r({name:Xu.location.pathname,op:"pageload",origin:"auto.pageload.vue",tags:i,metadata:{source:"url"}}),t.onError((function(t){return It(t,(function(t){return t.addEventProcessor((function(t){return V(t,{handled:!1}),t})),t}))})),t.beforeEach((function(t,c,u){var l=null==c.name&&0===c.matched.length,d={params:t.params,query:t.query},p=t.path,f="url";if(t.name&&"path"!==n.routeLabel?(p=t.name.toString(),f="custom"):t.matched[0]&&t.matched[0].path&&(p=t.matched[0].path,f="route"),o&&l){var _=ls();_&&("custom"!==_.metadata.source&&_.setName(p,f),_.setData("params",d.params),_.setData("query",d.query))}a&&!l&&r({name:p,op:"navigation",origin:"auto.navigation.vue",tags:i,data:d,metadata:{source:f}}),u&&u()}))}},fs=function init3(t){var n=t.router,r=t.integrations,o=void 0===r?{}:r,a=t.integrationsConfig,i=void 0===a?{}:a,c=t.routeConfig,u=void 0===c?Xm.DEFAULT_ROUTE_CONFIG:c,l=t.tracingOptions,d=void 0===l?iv:l,p=_object_spread({},o,i);if(n){var f,_={routingInstrumentation:ps(n,u)};p.browserTracing=Object.assign(_,null!==(f=p.browserTracing)&&void 0!==f?f:{})}(0,Xm.initSentry)(ds,Object.assign(t,{integrations:p,tracingOptions:d}))},_s=Object.create,hs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,vs=Object.getOwnPropertyNames,ys=Object.getPrototypeOf,gs=Object.prototype.hasOwnProperty,bs=(t=function(t){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')},"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(t,{get:function(t,n){return("undefined"!=typeof require?require:t)[n]}}):t),__esm=function(t,n){return function __init(){return t&&(n=(0,t[vs(t)[0]])(t=0)),n}},__commonJS=function(t,n){return function __require2(){return n||(0,t[vs(t)[0]])((n={exports:{}}).exports,n),n.exports}},__export=function(t,n){for(var r in n)hs(t,r,{get:n[r],enumerable:!0})},__copyProps=function(t,n,r,o){if(n&&"object"==typeof n||"function"==typeof n){var a=!0,i=!1,c=void 0;try{for(var u,_loop=function(){var a=u.value;gs.call(t,a)||a===r||hs(t,a,{get:function(){return n[a]},enumerable:!(o=ms(n,a))||o.enumerable})},l=vs(n)[Symbol.iterator]();!(a=(u=l.next()).done);a=!0)_loop()}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}}return t},__toESM=function(t,n,r){return r=null!=t?_s(ys(t)):{},__copyProps(!n&&t&&t.__esModule?r:hs(r,"default",{value:t,enumerable:!0}),t)},__toCommonJS=function(t){return __copyProps(hs({},"__esModule",{value:!0}),t)},Ss=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/is.js":function(){n=Object.prototype.toString}}),Es=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/string.js":function(){Ss()}});function aggregateExceptionsFromError(t,n,r,o,a,i,c,u){if(i.length>=r+1)return i;var l=_to_consumable_array(i);if(_(o[a],Error)){E(c,u);var d=t(n,o[a]),p=l.length;k(d,a,p,u),l=aggregateExceptionsFromError(t,n,r,o[a],a,[d].concat(_to_consumable_array(l)),d,p)}return Array.isArray(o.errors)&&o.errors.forEach((function(o,i){if(_(o,Error)){E(c,u);var d=t(n,o),p=l.length;k(d,"errors[".concat(i,"]"),p,u),l=aggregateExceptionsFromError(t,n,r,o,a,[d].concat(_to_consumable_array(l)),d,p)}})),l}var ks,Ts,ws,xs,Rs,Is,Cs,js,Ds,Os=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/aggregate-errors.js":function(){Ss(),Es()}}),Ns=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/worldwide.js":function(){ks="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof global&&w(global)||function(){return this}()||{}}}),Ms=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/browser.js":function(){Ss(),Ns(),Ts=x(),ws=80}}),Bs=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/logger.js":function(){Ns(),xs="Sentry Logger ",Rs=["debug","info","warn","error","log","assert","trace"],Is={},Cs=function makeLogger(){var t=!1,n={enable:function(){t=!0},disable:function(){t=!1},isEnabled:function(){return t}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Rs.forEach((function(r){n[r]=function(){for(var n=arguments.length,o=new Array(n),a=0;a1&&void 0!==arguments[1]?arguments[1]:"warn";return _class_call_check(this,SentryError),(r=n.call(this,t)).message=t,r.name=(_instanceof(this,SentryError)?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(_assert_this_initialized(r),(_instanceof(this,SentryError)?this.constructor:void 0).prototype),r.logLevel=o,r}return SentryError}(_wrap_native_super(Error))}});function _dropUndefinedKeys(t,n){if(l(t)){var r=n.get(t);if(void 0!==r)return r;var o={};n.set(t,o);var a=!0,i=!1,c=void 0;try{for(var u,d=Object.keys(t)[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var p=u.value;void 0!==t[p]&&(o[p]=_dropUndefinedKeys(t[p],n))}}catch(t){i=!0,c=t}finally{try{a||null==d.return||d.return()}finally{if(i)throw c}}return o}if(Array.isArray(t)){var f=n.get(t);if(void 0!==f)return f;var _=[];return n.set(t,_),t.forEach((function(t){_.push(_dropUndefinedKeys(t,n))})),_}return t}var Ps,Ls,Fs,Gs,Ys,Hs,zs,qs,Ws,Vs,$s,Ks,Js,Xs,Qs,Zs,ec,tc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/object.js":function(){Ms(),Ss(),Bs(),Es()}}),nc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/misc.js":function(){tc(),Es(),Ns()}}),rc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/stacktrace.js":function(){Ps=50,Ls=/\(error: (.*)\)/,Fs=/captureMessage|captureException/,Gs=""}}),oc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/supports.js":function(){Bs(),Ns(),Ys=x()}}),ac=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/vendor/supportsHistory.js":function(){Ns(),Hs=x()}}),ic=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/instrument.js":function(){Ss(),Bs(),nc(),tc(),rc(),oc(),Ns(),ac(),zs=x(),qs="__sentry_xhr_v2__",Ws={},Vs={},Ks=1e3,Zs=null,ec=null}}),sc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/env.js":function(){}}),cc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/node.js":function(){sc()}}),uc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/isBrowser.js":function(){cc(),Ns()}}),lc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/memo.js":function(){}});function normalizeToSize(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=ve(t,n);return be(o)>r?normalizeToSize(t,n-1,r):o}function visit(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function memoBuilder(){var t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function memoize(r){if(t)return!!n.has(r)||(n.add(r),!1);for(var o=0;o=o){_[v]="[MaxProperties ~]";break}var y=m[v];_[v]=visit(v,y,d-1,o,a),h++}return u(n),_}var dc,pc,fc,_c,hc,mc,vc,yc,gc,bc,Sc,Ec,kc,Tc,wc,xc,Rc,Ic,Cc,jc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/normalize.js":function(){Ss(),lc(),tc(),rc()}}),Dc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/path.js":function(){dc=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/}}),Oc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/syncpromise.js":function(){Ss(),function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(pc||(pc={})),fc=function(){"use strict";function _SyncPromise(t){_class_call_check(this,_SyncPromise),_SyncPromise.prototype.__init.call(this),_SyncPromise.prototype.__init2.call(this),_SyncPromise.prototype.__init3.call(this),_SyncPromise.prototype.__init4.call(this),this._state=pc.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return _create_class(_SyncPromise,[{key:"then",value:function then(t,n){var r=this;return new _SyncPromise((function(o,a){r._handlers.push([!1,function(n){if(t)try{o(t(n))}catch(t){a(t)}else o(n)},function(t){if(n)try{o(n(t))}catch(t){a(t)}else a(t)}]),r._executeHandlers()}))}},{key:"catch",value:function _catch(t){return this.then((function(t){return t}),t)}},{key:"finally",value:function _finally(t){var n=this;return new _SyncPromise((function(r,o){var a,i;return n.then((function(n){i=!1,a=n,t&&t()}),(function(n){i=!0,a=n,t&&t()})).then((function(){i?o(a):r(a)}))}))}},{key:"__init",value:function __init(){var t=this;this._resolve=function(n){t._setResult(pc.RESOLVED,n)}}},{key:"__init2",value:function __init2(){var t=this;this._reject=function(n){t._setResult(pc.REJECTED,n)}}},{key:"__init3",value:function __init3(){var t=this;this._setResult=function(n,r){t._state===pc.PENDING&&(p(r)?r.then(t._resolve,t._reject):(t._state=n,t._value=r,t._executeHandlers()))}}},{key:"__init4",value:function __init4(){var t=this;this._executeHandlers=function(){if(t._state!==pc.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach((function(n){n[0]||(t._state===pc.RESOLVED&&n[1](t._value),t._state===pc.REJECTED&&n[2](t._value),n[0]=!0)}))}}}}]),_SyncPromise}()}}),Nc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/promisebuffer.js":function(){Us(),Oc()}}),Mc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/url.js":function(){}}),Bc=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/severity.js":function(){_c=["fatal","error","warning","log","info","debug"]}}),Ac=__esm({"../../node_modules/.pnpm/@sentry+utils@7.79.0/node_modules/@sentry/utils/esm/time.js":function(){cc(),Ns(),hc=x(),mc={nowSeconds:function(){return Date.now()/1e3}},vc=function getBrowserPerformance(){var t=hc.performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),yc=void 0===vc?mc:{nowSeconds:function(){return(vc.timeOrigin+vc.now())/1e3}},gc=mc.nowSeconds.bind(mc),bc=yc.nowSeconds.bind(yc),Sc=function(){var t=hc.performance;if(t&&t.now){var n=36e5,r=t.now(),o=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+r-o):n,i=a3&&void 0!==arguments[3]?arguments[3]:0;return new fc((function(a,i){var c=t[o];if(null===n||"function"!=typeof c)a(n);else{var u=c(_object_spread({},n),r);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===u&&Cs.log('Event processor "'.concat(c.id,'" dropped event')),p(u)?u.then((function(n){return notifyEventProcessors(t,n,r,o+1).then(a)})).then(null,i):notifyEventProcessors(t,u,r,o+1).then(a).then(null,i)}}))}var qc,Wc,Vc,$c,Kc,Jc,Xc,Qc,Zc,eu,tu,nu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/eventProcessors.js":function(){Hc()}}),ru=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/session.js":function(){Hc()}}),ou=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/scope.js":function(){Hc(),nu(),ru(),100,qc=function(){"use strict";function _Scope(){_class_call_check(this,_Scope),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=et()}return _create_class(_Scope,[{key:"addScopeListener",value:function addScopeListener(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function addEventProcessor(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function setUser(t){return this._user=t||{},this._session&&Qe(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function getUser(){return this._user}},{key:"getRequestSession",value:function getRequestSession(){return this._requestSession}},{key:"setRequestSession",value:function setRequestSession(t){return this._requestSession=t,this}},{key:"setTags",value:function setTags(t){return this._tags=_object_spread({},this._tags,t),this._notifyScopeListeners(),this}},{key:"setTag",value:function setTag(t,n){return this._tags=_object_spread_props(_object_spread({},this._tags),_define_property({},t,n)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function setExtras(t){return this._extra=_object_spread({},this._extra,t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function setExtra(t,n){return this._extra=_object_spread_props(_object_spread({},this._extra),_define_property({},t,n)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function setLevel(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function setContext(t,n){return null===n?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}},{key:"setSpan",value:function setSpan(t){return this._span=t,this._notifyScopeListeners(),this}},{key:"getSpan",value:function getSpan(){return this._span}},{key:"getTransaction",value:function getTransaction(){var t=this.getSpan();return t&&t.transaction}},{key:"setSession",value:function setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function getSession(){return this._session}},{key:"update",value:function update(t){if(!t)return this;if("function"==typeof t){var n=t(this);return _instanceof(n,_Scope)?n:this}return _instanceof(t,_Scope)?(this._tags=_object_spread({},this._tags,t._tags),this._extra=_object_spread({},this._extra,t._extra),this._contexts=_object_spread({},this._contexts,t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):l(t)&&(this._tags=_object_spread({},this._tags,t.tags),this._extra=_object_spread({},this._extra,t.extra),this._contexts=_object_spread({},this._contexts,t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}},{key:"clear",value:function clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=et(),this}},{key:"addBreadcrumb",value:function addBreadcrumb(t,n){var r="number"==typeof n?n:100;if(r<=0)return this;var o=_object_spread({timestamp:gc()},t),a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function addAttachment(t){return this._attachments.push(t),this}},{key:"getAttachments",value:function getAttachments(){return this._attachments}},{key:"clearAttachments",value:function clearAttachments(){return this._attachments=[],this}},{key:"applyToEvent",value:function applyToEvent(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(this._extra&&Object.keys(this._extra).length&&(t.extra=_object_spread({},this._extra,t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=_object_spread({},this._tags,t.tags)),this._user&&Object.keys(this._user).length&&(t.user=_object_spread({},this._user,t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=_object_spread({},this._contexts,t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=_object_spread({trace:this._span.getTraceContext()},t.contexts);var o=this._span.transaction;if(o){t.sdkProcessingMetadata=_object_spread({dynamicSamplingContext:o.getDynamicSamplingContext()},t.sdkProcessingMetadata);var a=o.name;a&&(t.tags=_object_spread({transaction:a},t.tags))}}this._applyFingerprint(t);var i=this._getBreadcrumbs(),c=_to_consumable_array(t.breadcrumbs||[]).concat(_to_consumable_array(i));return t.breadcrumbs=c.length>0?c:void 0,t.sdkProcessingMetadata=_object_spread_props(_object_spread({},t.sdkProcessingMetadata,this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),notifyEventProcessors(_to_consumable_array(r||[]).concat(_to_consumable_array(Je()),_to_consumable_array(this._eventProcessors)),t,n)}},{key:"setSDKProcessingMetadata",value:function setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=_object_spread({},this._sdkProcessingMetadata,t),this}},{key:"setPropagationContext",value:function setPropagationContext(t){return this._propagationContext=t,this}},{key:"getPropagationContext",value:function getPropagationContext(){return this._propagationContext}},{key:"_getBreadcrumbs",value:function _getBreadcrumbs(){return this._breadcrumbs}},{key:"_notifyScopeListeners",value:function _notifyScopeListeners(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(n){n(t)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function _applyFingerprint(t){t.fingerprint=t.fingerprint?K(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}],[{key:"clone",value:function clone(t){var n=new _Scope;return t&&(n._breadcrumbs=_to_consumable_array(t._breadcrumbs),n._tags=_object_spread({},t._tags),n._extra=_object_spread({},t._extra),n._contexts=_object_spread({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=_to_consumable_array(t._eventProcessors),n._requestSession=t._requestSession,n._attachments=_to_consumable_array(t._attachments),n._sdkProcessingMetadata=_object_spread({},t._sdkProcessingMetadata),n._propagationContext=_object_spread({},t._propagationContext)),n}}]),_Scope}()}}),au=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/hub.js":function(){Hc(),zc(),ou(),ru(),Wc=4,100,Vc=function(){"use strict";function Hub(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new qc,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wc;_class_call_check(this,Hub),this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}return _create_class(Hub,[{key:"isOlderThan",value:function isOlderThan(t){return this._version0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function endSession(){var t=this.getStackTop().scope,n=t.getSession();n&&function closeSession(t,n){var r={};n?r={status:n}:"ok"===t.status&&(r={status:"exited"}),Qe(t,r)}(n),this._sendSessionUpdate(),t.setSession()}},{key:"startSession",value:function startSession(t){var n=this.getStackTop(),r=n.scope,o=n.client,a=o&&o.getOptions()||{},i=a.release,c=a.environment,u=void 0===c?Cc:c,l=(ks.navigator||{}).userAgent,d=function makeSession(t){var n=bc(),r={sid:H(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return Ze(r)}};return t&&Qe(r,t),r}(_object_spread({release:i,environment:u,user:r.getUser()},l&&{userAgent:l},t)),p=r.getSession&&r.getSession();return p&&"ok"===p.status&&Qe(p,{status:"exited"}),this.endSession(),r.setSession(d),d}},{key:"shouldSendDefaultPii",value:function shouldSendDefaultPii(){var t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function _sendSessionUpdate(){var t=this.getStackTop(),n=t.scope,r=t.client,o=n.getSession();o&&r&&r.captureSession&&r.captureSession(o)}},{key:"_withClient",value:function _withClient(t){var n=this.getStackTop(),r=n.scope,o=n.client;o&&t(o,r)}},{key:"_callExtensionMethod",value:function _callExtensionMethod(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:1e3;_class_call_check(this,SpanRecorder),this._maxlen=t,this.spans=[]}return _create_class(SpanRecorder,[{key:"add",value:function add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}]),SpanRecorder}(),Jc=function(){"use strict";function _Span(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_Span),this.traceId=t.traceId||H(),this.spanId=t.spanId||H().substring(16),this.startTimestamp=t.startTimestamp||bc(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return _create_class(_Span,[{key:"name",get:function get(){return this.description||""},set:function set(t){this.setName(t)}},{key:"startChild",value:function startChild(t){var n=new _Span(_object_spread_props(_object_spread({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.transaction){var r=t&&t.op||"< unknown op >",o=n.transaction.name||"< unknown name >",a=n.transaction.spanId,i="[Tracing] Starting '".concat(r,"' span on transaction '").concat(o,"' (").concat(a,").");n.transaction.metadata.spanMetadata[n.spanId]={logMessage:i},Cs.log(i)}return n}},{key:"setTag",value:function setTag(t,n){return this.tags=_object_spread_props(_object_spread({},this.tags),_define_property({},t,n)),this}},{key:"setData",value:function setData(t,n){return this.data=_object_spread_props(_object_spread({},this.data),_define_property({},t,n)),this}},{key:"setStatus",value:function setStatus(t){return this.status=t,this}},{key:"setHttpStatus",value:function setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);var n=lt(t);return"unknown_error"!==n&&this.setStatus(n),this}},{key:"setName",value:function setName(t){this.description=t}},{key:"isSuccess",value:function isSuccess(){return"ok"===this.status}},{key:"finish",value:function finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var n=this.transaction.metadata.spanMetadata[this.spanId].logMessage;n&&Cs.log(n.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:bc()}},{key:"toTraceparent",value:function toTraceparent(){return Me(this.traceId,this.spanId,this.sampled)}},{key:"toContext",value:function toContext(){return Y({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})}},{key:"updateWithContext",value:function updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}},{key:"getTraceContext",value:function getTraceContext(){return Y({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,origin:this.origin})}},{key:"toJSON",value:function toJSON(){return Y({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,origin:this.origin})}}]),_Span}()}}),uu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js":function(){Hc(),zc()}}),lu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/transaction.js":function(){Hc(),au(),uu(),cu(),Xc=function(t){"use strict";_inherits(Transaction,t);var n=_create_super(Transaction);function Transaction(t,r){var o;_class_call_check(this,Transaction),delete(o=n.call(this,t)).description,o._measurements={},o._contexts={},o._hub=r||rt(),o._name=t.name||"",o.metadata=_object_spread_props(_object_spread({source:"custom"},t.metadata),{spanMetadata:{}}),o._trimEnd=t.trimEnd,o.transaction=_assert_this_initialized(o);var a=o.metadata.dynamicSamplingContext;return a&&(o._frozenDynamicSamplingContext=_object_spread({},a)),o}return _create_class(Transaction,[{key:"name",get:function get(){return this._name},set:function set(t){this.setName(t)}},{key:"setName",value:function setName(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=t,this.metadata.source=n}},{key:"initSpanRecorder",value:function initSpanRecorder(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new Kc(t)),this.spanRecorder.add(this)}},{key:"setContext",value:function setContext(t,n){null===n?delete this._contexts[t]:this._contexts[t]=n}},{key:"setMeasurement",value:function setMeasurement(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[t]={value:n,unit:r}}},{key:"setMetadata",value:function setMetadata(t){this.metadata=_object_spread({},this.metadata,t)}},{key:"finish",value:function finish(t){var n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}},{key:"toContext",value:function toContext(){var t=_get(_get_prototype_of(Transaction.prototype),"toContext",this).call(this);return Y(_object_spread_props(_object_spread({},t),{name:this.name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function updateWithContext(t){return _get(_get_prototype_of(Transaction.prototype),"updateWithContext",this).call(this,t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}},{key:"getDynamicSamplingContext",value:function getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var t=this._hub||rt(),n=t.getClient();if(!n)return{};var r=t.getScope(),o=dt(this.traceId,n,r),a=this.metadata.sampleRate;void 0!==a&&(o.sample_rate="".concat(a));var i=this.metadata.source;return i&&"url"!==i&&(o.transaction=this.name),void 0!==this.sampled&&(o.sampled=String(this.sampled)),o}},{key:"setHub",value:function setHub(t){this._hub=t}},{key:"_finishTransaction",value:function _finishTransaction(t){var n=this;if(void 0===this.endTimestamp){this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Transaction has no name, falling back to ``."),this.name=""),_get(_get_prototype_of(Transaction.prototype),"finish",this).call(this,t);var r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));var o=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&o.length>0&&(this.endTimestamp=o.reduce((function(t,n){return t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t})).endTimestamp);var a=this.metadata,i=_object_spread({contexts:_object_spread_props(_object_spread({},this._contexts),{trace:this.getTraceContext()}),spans:o,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:_object_spread_props(_object_spread({},a),{dynamicSamplingContext:this.getDynamicSamplingContext()})},a.source&&{transaction_info:{source:a.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),i}}}]),Transaction}(Jc)}}),du=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/idletransaction.js":function(){Hc(),cu(),lu(),Qc={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},"finishReason",Zc=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],eu=function(t){"use strict";_inherits(IdleTransactionSpanRecorder,t);var n=_create_super(IdleTransactionSpanRecorder);function IdleTransactionSpanRecorder(t,r,o,a){var i;return _class_call_check(this,IdleTransactionSpanRecorder),(i=n.call(this,a))._pushActivity=t,i._popActivity=r,i.transactionSpanId=o,i}return _create_class(IdleTransactionSpanRecorder,[{key:"add",value:function add(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(r){t.endTimestamp="number"==typeof r?r:bc(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),_get(_get_prototype_of(IdleTransactionSpanRecorder.prototype),"add",this).call(this,t)}}]),IdleTransactionSpanRecorder}(Kc),tu=function(t){"use strict";_inherits(IdleTransaction,t);var n=_create_super(IdleTransaction);function IdleTransaction(t,r){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qc.idleTimeout,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qc.finalTimeout,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Qc.heartbeatInterval,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return _class_call_check(this,IdleTransaction),(o=n.call(this,t,r))._idleHub=r,o._idleTimeout=a,o._finalTimeout=i,o._heartbeatInterval=c,o._onScope=u,o.activities={},o._heartbeatCounter=0,o._finished=!1,o._idleTimeoutCanceledPermanently=!1,o._beforeFinishCallbacks=[],o._finishReason=Zc[4],u&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Setting idle transaction on scope. Span ID: ".concat(o.spanId)),r.configureScope((function(t){return t.setSpan(_assert_this_initialized(o))}))),o._restartIdleTimeout(),setTimeout((function(){o._finished||(o.setStatus("deadline_exceeded"),o._finishReason=Zc[3],o.finish())}),o._finalTimeout),o}return _create_class(IdleTransaction,[{key:"finish",value:function finish(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bc(),n=this;if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);var r=!0,o=!1,a=void 0;try{for(var i,c=this._beforeFinishCallbacks[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){(0,i.value)(this,t)}}catch(t){o=!0,a=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(r){if(r.spanId===n.spanId)return!0;r.endTimestamp||(r.endTimestamp=t,r.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));var o=r.startTimestamp1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0}).restartOnChildSpanChange;this._idleTimeoutCanceledPermanently=!1===n,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Zc[5],this.finish(t)))}},{key:"setFinishReason",value:function setFinishReason(t){this._finishReason=t}},{key:"_restartIdleTimeout",value:function _restartIdleTimeout(t){var n=this;this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){n._finished||0!==Object.keys(n.activities).length||(n._finishReason=Zc[1],n.finish(t))}),this._idleTimeout)}},{key:"_pushActivity",value:function _pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] pushActivity: ".concat(t)),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function _popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] popActivity ".concat(t)),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=bc();this._idleTimeoutCanceledPermanently?(this._finishReason=Zc[5],this.finish(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}},{key:"_beat",value:function _beat(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Zc[0],this.finish()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function _pingHeartbeat(){var t=this;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){t._beat()}),this._heartbeatInterval)}}]),IdleTransaction}(Xc)}}),pu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/utils/hasTracingEnabled.js":function(){au()}}),fu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/sampling.js":function(){Hc(),pu()}}),_u=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/hubextensions.js":function(){Hc(),au(),su(),du(),fu(),lu()}}),hu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/trace.js":function(){Hc(),au(),pu()}}),mu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/tracing/measurement.js":function(){iu()}});function flush(t){return _flush.apply(this,arguments)}function _flush(){return(_flush=_async_to_generator((function(t){var n;return _ts_generator(this,(function(r){return(n=rt().getClient())?[2,n.flush(t)]:(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])}))}))).apply(this,arguments)}function close(t){return _close.apply(this,arguments)}function _close(){return(_close=_async_to_generator((function(t){var n;return _ts_generator(this,(function(r){return(n=rt().getClient())?[2,n.close(t)]:(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])}))}))).apply(this,arguments)}var vu,yu,gu,bu,Su,Eu,ku,Tu,wu,xu,Ru,Iu,Cu,ju,Du,Ou,Nu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/exports.js":function(){Hc(),au()}}),Mu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/api.js":function(){Hc(),vu="7"}}),Bu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/envelope.js":function(){Hc()}}),Au=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/integration.js":function(){Hc(),nu(),au(),yu=[]}}),Uu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/utils/prepareEvent.js":function(){Hc(),zc(),nu(),ou(),gu=new WeakMap}}),Pu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/baseclient.js":function(){Hc(),Mu(),Bu(),Au(),ru(),uu(),Uu(),bu="Not capturing exception because it's already been captured.",Su=function(){"use strict";function BaseClient(t){if(_class_call_check(this,BaseClient),this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=M(t.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("No DSN provided, client will not send events."),this._dsn){var n=zt(this._dsn,t);this._transport=t.transport(_object_spread_props(_object_spread({recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}))}}return _create_class(BaseClient,[{key:"captureException",value:function captureException(t,n,r){var o=this;if(!$(t)){var a=n&&n.event_id;return this._process(this.eventFromException(t,n).then((function(t){return o._captureEvent(t,n,r)})).then((function(t){a=t}))),a}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log(bu)}},{key:"captureMessage",value:function captureMessage(t,n,r,o){var a=this,i=r&&r.event_id,c=u(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(c.then((function(t){return a._captureEvent(t,r,o)})).then((function(t){i=t}))),i}},{key:"captureEvent",value:function captureEvent(t,n,r){if(!(n&&n.originalException&&$(n.originalException))){var o=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then((function(t){o=t}))),o}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log(bu)}},{key:"captureSession",value:function captureSession(t){"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Qe(t,{init:!1}))}},{key:"getDsn",value:function getDsn(){return this._dsn}},{key:"getOptions",value:function getOptions(){return this._options}},{key:"getSdkMetadata",value:function getSdkMetadata(){return this._options._metadata}},{key:"getTransport",value:function getTransport(){return this._transport}},{key:"flush",value:function flush(t){var n=this._transport;return n?this._isClientDoneProcessing(t).then((function(r){return n.flush(t).then((function(t){return r&&t}))})):Te(!0)}},{key:"close",value:function close(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))}},{key:"getEventProcessors",value:function getEventProcessors(){return this._eventProcessors}},{key:"addEventProcessor",value:function addEventProcessor(t){this._eventProcessors.push(t)}},{key:"setupIntegrations",value:function setupIntegrations1(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function setupIntegrations(t,n){var r={};return n.forEach((function(n){n&&Vt(t,n,r)})),r}(this,this._options.integrations),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function getIntegrationById(t){return this._integrations[t]}},{key:"getIntegration",value:function getIntegration(t){try{return this._integrations[t.id]||null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Cannot retrieve integration ".concat(t.id," from the current Client")),null}}},{key:"addIntegration",value:function addIntegration(t){Vt(this,t,this._integrations)}},{key:"sendEvent",value:function sendEvent(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this;this.emit("beforeSendEvent",t,n);var o=qt(t,this._dsn,this._options._metadata,this._options.tunnel),a=!0,i=!1,c=void 0;try{for(var u,l=(n.attachments||[])[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;o=Ae(o,Ye(d,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}var p=this._sendEnvelope(o);p&&p.then((function(n){return r.emit("afterSendEvent",t,n)}),null)}},{key:"sendSession",value:function sendSession(t){var n=function createSessionEnvelope(t,n,r,o){var a=ze(r),i=_object_spread({sent_at:(new Date).toISOString()},a&&{sdk:a},!!o&&n&&{dsn:D(n)}),c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Be(i,[c])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}},{key:"recordDroppedEvent",value:function recordDroppedEvent(t,n,r){if(this._options.sendClientReports){var o="".concat(t,":").concat(n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log('Adding outcome: "'.concat(o,'"')),this._outcomes[o]=this._outcomes[o]+1||1}}},{key:"on",value:function on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}},{key:"emit",value:function emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=t&&(clearInterval(a),r(!1)))}),1)}))}},{key:"_isEnabled",value:function _isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}},{key:"_prepareEvent",value:function _prepareEvent(t,n,r){var o=this,a=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),Jt(a,t,n,r,this).then((function(t){if(null===t)return t;var n=(t.sdkProcessingMetadata||{}).propagationContext;if(!(t.contexts&&t.contexts.trace)&&n){var a=n.traceId,i=n.spanId,c=n.parentSpanId,u=n.dsc;t.contexts=_object_spread({trace:{trace_id:a,span_id:i,parent_span_id:c}},t.contexts);var l=u||dt(a,o,r);t.sdkProcessingMetadata=_object_spread({dynamicSamplingContext:l},t.sdkProcessingMetadata)}return t}))}},{key:"_captureEvent",value:function _captureEvent(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,n,r).then((function(t){return t.event_id}),(function(t){if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var n=t;"log"===n.logLevel?Cs.log(n.message):Cs.warn(n)}}))}},{key:"_processEvent",value:function _processEvent(t,n,r){var o=this,a=this.getOptions(),i=a.sampleRate,c=rn(t),u=nn(t),d=t.type||"error",f="before send for type `".concat(d,"`");if(u&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),we(new Ds("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));var _="replay_event"===d?"replay":d;return this._prepareEvent(t,n,r).then((function(r){if(null===r)throw o.recordDroppedEvent("event_processor",_,t),new Ds("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return r;var i=function processBeforeSend(t,n,r){var o=t.beforeSend,a=t.beforeSendTransaction;return nn(n)&&o?o(n,r):rn(n)&&a?a(n,r):n}(a,r,n);return function _validateBeforeSendResult(t,n){var r="".concat(n," must return `null` or a valid event.");if(p(t))return t.then((function(t){if(!l(t)&&null!==t)throw new Ds(r);return t}),(function(t){throw new Ds("".concat(n," rejected with ").concat(t))}));if(!l(t)&&null!==t)throw new Ds(r);return t}(i,f)})).then((function(a){if(null===a)throw o.recordDroppedEvent("before_send",_,t),new Ds("".concat(f," returned `null`, will not send event."),"log");var i=r&&r.getSession();!c&&i&&o._updateSessionFromEvent(i,a);var u=a.transaction_info;if(c&&u&&a.transaction!==t.transaction){a.transaction_info=_object_spread_props(_object_spread({},u),{source:"custom"})}return o.sendEvent(a,n),a})).then(null,(function(t){if(_instanceof(t,Ds))throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new Ds("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(t))}))}},{key:"_process",value:function _process(t){var n=this;this._numProcessing++,t.then((function(t){return n._numProcessing--,t}),(function(t){return n._numProcessing--,t}))}},{key:"_sendEnvelope",value:function _sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(function(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Error while sending event:",t)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("Transport disabled")}},{key:"_clearOutcomes",value:function _clearOutcomes(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map((function(n){var r=_sliced_to_array(n.split(":"),2);return{reason:r[0],category:r[1],quantity:t[n]}}))}}]),BaseClient}()}}),Lu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/sdk.js":function(){Hc(),au()}}),Fu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/transports/base.js":function(){Hc(),Eu=30}}),Gu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/transports/offline.js":function(){Hc(),ku=100,Tu=5e3,wu=36e5}}),Yu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/transports/multiplexed.js":function(){Hc(),Mu()}}),Hu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/version.js":function(){xu="7.79.0"}}),zu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/integrations/functiontostring.js":function(){Hc(),Iu=function(){"use strict";function _FunctionToString(){_class_call_check(this,_FunctionToString),this.name=_FunctionToString.id}return _create_class(_FunctionToString,[{key:"setupOnce",value:function setupOnce(){Ru=Function.prototype.toString;try{Function.prototype.toString=function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_InboundFilters),this.name=_InboundFilters.id,this._options=t}return _create_class(_InboundFilters,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t,n,r){var o=r.getOptions(),a=function _mergeOptions(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:_to_consumable_array(t.allowUrls||[]).concat(_to_consumable_array(n.allowUrls||[])),denyUrls:_to_consumable_array(t.denyUrls||[]).concat(_to_consumable_array(n.denyUrls||[])),ignoreErrors:_to_consumable_array(t.ignoreErrors||[]).concat(_to_consumable_array(n.ignoreErrors||[]),_to_consumable_array(t.disableErrorDefaults?[]:Cu)),ignoreTransactions:_to_consumable_array(t.ignoreTransactions||[]).concat(_to_consumable_array(n.ignoreTransactions||[]),_to_consumable_array(t.disableTransactionDefaults?[]:ju)),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(this._options,o);return function _shouldDropEvent(t,n){return n.ignoreInternal&&vn(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(q(t))),!0):pn(t,n.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(q(t))),!0):fn(t,n.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(q(t))),!0):_n(t,n.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(q(t),".\nUrl: ").concat(yn(t))),!0):!hn(t,n.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(q(t),".\nUrl: ").concat(yn(t))),!0)}(t,a)?null:t}}],[{key:"__initStatic",value:function __initStatic(){this.id="InboundFilters"}}]),_InboundFilters}(),Du.__initStatic()}}),Wu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/integrations/linkederrors.js":function(){Hc(),"cause",5,Ou=function(){"use strict";function _LinkedErrors(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_LinkedErrors),this._key=t.key||"cause",this._limit=t.limit||5,this.name=_LinkedErrors.id}return _create_class(_LinkedErrors,[{key:"setupOnce",value:function setupOnce(){}},{key:"preprocessEvent",value:function preprocessEvent(t,n,r){var o=r.getOptions();S(Ke,o.stackParser,o.maxValueLength,this._key,this._limit,t,n)}}],[{key:"__initStatic",value:function __initStatic(){this.id="LinkedErrors"}}]),_LinkedErrors}(),Ou.__initStatic()}}),Vu={};__export(Vu,{FunctionToString:function(){return Iu},InboundFilters:function(){return Du},LinkedErrors:function(){return Ou}});var $u,Ku,Ju,Xu,Qu,Zu=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/integrations/index.js":function(){zu(),qu(),Wu()}}),el=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/utils/isSentryRequestUrl.js":function(){}}),tl=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/metadata.js":function(){Hc(),$u=new Map,Ku=new Set}}),nl=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/integrations/metadata.js":function(){Hc(),tl(),(Ju=function(){"use strict";function _ModuleMetadata(){_class_call_check(this,_ModuleMetadata),this.name=_ModuleMetadata.id}return _create_class(_ModuleMetadata,[{key:"setupOnce",value:function setupOnce(t,n){var r=n().getClient();if(r&&"function"==typeof r.on){r.on("beforeEnvelope",(function(t){Ue(t,(function(t,n){if("event"===n){var r=Array.isArray(t)?t[1]:void 0;r&&(!function stripMetadataFromStackFrames(t){try{t.exception.values.forEach((function(t){if(t.stacktrace){var n=!0,r=!1,o=void 0;try{for(var a,i=(t.stacktrace.frames||[])[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)delete a.value.module_metadata}catch(t){r=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}}))}catch(t){}}(r),t[1]=r)}}))}));var o=r.getOptions().stackParser;t((function(t){return function addMetadataToStackFrames(t,n){try{n.exception.values.forEach((function(n){if(n.stacktrace){var r=!0,o=!1,a=void 0;try{for(var i,c=(n.stacktrace.frames||[])[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var u=i.value;if(u.filename){var l=kn(t,u.filename);l&&(u.module_metadata=l)}}}catch(t){o=!0,a=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}}}))}catch(t){}}(o,t),t}))}}}],[{key:"__initStatic",value:function __initStatic(){this.id="ModuleMetadata"}}]),_ModuleMetadata}()).__initStatic()}}),rl=__esm({"../../node_modules/.pnpm/@sentry+core@7.79.0/node_modules/@sentry/core/esm/index.js":function(){_u(),du(),cu(),iu(),hu(),uu(),mu(),Nu(),au(),ou(),nu(),Mu(),Pu(),Lu(),Fu(),Gu(),Yu(),Hu(),Au(),Zu(),Uu(),pu(),el(),zc(),nl(),zu(),qu(),Hc()}});function wrap(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t)return t;try{var o=t.__sentry_wrapped__;if(o)return o;if(P(t))return t}catch(n){return t}var a=function sentryWrapped(){var o=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var a=o.map((function(t){return wrap(t,n)}));return t.apply(this,a)}catch(t){throw function ignoreNextOnError(){Qu++,setTimeout((function(){Qu--}))}(),Lt((function(r){r.addEventProcessor((function(t){return n.mechanism&&(W(t,void 0,void 0),V(t,n.mechanism)),t.extra=_object_spread_props(_object_spread({},t.extra),{arguments:o}),t})),It(t)})),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=t[i])}catch(t){}U(a,t),A(t,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:function get(){return t.name}})}catch(t){}return a}var ol,al,il,sl,cl,ul,ll,dl,pl,fl,_l,hl,ml,vl,yl,gl,bl,Sl,El,kl,Tl,wl,xl,Rl,Il,Cl,jl,Dl,Ol,Nl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/helpers.js":function(){rl(),Hc(),Xu=ks,Qu=0}}),Ml=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/eventbuilder.js":function(){rl(),Hc(),ol=/Minified React error #\d+;/i}}),Bl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/userfeedback.js":function(){Hc()}}),Al=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/client.js":function(){rl(),Hc(),Ml(),Nl(),Bl(),al=function(t){"use strict";_inherits(BrowserClient,t);var n=_create_super(BrowserClient);function BrowserClient(t){var r;_class_call_check(this,BrowserClient);var o=Xu.SENTRY_SDK_SOURCE||"npm";return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"".concat(o,":@sentry/browser"),version:xu}],version:xu},r=n.call(this,t),t.sendClientReports&&Xu.document&&Xu.document.addEventListener("visibilitychange",(function(){"hidden"===Xu.document.visibilityState&&r._flushOutcomes()})),r}return _create_class(BrowserClient,[{key:"eventFromException",value:function eventFromException1(t,n){return jn(this._options.stackParser,t,n,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function eventFromMessage(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",r=arguments.length>2?arguments[2]:void 0;return Dn(this._options.stackParser,t,n,r,this._options.attachStacktrace)}},{key:"captureUserFeedback",value:function captureUserFeedback(t){if(this._isEnabled()){var n=An(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("SDK not enabled, will not capture user feedback.")}},{key:"_prepareEvent",value:function _prepareEvent(t,n,r){return t.platform=t.platform||"javascript",_get(_get_prototype_of(BrowserClient.prototype),"_prepareEvent",this).call(this,t,n,r)}},{key:"_flushOutcomes",value:function _flushOutcomes(){var t=this._clearOutcomes();if(0!==t.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Sending outcomes:",t);var n=function createClientReportEnvelope(t,n,r){var o=[{type:"client_report"},{timestamp:r||gc(),discarded_events:t}];return Be(n?{dsn:n}:{},[o])}(t,this._options.tunnel&&D(this._dsn));this._sendEnvelope(n)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("No outcomes to send")}}]),BrowserClient}(Su)}}),Ul=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/transports/utils.js":function(){Hc(),Nl(),il=void 0}}),Pl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/transports/fetch.js":function(){rl(),Hc(),Ul()}}),Ll=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/transports/xhr.js":function(){rl(),Hc(),sl=4}}),Fl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/stack-parsers.js":function(){Hc(),cl="?",10,20,30,40,50,ul=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ll=/\((\S*)(?::(\d+))(?::(\d+))\)/,pl=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fl=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hl=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vl=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,yl=[10,function(t){var n=vl.exec(t);return n?Fn(n[2],n[3]||cl,+n[1]):void 0}],gl=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,bl=[20,function(t){var n=gl.exec(t);return n?Fn(n[5],n[3]||n[4]||cl,+n[1],+n[2]):void 0}],El=J.apply(void 0,_to_consumable_array(Sl=[dl=[30,function(t){var n=ul.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){var r=ll.exec(n[2]);r&&(n[2]=r[1],n[3]=r[2],n[4]=r[3])}var o=_sliced_to_array(kl(n[1]||cl,n[2]),2),a=o[0],i=o[1];return Fn(i,a,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],_l=[50,function(t){var n=pl.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=fl.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o,a=n[3],i=n[1]||cl;return i=(o=_sliced_to_array(kl(i,a),2))[0],a=o[1],Fn(a,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],ml=[40,function(t){var n=hl.exec(t);return n?Fn(n[2],n[1]||cl,+n[3],n[4]?+n[4]:void 0):void 0}]])),kl=function(t,n){var r=-1!==t.indexOf("safari-extension"),o=-1!==t.indexOf("safari-web-extension");return r||o?[-1!==t.indexOf("@")?t.split("@")[0]:cl,r?"safari-extension:".concat(n):"safari-web-extension:".concat(n)]:[t,n]}}}),Gl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/globalhandlers.js":function(){rl(),Hc(),Ml(),Nl(),(Tl=function(){"use strict";function _GlobalHandlers(t){_class_call_check(this,_GlobalHandlers),this.name=_GlobalHandlers.id,this._options=_object_spread({onerror:!0,onunhandledrejection:!0},t),this._installFunc={onerror:Gn,onunhandledrejection:Yn}}return _create_class(_GlobalHandlers,[{key:"setupOnce",value:function setupOnce(){Error.stackTraceLimit=50;var t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(Wn(n),r(),this._installFunc[n]=void 0)}}}],[{key:"__initStatic",value:function __initStatic(){this.id="GlobalHandlers"}}]),_GlobalHandlers}()).__initStatic()}}),Yl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/trycatch.js":function(){Hc(),Nl(),wl=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],(xl=function(){"use strict";function _TryCatch(t){_class_call_check(this,_TryCatch),this.name=_TryCatch.id,this._options=_object_spread({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return _create_class(_TryCatch,[{key:"setupOnce",value:function setupOnce(){this._options.setTimeout&&B(Xu,"setTimeout",Kn),this._options.setInterval&&B(Xu,"setInterval",Kn),this._options.requestAnimationFrame&&B(Xu,"requestAnimationFrame",Jn),this._options.XMLHttpRequest&&"XMLHttpRequest"in Xu&&B(XMLHttpRequest.prototype,"send",Xn);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:wl).forEach(Qn)}}],[{key:"__initStatic",value:function __initStatic(){this.id="TryCatch"}}]),_TryCatch}()).__initStatic()}}),Hl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/breadcrumbs.js":function(){rl(),Hc(),Nl(),Rl=1024,(Il=function(){"use strict";function _Breadcrumbs(t){_class_call_check(this,_Breadcrumbs),this.name=_Breadcrumbs.id,this.options=_object_spread({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return _create_class(_Breadcrumbs,[{key:"setupOnce",value:function setupOnce(){if(this.options.console&&re("console",er),this.options.dom&&re("dom",function _domBreadcrumb(t){return function _innerDomBreadcrumb(n){var r,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>Rl&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("`dom.maxStringLength` cannot exceed ".concat(Rl,", but a value of ").concat(a," was configured. Sentry will use ").concat(Rl," instead.")),a=Rl),"string"==typeof o&&(o=[o]);try{var i=n.event;r=ar(i)?I(i.target,{keyAttrs:o,maxStringLength:a}):I(i,{keyAttrs:o,maxStringLength:a})}catch(t){r=""}0!==r.length&&rt().addBreadcrumb({category:"ui.".concat(n.name),message:r},{event:n.event,name:n.name,global:n.global})}}(this.options.dom)),this.options.xhr&&re("xhr",tr),this.options.fetch&&re("fetch",nr),this.options.history&&re("history",rr),this.options.sentry){var t=rt().getClient();t&&t.on&&t.on("beforeSendEvent",Zn)}}}],[{key:"__initStatic",value:function __initStatic(){this.id="Breadcrumbs"}}]),_Breadcrumbs}()).__initStatic()}}),zl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/linkederrors.js":function(){Hc(),Ml(),"cause",5,Cl=function(){"use strict";function _LinkedErrors(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_LinkedErrors),this.name=_LinkedErrors.id,this._key=t.key||"cause",this._limit=t.limit||5}return _create_class(_LinkedErrors,[{key:"setupOnce",value:function setupOnce(){}},{key:"preprocessEvent",value:function preprocessEvent(t,n,r){var o=r.getOptions();S(wn,o.stackParser,o.maxValueLength,this._key,this._limit,t,n)}}],[{key:"__initStatic",value:function __initStatic(){this.id="LinkedErrors"}}]),_LinkedErrors}(),Cl.__initStatic()}}),ql=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/httpcontext.js":function(){Nl(),(jl=function(){"use strict";function _HttpContext(){_class_call_check(this,_HttpContext),this.name=_HttpContext.id}return _create_class(_HttpContext,[{key:"setupOnce",value:function setupOnce(){}},{key:"preprocessEvent",value:function preprocessEvent(t){if(Xu.navigator||Xu.location||Xu.document){var n=t.request&&t.request.url||Xu.location&&Xu.location.href,r=(Xu.document||{}).referrer,o=(Xu.navigator||{}).userAgent,a=_object_spread({},t.request&&t.request.headers,r&&{Referer:r},o&&{"User-Agent":o}),i=_object_spread_props(_object_spread({},t.request,n&&{url:n}),{headers:a});t.request=i}}}],[{key:"__initStatic",value:function __initStatic(){this.id="HttpContext"}}]),_HttpContext}()).__initStatic()}}),Wl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/dedupe.js":function(){Hc(),(Dl=function(){"use strict";function _Dedupe(){_class_call_check(this,_Dedupe),this.name=_Dedupe.id}return _create_class(_Dedupe,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t){if(t.type)return t;try{if(function _shouldDropEvent2(t,n){return!(!n||!ir(t,n)&&!sr(t,n))}(t,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=t}}],[{key:"__initStatic",value:function __initStatic(){this.id="Dedupe"}}]),_Dedupe}()).__initStatic()}}),Vl=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/sdk.js":function(){rl(),Hc(),Al(),Nl(),Gl(),Yl(),Hl(),zl(),ql(),Wl(),Fl(),Pl(),Ll(),Ol=[new Vu.InboundFilters,new Vu.FunctionToString,new xl,new Il,new Tl,new Cl,new Dl,new jl]}}),$l={};__export($l,{Breadcrumbs:function(){return Il},Dedupe:function(){return Dl},GlobalHandlers:function(){return Tl},HttpContext:function(){return jl},LinkedErrors:function(){return Cl},TryCatch:function(){return xl}});var Kl,Jl,Xl,Ql,Zl,ed,td,nd,rd,od,ad,id,sd,cd,ud,ld,dd,pd,fd,_d,hd,md,vd,yd,gd,bd,Sd,Ed,kd,Td,wd,xd,Rd,Id,Cd,jd,Dd,Od,Nd,Md,Bd,Ad,Ud,Pd,Ld,Fd,Gd,Yd,Hd,zd,qd,Wd,Vd,$d,Kd,Jd,Xd,Qd,Zd,ep,tp,np,rp,op,ap,ip,sp,cp,up,lp,dp,pp,fp,_p,hp,mp,vp,yp,gp,bp,Sp,Ep,kp,Tp,wp,xp,Rp,Ip,Cp,jp,Dp,Op,Np,Mp,Bp,Ap,Up,Pp,Lp,Fp,Gp,Yp,Hp,zp,qp,Wp,Vp=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/integrations/index.js":function(){Gl(),Yl(),Hl(),zl(),ql(),Wl()}}),$p=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/types.js":function(){Hc(),Kl=ks}}),Kp=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/backgroundtab.js":function(){rl(),Hc(),$p()}}),Jp=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/bindReporter.js":function(){Jl=function(t,n,r){var o,a;return function(i){n.value>=0&&(i||r)&&((a=n.value-(o||0))||void 0===o)&&(o=n.value,n.delta=a,t(n))}}}}),Xp=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/generateUniqueID.js":function(){Xl=function(){return"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}}}),Qp=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getNavigationEntry.js":function(){$p(),Ql=function(){var t=Kl.performance.timing,n=Kl.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==n?"back_forward":1===n?"reload":"navigate"};for(var o in t)"navigationStart"!==o&&"toJSON"!==o&&(r[o]=Math.max(t[o]-t.navigationStart,0));return r},Zl=function(){return Kl.__WEB_VITALS_POLYFILL__?Kl.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Ql()):Kl.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]}}}),Zp=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getActivationStart.js":function(){Qp(),ed=function(){var t=Zl();return t&&t.activationStart||0}}}),ef=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/initMetric.js":function(){$p(),Xp(),Zp(),Qp(),td=function(t,n){var r=Zl(),o="navigate";return r&&(o=Kl.document.prerendering||ed()>0?"prerender":r.type.replace(/_/g,"-")),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:Xl(),navigationType:o}}}}),tf=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/observe.js":function(){nd=function(t,n,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var o=new PerformanceObserver((function(t){n(t.getEntries())}));return o.observe(Object.assign({type:t,buffered:!0},r||{})),o}}catch(t){}}}}),nf=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/onHidden.js":function(){$p(),rd=function(t,n){var onHiddenOrPageHide=function(r){"pagehide"!==r.type&&"hidden"!==Kl.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",onHiddenOrPageHide,!0),removeEventListener("pagehide",onHiddenOrPageHide,!0)))};addEventListener("visibilitychange",onHiddenOrPageHide,!0),addEventListener("pagehide",onHiddenOrPageHide,!0)}}}),rf=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getCLS.js":function(){Jp(),ef(),tf(),nf(),od=function(t){var n,r=td("CLS",0),o=0,a=[],handleEntries=function(t){t.forEach((function(t){if(!t.hadRecentInput){var i=a[0],c=a[a.length-1];o&&0!==a.length&&t.startTime-c.startTime<1e3&&t.startTime-i.startTime<5e3?(o+=t.value,a.push(t)):(o=t.value,a=[t]),o>r.value&&(r.value=o,r.entries=a,n&&n())}}))},i=nd("layout-shift",handleEntries);if(i){n=Jl(t,r);var stopListening=function(){handleEntries(i.takeRecords()),n(!0)};return rd(stopListening),stopListening}}}}),of=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getVisibilityWatcher.js":function(){$p(),nf(),ad=-1,id=function(){return"hidden"!==Kl.document.visibilityState||Kl.document.prerendering?1/0:0},sd=function(){rd((function(t){var n=t.timeStamp;ad=n}),!0)},cd=function(){return ad<0&&(ad=id(),sd()),{get firstHiddenTime(){return ad}}}}}),af=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getFID.js":function(){Jp(),of(),ef(),tf(),nf(),ud=function(t){var n,r=cd(),o=td("FID"),handleEntry=function(t){t.startTime since tab moved to the background, op: ").concat(t.op)),t.status||t.setStatus(n),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Could not set up background tab detection due to lack of global document")}(),m.enableInteractions&&this._registerInteractionListener(),zr({traceFetch:p,traceXHR:f,tracePropagationTargets:y,shouldCreateSpanForRequest:_,enableHTTPTimings:h})}},{key:"_createRouteTransaction",value:function _createRouteTransaction(t){var n=this;if(this._getCurrentHub){var r=this._getCurrentHub(),o=this.options,a=o.beforeNavigate,i=o.idleTimeout,c=o.finalTimeout,u=o.heartbeatInterval,l="pageload"===t.op,d=l?eo("sentry-trace"):"",p=l?eo("baggage"):"",f=Ne(d,p),_=f.traceparentData,h=f.dynamicSamplingContext,m=f.propagationContext,v=_object_spread_props(_object_spread({},t,_),{metadata:_object_spread_props(_object_spread({},t.metadata),{dynamicSamplingContext:_&&!h?{}:h}),trimEnd:!0}),y="function"==typeof a?a(v):v,g=void 0===y?_object_spread_props(_object_spread({},v),{sampled:!1}):y;g.metadata=g.name!==v.name?_object_spread_props(_object_spread({},g.metadata),{source:"custom"}):g.metadata,this._latestRouteName=g.name,this._latestRouteSource=g.metadata&&g.metadata.source,!1===g.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Will not send ".concat(g.op," transaction because of beforeNavigate.")),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Starting ".concat(g.op," transaction on scope"));var b=Kl.location,S=vt(r,g,i,c,!0,{location:b},u),E=r.getScope();return l&&_?E.setPropagationContext(m):E.setPropagationContext({traceId:S.traceId,spanId:S.spanId,parentSpanId:S.parentSpanId,sampled:S.sampled}),S.registerBeforeFinishCallback((function(t){n._collectWebVitals(),function addPerformanceEntries(t){var n=Nr();if(n&&Kl.performance.getEntries&&Sc){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Tracing] Adding & adjusting spans using Performance API");var r,o,a=Or(Sc),i=n.getEntries();if(i.slice(vd).forEach((function(n){var i=Or(n.startTime),c=Or(n.duration);if(!("navigation"===t.op&&a+i=t.startTimestamp)){var r=yd[n].value,o=a+Or(r),i=Math.abs(1e3*(o-t.startTimestamp)),c=i-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("[Measurements] Normalized ".concat(n," from ").concat(r," to ").concat(i," (").concat(c,")")),yd[n].value=i}}));var c=yd["mark.fid"];c&&yd.fid&&(Dr(t,{description:"first input delay",endTimestamp:c.value+Or(yd.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:c.value}),delete yd["mark.fid"]),"fcp"in yd||delete yd.cls,Object.keys(yd).forEach((function(n){t.setMeasurement(n,yd[n].value,yd[n].unit)})),Hr(t)}gd=void 0,bd=void 0,yd={}}}(t)})),S}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Did not create ".concat(t.op," transaction because _getCurrentHub is invalid."))}},{key:"_registerInteractionListener",value:function _registerInteractionListener(){var t,n=this,registerInteractionTransaction=function(){var r=n.options,o=r.idleTimeout,a=r.finalTimeout,i=r.heartbeatInterval,c="ui.action.click",u=ct();if(u&&u.op&&["navigation","pageload"].includes(u.op))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Did not create ".concat(c," transaction because a pageload or navigation transaction is in progress."));else if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),n._getCurrentHub)if(n._latestRouteName){var l=n._getCurrentHub(),d=Kl.location,p={name:n._latestRouteName,op:c,trimEnd:!0,metadata:{source:n._latestRouteSource||"url"}};t=vt(l,p,o,a,!0,{location:d},i)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Did not create ".concat(c," transaction because _latestRouteName is missing."));else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Tracing] Did not create ".concat(c," transaction because _getCurrentHub is invalid."))};["click"].forEach((function(t){addEventListener(t,registerInteractionTransaction,{once:!1,capture:!0})}))}}]),BrowserTracing}()}}),_f=__esm({"../../node_modules/.pnpm/@sentry-internal+tracing@7.79.0/node_modules/@sentry-internal/tracing/esm/index.js":function(){ff(),df(),cf()}});function distanceToMatch(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t?t.nodeType!==t.ELEMENT_NODE||o>r?-1:n(t)?o:distanceToMatch(t.parentNode,n,r,o+1):-1}function serializeNodeWithId(t,n){var r,o=n.doc,a=n.mirror,i=n.blockClass,c=n.blockSelector,u=n.unblockSelector,l=n.maskAllText,d=n.maskTextClass,p=n.unmaskTextClass,f=n.maskTextSelector,_=n.unmaskTextSelector,h=n.skipChild,m=void 0!==h&&h,v=n.inlineStylesheet,y=void 0===v||v,g=n.maskInputOptions,b=void 0===g?{}:g,S=n.maskAttributeFn,E=n.maskTextFn,k=n.maskInputFn,T=n.slimDOMOptions,w=n.dataURLOptions,x=void 0===w?{}:w,R=n.inlineImages,I=void 0!==R&&R,C=n.recordCanvas,j=void 0!==C&&C,D=n.onSerialize,O=n.onIframeLoad,N=n.iframeLoadTimeout,M=void 0===N?5e3:N,B=n.onStylesheetLoad,A=n.stylesheetLoadTimeout,U=void 0===A?5e3:A,P=n.keepIframeSrcFn,L=void 0===P?function(){return!1}:P,F=n.newlyAddedElement,G=void 0!==F&&F,Y=n.preserveWhiteSpace,H=void 0===Y||Y,z=function serializeNode(t,n){var r=n.doc,o=n.mirror,a=n.blockClass,i=n.blockSelector,c=n.unblockSelector,u=n.maskAllText,l=n.maskAttributeFn,d=n.maskTextClass,p=n.unmaskTextClass,f=n.maskTextSelector,_=n.unmaskTextSelector,h=n.inlineStylesheet,m=n.maskInputOptions,v=void 0===m?{}:m,y=n.maskTextFn,g=n.maskInputFn,b=n.dataURLOptions,S=void 0===b?{}:b,E=n.inlineImages,k=n.recordCanvas,T=n.keepIframeSrcFn,w=n.newlyAddedElement,x=void 0!==w&&w,R=To(r,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Bd.Document,childNodes:[],compatMode:t.compatMode}:{type:Bd.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Bd.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:R};case t.ELEMENT_NODE:return xo(t,{doc:r,blockClass:a,blockSelector:i,unblockSelector:c,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:v,maskInputFn:g,dataURLOptions:S,inlineImages:E,recordCanvas:k,keepIframeSrcFn:T,newlyAddedElement:x,rootId:R,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_});case t.TEXT_NODE:return wo(t,{maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_,maskTextFn:y,maskInputOptions:v,maskInputFn:g,rootId:R});case t.CDATA_SECTION_NODE:return{type:Bd.CDATA,textContent:"",rootId:R};case t.COMMENT_NODE:return{type:Bd.Comment,textContent:t.textContent||"",rootId:R};default:return!1}}(t,{doc:o,mirror:a,blockClass:i,blockSelector:c,maskAllText:l,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_,inlineStylesheet:y,maskInputOptions:b,maskAttributeFn:S,maskTextFn:E,maskInputFn:k,dataURLOptions:x,inlineImages:I,recordCanvas:j,keepIframeSrcFn:L,newlyAddedElement:G});if(!z)return console.warn(t,"not serialized"),null;r=a.hasNode(t)?a.getId(t):!function slimDOMExcluded(t,n){if(n.comment&&t.type===Bd.Comment)return!0;if(t.type===Bd.Element){if(n.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(n.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Ro(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ro(t.attributes.name)||"icon"===Ro(t.attributes.rel)||"apple-touch-icon"===Ro(t.attributes.rel)||"shortcut icon"===Ro(t.attributes.rel))))return!0;if("meta"===t.tagName){if(n.headMetaDescKeywords&&Ro(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(Ro(t.attributes.property).match(/^(og|twitter|fb):/)||Ro(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ro(t.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===Ro(t.attributes.name)||"googlebot"===Ro(t.attributes.name)||"bingbot"===Ro(t.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===Ro(t.attributes.name)||"generator"===Ro(t.attributes.name)||"framework"===Ro(t.attributes.name)||"publisher"===Ro(t.attributes.name)||"progid"===Ro(t.attributes.name)||Ro(t.attributes.property).match(/^article:/)||Ro(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===Ro(t.attributes.name)||"yandex-verification"===Ro(t.attributes.name)||"csrf-token"===Ro(t.attributes.name)||"p:domain_verify"===Ro(t.attributes.name)||"verify-v1"===Ro(t.attributes.name)||"verification"===Ro(t.attributes.name)||"shopify-checkout-api-token"===Ro(t.attributes.name)))return!0}}return!1}(z,T)&&(H||z.type!==Bd.Text||z.isStyle||z.textContent.replace(/^\s+|\s+$/gm,"").length)?ho():Fd;var q=Object.assign(z,{id:r});if(a.add(t,q),r===Fd)return null;D&&D(t);var W=!m;if(q.type===Bd.Element){W=W&&!q.needBlock,delete q.needBlock;var V=t.shadowRoot;V&&no(V)&&(q.isShadowHost=!0)}if((q.type===Bd.Document||q.type===Bd.Element)&&W){T.headWhitespace&&q.type===Bd.Element&&"head"===q.tagName&&(H=!1);var $={doc:o,mirror:a,blockClass:i,blockSelector:c,maskAllText:l,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_,skipChild:m,inlineStylesheet:y,maskInputOptions:b,maskAttributeFn:S,maskTextFn:E,maskInputFn:k,slimDOMOptions:T,dataURLOptions:x,inlineImages:I,recordCanvas:j,preserveWhiteSpace:H,onSerialize:D,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:L},K=!0,J=!1,X=void 0;try{for(var Q,Z=Array.from(t.childNodes)[Symbol.iterator]();!(K=(Q=Z.next()).done);K=!0){var ee=serializeNodeWithId(Q.value,$);ee&&q.childNodes.push(ee)}}catch(t){J=!0,X=t}finally{try{K||null==Z.return||Z.return()}finally{if(J)throw X}}if(function isElement$1(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot){var te=!0,ne=!1,re=void 0;try{for(var oe,ae=Array.from(t.shadowRoot.childNodes)[Symbol.iterator]();!(te=(oe=ae.next()).done);te=!0){var ie=serializeNodeWithId(oe.value,$);ie&&(no(t.shadowRoot)&&(ie.isShadow=!0),q.childNodes.push(ie))}}catch(t){ne=!0,re=t}finally{try{te||null==ae.return||ae.return()}finally{if(ne)throw re}}}}return t.parentNode&&to(t.parentNode)&&no(t.parentNode)&&(q.isShadow=!0),q.type===Bd.Element&&"iframe"===q.tagName&&function onceIframeLoaded(t,n,r){var o=t.contentWindow;if(o){var a,i=!1;try{a=o.document.readyState}catch(t){return}if("complete"===a){var c="about:blank";if(o.location.href!==c||t.src===c||""===t.src)return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}else{var u=setTimeout((function(){i||(n(),i=!0)}),r);t.addEventListener("load",(function(){clearTimeout(u),i=!0,n()}))}}}(t,(function(){var n=t.contentDocument;if(n&&O){var r=serializeNodeWithId(n,{doc:n,mirror:a,blockClass:i,blockSelector:c,unblockSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:y,maskInputOptions:b,maskAttributeFn:S,maskTextFn:E,maskInputFn:k,slimDOMOptions:T,dataURLOptions:x,inlineImages:I,recordCanvas:j,preserveWhiteSpace:H,onSerialize:D,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:L});r&&O(t,r)}}),M),q.type===Bd.Element&&"link"===q.tagName&&"stylesheet"===q.attributes.rel&&function onceStylesheetLoaded(t,n,r){var o,a=!1;try{o=t.sheet}catch(t){return}if(!o){var i=setTimeout((function(){a||(n(),a=!0)}),r);t.addEventListener("load",(function(){clearTimeout(i),a=!0,n()}))}}(t,(function(){if(B){var n=serializeNodeWithId(t,{doc:o,mirror:a,blockClass:i,blockSelector:c,unblockSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:y,maskInputOptions:b,maskAttributeFn:S,maskTextFn:E,maskInputFn:k,slimDOMOptions:T,dataURLOptions:x,inlineImages:I,recordCanvas:j,preserveWhiteSpace:H,onSerialize:D,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:L});n&&B(t,n)}}),U),q}function hookSetter(t,n,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=a.Object.getOwnPropertyDescriptor(t,n);return a.Object.defineProperty(t,n,o?r:{set:function set(t){var n=this;setTimeout((function(){r.set.call(n,t)}),0),i&&i.set&&i.set.call(this,t)}}),function(){return hookSetter(t,n,i||{},!0)}}function isAncestorRemoved(t,n){if(to(t))return!1;var r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||isAncestorRemoved(t.parentNode,n))}function deepDelete(t,n){t.delete(n),n.childNodes.forEach((function(n){return deepDelete(t,n)}))}function _isParentRemoved(t,n,r){var o=n.parentNode;if(!o)return!1;var a=r.getId(o);return!!t.some((function(t){return t.id===a}))||_isParentRemoved(t,o,r)}function _isAncestorInSet(t,n){var r=n.parentNode;return!!r&&(!!t.has(r)||_isAncestorInSet(t,r))}function _addEvent(t,n,r){return __addEvent.apply(this,arguments)}function __addEvent(){return(__addEvent=_async_to_generator((function(t,n,r){var o,a,i,c,u;return _ts_generator(this,(function(l){switch(l.label){case 0:if(!t.eventBuffer)return[2,null];l.label=1;case 1:return l.trys.push([1,3,,5]),r&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),r&&(t.eventBuffer.hasCheckout=!0),o=t.getOptions(),(a=Va(n,o.beforeAddRecordingEvent))?[4,t.eventBuffer.addEvent(a)]:[2];case 2:return[2,l.sent()];case 3:return i=l.sent(),c=i&&_instanceof(i,Dp)?"addEventSizeExceeded":"addEvent",("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error(i),[4,t.stop({reason:c})];case 4:return l.sent(),(u=rt().getClient())&&u.recordDroppedEvent("internal_sdk_error","replay"),[3,5];case 5:return[2]}}))}))).apply(this,arguments)}function _captureFetchBreadcrumbToReplay(){return(_captureFetchBreadcrumbToReplay=_async_to_generator((function(t,n,r){var o,a,i;return _ts_generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,_prepareFetchData(t,n,r)];case 1:return o=c.sent(),a=ci("resource.fetch",o),ri(r.replay,a),[3,3];case 2:return i=c.sent(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay] Failed to capture fetch breadcrumb",i),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function _prepareFetchData(t,n,r){return __prepareFetchData.apply(this,arguments)}function __prepareFetchData(){return(__prepareFetchData=_async_to_generator((function(t,n,r){var o,a,i,c,u,l,d,p,f,_,h,m;return _ts_generator(this,(function(v){switch(v.label){case 0:return o=n.startTimestamp,a=n.endTimestamp,i=t.data,c=i.url,u=i.method,l=i.status_code,d=void 0===l?0:l,p=i.request_body_size,f=i.response_body_size,_=hi(c,r.networkDetailAllowUrls)&&!hi(c,r.networkDetailDenyUrls),h=_?vi(r,n.input,p):ui(p),[4,_getResponseInfo(_,r,n.response,f)];case 1:return m=v.sent(),[2,{startTimestamp:o,endTimestamp:a,url:c,method:u,statusCode:d,request:h,response:m}]}}))}))).apply(this,arguments)}function _getResponseInfo(t,n,r,o){return __getResponseInfo.apply(this,arguments)}function __getResponseInfo(){return(__getResponseInfo=_async_to_generator((function(t,n,r,o){var a,i,c,u,l,d;return _ts_generator(this,(function(p){switch(p.label){case 0:if(a=n.networkCaptureBodies,i=n.textEncoder,c=n.networkResponseHeaders,!t&&void 0!==o)return[2,ui(o)];if(u=gi(r.headers,c),!a&&void 0!==o)return[2,li(u,o,void 0)];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,_parseFetchBody(r.clone())];case 2:return l=p.sent(),d=l&&l.length&&void 0===o?ai(l,i):o,t?a?[2,li(u,d,l)]:[2,li(u,d,void 0)]:[2,ui(d)];case 3:return p.sent(),[2,li(u,o,void 0)];case 4:return[2]}}))}))).apply(this,arguments)}function _parseFetchBody(t){return __parseFetchBody.apply(this,arguments)}function __parseFetchBody(){return(__parseFetchBody=_async_to_generator((function(t){return _ts_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.text()];case 1:return[2,n.sent()];case 2:return n.sent(),[2,void 0];case 3:return[2]}}))}))).apply(this,arguments)}function _captureXhrBreadcrumbToReplay(){return(_captureXhrBreadcrumbToReplay=_async_to_generator((function(t,n,r){var o,a;return _ts_generator(this,(function(i){try{o=Ei(t,n,r),a=ci("resource.xhr",o),ri(r.replay,a)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay] Failed to capture xhr breadcrumb",t)}return[2]}))}))).apply(this,arguments)}function addMemoryEntry(t){return _addMemoryEntry.apply(this,arguments)}function _addMemoryEntry(){return(_addMemoryEntry=_async_to_generator((function(t){return _ts_generator(this,(function(n){try{return[2,Promise.all(ti(t,[Oi(wd.performance.memory)]))]}catch(t){return[2,[]]}return[2]}))}))).apply(this,arguments)}function prepareReplayEvent(t){return _prepareReplayEvent.apply(this,arguments)}function _prepareReplayEvent(){return(_prepareReplayEvent=_async_to_generator((function(t){var n,r,o,a,i,c,u,l,d,p,f;return _ts_generator(this,(function(_){switch(_.label){case 0:return n=t.client,r=t.scope,o=t.replayId,a=t.event,i="object"!=typeof n._integrations||null===n._integrations||Array.isArray(n._integrations)?void 0:Object.keys(n._integrations),c={event_id:o,integrations:i},n.emit&&n.emit("preprocessEvent",a,c),[4,Jt(n.getOptions(),a,c,r,n)];case 1:return(u=_.sent())?(u.platform=u.platform||"javascript",l=n.getSdkMetadata&&n.getSdkMetadata(),d=l&&l.sdk||{},p=d.name,f=d.version,u.sdk=_object_spread_props(_object_spread({},u.sdk),{name:p||"sentry.javascript.unknown",version:f||"0.0.0"}),[2,u]):[2,null]}}))}))).apply(this,arguments)}function sendReplayRequest(t){return _sendReplayRequest.apply(this,arguments)}function _sendReplayRequest(){return(_sendReplayRequest=_async_to_generator((function(t){var n,r,o,a,i,c,u,l,d,p,f,_,h,m,v,y,g,b,S,E,k,T,w;return _ts_generator(this,(function(x){switch(x.label){case 0:return n=t.recordingData,r=t.replayId,o=t.segmentId,a=t.eventContext,i=t.timestamp,c=t.session,u=Ai({recordingData:n,headers:{segment_id:o}}),l=a.urls,d=a.errorIds,p=a.traceIds,f=a.initialTimestamp,_=rt(),h=_.getClient(),m=_.getScope(),v=h&&h.getTransport(),y=h&&h.getDsn(),h&&v&&y&&c.sampled?(g={type:Rd,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:d,trace_ids:p,urls:l,replay_id:r,segment_id:o,replay_type:c.sampled},[4,prepareReplayEvent({scope:m,client:h,replayId:r,event:g})]):[2];case 1:if(!(b=x.sent()))return h.recordDroppedEvent("event_processor","replay",g),ja("An event processor returned `null`, will not send event."),[2];delete b.sdkProcessingMetadata,S=Bi(b,u,y,h.getOptions().tunnel),x.label=2;case 2:return x.trys.push([2,4,,5]),[4,v.send(S)];case 3:return E=x.sent(),[3,5];case 4:k=x.sent(),T=new Error(Id);try{T.cause=k}catch(t){}throw T;case 5:if(!E)return[2,E];if("number"==typeof E.statusCode&&(E.statusCode<200||E.statusCode>=300))throw new Pp(E.statusCode);if(w=$e({},E),Ve(w,"replay"))throw new Lp(w);return[2,E]}}))}))).apply(this,arguments)}function sendReplay(t){return _sendReplay.apply(this,arguments)}function _sendReplay(){return _sendReplay=_async_to_generator((function(t){var n,r,o,a,i,c=arguments;return _ts_generator(this,(function(u){switch(u.label){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:{count:0,interval:Cd},r=t.recordingData,o=t.options,!r.length)return[2];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,sendReplayRequest(t)];case 2:return u.sent(),[2,!0];case 3:if(_instanceof(a=u.sent(),Pp)||_instanceof(a,Lp))throw a;if(Nt("Replays",{_retryCount:n.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o._experiments&&o._experiments.captureExceptions&&It(a),n.count>=jd){i=new Error("".concat(Id," - max retries exceeded"));try{i.cause=a}catch(t){}throw i}return n.interval*=++n.count,[2,new Promise((function(r,o){setTimeout(_async_to_generator((function(){var a;return _ts_generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,sendReplay(t,n)];case 1:return i.sent(),r(!0),[3,3];case 2:return a=i.sent(),o(a),[3,3];case 3:return[2]}}))})),n.interval)}))];case 4:return[2]}}))})),_sendReplay.apply(this,arguments)}var hf,mf,vf,yf,gf,bf,Sf,Ef,kf,Tf,wf,xf,Rf,If,Cf,jf,Df,Of=__esm({"../../node_modules/.pnpm/@sentry+replay@7.79.0/node_modules/@sentry/replay/esm/index.js":function(){var t,n,r,o,a;rl(),Hc(),_f(),wd=ks,xd="sentryReplaySession",Rd="replay_event",Id="Unable to send Replay",3e5,9e5,5e3,5500,6e4,Cd=5e3,jd=3,Dd=15e4,Od=5e3,3e3,300,Nd=2e7,4999,15e3,Md=36e5,(t=Bd||(Bd={}))[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",Ad=function(){"use strict";function Mirror(){_class_call_check(this,Mirror),this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return _create_class(Mirror,[{key:"getId",value:function getId(t){var n;if(!t)return-1;var r=null===(n=this.getMeta(t))||void 0===n?void 0:n.id;return null!=r?r:-1}},{key:"getNode",value:function getNode(t){return this.idNodeMap.get(t)||null}},{key:"getIds",value:function getIds(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function getMeta(t){return this.nodeMetaMap.get(t)||null}},{key:"removeNodeFromMap",value:function removeNodeFromMap(t){var n=this,r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach((function(t){return n.removeNodeFromMap(t)}))}},{key:"has",value:function has(t){return this.idNodeMap.has(t)}},{key:"hasNode",value:function hasNode(t){return this.nodeMetaMap.has(t)}},{key:"add",value:function add(t,n){var r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}},{key:"replace",value:function replace(t,n){var r=this.getNode(t);if(r){var o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}},{key:"reset",value:function reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),Mirror}(),Ud="__rrweb_original__",Pd=1,Ld=new RegExp("[^a-z0-9-_:]"),Fd=-2,Hd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,zd=/^(?:[a-z+]+:)?\/\//i,qd=/^www\..*/i,Wd=/^(data:)([^,]*),(.*)/i,Vd=/^[^ \t\n\r\u000c]+/,$d=/^[, \t\n\r\u000c]+/,Kd="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Jd={map:{},getId:function getId(){return console.error(Kd),-1},getNode:function getNode(){return console.error(Kd),null},removeNodeFromMap:function removeNodeFromMap(){console.error(Kd)},has:function has(){return console.error(Kd),!1},reset:function reset(){console.error(Kd)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Jd=new Proxy(Jd,{get:function get(t,n,r){return"map"===n&&console.error(Kd),Reflect.get(t,n,r)}})),Xd=Date.now,/[1-9][0-9]{12}/.test(Date.now().toString())||(Xd=function(){return(new Date).getTime()}),Qd=function(){"use strict";function StyleSheetMirror(){_class_call_check(this,StyleSheetMirror),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return _create_class(StyleSheetMirror,[{key:"getId",value:function getId(t){var n;return null!==(n=this.styleIDMap.get(t))&&void 0!==n?n:-1}},{key:"has",value:function has(t){return this.styleIDMap.has(t)}},{key:"add",value:function add(t,n){return this.has(t)?this.getId(t):(r=void 0===n?this.id++:n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r);var r}},{key:"getStyle",value:function getStyle(t){return this.idStyleMap.get(t)||null}},{key:"reset",value:function reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function generateId(){return this.id++}}]),StyleSheetMirror}(),(n=Zd||{})[n.DomContentLoaded=0]="DomContentLoaded",n[n.Load=1]="Load",n[n.FullSnapshot=2]="FullSnapshot",n[n.IncrementalSnapshot=3]="IncrementalSnapshot",n[n.Meta=4]="Meta",n[n.Custom=5]="Custom",n[n.Plugin=6]="Plugin",Zd=n,(r=ep||{})[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",ep=r,(o=tp||{})[o.MouseUp=0]="MouseUp",o[o.MouseDown=1]="MouseDown",o[o.Click=2]="Click",o[o.ContextMenu=3]="ContextMenu",o[o.DblClick=4]="DblClick",o[o.Focus=5]="Focus",o[o.Blur=6]="Blur",o[o.TouchStart=7]="TouchStart",o[o.TouchMove_Departed=8]="TouchMove_Departed",o[o.TouchEnd=9]="TouchEnd",o[o.TouchCancel=10]="TouchCancel",tp=o,(a=np||{})[a.Mouse=0]="Mouse",a[a.Pen=1]="Pen",a[a.Touch=2]="Touch",np=a,rp=function(){"use strict";function DoubleLinkedList(){_class_call_check(this,DoubleLinkedList),this.length=0,this.head=null,this.tail=null}return _create_class(DoubleLinkedList,[{key:"get",value:function get(t){if(t>=this.length)throw new Error("Position outside of list range");for(var n=this.head,r=0;r0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}},{key:"handleMessage",value:function handleMessage(t){var n=t;if("rrweb"===n.data.type&&n.origin===n.data.origin&&t.source){var r=this.crossOriginIframeMap.get(t.source);if(r){var o=this.transformCrossOriginEvent(r,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function transformCrossOriginEvent(t,n){var r,o=this;switch(n.type){case Zd.FullSnapshot:this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);var a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Zd.IncrementalSnapshot,data:{source:ep.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Zd.Meta:case Zd.Load:case Zd.DomContentLoaded:return!1;case Zd.Plugin:return n;case Zd.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Zd.IncrementalSnapshot:switch(n.data.source){case ep.Mutation:return n.data.adds.forEach((function(n){o.replaceIds(n,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(n.node,t);var r=o.crossOriginIframeRootIdMap.get(t);r&&o.patchRootIdOnNode(n.node,r)})),n.data.removes.forEach((function(n){o.replaceIds(n,t,["parentId","id"])})),n.data.attributes.forEach((function(n){o.replaceIds(n,t,["id"])})),n.data.texts.forEach((function(n){o.replaceIds(n,t,["id"])})),n;case ep.Drag:case ep.TouchMove:case ep.MouseMove:return n.data.positions.forEach((function(n){o.replaceIds(n,t,["id"])})),n;case ep.ViewportResize:return!1;case ep.MediaInteraction:case ep.MouseInteraction:case ep.Scroll:case ep.CanvasMutation:case ep.Input:return this.replaceIds(n.data,t,["id"]),n;case ep.StyleSheetRule:case ep.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ep.Font:return n;case ep.Selection:return n.data.ranges.forEach((function(n){o.replaceIds(n,t,["start","end"])})),n;case ep.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),null===(r=n.data.styles)||void 0===r||r.forEach((function(n){o.replaceStyleIds(n,t,["styleId"])})),n}}return!1}},{key:"replace",value:function replace(t,n,r,o){var a=!0,i=!1,c=void 0;try{for(var u,l=o[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;(Array.isArray(n[d])||"number"==typeof n[d])&&(Array.isArray(n[d])?n[d]=t.getIds(r,n[d]):n[d]=t.getId(r,n[d]))}}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}return n}},{key:"replaceIds",value:function replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}},{key:"replaceStyleIds",value:function replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}},{key:"replaceIdOnNode",value:function replaceIdOnNode(t,n){var r=this;this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((function(t){r.replaceIdOnNode(t,n)}))}},{key:"patchRootIdOnNode",value:function patchRootIdOnNode(t,n){var r=this;t.type===Bd.Document||t.rootId||(t.rootId=n),"childNodes"in t&&t.childNodes.forEach((function(t){r.patchRootIdOnNode(t,n)}))}}]),IframeManager}(),_p=function(){"use strict";function ShadowDomManagerNoop(){_class_call_check(this,ShadowDomManagerNoop)}return _create_class(ShadowDomManagerNoop,[{key:"init",value:function init(){}},{key:"addShadowRoot",value:function addShadowRoot(){}},{key:"observeAttachShadow",value:function observeAttachShadow(){}},{key:"reset",value:function reset(){}}]),ShadowDomManagerNoop}(),hp=function(){"use strict";function ShadowDomManager(t){_class_call_check(this,ShadowDomManager),this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}return _create_class(ShadowDomManager,[{key:"init",value:function init(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function addShadowRoot(t,n){var r=this;if(no(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var o=Vo(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push((function(){return o.disconnect()})),this.restoreHandlers.push(Ko(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout((function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,r.mirror.getId(t.host)),r.restoreHandlers.push(Zo({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},t))}),0)}}},{key:"observeAttachShadow",value:function observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}},{key:"patchAttachShadow",value:function patchAttachShadow(t,n){var r=this;this.restoreHandlers.push(jo(t.prototype,"attachShadow",(function(t){return function(o){var a=t.call(this,o);return this.shadowRoot&&Yo(this)&&r.addShadowRoot(this.shadowRoot,n),a}})))}},{key:"reset",value:function reset(){this.restoreHandlers.forEach((function(t){try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),ShadowDomManager}(),mp=function(){"use strict";function CanvasManagerNoop(){_class_call_check(this,CanvasManagerNoop)}return _create_class(CanvasManagerNoop,[{key:"reset",value:function reset(){}},{key:"freeze",value:function freeze(){}},{key:"unfreeze",value:function unfreeze(){}},{key:"lock",value:function lock(){}},{key:"unlock",value:function unlock(){}}]),CanvasManagerNoop}(),vp=function(){"use strict";function StylesheetManager(t){_class_call_check(this,StylesheetManager),this.trackedLinkElements=new WeakSet,this.styleMirror=new Qd,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return _create_class(StylesheetManager,[{key:"attachLinkElement",value:function attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}},{key:"trackLinkElement",value:function trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}},{key:"adoptStyleSheets",value:function adoptStyleSheets(t,n){if(0!==t.length){var r={id:n,styleIds:[]},o=[],a=!0,i=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value,p=void 0;this.styleMirror.has(d)?p=this.styleMirror.getId(d):(p=this.styleMirror.add(d),o.push({styleId:p,rules:Array.from(d.rules||CSSRule,(function(t,n){return{rule:oo(t),index:n}}))})),r.styleIds.push(p)}}catch(t){i=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(i)throw c}}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}}},{key:"reset",value:function reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function trackStylesheetInLinkElement(t){}}]),StylesheetManager}(),yp=function(){"use strict";function ProcessedNodeManager(){_class_call_check(this,ProcessedNodeManager),this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}return _create_class(ProcessedNodeManager,[{key:"periodicallyClear",value:function periodicallyClear(){var t=this;requestAnimationFrame((function(){t.clear(),t.loop&&t.periodicallyClear()}))}},{key:"inOtherBuffer",value:function inOtherBuffer(t,n){var r=this.nodeMap.get(t);return r&&Array.from(r).some((function(t){return t!==n}))}},{key:"add",value:function add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}},{key:"clear",value:function clear(){this.nodeMap=new WeakMap}},{key:"destroy",value:function destroy(){this.loop=!1}}]),ProcessedNodeManager}(),bp=function createMirror(){return new Ad}(),oa.mirror=bp,oa.takeFullSnapshot=aa,Sp=3,5,Ep="button,a",Tp=function(){"use strict";function ClickDetector(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ca;_class_call_check(this,ClickDetector),this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}return _create_class(ClickDetector,[{key:"addListeners",value:function addListeners(){var t=this,n=function onWindowOpen(t){return kp||(kp=[],fa()),kp.push(t),function(){var n=kp?kp.indexOf(t):-1;n>-1&&kp.splice(n,1)}}((function(){t._lastMutation=_a()}));this._teardown=function(){n(),t._clicks=[],t._lastMutation=0,t._lastScroll=0}}},{key:"removeListeners",value:function removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}},{key:"handleClick",value:function handleClick(t,n){if(!function ignoreElement(t,n){return!wp.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!n||!t.matches(n))}(n,this._ignoreSelector)&&function isClickBreadcrumb(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}(t)){var r={timestamp:sa(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some((function(t){return t.node===r.node&&Math.abs(t.timestamp-r.timestamp)<1}))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}}},{key:"registerMutation",value:function registerMutation(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=sa(t)}},{key:"registerScroll",value:function registerScroll(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=sa(t)}},{key:"registerClick",value:function registerClick(t){var n=ua(t);this._handleMultiClick(n)}},{key:"_handleMultiClick",value:function _handleMultiClick(t){this._getClicks(t).forEach((function(t){t.clickCount++}))}},{key:"_getClicks",value:function _getClicks(t){return this._clicks.filter((function(n){return n.node===t}))}},{key:"_checkClicks",value:function _checkClicks(){var t=this,n=[],r=_a();this._clicks.forEach((function(o){!o.mutationAfter&&t._lastMutation&&(o.mutationAfter=o.timestamp<=t._lastMutation?t._lastMutation-o.timestamp:void 0),!o.scrollAfter&&t._lastScroll&&(o.scrollAfter=o.timestamp<=t._lastScroll?t._lastScroll-o.timestamp:void 0),o.timestamp+t._timeout<=r&&n.push(o)}));var o=!0,a=!1,i=void 0;try{for(var c,u=n[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value,d=this._clicks.indexOf(l);d>-1&&(this._generateBreadcrumbs(l),this._clicks.splice(d,1))}}catch(t){a=!0,i=t}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}this._clicks.length&&this._scheduleCheckClicks()}},{key:"_generateBreadcrumbs",value:function _generateBreadcrumbs(t){var n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!o,i=t.clickCount,c=t.clickBreadcrumb;if(a){var u=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),l=u<1e3*this._timeout?"mutation":"timeout",d={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:_object_spread_props(_object_spread({},c.data),{url:wd.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:l,clickCount:i||1})};this._addBreadcrumbEvent(n,d)}else if(i>1){var p={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:_object_spread_props(_object_spread({},c.data),{url:wd.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0})};this._addBreadcrumbEvent(n,p)}}},{key:"_scheduleCheckClicks",value:function _scheduleCheckClicks(){var t=this;this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((function(){return t._checkClicks()}),1e3)}}]),ClickDetector}(),wp=["A","BUTTON","INPUT"],function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(xp||(xp={})),Rp=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]),Ip=function(t){return function(n){if(t.isEnabled()){var r=function handleDom(t){var n=ba(t),r=n.target,o=n.message;return va(_object_spread({category:"ui.".concat(t.name)},ga(r,o)))}(n);if(r){var o="click"===n.name,a=o&&n.event;!(o&&t.clickDetector&&a)||a.altKey||a.metaKey||a.ctrlKey||a.shiftKey||function handleClick(t,n,r){t.handleClick(n,r)}(t.clickDetector,r,la(n.event)),ca(t,r)}}}},Cp={resource:Ia,paint:xa,navigation:Ra},jp='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});',Dp=function(t){"use strict";_inherits(EventBufferSizeExceededError,_wrap_native_super(Error));var n=_create_super(EventBufferSizeExceededError);function EventBufferSizeExceededError(){return _class_call_check(this,EventBufferSizeExceededError),n.call(this,"Event buffer exceeded maximum size of ".concat(Nd,"."))}return EventBufferSizeExceededError}(),Op=function(){"use strict";function EventBufferArray(){_class_call_check(this,EventBufferArray),this.events=[],this._totalSize=0,this.hasCheckout=!1}return _create_class(EventBufferArray,[{key:"hasEvents",get:function get(){return this.events.length>0}},{key:"type",get:function get(){return"sync"}},{key:"destroy",value:function destroy(){this.events=[]}},{key:"addEvent",value:function addEvent(t){var n=this;return _async_to_generator((function(){var r;return _ts_generator(this,(function(o){if(r=JSON.stringify(t).length,n._totalSize+=r,n._totalSize>Nd)throw new Dp;return n.events.push(t),[2]}))}))()}},{key:"finish",value:function finish(){var t=this;return new Promise((function(n){var r=t.events;t.clear(),n(JSON.stringify(r))}))}},{key:"clear",value:function clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}},{key:"getEarliestTimestamp",value:function getEarliestTimestamp(){var t=this.events.map((function(t){return t.timestamp})).sort()[0];return t?ia(t):null}}]),EventBufferArray}(),Np=function(){"use strict";function WorkerHandler(t){_class_call_check(this,WorkerHandler),this._worker=t,this._id=0}return _create_class(WorkerHandler,[{key:"ensureReady",value:function ensureReady(){var t=this;return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((function(n,r){t._worker.addEventListener("message",(function(t){t.data.success?n():r()}),{once:!0}),t._worker.addEventListener("error",(function(t){r(t)}),{once:!0})}))),this._ensureReadyPromise}},{key:"destroy",value:function destroy(){ja("[Replay] Destroying compression worker"),this._worker.terminate()}},{key:"postMessage",value:function postMessage(t,n){var r=this,o=this._getAndIncrementId();return new Promise((function(a,i){var listener=function(n){var c=n.data;if(c.method===t&&c.id===o){if(r._worker.removeEventListener("message",listener),!c.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay]",c.response),void i(new Error("Error in compression worker"));a(c.response)}};r._worker.addEventListener("message",listener),r._worker.postMessage({id:o,method:t,arg:n})}))}},{key:"_getAndIncrementId",value:function _getAndIncrementId(){return this._id++}}]),WorkerHandler}(),Mp=function(){"use strict";function EventBufferCompressionWorker(t){_class_call_check(this,EventBufferCompressionWorker),this._worker=new Np(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}return _create_class(EventBufferCompressionWorker,[{key:"hasEvents",get:function get(){return!!this._earliestTimestamp}},{key:"type",get:function get(){return"worker"}},{key:"ensureReady",value:function ensureReady(){return this._worker.ensureReady()}},{key:"destroy",value:function destroy(){this._worker.destroy()}},{key:"addEvent",value:function addEvent(t){var n=ia(t.timestamp);(!this._earliestTimestamp||nNd?Promise.reject(new Dp):this._sendEventToWorker(r)}},{key:"finish",value:function finish(){return this._finishRequest()}},{key:"clear",value:function clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}},{key:"getEarliestTimestamp",value:function getEarliestTimestamp(){return this._earliestTimestamp}},{key:"_sendEventToWorker",value:function _sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}},{key:"_finishRequest",value:function _finishRequest(){var t=this;return _async_to_generator((function(){var n;return _ts_generator(this,(function(r){switch(r.label){case 0:return[4,t._worker.postMessage("finish")];case 1:return n=r.sent(),t._earliestTimestamp=null,t._totalSize=0,[2,n]}}))}))()}}]),EventBufferCompressionWorker}(),Bp=function(){"use strict";function EventBufferProxy(t){_class_call_check(this,EventBufferProxy),this._fallback=new Op,this._compression=new Mp(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}return _create_class(EventBufferProxy,[{key:"type",get:function get(){return this._used.type}},{key:"hasEvents",get:function get(){return this._used.hasEvents}},{key:"hasCheckout",get:function get(){return this._used.hasCheckout},set:function set(t){this._used.hasCheckout=t}},{key:"destroy",value:function destroy(){this._fallback.destroy(),this._compression.destroy()}},{key:"clear",value:function clear(){return this._used.clear()}},{key:"getEarliestTimestamp",value:function getEarliestTimestamp(){return this._used.getEarliestTimestamp()}},{key:"addEvent",value:function addEvent(t){return this._used.addEvent(t)}},{key:"finish",value:function finish(){var t=this;return _async_to_generator((function(){return _ts_generator(this,(function(n){switch(n.label){case 0:return[4,t.ensureWorkerIsLoaded()];case 1:return n.sent(),[2,t._used.finish()]}}))}))()}},{key:"ensureWorkerIsLoaded",value:function ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}},{key:"_ensureWorkerIsLoaded",value:function _ensureWorkerIsLoaded(){var t=this;return _async_to_generator((function(){return _ts_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t._compression.ensureReady()];case 1:return n.sent(),[3,3];case 2:return n.sent(),ja("[Replay] Failed to load the compression worker, falling back to simple buffer"),[2];case 3:return[4,t._switchToCompressionWorker()];case 4:return n.sent(),[2]}}))}))()}},{key:"_switchToCompressionWorker",value:function _switchToCompressionWorker(){var t=this;return _async_to_generator((function(){var n,r,o,a,i,c,u,l,d,p,f;return _ts_generator(this,(function(_){switch(_.label){case 0:n=t._fallback,r=n.events,o=n.hasCheckout,a=[],i=!0,c=!1,u=void 0;try{for(l=r[Symbol.iterator]();!(i=(d=l.next()).done);i=!0)p=d.value,a.push(t._compression.addEvent(p))}catch(t){c=!0,u=t}finally{try{i||null==l.return||l.return()}finally{if(c)throw u}}t._compression.hasCheckout=o,t._used=t._compression,_.label=1;case 1:return _.trys.push([1,3,,4]),[4,Promise.all(a)];case 2:return _.sent(),[3,4];case 3:return f=_.sent(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("[Replay] Failed to add events when switching buffers.",f),[3,4];case 4:return[2]}}))}))()}}]),EventBufferProxy}(),Ap=null,Up=function(t){return function(n){if(t.isEnabled()){var r=function handleScope(t){var n=t.getLastBreadcrumb&&t.getLastBreadcrumb();return Ap!==n&&n?(Ap=n,!function isBreadcrumbWithCategory(t){return!!t.category}(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?ji(n):va(n)):null}(n);r&&ca(t,r)}}},Pp=function(t){"use strict";_inherits(TransportStatusCodeError,_wrap_native_super(Error));var n=_create_super(TransportStatusCodeError);function TransportStatusCodeError(t){return _class_call_check(this,TransportStatusCodeError),n.call(this,"Transport returned status code ".concat(t))}return TransportStatusCodeError}(),Lp=function(t){"use strict";_inherits(RateLimitError,_wrap_native_super(Error));var n=_create_super(RateLimitError);function RateLimitError(t){var r;return _class_call_check(this,RateLimitError),(r=n.call(this,"Rate limit hit")).rateLimits=t,r}return RateLimitError}(),Fp="__THROTTLED",Gp="__SKIPPED",Yp=function(){"use strict";function _ReplayContainer(t){var n=t.options,r=t.recordingOptions,o=this;_class_call_check(this,_ReplayContainer),_ReplayContainer.prototype.__init.call(this),_ReplayContainer.prototype.__init2.call(this),_ReplayContainer.prototype.__init3.call(this),_ReplayContainer.prototype.__init4.call(this),_ReplayContainer.prototype.__init5.call(this),_ReplayContainer.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=n,this._debouncedFlush=function debounce(t,n,r){var o,a,i,c=r&&r.maxWait?Math.max(r.maxWait,n):0;function invokeFunc(){return cancelTimers(),o=t()}function cancelTimers(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function debounced(){return a&&clearTimeout(a),a=setTimeout(invokeFunc,n),c&&void 0===i&&(i=setTimeout(invokeFunc,c)),o}return debounced.cancel=cancelTimers,debounced.flush=function flush2(){return void 0!==a||void 0!==i?invokeFunc():o},debounced}((function(){return o._flush()}),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Ui((function(t,n){return function addEvent(t,n,r){return Wa(t,n)?_addEvent(t,n,r):Promise.resolve(null)}(o,t,n)}),300,5);var a=this.getOptions(),i=a.slowClickTimeout,c=a.slowClickIgnoreSelectors,u=i?{threshold:Math.min(3e3,i),timeout:i,scrollTimeout:300,ignoreSelector:c?c.join(","):""}:void 0;u&&(this.clickDetector=new Tp(this,u))}return _create_class(_ReplayContainer,[{key:"getContext",value:function getContext(){return this._context}},{key:"isEnabled",value:function isEnabled(){return this._isEnabled}},{key:"isPaused",value:function isPaused(){return this._isPaused}},{key:"getOptions",value:function getOptions(){return this._options}},{key:"initializeSampling",value:function initializeSampling(t){var n=this._options,r=n.errorSampleRate,o=n.sessionSampleRate;r<=0&&o<=0||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Da("[Replay] Starting replay in ".concat(this.recordingMode," mode"),this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}},{key:"start",value:function start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Da("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);var t=za({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}},{key:"startBuffering",value:function startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Da("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);var t=za({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}},{key:"startRecording",value:function startRecording(){try{this._stopRecording=oa(_object_spread_props(_object_spread({},this._recordingOptions,"buffer"===this.recordingMode&&{checkoutEveryNms:6e4}),{emit:Ni(this),onMutation:this._onMutationHandler}))}catch(t){this._handleException(t)}}},{key:"stopRecording",value:function stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}},{key:"stop",value:function stop(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.forceFlush,r=void 0!==n&&n,o=t.reason,a=this;return _async_to_generator((function(){var t;return _ts_generator(this,(function(n){switch(n.label){case 0:if(!a._isEnabled)return[2];a._isEnabled=!1,n.label=1;case 1:return n.trys.push([1,4,,5]),ja("[Replay] Stopping Replay".concat(o?" triggered by ".concat(o):""),a._options._experiments.traceInternals),a._removeListeners(),a.stopRecording(),a._debouncedFlush.cancel(),r?[4,a._flush({force:!0})]:[3,3];case 2:n.sent(),n.label=3;case 3:return a.eventBuffer&&a.eventBuffer.destroy(),a.eventBuffer=null,function clearSession(t){Aa(),t.session=void 0}(a),[3,5];case 4:return t=n.sent(),a._handleException(t),[3,5];case 5:return[2]}}))}))()}},{key:"pause",value:function pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ja("[Replay] Pausing replay",this._options._experiments.traceInternals))}},{key:"resume",value:function resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),ja("[Replay] Resuming replay",this._options._experiments.traceInternals))}},{key:"sendBufferedReplayOrFlush",value:function sendBufferedReplayOrFlush(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).continueRecording,n=void 0===t||t,r=this;return _async_to_generator((function(){var t,o;return _ts_generator(this,(function(a){switch(a.label){case 0:return"session"===r.recordingMode?[2,r.flushImmediate()]:(t=Date.now(),ja("[Replay] Converting buffer to session",r._options._experiments.traceInternals),[4,r.flushImmediate()]);case 1:return a.sent(),o=r.stopRecording(),n&&o?("session"===r.recordingMode||(r.recordingMode="session",r.session&&(r._updateUserActivity(t),r._updateSessionActivity(t),r._maybeSaveSession()),r.startRecording()),[2]):[2]}}))}))()}},{key:"addUpdate",value:function addUpdate(t){var n=t();"buffer"!==this.recordingMode&&!0!==n&&this._debouncedFlush()}},{key:"triggerUserActivity",value:function triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}},{key:"updateUserActivity",value:function updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}},{key:"conditionalFlush",value:function conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}},{key:"flush",value:function flush(){return this._debouncedFlush()}},{key:"flushImmediate",value:function flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}},{key:"cancelFlush",value:function cancelFlush(){this._debouncedFlush.cancel()}},{key:"getSessionId",value:function getSessionId(){return this.session&&this.session.id}},{key:"checkAndHandleExpiredSession",value:function checkAndHandleExpiredSession(){if(!(this._lastActivity&&Ga(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}},{key:"setInitialState",value:function setInitialState(){var t="".concat(wd.location.pathname).concat(wd.location.hash).concat(wd.location.search),n="".concat(wd.location.origin).concat(t);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}},{key:"throttledAddEvent",value:function throttledAddEvent(t,n){var r=this,o=this._throttledAddEvent(t,n);if(o===Fp){var a=va({category:"replay.throttled"});this.addUpdate((function(){return!qa(r,{type:5,timestamp:a.timestamp||0,data:{tag:"breadcrumb",payload:a,metric:!0}})}))}return o}},{key:"getCurrentRoute",value:function getCurrentRoute(){var t=this.lastTransaction||rt().getScope().getTransaction();if(t&&["route","custom"].includes(t.metadata.source))return t.name}},{key:"_initializeRecording",value:function _initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function createEventBuffer(t){var n=t.useCompression,r=t.workerUrl;if(n&&window.Worker){var o=Na(r);if(o)return o}return ja("[Replay] Using simple buffer"),new Op}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}},{key:"_handleException",value:function _handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&It(t)}},{key:"_initializeSessionForSampling",value:function _initializeSessionForSampling(t){var n=this._options.errorSampleRate>0,r=za({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}},{key:"_checkSession",value:function _checkSession(){if(!this.session)return!1;var t=this.session;return!Ha(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}},{key:"_refreshSession",value:function _refreshSession(t){var n=this;return _async_to_generator((function(){return _ts_generator(this,(function(r){switch(r.label){case 0:return n._isEnabled?[4,n.stop({reason:"refresh session"})]:[2];case 1:return r.sent(),n.initializeSampling(t.id),[2]}}))}))()}},{key:"_addListeners",value:function _addListeners(){try{wd.document.addEventListener("visibilitychange",this._handleVisibilityChange),wd.addEventListener("blur",this._handleWindowBlur),wd.addEventListener("focus",this._handleWindowFocus),wd.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function addGlobalListeners(t){var n=rt().getScope(),r=rt().getClient();n.addScopeListener(Up(t)),re("dom",Ip(t)),re("history",ni(t)),Ti(t);var o=ei(t,!Di(r));r&&r.addEventProcessor?r.addEventProcessor(o):Xe(o),Di(r)&&(r.on("afterSendEvent",Ja(t)),r.on("createDsc",(function(n){var r=t.getSessionId();r&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(n.replay_id=r)})),r.on("startTransaction",(function(n){t.lastTransaction=n})),r.on("finishTransaction",(function(n){t.lastTransaction=n})))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=Ca(this)}},{key:"_removeListeners",value:function _removeListeners(){try{wd.document.removeEventListener("visibilitychange",this._handleVisibilityChange),wd.removeEventListener("blur",this._handleWindowBlur),wd.removeEventListener("focus",this._handleWindowFocus),wd.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}},{key:"__init",value:function __init(){var t=this;this._handleVisibilityChange=function(){"visible"===wd.document.visibilityState?t._doChangeToForegroundTasks():t._doChangeToBackgroundTasks()}}},{key:"__init2",value:function __init2(){var t=this;this._handleWindowBlur=function(){var n=va({category:"ui.blur"});t._doChangeToBackgroundTasks(n)}}},{key:"__init3",value:function __init3(){var t=this;this._handleWindowFocus=function(){var n=va({category:"ui.focus"});t._doChangeToForegroundTasks(n)}}},{key:"__init4",value:function __init4(){var t=this;this._handleKeyboardEvent=function(n){!function handleKeyboardEvent(t,n){if(t.isEnabled()){t.updateUserActivity();var r=Ea(n);r&&ca(t,r)}}(t,n)}}},{key:"_doChangeToBackgroundTasks",value:function _doChangeToBackgroundTasks(t){this.session&&(Ya(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush()))}},{key:"_doChangeToForegroundTasks",value:function _doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):ja("[Replay] Document has become active, but session has expired"))}},{key:"_updateUserActivity",value:function _updateUserActivity(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=t}},{key:"_updateSessionActivity",value:function _updateSessionActivity(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}},{key:"_createCustomBreadcrumb",value:function _createCustomBreadcrumb(t){var n=this;this.addUpdate((function(){n.throttledAddEvent({type:Zd.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}},{key:"_addPerformanceEntries",value:function _addPerformanceEntries(){var t=function createPerformanceEntries(t){return t.map(Ta).filter(Boolean)}(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ti(this,t))}},{key:"_clearContext",value:function _clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}},{key:"_updateInitialTimestampFromEventBuffer",value:function _updateInitialTimestampFromEventBuffer(){var t=this.session,n=this.eventBuffer;if(t&&n&&!t.segmentId){var r=n.getEarliestTimestamp();r&&rt._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");return o=t._popEventContext(),a=t.session.segmentId++,t._maybeSaveSession(),[4,t.eventBuffer.finish()];case 4:return i=l.sent(),[4,sendReplay({replayId:n,recordingData:i,segmentId:a,eventContext:o,session:t.session,options:t.getOptions(),timestamp:r})];case 5:return l.sent(),[3,7];case 6:return c=l.sent(),t._handleException(c),t.stop({reason:"sendReplay"}),(u=rt().getClient())&&u.recordDroppedEvent("send_error","replay"),[3,7];case 7:return[2]}}))}))()}},{key:"__init5",value:function __init5(){var t=this;this._flush=_async_to_generator((function(){var n,r,o,a,i,c,u,l,d,p=arguments;return _ts_generator(this,(function(f){switch(f.label){case 0:return n=(p.length>0&&void 0!==p[0]?p[0]:{}).force,r=void 0!==n&&n,t._isEnabled||r?t.checkAndHandleExpiredSession()?t.session?(o=t.session.started,a=Date.now(),i=a-o,t._debouncedFlush.cancel(),c=it._options.maxReplayDuration+5e3,c||u?(ja("[Replay] Session duration (".concat(Math.floor(i/1e3),"s) is too ").concat(c?"short":"long",", not sending replay."),t._options._experiments.traceInternals),c&&t._debouncedFlush(),[2]):((l=t.eventBuffer)&&0===t.session.segmentId&&!l.hasCheckout&&ja("[Replay] Flushing initial segment without checkout.",t._options._experiments.traceInternals),t._flushLock?[3,2]:(t._flushLock=t._runFlush(),[4,t._flushLock]))):[2]:(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error("[Replay] Attempting to finish replay event after session expired."),[2]):[2];case 1:return f.sent(),t._flushLock=void 0,[2];case 2:return f.trys.push([2,4,5,6]),[4,t._flushLock];case 3:return f.sent(),[3,6];case 4:return d=f.sent(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.error(d),[3,6];case 5:return t._debouncedFlush(),[7];case 6:return[2]}}))}))}},{key:"_maybeSaveSession",value:function _maybeSaveSession(){this.session&&this._options.stickySession&&Pa(this.session)}},{key:"__init6",value:function __init6(){var t=this;this._onMutationHandler=function(n){var r=n.length,o=t._options.mutationLimit,a=o&&r>o;if(r>t._options.mutationBreadcrumbLimit||a){var i=va({category:"replay.mutations",data:{count:r,limit:a}});t._createCustomBreadcrumb(i)}return!a||(t.stop({reason:"mutationLimit",forceFlush:"session"===t.recordingMode}),!1)}}}]),_ReplayContainer}(),Hp='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',zp=["content-length","content-type","accept"],qp=!1,Wp=function(){"use strict";function _Replay(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.flushMinDelay,r=void 0===n?5e3:n,o=t.flushMaxDelay,a=void 0===o?5500:o,i=t.minReplayDuration,c=void 0===i?4999:i,u=t.maxReplayDuration,l=void 0===u?Md:u,d=t.stickySession,p=void 0===d||d,f=t.useCompression,_=void 0===f||f,h=t.workerUrl,m=t._experiments,v=void 0===m?{}:m,y=t.sessionSampleRate,g=t.errorSampleRate,b=t.maskAllText,S=void 0===b||b,E=t.maskAllInputs,k=void 0===E||E,T=t.blockAllMedia,w=void 0===T||T,x=t.mutationBreadcrumbLimit,R=void 0===x?750:x,I=t.mutationLimit,C=void 0===I?1e4:I,j=t.slowClickTimeout,D=void 0===j?7e3:j,O=t.slowClickIgnoreSelectors,N=void 0===O?[]:O,M=t.networkDetailAllowUrls,B=void 0===M?[]:M,A=t.networkDetailDenyUrls,U=void 0===A?[]:A,P=t.networkCaptureBodies,L=void 0===P||P,F=t.networkRequestHeaders,G=void 0===F?[]:F,Y=t.networkResponseHeaders,H=void 0===Y?[]:Y,z=t.mask,q=void 0===z?[]:z,W=t.maskAttributes,V=void 0===W?["title","placeholder"]:W,$=t.unmask,K=void 0===$?[]:$,J=t.block,X=void 0===J?[]:J,Q=t.unblock,Z=void 0===Q?[]:Q,ee=t.ignore,te=void 0===ee?[]:ee,ne=t.maskFn,re=t.beforeAddRecordingEvent,oe=t.beforeErrorSampling,ae=t.blockClass,ie=t.blockSelector,se=t.maskInputOptions,ce=t.maskTextClass,ue=t.maskTextSelector,le=t.ignoreClass;_class_call_check(this,_Replay),this.name=_Replay.id;var de=function getPrivacyOptions(t){var n=t.mask,r=t.unmask,o=t.block,a=t.unblock,i=t.ignore,c=t.blockClass,u=t.blockSelector,l=t.maskTextClass,d=t.maskTextSelector,p=t.ignoreClass,f={maskTextSelector:Pi(n,[".sentry-mask","[data-sentry-mask]"],l,d),unmaskTextSelector:Pi(r,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Pi(o,[".sentry-block","[data-sentry-block]"].concat(_to_consumable_array(['base[href="/"]'])),c,u),unblockSelector:Pi(a,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Pi(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],p)};return _instanceof(c,RegExp)&&(f.blockClass=c),_instanceof(l,RegExp)&&(f.maskTextClass=l),f}({mask:q,unmask:K,block:X,unblock:Z,ignore:te,blockClass:ae,blockSelector:ie,maskTextClass:ce,maskTextSelector:ue,ignoreClass:le});if(this._recordingOptions=_object_spread_props(_object_spread({maskAllInputs:k,maskAllText:S,maskInputOptions:_object_spread_props(_object_spread({},se||{}),{password:!0}),maskTextFn:ne,maskInputFn:ne,maskAttributeFn:function(t,n,r){return function maskAttribute(t){var n=t.el,r=t.key,o=t.maskAttributes,a=t.maskAllText,i=t.privacyOptions,c=t.value;return a?i.unmaskTextSelector&&n.matches(i.unmaskTextSelector)?c:o.includes(r)||"value"===r&&"INPUT"===n.tagName&&["submit","button"].includes(n.getAttribute("type")||"")?c.replace(/[\S]/g,"*"):c:c}({maskAttributes:V,maskAllText:S,privacyOptions:de,key:t,value:n,el:r})}},de),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:function(t){try{t.__rrweb__=!0}catch(t){}}}),this._initialOptions={flushMinDelay:r,flushMaxDelay:a,minReplayDuration:Math.min(c,15e3),maxReplayDuration:Math.min(l,Md),stickySession:p,sessionSampleRate:y,errorSampleRate:g,useCompression:_,workerUrl:h,blockAllMedia:w,maskAllInputs:k,maskAllText:S,mutationBreadcrumbLimit:R,mutationLimit:C,slowClickTimeout:D,slowClickIgnoreSelectors:N,networkDetailAllowUrls:B,networkDetailDenyUrls:U,networkCaptureBodies:L,networkRequestHeaders:Li(G),networkResponseHeaders:Li(H),beforeAddRecordingEvent:re,beforeErrorSampling:oe,_experiments:v},"number"==typeof y&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(y," })")),this._initialOptions.sessionSampleRate=y),"number"==typeof g&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(g," })")),this._initialOptions.errorSampleRate=g),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(Hp):Hp),this._isInitialized&&me())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}return _create_class(_Replay,[{key:"_isInitialized",get:function get(){return qp},set:function set(t){qp=t}},{key:"setupOnce",value:function setupOnce(){var t=this;me()&&(this._setup(),setTimeout((function(){return t._initialize()})))}},{key:"start",value:function start(){this._replay&&this._replay.start()}},{key:"startBuffering",value:function startBuffering(){this._replay&&this._replay.startBuffering()}},{key:"stop",value:function stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}},{key:"flush",value:function flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}},{key:"getReplayId",value:function getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}},{key:"_initialize",value:function _initialize(){this._replay&&this._replay.initializeSampling()}},{key:"_setup",value:function _setup(){var t=function loadReplayOptionsFromClient(t){var n=rt().getClient(),r=n&&n.getOptions(),o=_object_spread({sessionSampleRate:0,errorSampleRate:0},Y(t));return r?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==r.replaysSessionSampleRate&&null==r.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof r.replaysSessionSampleRate&&(o.sessionSampleRate=r.replaysSessionSampleRate),"number"==typeof r.replaysOnErrorSampleRate&&(o.errorSampleRate=r.replaysOnErrorSampleRate),o):(console.warn("SDK client is not available."),o)}(this._initialOptions);this._replay=new Yp({options:t,recordingOptions:this._recordingOptions})}}],[{key:"__initStatic",value:function __initStatic(){this.id="Replay"}}]),_Replay}(),Wp.__initStatic()}}),Nf=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/transports/offline.js":function(){rl(),Hc()}}),Mf=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/profiling/utils.js":function(){rl(),Hc(),Nl(),hf=1e6,mf=String(0),vf="main",yf="",gf="",bf="",Sf=Xu.navigator&&Xu.navigator.userAgent||"",Ef="",kf=Xu.navigator&&Xu.navigator.language||Xu.navigator&&Xu.navigator.languages&&Xu.navigator.languages[0]||"",function isUserAgentData(t){return"object"==typeof t&&null!==t&&"getHighEntropyValues"in t}(Tf=Xu.navigator&&Xu.navigator.userAgentData)&&Tf.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((function(t){if(yf=t.platform||"",bf=t.architecture||"",Ef=t.model||"",gf=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){var n=t.fullVersionList[t.fullVersionList.length-1];Sf="".concat(n.brand," ").concat(n.version)}})).catch((function(t){})),wf=new WeakMap,xf=!1,Rf=3e4,If=new Map}}),Bf=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/profiling/hubextensions.js":function(){Hc(),Nl(),Mf()}}),Af=__esm({"../../node_modules/.pnpm/@sentry+browser@7.79.0/node_modules/@sentry/browser/esm/profiling/integration.js":function(){Hc(),Bf(),Mf(),(Cf=function(){"use strict";function _BrowserProfilingIntegration(){_class_call_check(this,_BrowserProfilingIntegration),this.name=_BrowserProfilingIntegration.id}return _create_class(_BrowserProfilingIntegration,[{key:"setupOnce",value:function setupOnce(t,n){this.getCurrentHub=n;var r=this.getCurrentHub(),o=r.getClient(),a=r.getScope().getTransaction();a&&Vi(a)&&Ji(a)&&es(a),o&&"function"==typeof o.on?(o.on("startTransaction",(function(t){Ji(t)&&es(t)})),o.on("beforeEnvelope",(function(t){if(function getActiveProfilesCount(){return If.size}()){var n=function findProfiledTransactionsFromEnvelope(t){var n=[];return Ue(t,(function(t,r){if("transaction"===r)for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_CaptureConsole),this.name=_CaptureConsole.id,this._levels=t.levels||Rs}return _create_class(_CaptureConsole,[{key:"setupOnce",value:function setupOnce(t,n){if("console"in ks){var r=this._levels;re("console",(function(t){var o=t.args,a=t.level;if(r.includes(a)){var i=n();i.getIntegration(_CaptureConsole)&&function consoleHandler(t,n,r){t.withScope((function(o){o.setLevel(Ie(r)),o.setExtra("arguments",n),o.addEventProcessor((function(t){return t.logger="console",V(t,{handled:!1,type:"console"}),t}));var a=y(n," "),i=n.find((function(t){return _instanceof(t,Error)}));"assert"===r?!1===n[0]&&(a="Assertion failed: ".concat(y(n.slice(1)," ")||"console.assert"),o.setExtra("arguments",n.slice(1)),t.captureMessage(a)):"error"===r&&i?t.captureException(i):t.captureMessage(a)}))}(i,o,a)}}))}}}],[{key:"__initStatic",value:function __initStatic(){this.id="CaptureConsole"}}]),_CaptureConsole}(),Pf.__initStatic()}}),t_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/debug.js":function(){Hc(),(Lf=function(){"use strict";function _Debug(t){_class_call_check(this,_Debug),this.name=_Debug.id,this._options=_object_spread({debugger:!1,stringify:!1},t)}return _create_class(_Debug,[{key:"setupOnce",value:function setupOnce(t,n){var r=this,o=n().getClient();o&&o.on&&o.on("beforeSendEvent",(function(t,n){r._options.debugger,j((function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(t),n&&Object.keys(n).length&&console.log(n))}))}))}}],[{key:"__initStatic",value:function __initStatic(){this.id="Debug"}}]),_Debug}()).__initStatic()}}),n_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/dedupe.js":function(){Hc(),(Ff=function(){"use strict";function _Dedupe(){_class_call_check(this,_Dedupe),this.name=_Dedupe.id}return _create_class(_Dedupe,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t){if(t.type)return t;try{if(function _shouldDropEvent3(t,n){return!(!n||!ts(t,n)&&!ns(t,n))}(t,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){return this._previousEvent=t}return this._previousEvent=t}}],[{key:"__initStatic",value:function __initStatic(){this.id="Dedupe"}}]),_Dedupe}()).__initStatic()}}),r_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/extraerrordata.js":function(){Hc(),Gf=function(){"use strict";function _ExtraErrorData(t){_class_call_check(this,_ExtraErrorData),this.name=_ExtraErrorData.id,this._options=_object_spread({depth:3},t)}return _create_class(_ExtraErrorData,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t,n){return this.enhanceEventWithErrorData(t,n)}},{key:"enhanceEventWithErrorData",value:function enhanceEventWithErrorData(t){return function _enhanceEventWithErrorData(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(!n.originalException||!r(n.originalException))return t;var a=n.originalException.name||n.originalException.constructor.name,i=ss(n.originalException);if(i){var c=_object_spread({},t.contexts),u=ve(i,o);return l(u)&&(A(u,"__sentry_skip_normalization__",!0),c[a]=u),_object_spread_props(_object_spread({},t),{contexts:c})}return t}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this._options.depth)}}],[{key:"__initStatic",value:function __initStatic(){this.id="ExtraErrorData"}}]),_ExtraErrorData}(),Gf.__initStatic()}}),o_=__commonJS({"../../node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js":function(t,n){!function(r){if("object"==typeof t&&void 0!==n)n.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=r()}}((function(){return function e2(t,n,r){function s(a,i){if(!n[a]){if(!t[a]){var c="function"==typeof bs&&bs;if(!i&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(n){var r=t[a][1][n];return s(r||n)}),l,l.exports,e2,t,n,r)}return n[a].exports}for(var o="function"==typeof bs&&bs,a=0;a=43)}})).catch((function(){return!1}))}(t).then((function(t){return M=t}))},d=function _deferReadiness(t){var n=B[t.name],r={};r.promise=new O((function(t,n){r.resolve=t,r.reject=n})),n.deferredOperations.push(r),n.dbReady?n.dbReady=n.dbReady.then((function(){return r.promise})):n.dbReady=r.promise},p=function _advanceReadiness(t){var n=B[t.name].deferredOperations.pop();if(n)return n.resolve(),n.promise},f=function _rejectReadiness(t,n){var r=B[t.name].deferredOperations.pop();if(r)return r.reject(n),r.promise},_=function _getConnection(t,n){return new O((function(r,o){if(B[t.name]=B[t.name]||S(),t.db){if(!n)return r(t.db);d(t),t.db.close()}var a=[t.name];n&&a.push(t.version);var i=D.open.apply(D,a);n&&(i.onupgradeneeded=function(n){var r=i.result;try{r.createObjectStore(t.storeName),n.oldVersion<=1&&r.createObjectStore(N)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+t.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),i.onerror=function(t){t.preventDefault(),o(i.error)},i.onsuccess=function(){var n=i.result;n.onversionchange=function(t){t.target.close()},r(n),p(t)}}))},h=function _getOriginalConnection(t){return _(t,!1)},m=function _getUpgradedConnection(t){return _(t,!0)},v=function _isUpgradeNeeded(t,n){if(!t.db)return!0;var r=!t.db.objectStoreNames.contains(t.storeName),o=t.versiont.db.version;if(o&&(t.version!==n&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),a||r){if(r){var i=t.db.version+1;i>t.version&&(t.version=i)}return!0}return!1},y=function _decodeBlob(t){var n=function _binStringToArrayBuffer(t){for(var n=t.length,r=new ArrayBuffer(n),o=new Uint8Array(r),a=0;a>4,p[l++]=(15&o)<<4|a>>2,p[l++]=(3&a)<<6|63&i;return d},k=function bufferToString(t){var n,r=new Uint8Array(t),o="";for(n=0;n>2],o+=F[(3&r[n])<<4|r[n+1]>>4],o+=F[(15&r[n+1])<<2|r[n+2]>>6],o+=F[63&r[n+2]];return r.length%3==2?o=o.substring(0,o.length-1)+"=":r.length%3==1&&(o=o.substring(0,o.length-2)+"=="),o},T=function createDbTable(t,n,r,o){t.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,o)},w=function tryExecuteSql(t,n,r,o,a,i){t.executeSql(r,o,a,(function(t,c){c.code===c.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],(function(t,u){u.rows.length?i(t,c):T(t,n,(function(){t.executeSql(r,o,a,i)}),i)}),i):i(t,c)}),i)},x=function _getKeyPrefix(t,n){var r=t.name+"/";return t.storeName!==n.storeName&&(r+=t.storeName+"/"),r},R=function _isLocalStorageUsable(){return!function checkIfLocalStorageThrows(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||localStorage.length>0},I=function callWhenReady(t,n){t[n]=function(){var r=arguments;return t.ready().then((function(){return t[n].apply(t,r)}))}},C=function extend(){for(var t=1;t0&&(!t.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return O.resolve().then((function(){if(!t.db||"NotFoundError"===a.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),m(t)})).then((function(){return function _tryReconnect(t){d(t);for(var n=B[t.name],r=n.forages,o=0;o0)return void a(_setItem.apply(i,[t,u,r,o-1]));c(n)}}))}))})).catch(c)}));return a(u,r),u}var ae={_driver:"webSQLStorage",_initStorage:function _initStorage$1(t){var n=this,r={db:null};if(t)for(var o in t)r[o]="string"!=typeof t[o]?t[o].toString():t[o];var a=new O((function(t,o){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(t){return o(t)}r.db.transaction((function(a){T(a,r,(function(){n._dbInfo=r,t()}),(function(t,n){o(n)}))}),o)}));return r.serializer=oe,a},_support:function isWebSQLValid(){return"function"==typeof openDatabase}(),iterate:function iterate$1(t,n){var r=this,o=new O((function(n,o){r.ready().then((function(){var a=r._dbInfo;a.db.transaction((function(r){w(r,a,"SELECT * FROM "+a.storeName,[],(function(r,o){for(var i=o.rows,c=i.length,u=0;u '__WebKitDatabaseInfoTable__'",[],(function(r,o){for(var a=[],i=0;i=0;r--){var o=localStorage.key(r);0===o.indexOf(t)&&localStorage.removeItem(o)}}));return a(r,t),r},length:function length$2(t){var n=this.keys().then((function(t){return t.length}));return a(n,t),n},key:function key$2(t,n){var r=this,o=r.ready().then((function(){var n,o=r._dbInfo;try{n=localStorage.key(t)}catch(t){n=null}return n&&(n=n.substring(o.keyPrefix.length)),n}));return a(o,n),o},keys:function keys$2(t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=localStorage.length,o=[],a=0;a=0;n--){var r=localStorage.key(n);0===r.indexOf(t)&&localStorage.removeItem(r)}})):O.reject("Invalid arguments"),a(o,n),o}},se=function sameValue2(t,n){return t===n||"number"==typeof t&&"number"==typeof n&&isNaN(t)&&isNaN(n)},ce=function includes2(t,n){for(var r=t.length,o=0;o0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_Offline),this.name=_Offline.id,this.maxStoredEvents=t.maxStoredEvents||30,this.offlineEventStore=Yf.default.createInstance({name:"sentry/offlineEventStore"})}return _create_class(_Offline,[{key:"setupOnce",value:function setupOnce(t,n){var r=this;this.hub=n(),"addEventListener"in Hf&&Hf.addEventListener("online",(function(){r._sendEvents().catch((function(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("could not send cached events")}))}));var eventProcessor=function(t){return r.hub&&r.hub.getIntegration(_Offline)&&"navigator"in Hf&&"onLine"in Hf.navigator&&!Hf.navigator.onLine?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Event dropped due to being a offline - caching instead"),r._cacheEvent(t).then((function(t){return r._enforceMaxEvents()})).catch((function(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("could not cache event while offline")})),null):t};eventProcessor.id=this.name,t(eventProcessor),"navigator"in Hf&&"onLine"in Hf.navigator&&Hf.navigator.onLine&&this._sendEvents().catch((function(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("could not send cached events")}))}},{key:"_cacheEvent",value:function _cacheEvent(t){var n=this;return _async_to_generator((function(){return _ts_generator(this,(function(r){return[2,n.offlineEventStore.setItem(H(),ve(t))]}))}))()}},{key:"_enforceMaxEvents",value:function _enforceMaxEvents(){var t=this;return _async_to_generator((function(){var n;return _ts_generator(this,(function(r){return n=[],[2,t.offlineEventStore.iterate((function(t,r,o){n.push({cacheKey:r,event:t})})).then((function(){return t._purgeEvents(n.sort((function(t,n){return(n.event.timestamp||0)-(t.event.timestamp||0)})).slice(t.maxStoredEvents0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_ReportingObserver),this.name=_ReportingObserver.id,this._types=t.types||["crash","deprecation","intervention"]}return _create_class(_ReportingObserver,[{key:"setupOnce",value:function setupOnce(t,n){(function supportsReportingObserver(){return"ReportingObserver"in Ys})()&&(this._getCurrentHub=n,new qf.ReportingObserver(this.handler.bind(this),{buffered:!0,types:this._types}).observe())}},{key:"handler",value:function handler(t){var n=this._getCurrentHub&&this._getCurrentHub();if(n&&n.getIntegration(_ReportingObserver)){var r=!0,o=!1,a=void 0;try{for(var i,_loop=function(){var t=i.value;n.withScope((function(r){r.setExtra("url",t.url);var o="ReportingObserver [".concat(t.type,"]"),a="No details available";if(t.body){var i={};for(var c in t.body)i[c]=t.body[c];if(r.setExtra("body",i),"crash"===t.type){var u=t.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else{a=t.body.message||a}}n.captureMessage("".concat(o,": ").concat(a))}))},c=t[Symbol.iterator]();!(r=(i=c.next()).done);r=!0)_loop()}catch(t){o=!0,a=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}}}}],[{key:"__initStatic",value:function __initStatic(){this.id="ReportingObserver"}}]),_ReportingObserver}(),Wf.__initStatic()}}),s_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/rewriteframes.js":function(){Hc(),Vf=function(){"use strict";function _RewriteFrames(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_RewriteFrames),_RewriteFrames.prototype.__init.call(this),this.name=_RewriteFrames.id,t.root&&(this._root=t.root),this._prefix=t.prefix||"app:///",t.iteratee&&(this._iteratee=t.iteratee)}return _create_class(_RewriteFrames,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t){return this.process(t)}},{key:"process",value:function process1(t){var n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=this._processExceptionsEvent(n)),n}},{key:"__init",value:function __init(){var t=this;this._iteratee=function(n){if(!n.filename)return n;var r=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(r||o){var a=r?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,i=t._root?function relative(t,n){t=Se(t).slice(1),n=Se(n).slice(1);for(var r=Ee(t.split("/")),o=Ee(n.split("/")),a=Math.min(r.length,o.length),i=a,c=0;c=0;r--){var o=n[r];if(!0===o.in_app){t.transaction=cs(o);break}}return t}}],[{key:"__initStatic",value:function __initStatic(){this.id="Transaction"}}]),_Transaction}()).__initStatic()}}),l_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/httpclient.js":function(){rl(),Hc(),(Jf=function(){"use strict";function _HttpClient(t){_class_call_check(this,_HttpClient),this.name=_HttpClient.id,this._options=_object_spread({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},t)}return _create_class(_HttpClient,[{key:"setupOnce",value:function setupOnce(t,n){this._getCurrentHub=n,this._wrapFetch(),this._wrapXHR()}},{key:"_fetchResponseHandler",value:function _fetchResponseHandler(t,n,r){var o=this;if(this._getCurrentHub&&this._shouldCaptureResponse(n.status,n.url)){var a,i,c,u,l,d,p,f=function _getRequest(t,n){return!n&&_instanceof(t,Request)||_instanceof(t,Request)&&t.bodyUsed?t:new Request(t,n)}(t,r),_=this._getCurrentHub();if(_.shouldSendDefaultPii())a=(d=(l=_sliced_to_array([{cookieHeader:"Cookie",obj:f},{cookieHeader:"Set-Cookie",obj:n}].map((function(t){var n,r=t.cookieHeader,a=t.obj,i=o._extractFetchHeaders(a.headers);try{var c=i[r]||i[r.toLowerCase()]||void 0;c&&(n=o._parseCookieString(c))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Could not extract cookies from header ".concat(r))}return{headers:i,cookies:n}})),2))[0]).headers,c=d.cookies,i=(p=l[1]).headers,u=p.cookies;var h=this._createEvent({url:f.url,method:f.method,status:n.status,requestHeaders:a,responseHeaders:i,requestCookies:c,responseCookies:u});_.captureEvent(h)}}},{key:"_xhrResponseHandler",value:function _xhrResponseHandler(t,n,r){if(this._getCurrentHub&&this._shouldCaptureResponse(t.status,t.responseURL)){var o,a,i,c=this._getCurrentHub();if(c.shouldSendDefaultPii()){try{var u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(a=this._parseCookieString(u))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Could not extract cookies from response headers")}try{i=this._getXHRResponseHeaders(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.log("Could not extract headers from response")}o=r}var l=this._createEvent({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:i,responseCookies:a});c.captureEvent(l)}}},{key:"_getResponseSizeFromHeaders",value:function _getResponseSizeFromHeaders(t){if(t){var n=t["Content-Length"]||t["content-length"];if(n)return parseInt(n,10)}}},{key:"_parseCookieString",value:function _parseCookieString(t){return t.split("; ").reduce((function(t,n){var r=_sliced_to_array(n.split("="),2),o=r[0],a=r[1];return t[o]=a,t}),{})}},{key:"_extractFetchHeaders",value:function _extractFetchHeaders(t){var n={};return t.forEach((function(t,r){n[r]=t})),n}},{key:"_getXHRResponseHeaders",value:function _getXHRResponseHeaders(t){var n=t.getAllResponseHeaders();return n?n.split("\r\n").reduce((function(t,n){var r=_sliced_to_array(n.split(": "),2),o=r[0],a=r[1];return t[o]=a,t}),{}):{}}},{key:"_isInGivenRequestTargets",value:function _isInGivenRequestTargets(t){return!!this._options.failedRequestTargets&&this._options.failedRequestTargets.some((function(n){return"string"==typeof n?t.includes(n):n.test(t)}))}},{key:"_isInGivenStatusRanges",value:function _isInGivenStatusRanges(t){return!!this._options.failedRequestStatusCodes&&this._options.failedRequestStatusCodes.some((function(n){return"number"==typeof n?n===t:t>=n[0]&&t<=n[1]}))}},{key:"_wrapFetch",value:function _wrapFetch(){var t=this;ne()&&re("fetch",(function(n){var r=n.response,o=_sliced_to_array(n.args,2),a=o[0],i=o[1];r&&t._fetchResponseHandler(a,r,i)}))}},{key:"_wrapXHR",value:function _wrapXHR(){var t=this;"XMLHttpRequest"in ks&&re("xhr",(function(n){var r=n.xhr,o=r[qs];if(o){var a=o.method,i=o.request_headers;if(a)try{t._xhrResponseHandler(r,a,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Error while extracting response event form XHR response",t)}}}))}},{key:"_shouldCaptureResponse",value:function _shouldCaptureResponse(t,n){return this._isInGivenStatusRanges(t)&&this._isInGivenRequestTargets(n)&&!gn(n,rt())}},{key:"_createEvent",value:function _createEvent(t){var n="HTTP Client Error with status code: ".concat(t.status),r={message:n,exception:{values:[{type:"Error",value:n}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:this._getResponseSizeFromHeaders(t.responseHeaders)}}};return V(r,{type:"http.client",handled:!1}),r}}],[{key:"__initStatic",value:function __initStatic(){this.id="HttpClient"}}]),_HttpClient}()).__initStatic()}}),d_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/contextlines.js":function(){Hc(),Xf=ks,7,Qf=function(){"use strict";function _ContextLines(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_ContextLines),this._options=t,this.name=_ContextLines.id}return _create_class(_ContextLines,[{key:"setupOnce",value:function setupOnce(t,n){}},{key:"processEvent",value:function processEvent(t){return this.addSourceContext(t)}},{key:"addSourceContext",value:function addSourceContext(t){var n=this,r=Xf.document,o=Xf.location&&function stripUrlQueryAndFragment(t){return t.split(/[\?#]/,1)[0]}(Xf.location.href);if(!r||!o)return t;var a=t.exception&&t.exception.values;if(!a||!a.length)return t;var i=r.documentElement.innerHTML;if(!i)return t;var c=["",""].concat(_to_consumable_array(i.split("\n")),[""]);return a.forEach((function(t){var r=t.stacktrace;r&&r.frames&&(r.frames=r.frames.map((function(t){return us(t,c,o,null!=n._options.frameContextLines?n._options.frameContextLines:7)})))})),t}}],[{key:"__initStatic",value:function __initStatic(){this.id="ContextLines"}}]),_ContextLines}(),Qf.__initStatic()}}),p_={};__export(p_,{CaptureConsole:function(){return Pf},ContextLines:function(){return Qf},Debug:function(){return Lf},Dedupe:function(){return Ff},ExtraErrorData:function(){return Gf},HttpClient:function(){return Jf},Offline:function(){return zf},ReportingObserver:function(){return Wf},RewriteFrames:function(){return Vf},SessionTiming:function(){return $f},Transaction:function(){return Kf}});var f_=__esm({"../../node_modules/.pnpm/@sentry+integrations@7.79.0/node_modules/@sentry/integrations/esm/index.js":function(){e_(),t_(),n_(),r_(),a_(),i_(),s_(),c_(),u_(),l_(),d_()}}),__=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js":function(t,n){var r=Array.isArray;n.exports=r}}),h_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js":function(t,n){var r="object"==typeof global&&global&&global.Object===Object&&global;n.exports=r}}),m_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js":function(t,n){var r=h_(),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();n.exports=a}}),v_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js":function(t,n){var r=m_().Symbol;n.exports=r}}),y_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js":function(t,n){var r=v_(),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;n.exports=function getRawTag(t){var n=a.call(t,c),r=t[c];try{t[c]=void 0;var o=!0}catch(t){}var u=i.call(t);return o&&(n?t[c]=r:delete t[c]),u}}}),g_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js":function(t,n){var r=Object.prototype.toString;n.exports=function objectToString2(t){return r.call(t)}}}),b_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js":function(t,n){var r=v_(),o=y_(),a=g_(),i="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;n.exports=function baseGetTag(t){return null==t?void 0===t?c:i:u&&u in Object(t)?o(t):a(t)}}}),S_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js":function(t,n){n.exports=function isObjectLike(t){return null!=t&&"object"==typeof t}}}),E_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":function(t,n){var r=b_(),o=S_(),a="[object Symbol]";n.exports=function isSymbol(t){return"symbol"==(void 0===t?"undefined":_type_of(t))||o(t)&&r(t)==a}}}),k_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js":function(t,n){var r=__(),o=E_(),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;n.exports=function isKey(t,n){if(r(t))return!1;var c=void 0===t?"undefined":_type_of(t);return!("number"!=c&&"symbol"!=c&&"boolean"!=c&&null!=t&&!o(t))||(i.test(t)||!a.test(t)||null!=n&&t in Object(n))}}}),T_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js":function(t,n){n.exports=function isObject(t){var n=void 0===t?"undefined":_type_of(t);return null!=t&&("object"==n||"function"==n)}}}),w_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js":function(t,n){var r=b_(),o=T_(),a="[object AsyncFunction]",i="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";n.exports=function isFunction(t){if(!o(t))return!1;var n=r(t);return n==i||n==c||n==a||n==u}}}),x_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js":function(t,n){var r=m_()["__core-js_shared__"];n.exports=r}}),R_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js":function(t,n){var r,o=x_(),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";n.exports=function isMasked(t){return!!a&&a in t}}}),I_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js":function(t,n){var r=Function.prototype.toString;n.exports=function toSource(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}}}),C_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js":function(t,n){var r=w_(),o=R_(),a=T_(),i=I_(),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,d=u.toString,p=l.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n.exports=function baseIsNative(t){return!(!a(t)||o(t))&&(r(t)?f:c).test(i(t))}}}),j_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js":function(t,n){n.exports=function getValue(t,n){return null==t?void 0:t[n]}}}),D_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js":function(t,n){var r=C_(),o=j_();n.exports=function getNative(t,n){var a=o(t,n);return r(a)?a:void 0}}}),O_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js":function(t,n){var r=D_()(Object,"create");n.exports=r}}),N_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js":function(t,n){var r=O_();n.exports=function hashClear(){this.__data__=r?r(null):{},this.size=0}}}),M_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js":function(t,n){n.exports=function hashDelete(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}}}),B_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js":function(t,n){var r=O_(),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;n.exports=function hashGet(t){var n=this.__data__;if(r){var i=n[t];return i===o?void 0:i}return a.call(n,t)?n[t]:void 0}}}),A_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js":function(t,n){var r=O_(),o=Object.prototype.hasOwnProperty;n.exports=function hashHas(t){var n=this.__data__;return r?void 0!==n[t]:o.call(n,t)}}}),U_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js":function(t,n){var r=O_(),o="__lodash_hash_undefined__";n.exports=function hashSet(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=r&&void 0===n?o:n,this}}}),P_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js":function(t,n){var r=function Hash(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n-1}}}),q_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js":function(t,n){var r=G_();n.exports=function listCacheSet(t,n){var o=this.__data__,a=r(o,t);return a<0?(++this.size,o.push([t,n])):o[a][1]=n,this}}}),W_=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js":function(t,n){var r=function ListCache(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n-1&&t%1==0&&t-1&&t%1==0&&t<=r}}}),Sh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js":function(t,n){var r=ch(),o=gh(),a=__(),i=_h(),c=bh(),u=uh();n.exports=function hasPath(t,n,l){for(var d=-1,p=(n=r(n,t)).length,f=!1;++d0&&a(d)?n>1?baseFlatten(d,n-1,a,i,c):r(c,d):i||(c[c.length]=d)}return c}}}),Rh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js":function(t,n){var r=xh();n.exports=function flatten(t){return(null==t?0:t.length)?r(t,1):[]}}}),Ih=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js":function(t,n){n.exports=function apply(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}}}),Ch=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js":function(t,n){var r=Ih(),o=Math.max;n.exports=function overRest(t,n,a){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,c=-1,u=o(i.length-n,0),l=Array(u);++c0){if(++n>=r)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}}}),Mh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js":function(t,n){var r=Oh(),o=Nh()(r);n.exports=o}}),Bh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js":function(t,n){var r=Rh(),o=Ch(),a=Mh();n.exports=function flatRest(t){return a(o(t,void 0,r),t+"")}}}),Ah=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js":function(t,n){var r=kh(),o=Bh()((function(t,n){return null==t?{}:r(t,n)}));n.exports=o}}),Uh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js":function(t,n){var r=W_();n.exports=function stackClear(){this.__data__=new r,this.size=0}}}),Ph=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js":function(t,n){n.exports=function stackDelete(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}}}),Lh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js":function(t,n){n.exports=function stackGet(t){return this.__data__.get(t)}}}),Fh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js":function(t,n){n.exports=function stackHas(t){return this.__data__.has(t)}}}),Gh=__commonJS({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js":function(t,n){var r=W_(),o=V_(),a=th(),i=200;n.exports=function stackSet(t,n){var c=this.__data__;if(_instanceof(c,r)){var u=c.__data__;if(!o||u.lengtha?0:a+n),(r=r>a?a:r)<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o1),n})),c(t,d(t),l),p&&(l=o(l,7,u));for(var f=n.length;f--;)a(l,n[f]);return l}));n.exports=p}}),Km=__commonJS({"../sentry-sdk-core/dist/index.js":function(t,n){var r=function _array_like_to_array(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a},f=function _object_without_properties_loose(t,n){if(null==t)return{};var r,o,a={},i=Object.keys(t);for(o=0;o=0||(a[r]=t[r]);return a},_=function _sliced_to_array(t,n){return o(t)||function _iterable_to_array_limit(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,a,i=[],c=!0,u=!1;try{for(r=r.call(t);!(c=(o=r.next()).done)&&(i.push(o.value),!n||i.length!==n);c=!0);}catch(t){u=!0,a=t}finally{try{c||null==r.return||r.return()}finally{if(u)throw a}}return i}}(t,n)||m(t,n)||u()},h=function _to_consumable_array(t){return function _array_without_holes(t){if(Array.isArray(t))return r(t)}(t)||c(t)||m(t)||function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},m=function _unsupported_iterable_to_array(t,n){if(t){if("string"==typeof t)return r(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,n):void 0}},v=function _ts_generator(t,n){var r,o,a,i,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(i){return function(u){return function step(i){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,o&&(a=2&i[0]?o.return:i[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;switch(o=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&"("!==r[r.length-1]&&te[i]<=te[r[r.length-1]];){var p=r.pop(),f=o.pop(),_=o.pop();o.push(p(_,f))}r.push(ee[i])}else if("!"===i)r.push(Z);else{var h=i;r.length>0&&r[r.length-1]===Z&&(h=r.pop()(h)),o.push(h)}}for(;r.length>0;){var m=r.pop();if(m===Z){var v=o.pop();o.push(m(v))}else{var y=o.pop(),g=o.pop();o.push(m(g,y))}}if(1!==o.length)throw new Error("Invalid expression");var b=o[0];return ne.set(t,b),b},oe=function getErrorName(t){var n;return null===(n=t.originalException)||void 0===n?void 0:n.name},ae=function parseCategoryItem(t,n){var r=n.errorName,a=n.exception,i=n.event,l=n.hint;try{var d,p=function _to_array(t){return o(t)||c(t)||m(t)||u()}(t.value.split(".")),f=p[0],_=p.slice(1),h={errorName:r,exception:a,event:i,hint:l}[null===(d=f.match(/^\$(errorName|exception|event|hint)/))||void 0===d?void 0:d[1]];if(void 0===h)return!1;var v=_.reduce((function(t,n){return t[n]}),h);switch(t.matchMode){case"equal":return t.matchValue===v;case"inclusion":return-1!==v.indexOf(t.matchValue);case"regex":return new RegExp(t.matchValue,"i").test(v);default:return!1}}catch(t){return!1}},ie=function parseErrorType(t){var n=t.category,r=p(t,["category"]);try{return n.filter((function(t){if("expression"===t.matchMode){var n=t.value.map((function(t){return ae(t,r)})),o=t.expression.replace(/\$value(\.\w+)*\b/g,(function(t){return t.split(".").slice(1).reduce((function(t,n){return t[n]}),n)}));return!!re(o)}return"custom"===t.matchMode?!!t.value(r):ae(t,r)})).length}catch(t){return!1}},se=function handleErrorType(t,n,r){var o,a,i=oe(n),c={errorName:i,exception:null===(o=null===(a=t.exception)||void 0===a?void 0:a.values)||void 0===o?void 0:o[0],event:t,hint:n},u="js",f=i,_=r.categorySort,m=p(r,["categorySort"]),v=Object.keys(m),y=!0,g=!1,b=void 0;try{for(var S,E=Array.from(new Set(h(_).concat(h(v))))[Symbol.iterator]();!(y=(S=E.next()).done);y=!0){var k=S.value;if(ie(d(l({},c),{category:m[k]}))){u=k;break}}}catch(t){g=!0,b=t}finally{try{y||null==E.return||E.return()}finally{if(g)throw b}}return[u,f]},ce=N(Ah()),ue=N($m()),le={routeLabel:"path"},de={},pe=function formatEnvironment(t){return-1!==["dev","test","stag","prod","release","local"].indexOf(t)?t:"prod"},fe=function basicOptionsHandle(t){var n=de.basic;return l({},n,t)},_e=function integrationsHandle(t,n,r){var o,a,i,c,u,p,f,_,m=null!=t?t:{},v=m.httpClient,y=m.browserTracing,g=m.integrations,b=(null!=de?de:{}).integrations,S=null!=b?b:{},E=S.httpClient,k=null!==(p=null===(o=S.browserTracing)||void 0===o?void 0:o.beforeNavigatePattern)&&void 0!==p?p:[];return[new H.BrowserTracing(l({beforeNavigate:function beforeNavigate(t){var o,a,i=null===(o=null===(a=de.integrations)||void 0===a?void 0:a.browserTracing)||void 0===o?void 0:o.beforeNavigate;if(i)return i({context:t});if("name"===r)return t;var c="BROWSER"===n?window.location.pathname:window.location.hash.slice(1);return d(l({},t),{name:k.length?k.reduce((function(t,n){return t.replace(new RegExp(n.pattern,n.flags),n.target)}),c):c})}},null!=y?y:{})),new z.HttpClient(d(l({},E?(0,ce.default)(E,E.enableOverwrite):{},null!=v?v:{},E?(0,ue.default)(E,E.enableOverwrite):{}),{failedRequestTargets:h(null!==(f=null===(a=v)||void 0===a?void 0:a.failedRequestTargets)&&void 0!==f?f:[]).concat(h((null!==(_=null===(i=E)||void 0===i?void 0:i.failedRequestTargets)&&void 0!==_?_:[]).map((function(t){return new RegExp(t,"i")}))))}))].concat(h((null===(u=g)||void 0===u||null===(c=u.filter)||void 0===c?void 0:c.call(u,(function(t){return-1===P.indexOf(t.name)})))||[]))},he=function denyUrlsHandle(t){var n=de.denyUrls;return h(null!=t?t:[]).concat(h(n.map((function(t){return new RegExp(t,"i")}))))},me=function ignoreErrorsHandle(t){var n=de.ignoreErrors;return h(t||[]).concat(h(n.map((function(t){return new RegExp(t,"i")}))))}}}),Jm={};__export(Jm,{Breadcrumbs:function(){return Il},BrowserClient:function(){return al},BrowserProfilingIntegration:function(){return Cf},BrowserTracing:function(){return Td},Dedupe:function(){return Dl},FunctionToString:function(){return Iu},GlobalHandlers:function(){return Tl},HttpContext:function(){return jl},Hub:function(){return Vc},InboundFilters:function(){return Du},Integrations:function(){return Df},LinkedErrors:function(){return Cl},ModuleMetadata:function(){return Ju},Replay:function(){return Wp},SDK_VERSION:function(){return xu},Scope:function(){return qc},TryCatch:function(){return xl},VueIntegration:function(){return ov},WINDOW:function(){return Xu},addBreadcrumb:function(){return Ot},addGlobalEventProcessor:function(){return Xe},addIntegration:function(){return $t},addTracingExtensions:function(){return yt},attachErrorHandler:function(){return attachErrorHandler},captureBizException:function(){return av.captureBizException},captureEvent:function(){return av.captureEvent},captureException:function(){return av.captureException},captureMessage:function(){return av.captureMessage},captureUserFeedback:function(){return gr},chromeStackLineParser:function(){return dl},close:function(){return close},configureScope:function(){return Dt},continueTrace:function(){return Tt},createTracingMixins:function(){return createTracingMixins},createTransport:function(){return an},createUserFeedbackEnvelope:function(){return An},defaultIntegrations:function(){return Ol},defaultRequestInstrumentationOptions:function(){return Ed},defaultStackLineParsers:function(){return Sl},defaultStackParser:function(){return El},eventFromException:function(){return jn},eventFromMessage:function(){return Dn},exceptionFromError:function(){return wn},extractTraceparentData:function(){return Oe},flush:function(){return flush},forceLoad:function(){return _r},geckoStackLineParser:function(){return _l},getActiveSpan:function(){return kt},getActiveTransaction:function(){return ct},getCurrentHub:function(){return rt},getHubFromCarrier:function(){return it},init:function(){return fs},instrumentOutgoingRequests:function(){return zr},lastEventId:function(){return Gt},makeBrowserOfflineTransport:function(){return qi},makeFetchTransport:function(){return Pn},makeMain:function(){return nt},makeMultiplexedTransport:function(){return dn},makeXHRTransport:function(){return Ln},onLoad:function(){return hr},onProfilingStartRouteTransaction:function(){return Zi},opera10StackLineParser:function(){return yl},opera11StackLineParser:function(){return bl},setContext:function(){return Nt},setExtra:function(){return Bt},setExtras:function(){return Mt},setMeasurement:function(){return Rt},setTag:function(){return Ut},setTags:function(){return At},setUser:function(){return Pt},showReportDialog:function(){return fr},spanStatusfromHttpCode:function(){return lt},startInactiveSpan:function(){return Et},startSpan:function(){return bt},startSpanManual:function(){return St},startTransaction:function(){return Ft},trace:function(){return gt},vueRouterInstrumentation:function(){return ps},winjsStackLineParser:function(){return ml},withScope:function(){return Lt},wrap:function(){return mr}});var Xm=__toESM(Km());Zf(),Zf(),rl(),Hc();var Qm=["activate","mount","update"];Zf(),Hc();var Zm=/(?:^|[-_])(\w)/g,ev="",formatComponentName=function(t,n){if(!t)return ev;if(t.$root===t)return"";if(!t.$options)return ev;var r=t.$options,o=r.name||r._componentTag,a=r.__file;if(!o&&a){var i=a.match(/([^/\\]+)\.vue$/);i&&(o=i[1])}return(o?"<".concat(o.replace(Zm,(function(t){return t.toUpperCase()})).replace(/[-_]/g,""),">"):ev)+(a&&!1!==n?" at ".concat(a):"")},attachErrorHandler=function(t,n){var r=t.config,o=r.errorHandler,a=r.warnHandler,i=r.silent;t.config.errorHandler=function(r,c,u){var l=formatComponentName(c,!1),d=c?function(t){if(t&&(t._isVue||t.__isVue)&&t.$parent){for(var n=[],r=0;t;){if(n.length>0){var o=n[n.length-1];if(o.constructor===t.constructor){r++,t=t.$parent;continue}r>0&&(n[n.length-1]=[o,r],r=0)}n.push(t),t=t.$parent}var a=n.map((function(t,n){return"".concat((0===n?"---\x3e ":(o=5+2*n,(r=" ").repeat?r.repeat(o):r))+(Array.isArray(t)?"".concat(formatComponentName(t[0]),"... (").concat(t[1]," recursive calls)"):formatComponentName(t)));var r,o})).join("\n");return"\n\nfound in\n\n".concat(a)}return"\n\n(found in ".concat(formatComponentName(t),")")}(c):"",p={componentName:l,lifecycleHook:u,trace:d};if(n.attachProps&&c&&(c.$options&&c.$options.propsData?p.propsData=c.$options.propsData:c.$props&&(p.propsData=c.$props)),setTimeout((function(){rt().withScope((function(t){t.setContext("vue",p),t.addEventProcessor((function(t){return V(t,{handled:!1}),t})),rt().captureException(r)}))})),"function"==typeof o&&o.call(t,r,c,u),n.logErrors){var f="undefined"!=typeof console,_="Error in ".concat(u,': "').concat(r&&r.toString(),'"');a?a.call(null,_,c,d):f&&!i&&console.error("[Vue warn]: ".concat(_).concat(d))}}};Zf(),Hc();var tv="ui.vue",nv={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},createTracingMixins=function(t){var n=(t.hooks||[]).concat(Qm).filter((function(t,n,r){return r.indexOf(t)===n})),r={},o=!0,a=!1,i=void 0;try{for(var c,_loop=function(){var n=c.value,o=nv[n];if(!o)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Cs.warn("Unknown hook: ".concat(n)),"continue";var a=!0,i=!1,u=void 0;try{for(var l,_loop=function(){var a=l.value;r[a]=function createTracingMixins(){var r=this.$root===this;if(r){var i=ls();i&&(this.$_sentryRootSpan=this.$_sentryRootSpan||i.startChild({description:"Application Render",op:"".concat(tv,".render"),origin:"auto.ui.vue"}))}var c=formatComponentName(this,!1),u=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(c)>-1:t.trackComponents;if(r||u)if(this.$_sentrySpans=this.$_sentrySpans||{},a==o[0]){var l=this.$root&&this.$root.$_sentryRootSpan||ls();if(l){var d=this.$_sentrySpans[n];d&&!d.endTimestamp&&d.finish(),this.$_sentrySpans[n]=l.startChild({description:"Vue <".concat(c,">"),op:"".concat(tv,".").concat(n),origin:"auto.ui.vue"})}}else{var p=this.$_sentrySpans[n];if(!p)return;p.finish(),function finishRootSpan(t,n,r){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout((function(){t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.finish(n),t.$root.$_sentryRootSpan=void 0)}),r)}(this,bc(),t.timeout)}}},d=o[Symbol.iterator]();!(a=(l=d.next()).done);a=!0)_loop()}catch(t){i=!0,u=t}finally{try{a||null==d.return||d.return()}finally{if(i)throw u}}},u=n[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)_loop()}catch(t){a=!0,i=t}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}return r},rv={Vue:ks.Vue,attachProps:!0,logErrors:!0,hooks:Qm,timeout:2e3,trackComponents:!1},ov=function(){"use strict";function _VueIntegration(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_class_call_check(this,_VueIntegration),this.name=_VueIntegration.id,this._options=t}return _create_class(_VueIntegration,[{key:"setupOnce",value:function setupOnce(t,n){this._setupIntegration(n())}},{key:"_setupIntegration",value:function _setupIntegration(t){var n=t.getClient(),r=_object_spread({},rv,n&&n.getOptions(),this._options);r.Vue||r.app?r.app?K(r.app).forEach((function(t){return vueInit(t,r)})):r.Vue&&vueInit(r.Vue,r):console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}}],[{key:"__initStatic",value:function __initStatic(){this.id="Vue"}}]),_VueIntegration}();ov.__initStatic();var vueInit=function(t,n){var r=t;!0===(r._instance&&r._instance.isMounted)&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),attachErrorHandler(t,n),pt(n)&&t.mixin(createTracingMixins(_object_spread({},n,n.tracingOptions)))};Zf(),Hc();var av=__toESM(Km()),iv={trackComponents:!0,hooks:["activate","mount","update"],timeout:2e3};return __toCommonJS(Jm)}(); /*! Bundled license information: localforage/dist/localforage.js: (*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 *) */