/*! For license information please see fetchWarningMessage.js.LICENSE.txt */ (()=>{var e={410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(561),s=n(481);const i=[];i[0]={w:[0],i:[3,0],"[":[4],o:[7]},i[1]={w:[1],".":[2],"[":[4],o:[7]},i[2]={w:[2],i:[3,0],0:[3,0]},i[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},i[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},i[5]={"'":[4,0],o:8,l:[5,0]},i[6]={'"':[4,0],o:8,l:[6,0]};const a=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function c(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function l(e){const t=[];let n,r,o,s,l,u,d,p=-1,h=0,f=0;const m=[];function g(){const t=e[p+1];if(5===h&&"'"===t||6===h&&'"'===t)return p++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,h=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,a.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;m[1]()}};null!==h;)if(p++,n=e[p],"\\"!==n||!g()){if(s=c(n),d=i[h],l=d[s]||d.l||8,8===l)return;if(h=l[0],void 0!==l[1]&&(u=m[l[1]],u&&(o=n,!1===u())))return;if(7===h)return t}}const u=new Map;function d(e,t){return o.isObject(e)?e[t]:null}const p=e=>e,h=e=>"",f="text",m=e=>0===e.length?"":e.join(""),g=o.toDisplayString;function _(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function y(e={}){const t=e.locale,n=function(e){const t=o.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o.isNumber(e.named.count)||o.isNumber(e.named.n))?o.isNumber(e.named.count)?e.named.count:o.isNumber(e.named.n)?e.named.n:t:t}(e),r=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?e.pluralRules[t]:_,s=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?_:void 0,i=e.list||[],a=e.named||{};function c(t){return(o.isFunction(e.messages)?e.messages(t):!!o.isObject(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):h)}o.isNumber(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);const l=o.isPlainObject(e.processor)&&o.isFunction(e.processor.normalize)?e.processor.normalize:m,u=o.isPlainObject(e.processor)&&o.isFunction(e.processor.interpolate)?e.processor.interpolate:g,d={list:e=>i[e],named:e=>a[e],plural:e=>e[r(n,e.length,s)],linked:(t,...n)=>{const[r,s]=n;let i="text",a="";1===n.length?o.isObject(r)?(a=r.modifier||a,i=r.type||i):o.isString(r)&&(a=r||a):2===n.length&&(o.isString(r)&&(a=r||a),o.isString(s)&&(i=s||i));let l=c(t)(d);return"vnode"===i&&o.isArray(l)&&a&&(l=l[0]),a?(u=a,e.modifiers?e.modifiers[u]:p)(l,i):l;var u},message:c,type:o.isPlainObject(e.processor)&&o.isString(e.processor.type)?e.processor.type:f,interpolate:u,normalize:l};return d}let v=null;const b=S(s.IntlifyDevToolsHooks.FunctionTranslate);function S(e){return t=>v&&v.emit(e,t)}const E={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},T={[E.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[E.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[E.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[E.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function C(e,t,n){return[...new Set([n,...o.isArray(t)?t:o.isObject(t)?Object.keys(t):o.isString(t)?[t]:[n]])]}function k(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let A,R,L,M=null,P=null,D=0;function F(e,t,n,r,s){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,s);return o.isString(r)?r:t}return t}const U=e=>e;let B=Object.create(null),$=r.CompileErrorCodes.__EXTEND_POINT__;const j=()=>++$,H={INVALID_ARGUMENT:$,INVALID_DATE_ARGUMENT:j(),INVALID_ISO_DATE_ARGUMENT:j(),__EXTEND_POINT__:j()};function V(e){return r.createCompileError(e,null,void 0)}const W=()=>"",z=e=>o.isFunction(e);function G(e,t,n,r,s,i){const{messages:a,onWarn:c,messageResolver:l,localeFallbacker:u}=e,d=u(e,r,n);let p,h={},f=null;for(let n=0;nr;return e.locale=n,e.key=t,e}const l=a(r,function(e,t,n,r,s,i){return{warnHtmlMessage:s,onError:e=>{throw i&&i(e),e},onCacheKey:e=>o.generateFormatCacheKey(t,n,e)}}(0,n,s,0,c,i));return l.locale=n,l.key=t,l.source=r,l}function X(...e){const[t,n,r]=e,s={};if(!o.isString(t)&&!o.isNumber(t)&&!z(t))throw V(H.INVALID_ARGUMENT);const i=o.isNumber(t)?String(t):(z(t),t);return o.isNumber(n)?s.plural=n:o.isString(n)?s.default=n:o.isPlainObject(n)&&!o.isEmptyObject(n)?s.named=n:o.isArray(n)&&(s.list=n),o.isNumber(r)?s.plural=r:o.isString(r)?s.default=r:o.isPlainObject(r)&&o.assign(s,r),[i,s]}const Y=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function K(...e){const[t,n,r,s]=e,i={};let a,c={};if(o.isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw V(H.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch(e){throw V(H.INVALID_ISO_DATE_ARGUMENT)}}else if(o.isDate(t)){if(isNaN(t.getTime()))throw V(H.INVALID_DATE_ARGUMENT);a=t}else{if(!o.isNumber(t))throw V(H.INVALID_ARGUMENT);a=t}return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach((e=>{Y.includes(e)?c[e]=n[e]:i[e]=n[e]})),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(c=r),o.isPlainObject(s)&&(c=s),[i.key||"",a,i,c]}const J=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Q(...e){const[t,n,r,s]=e,i={};let a={};if(!o.isNumber(t))throw V(H.INVALID_ARGUMENT);const c=t;return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach((e=>{J.includes(e)?a[e]=n[e]:i[e]=n[e]})),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(a=r),o.isPlainObject(s)&&(a=s),[i.key||"",c,i,a]}t.CompileErrorCodes=r.CompileErrorCodes,t.createCompileError=r.createCompileError,t.CoreErrorCodes=H,t.CoreWarnCodes=E,t.DATETIME_FORMAT_OPTIONS_KEYS=Y,t.DEFAULT_LOCALE=x,t.DEFAULT_MESSAGE_DATA_TYPE=f,t.MISSING_RESOLVE_VALUE="",t.NOT_REOSLVED=-1,t.NUMBER_FORMAT_OPTIONS_KEYS=J,t.VERSION=I,t.clearCompileCache=function(){B=Object.create(null)},t.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},t.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},t.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||U)(e),o=B[n];if(o)return o;let s=!1;const i=t.onError||r.defaultOnError;t.onError=e=>{s=!0,i(e)};const{code:a}=r.baseCompile(e,t),c=new Function(`return ${a}`)();return s?c:B[n]=c}},t.createCoreContext=function(e={}){const t=o.isString(e.version)?e.version:I,n=o.isString(e.locale)?e.locale:x,r=o.isArray(e.fallbackLocale)||o.isPlainObject(e.fallbackLocale)||o.isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=o.isPlainObject(e.messages)?e.messages:{[n]:{}},i=o.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=o.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},c=o.assign({},e.modifiers||{},{upper:(e,t)=>"text"===t&&o.isString(e)?e.toUpperCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&o.isString(e)?e.toLowerCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&o.isString(e)?N(e):"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?N(e.children):e}),l=e.pluralRules||{},u=o.isFunction(e.missing)?e.missing:null,p=!o.isBoolean(e.missingWarn)&&!o.isRegExp(e.missingWarn)||e.missingWarn,h=!o.isBoolean(e.fallbackWarn)&&!o.isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=o.isFunction(e.postTranslation)?e.postTranslation:null,_=o.isPlainObject(e.processor)?e.processor:null,y=!o.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter,b=o.isFunction(e.messageCompiler)?e.messageCompiler:A,S=o.isFunction(e.messageResolver)?e.messageResolver:R||d,E=o.isFunction(e.localeFallbacker)?e.localeFallbacker:L||C,T=o.isObject(e.fallbackContext)?e.fallbackContext:void 0,k=o.isFunction(e.onWarn)?e.onWarn:o.warn,w=e,O=o.isObject(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=o.isObject(w.__numberFormatters)?w.__numberFormatters:new Map,P=o.isObject(w.__meta)?w.__meta:{};D++;const F={version:t,cid:D,locale:n,fallbackLocale:r,messages:s,modifiers:c,pluralRules:l,missing:u,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:m,postTranslation:g,processor:_,warnHtmlMessage:y,escapeParameter:v,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:T,onWarn:k,__meta:P};return F.datetimeFormats=i,F.numberFormats=a,F.__datetimeFormatters=O,F.__numberFormatters=M,F},t.createCoreError=V,t.createMessageContext=y,t.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:c}=e,[l,u,d,p]=K(...t);o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=o.isString(d.locale)?d.locale:e.locale,m=a(e,s,f);if(!o.isString(l)||""===l)return new Intl.DateTimeFormat(f,p).format(u);let g,_={},y=null;for(let t=0;tM,t.getDevToolsHook=function(){return v},t.getFallbackContext=()=>P,t.getWarnMessage=function(e,...t){return o.format(T[e],...t)},t.handleMissing=F,t.initI18nDevTools=function(e,t,n){v&&v.emit(s.IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})},t.isMessageFunction=z,t.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},t.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},t.number=function(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:c}=e,[l,u,d,p]=Q(...t);o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=o.isString(d.locale)?d.locale:e.locale,m=a(e,s,f);if(!o.isString(l)||""===l)return new Intl.NumberFormat(f,p).format(u);let g,_={},y=null;for(let t=0;t{M=e},t.setDevToolsHook=function(e){v=e},t.setFallbackContext=e=>{P=e},t.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:a,messages:c}=e,[l,u]=X(...t),d=(o.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,o.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,o.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter),p=!!u.resolvedMessage,h=o.isString(u.default)||o.isBoolean(u.default)?o.isBoolean(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",f=n||""!==h,m=o.isString(u.locale)?u.locale:e.locale;d&&function(e){o.isArray(e.list)?e.list=e.list.map((e=>o.isString(e)?o.escapeHtml(e):e)):o.isObject(e.named)&&Object.keys(e.named).forEach((t=>{o.isString(e.named[t])&&(e.named[t]=o.escapeHtml(e.named[t]))}))}(u);let[g,_,v]=p?[l,m,c[m]||{}]:G(e,l,m,a),b=g,S=l;if(p||o.isString(b)||z(b)||f&&(b=h,S=b),!(p||(o.isString(b)||z(b))&&o.isString(_)))return s?-1:l;let E=!1;const T=z(b)?b:q(e,l,_,b,S,(()=>{E=!0}));if(E)return b;const C=function(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:a,fallbackLocale:c,fallbackWarn:l,missingWarn:u,fallbackContext:d}=e,p={locale:t,modifiers:s,pluralRules:i,messages:r=>{let s=a(n,r);if(null==s&&d){const[,,e]=G(d,r,t,c);s=a(e,r)}if(o.isString(s)){let n=!1;const o=q(e,r,t,s,r,(()=>{n=!0}));return n?W:o}return z(s)?s:W}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),o.isNumber(r.plural)&&(p.pluralIndex=r.plural),p}(e,_,v,u),k=function(e,t,n){return t(n)}(0,T,y(C));return r?r(k,l):k},t.translateDevTools=b,t.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}},585:(e,t,n)=>{"use strict";e.exports=n(410)},762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"}},481:(e,t,n)=>{"use strict";e.exports=n(762)},680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(561),o=n(57);const s={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},i={[s.EXPECTED_TOKEN]:"Expected token: '{0}'",[s.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[s.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[s.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[s.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[s.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[s.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[s.EMPTY_PLACEHOLDER]:"Empty placeholder",[s.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[s.INVALID_LINKED_FORMAT]:"Invalid linked format",[s.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[s.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[s.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[s.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function a(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}const c={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function l(e,t,n){return{line:e,column:t,offset:n}}function u(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const d=" ",p="\r",h="\n",f=String.fromCharCode(8232),m=String.fromCharCode(8233);function g(e){const t=e;let n=0,r=1,o=1,s=0;const i=e=>t[e]===p&&t[e+1]===h,a=e=>t[e]===m,c=e=>t[e]===f,l=e=>i(e)||a(e)||c(e)?h:t[e];function u(){return s=0,(i(e=n)||(e=>t[e]===h)(e)||a(e)||c(e))&&(r++,o=0),i(n)&&n++,n++,o++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>s,charAt:l,currentChar:()=>l(n),currentPeek:()=>l(n+s),next:u,peek:function(){return i(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,r=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)u();s=0}}}const _=void 0,y="'",v="tokenizer";function b(e,t={}){const n=!1!==t.location,r=g(e),o=()=>r.index(),i=()=>l(r.line(),r.column(),r.index()),c=i(),p=o(),f={currentType:14,offset:p,startLoc:c,endLoc:c,lastType:14,lastOffset:p,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},m=()=>f,{onError:b}=t;function S(e,t,n,...r){const o=m();if(t.column+=n,t.offset+=n,b){const n=a(e,u(o.startLoc,t),{domain:v,args:r});b(n)}}function E(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=u(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const T=e=>E(e,14);function C(e,t){return e.currentChar()===t?(e.next(),t):(S(s.EXPECTED_TOKEN,i(),0,t),"")}function k(e){let t="";for(;e.currentPeek()===d||e.currentPeek()===h;)t+=e.currentPeek(),e.peek();return t}function w(e){const t=k(e);return e.skipToPeek(),t}function O(e){if(e===_)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function I(e){k(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function x(e,t=!0){const n=(t=!1,r="",o=!1)=>{const s=e.currentPeek();return"{"===s?"%"!==r&&t:"@"!==s&&s?"%"===s?(e.peek(),n(t,"%",!0)):"|"===s?!("%"!==r&&!o&&(r===d||r===h)):s===d?(e.peek(),n(!0,d,o)):s!==h||(e.peek(),n(!0,h,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function N(e,t){const n=e.currentChar();return n===_?_:t(n)?(e.next(),n):null}function A(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function R(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function L(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function M(e){let t="",n="";for(;t=R(e);)n+=t;return n}function P(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!x(e))break;t+=n,e.next()}else if(n===d||n===h)if(x(e))t+=n,e.next();else{if(I(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function D(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return S(s.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function F(e,t,n){C(e,t);let r="";for(let o=0;o=1&&S(s.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=E(t,2,"{"),w(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&S(s.EMPTY_PLACEHOLDER,i(),0),e.next(),n=E(t,3,"}"),t.braceNest--,t.braceNest>0&&w(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n=$(e,t)||T(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(I(e))return t.braceNest>0&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return S(s.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,j(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=O(e.currentPeek());return e.resetPeek(),r}(e,t))return n=E(t,5,function(e){w(e);let t="",n="";for(;t=A(e);)n+=t;return e.currentChar()===_&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n}(e)),w(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=function(e){if(e===_)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=E(t,6,function(e){w(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${M(e)}`):t+=M(e),e.currentChar()===_&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),t}(e)),w(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=e.currentPeek()===y;return e.resetPeek(),r}(e,t))return n=E(t,7,function(e){w(e),C(e,"'");let t="",n="";const r=e=>e!==y&&e!==h;for(;t=N(e,r);)n+="\\"===t?D(e):t;const o=e.currentChar();return o===h||o===_?(S(s.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),o===h&&(e.next(),C(e,"'")),n):(C(e,"'"),n)}(e)),w(e),n;if(!r&&!o&&!a)return n=E(t,13,function(e){w(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==d&&e!==h;for(;t=N(e,r);)n+=t;return n}(e)),S(s.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),w(e),n}return n}function $(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==h&&o!==d||S(s.INVALID_LINKED_FORMAT,i(),0),o){case"@":return e.next(),r=E(t,8,"@"),t.inLinked=!0,r;case".":return w(e),e.next(),E(t,9,".");case":":return w(e),e.next(),E(t,10,":");default:return I(e)?(r=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;k(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;k(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(w(e),$(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;k(e);const r=O(e.currentPeek());return e.resetPeek(),r}(e,t)?(w(e),E(t,12,function(e){let t="",n="";for(;t=A(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?O(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===d||!t)&&(t===h?(e.peek(),r()):O(t))},o=r();return e.resetPeek(),o}(e,t)?(w(e),"{"===o?B(e,t)||r:E(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===d?r:o===h?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&S(s.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let n={type:14};if(t.braceNest>0)return B(e,t)||T(t);if(t.inLinked)return $(e,t)||T(t);switch(e.currentChar()){case"{":return B(e,t)||T(t);case"}":return S(s.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),E(t,3,"}");case"@":return $(e,t)||T(t);default:if(I(e))return n=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=k(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?E(t,0,P(e)):E(t,4,function(e){w(e);const t=e.currentChar();return"%"!==t&&S(s.EXPECTED_TOKEN,i(),0,t),e.next(),"%"}(e));if(x(e))return E(t,0,P(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=f;return f.lastType=e,f.lastOffset=t,f.lastStartLoc=n,f.lastEndLoc=s,f.offset=o(),f.startLoc=i(),r.currentChar()===_?E(f,14):j(r,f)},currentOffset:o,currentPosition:i,context:m}}const S="parser",E=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function T(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function C(e={}){const t=!1!==e.location,{onError:n}=e;function o(e,t,r,o,...s){const i=e.currentPosition();if(i.offset+=o,i.column+=o,n){const e=a(t,u(r,i),{domain:S,args:s});n(e)}}function i(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function c(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function l(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,c(r,e.currentOffset(),e.currentPosition()),r}function d(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(5,r,o);return s.index=parseInt(t,10),e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function p(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(4,r,o);return s.key=t,e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function h(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(9,r,o);return s.value=t.replace(E,T),e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=i(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:a}=n,l=i(8,r,a);return 12!==t.type?(o(e,s.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",c(l,r,a),{nextConsumeToken:t,node:l}):(null==t.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,k(t)),l.value=t.value||"",c(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=function(e,t){const n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,c(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=p(e,r.value||"");break;case 6:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=d(e,r.value||"");break;case 7:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=h(e,r.value||"");break;default:o(e,s.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=i(7,a.offset,a.startLoc);return l.value="",c(l,a.offset,a.startLoc),n.key=l,c(n,a.offset,a.startLoc),{nextConsumeToken:r,node:n}}return c(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=i(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null;do{const i=r||e.nextToken();switch(r=null,i.type){case 0:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(l(e,i.value||""));break;case 6:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(d(e,i.value||""));break;case 5:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(p(e,i.value||""));break;case 7:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(h(e,i.value||""));break;case 8:const a=f(e);n.items.push(a.node),r=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return c(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const a=b(n,r.assign({},e)),l=a.context(),u=i(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=function(e){const t=e.context(),{offset:n,startLoc:r}=t,a=m(e);return 14===t.currentType?a:function(e,t,n,r){const a=e.context();let l=0===r.items.length;const u=i(1,t,n);u.cases=[],u.cases.push(r);do{const t=m(e);l||(l=0===t.items.length),u.cases.push(t)}while(14!==a.currentType);return l&&o(e,s.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),c(u,e.currentOffset(),e.currentPosition()),u}(e,n,r,a)}(a),14!==l.currentType&&o(a,s.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,n[l.offset]||""),c(u,a.currentOffset(),a.currentPosition()),u}}}function k(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function w(e,t){for(let n=0;na,push:l,indent:function(e=!0){const t=++a.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&u(t)},newline:function(){u(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}function x(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?x(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&O(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(o,n),((e,t={})=>{const n=r.isString(t.mode)?t.mode:"normal",o=r.isString(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=I(e,{mode:n,filename:o,sourceMap:s,breakLineCode:i,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),x(l,e),l.deindent(a),l.push("}");const{code:u,map:d}=l.context();return{ast:e,code:u,map:d?d.toJSON():void 0}})(o,n)},t.createCompileError=a,t.createLocation=u,t.createParser=C,t.createPosition=l,t.defaultOnError=function(e){throw e},t.errorMessages=i},1:(e,t,n)=>{"use strict";e.exports=n(680)},458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"!=typeof window,o=/\{([0-9a-zA-Z]+)\}/g,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=Object.assign;let c;const l=Object.prototype.hasOwnProperty,u=Array.isArray,d=e=>"function"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,f=e=>h.call(e),m=e=>"[object Object]"===f(e);t.assign=a,t.createEmitter=function(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}},t.escapeHtml=function(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},t.format=function(e,...t){return 1===t.length&&p(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(o,((e,n)=>t.hasOwnProperty(n)?t[n]:""))},t.friendlyJSONstringify=i,t.generateCodeFrame=function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const s=[];for(let e=0;e=t){for(let i=e-2;i<=e+2||n>o;i++){if(i<0||i>=r.length)continue;const a=i+1;s.push(`${a}${" ".repeat(3-String(a).length)}| ${r[i]}`);const c=r[i].length;if(i===e){const e=t-(o-c)+1,r=Math.max(1,n>o?c-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(i>e){if(n>o){const e=Math.max(Math.min(n-o,c),1);s.push(" | "+"^".repeat(e))}o+=c+1}}break}return s.join("\n")},t.generateFormatCacheKey=(e,t,n)=>i({l:e,k:t,s:n}),t.getGlobalThis=()=>c||(c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),t.hasOwn=function(e,t){return l.call(e,t)},t.inBrowser=r,t.isArray=u,t.isBoolean=e=>"boolean"==typeof e,t.isDate=e=>"[object Date]"===f(e),t.isEmptyObject=e=>m(e)&&0===Object.keys(e).length,t.isFunction=d,t.isNumber=e=>"number"==typeof e&&isFinite(e),t.isObject=p,t.isPlainObject=m,t.isPromise=e=>p(e)&&d(e.then)&&d(e.catch),t.isRegExp=e=>"[object RegExp]"===f(e),t.isString=e=>"string"==typeof e,t.isSymbol=e=>"symbol"==typeof e,t.makeSymbol=e=>s?Symbol(e):e,t.mark=void 0,t.measure=void 0,t.objectToString=h,t.toDisplayString=e=>null==e?"":u(e)||m(e)&&e.toString===h?JSON.stringify(e,null,2):String(e),t.toTypeString=f,t.warn=function(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}},561:(e,t,n)=>{"use strict";e.exports=n(458)},115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breadcrumbs:()=>Cs,BrowserClient:()=>Co,BrowserProfilingIntegration:()=>Rh,BrowserTracing:()=>Hp,Dedupe:()=>Os,Feedback:()=>Pd,FunctionToString:()=>Yt,GlobalHandlers:()=>Ms,HttpContext:()=>$s,Hub:()=>Xe,InboundFilters:()=>en,Integrations:()=>Mh,LinkedErrors:()=>Vs,ModuleMetadata:()=>An,Replay:()=>Iu,ReplayCanvas:()=>ad,SDK_VERSION:()=>ze,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>Mn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>Pn,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>Ln,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>Rn,Scope:()=>Ve,TryCatch:()=>qs,WINDOW:()=>io,addBreadcrumb:()=>yt,addEventProcessor:()=>Xn,addGlobalEventProcessor:()=>he,addIntegration:()=>Vt,addTracingExtensions:()=>jr,breadcrumbsIntegration:()=>Ts,browserApiErrorsIntegration:()=>Gs,browserProfilingIntegration:()=>Ah,browserTracingIntegration:()=>Gp,captureConsoleIntegration:()=>Fd,captureEvent:()=>gt,captureException:()=>ft,captureMessage:()=>mt,captureSession:()=>Ut,captureUserFeedback:()=>si,chromeStackLineParser:()=>Fo,close:()=>Nt,configureScope:()=>_t,contextLinesIntegration:()=>$d,continueTrace:()=>_r,createTransport:()=>qr,createUserFeedbackEnvelope:()=>To,debugIntegration:()=>Hd,dedupeIntegration:()=>zd,defaultIntegrations:()=>Qs,defaultRequestInstrumentationOptions:()=>Dp,defaultStackLineParsers:()=>qo,defaultStackParser:()=>Xo,endSession:()=>Dt,eventFromException:()=>yo,eventFromMessage:()=>vo,exceptionFromError:()=>ho,extraErrorDataIntegration:()=>Jd,extractTraceparentData:()=>ar,feedbackIntegration:()=>Md,flush:()=>xt,forceLoad:()=>ni,functionToStringIntegration:()=>Xt,geckoStackLineParser:()=>$o,getActiveSpan:()=>gr,getActiveTransaction:()=>ir,getClient:()=>Rt,getCurrentHub:()=>Je,getCurrentScope:()=>Mt,getDefaultIntegrations:()=>Zs,getHubFromCarrier:()=>et,getReplay:()=>Nu,getSpanStatusFromHttpCode:()=>wr,globalHandlersIntegration:()=>Ls,httpClientIntegration:()=>Zd,httpContextIntegration:()=>Bs,inboundFiltersIntegration:()=>Zt,init:()=>ei,instrumentOutgoingRequests:()=>Fp,isInitialized:()=>Lt,lastEventId:()=>At,linkedErrorsIntegration:()=>Hs,makeBrowserOfflineTransport:()=>ih,makeFetchTransport:()=>No,makeMain:()=>Ke,makeMultiplexedTransport:()=>Kr,makeXHRTransport:()=>Ro,metrics:()=>no,moduleMetadataIntegration:()=>Nn,onLoad:()=>ri,onProfilingStartRouteTransaction:()=>Ih,opera10StackLineParser:()=>Wo,opera11StackLineParser:()=>Go,parameterize:()=>ro,replayCanvasIntegration:()=>id,replayIntegration:()=>Ou,reportingObserverIntegration:()=>cp,rewriteFramesIntegration:()=>hp,sendFeedback:()=>_d,sessionTimingIntegration:()=>mp,setContext:()=>vt,setCurrentClient:()=>oo,setExtra:()=>St,setExtras:()=>bt,setHttpStatus:()=>Ir,setMeasurement:()=>so,setTag:()=>Tt,setTags:()=>Et,setUser:()=>Ct,showReportDialog:()=>ti,spanStatusfromHttpCode:()=>Or,startBrowserTracingNavigationSpan:()=>Xp,startBrowserTracingPageLoadSpan:()=>qp,startInactiveSpan:()=>mr,startSession:()=>Pt,startSpan:()=>hr,startSpanManual:()=>fr,startTransaction:()=>It,trace:()=>pr,winjsStackLineParser:()=>Ho,withActiveSpan:()=>Ot,withIsolationScope:()=>wt,withScope:()=>kt,wrap:()=>oi});var r={};n.r(r),n.d(r,{FunctionToString:()=>Yt,InboundFilters:()=>en,LinkedErrors:()=>ln});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>Cs,Dedupe:()=>Os,GlobalHandlers:()=>Ms,HttpContext:()=>$s,LinkedErrors:()=>Vs,TryCatch:()=>qs});const s=Object.prototype.toString;function i(e){switch(s.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function a(e,t){return s.call(e)===`[object ${t}]`}function c(e){return a(e,"ErrorEvent")}function l(e){return a(e,"DOMError")}function u(e){return a(e,"String")}function d(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||d(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return a(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function v(e){return e&&e.Math==Math?e:void 0}const b="object"==typeof globalThis&&v(globalThis)||"object"==typeof window&&v(window)||"object"==typeof self&&v(self)||"object"==typeof n.g&&v(n.g)||function(){return this}()||{};function S(){return b}function E(e,t,n){const r=n||b,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const T=S(),C=80;function k(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||C;for(;n&&s++1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return""}}function w(e,t){const n=e,r=[];let o,s,i,a,c;if(!n||!n.tagName)return"";if(T.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&u(o))for(s=o.split(/\s+/),c=0;c{const r=R[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const M=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return N?A.forEach((n=>{t[n]=(...t)=>{e&&L((()=>{b.console[n](`Sentry Logger [${n}]:`,...t)}))}})):A.forEach((e=>{t[e]=()=>{}})),t}();function P(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function D(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let s=Math.min(o+140,r);return s>r-5&&(s=r),s===r&&(o=Math.max(s-140,0)),n=n.slice(o,s),o>0&&(n=`'{snip} ${n}`),sfunction(e,t,n=!1){return!!u(e)&&(a(t,"RegExp")?t.test(e):!!u(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function B(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&j(o,r),e[t]=o}function $(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){N&&M.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function j(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,$(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function V(e){if(i(e))return{message:e.message,name:e.name,stack:e.stack,...z(e)};if(f(e)){const t={type:e.type,target:W(e.target),currentTarget:W(e.currentTarget),...z(e)};return"undefined"!=typeof CustomEvent&&_(e,CustomEvent)&&(t.detail=e.detail),t}return e}function W(e){try{return"undefined"!=typeof Element&&_(e,Element)?k(e):Object.prototype.toString.call(e)}catch(e){return""}}function z(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function G(e){return q(e,new Map)}function q(e,t){if(function(e){if(!h(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=q(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(q(e,t))})),r}return e}const X="production",Y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function K(){const e=b,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function J(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Q(e){const{message:t,event_id:n}=e;if(t)return t;const r=J(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Z(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ee(e,t){const n=J(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function te(e){if(e&&e.__sentry_captured__)return!0;try{$(e,"__sentry_captured__",!0)}catch(e){}return!1}function ne(e){return Array.isArray(e)?e:[e]}const re=1e3;function oe(){return Date.now()/re}const se=function(){const{performance:e}=b;if(!e||!e.now)return oe;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/re}();let ie;const ae=(()=>{const{performance:e}=b;if(!e||!e.now)return void(ie="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o{t(e)}))}function ue(e){return new de(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ce||(ce={}));class de{constructor(e){de.prototype.__init.call(this),de.prototype.__init2.call(this),de.prototype.__init3.call(this),de.prototype.__init4.call(this),this._state=ce.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new de(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new de(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(ce.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ce.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ce.PENDING&&(m(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ce.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ce.RESOLVED&&e[1](this._value),this._state===ce.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function pe(){return E("globalEventProcessors",(()=>[]))}function he(e){pe().push(e)}function fe(e,t,n,r=0){return new de(((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);Y&&i.id&&null===a&&M.log(`Event processor "${i.id}" dropped event`),m(a)?a.then((t=>fe(e,t,n,r+1).then(o))).then(null,s):fe(e,a,n,r+1).then(o).then(null,s)}}))}function me(e){const t=se(),n={sid:K(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return G({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ge(n,e),n}function ge(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||se(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:K()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function _e(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),ge(e,n)}function ye(e){return e.transaction}const ve="baggage",be="sentry-",Se=/^sentry-/,Ee=8192;function Te(e){if(!u(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=ke(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=ke(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Se)&&(e[t.slice(be.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function Ce(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?o:`${e},${o}`;return s.length>Ee?(N&&M.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${be}${t}`]=n),e)),{}))}function ke(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const we=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Oe(e){if(!e)return;const t=e.match(we);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ie(e,t){const n=Oe(e),r=Te(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{};return n?{traceId:o||K(),parentSpanId:s||K().substring(16),spanId:K().substring(16),sampled:i,dsc:r||{}}:{traceId:o||K(),spanId:K().substring(16)}}function xe(e=K(),t=K().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Ne=1;function Ae(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:i,tags:a,origin:c}=Pe(e);return G({data:r,op:o,parent_span_id:s,span_id:t,status:i,tags:a,trace_id:n,origin:c})}function Re(e){const{traceId:t,spanId:n}=e.spanContext();return xe(t,n,De(e))}function Le(e){return"number"==typeof e?Me(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Me(e.getTime()):se()}function Me(e){return e>9999999999?e/1e3:e}function Pe(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function De(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Ne)}function Fe(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},i=G({environment:r.environment||X,release:r.release,user_segment:s,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",i),i}function Ue(e){const t=Rt();if(!t)return{};const n=Fe(Pe(e).trace_id||"",t,Mt()),r=ye(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:s,source:i}=r.metadata;null!=s&&(n.sample_rate=`${s}`);const a=Pe(r);return i&&"url"!==i&&(n.transaction=a.description),n.sampled=String(De(r)),t.emit&&t.emit("createDsc",n),n}function Be(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,c=G(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=G(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=G(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=G(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ae(t),...e.contexts};const n=ye(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ue(t),...e.sdkProcessingMetadata};const r=Pe(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?ne(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function $e(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;je(e,"extra",n),je(e,"tags",r),je(e,"user",o),je(e,"contexts",s),je(e,"sdkProcessingMetadata",a),i&&(e.level=i),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function je(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let He;class Ve{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=We()}static clone(e){return e?e.clone():new Ve}clone(){const e=new Ve;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ge(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof Ve){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(h(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...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)}return this}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=We(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:oe(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:s,_level:i,_fingerprint:a,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:s,level:i,fingerprint:a||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return Be(e,this.getScopeData()),fe([...n,...pe(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:K();if(!this._client)return M.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:K();if(!this._client)return M.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:K();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(M.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function We(){return{traceId:K(),spanId:K().substring(16)}}const ze="7.119.1",Ge=parseFloat(ze),qe=100;class Xe{constructor(e,t,n,r=Ge){let o,s;this._version=r,t?o=t:(o=new Ve,o.setClient(e)),n?s=n:(s=new Ve,s.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:K(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:K(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:K();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=qe}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const i={timestamp:oe(),...e},a=o?L((()=>o(i,t))):i;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Ke(this);try{e(this)}finally{Ke(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Y&&M.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Y&&!n&&(this.getClient()?M.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):M.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&_e(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=X}=n&&n.getOptions()||{},{userAgent:s}=b.navigator||{},i=me({release:r,environment:o,user:t.getUser(),...s&&{userAgent:s},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&ge(a,{status:"exited"}),this.endSession(),t.setSession(i),i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=Ye().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Y&&M.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ye(){return b.__SENTRY__=b.__SENTRY__||{extensions:{},hub:void 0},b}function Ke(e){const t=Ye(),n=et(t);return tt(t,e),n}function Je(){const e=Ye();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ye()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!et(e).isOlderThan(Ge)||tt(e,new Xe),et(e);var t}(e)}function Qe(){return Je().getIsolationScope()}function Ze(e,t={}){const n=Ye();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function et(e){return E("hub",(()=>new Xe),e)}function tt(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const nt=50,rt=/\(error: (.*)\)/,ot=/captureMessage|captureException/;function st(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e1024)continue;const s=rt.test(n)?n.replace(rt,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){r.push(t);break}}if(r.length>=nt)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ot.test(t[t.length-1].function||"")&&(t.pop(),ot.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,nt).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const it="";function at(e){try{return e&&"function"==typeof e&&e.name||it}catch(e){return it}}function ct(e,t=100,n=1/0){try{return ut("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function lt(e,t=3,n=102400){const r=ct(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?lt(e,t-1,n):r;var o}function ut(e,t,r=1/0,o=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=o){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=ut(e,t,l-1,o,s),p++}return a(t),d}function dt(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||K(),timestamp:t.timestamp||oe()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:X),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=P(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=P(i.value,s));const a=e.request;a&&a.url&&(a.url=P(a.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=b._sentryDebugIds;if(!n)return;let r;const o=pt.get(t);o?r=o:(r=new Map,pt.set(t,r));const s=Object.keys(n).reduce(((e,o)=>{let s;const i=r.get(o);i?s=i:(s=t(o),r.set(o,s));for(let t=s.length-1;t>=0;t--){const r=s[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Ve;return n.update(t),n}(r,n.captureContext);n.mechanism&&ee(c,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(He||(He=new Ve),He).getScopeData();s&&$e(p,s.getScopeData()),u&&$e(p,u.getScopeData());const h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),Be(c,p),fe([...d,...pe(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:ct(e.data,t,n)}})))},...e.user&&{user:ct(e.user,t,n)},...e.contexts&&{contexts:ct(e.contexts,t,n)},...e.extra&&{extra:ct(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ct(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Pe(e).data;return r&&(e.data=ct(r,t,n)),e}))),r}(e,i,a):e)))}const pt=new WeakMap;const ht=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ft(e,t){return Je().captureException(e,function(e){if(e)return function(e){return e instanceof Ve||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>ht.includes(e)))}(e)?{captureContext:e}:e}(t))}function mt(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return Je().captureMessage(e,n,r)}function gt(e,t){return Je().captureEvent(e,t)}function _t(e){Je().configureScope(e)}function yt(e,t){Je().addBreadcrumb(e,t)}function vt(e,t){Je().setContext(e,t)}function bt(e){Je().setExtras(e)}function St(e,t){Je().setExtra(e,t)}function Et(e){Je().setTags(e)}function Tt(e,t){Je().setTag(e,t)}function Ct(e){Je().setUser(e)}function kt(...e){const t=Je();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function wt(e){return Ze((()=>e(Qe())))}function Ot(e,t){return kt((n=>(n.setSpan(e),t(n))))}function It(e,t){return Je().startTransaction({...e},t)}async function xt(e){const t=Rt();return t?t.flush(e):(Y&&M.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Nt(e){const t=Rt();return t?t.close(e):(Y&&M.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function At(){return Je().lastEventId()}function Rt(){return Je().getClient()}function Lt(){return!!Rt()}function Mt(){return Je().getScope()}function Pt(e){const t=Rt(),n=Qe(),r=Mt(),{release:o,environment:s=X}=t&&t.getOptions()||{},{userAgent:i}=b.navigator||{},a=me({release:o,environment:s,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&"ok"===c.status&&ge(c,{status:"exited"}),Dt(),n.setSession(a),r.setSession(a),a}function Dt(){const e=Qe(),t=Mt(),n=t.getSession()||e.getSession();n&&_e(n),Ft(),e.setSession(),t.setSession()}function Ft(){const e=Qe(),t=Mt(),n=Rt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Ut(e=!1){e?Dt():Ft()}const Bt=[];function $t(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?ne(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),s=function(e,t){for(let t=0;tn(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Y&&M.log(`Integration installed: ${t.name}`)}}function Vt(e){const t=Rt();t&&t.addIntegration?t.addIntegration(e):Y&&M.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function Wt(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}let zt;const Gt="FunctionToString",qt=new WeakMap,Xt=()=>({name:Gt,setupOnce(){zt=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=H(this),n=qt.has(Rt())&&void 0!==t?t:this;return zt.apply(n,e)}}catch(e){}},setup(e){qt.set(e,!0)}}),Yt=Wt(Gt,Xt),Kt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Jt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Qt="InboundFilters",Zt=(e={})=>({name:Qt,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Kt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Jt],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Y&&M.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Q(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Y&&0===t.length&&M.error(`Could not extract message for event ${Q(e)}`),t}(e).some((e=>U(e,t)))}(e,t.ignoreErrors)?(Y&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Q(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&U(n,t)}(e,t.ignoreTransactions)?(Y&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Q(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=tn(e);return!!n&&U(n,t)}(e,t.denyUrls)?(Y&&M.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Q(e)}.\nUrl: ${tn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=tn(e);return!n||U(n,t)}(e,t.allowUrls)&&(Y&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Q(e)}.\nUrl: ${tn(e)}`),!0)}(t,s)?null:t}}),en=Wt(Qt,Zt);function tn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Y&&M.error(`Cannot extract url for event ${Q(e)}`),null}}function nn(e,t,n=250,r,o,s,i){if(!(s.exception&&s.exception.values&&i&&_(i.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;a&&(s.exception.values=(c=rn(e,t,o,i.originalException,r,s.exception.values,a,0),l=n,c.map((e=>(e.value&&(e.value=P(e.value,l)),e)))))}function rn(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(_(r[o],Error)){on(i,a);const s=e(t,r[o]),l=c.length;sn(s,o,l,a),c=rn(e,t,n,r[o],o,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(_(r,Error)){on(i,a);const l=e(t,r),u=c.length;sn(l,`errors[${s}]`,u,a),c=rn(e,t,n,r,o,[l,...c],l,u)}})),c}function on(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function sn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function an(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=function(e,t){return e(t.stack||"",1)}(e,t);return r.length&&(n.stacktrace={frames:r}),n}const cn="LinkedErrors",ln=Wt(cn,((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:cn,setupOnce(){},preprocessEvent(e,r,o){const s=o.getOptions();nn(an,s.stackParser,s.maxValueLength,n,t,e,r)}}})),un=r,dn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pn(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function hn(e){const t=dn.exec(e);if(!t)return void L((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",s,i="",a]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return fn({host:s,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function fn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mn(e){const t="string"==typeof e?hn(e):fn(e);if(t&&function(e){if(!N)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(M.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function gn(e,t=[]){return[e,t]}function _n(e,t){const[n,r]=e;return[n,[...r,t]]}function yn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function vn(e,t){return(t||new TextEncoder).encode(e)}function bn(e,t){const[n,r]=e;let o=JSON.stringify(n);function s(e){"string"==typeof o?o="string"==typeof e?o+e:[vn(o,t),e]:o.push("string"==typeof e?vn(e,t):e)}for(const e of r){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(ct(n))}s(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Sn(e,t){const n="string"==typeof e.data?vn(e.data,t):e.data;return[G({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const En={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Tn(e){return En[e]}function Cn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function kn(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pn(r)},...o&&{trace:G({...o})}}}const wn=new Map,On=new Set;function In(e,t){return function(e){if(b._sentryModuleMetadata)for(const t of Object.keys(b._sentryModuleMetadata)){const n=b._sentryModuleMetadata[t];if(On.has(t))continue;On.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){wn.set(e.filename,n);break}}}(e),wn.get(t)}const xn="ModuleMetadata",Nn=()=>({name:xn,setupOnce(){},setup(e){"function"==typeof e.on&&e.on("beforeEnvelope",(e=>{yn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}(t),e[1]=t)}}))}))},processEvent:(e,t,n)=>(function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename)continue;const t=In(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}}(n.getOptions().stackParser,e),e)}),An=Wt(xn,Nn),Rn="sentry.source",Ln="sentry.sample_rate",Mn="sentry.op",Pn="sentry.origin";class Dn extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Fn="7";function Un(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Bn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${Un(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:Fn,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function $n(e,t,n,r){const o=Cn(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const i=kn(e,o,r,t);return delete e.sdkProcessingMetadata,gn(i,[[{type:s},e]])}function jn(e){return e.replace(/[^\w\-./]+/gi,"")}const Hn=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Vn(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of Hn)if(e===t)return n;return e}(t)),"")}const Wn="Not capturing exception because it's already been captured.";class zn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=mn(e.dsn):Y&&M.warn("No DSN provided, client will not send events."),this._dsn){const t=Bn(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(te(e))return void(Y&&M.log(Wn));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const s=d(e)?e:String(e),i=p(e)?this.eventFromMessage(s,t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&te(t.originalException))return void(Y&&M.log(Wn));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Y&&M.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ge(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):le(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Y&&M.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ht(this,e,this._integrations),t||jt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=$n(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=_n(n,Sn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Cn(n);return gn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:pn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;Y&&M.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}captureAggregateMetrics(e){Y&&M.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=pn(t));const s=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return gn(o,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Ht(e,t,n)})),n}(this,e),jt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ge(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new de((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=Qe()){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),dt(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:s,dsc:i}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:s},...e.contexts};const a=i||Fe(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Y){const t=e;"log"===t.logLevel?M.log(t.message):M.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=qn(e),i=Gn(e),a=e.type||"error",c=`before send for type \`${a}\``;if(i&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),ue(new Dn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l="replay_event"===a?"replay":a,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Dn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(Gn(t)&&r)return r(t,n);if(qn(t)&&o){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(m(e))return e.then((e=>{if(!h(e)&&null!==e)throw new Dn(n);return e}),(e=>{throw new Dn(`${t} rejected with ${e}`)}));if(!h(e)&&null!==e)throw new Dn(n);return e}(o,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Dn(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const i=r.transaction_info;if(s&&i&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...i,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Dn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Dn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Y&&M.error("Error while sending event:",e)}));Y&&M.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Gn(e){return void 0===e.type}function qn(e){return"transaction"===e.type}function Xn(e){const t=Rt();t&&t.addEventProcessor&&t.addEventProcessor(e)}const Yn={},Kn={};function Jn(e,t){Yn[e]=Yn[e]||[],Yn[e].push(t)}function Qn(e,t){Kn[e]||(t(),Kn[e]=!0)}function Zn(e,t){const n=e&&Yn[e];if(n)for(const r of n)try{r(t)}catch(t){N&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${at(r)}\nError:`,t)}}let er=null;function tr(e){const t="error";Jn(t,e),Qn(t,nr)}function nr(){er=b.onerror,b.onerror=function(e,t,n,r,o){return Zn("error",{column:r,error:o,line:n,msg:e,url:t}),!(!er||er.__SENTRY_LOADER__)&&er.apply(this,arguments)},b.onerror.__SENTRY_INSTRUMENTED__=!0}let rr=null;function or(e){const t="unhandledrejection";Jn(t,e),Qn(t,sr)}function sr(){rr=b.onunhandledrejection,b.onunhandledrejection=function(e){return Zn("unhandledrejection",e),!(rr&&!rr.__SENTRY_LOADER__)||rr.apply(this,arguments)},b.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ir(e){return(e||Je()).getScope().getTransaction()}const ar=Oe;let cr=!1;function lr(){const e=ir();if(e){const t="internal_error";Y&&M.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function ur(e,t,n=(()=>{})){let r;try{r=e()}catch(e){throw t(e),n(),e}return function(e,t,n){return m(e)?e.then((e=>(n(),e)),(e=>{throw t(e),n(),e})):(n(),e)}(r,t,n)}function dr(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Rt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function pr(e,t,n=(()=>{}),r=(()=>{})){const o=Je(),s=Mt(),i=s.getSpan(),a=vr(e),c=yr(o,{parentSpan:i,spanContext:a,forceTransaction:!1,scope:s});return s.setSpan(c),ur((()=>t(c)),(e=>{c&&c.setStatus("internal_error"),n(e,c)}),(()=>{c&&c.end(),s.setSpan(i),r()}))}function hr(e,t){const n=vr(e);return Ze((()=>kt(e.scope,(r=>{const o=Je(),s=r.getSpan(),i=e.onlyIfParent&&!s?void 0:yr(o,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return ur((()=>t(i)),(()=>{if(i){const{status:e}=Pe(i);e&&"ok"!==e||i.setStatus("internal_error")}}),(()=>i&&i.end()))}))))}function fr(e,t){const n=vr(e);return Ze((()=>kt(e.scope,(r=>{const o=Je(),s=r.getSpan(),i=e.onlyIfParent&&!s?void 0:yr(o,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){i&&i.end()}return ur((()=>t(i,a)),(()=>{if(i&&i.isRecording()){const{status:e}=Pe(i);e&&"ok"!==e||i.setStatus("internal_error")}}))}))))}function mr(e){if(!dr())return;const t=vr(e),n=Je(),r=e.scope?e.scope.getSpan():gr();if(e.onlyIfParent&&!r)return;const o=(e.scope||Mt()).clone();return yr(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function gr(){return Mt().getSpan()}lr.tag="sentry_tracingErrorCallback";const _r=({sentryTrace:e,baggage:t},n)=>{const r=Mt(),{traceparentData:o,dynamicSamplingContext:s,propagationContext:i}=function(e,t){const n=Oe(e),r=Te(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:o||K(),parentSpanId:s||K().substring(16),spanId:K().substring(16),sampled:i,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||K(),spanId:K().substring(16)}}}(e,t);r.setPropagationContext(i),Y&&o&&M.log(`[Tracing] Continuing trace ${o.traceId}.`);const a={...o,metadata:G({dynamicSamplingContext:s})};return n?Ze((()=>n(a))):a};function yr(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!dr())return;const s=Qe();let i;if(t&&!r)i=t.startChild(n);else if(t){const r=Ue(t),{traceId:o,spanId:s}=t.spanContext(),a=De(t);i=e.startTransaction({traceId:o,parentSpanId:s,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:a,sampled:c}={...s.getPropagationContext(),...o.getPropagationContext()};i=e.startTransaction({traceId:t,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return o.setSpan(i),function(e,t,n){e&&($(e,Sr,n),$(e,br,t))}(i,o,s),i}function vr(e){if(e.startTime){const t={...e};return t.startTimestamp=Le(e.startTime),delete t.startTime,t}return e}const br="_sentryScope",Sr="_sentryIsolationScope";let Er;function Tr(e){return Er?Er.get(e):void 0}function Cr(e){const t=Tr(e);if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(G(r));return n}var kr;function wr(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(kr||(kr={}));const Or=wr;function Ir(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=wr(t);"unknown_error"!==n&&e.setStatus(n)}class xr{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Nr{constructor(e={}){this._traceId=e.traceId||K(),this._spanId=e.spanId||K().substring(16),this._startTime=e.startTimestamp||se(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Pn]:e.origin||"manual",[Mn]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[Mn]}set op(e){this.setAttribute(Mn,e)}get origin(){return this._attributes[Pn]}set origin(e){this.setAttribute(Pn,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Ne:0}}startChild(e){const t=new Nr({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=ye(this);if(t.transaction=n,Y&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Pe(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;M.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Ir(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=ye(this);if(Y&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&M.log(e.replace("Starting","Finishing"))}this._endTime=Le(e)}toTraceparent(){return Re(this)}toContext(){return G({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return Ae(this)}getSpanJSON(){return G({data:this._getData(),description:this._name,op:this._attributes[Mn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Pn],_metrics_summary:Cr(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}class Ar extends Nr{constructor(e,t){super(e),this._contexts={},this._hub=t||Je(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Rn]&&{source:this._attributes[Rn]},...this._attributes[Ln]&&{sampleRate:this._attributes[Ln]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(Rn,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new xr(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=Le(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return G({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Ue(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Y&&M.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Y&&M.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Pe(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Pe(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:o}={scope:this[br],isolationScope:this[Sr]};const{metadata:s}=this,{source:i}=s,a={contexts:{...this._contexts,trace:Ae(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:o,...G({dynamicSamplingContext:Ue(this)})},_metrics_summary:Cr(this),...i&&{transaction_info:{source:i}}};return Object.keys(this._measurements).length>0&&(Y&&M.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),Y&&M.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),a}}const Rr={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Lr=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Mr extends xr{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Pe(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Pr extends Ar{constructor(e,t,n=Rr.idleTimeout,r=Rr.finalTimeout,o=Rr.heartbeatInterval,s=!1,i=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Lr[4],this._autoFinishAllowed=!i,s&&(Y&&M.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),i||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Lr[3],this.end())}),this._finalTimeout)}end(e){const t=Le(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Y&&M.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Pe(e).timestamp||(e.setStatus("cancelled"),e.end(t),Y&&M.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=Pe(e),o=n&&n{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Mr(t,n,this.spanContext().spanId,e),Y&&M.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Lr[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Y&&M.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Lr[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Y&&M.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Y&&M.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Y&&M.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Y&&M.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=se();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Lr[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Y&&M.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Lr[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Y&&M.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Dr(e,t,n){if(!dr(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(Ln,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(Ln,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(Ln,Number(r))):(r=1,e.setAttribute(Ln,r)),Fr(r)?r?(e.sampled=Math.random()1)||(Y&&M.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function Ur(){const e=this.getScope().getSpan();return e?{"sentry-trace":Re(e)}:{}}function Br(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",s=e.instrumenter||"sentry";o!==s&&(Y&&M.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let i=new Ar(e,this);return i=Dr(i,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),i.isRecording()&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",i),i}function $r(e,t,n,r,o,s,i,a=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let u=new Pr(t,e,n,r,i,o,a);return u=Dr(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...s}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",u),u}function jr(){const e=Ye();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Br),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Ur),cr||(cr=!0,tr(lr),or(lr)))}const Hr=6e4;function Vr(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Hr:r-t}function Wr(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function zr(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else i?o.all=r+Vr(i,r):429===t&&(o.all=r+6e4);return o}const Gr=30;function qr(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new de(((n,r)=>{let o=t.length;if(!o)return n(!0);const s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{le(e).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(e.bufferSize||Gr)){let r={};function o(o){const s=[];if(yn(o,((t,n)=>{const o=Tn(n);if(Wr(r,o)){const r=Xr(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)})),0===s.length)return le();const i=gn(o[0],s),a=t=>{yn(i,((n,r)=>{const o=Xr(n,r);e.recordDroppedEvent(t,Tn(r),o)}))};return n.add((()=>t({body:bn(i,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Y&&M.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=zr(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Dn)return Y&&M.error("Skipped sending event because buffer is full."),a("queue_overflow"),le();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Xr(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Yr(e,t){let n;return yn(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function Kr(e,t){return n=>{const r=e(n),o=new Map;function s(t,r){const s=r?`${t}:${r}`:t;let i=o.get(s);if(!i){const a=hn(t);if(!a)return;const c=Bn(a,n.tunnel);i=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=Yr(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(s,i)}return[t,i]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return Yr(e,n)}}).map((e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release))).filter((e=>!!e));return 0===n.length&&n.push(["",r]),(await Promise.all(n.map((([t,n])=>n.send(function(e,t){return gn(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[await r.flush(e)];for(const[,n]of o)t.push(await n.flush(e));return t.every((e=>e))}}}}const Jr={c:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},g:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},d:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},s:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?function(e){let t=0;for(let n=0;n>>0}(e):e)).join(":")}}};class Qr{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(e,t,n,r="none",o={},s=se()){const i=Math.floor(s),a=t.replace(/[^\w\-.]+/gi,"_"),c=function(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[jn(n)]=Vn(String(e[n])));return t}(o),l=function(e){return e.replace(/[^\w]+/gi,"_")}(r),u=function(e,t,n,r){return`${e}${t}${n}${Object.entries(G(r)).sort(((e,t)=>e[0].localeCompare(t[0])))}`}(e,a,l,c);let d=this._buckets.get(u);const p=d&&"s"===e?d.metric.weight:0;d?(d.metric.add(n),d.timestampe));this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const Zr="MetricsAggregator",eo=()=>({name:Zr,setupOnce(){},setup(e){e.metricsAggregator=new Qr(e)}});function to(e,t,n,r={}){const o=Rt(),s=Mt();if(o){if(!o.metricsAggregator)return void(Y&&M.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs"));const{unit:i,tags:a,timestamp:c}=r,{release:l,environment:u}=o.getOptions(),d=s.getTransaction(),p={};l&&(p.release=l),u&&(p.environment=u),d&&(p.transaction=Pe(d).description||""),Y&&M.log(`Adding value of ${n} to ${e} metric ${t}`),o.metricsAggregator.add(e,t,n,i,{...p,...a},c)}}const no={increment:function(e,t=1,n){to("c",e,t,n)},distribution:function(e,t,n){to("d",e,t,n)},set:function(e,t,n){to("s",e,t,n)},gauge:function(e,t,n){to("g",e,t,n)},MetricsAggregator:Wt(Zr,eo),metricsAggregatorIntegration:eo};function ro(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function oo(e){const t=Je().getStackTop();t.client=e,t.scope.setClient(e)}function so(e,t,n){const r=ir();r&&r.setMeasurement(e,t,n)}const io=b;let ao=0;function co(){return ao>0}function lo(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(H(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>lo(e,t)));return e.apply(this,o)}catch(e){throw ao++,setTimeout((()=>{ao--})),kt((n=>{n.addEventProcessor((e=>(t.mechanism&&(Z(e,void 0,void 0),ee(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),ft(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}j(r,e),$(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}var uo=n(958);const po="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ho(e,t){const n=mo(e,t),r={type:t&&t.name,value:_o(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function fo(e,t){return{exception:{values:[ho(e,t)]}}}function mo(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(go.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const go=/Minified React error #\d+;/i;function _o(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function yo(e,t,n,r){const o=bo(e,t,n&&n.syntheticException||void 0,r);return ee(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),le(o)}function vo(e,t,n="info",r,o){const s=So(e,t,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),le(s)}function bo(e,t,n,r,o){let s;if(c(t)&&t.error)return fo(e,t.error);if(l(t)||a(t,"DOMException")){const o=t;if("stack"in t)s=fo(e,t);else{const t=o.name||(l(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;s=So(e,i,n,r),Z(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return i(t)?fo(e,t):h(t)||f(t)?(s=function(e,t,n,r){const o=Rt(),s=o&&o.getOptions().normalizeDepth,i={exception:{values:[{type:f(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Eo(t,{isUnhandledRejection:r})}]},extra:{__serialized__:lt(t,s)}};if(n){const t=mo(e,n);t.length&&(i.exception.values[0].stacktrace={frames:t})}return i}(e,t,n,o),ee(s,{synthetic:!0}),s):(s=So(e,t,n,r),Z(s,`${t}`,void 0),ee(s,{synthetic:!0}),s)}function So(e,t,n,r){const o={};if(r&&n){const r=mo(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(d(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Eo(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(V(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return P(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:P(r,t)}return""}(e),r=t?"promise rejection":"exception";return c(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:f(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function To(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:pn(r)}},s=function(e){return[{type:"user_report"},e]}(e);return gn(o,[s])}class Co extends zn{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:ze}))),version:ze}),e._metadata=o}(e,"browser",["browser"],io.SENTRY_SDK_SOURCE||(0,uo.e)()),super(e),e.sendClientReports&&io.document&&io.document.addEventListener("visibilitychange",(()=>{"hidden"===io.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return yo(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return vo(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(po&&M.warn("SDK not enabled, will not capture user feedback."));const t=To(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(po&&M.log("No outcomes to send"));if(!this._dsn)return void(po&&M.log("No dsn provided, will not send outcomes"));po&&M.log("Sending outcomes:",e);const t=(n=e,gn((r=this._options.tunnel&&pn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:oe(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}const ko=S();function wo(){if(!("fetch"in ko))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Oo(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Io(){if("string"==typeof EdgeRuntime)return!0;if(!wo())return!1;if(Oo(ko.fetch))return!0;let e=!1;const t=ko.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Oo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){N&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}let xo;function No(e,t=function(){if(xo)return xo;if(Oo(io.fetch))return xo=io.fetch.bind(io);const e=io.document;let t=io.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){po&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return xo=t.bind(io)}()){let n=0,r=0;return qr(e,(function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,i).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return xo=void 0,n-=s,r--,ue(e)}}))}const Ao=4;function Ro(e){return qr(e,(function(t){return new de(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{o.readyState===Ao&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Lo="?";function Mo(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Po=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Do=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fo=[30,e=>{const t=Po.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Do.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Yo(t[1]||Lo,t[2]);return Mo(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Uo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$o=[50,e=>{const t=Uo.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Bo.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Lo;return[n,e]=Yo(n,e),Mo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],jo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ho=[40,e=>{const t=jo.exec(e);return t?Mo(t[2],t[1]||Lo,+t[3],t[4]?+t[4]:void 0):void 0}],Vo=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Wo=[10,e=>{const t=Vo.exec(e);return t?Mo(t[2],t[3]||Lo,+t[1]):void 0}],zo=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Go=[20,e=>{const t=zo.exec(e);return t?Mo(t[5],t[3]||t[4]||Lo,+t[1],+t[2]):void 0}],qo=[Fo,$o,Ho],Xo=st(...qo),Yo=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Lo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ko=S(),Jo=b;let Qo;function Zo(e){const t="history";Jn(t,e),Qn(t,es)}function es(){if(!function(){const e=Ko.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ko&&!!Ko.history.pushState&&!!Ko.history.replaceState;return!t&&n}())return;const e=Jo.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Qo,t=String(n);Qo=t,Zn("history",{from:e,to:t})}return e.apply(this,t)}}Jo.onpopstate=function(...t){const n=Jo.location.href,r=Qo;if(Qo=n,Zn("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},B(Jo.history,"pushState",t),B(Jo.history,"replaceState",t)}function ts(e){const t="console";Jn(t,e),Qn(t,ns)}function ns(){"console"in b&&A.forEach((function(e){e in b.console&&B(b.console,e,(function(t){return R[e]=t,function(...t){Zn("console",{args:t,level:e});const n=R[e];n&&n.apply(b.console,t)}}))}))}const rs=b,os=1e3;let ss,is,as;function cs(e){Jn("dom",e),Qn("dom",ls)}function ls(){if(!rs.document)return;const e=Zn.bind(null,"dom"),t=us(e,!0);rs.document.addEventListener("click",t,!1),rs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=rs[t]&&rs[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=s[n]=s[n]||{refCount:0};if(!i.handler){const r=us(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),B(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},s=o[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function us(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;$(n,"_sentryCaptured",!0),r&&!r._sentryId&&$(r,"_sentryId",K());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==is)return!1;try{if(!e.target||e.target._sentryId!==as)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),is=n.type,as=r?r._sentryId:void 0),clearTimeout(ss),ss=rs.setTimeout((()=>{as=void 0,is=void 0}),os)}}const ds=b,ps="__sentry_xhr_v3__";function hs(e){Jn("xhr",e),Qn("xhr",fs)}function fs(){if(!ds.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;B(e,"open",(function(e){return function(...t){const n=Date.now(),r=u(t[0])?t[0].toUpperCase():void 0,o=function(e){if(u(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!o)return e.apply(this,t);this[ps]={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[ps];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Zn("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?B(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),B(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[ps];return o&&u(n)&&u(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),B(e,"send",(function(e){return function(...t){const n=this[ps];return n?(void 0!==t[0]&&(n.body=t[0]),Zn("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}function ms(e){const t="fetch";Jn(t,e),Qn(t,gs)}function gs(){Io()&&B(b,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:ys(t),method:_s(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:ys(t),method:_s(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Zn("fetch",{...o}),e.apply(b,t).then((e=>(Zn("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Zn("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function _s(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ys(e){return"string"==typeof e?e:e?_s(e,"url")?e.url:e.toString?e.toString():"":""}const vs=["fatal","error","warning","log","info","debug"];function bs(e){return"warn"===e?"warning":vs.includes(e)?e:"log"}function Ss(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Es="Breadcrumbs",Ts=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Es,setupOnce(){},setup(e){t.console&&ts(function(e){return function(t){if(Rt()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:bs(t.level),message:F(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${F(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}yt(n,{input:t.args,level:t.level})}}(e)),t.dom&&cs(function(e,t){return function(n){if(Rt()!==e)return;let r,o,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(po&&M.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=k(t,{keyAttrs:s,maxStringLength:i}),o=x(t)}catch(e){r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),yt(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&hs(function(e){return function(t){if(Rt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[ps];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o;yt({category:"xhr",data:{method:s,url:i,status_code:a},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&ms(function(e){return function(t){if(Rt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)yt({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;yt({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Zo(function(e){return function(t){if(Rt()!==e)return;let n=t.from,r=t.to;const o=Ss(io.location.href);let s=n?Ss(n):void 0;const i=Ss(r);s&&s.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),yt({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Rt()===e&&yt({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Q(t)},{event:t})}}(e))}}},Cs=Wt(Es,Ts),ks="Dedupe",ws=()=>{let e;return{name:ks,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!xs(e,t)&&!!Is(e,t))))}(e,t)||!!function(e,t){const n=Ns(t),r=Ns(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!xs(e,t)&&!!Is(e,t)))}(e,t))}(t,e))return po&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},Os=Wt(ks,ws);function Is(e,t){let n=As(e),r=As(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Rs,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){tr((t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(Rt()!==e||co())return;const{msg:o,url:s,line:i,column:a,error:l}=t,d=void 0===l&&u(o)?function(e,t,n,r){let o=c(e)?e.message:e,s="Error";const i=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);i&&(s=i[1],o=i[2]);return Ps({exception:{values:[{type:s,value:o}]}},t,n,r)}(o,s,i,a):Ps(bo(n,l||o,void 0,r,!1),s,i,a);d.level="error",gt(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),Ds("onerror")),t.onunhandledrejection&&(function(e){or((t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(Rt()!==e||co())return;const o=function(e){if(p(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),s=p(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:bo(n,o,void 0,r,!0);s.level="error",gt(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Ds("onunhandledrejection"))}}},Ms=Wt(Rs,Ls);function Ps(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=u(t)&&t.length>0?t:O();return 0===c.length&&c.push({colno:l,filename:p,function:"?",in_app:!0,lineno:d}),e}function Ds(e){po&&M.log(`Global Handler attached: ${e}`)}function Fs(){const e=Rt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Us="HttpContext",Bs=()=>({name:Us,setupOnce(){},preprocessEvent(e){if(!io.navigator&&!io.location&&!io.document)return;const t=e.request&&e.request.url||io.location&&io.location.href,{referrer:n}=io.document||{},{userAgent:r}=io.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),$s=Wt(Us,Bs),js="LinkedErrors",Hs=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:js,setupOnce(){},preprocessEvent(e,r,o){const s=o.getOptions();nn(ho,s.stackParser,s.maxValueLength,n,t,e,r)}}},Vs=Wt(js,Hs),Ws=["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"],zs="TryCatch",Gs=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:zs,setupOnce(){t.setTimeout&&B(io,"setTimeout",Xs),t.setInterval&&B(io,"setInterval",Xs),t.requestAnimationFrame&&B(io,"requestAnimationFrame",Ys),t.XMLHttpRequest&&"XMLHttpRequest"in io&&B(XMLHttpRequest.prototype,"send",Ks);const e=t.eventTarget;e&&(Array.isArray(e)?e:Ws).forEach(Js)}}},qs=Wt(zs,Gs);function Xs(e){return function(...t){const n=t[0];return t[0]=lo(n,{mechanism:{data:{function:at(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ys(e){return function(t){return e.apply(this,[lo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:at(e)},handled:!1,type:"instrument"}})])}}function Ks(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&B(n,e,(function(t){const n={mechanism:{data:{function:e,handler:at(t)},handled:!1,type:"instrument"}},r=H(t);return r&&(n.mechanism.data.handler=at(r)),lo(t,n)}))})),e.apply(this,t)}}function Js(e){const t=io,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=lo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:at(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,lo(r,{mechanism:{data:{function:"addEventListener",handler:at(r),target:e},handled:!1,type:"instrument"}}),o])}})),B(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}const Qs=[Zt(),Xt(),Gs(),Ts(),Ls(),Hs(),ws(),Bs()];function Zs(e){return[...Qs]}function ei(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Zs()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),io.SENTRY_RELEASE&&io.SENTRY_RELEASE.id&&(e.release=io.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Xo,Array.isArray(n)?st(...n):n),integrations:$t(e),transport:e.transport||(wo()?No:Ro)};var n;!function(e,t){!0===t.debug&&(Y?M.enable():L((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Mt().update(t.initialScope);const n=new e(t);oo(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}(Co,t),e.autoSessionTracking&&(void 0!==io.document?(Pt({ignoreDuration:!0}),Ut(),Zo((({from:e,to:t})=>{void 0!==e&&e!==t&&(Pt({ignoreDuration:!0}),Ut())}))):po&&M.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}const ti=(e={},t=Je())=>{if(!io.document)return void(po&&M.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o)return void(po&&M.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const s=io.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){const n=mn(e);if(!n)return"";const r=`${Un(n)}embed/error-page/`;let o=`dsn=${pn(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(o,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:i}=e;if(i){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{i()}finally{io.removeEventListener("message",e)}};io.addEventListener("message",e)}const a=io.document.head||io.document.body;a?a.appendChild(s):po&&M.error("Not injecting report dialog. No injection point found in HTML")};function ni(){}function ri(e){e()}function oi(e){return lo(e)()}function si(e){const t=Rt();t&&t.captureUserFeedback(e)}function ii(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function ai(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&ci(e)===ci(t)}(e,o)}function ci(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var li=n(609);function ui(){return"undefined"!=typeof window&&(!(0,li.wD)()||void 0!==b.process&&"renderer"===b.process.type)}const di="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pi=(e,t,n)=>{let r,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},hi=b,fi=()=>hi.__WEB_VITALS_POLYFILL__?hi.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=hi.performance.timing,t=hi.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):hi.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mi=()=>{const e=fi();return e&&e.activationStart||0},gi=(e,t)=>{const n=fi();let r="navigate";return n&&(r=hi.document&&hi.document.prerendering||mi()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},_i=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},yi=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==hi.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};hi.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},vi=(e,t={})=>{const n=gi("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],i=s[s.length-1];o&&0!==s.length&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>n.value&&(n.value=o,n.entries=s,r&&r())}}))},a=_i("layout-shift",i);if(a){r=pi(e,n,t.reportAllChanges);const o=()=>{i(a.takeRecords()),r(!0)};return yi(o),o}};let bi=-1;const Si=()=>(bi<0&&(hi.document&&hi.document.visibilityState&&(bi="hidden"!==hi.document.visibilityState||hi.document.prerendering?1/0:0),yi((({timeStamp:e})=>{bi=e}),!0)),{get firstHiddenTime(){return bi}}),Ei=e=>{const t=Si(),n=gi("FID");let r;const o=e=>{e.startTime{e.forEach(o)},i=_i("first-input",s);r=pi(e,n),i&&yi((()=>{s(i.takeRecords()),i.disconnect()}),!0)};let Ti=0,Ci=1/0,ki=0;const wi=e=>{e.forEach((e=>{e.interactionId&&(Ci=Math.min(Ci,e.interactionId),ki=Math.max(ki,e.interactionId),Ti=ki?(ki-Ci)/7+1:0)}))};let Oi;const Ii=()=>{"interactionCount"in performance||Oi||(Oi=_i("event",wi,{type:"event",buffered:!0,durationThreshold:0}))},xi=()=>Oi?Ti:performance.interactionCount||0,Ni=[],Ai={},Ri=e=>{const t=Ni[Ni.length-1],n=Ai[e.interactionId];if(n||Ni.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Ai[t.id]=t,Ni.push(t)}Ni.sort(((e,t)=>t.latency-e.latency)),Ni.splice(10).forEach((e=>{delete Ai[e.id]}))}},Li=(e,t)=>{t=t||{},Ii();const n=gi("INP");let r;const o=e=>{e.forEach((e=>{e.interactionId&&Ri(e),"first-input"===e.entryType&&!Ni.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&Ri(e)}));const t=(()=>{const e=Math.min(Ni.length-1,Math.floor(xi()/50));return Ni[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},s=_i("event",o,{durationThreshold:t.durationThreshold||40});r=pi(e,n,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),yi((()=>{o(s.takeRecords()),n.value<0&&xi()>0&&(n.value=0,n.entries=[]),r(!0)})))},Mi={},Pi=e=>{const t=Si(),n=gi("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-mi(),0);e{Mi[n.id]||(o(s.takeRecords()),s.disconnect(),Mi[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{hi.document&&addEventListener(e,t,{once:!0,capture:!0})})),yi(t,!0),t}},Di=e=>{hi.document&&(hi.document.prerendering?addEventListener("prerenderingchange",(()=>Di(e)),!0):"complete"!==hi.document.readyState?addEventListener("load",(()=>Di(e)),!0):setTimeout(e,0))},Fi=(e,t)=>{t=t||{};const n=gi("TTFB"),r=pi(e,n,t.reportAllChanges);Di((()=>{const e=fi();if(e){if(n.value=Math.max(e.responseStart-mi(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))},Ui={},Bi={};let $i,ji,Hi,Vi,Wi;function zi(e,t=!1){return Zi("lcp",e,Ki,Hi,t)}function Gi(e,t){return ea(e,t),Bi[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),_i(e,(t=>{qi(e,{entries:t})}),t)}(e),Bi[e]=!0),ta(e,t)}function qi(e,t){const n=Ui[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){di&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${at(r)}\nError:`,t)}}function Xi(){return vi((e=>{qi("cls",{metric:e}),$i=e}),{reportAllChanges:!0})}function Yi(){return Ei((e=>{qi("fid",{metric:e}),ji=e}))}function Ki(){return Pi((e=>{qi("lcp",{metric:e}),Hi=e}))}function Ji(){return Fi((e=>{qi("ttfb",{metric:e}),Vi=e}))}function Qi(){return Li((e=>{qi("inp",{metric:e}),Wi=e}))}function Zi(e,t,n,r,o=!1){let s;return ea(e,t),Bi[e]||(s=n(),Bi[e]=!0),r&&t({metric:r}),ta(e,t,o?s:void 0)}function ea(e,t){Ui[e]=Ui[e]||[],Ui[e].push(t)}function ta(e,t,n){return()=>{n&&n();const r=Ui[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const na=b,ra="sentryReplaySession",oa="replay_event",sa="Unable to send Replay",ia=15e4,aa=5e3,ca=2e7;function la(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var ua;function da(e){const t=la([e,"optionalAccess",e=>e.host]);return Boolean(la([t,"optionalAccess",e=>e.shadowRoot])===e)}function pa(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ha(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,fa).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function fa(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=ha(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ua||(ua={}));class ma{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return()=>-1,null!=(t=la([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:-1;var t}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ga({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function _a({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function ya(e){return e.toLowerCase()}function va(e){return e.toUpperCase()}const ba="__rrweb_original__";function Sa(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ya(t):null}function Ea(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let Ta=1;const Ca=new RegExp("[^a-z0-9-_:]"),ka=-2;function wa(){return Ta++}let Oa,Ia;const xa=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Na=/^(?:[a-z+]+:)?\/\//i,Aa=/^www\..*/i,Ra=/^(data:)([^,]*),(.*)/i;function La(e,t){return(e||"").replace(xa,((e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return e;if(Na.test(a)||Aa.test(a))return`url(${c}${a}${c})`;if(Ra.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const Ma=/^[^ \t\n\r\u000c]+/,Pa=/^[, \t\n\r\u000c]+/;function Da(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function Fa(){const e=document.createElement("a");return e.href="",e.href}function Ua(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Da(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Pa),!(n>=t.length);){let s=r(Ma);if(","===s.slice(-1))s=Da(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=Da(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?La(r,Fa()):"object"===t&&"data"===n?Da(e,r):"function"==typeof s?s(n,r,o):r:Da(e,r):r}function Ba(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function $a(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:$a(e.parentNode,t,n,r+1):-1}function ja(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Ha(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(s){if(c=$a(i,ja(r,o)),c<0)return!0;a=$a(i,ja(t,n),c>=0?c:1/0)}else{if(a=$a(i,ja(t,n)),a<0)return!1;c=$a(i,ja(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!s)}catch(e){}return!!s}function Va(e){return null==e?"":e.toLowerCase()}function Wa(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:O=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:x=!0}=t;const N=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,E=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ua.Document,childNodes:[],compatMode:e.compatMode}:{type:ua.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ua.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,s),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=ya(e.tagName);return Ca.test(t)?"div":t}(e);let T={};const C=e.attributes.length;for(let t=0;tt.href===e.href));let r=null;t&&(r=ha(t)),r&&(delete T.rel,delete T.href,T._cssText=La(r,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=ha(e.sheet);t&&(T._cssText=La(t,Fa()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=Sa(t),r=Ea(t,va(E),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Ha(t,_,v,y,b,ga({type:n,tagName:va(E),maskInputOptions:a}));T.value=_a({isMasked:e,element:t,value:r,maskInputFn:l})}o&&(T.checked=o)}if("option"===E&&(e.selected&&!a.select?T.selected=!0:delete T.selected),"canvas"===E&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(u.type,u.quality)&&(T.rr_dataURL=t)}if("img"===E&&d){Oa||(Oa=n.createElement("canvas"),Ia=Oa.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{Oa.width=t.naturalWidth,Oa.height=t.naturalHeight,Ia.drawImage(t,0,0),T.rr_dataURL=Oa.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?T.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==E&&"video"!==E||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}let k;"iframe"!==E||h(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(E)&&(k=!0)}catch(e){}return{type:ua.Element,tagName:E,attributes:T,childNodes:[],isSVG:(w=e,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:k};var w}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:E,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||la([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=ha(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=La(p,Fa())}f&&(p="SCRIPT_PLACEHOLDER");const g=Ha(e,r,s,o,i,n);return h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=_a({isMasked:Ha(e,r,s,o,i,ga({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:l})),{type:ua.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:ua.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ua.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:O,newlyAddedElement:I});if(!N)return console.warn(e,"not serialized"),null;let A;A=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===ua.Comment)return!0;if(e.type===ua.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Va(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Va(e.attributes.name)||"icon"===Va(e.attributes.rel)||"apple-touch-icon"===Va(e.attributes.rel)||"shortcut icon"===Va(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Va(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Va(e.attributes.property).match(/^(og|twitter|fb):/)||Va(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Va(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Va(e.attributes.name)||"googlebot"===Va(e.attributes.name)||"bingbot"===Va(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Va(e.attributes.name)||"generator"===Va(e.attributes.name)||"framework"===Va(e.attributes.name)||"publisher"===Va(e.attributes.name)||"progid"===Va(e.attributes.name)||Va(e.attributes.property).match(/^article:/)||Va(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Va(e.attributes.name)||"yandex-verification"===Va(e.attributes.name)||"csrf-token"===Va(e.attributes.name)||"p:domain_verify"===Va(e.attributes.name)||"verify-v1"===Va(e.attributes.name)||"verification"===Va(e.attributes.name)||"shopify-checkout-api-token"===Va(e.attributes.name)))return!0}}return!1}(N,y)&&(x||N.type!==ua.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?wa():ka;const R=Object.assign(N,{id:A});if(r.add(e,R),A===ka)return null;E&&E(e);let L=!p;if(R.type===ua.Element){L=L&&!R.needBlock,delete R.needBlock;const t=e.shadowRoot;t&&pa(t)&&(R.isShadowHost=!0)}if((R.type===ua.Document||R.type===ua.Element)&&L){y.headWhitespace&&R.type===ua.Element&&"head"===R.tagName&&(x=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O};for(const n of Array.from(e.childNodes)){const e=Wa(n,t);e&&R.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Wa(n,t);r&&(pa(e.shadowRoot)&&(r.isShadow=!0),R.childNodes.push(r))}}return e.parentNode&&da(e.parentNode)&&pa(e.parentNode)&&(R.isShadow=!0),R.type===ua.Element&&"iframe"===R.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),s=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&T){const n=Wa(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O});n&&T(e,n)}}),C),R.type===ua.Element&&"link"===R.tagName&&"stylesheet"===R.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(s),o=!0,t()}))}(e,(()=>{if(k){const t=Wa(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O});t&&k(e,t)}}),w),R}function za(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Ga(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const qa="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.";let Xa={map:{},getId:()=>(console.error(qa),-1),getNode:()=>(console.error(qa),null),removeNodeFromMap(){console.error(qa)},has:()=>(console.error(qa),!1),reset(){console.error(qa)}};function Ya(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(function(...e){fc("clearTimeout")(...e)}(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=mc((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)}),a))}}function Ka(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){mc((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Ka(e,t,s||{},!0)}function Ja(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Xa=new Proxy(Xa,{get:(e,t,n)=>("map"===t&&console.error(qa),Reflect.get(e,t,n))}));let Qa=Date.now;function Za(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:za([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:za([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ec(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function tc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function rc(e,t,n,r,o){if(!e)return!1;const s=nc(e);if(!s)return!1;const i=ja(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=$a(s,i);let c=-1;return!(a<0)&&(r&&(c=$a(s,ja(null,r))),a>-1&&c<0||ae.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Qa=()=>(new Date).getTime());class uc{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return()=>-1,null!=(t=this.styleIDMap.get(e))?t:-1;var t}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function dc(e){let t=null;return za([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function pc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=dc(n);)n=t;return n}(e);return t.contains(n)}(e))}const hc={};function fc(e){const t=hc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return hc[e]=r.bind(window)}function mc(...e){return fc("setTimeout")(...e)}var gc=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(gc||{}),_c=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(_c||{}),yc=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(yc||{}),vc=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(vc||{});function bc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Sc(e){return"__ln"in e}class Ec{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Sc(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Sc(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tc=(e,t)=>`${e}@${t}`;class Cc{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ec,r=e=>{let t=e,n=ka;for(;n===ka;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!pc(o))return;const s=da(o.parentNode)?this.mirror.getId(dc(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=Wa(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ac(e,this.mirror)&&this.iframeManager.addIframe(e),cc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),lc(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)wc(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Ic(this.droppedSet,e)||wc(this.removes,e,this.mirror)?Ic(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!oc(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Ha(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,nc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Sa(t),o=t.tagName;r=Ea(t,o,n);const s=ga({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=_a({isMasked:Ha(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ba(t.tagName,n)&&(o.attributes[n]=Ua(this.doc,ya(t.tagName),ya(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=da(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||oc(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(kc(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||sc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tc(n,r)]?kc(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!da(e.target)||!pa(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(oc(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Tc(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rc(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),lc(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function kc(e,t){e.delete(t),t.childNodes.forEach((t=>kc(e,t)))}function wc(e,t,n){return 0!==e.length&&Oc(e,t,n)}function Oc(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||Oc(e,r,n)}function Ic(e,t){return 0!==e.size&&xc(e,t)}function xc(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||xc(e,n))}let Nc;function Ac(e){Nc=e}function Rc(){Nc=void 0}const Lc=e=>Nc?(...t)=>{try{return e(...t)}catch(e){if(Nc&&!0===Nc(e))return()=>{};throw e}}:e;function Mc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Pc=[];function Dc(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Fc(e,t){const n=new Cc;Pc.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Mc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(Lc((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Uc({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return Ga("scroll",Lc(Ya(Lc((i=>{const a=Dc(i);if(!a||rc(a,r,o,s,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Za(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const Bc=["INPUT","TEXTAREA","SELECT"],$c=new WeakMap;function jc({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=Dc(e);const u=e.isTrusted,g=n&&va(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Bc.indexOf(g)<0||rc(n,r,o,s,!0))return;const y=n;if(y.classList.contains(i)||a&&y.matches(a))return;const v=Sa(n);let b=Ea(y,g,v),S=!1;const E=ga({maskInputOptions:c,tagName:g,type:v}),T=Ha(n,p,f,h,m,E);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=_a({isMasked:T,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});const C=n.name;"radio"===v&&C&&S&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=_a({isMasked:T,element:e,value:Ea(e,g,v),maskInputFn:l});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function _(t,r){const o=$c.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){$c.set(t,r);const o=n.getId(t);Lc(e)({...r,id:o})}}const y=("last"===u.input?["change"]:["input","change"]).map((e=>Ga(e,Lc(g),t))),v=t.defaultView;if(!v)return()=>{y.forEach((e=>e()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map((e=>Ka(e[0],e[1],{set(){Lc(g)({target:this,isTrusted:!1})}},!1,v)))),Lc((()=>{y.forEach((e=>e()))}))}function Hc(e){return function(e,t){if(Gc("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Gc("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Gc("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Gc("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Vc(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Wc({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Mc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Mc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=Mc([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Mc([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return Mc([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Mc([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Lc((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function zc(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Fc(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Ya(Lc((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),l=Lc(Ya(Lc((e=>{const t=Dc(e),{clientX:n,clientY:o}=ic(e)?e.changedTouches[0]:e;i||(i=Qa()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Qa()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?_c.Drag:e instanceof MouseEvent?_c.MouseMove:_c.TouchMove)})),o,{trailing:!1})),u=[Ga("mousemove",l,n),Ga("touchmove",l,n),Ga("drag",l,n)];return Lc((()=>{u.forEach((e=>e()))}))}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(yc).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=ya(i);const u=(t=>i=>{const a=Dc(i);if(rc(a,r,o,s,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=vc.Mouse;break;case"touch":c=vc.Touch;break;case"pen":c=vc.Pen}c===vc.Touch?yc[t]===yc.MouseDown?u="TouchStart":yc[t]===yc.MouseUp&&(u="TouchEnd"):vc.Pen}else ic(i)&&(c=vc.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===vc.Touch||u.startsWith("Mouse")&&c===vc.Mouse)&&(c=null)):yc[t]===yc.Click&&(c=l,l=null);const d=ic(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;Lc(e)({type:yc[u],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(yc[i]){case yc.MouseDown:case yc.MouseUp:a=a.replace("mouse","pointer");break;case yc.TouchStart:case yc.TouchEnd:return}c.push(Ga(a,u,t))})),Lc((()=>{c.forEach((e=>e()))}))}(e),i=Uc(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ga("resize",Lc(Ya(Lc((()=>{const t=ec(),o=tc();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=jc(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Lc((i=>Ya(Lc((s=>{const a=Dc(s);if(!a||rc(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),s.media||500))),c=[Ga("play",a(0),i),Ga("pause",a(1),i),Ga("seeked",a(2),i),Ga("volumechange",a(3),i),Ga("ratechange",a(4),i)];return Lc((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Lc(((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=Vc(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)}))}));const c={};qc("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(qc("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),qc("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),qc("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Lc(((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=Vc(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Hc(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Hc(o),i]}]}),r.apply(o,s)}))})})),Lc((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=Wc(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Lc(((o,i,a)=>{const[c,l,u]=a;if(n.has(c))return s.apply(i,[c,l,u]);const{id:d,styleId:p}=Vc(Mc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:l,priority:u},index:Hc(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Lc(((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:l,styleId:u}=Vc(Mc([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Hc(s.parentRule)}),o.apply(s,a)}))}),Lc((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Ja(t.fonts,"add",(function(t){return function(n){return mc(Lc((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),Lc((()=>{r.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const c=Lc((()=>{const e=t.getSelection();if(!e||a&&Mc([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Lc((()=>{Pc.forEach((e=>e.reset())),r.disconnect(),o(),s(),i(),a(),c(),l(),u(),d(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function Gc(e){return void 0!==window[e]}function qc(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xc{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Yc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class Kc{constructor(){this.crossOriginIframeMirror=new Xc(wa),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Jc{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xc(wa),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Yc([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case gc.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:gc.IncrementalSnapshot,data:{source:_c.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gc.Meta:case gc.Load:case gc.DomContentLoaded:return!1;case gc.Plugin:return t;case gc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case gc.IncrementalSnapshot:switch(t.data.source){case _c.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _c.Drag:case _c.TouchMove:case _c.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _c.ViewportResize:return!1;case _c.MediaInteraction:case _c.MouseInteraction:case _c.Scroll:case _c.CanvasMutation:case _c.Input:return this.replaceIds(t.data,e,["id"]),t;case _c.StyleSheetRule:case _c.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _c.Font:return t;case _c.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case _c.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Yc([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===ua.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Qc{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Zc{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!pa(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Fc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Uc({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mc((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Wc({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ja(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&pc(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class el{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class tl{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new uc,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:fa(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class nl{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){fc("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let rl,ol;const sl=new ma;function il(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:E,sampling:T={},dataURLOptions:C={},mousemoveWait:k,recordCanvas:w=!1,recordCrossOriginIframes:O=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:x=!1,collectFonts:N=!1,inlineImages:A=!1,plugins:R,keepIframeSrcFn:L=(()=>!1),ignoreCSSAttributes:M=new Set([]),errorHandler:P,onMutation:D,getCanvasManager:F}=e;Ac(P);const U=!O||window.parent===window;let B=!1;if(!U)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(U&&!t)throw new Error("emit function is required");void 0!==k&&void 0===T.mousemove&&(T.mousemove=k),sl.reset();const $=!0===m?{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!==g?g:{},j=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const W=e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!B&&(e=E(e)),e};rl=(e,o)=>{const s=e;if(s.timestamp=Qa(),!ii([Pc,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||s.type===gc.FullSnapshot||s.type===gc.IncrementalSnapshot&&s.data.source===_c.Mutation||Pc.forEach((e=>e.unfreeze())),U)ii([t,"optionalCall",e=>e(W(s),o)]);else if(B){const e={type:"rrweb",event:W(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===gc.FullSnapshot)H=s,V=0;else if(s.type===gc.IncrementalSnapshot){if(s.data.source===_c.Mutation&&s.data.isAttachIframe)return;V++;const e=r&&V>=r,t=n&&H&&s.timestamp-H.timestamp>n;(e||t)&&Z(!0)}};const z=e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.Mutation,...e}})},G=e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Scroll,...e}}),q=e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.CanvasMutation,...e}}),X=new tl({mutationCb:z,adoptedStyleSheetCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Kc:new Jc({mirror:sl,mutationCb:z,stylesheetManager:X,recordCrossOriginIframes:O,wrappedEmit:rl});for(const e of R||[])e.getMirror&&e.getMirror({nodeMirror:sl,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const K=new nl,J=function(e,t){try{return e?e(t):new el}catch(e){return console.warn("Unable to initialize CanvasManager"),new el}}(F,{mirror:sl,win:window,mutationCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.CanvasMutation,...e}}),recordCanvas:w,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:T.canvas,dataURLOptions:C,errorHandler:P}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Qc:new Zc({mutationCb:z,scrollCb:G,bypassOptions:{onMutation:D,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:$,dataURLOptions:C,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:w,inlineImages:A,sampling:T,slimDOMOptions:j,iframeManager:Y,stylesheetManager:X,canvasManager:J,keepIframeSrcFn:L,processedNodeManager:K},mirror:sl}),Z=(e=!1)=>{rl({type:gc.Meta,data:{href:window.location.href,width:tc(),height:ec()}},e),X.reset(),Q.init(),Pc.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new ma,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w=(()=>!1)}=t||{};return Wa(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:sl,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:$,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:j,dataURLOptions:C,recordCanvas:w,inlineImages:A,onSerialize:e=>{ac(e,sl)&&Y.addIframe(e),cc(e,sl)&&X.trackLinkElement(e),lc(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");rl({type:gc.FullSnapshot,data:{node:t,initialOffset:Za(window)}}),Pc.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,sl.getId(document))};ol=Z;try{const e=[],t=e=>Lc(zc)({onMutation:D,mutationCb:z,mousemoveCb:(e,t)=>rl({type:gc.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.ViewportResize,...e}}),inputCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Input,...e}}),mediaInteractionCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.MediaInteraction,...e}}),styleSheetRuleCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.StyleSheetRule,...e}}),styleDeclarationCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.StyleDeclaration,...e}}),canvasMutationCb:q,fontCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Font,...e}}),selectionCb:e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.Selection,...e}})},customElementCb:e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:$,inlineStylesheet:f,sampling:T,recordCanvas:w,inlineImages:A,userTriggeredOnInput:x,collectFonts:N,doc:e,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:L,blockSelector:s,unblockSelector:i,slimDOMOptions:j,dataURLOptions:C,mirror:sl,iframeManager:Y,stylesheetManager:X,shadowDomManager:Q,processedNodeManager:K,canvasManager:J,ignoreCSSAttributes:M,plugins:ii([R,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>rl({type:gc.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ga("DOMContentLoaded",(()=>{rl({type:gc.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(Ga("load",(()=>{rl({type:gc.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),K.destroy(),ol=void 0,Rc()}}catch(e){console.warn(e)}}il.mirror=sl,il.takeFullSnapshot=function(e){if(!ol)throw new Error("please take full snapshot after start recording");ol(e)};const al=3;function cl(e){return e>9999999999?e:1e3*e}function ll(e){return e>9999999999?e/1e3:e}function ul(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:gc.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:ct(t,10,1e3)}}),"console"===t.category))))}const dl="button,a";function pl(e){return e.closest(dl)||e}function hl(e){const t=fl(e);return t&&t instanceof Element?pl(t):t}function fl(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let ml;class gl{constructor(e,t,n=ul){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=yl()},ml||(ml=[],B(na,"open",(function(e){return function(...t){if(ml)try{ml.forEach((e=>e()))}catch(e){}return e.apply(na,t)}}))),ml.push(t),()=>{const e=ml?ml.indexOf(t):-1;e>-1&&ml.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!_l.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:ll(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ll(e)}registerScroll(e=Date.now()){this._lastScroll=ll(e)}registerClick(e){const t=pl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=yl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:na.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(t,o)}else if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:na.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const _l=["A","BUTTON","INPUT"];function yl(){return Date.now()/1e3}function vl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var bl;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(bl||(bl={}));const Sl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function El(e){const t={};for(const n in e)if(Sl.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function Tl(e,t){const n=il.mirror.getId(e),r=n&&il.mirror.getNode(n),o=r&&il.mirror.getMeta(r),s=o&&function(e){return e.type===bl.Element}(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===bl.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:El(s.attributes)}}:{}}}const Cl={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:wl(s),end:wl(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=wl(o);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:wl(h),end:wl(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function kl(e){return Cl[e.entryType]?Cl[e.entryType](e):null}function wl(e){return((ae||na.performance.timeOrigin)+e)/1e3}const Ol="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Il(e,t){Ol&&(M.info(e),t&&Nl(e))}function xl(e,t){Ol&&(M.info(e),t&&setTimeout((()=>{Nl(e)}),0))}function Nl(e){yt({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Al extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Rl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>ca)throw new Al;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?cl(e):null}}class Ll{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Il("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return Ol&&M.error("[Replay]",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Ml{constructor(e){this._worker=new Ll(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=cl(e.timestamp);(!this._earliestTimestamp||tca?Promise.reject(new Al):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Ol&&M.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Pl{constructor(e){this._fallback=new Rl,this._compression=new Ml(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Il("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Ol&&M.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Dl(){try{return"sessionStorage"in na&&!!na.sessionStorage}catch(e){return!1}}function Fl(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Il(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),1))}function Xl(e){return!e.type}function Yl(e){return"transaction"===e.type}function Kl(e){return"feedback"===e.type}function Jl(e){const t=function(){const e=Rt();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!Xl(n)&&!Yl(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(Yl(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Ql(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:gc.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Zl(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Ol||!e.getOptions()._experiments.traceInternals)&&ai(t,Rt())}(e,t.name)||e.addUpdate((()=>(Ql(e,[t]),!0))))}function eu(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=cu(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function tu(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function nu(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[cu(e)];if(!e)return[void 0]}catch(t){return Ol&&M.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ol&&M.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ru(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ou(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:G({method:s,statusCode:i,request:a,response:c})}}function su(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function iu(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>ia,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,ia);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function au(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function cu(e){return new URLSearchParams(e).toString()}function lu(e,t){const n=function(e,t=na.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(na.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return U(n,t)}function uu(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function du(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function pu(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?du(n,t):Array.isArray(n)?{}:au(n,t):{}}function hu(e){const t=Rt();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const s=eu(o,n.textEncoder),i=r.getResponseHeader("content-length")?tu(r.getResponseHeader("content-length")):function(e,t,n){try{return eu("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!lu(c,n.networkDetailAllowUrls)||lu(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:su(d),response:su(p)};const h=a[ps],f=h?au(h.request_headers,n.networkRequestHeaders):{},m=au(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?nu(i):[void 0],[y,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Ol&&M.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ol&&M.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Ol&&M.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=iu(f,d,g),S=iu(m,p,y);return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:_?ru(b,_):b,response:v?ru(S,v):S}}(e,t,n),o=ou("resource.xhr",r);Zl(n.replay,o)}catch(e){Ol&&M.error("[Replay] Failed to capture xhr breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:o}=t,s=eu(r?uu(r):void 0,n.textEncoder),i=o?tu(o.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=lu(i,n.networkDetailAllowUrls)&&!lu(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(i=t,1===(s=n).length&&"string"!=typeof s[0]?pu(s[0],i):2===s.length?pu(s[1],i):{}):{};var s,i;if(!e)return iu(o,r,void 0);const a=uu(n),[c,l]=nu(a),u=iu(o,r,c);return l?ru(u,l):u}(n,t.input,l):su(l),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,s){if(!e&&void 0!==s)return su(s);const i=o?du(o.headers,r):{};if(!o||!t&&void 0!==s)return iu(i,s,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Ol&&M.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return Ol&&M.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(o),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:s}){try{const i=e&&e.length&&void 0===r?eu(e,n):r;return o?iu(s,i,t?e:void 0):su(i)}catch(e){return Ol&&M.warn("[Replay] Failed to serialize response body",e),iu(s,r,void 0)}}(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:e,headers:i});return c?ru(l,c):l}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:h}}(e,t,n),o=ou("resource.fetch",r);Zl(n.replay,o)}catch(e){Ol&&M.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){Ol&&M.warn("Error when enriching network breadcrumb")}}(c,e,t))):(ms(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:s,url:i}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:i,data:{method:s,statusCode:o?o.status:void 0}}}(t);Zl(e,n)}}(e)),hs(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[ps];if(!t||!n||!o)return null;const{method:s,url:i,status_code:a}=o;return void 0===i?null:{type:"resource.xhr",name:i,start:t/1e3,end:n/1e3,data:{method:s,statusCode:a}}}(t);Zl(e,n)}}(e)))}catch(e){}}let fu=null;function mu(e){return!(!e||!e.on)}function gu(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function _u(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Ol&&M.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return e.type===al}(t))return;const{source:n}=t.data;if(n===_c.Mutation&&e.registerMutation(t.timestamp),n===_c.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===_c.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=il.mirror.getNode(r);o instanceof HTMLElement&&n===yc.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!zl(e,n,o))return!0;if(!o)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&zl(e,function(e){const t=e.getOptions();return{type:gc.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Il(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Bl(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}class yu extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class vu extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function bu(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=Rt(),p=Mt(),h=d&&d.getTransport(),f=d&&d.getDsn();if(!(d&&h&&f&&s.sampled))return;const m={type:oa,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const s=await dt(e.getOptions(),r,o,t,e,Qe());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),void Il("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const _=function(e,t,n,r){return gn(kn(e,Cn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,i,f,d.getOptions().tunnel);let y;try{y=await h.send(_)}catch(e){const t=new Error(sa);try{t.cause=e}catch(e){}throw t}if(!y)return y;if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new yu(y.statusCode);const v=zr({},y);if(Wr(v,"replay"))throw new vu(v);return y}(e),!0}catch(n){if(n instanceof yu||n instanceof vu)throw n;if(vt("Replays",{_retryCount:t.count}),Ol&&r._experiments&&r._experiments.captureExceptions&&ft(n),t.count>=3){const e=new Error(`${sa} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await bu(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Su="__THROTTLED";class Eu{constructor({options:e,recordingOptions:t}){Eu.prototype.__init.call(this),Eu.prototype.__init2.call(this),Eu.prototype.__init3.call(this),Eu.prototype.__init4.call(this),Eu.prototype.__init5.call(this),Eu.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=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,s;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function l(){return o&&clearTimeout(o),o=setTimeout(a,t),i&&void 0===s&&(s=setTimeout(a,i)),r}return l.cancel=c,l.flush=function(){return void 0!==o||void 0!==s?a():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Su}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}(((e,t)=>function(e,t,n){return ql(e,t)?Gl(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new gl(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",xl(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}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");xl("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Wl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");xl("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Wl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=il({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:_u(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Il("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(Dl())try{na.sessionStorage.removeItem(ra)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Il("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Il("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Il("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&jl(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${na.location.pathname}${na.location.hash}${na.location.search}`,t=`${na.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Su){const e=vl({category:"replay.throttled"});this.addUpdate((()=>!zl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Mt().getTransaction(),t=(e&&Pe(e).data||{})[Rn];if(e&&t&&["route","custom"].includes(t))return Pe(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['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});']);return URL.createObjectURL(e)}());if(!t)return;Il("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Pl(n)}catch(e){Il("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Il("[Replay] Using simple buffer"),new Rl}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Ol&&M.error("[Replay]",e),Ol&&this._options._experiments&&this._options._experiments.captureExceptions&&ft(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Wl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Vl(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{na.document.addEventListener("visibilitychange",this._handleVisibilityChange),na.addEventListener("blur",this._handleWindowBlur),na.addEventListener("focus",this._handleWindowFocus),na.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=Mt(),n=Rt();t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return fu!==t&&t?(fu=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return vl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>aa?(n=!0,`${e.slice(0,aa)}…`):e;if("object"==typeof e)try{const t=ct(e,7);return JSON.stringify(t).length>aa?(n=!0,`${JSON.stringify(t,null,2).slice(0,aa)}…`):t}catch(e){}return e}));return vl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):vl(t)):null}(t);n&&ul(e,n)})(e)),cs((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?hl(e.event):fl(e.event),n=k(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return vl({category:`ui.${e.name}`,...Tl(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var s,i,a;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=e.clickDetector,i=n,a=hl(t.event),s.handleClick(i,a)),ul(e,n)})(e)),Zo(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Ql(e,[n]),!1))))}}(e)),hu(e);const r=function(e,t=!1){const n=t?Jl(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Xl(t)&&!Yl(t)&&!Kl(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Kl(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:gc.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Ol&&M.log("[Replay] Ignoring error from rrweb internals",t),null;const o=function(e,t){return"buffer"===e.recordingMode&&t.message!==sa&&!(!t.exception||t.type)&&Fl(e.getOptions().errorSampleRate)}(e,t);return(o||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}(e,!mu(n));n&&n.addEventProcessor?n.addEventProcessor(r):Xn(r),mu(n)&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&Xl(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;"string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&ul(e,vl({category:"replay.hydrate-error"}))}(e,t)}}(e)),n.on("afterSendEvent",Jl(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Gi(e,n))})),r.push(zi((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,s=wl(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:o,size:o,nodeId:r?il.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{na.document.removeEventListener("visibilitychange",this._handleVisibilityChange),na.removeEventListener("blur",this._handleWindowBlur),na.removeEventListener("focus",this._handleWindowFocus),na.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===na.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=vl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=vl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!s)return null;const a=t||r||o,c=1===s.length;if(!a&&c)return null;const l=k(i,{maxStringLength:200})||"";return vl({category:"ui.keyDown",message:l,data:{...Tl(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(t);n&&ul(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(Hl(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Il("[Replay] Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:gc.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(kl).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Ql(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await bu({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Rt();t&&t.recordDroppedEvent("send_error","replay")}}else Ol&&M.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Ol&&M.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||o)return Il(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&Il("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Ol&&M.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Bl(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=vl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Tu(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(`.${n}`),L((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),o.join(",")}const Cu='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ku=["content-length","content-type","accept"];let wu=!1;const Ou=e=>new Iu(e);class Iu{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:T=["title","placeholder"],unmask:C=[],block:k=[],unblock:w=[],ignore:O=[],maskFn:I,beforeAddRecordingEvent:x,beforeErrorSampling:N,blockClass:A,blockSelector:R,maskInputOptions:L,maskTextClass:M,maskTextSelector:P,ignoreClass:D}={}){this.name=Iu.id;const F=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:s,blockSelector:i,maskTextClass:a,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:Tu(e,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:Tu(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Tu(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,i),unblockSelector:Tu(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Tu(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return s instanceof RegExp&&(u.blockClass=s),a instanceof RegExp&&(u.maskTextClass=a),u}({mask:E,unmask:C,block:k,unblock:w,ignore:O,blockClass:A,blockSelector:R,maskTextClass:M,maskTextSelector:P,ignoreClass:D});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...L||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:T,maskAllText:u,privacyOptions:F,key:e,value:t,el:n}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,sessionSampleRate:c,errorSampleRate:l,useCompression:s,workerUrl:i,blockAllMedia:p,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:xu(b),networkResponseHeaders:xu(S),beforeAddRecordingEvent:x,beforeErrorSampling:N,_experiments:a},"number"==typeof c&&(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: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(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: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Cu}`:Cu),this._isInitialized&&ui())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return wu}set _isInitialized(e){wu=e}setupOnce(){ui()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Rt(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...G(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&L((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(L((()=>{console.warn("SDK client is not available.")})),r)}(this._initialOptions);this._replay=new Eu({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Rt().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function xu(e){return[...ku,...e.map((e=>e.toLowerCase()))]}function Nu(){const e=Rt();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}var Au;function Ru(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ru(e.parentNode,t,n,r+1):-1}function Lu(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}Iu.__initStatic(),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Au||(Au={}));const Mu="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.";let Pu={map:{},getId:()=>(console.error(Mu),-1),getNode:()=>(console.error(Mu),null),removeNodeFromMap(){console.error(Mu)},has:()=>(console.error(Mu),!1),reset(){console.error(Mu)}};function Du(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Hu((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Du(e,t,s||{},!0)}function Fu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function Uu(e,t,n,r,o){if(!e)return!1;const s=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!s)return!1;const i=Lu(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=Ru(s,i);let c=-1;return!(a<0)&&(r&&(c=Ru(s,Lu(null,r))),a>-1&&c<0||a("map"===t&&console.error(Mu),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const Bu={};function $u(e){const t=Bu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Bu[e]=r.bind(window)}function ju(...e){return $u("requestAnimationFrame")(...e)}function Hu(...e){return $u("setTimeout")(...e)}var Vu=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Vu||{});let Wu;const zu=e=>Wu?(...t)=>{try{return e(...t)}catch(e){if(Wu&&!0===Wu(e))return()=>{};throw e}}:e;for(var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xu=0;Xu<64;Xu++)qu[Gu.charCodeAt(Xu)]=Xu;const Yu=new Map,Ku=(e,t,n)=>{if(!e||!Zu(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=Yu.get(e);return n||(n=new Map,Yu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function Ju(e,t,n){if(e instanceof Array)return e.map((e=>Ju(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t>2],o+=Gu[(3&n[t])<<4|n[t+1]>>4],o+=Gu[(15&n[t+1])<<2|n[t+2]>>6],o+=Gu[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ju(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[Ju(e.data,t,n),e.width,e.height]}:Zu(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Ku(e,t,n)}:e}const Qu=(e,t,n)=>e.map((e=>Ju(e,t,n))),Zu=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function ed(e,t,n,r,o){const s=[];try{const i=Fu(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...i){if(!Uu(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}}));s.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}function td(e,t,n,r,o,s,i,a){const c=[],l=Object.getOwnPropertyNames(e);for(const i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const l=Fu(e,i,(function(e){return function(...c){const l=e.apply(this,c);if(Ku(l,a,this),"tagName"in this.canvas&&!Uu(this.canvas,r,o,s,!0)){const e=Qu(c,a,this),r={type:t,property:i,args:e};n(this.canvas,r)}return l}}));c.push(l)}catch(r){const o=Du(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});c.push(o)}return c}class nd{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,l&&(Wu=l),e.enableManualSnapshot||zu((()=>{a&&"all"===t&&this.initCanvasMutationObserver(n,r,o,s),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,r,o,s,i,{dataURLOptions:c})}))()}initCanvasFPSObserver(e,t,n,r,o,s,i){const a=ed(t,n,r,o,!0),c=this.takeSnapshot(!1,e,t,n,r,o,s,i.dataURLOptions);this.resetObservers=()=>{a(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=ed(e,t,n,r,!1),s=function(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=Fu(t.CanvasRenderingContext2D.prototype,a,(function(s){return function(...i){return Uu(this.canvas,n,r,o,!0)||Hu((()=>{const n=Qu(i,t,this);e(this.canvas,{type:Vu["2D"],property:a,args:n})}),0),s.apply(this,i)}}));s.push(i)}catch(n){const r=Du(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:Vu["2D"],property:a,args:[t],setter:!0})}});s.push(r)}return()=>{s.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,o,s){const i=[];return i.push(...td(t.WebGLRenderingContext.prototype,Vu.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...td(t.WebGL2RenderingContext.prototype,Vu.WebGL2,e,n,r,o,0,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.resetObservers=()=>{o(),s(),i()}}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,r,o,s,i,a,c){const l=new Map,u=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());u.onmessage=e=>{const t=e.data,{id:n}=t;if(l.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:s,height:i}=t;this.mutationCb({id:n,type:Vu["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,s,i]}]})};const d=1e3/t;let p,h=0;const f=t=>{h&&t-h{if(e)return[e];const t=[];return n.document.querySelectorAll("canvas").forEach((e=>{Uu(e,r,o,s,!0)||t.push(e)})),t})(c).forEach((t=>{const n=this.mirror.getId(t);if(!l.get(n)&&t.width&&t.height){if(l.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===ii([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{u.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:i},[e])})).catch((e=>{zu((()=>{throw e}))()}))}}))),p=ju(f)};return p=ju(f),p}startPendingCanvasMutationFlusher(){ju((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,ju(e)};ju(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),ju((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}const rd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},od="ReplayCanvas",sd=1280,id=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,sd):sd,n?Math.min(n,sd):sd]};let o;const s=new Promise((e=>o=e));return{name:od,setupOnce(){},getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new nd({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return o(r),r},...rd[e||"medium"]||rd.medium}},async snapshot(e){(await s).snapshot(e)}}},ad=Wt(od,id),cd=b,ld="#ffffff",ud="inherit",dd="rgba(108, 95, 199, 1)",pd={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:ld,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:dd,submitBorder:dd,submitOutlineFocus:"#29232f",submitForeground:ld,submitForegroundHover:ld,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:ud,inputForeground:ud,inputBorder:"var(--border)",inputOutlineFocus:dd,formBorderRadius:"20px",formContentBorderRadius:"6px"},hd=pd,fd={...pd,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"},md="widget",gd="api";function _d({name:e,email:t,message:n,source:r=gd,url:o=O()},s={}){if(!n)throw new Error("Unable to submit feedback with empty message");return async function({feedback:{message:e,email:t,name:n,source:r,url:o}},{includeReplay:s=!0}={}){const i=Rt(),a=i&&i.getTransport(),c=i&&i.getDsn();if(!i||!a||!c)return;const l={contexts:{feedback:{contact_email:t,name:n,message:e,url:o,source:r}},type:"feedback"};return kt((async e=>{e.clearBreadcrumbs(),[gd,md].includes(String(r))&&e.setLevel("info");const t=await async function({client:e,scope:t,event:n}){const r={};e.emit&&e.emit("preprocessEvent",n,r);const o=await dt(e.getOptions(),n,r,t,e,Qe());return null===o?(e.recordDroppedEvent("event_processor","feedback",n),null):(o.platform=o.platform||"javascript",o)}({scope:e,client:i,event:l});if(!t)return;i.emit&&i.emit("beforeSendFeedback",t,{includeReplay:Boolean(s)});const n=$n(t,c,i.getOptions()._metadata,i.getOptions().tunnel);let o;try{o=await a.send(n)}catch(e){const t=new Error("Unable to send Feedback");try{t.cause=e}catch(e){}throw t}if(o){if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new Error("Unable to send Feedback");return o}}))}({feedback:{name:e,email:t,message:n,url:o,source:r}},s)}const yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function vd(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function bd(e){return`\n --background: ${e.background};\n --background-hover: ${e.backgroundHover};\n --foreground: ${e.foreground};\n --error: ${e.error};\n --success: ${e.success};\n --border: ${e.border};\n --border-radius: ${e.borderRadius};\n --box-shadow: ${e.boxShadow};\n\n --submit-background: ${e.submitBackground};\n --submit-background-hover: ${e.submitBackgroundHover};\n --submit-border: ${e.submitBorder};\n --submit-outline-focus: ${e.submitOutlineFocus};\n --submit-foreground: ${e.submitForeground};\n --submit-foreground-hover: ${e.submitForegroundHover};\n\n --cancel-background: ${e.cancelBackground};\n --cancel-background-hover: ${e.cancelBackgroundHover};\n --cancel-border: ${e.cancelBorder};\n --cancel-outline-focus: ${e.cancelOutlineFocus};\n --cancel-foreground: ${e.cancelForeground};\n --cancel-foreground-hover: ${e.cancelForegroundHover};\n\n --input-background: ${e.inputBackground};\n --input-foreground: ${e.inputForeground};\n --input-border: ${e.inputBorder};\n --input-outline-focus: ${e.inputOutlineFocus};\n\n --form-border-radius: ${e.formBorderRadius};\n --form-content-border-radius: ${e.formContentBorderRadius};\n `}function Sd(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const Ed=20,Td="http://www.w3.org/2000/svg";function Cd(e,t,...n){const r=cd.document.createElement(e);t&&Object.entries(t).forEach((([e,t])=>{"className"===e&&"string"==typeof t?r.setAttribute("class",t):"boolean"==typeof t&&t?r.setAttribute(e,""):"string"==typeof t?r.setAttribute(e,t):e.startsWith("on")&&"function"==typeof t&&r.addEventListener(e.substring(2).toLowerCase(),t)}));for(const e of n)kd(r,e);return r}function kd(e,t){const n=cd.document;if(null!=t)if(Array.isArray(t))for(const n of t)kd(e,n);else!1===t||("string"==typeof t?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function wd(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}const Od="http://www.w3.org/2000/svg";function Id({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:o,isEmailRequired:s,colorScheme:i,defaultName:a,defaultEmail:c,onClosed:l,onCancel:u,onSubmit:d,...p}){let h=null;function f(){h&&(h.open=!1)}const{el:m,showError:g,hideError:_}=function({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:o,messagePlaceholder:s,isRequiredLabel:i,cancelButtonLabel:a,submitButtonLabel:c,showName:l,showEmail:u,isNameRequired:d,isEmailRequired:p,defaultName:h,defaultEmail:f,onCancel:m,onSubmit:g}){const{el:_}=function({label:e}){return{el:Cd("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}({label:c}),y=Cd("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"}),v=Cd("input",{id:"name",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"name",required:d,className:"form__input",placeholder:t,value:h}),b=Cd("input",{id:"email",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"email",required:p,className:"form__input",placeholder:r,value:f}),S=Cd("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:s}),E=Cd("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:e=>{m&&m(e)}},a),T=Cd("form",{className:"form",onSubmit:function(e){if(e.preventDefault(),e.target instanceof HTMLFormElement)try{if(g){const t=new FormData(e.target),n={name:wd(t,"name"),email:wd(t,"email"),message:wd(t,"message")};g(n)}}catch(e){}}},[y,l&&Cd("label",{htmlFor:"name",className:"form__label"},[Cd("span",{className:"form__label__text"},e,d&&Cd("span",{className:"form__label__text--required"},` ${i}`)),v]),!l&&v,u&&Cd("label",{htmlFor:"email",className:"form__label"},[Cd("span",{className:"form__label__text"},n,p&&Cd("span",{className:"form__label__text--required"},` ${i}`)),b]),!u&&b,Cd("label",{htmlFor:"message",className:"form__label"},[Cd("span",{className:"form__label__text"},o,Cd("span",{className:"form__label__text--required"},` ${i}`)),S]),Cd("div",{className:"btn-group"},[_,E])]);return{get el(){return T},showError:function(e){y.textContent=e,y.classList.remove("form__error-container--hidden"),y.setAttribute("aria-hidden","false")},hideError:function(){y.textContent="",y.classList.add("form__error-container--hidden"),y.setAttribute("aria-hidden","true")}}}({showEmail:r,showName:n,isEmailRequired:s,isNameRequired:o,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:u,...p});return h=Cd("dialog",{className:"dialog",open:!0,onClick:function(){f(),l&&l()}},Cd("div",{className:"dialog__content",onClick:e=>{e.stopPropagation()}},Cd("h2",{className:"dialog__header"},e,t&&Cd("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},function({colorScheme:e}){const t=e=>cd.document.createElementNS(Od,e),n=Sd(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=Sd(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const o=t("defs"),s=t("style");return s.textContent=`\n path {\n fill: ${"dark"===e?"#fff":"#362d59"};\n }`,"system"===e&&(s.textContent+="\n @media (prefers-color-scheme: dark) {\n path: {\n fill: '#fff';\n }\n }\n "),o.append(s),n.append(o),{get el(){return n}}}({colorScheme:i}).el)),m)),{get el(){return h},showError:g,hideError:_,open:function(){h&&(h.open=!0)},close:f,checkIsOpen:function(){return h&&!0===h.open||!1}}}const xd=16,Nd=17,Ad="http://www.w3.org/2000/svg";function Rd({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let o,s,i=!1;async function a(t){if(!s)return;const r=[];n.isNameRequired&&!t.name&&r.push(n.nameLabel),n.isEmailRequired&&!t.email&&r.push(n.emailLabel),t.message||r.push(n.messageLabel),r.length>0?s.showError(`Please enter in the following required fields: ${r.join(", ")}`):await async function(e,t,n){if(e){e.hideError();try{return await _d({...t,source:md},n)}catch(t){yd&&M.error(t),e&&e.showError("There was a problem submitting feedback, please wait and try again.")}}}(s,t)?(h(),function(){if(e)try{const t=function({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}const r=Cd("div",{className:"success-message",onClick:n},function(){const e=e=>cd.document.createElementNS(Ad,e),t=Sd(e("svg"),{class:"success-icon",width:`${xd}`,height:`${Nd}`,viewBox:`0 0 ${xd} ${Nd}`,fill:"none"}),n=Sd(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Sd(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Sd(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const s=e("defs"),i=Sd(e("clipPath"),{id:"clip0_57_156"}),a=Sd(e("rect"),{width:`${xd}`,height:`${xd}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),{get el(){return t}}}().el,e);return{el:r,remove:n}}({message:n.successMessageText,onRemove:()=>{r&&clearTimeout(r),l()}});if(!t.el)throw new Error("Unable to show success message");e.appendChild(t.el);const r=setTimeout((()=>{t&&t.remove()}),5e3)}catch(e){M.error(e)}}(),n.onSubmitSuccess&&n.onSubmitSuccess()):n.onSubmitError&&n.onSubmitError()}function c(){const e=Rt(),t=e&&e.getIntegrationByName&&e.getIntegrationByName("Replay");t&&t.flush().catch((e=>{yd&&M.error(e)}))}function l(){o&&o.show()}function u(){o&&o.hide()}function d(){try{if(s)return s.open(),i=!0,n.onFormOpen&&n.onFormOpen(),void c();const t=n.useSentryUser,r=Mt(),o=r&&r.getUser();if(s=Id({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:t&&o&&o[t.name]||"",defaultEmail:t&&o&&o[t.email]||"",onClosed:()=>{l(),i=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{p(),l()},onSubmit:a}),!s.el)throw new Error("Unable to open Feedback dialog");e.appendChild(s.el),u(),n.onFormOpen&&n.onFormOpen(),c()}catch(e){M.error(e)}}function p(){s&&(s.close(),i=!1,n.onFormClose&&n.onFormClose())}function h(){if(s){p();const e=s.el;e&&e.remove(),s=void 0}}function f(){i||d(),u()}return r?r.addEventListener("click",f):t&&(o=function({buttonLabel:e,onClick:t}){const n=Cd("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},function(){const e=e=>cd.document.createElementNS(Td,e),t=Sd(e("svg"),{class:"feedback-icon",width:`${Ed}`,height:`${Ed}`,viewBox:`0 0 ${Ed} ${Ed}`,fill:"none"}),n=Sd(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Sd(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),s=Sd(e("clipPath"),{id:"clip0_57_80"}),i=Sd(e("rect"),{width:`${Ed}`,height:`${Ed}`,fill:"white"});return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),{get el(){return t}}}().el,e?Cd("span",{className:"widget__actor__text"},e):null);return n.addEventListener("click",(function(e){t&&t(e)})),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}({buttonLabel:n.buttonLabel,onClick:f}),o.el&&e.appendChild(o.el)),{get actor(){return o},get dialog(){return s},showActor:l,hideActor:u,removeActor:function(){o&&o.el&&o.el.remove()},openDialog:d,closeDialog:p,removeDialog:h}}const Ld=cd.document,Md=e=>new Pd(e);class Pd{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:t="sentry-feedback",isEmailRequired:n=!1,isNameRequired:r=!1,showBranding:o=!0,showEmail:s=!0,showName:i=!0,useSentryUser:a={email:"email",name:"username"},themeDark:c,themeLight:l,colorScheme:u="system",buttonLabel:d="Report a Bug",cancelButtonLabel:p="Cancel",submitButtonLabel:h="Send Bug Report",formTitle:f="Report a Bug",emailPlaceholder:m="your.email@example.org",emailLabel:g="Email",messagePlaceholder:_="What's the bug? What did you expect?",messageLabel:y="Description",namePlaceholder:v="Your Name",nameLabel:b="Name",isRequiredLabel:S="(required)",successMessageText:E="Thank you for your report!",onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}={}){this.name=Pd.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:o,id:t,isEmailRequired:n,isNameRequired:r,showEmail:s,showName:i,useSentryUser:a,colorScheme:u,themeDark:{...fd,...c},themeLight:{...hd,...l},buttonLabel:d,cancelButtonLabel:p,submitButtonLabel:h,formTitle:f,emailLabel:g,emailPlaceholder:m,messageLabel:y,messagePlaceholder:_,nameLabel:b,namePlaceholder:v,isRequiredLabel:S,successMessageText:E,onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}}setupOnce(){if(ui())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){yd&&M.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{const n=vd(this.options,t||{});return this._ensureShadowHost(n,(({shadow:t})=>{const r="string"==typeof e?Ld.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)return yd&&M.error("[Feedback] Unable to attach to target element"),null;const o=Rd({shadow:t,options:n,attachTo:r});return this._widgets.add(o),this._widget||(this._widget=o),o}))}catch(e){return yd&&M.error(e),null}}createWidget(e){try{return this._createWidget(vd(this.options,e||{}))}catch(e){return yd&&M.error(e),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(e){yd&&M.error(e)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Ld.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,(({shadow:t})=>{const n=Rd({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.widget__actor {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n line-height: 16px;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n border-radius: var(--border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 16px;\n text-decoration: none;\n z-index: 9000;\n\n color: var(--foreground);\n background-color: var(--background);\n border: var(--border);\n box-shadow: var(--box-shadow);\n opacity: 1;\n transition: opacity 0.1s ease-in-out;\n}\n\n.widget__actor:hover {\n background-color: var(--background-hover);\n}\n\n.widget__actor svg {\n width: 16px;\n height: 16px;\n}\n\n.widget__actor--hidden {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n\n.widget__actor__text {\n}\n\n@media (max-width: 600px) {\n .widget__actor__text {\n display: none;\n }\n}\n\n.feedback-icon path {\n fill: var(--foreground);\n}\n",t}(Ld)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n}))}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){const{id:t,colorScheme:r,themeLight:o,themeDark:s}=e,{shadow:i,host:a}=function({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{const o=cd.document,s=o.createElement("div");s.id=e;const i=s.attachShadow({mode:"open"});return i.appendChild(function(e,t,n){const r=e.createElement("style");return r.textContent=`\n:host {\n --bottom: 1rem;\n --right: 1rem;\n --top: auto;\n --left: auto;\n --z-index: 100000;\n --font-family: ${n.light.fontFamily};\n --font-size: ${n.light.fontSize};\n\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${bd("dark"===t?n.dark:n.light)}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${bd(n.dark)}\n }\n}`:""}\n}`,r}(o,t,{dark:n,light:r})),i.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.dialog {\n line-height: 25px;\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n position: fixed;\n inset: 0;\n z-index: 10000;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n\n border: var(--border);\n border-radius: var(--form-border-radius);\n background-color: var(--background);\n color: var(--foreground);\n\n width: 320px;\n max-width: 100%;\n max-height: calc(100% - 2rem);\n display: flex;\n flex-direction: column;\n box-shadow: var(--box-shadow);\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 20px;\n font-weight: 600;\n padding: 24px 24px 0 24px;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.brand-link {\n display: inline-flex;\n}\n\n.error {\n color: var(--error);\n margin-bottom: 16px;\n}\n\n.form {\n display: grid;\n overflow: auto;\n flex-direction: column;\n gap: 16px;\n padding: 0 24px 24px;\n}\n\n.form__error-container {\n color: var(--error);\n}\n\n.form__error-container--hidden {\n display: none;\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: grid;\n gap: 4px;\n align-items: center;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n line-height: inherit;\n background-color: var(--input-background);\n box-sizing: border-box;\n border: var(--input-border);\n border-radius: var(--form-content-border-radius);\n color: var(--input-foreground);\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 500;\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n color: var(--input-foreground);\n opacity: 0.65;\n}\n\n.form__input:focus-visible {\n outline: 1px auto var(--input-outline-focus);\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.btn-group {\n display: grid;\n gap: 8px;\n margin-top: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--cancel-border);\n border-radius: var(--form-content-border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 6px 16px;\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n background-color: var(--submit-background);\n border-color: var(--submit-border);\n color: var(--submit-foreground);\n}\n.btn--primary:hover {\n background-color: var(--submit-background-hover);\n color: var(--submit-foreground-hover);\n}\n.btn--primary:focus-visible {\n outline: 1px auto var(--submit-outline-focus);\n}\n\n.btn--default {\n background-color: var(--cancel-background);\n color: var(--cancel-foreground);\n font-weight: 500;\n}\n.btn--default:hover {\n background-color: var(--cancel-background-hover);\n color: var(--cancel-foreground-hover);\n}\n.btn--default:focus-visible {\n outline: 1px auto var(--cancel-outline-focus);\n}\n\n.success-message {\n background-color: var(--background);\n border: var(--border);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n font-weight: 600;\n color: var(--success);\n padding: 12px 24px;\n line-height: 25px;\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success-icon path {\n fill: var(--success);\n}\n",t}(o)),{shadow:i,host:s}}catch(e){throw M.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}({id:t,colorScheme:r,themeLight:o,themeDark:s});this._shadow=i,this._host=a,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const r=t({shadow:this._shadow,host:this._host});return n&&Ld.body.appendChild(this._host),r}}Pd.__initStatic();const Dd="CaptureConsole",Fd=(e={})=>{const t=e.levels||A;return{name:Dd,setupOnce(){},setup(e){"console"in b&&ts((({args:n,level:r})=>{Rt()===e&&t.includes(r)&&function(e,t){const n={level:bs(t),extra:{arguments:e}};kt((r=>{if(r.addEventProcessor((e=>(e.logger="console",ee(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${F(e.slice(1)," ")||"console.assert"}`;return r.setExtra("arguments",e.slice(1)),void mt(t,n)}const o=e.find((e=>e instanceof Error));"error"===t&&o?ft(o,n):mt(F(e," "),n)}))}(n,r)}))}}};Wt(Dd,Fd);const Ud=b,Bd="ContextLines",$d=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:Bd,setupOnce(){},processEvent:e=>function(e,t){const n=Ud.document,r=Ud.location&&Ud.location.href.split(/[\?#]/,1)[0];if(!n||!r)return e;const o=e.exception&&e.exception.values;if(!o||!o.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const i=["","",...s.split("\n"),""];return o.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(function(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>D(e,0))),t.context_line=D(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>D(e,0)))}(t,e,r),e):e}(e,i,r,t))))})),e}(e,t)}};Wt(Bd,$d);const jd="Debug",Hd=(e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:jd,setupOnce(){},setup(e){e.on&&e.on("beforeSendEvent",((e,n)=>{t.debugger,L((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}},Vd=(Wt(jd,Hd),"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__),Wd="Dedupe",zd=()=>{let e;return{name:Wd,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!qd(e,t)&&!!Gd(e,t))))}(e,t)||!!function(e,t){const n=Xd(t),r=Xd(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!qd(e,t)&&!!Gd(e,t)))}(e,t))}(t,e))return Vd&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Gd(e,t){let n=Yd(e),r=Yd(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:Kd,setupOnce(){},processEvent:(e,r)=>function(e,t={},n,r){if(!t.originalException||!i(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,s=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const o=e[t];r[t]=i(o)?o.toString():o}if(t&&void 0!==e.cause&&(r.cause=i(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];r[e]=i(n)?n.toString():n}}return r}catch(e){Vd&&M.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r);if(s){const t={...e.contexts},r=ct(s,n);return h(r)&&($(r,"__sentry_skip_normalization__",!0),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n)}};Wt(Kd,Jd);const Qd="HttpClient",Zd=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Qd,setupOnce(){},setup(e){!function(e,t){Io()&&ms((n=>{if(Rt()!==e)return;const{response:r,args:o}=n,[s,i]=o;r&&function(e,t,n,r){if(np(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let o,s,i,a;op()&&([{headers:o,cookies:i},{headers:s,cookies:a}]=[{cookieHeader:"Cookie",obj:e},{cookieHeader:"Set-Cookie",obj:n}].map((({cookieHeader:e,obj:t})=>{const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=tp(t))}catch(t){Vd&&M.log(`Could not extract cookies from header ${e}`)}return{headers:n,cookies:r}}))),gt(rp({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:s,requestCookies:i,responseCookies:a}))}}(t,s,r,i)}))}(e,t),function(e,t){"XMLHttpRequest"in b&&hs((n=>{if(Rt()!==e)return;const r=n.xhr,o=r[ps];if(!o)return;const{method:s,request_headers:i}=o;try{!function(e,t,n,r){if(np(e,t.status,t.responseURL)){let e,o,s;if(op()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=tp(e))}catch(e){Vd&&M.log("Could not extract cookies from response headers")}try{s=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{}):{}}(t)}catch(e){Vd&&M.log("Could not extract headers from response")}e=r}gt(rp({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:o}))}}(t,r,s,i)}catch(e){Vd&&M.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}};function ep(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function tp(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{})}function np(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!ai(n,Rt());var r,o}function rp(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:ep(e.responseHeaders)}}};return ee(n,{type:"http.client",handled:!1}),n}function op(){const e=Rt();return!!e&&Boolean(e.getOptions().sendDefaultPii)}Wt(Qd,Zd);const sp=b,ip="ReportingObserver",ap=new WeakMap,cp=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(ap.has(Rt()))for(const t of e)kt((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}mt(`${n}: ${r}`)}))}return{name:ip,setupOnce(){"ReportingObserver"in ko&&new sp.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){ap.set(e,!0)}}};Wt(ip,cp);const lp=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function up(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function dp(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const pp="RewriteFrames",hp=(e={})=>{const t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;const r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),o=/^\//.test(e.filename);if(r||o){const o=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,s=t?function(e,t){e=up(e).slice(1),t=up(t).slice(1);const n=dp(e.split("/")),r=dp(t.split("/")),o=Math.min(n.length,r.length);let s=o;for(let e=0;e1024?`${e.slice(-1024)}`:e,n=lp.exec(t);return n?n.slice(1):[]}(e)[2];return n}(o);e.filename=`${n}${s}`}return e});return{name:pp,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>r(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}},fp=(Wt(pp,hp),"SessionTiming"),mp=()=>{const e=Date.now();return{name:fp,setupOnce(){},processEvent(t){const n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}};function gp(){hi.document?hi.document.addEventListener("visibilitychange",(()=>{const e=ir();if(hi.document.hidden&&e){const t="cancelled",{op:n,status:r}=Pe(e);di&&M.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):di&&M.warn("[Tracing] Could not set up background tab detection due to lack of global document")}function _p(e){return[{type:"span"},e]}function yp(e){return"number"==typeof e&&isFinite(e)}function vp(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}Wt(fp,mp);const bp=2147483647;function Sp(e){return e/1e3}function Ep(){return hi&&hi.addEventListener&&hi.performance}let Tp,Cp,kp=0,wp={};function Op(){const e=Ep();if(e&&ae){e.mark&&hi.performance.mark("sentry-tracing-init");const t=Zi("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Sp(ae),r=Sp(t.startTime);di&&M.log("[Measurements] Adding FID"),wp.fid={value:e.value,unit:"millisecond"},wp["mark.fid"]={value:n+r,unit:"second"}}),Yi,ji),n=function(e,t=!1){return Zi("cls",e,Xi,$i,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(di&&M.log("[Measurements] Adding CLS"),wp.cls={value:e.value,unit:""},Cp=t)}),!0),r=zi((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(di&&M.log("[Measurements] Adding LCP"),wp.lcp={value:e.value,unit:"millisecond"},Tp=t)}),!0),o=Zi("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(di&&M.log("[Measurements] Adding TTFB"),wp.ttfb={value:e.value,unit:"millisecond"})}),Ji,Vi);return()=>{t(),n(),r(),o()}}return()=>{}}function Ip(){Gi("longtask",(({entries:e})=>{for(const t of e){const e=ir();if(!e)return;const n=Sp(ae+t.startTime),r=Sp(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}))}function xp(){Gi("event",(({entries:e})=>{for(const t of e){const e=ir();if(!e)return;if("click"===t.name){const n=Sp(ae+t.startTime),r=Sp(t.duration),o={description:k(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},s=x(t.target);s&&(o.attributes={"ui.component_name":s}),e.startChild(o)}}}))}function Np(e,t){if(Ep()&&ae){const n=function(e,t){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((e=>e.duration===n.value&&void 0!==Ap[e.name])),o=Rt();if(!r||!o)return;const s=Ap[r.name],i=o.getOptions(),a=Sp(ae+r.startTime),c=Sp(n.value),l=void 0!==r.interactionId?e[r.interactionId]:void 0;if(void 0===l)return;const{routeName:u,parentContext:d,activeTransaction:p,user:h,replayId:f}=l,m=void 0!==h?h.email||h.id||h.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,_=new Nr({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${s}`,name:k(r.target),attributes:{release:i.release,environment:i.environment,transaction:u,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==f?{replay_id:f}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=function(e,t,n){if(!dr(t))return!1;let r;return r=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:hi.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,Fr(r)?!0===r?n:!1===r?0:r*n:(di&&M.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(d,i,t);if(y&&Math.random(){di&&M.error("Error while sending interaction:",e)}))}},Zi("inp",n,Qi,Wi);var n}(e,t);return()=>{n()}}return()=>{}}const Ap={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Rp(e){const t=Ep();if(!t||!hi.performance.getEntries||!ae)return;di&&M.log("[Tracing] Adding & adjusting spans using Performance API");const n=Sp(ae),r=t.getEntries(),{op:o,start_timestamp:s}=Pe(e);if(r.slice(kp).forEach((t=>{const r=Sp(t.startTime),o=Sp(t.duration);if(!("navigation"===e.op&&s&&n+r{Lp(e,t,r,n)})),Lp(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Lp(e,t,"fetch",n,"cache","domainLookupStart"),Lp(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Sp(t.requestStart),endTimestamp:n+Sp(t.responseEnd)}),vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Sp(t.responseStart),endTimestamp:n+Sp(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const s=o+n,i=s+r;vp(e,{description:t.name,endTimestamp:i,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,r,o,n);const s=Si(),i=t.startTime{if(!wp[e]||!s||n>=s)return;const t=wp[e].value,r=n+Sp(t),o=Math.abs(1e3*(r-s)),i=o-t;di&&M.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${i})`),wp[e].value=o}));const t=wp["mark.fid"];t&&wp.fid&&(vp(e,{description:"first input delay",endTimestamp:t.value+Sp(wp.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete wp["mark.fid"]),"fcp"in wp||delete wp.cls,Object.keys(wp).forEach((e=>{so(e,wp[e].value,wp[e].unit)})),function(e){Tp&&(di&&M.log("[Measurements] Adding LCP Data"),Tp.element&&e.setTag("lcp.element",k(Tp.element)),Tp.id&&e.setTag("lcp.id",Tp.id),Tp.url&&e.setTag("lcp.url",Tp.url.trim().slice(0,200)),e.setTag("lcp.size",Tp.size)),Cp&&Cp.sources&&(di&&M.log("[Measurements] Adding CLS Data"),Cp.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,k(t.node)))))}(e)}Tp=void 0,Cp=void 0,wp={}}function Lp(e,t,n,r,o,s){const i=s?t[s]:t[`${n}End`],a=t[`${n}Start`];a&&i&&vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+Sp(a),endTimestamp:r+Sp(i)})}function Mp(e,t,n,r){const o=t[n];null!=o&&o!0,c=e=>function(e,t){return U(e,t||Pp)}(e,r||o),l={};t&&ms((e=>{const t=function(e,t,n,r,o="auto.http.browser"){if(!dr()||!e.fetchData)return;const s=t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){Ir(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const i=Mt(),a=Rt(),{method:c,url:l}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(l),d=u?Ss(u).host:void 0,p=s?mr({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[Pn]:o},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&a){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const s=o||n.getSpan(),i=Qe(),{traceId:a,spanId:c,sampled:l,dsc:u}={...i.getPropagationContext(),...n.getPropagationContext()},d=s?Re(s):xe(a,c,l),p=Ce(u||(s?Ue(s):Fe(a,t,n))),h=r.headers||("undefined"!=typeof Request&&_(e,Request)?e.headers:void 0);if(h){if("undefined"!=typeof Headers&&_(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(ve,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",d]];return p&&e.push([ve,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,a,i,n,p)}return p}(e,a,c,l);if(t){const n=$p(e.fetchData.url),r=n?Ss(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&Up(t)})),n&&hs((e=>{const t=function(e,t,n,r){const o=e.xhr,s=o&&o[ps];if(!dr()||!o||o.__sentry_own_request__||!s)return;const i=t(s.url);if(e.endTimestamp&&i){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==s.status_code&&(Ir(t,s.status_code),t.end(),delete r[e]))}const a=Mt(),c=Qe(),l=$p(s.url),u=l?Ss(l).host:void 0,d=i?mr({name:`${s.method} ${s.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,"http.url":l,url:s.url,"server.address":u,[Pn]:"auto.http.browser"},op:"http.client"}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);const p=Rt();if(o.setRequestHeader&&n(s.url)&&p){const{traceId:e,spanId:t,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ve,n)}catch(e){}}(o,d?Re(d):xe(e,t,n),Ce(r||(d?Ue(d):Fe(e,p,a))))}return d}(e,a,c,l);i&&t&&Up(t)}))}function Up(e){const{url:t}=Pe(e).data||{};if(!t||"string"!=typeof t)return;const n=Gi("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ae?[...r,["http.request.redirect_start",Bp(e.redirectStart)],["http.request.fetch_start",Bp(e.fetchStart)],["http.request.domain_lookup_start",Bp(e.domainLookupStart)],["http.request.domain_lookup_end",Bp(e.domainLookupEnd)],["http.request.connect_start",Bp(e.connectStart)],["http.request.secure_connection_start",Bp(e.secureConnectionStart)],["http.request.connection_end",Bp(e.connectEnd)],["http.request.request_start",Bp(e.requestStart)],["http.request.response_start",Bp(e.responseStart)],["http.request.response_end",Bp(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function Bp(e=0){return((ae||performance.timeOrigin)+e)/1e3}function $p(e){try{return new URL(e,hi.location.origin).href}catch(e){return}}const jp={...Rr,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!hi||!hi.location)return void(di&&M.warn("Could not initialize routing instrumentation due to invalid location"));let r,o=hi.location.href;t&&(r=e({name:hi.location.pathname,startTimestamp:ae?ae/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Zo((({to:t,from:n})=>{void 0===n&&o&&-1!==o.indexOf(t)?o=void 0:n!==t&&(o=void 0,r&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=e({name:hi.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Dp};class Hp{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,jr(),di&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...jp,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Op(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Np(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Ip(),this.options._experiments.enableInteractions&&xp(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:s,startTransactionOnPageLoad:i,markBackgroundTransactions:a,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,f=h||this.options.tracePropagationTargets;di&&this._hasSetTracePropagationTargets&&h&&M.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),i,s),a&&gp(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Fp({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(di&&M.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:o,heartbeatInterval:s}=this.options,i="pageload"===e.op;let a;if(i){const t=i?Vp("sentry-trace"):"",n=i?Vp("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:s,sampled:c}=Ie(t,n);a={traceId:r,parentSpanId:s,parentSampled:c,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else a={trimEnd:!0,...e};const c="function"==typeof n?n(a):a,l=void 0===c?{...a,sampled:!1}:c;l.metadata=l.name!==a.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,!1===l.sampled&&di&&M.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),di&&M.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:u}=hi,d=$r(t,l,r,o,!0,{location:u},s,i);return i&&hi.document&&(hi.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(hi.document.readyState)&&d.sendAutoFinishSignal()})),["interactive","complete"].includes(hi.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Rp(e)})),d}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,o="ui.action.click",s=ir();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const i=this._getCurrentHub(),{location:a}=hi,c={name:this._latestRoute.name,op:o,trimEnd:!0,data:{[Rn]:this._latestRoute.context?Wp(this._latestRoute.context):"url"}};e=$r(i,c,t,n,!0,{location:a},r)};["click"].forEach((e=>{hi.document&&addEventListener(e,t,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const e=({entries:e})=>{const t=Rt(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,o=ir(),s=Mt(),i=void 0!==s?s.getUser():void 0;e.forEach((e=>{if(function(e){return"duration"in e}(e)){const t=e.interactionId;if(void 0===t)return;const n=this._interactionIdToRouteNameMapping[t],s=e.duration,a=e.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),l=c.length>0?c.reduce(((e,t)=>this._interactionIdToRouteNameMapping[e].durationthis._interactionIdToRouteNameMapping[e])).some((e=>e.duration===s&&e.startTime===a)))return;if(!t)return;if(n)n.duration=Math.max(n.duration,s);else if(c.length<10||void 0===l||s>this._interactionIdToRouteNameMapping[l].duration){const e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(l&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[l],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:s,parentContext:n,user:i,activeTransaction:o,replayId:r,startTime:a})}}}))};Gi("event",e),Gi("first-input",e)}}function Vp(e){const t=I(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Wp(e){const t=e.attributes&&e.attributes[Rn],n=e.data&&e.data[Rn],r=e.metadata&&e.metadata.source;return t||n||r}const zp={...Rr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Dp},Gp=(e={})=>{const t=!(!di||!e.tracePropagationTargets&&!e.tracingOrigins);jr(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...zp,...e},r=Op(),o={};n.enableInp&&Np(o,n.interactionsSampleRate),n.enableLongTask&&Ip(),n._experiments.enableInteractions&&xp();const s={name:void 0,context:void 0};function i(e){const t=Je(),{beforeStartSpan:o,idleTimeout:i,finalTimeout:a,heartbeatInterval:c}=n,l="pageload"===e.op;let u;if(l){const t=l?Yp("sentry-trace"):"",n=l?Yp("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:s,sampled:i}=Ie(t,n);u={traceId:r,parentSpanId:s,parentSampled:i,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else u={trimEnd:!0,...e};const d=o?o(u):u;d.metadata=d.name!==u.name?{...d.metadata,source:"custom"}:d.metadata,s.name=d.name,s.context=d,!1===d.sampled&&di&&M.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),di&&M.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=hi,h=$r(t,d,i,a,!0,{location:p},c,l);return l&&hi.document&&(hi.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(hi.document.readyState)&&h.sendAutoFinishSignal()})),["interactive","complete"].includes(hi.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback((e=>{r(),Rp(e)})),h}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=n,h=r&&r.tracePropagationTargets,f=h||n.tracePropagationTargets;let m;di&&t&&h&&M.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=hi.location&&hi.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${Pe(m).op}`),m.end()),m=i({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${Pe(m).op}`),m.end()),m=i({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&hi.location){const t={name:hi.location.pathname,startTimestamp:ae?ae/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Rn]:"url"}};qp(e,t)}n.instrumentNavigation&&e.emit&&hi.location&&Zo((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:hi.location.pathname,origin:"auto.navigation.browser",attributes:{[Rn]:"url"}};Xp(e,t)}})),a&&gp(),p.enableInteractions&&function(e,t){let n;const r=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:s}=e,i="ui.action.click",a=ir();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(di&&M.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(di&&M.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const{location:c}=hi,l={name:t.name,op:i,trimEnd:!0,data:{[Rn]:t.context?Jp(t.context):"url"}};n=$r(Je(),l,r,o,!0,{location:c},s)};["click"].forEach((e=>{hi.document&&addEventListener(e,r,{once:!1,capture:!0})}))}(n,s),n.enableInp&&function(e,t){const n=({entries:n})=>{const r=Rt(),o=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,s=void 0!==o?o.getReplayId():void 0,i=ir(),a=Mt(),c=void 0!==a?a.getUser():void 0;n.forEach((n=>{if(function(e){return"duration"in e}(n)){const r=n.interactionId;if(void 0===r)return;const o=e[r],a=n.duration,l=n.startTime,u=Object.keys(e),d=u.length>0?u.reduce(((t,n)=>e[t].duratione[t])).some((e=>e.duration===a&&e.startTime===l)))return;if(!r)return;if(o)o.duration=Math.max(o.duration,a);else if(u.lengthe[d].duration){const n=t.name,o=t.context;n&&o&&(d&&Object.keys(e).length>=Kp&&delete e[d],e[r]={routeName:n,duration:a,parentContext:o,user:c,activeTransaction:i,replayId:s,startTime:l})}}}))};Gi("event",n),Gi("first-input",n)}(o,s),Fp({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})},options:n}};function qp(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=gr();return"pageload"===(n&&Pe(n).op)?n:void 0}function Xp(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=gr();return"navigation"===(n&&Pe(n).op)?n:void 0}function Yp(e){const t=I(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const Kp=10;function Jp(e){const t=e.attributes&&e.attributes[Rn],n=e.data&&e.data[Rn],r=e.metadata&&e.metadata.source;return t||n||r}const Qp=100,Zp=5e3,eh=36e5;function th(e,t){Y&&M.info(`[Offline]: ${e}`,t)}function nh(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let o,s=Zp;function i(e){r&&(o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const e=await r.pop();e&&(th("Attempting to send previously queued event"),c(e).catch((e=>{th("Failed to retry sending",e)})))}),e),"number"!=typeof o&&o.unref&&o.unref())}function a(){o||(i(s),s=Math.min(2*s,eh))}async function c(e){try{const t=await n.send(e);let r=Qp;if(t)if(t.headers&&t.headers["retry-after"])r=Vr(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return i(r),s=Zp,t}catch(n){if(r&&await function(e,n,r){return o=["replay_event","replay_recording","client_report"],!yn(e,((e,t)=>o.includes(t)))&&(!t.shouldStore||t.shouldStore(e,n,r));var o}(e,n,s))return await r.insert(e),a(),th("Error sending. Event queued",n),{};throw n}}return t.flushAtStartup&&a(),{send:c,flush:e=>n.flush(e)}}}function rh(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function oh(e){return rh(e.getAllKeys())}function sh(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=rh(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async t=>{try{const r=await bn(t,e.textEncoder);await function(e,t,n){return e((e=>oh(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),rh(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},pop:async()=>{try{const t=await function(e){return e((e=>oh(e).then((t=>{if(0!==t.length)return rh(e.get(t[0])).then((n=>(e.delete(t[0]),rh(e.transaction).then((()=>n)))))}))))}(n());if(t)return function(e,t,n){let r="string"==typeof e?t.encode(e):e;function o(e){const t=r.subarray(0,e);return r=r.subarray(e+1),t}function s(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(o(e)))}const i=s(),a=[];for(;r.length;){const e=s(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?o(t):s()])}return[i,a]}(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch(e){}}}}function ih(e){return function(e){return t=>e({...t,createStore:sh})}(nh(e))}const ah=1e6,ch=String(0),lh="main";let uh="",dh="",ph="",hh=io.navigator&&io.navigator.userAgent||"",fh="";const mh=io.navigator&&io.navigator.language||io.navigator&&io.navigator.languages&&io.navigator.languages[0]||"",gh=io.navigator&&io.navigator.userAgentData;var _h;function yh(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&po&&M.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),s=function(e){return!("thread_metadata"in e)}(c=n)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[ch]:{name:lh}}};if(!e.samples.length)return r;const o=e.samples[0].timestamp,s="number"==typeof performance.timeOrigin?performance.timeOrigin:ae||0,i=s-(ae||s);for(let s=0;s{if(uh=e.platform||"",ph=e.architecture||"",fh=e.model||"",dh=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];hh=`${t.brand} ${t.version}`}})).catch((e=>{}));const bh=new WeakMap;function Sh(e){const t=b._sentryDebugIds;if(!t)return[];const n=Rt(),r=n&&n.getOptions(),o=r&&r.stackParser;if(!o)return[];let s;const i=bh.get(o);i?s=i:(s=new Map,bh.set(o,s));const a=Object.keys(t).reduce(((e,n)=>{let r;const i=s.get(n);i?r=i:(r=o(n),s.set(n,r));for(let o=r.length-1;o>=0;o--){const s=r[o],i=s&&s.filename;if(s&&i){e[i]=t[n];break}}return e}),{}),c=[];for(const t of e)t&&a[t]&&c.push({type:"sourcemap",code_file:t,debug_id:a[t]});return c}let Eh=!1;const Th=3e4;function Ch(e){if(Eh)return po&&M.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return po&&M.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=Rt(),n=t&&t.getOptions();if(!n)return po&&M.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(po&&M.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(po&&M.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?!!(!0===r||Math.random()(s&&(io.clearTimeout(s),s=void 0),po&&M.log(`[Profiling] stopped profiling of transaction: ${Pe(e).description}`),t?(function(e,t){if(wh.set(e,t),wh.size>30){const e=wh.keys().next().value;wh.delete(e)}}(r,t),null):(po&&M.log(`[Profiling] profiler returned null profile for: ${Pe(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)))).catch((e=>(po&&M.log("[Profiling] error while stopping profiler:",e),null))):null}let s=io.setTimeout((()=>{po&&M.log("[Profiling] max profile duration elapsed, stopping profiling for:",Pe(e).description),o()}),Th);const i=e.end.bind(e);return e.end=function(){return e?(o().then((()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),i()}),(()=>{i()})),e):i()},e}const Nh="BrowserProfiling",Ah=()=>({name:Nh,setupOnce(){},setup(e){const t=Mt().getTransaction();t&&vh(t)&&Ch(t)&&xh(t),"function"==typeof e.on?(e.on("startTransaction",(e=>{Ch(e)&&xh(e)})),e.on("beforeEnvelope",(e=>{if(!wh.size)return;const t=function(e){const t=[];return yn(e,((e,n)=>{if("transaction"===n)for(let n=1;n{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:()=>r,e:()=>o})},609:(e,t,n)=>{"use strict";n.d(t,{wD:()=>o});var r=n(958);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}e=n.hmd(e)},141:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BASE_TRANSITION:()=>c,BindingTypes:()=>Sr,CAMELIZE:()=>R,CAPITALIZE:()=>L,CREATE_BLOCK:()=>u,CREATE_COMMENT:()=>f,CREATE_ELEMENT_BLOCK:()=>d,CREATE_ELEMENT_VNODE:()=>h,CREATE_SLOTS:()=>C,CREATE_STATIC:()=>g,CREATE_TEXT:()=>m,CREATE_VNODE:()=>p,CompilerDeprecationTypes:()=>Ce,ConstantTypes:()=>X,DOMDirectiveTransforms:()=>qr,DOMErrorCodes:()=>Ur,DOMErrorMessages:()=>Br,DOMNodeTransforms:()=>Gr,ElementTypes:()=>q,ErrorCodes:()=>Le,FRAGMENT:()=>o,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>H,IS_REF:()=>$,KEEP_ALIVE:()=>a,MERGE_PROPS:()=>w,NORMALIZE_CLASS:()=>O,NORMALIZE_PROPS:()=>x,NORMALIZE_STYLE:()=>I,Namespaces:()=>z,NodeTypes:()=>G,OPEN_BLOCK:()=>l,POP_SCOPE_ID:()=>F,PUSH_SCOPE_ID:()=>D,RENDER_LIST:()=>E,RENDER_SLOT:()=>T,RESOLVE_COMPONENT:()=>_,RESOLVE_DIRECTIVE:()=>v,RESOLVE_DYNAMIC_COMPONENT:()=>y,RESOLVE_FILTER:()=>b,SET_BLOCK_TRACKING:()=>P,SUSPENSE:()=>i,TELEPORT:()=>s,TO_DISPLAY_STRING:()=>k,TO_HANDLERS:()=>A,TO_HANDLER_KEY:()=>M,TRANSITION:()=>Ar,TRANSITION_GROUP:()=>Rr,TS_NODE_TYPES:()=>ze,UNREF:()=>B,V_MODEL_CHECKBOX:()=>Cr,V_MODEL_DYNAMIC:()=>Or,V_MODEL_RADIO:()=>Tr,V_MODEL_SELECT:()=>wr,V_MODEL_TEXT:()=>kr,V_ON_WITH_KEYS:()=>xr,V_ON_WITH_MODIFIERS:()=>Ir,V_SHOW:()=>Nr,WITH_CTX:()=>U,WITH_DIRECTIVES:()=>S,WITH_MEMO:()=>j,advancePositionWithClone:()=>rt,advancePositionWithMutation:()=>ot,assert:()=>st,baseCompile:()=>br,baseParse:()=>nn,buildDirectiveArgs:()=>Zn,buildProps:()=>Kn,buildSlots:()=>Vn,checkCompatEnabled:()=>Ie,compile:()=>Xr,convertToBlock:()=>ge,createArrayExpression:()=>Q,createAssignmentExpression:()=>de,createBlockStatement:()=>ce,createCacheExpression:()=>ae,createCallExpression:()=>oe,createCompilerError:()=>Re,createCompoundExpression:()=>re,createConditionalExpression:()=>ie,createDOMCompilerError:()=>Fr,createForLoopParams:()=>Un,createFunctionExpression:()=>se,createIfStatement:()=>ue,createInterpolation:()=>ne,createObjectExpression:()=>Z,createObjectProperty:()=>ee,createReturnStatement:()=>he,createRoot:()=>K,createSequenceExpression:()=>pe,createSimpleExpression:()=>te,createStructuralDirectiveTransform:()=>gn,createTemplateLiteral:()=>le,createTransformContext:()=>hn,createVNodeCall:()=>J,errorMessages:()=>Me,extractIdentifiers:()=>je,findDir:()=>it,findProp:()=>at,forAliasRE:()=>St,generate:()=>vn,generateCodeFrame:()=>r.generateCodeFrame,getBaseTransformPreset:()=>vr,getConstantType:()=>an,getMemoedVNodeCall:()=>bt,getVNodeBlockHelper:()=>me,getVNodeHelper:()=>fe,hasDynamicKeyVBind:()=>lt,hasScopeRef:()=>vt,helperNameMap:()=>V,injectProp:()=>gt,isCoreComponent:()=>Xe,isFunctionType:()=>He,isInDestructureAssignment:()=>Fe,isInNewExpression:()=>Ue,isMemberExpression:()=>nt,isMemberExpressionBrowser:()=>et,isMemberExpressionNode:()=>tt,isReferencedIdentifier:()=>De,isSimpleIdentifier:()=>Ke,isSlotOutlet:()=>ht,isStaticArgOf:()=>ct,isStaticExp:()=>qe,isStaticProperty:()=>Ve,isStaticPropertyKey:()=>We,isTemplateNode:()=>pt,isText:()=>ut,isVSlot:()=>dt,locStub:()=>Y,noopDirectiveTransform:()=>Er,parse:()=>Yr,parserOptions:()=>Mr,processExpression:()=>In,processFor:()=>Dn,processIf:()=>An,processSlotOutlet:()=>nr,registerRuntimeHelpers:()=>W,resolveComponentType:()=>Yn,stringifyExpression:()=>xn,toValidAssetId:()=>yt,trackSlotScopes:()=>$n,trackVForSlotScopes:()=>jn,transform:()=>fn,transformBind:()=>sr,transformElement:()=>Xn,transformExpression:()=>On,transformModel:()=>ur,transformOn:()=>or,transformStyle:()=>Pr,traverseNode:()=>mn,unwrapTSNode:()=>Ge,walkBlockDeclarations:()=>$e,walkFunctionParams:()=>Be,walkIdentifiers:()=>Pe,warnDeprecation:()=>xe});var r=n(411);const o=Symbol(""),s=Symbol(""),i=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),d=Symbol(""),p=Symbol(""),h=Symbol(""),f=Symbol(""),m=Symbol(""),g=Symbol(""),_=Symbol(""),y=Symbol(""),v=Symbol(""),b=Symbol(""),S=Symbol(""),E=Symbol(""),T=Symbol(""),C=Symbol(""),k=Symbol(""),w=Symbol(""),O=Symbol(""),I=Symbol(""),x=Symbol(""),N=Symbol(""),A=Symbol(""),R=Symbol(""),L=Symbol(""),M=Symbol(""),P=Symbol(""),D=Symbol(""),F=Symbol(""),U=Symbol(""),B=Symbol(""),$=Symbol(""),j=Symbol(""),H=Symbol(""),V={[o]:"Fragment",[s]:"Teleport",[i]:"Suspense",[a]:"KeepAlive",[c]:"BaseTransition",[l]:"openBlock",[u]:"createBlock",[d]:"createElementBlock",[p]:"createVNode",[h]:"createElementVNode",[f]:"createCommentVNode",[m]:"createTextVNode",[g]:"createStaticVNode",[_]:"resolveComponent",[y]:"resolveDynamicComponent",[v]:"resolveDirective",[b]:"resolveFilter",[S]:"withDirectives",[E]:"renderList",[T]:"renderSlot",[C]:"createSlots",[k]:"toDisplayString",[w]:"mergeProps",[O]:"normalizeClass",[I]:"normalizeStyle",[x]:"normalizeProps",[N]:"guardReactiveProps",[A]:"toHandlers",[R]:"camelize",[L]:"capitalize",[M]:"toHandlerKey",[P]:"setBlockTracking",[D]:"pushScopeId",[F]:"popScopeId",[U]:"withCtx",[B]:"unref",[$]:"isRef",[j]:"withMemo",[H]:"isMemoSame"};function W(e){Object.getOwnPropertySymbols(e).forEach((t=>{V[t]=e[t]}))}const z={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},G={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},q={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},X={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Y={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function K(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Y}}function J(e,t,n,r,o,s,i,a=!1,c=!1,u=!1,d=Y){return e&&(a?(e.helper(l),e.helper(me(e.inSSR,u))):e.helper(fe(e.inSSR,u)),i&&e.helper(S)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:a,disableTracking:c,isComponent:u,loc:d}}function Q(e,t=Y){return{type:17,loc:t,elements:e}}function Z(e,t=Y){return{type:15,loc:t,properties:e}}function ee(e,t){return{type:16,loc:Y,key:(0,r.isString)(e)?te(e,!0):e,value:t}}function te(e,t=!1,n=Y,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ne(e,t){return{type:5,loc:t,content:(0,r.isString)(e)?te(e,!1,t):e}}function re(e,t=Y){return{type:8,loc:t,children:e}}function oe(e,t=[],n=Y){return{type:14,loc:n,callee:e,arguments:t}}function se(e,t=void 0,n=!1,r=!1,o=Y){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function ie(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Y}}function ae(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Y}}function ce(e){return{type:21,body:e,loc:Y}}function le(e){return{type:22,elements:e,loc:Y}}function ue(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Y}}function de(e,t){return{type:24,left:e,right:t,loc:Y}}function pe(e){return{type:25,expressions:e,loc:Y}}function he(e){return{type:26,returns:e,loc:Y}}function fe(e,t){return e||t?p:h}function me(e,t){return e||t?u:d}function ge(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(fe(r,e.isComponent)),t(l),t(me(r,e.isComponent)))}const _e=new Uint8Array([123,123]),ye=new Uint8Array([125,125]);function ve(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return 32===e||10===e||9===e||12===e||13===e}function Se(e){return 47===e||62===e||be(e)}function Ee(e){const t=new Uint8Array(e.length);for(let n=0;n`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with