/*! For license information please see fetchWarningMessage.js.LICENSE.txt */ (()=>{var e={966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(141),s=n(165),o=n(950);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 l(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 c(e){const t=[];let n,r,s,o,c,u,d,p=-1,h=0,f=0;const _=[];function m(){const t=e[p+1];if(5===h&&"'"===t||6===h&&'"'===t)return p++,s="\\"+t,_[0](),!0}for(_[0]=()=>{void 0===r?r=s:r+=s},_[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},_[2]=()=>{_[0](),f++},_[3]=()=>{if(f>0)f--,h=4,_[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;_[1]()}};null!==h;)if(p++,n=e[p],"\\"!==n||!m()){if(o=l(n),d=i[h],c=d[o]||d.l||8,8===c)return;if(h=c[0],void 0!==c[1]&&(u=_[c[1]],u&&(s=n,!1===u())))return;if(7===h)return t}}const u=new Map;function d(e,t){return s.isObject(e)?e[t]:null}const p=e=>e,h=e=>"",f="text",_=e=>0===e.length?"":e.join(""),m=s.toDisplayString;function g(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=s.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s.isNumber(e.named.count)||s.isNumber(e.named.n))?s.isNumber(e.named.count)?e.named.count:s.isNumber(e.named.n)?e.named.n:t:t}(e),r=s.isObject(e.pluralRules)&&s.isString(t)&&s.isFunction(e.pluralRules[t])?e.pluralRules[t]:g,o=s.isObject(e.pluralRules)&&s.isString(t)&&s.isFunction(e.pluralRules[t])?g:void 0,i=e.list||[],a=e.named||{};function l(t){return(s.isFunction(e.messages)?e.messages(t):!!s.isObject(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):h)}s.isNumber(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);const c=s.isPlainObject(e.processor)&&s.isFunction(e.processor.normalize)?e.processor.normalize:_,u=s.isPlainObject(e.processor)&&s.isFunction(e.processor.interpolate)?e.processor.interpolate:m,d={list:e=>i[e],named:e=>a[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let i="text",a="";1===n.length?s.isObject(r)?(a=r.modifier||a,i=r.type||i):s.isString(r)&&(a=r||a):2===n.length&&(s.isString(r)&&(a=r||a),s.isString(o)&&(i=o||i));let c=l(t)(d);return"vnode"===i&&s.isArray(c)&&a&&(c=c[0]),a?(u=a,e.modifiers?e.modifiers[u]:p)(c,i):c;var u},message:l,type:s.isPlainObject(e.processor)&&s.isString(e.processor.type)?e.processor.type:f,interpolate:u,normalize:c};return d}let v=null;const E=b(o.IntlifyDevToolsHooks.FunctionTranslate);function b(e){return t=>v&&v.emit(e,t)}const S={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={[S.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[S.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[S.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[S.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[S.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[S.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function w(e,t,n){return[...new Set([n,...s.isArray(t)?t:s.isObject(t)?Object.keys(t):s.isString(t)?[t]:[n]])]}function k(e,t,n){let r=!0;for(let o=0;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let A,R,L,M=null,D=null,P=0;function F(e,t,n,r,o){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,o);return s.isString(r)?r:t}return t}const U=e=>e;let B=Object.create(null),j=r.CompileErrorCodes.__EXTEND_POINT__;const V=()=>++j,$={INVALID_ARGUMENT:j,INVALID_DATE_ARGUMENT:V(),INVALID_ISO_DATE_ARGUMENT:V(),__EXTEND_POINT__:V()};function G(e){return r.createCompileError(e,null,void 0)}const H=()=>"",z=e=>s.isFunction(e);function Y(e,t,n,r,o,i){const{messages:a,onWarn:l,messageResolver:c,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 c=a(r,function(e,t,n,r,o,i){return{warnHtmlMessage:o,onError:e=>{throw i&&i(e),e},onCacheKey:e=>s.generateFormatCacheKey(t,n,e)}}(0,n,o,0,l,i));return c.locale=n,c.key=t,c.source=r,c}function X(...e){const[t,n,r]=e,o={};if(!s.isString(t)&&!s.isNumber(t)&&!z(t))throw G($.INVALID_ARGUMENT);const i=s.isNumber(t)?String(t):(z(t),t);return s.isNumber(n)?o.plural=n:s.isString(n)?o.default=n:s.isPlainObject(n)&&!s.isEmptyObject(n)?o.named=n:s.isArray(n)&&(o.list=n),s.isNumber(r)?o.plural=r:s.isString(r)?o.default=r:s.isPlainObject(r)&&s.assign(o,r),[i,o]}const q=["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,o]=e,i={};let a,l={};if(s.isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw G($.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 G($.INVALID_ISO_DATE_ARGUMENT)}}else if(s.isDate(t)){if(isNaN(t.getTime()))throw G($.INVALID_DATE_ARGUMENT);a=t}else{if(!s.isNumber(t))throw G($.INVALID_ARGUMENT);a=t}return s.isString(n)?i.key=n:s.isPlainObject(n)&&Object.keys(n).forEach((e=>{q.includes(e)?l[e]=n[e]:i[e]=n[e]})),s.isString(r)?i.locale=r:s.isPlainObject(r)&&(l=r),s.isPlainObject(o)&&(l=o),[i.key||"",a,i,l]}const J=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Z(...e){const[t,n,r,o]=e,i={};let a={};if(!s.isNumber(t))throw G($.INVALID_ARGUMENT);const l=t;return s.isString(n)?i.key=n:s.isPlainObject(n)&&Object.keys(n).forEach((e=>{J.includes(e)?a[e]=n[e]:i[e]=n[e]})),s.isString(r)?i.locale=r:s.isPlainObject(r)&&(a=r),s.isPlainObject(o)&&(a=o),[i.key||"",l,i,a]}t.CompileErrorCodes=r.CompileErrorCodes,t.createCompileError=r.createCompileError,t.CoreErrorCodes=$,t.CoreWarnCodes=S,t.DATETIME_FORMAT_OPTIONS_KEYS=q,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=C,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),s=B[n];if(s)return s;let o=!1;const i=t.onError||r.defaultOnError;t.onError=e=>{o=!0,i(e)};const{code:a}=r.baseCompile(e,t),l=new Function(`return ${a}`)();return o?l:B[n]=l}},t.createCoreContext=function(e={}){const t=s.isString(e.version)?e.version:C,n=s.isString(e.locale)?e.locale:x,r=s.isArray(e.fallbackLocale)||s.isPlainObject(e.fallbackLocale)||s.isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=s.isPlainObject(e.messages)?e.messages:{[n]:{}},i=s.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=s.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},l=s.assign({},e.modifiers||{},{upper:(e,t)=>"text"===t&&s.isString(e)?e.toUpperCase():"vnode"===t&&s.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&s.isString(e)?e.toLowerCase():"vnode"===t&&s.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&s.isString(e)?I(e):"vnode"===t&&s.isObject(e)&&"__v_isVNode"in e?I(e.children):e}),c=e.pluralRules||{},u=s.isFunction(e.missing)?e.missing:null,p=!s.isBoolean(e.missingWarn)&&!s.isRegExp(e.missingWarn)||e.missingWarn,h=!s.isBoolean(e.fallbackWarn)&&!s.isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,_=!!e.unresolving,m=s.isFunction(e.postTranslation)?e.postTranslation:null,g=s.isPlainObject(e.processor)?e.processor:null,y=!s.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter,E=s.isFunction(e.messageCompiler)?e.messageCompiler:A,b=s.isFunction(e.messageResolver)?e.messageResolver:R||d,S=s.isFunction(e.localeFallbacker)?e.localeFallbacker:L||w,T=s.isObject(e.fallbackContext)?e.fallbackContext:void 0,k=s.isFunction(e.onWarn)?e.onWarn:s.warn,O=e,N=s.isObject(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,M=s.isObject(O.__numberFormatters)?O.__numberFormatters:new Map,D=s.isObject(O.__meta)?O.__meta:{};P++;const F={version:t,cid:P,locale:n,fallbackLocale:r,messages:o,modifiers:l,pluralRules:c,missing:u,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:_,postTranslation:m,processor:g,warnHtmlMessage:y,escapeParameter:v,messageCompiler:E,messageResolver:b,localeFallbacker:S,fallbackContext:T,onWarn:k,__meta:D};return F.datetimeFormats=i,F.numberFormats=a,F.__datetimeFormatters=N,F.__numberFormatters=M,F},t.createCoreError=G,t.createMessageContext=y,t.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:l}=e,[c,u,d,p]=K(...t);s.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,s.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=s.isString(d.locale)?d.locale:e.locale,_=a(e,o,f);if(!s.isString(c)||""===c)return new Intl.DateTimeFormat(f,p).format(u);let m,g={},y=null;for(let t=0;t<_.length&&(m=_[t],g=n[m]||{},y=g[c],!s.isPlainObject(y));t++)F(e,c,m,0,"datetime format");if(!s.isPlainObject(y)||!s.isString(m))return r?-1:c;let v=`${m}__${c}`;s.isEmptyObject(p)||(v=`${v}__${JSON.stringify(p)}`);let E=l.get(v);return E||(E=new Intl.DateTimeFormat(m,s.assign({},y,p)),l.set(v,E)),h?E.formatToParts(u):E.format(u)},t.fallbackWithLocaleChain=function(e,t,n){const r=s.isString(n)?n:x,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;s.isArray(e);)e=k(i,e,t);const a=s.isArray(t)||!s.isPlainObject(t)?t:t.default?t.default:null;e=s.isString(a)?[a]:a,s.isArray(e)&&k(i,e,!1),o.__localeChainCache.set(r,i)}return i},t.fallbackWithSimple=w,t.getAdditionalMeta=()=>M,t.getDevToolsHook=function(){return v},t.getFallbackContext=()=>D,t.getWarnMessage=function(e,...t){return s.format(T[e],...t)},t.handleMissing=F,t.initI18nDevTools=function(e,t,n){v&&v.emit(o.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:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:l}=e,[c,u,d,p]=Z(...t);s.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,s.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=s.isString(d.locale)?d.locale:e.locale,_=a(e,o,f);if(!s.isString(c)||""===c)return new Intl.NumberFormat(f,p).format(u);let m,g={},y=null;for(let t=0;t<_.length&&(m=_[t],g=n[m]||{},y=g[c],!s.isPlainObject(y));t++)F(e,c,m,0,"number format");if(!s.isPlainObject(y)||!s.isString(m))return r?-1:c;let v=`${m}__${c}`;s.isEmptyObject(p)||(v=`${v}__${JSON.stringify(p)}`);let E=l.get(v);return E||(E=new Intl.NumberFormat(m,s.assign({},y,p)),l.set(v,E)),h?E.formatToParts(u):E.format(u)},t.parse=c,t.parseDateTimeArgs=K,t.parseNumberArgs=Z,t.parseTranslateArgs=X,t.registerLocaleFallbacker=function(e){L=e},t.registerMessageCompiler=function(e){A=e},t.registerMessageResolver=function(e){R=e},t.resolveValue=function(e,t){if(!s.isObject(e))return null;let n=u.get(t);if(n||(n=c(t),n&&u.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i{M=e},t.setDevToolsHook=function(e){v=e},t.setFallbackContext=e=>{D=e},t.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:l}=e,[c,u]=X(...t),d=(s.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,s.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,s.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter),p=!!u.resolvedMessage,h=s.isString(u.default)||s.isBoolean(u.default)?s.isBoolean(u.default)?i?c:()=>c:u.default:n?i?c:()=>c:"",f=n||""!==h,_=s.isString(u.locale)?u.locale:e.locale;d&&function(e){s.isArray(e.list)?e.list=e.list.map((e=>s.isString(e)?s.escapeHtml(e):e)):s.isObject(e.named)&&Object.keys(e.named).forEach((t=>{s.isString(e.named[t])&&(e.named[t]=s.escapeHtml(e.named[t]))}))}(u);let[m,g,v]=p?[c,_,l[_]||{}]:Y(e,c,_,a),E=m,b=c;if(p||s.isString(E)||z(E)||f&&(E=h,b=E),!(p||(s.isString(E)||z(E))&&s.isString(g)))return o?-1:c;let S=!1;const T=z(E)?E:W(e,c,g,E,b,(()=>{S=!0}));if(S)return E;const w=function(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,p={locale:t,modifiers:o,pluralRules:i,messages:r=>{let o=a(n,r);if(null==o&&d){const[,,e]=Y(d,r,t,l);o=a(e,r)}if(s.isString(o)){let n=!1;const s=W(e,r,t,o,r,(()=>{n=!0}));return n?H:s}return z(o)?o:H}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),s.isNumber(r.plural)&&(p.pluralIndex=r.plural),p}(e,g,v,u),k=function(e,t,n){return t(n)}(0,T,y(w));return r?r(k,c):k},t.translateDevTools=E,t.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}},338:(e,t,n)=>{"use strict";e.exports=n(966)},296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"}},950:(e,t,n)=>{"use strict";e.exports=n(296)},997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),s=n(605);const o={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={[o.EXPECTED_TOKEN]:"Expected token: '{0}'",[o.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[o.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[o.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[o.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[o.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[o.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[o.EMPTY_PLACEHOLDER]:"Empty placeholder",[o.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[o.INVALID_LINKED_FORMAT]:"Invalid linked format",[o.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[o.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[o.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[o.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function a(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}const l={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function c(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),_=String.fromCharCode(8233);function m(e){const t=e;let n=0,r=1,s=1,o=0;const i=e=>t[e]===p&&t[e+1]===h,a=e=>t[e]===_,l=e=>t[e]===f,c=e=>i(e)||a(e)||l(e)?h:t[e];function u(){return o=0,(i(e=n)||(e=>t[e]===h)(e)||a(e)||l(e))&&(r++,s=0),i(n)&&n++,n++,s++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>s,peekOffset:()=>o,charAt:c,currentChar:()=>c(n),currentPeek:()=>c(n+o),next:u,peek:function(){return i(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,s=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)u();o=0}}}const g=void 0,y="'",v="tokenizer";function E(e,t={}){const n=!1!==t.location,r=m(e),s=()=>r.index(),i=()=>c(r.line(),r.column(),r.index()),l=i(),p=s(),f={currentType:14,offset:p,startLoc:l,endLoc:l,lastType:14,lastOffset:p,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},_=()=>f,{onError:E}=t;function b(e,t,n,...r){const s=_();if(t.column+=n,t.offset+=n,E){const n=a(e,u(s.startLoc,t),{domain:v,args:r});E(n)}}function S(e,t,r){e.endLoc=i(),e.currentType=t;const s={type:t};return n&&(s.loc=u(e.startLoc,e.endLoc)),null!=r&&(s.value=r),s}const T=e=>S(e,14);function w(e,t){return e.currentChar()===t?(e.next(),t):(b(o.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 O(e){const t=k(e);return e.skipToPeek(),t}function N(e){if(e===g)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function C(e){k(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function x(e,t=!0){const n=(t=!1,r="",s=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!s&&(r===d||r===h)):o===d?(e.peek(),n(!0,d,s)):o!==h||(e.peek(),n(!0,h,s)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function I(e,t){const n=e.currentChar();return n===g?g:t(n)?(e.next(),n):null}function A(e){return I(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 I(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function L(e){return I(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 D(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(C(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function P(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 b(o.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function F(e,t,n){w(e,t);let r="";for(let s=0;s=1&&b(o.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=S(t,2,"{"),O(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&b(o.EMPTY_PLACEHOLDER,i(),0),e.next(),n=S(t,3,"}"),t.braceNest--,t.braceNest>0&&O(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&b(o.UNTERMINATED_CLOSING_BRACE,i(),0),n=j(e,t)||T(t),t.braceNest=0,n;default:let r=!0,s=!0,a=!0;if(C(e))return t.braceNest>0&&b(o.UNTERMINATED_CLOSING_BRACE,i(),0),n=S(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 b(o.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,V(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=N(e.currentPeek());return e.resetPeek(),r}(e,t))return n=S(t,5,function(e){O(e);let t="",n="";for(;t=A(e);)n+=t;return e.currentChar()===g&&b(o.UNTERMINATED_CLOSING_BRACE,i(),0),n}(e)),O(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=function(e){if(e===g)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=S(t,6,function(e){O(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${M(e)}`):t+=M(e),e.currentChar()===g&&b(o.UNTERMINATED_CLOSING_BRACE,i(),0),t}(e)),O(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=S(t,7,function(e){O(e),w(e,"'");let t="",n="";const r=e=>e!==y&&e!==h;for(;t=I(e,r);)n+="\\"===t?P(e):t;const s=e.currentChar();return s===h||s===g?(b(o.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),s===h&&(e.next(),w(e,"'")),n):(w(e,"'"),n)}(e)),O(e),n;if(!r&&!s&&!a)return n=S(t,13,function(e){O(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==d&&e!==h;for(;t=I(e,r);)n+=t;return n}(e)),b(o.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),O(e),n}return n}function j(e,t){const{currentType:n}=t;let r=null;const s=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||s!==h&&s!==d||b(o.INVALID_LINKED_FORMAT,i(),0),s){case"@":return e.next(),r=S(t,8,"@"),t.inLinked=!0,r;case".":return O(e),e.next(),S(t,9,".");case":":return O(e),e.next(),S(t,10,":");default:return C(e)?(r=S(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)?(O(e),j(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;k(e);const r=N(e.currentPeek());return e.resetPeek(),r}(e,t)?(O(e),S(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?N(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===d||!t)&&(t===h?(e.peek(),r()):N(t))},s=r();return e.resetPeek(),s}(e,t)?(O(e),"{"===s?B(e,t)||r:S(t,11,function(e){const t=(n=!1,r)=>{const s=e.currentChar();return"{"!==s&&"%"!==s&&"@"!==s&&"|"!==s&&s?s===d?r:s===h?(r+=s,e.next(),t(n,r)):(r+=s,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&b(o.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,V(e,t))}}function V(e,t){let n={type:14};if(t.braceNest>0)return B(e,t)||T(t);if(t.inLinked)return j(e,t)||T(t);switch(e.currentChar()){case"{":return B(e,t)||T(t);case"}":return b(o.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),S(t,3,"}");case"@":return j(e,t)||T(t);default:if(C(e))return n=S(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:s}=function(e){const t=k(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return s?S(t,0,D(e)):S(t,4,function(e){O(e);const t=e.currentChar();return"%"!==t&&b(o.EXPECTED_TOKEN,i(),0,t),e.next(),"%"}(e));if(x(e))return S(t,0,D(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=f;return f.lastType=e,f.lastOffset=t,f.lastStartLoc=n,f.lastEndLoc=o,f.offset=s(),f.startLoc=i(),r.currentChar()===g?S(f,14):V(r,f)},currentOffset:s,currentPosition:i,context:_}}const b="parser",S=/(?:\\\\|\\'|\\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 w(e={}){const t=!1!==e.location,{onError:n}=e;function s(e,t,r,s,...o){const i=e.currentPosition();if(i.offset+=s,i.column+=s,n){const e=a(t,u(r,i),{domain:b,args:o});n(e)}}function i(e,n,r){const s={type:e,start:n,end:n};return t&&(s.loc={start:r,end:r}),s}function l(e,n,r,s){e.end=n,s&&(e.type=s),t&&e.loc&&(e.loc.end=r)}function c(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,l(r,e.currentOffset(),e.currentPosition()),r}function d(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,o=i(5,r,s);return o.index=parseInt(t,10),e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}function p(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,o=i(4,r,s);return o.key=t,e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}function h(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,o=i(9,r,s);return o.value=t.replace(S,T),e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}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,c=i(8,r,a);return 12!==t.type?(s(e,o.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value="",l(c,r,a),{nextConsumeToken:t,node:c}):(null==t.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,k(t)),c.value=t.value||"",l(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&s(e,o.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,l(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=p(e,r.value||"");break;case 6:null==r.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=d(e,r.value||"");break;case 7:null==r.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=h(e,r.value||"");break;default:s(e,o.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),c=i(7,a.offset,a.startLoc);return c.value="",l(c,a.offset,a.startLoc),n.key=c,l(n,a.offset,a.startLoc),{nextConsumeToken:r,node:n}}return l(n,e.currentOffset(),e.currentPosition()),{node:n}}function _(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&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(c(e,i.value||""));break;case 6:null==i.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(d(e,i.value||""));break;case 5:null==i.value&&s(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(p(e,i.value||""));break;case 7:null==i.value&&s(e,o.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 l(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const a=E(n,r.assign({},e)),c=a.context(),u=i(0,c.offset,c.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=function(e){const t=e.context(),{offset:n,startLoc:r}=t,a=_(e);return 14===t.currentType?a:function(e,t,n,r){const a=e.context();let c=0===r.items.length;const u=i(1,t,n);u.cases=[],u.cases.push(r);do{const t=_(e);c||(c=0===t.items.length),u.cases.push(t)}while(14!==a.currentType);return c&&s(e,o.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),l(u,e.currentOffset(),e.currentPosition()),u}(e,n,r,a)}(a),14!==c.currentType&&s(a,o.UNEXPECTED_LEXICAL_ANALYSIS,c.lastStartLoc,0,n[c.offset]||""),l(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 O(e,t){for(let n=0;na,push:c,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 s=t.cases.length;for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&N(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(s,n),((e,t={})=>{const n=r.isString(t.mode)?t.mode:"normal",s=r.isString(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=C(e,{mode:n,filename:s,sourceMap:o,breakLineCode:i,needIndent:a});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(a),l.length>0&&(c.push(`const { ${l.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),x(c,e),c.deindent(a),c.push("}");const{code:u,map:d}=c.context();return{ast:e,code:u,map:d?d.toJSON():void 0}})(s,n)},t.createCompileError=a,t.createLocation=u,t.createParser=w,t.createPosition=c,t.defaultOnError=function(e){throw e},t.errorMessages=i},141:(e,t,n)=>{"use strict";e.exports=n(997)},297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"!=typeof window,s=/\{([0-9a-zA-Z]+)\}/g,o="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 l;const c=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),_=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(s,((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 s=0;const o=[];for(let e=0;e=t){for(let i=e-2;i<=e+2||n>s;i++){if(i<0||i>=r.length)continue;const a=i+1;o.push(`${a}${" ".repeat(3-String(a).length)}| ${r[i]}`);const l=r[i].length;if(i===e){const e=t-(s-l)+1,r=Math.max(1,n>s?l-e:n-t);o.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(i>e){if(n>s){const e=Math.max(Math.min(n-s,l),1);o.push(" | "+"^".repeat(e))}s+=l+1}}break}return o.join("\n")},t.generateFormatCacheKey=(e,t,n)=>i({l:e,k:t,s:n}),t.getGlobalThis=()=>l||(l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),t.hasOwn=function(e,t){return c.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=>_(e)&&0===Object.keys(e).length,t.isFunction=d,t.isNumber=e=>"number"==typeof e&&isFinite(e),t.isObject=p,t.isPlainObject=_,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=>o?Symbol(e):e,t.mark=void 0,t.measure=void 0,t.objectToString=h,t.toDisplayString=e=>null==e?"":u(e)||_(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))}},165:(e,t,n)=>{"use strict";e.exports=n(297)},503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breadcrumbs:()=>Wt,BrowserClient:()=>Zt,Dedupe:()=>Pn,FunctionToString:()=>D,GlobalHandlers:()=>bn,HttpContext:()=>Dn,Hub:()=>le,InboundFilters:()=>X,Integrations:()=>To,LinkedErrors:()=>Ln,Replay:()=>po,SDK_VERSION:()=>_e,Scope:()=>re,TryCatch:()=>Cn,WINDOW:()=>nt,addBreadcrumb:()=>Ee,addGlobalEventProcessor:()=>oe,captureEvent:()=>ye,captureException:()=>me,captureMessage:()=>ge,chromeStackLineParser:()=>ln,close:()=>Xn,configureScope:()=>ve,createTransport:()=>et,defaultIntegrations:()=>Vn,defaultStackLineParsers:()=>yn,defaultStackParser:()=>vn,eventFromException:()=>Tt,eventFromMessage:()=>wt,flush:()=>Wn,forceLoad:()=>zn,geckoStackLineParser:()=>dn,getCurrentHub:()=>de,getHubFromCarrier:()=>he,init:()=>$n,lastEventId:()=>Hn,makeBrowserOfflineTransport:()=>bo,makeFetchTransport:()=>en,makeMain:()=>ue,makeXHRTransport:()=>nn,onLoad:()=>Yn,opera10StackLineParser:()=>_n,opera11StackLineParser:()=>gn,setContext:()=>be,setExtra:()=>Te,setExtras:()=>Se,setTag:()=>ke,setTags:()=>we,setUser:()=>Oe,showReportDialog:()=>Gn,startTransaction:()=>Ce,winjsStackLineParser:()=>hn,withScope:()=>Ne,wrap:()=>qn});var r={};n.r(r),n.d(r,{FunctionToString:()=>D,InboundFilters:()=>X});var s={};n.r(s),n.d(s,{Breadcrumbs:()=>Wt,Dedupe:()=>Pn,GlobalHandlers:()=>bn,HttpContext:()=>Dn,LinkedErrors:()=>Ln,TryCatch:()=>Cn});const o=Object.prototype.toString;function i(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function a(e,t){return o.call(e)===`[object ${t}]`}function l(e){return a(e,"ErrorEvent")}function c(e){return a(e,"DOMError")}function u(e){return a(e,"String")}function d(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function h(e){return"undefined"!=typeof Event&&_(e,Event)}function f(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function _(e,t){try{return e instanceof t}catch(e){return!1}}var m=n(397);const g=(0,m.Rf)(),y=80;function v(e,t={}){try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",l=a.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||y;for(;n&&o++1&&i+s.length*l+c.length>=d));)s.push(c),i+=c.length,n=n.parentNode;return s.reverse().join(a)}catch(e){return""}}function E(e,t){const n=e,r=[];let s,o,i,a,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&u(s))for(o=s.split(/\s+/),l=0;lfunction(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 w(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);if("function"==typeof s)try{O(s,r)}catch(e){}e[t]=s}function k(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function O(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,k(e,"__sentry_original__",t)}function N(e){return e.__sentry_original__}function C(e){if(i(e))return{message:e.message,name:e.name,stack:e.stack,...I(e)};if(h(e)){const t={type:e.type,target:x(e.target),currentTarget:x(e.currentTarget),...I(e)};return"undefined"!=typeof CustomEvent&&_(e,CustomEvent)&&(t.detail=e.detail),t}return e}function x(e){try{return"undefined"!=typeof Element&&_(e,Element)?v(e):Object.prototype.toString.call(e)}catch(e){return""}}function I(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 A(e,t=40){const n=Object.keys(C(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return b(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:b(r,t)}return""}function R(e){return L(e,new Map)}function L(e,t){if(p(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]=L(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(L(e,t))})),r}return e}let M;class D{constructor(){D.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=D.id}setupOnce(){M=Function.prototype.toString,Function.prototype.toString=function(...e){const t=N(this)||this;return M.apply(t,e)}}}D.__initStatic();const P=["debug","info","warn","error","log","assert","trace"];function F(e){if(!("console"in m.n2))return e();const t=m.n2.console,n={};P.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function U(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?P.forEach((n=>{t[n]=(...t)=>{e&&F((()=>{m.n2.console[n](`Sentry Logger [${n}]:`,...t)}))}})):P.forEach((e=>{t[e]=()=>{}})),t}let B;function j(){const e=m.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function V(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function $(e){const{message:t,event_id:n}=e;if(t)return t;const r=V(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function G(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function H(e,t){const n=V(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 z(e){if(e&&e.__sentry_captured__)return!0;try{k(e,"__sentry_captured__",!0)}catch(e){}return!1}function Y(e){return Array.isArray(e)?e:[e]}B="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,m.YO)("logger",U):U();const W=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class X{static __initStatic(){this.id="InboundFilters"}__init(){this.name=X.id}constructor(e={}){this._options=e,X.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(X);if(t){const r=n.getClient(),s=r?r.getOptions():{},o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...W],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,s);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${$(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Cannot extract message for event ${$(e)}`),[]}return[]}(e).some((e=>T(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${$(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=q(e);return!!n&&T(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${$(e)}.\nUrl: ${q(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=q(e);return!n||T(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${$(e)}.\nUrl: ${q(e)}`),!0)}(e,o)?null:e}}return e};n.id=this.name,e(n)}}function q(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("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Cannot extract url for event ${$(e)}`),null}}X.__initStatic();var K,J=n(281),Z=n(708);function Q(e){return new te((t=>{t(e)}))}function ee(e){return new te(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(K||(K={}));class te{__init(){this._state=K.PENDING}__init2(){this._handlers=[]}constructor(e){te.prototype.__init.call(this),te.prototype.__init2.call(this),te.prototype.__init3.call(this),te.prototype.__init4.call(this),te.prototype.__init5.call(this),te.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new te(((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 te(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(K.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(K.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===K.PENDING&&(f(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===K.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===K.RESOLVED&&e[1](this._value),this._state===K.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function ne(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,J.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:j()),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)}class re{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new re;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ne(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof re?t:this}return e instanceof re?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):p(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,J.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...se(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new te(((s,o)=>{const i=e[r];if(null===t||"function"!=typeof i)s(t);else{const a=i({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.id&&null===a&&B.log(`Event processor "${i.id}" dropped event`),f(a)?a.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(s))).then(null,o):this._notifyEventProcessors(e,a,n,r+1).then(s).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Y(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function se(){return(0,m.YO)("globalEventProcessors",(()=>[]))}function oe(e){se().push(e)}const ie=4,ae=100;class le{__init(){this._stack=[{}]}constructor(e,t=new re,n=ie){this._version=n,le.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version{s.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)})),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:j(),s=new Error(e);return this._withClient(((o,i)=>{o.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r},i)})),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:j();return e.type||(this._lastEventId=n),this._withClient(((r,s)=>{r.captureEvent(e,{...t,event_id:n},s)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=ae}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const i={timestamp:(0,J.yW)(),...e},a=s?F((()=>s(i,t))):i;null!==a&&n.addBreadcrumb(a,o)}setUser(e){const t=this.getScope();t&&t.setUser(e)}setTags(e){const t=this.getScope();t&&t.setTags(e)}setExtras(e){const t=this.getScope();t&&t.setExtras(e)}setTag(e,t){const n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){const n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){const n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){const t=ue(this);try{e(this)}finally{ue(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),ne(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{},{userAgent:o}=m.n2.navigator||{},i=function(e){const t=(0,J.ph)(),n={sid:j(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return R({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ne(n,e),n}({release:r,environment:s,...t&&{user:t.getUser()},...o&&{userAgent:o},...e});if(t){const e=t.getSession&&t.getSession();e&&"ok"===e.status&&ne(e,{status:"exited"}),this.endSession(),t.setSession(i)}return i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(!e)return;const n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=ce().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ce(){return m.n2.__SENTRY__=m.n2.__SENTRY__||{extensions:{},hub:void 0},m.n2}function ue(e){const t=ce(),n=he(t);return fe(t,e),n}function de(){const e=ce();return pe(e)&&!he(e).isOlderThan(ie)||fe(e,new le),(0,Z.KV)()?function(e){try{const t=ce().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return he(e);if(!pe(n)||he(n).isOlderThan(ie)){const t=he(e).getStackTop();fe(n,new le(t.client,re.clone(t.scope)))}return he(n)}catch(t){return he(e)}}(e):he(e)}function pe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function he(e){return(0,m.YO)("hub",(()=>new le),e)}function fe(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const _e="7.39.0";function me(e,t){return de().captureException(e,{captureContext:t})}function ge(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return de().captureMessage(e,n,r)}function ye(e,t){return de().captureEvent(e,t)}function ve(e){de().configureScope(e)}function Ee(e){de().addBreadcrumb(e)}function be(e,t){de().setContext(e,t)}function Se(e){de().setExtras(e)}function Te(e,t){de().setExtra(e,t)}function we(e){de().setTags(e)}function ke(e,t){de().setTag(e,t)}function Oe(e){de().setUser(e)}function Ne(e){de().withScope(e)}function Ce(e,t){return de().startTransaction({...e},t)}class xe 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 Ie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ae(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function Re(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Le(e){const t="string"==typeof e?function(e){const t=Ie.exec(e);if(!t)throw new xe(`Invalid Sentry Dsn: ${e}`);const[n,r,s="",o,i="",a]=t.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Re({host:o,pass:s,path:l,projectId:c,port:i,protocol:n,publicKey:r})}(e):Re(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new xe(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new xe(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new xe(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new xe(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}const Me=50;function De(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[];for(const s of e.split("\n").slice(n)){if(s.length>1024)continue;const e=s.replace(/\(error: (.*)\)/,"$1");for(const n of t){const t=n(e);if(t){r.push(t);break}}}return function(e){if(!e.length)return[];let t=e;const n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,Me).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}const Pe="";function Fe(e){try{return e&&"function"==typeof e&&e.name||Pe}catch(e){return Pe}}function Ue(e,t=1/0,n=1/0){try{return je("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Be(e,t=3,n=102400){const r=Ue(e,t);return s=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?Be(e,t-1,n):r;var s}function je(e,t,r=1/0,s=1/0,o=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=s){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=je(e,t,r-1,s,o),h++}return a(t),d}function Ve(e,t=[]){return[e,t]}function $e(e,t){const[n,r]=e;return[n,[...r,t]]}function Ge(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function He(e,t){return(t||new TextEncoder).encode(e)}function ze(e,t){const[n,r]=e;let s=JSON.stringify(n);function o(e){"string"==typeof s?s="string"==typeof e?s+e:[He(s,t),e]:s.push("string"==typeof e?He(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Ue(n))}o(e)}}return"string"==typeof s?s: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}(s)}function Ye(e,t){const n="string"==typeof e.data?He(e.data,t):e.data;return[R({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const We={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function Xe(e){return We[e]}function qe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ke(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Ae(r)},..."transaction"===e.type&&s&&{trace:R({...s})}}}const Je=6e4;function Ze(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Je:r-t}const Qe=30;function et(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(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new te(((n,r)=>{let s=t.length;if(!s)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Q(e).then((()=>{--s||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||Qe)){let r={};return{send:function(s){const o=[];if(Ge(s,((t,n)=>{const s=Xe(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,s)){const r=tt(t,n);e.recordDroppedEvent("ratelimit_backoff",s,r)}else o.push(t)})),0===o.length)return Q();const i=Ve(s[0],o),a=t=>{Ge(i,((n,r)=>{const s=tt(n,r);e.recordDroppedEvent(t,Xe(r),s)}))};return n.add((()=>t({body:ze(i,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n]=e.split(":",2),o=parseInt(t,10),i=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))s[e]=r+i;else s.all=r+i}else i?s.all=r+Ze(i,r):429===t&&(s.all=r+6e4);return s}(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof xe)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Skipped sending event because buffer is full."),a("queue_overflow"),Q();throw e}))},flush:e=>n.drain(e)}}function tt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const nt=m.n2;let rt=0;function st(){return rt>0}function ot(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(N(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 s=r.map((e=>ot(e,t)));return e.apply(this,s)}catch(e){throw rt++,setTimeout((()=>{rt--})),Ne((n=>{n.addEventProcessor((e=>(t.mechanism&&(G(e,void 0,void 0),H(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),me(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}O(r,e),k(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const it="7";function at(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function lt(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`${at(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:it,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}const ct=[];function ut(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?Y(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r),o=s.findIndex((e=>"Debug"===e.name));if(-1!==o){const[e]=s.splice(o,1);s.push(e)}return s}function dt(e,t){t[e.name]=e,-1===ct.indexOf(e.name)&&(e.setupOnce(oe,de),ct.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Integration installed: ${e.name}`))}function pt(e,t,n,r){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,i={...t,event_id:t.event_id||n.event_id||j(),timestamp:t.timestamp||(0,J.yW)()},a=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==s&&(e.dist=s),e.message&&(e.message=b(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=b(i.value,o));const a=e.request;a&&a.url&&(a.url=b(a.url,o))}(i,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(i,a),function(e,t){const n=m.n2._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce(((e,r)=>{const s=t(r);for(const t of s)if(t.abs_path){e[t.abs_path]=n[r];break}return e}),{}),s=new Set;try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.abs_path&&s.add(e.abs_path)}))}))}catch(e){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const o=e.debug_meta.images;s.forEach((e=>{r[e]&&o.push({type:"sourcemap",code_file:e,debug_id:r[e]})}))}(i,e.stackParser);let l=r;n.captureContext&&(l=re.clone(l).update(n.captureContext));let c=Q(i);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}c=l.applyToEvent(i,n)}return c.then((e=>"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ue(e.data,t,n)}})))},...e.user&&{user:Ue(e.user,t,n)},...e.contexts&&{contexts:Ue(e.contexts,t,n)},...e.extra&&{extra:Ue(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=Ue(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ue(e.data,t,n)),e)))),r}(e,s,o):e))}const ht="Not capturing exception because it's already been captured.";class ft{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(ft.prototype.__init.call(this),ft.prototype.__init2.call(this),ft.prototype.__init3.call(this),ft.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=Le(e.dsn);const t=lt(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if(z(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(ht));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 s=n&&n.event_id;const o=d(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{s=e}))),s}captureEvent(e,t,n){if(t&&t.originalException&&z(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(ht));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ne(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Q(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&dt(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){dt(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,r){const s=qe(n),o=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=Ke(e,s,r,t);return delete e.sdkProcessingMetadata,Ve(i,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=$e(n,Ye(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const s=qe(n);return Ve({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&{dsn:Ae(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;const s=t.exception&&t.exception.values;if(s){r=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(ne(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new te((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._dsn}_prepareEvent(e,t,n){const r=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),pt(r,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?B.log(t.message):B.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:s}=r;if(!this._isEnabled())return ee(new xe("SDK not enabled, will not capture event.","log"));const o=mt(e),i=_t(e),a=e.type||"error",l=`before send for type \`${a}\``;if(i&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),ee(new xe(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const c="replay_event"===a?"replay":a;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new xe("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n){const{beforeSend:r,beforeSendTransaction:s}=e;return _t(t)&&r?r(t,n):mt(t)&&s?s(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(f(e))return e.then((e=>{if(!p(e)&&null!==e)throw new xe(n);return e}),(e=>{throw new xe(`${t} rejected with ${e}`)}));if(!p(e)&&null!==e)throw new xe(n);return e}(s,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new xe(`${l} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!o&&s&&this._updateSessionFromEvent(s,r);const i=r.transaction_info;if(o&&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 xe)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new xe(`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){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.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 _t(e){return void 0===e.type}function mt(e){return"transaction"===e.type}var gt=n(267);function yt(e,t){const n=Et(e,t),r={type:t&&t.name,value:St(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vt(e,t){return{exception:{values:[yt(e,t)]}}}function Et(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(bt.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const bt=/Minified React error #\d+;/i;function St(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Tt(e,t,n,r){const s=kt(e,t,n&&n.syntheticException||void 0,r);return H(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Q(s)}function wt(e,t,n="info",r,s){const o=Ot(e,t,r&&r.syntheticException||void 0,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Q(o)}function kt(e,t,n,r,s){let o;if(l(t)&&t.error)return vt(e,t.error);if(c(t)||a(t,"DOMException")){const s=t;if("stack"in t)o=vt(e,t);else{const t=s.name||(c(s)?"DOMError":"DOMException"),i=s.message?`${t}: ${s.message}`:t;o=Ot(e,i,n,r),G(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return i(t)?vt(e,t):p(t)||h(t)?(o=function(e,t,n,r){const s=de().getClient(),o=s&&s.getOptions().normalizeDepth,i={exception:{values:[{type:h(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${A(t)}`}]},extra:{__serialized__:Be(t,o)}};if(n){const t=Et(e,n);t.length&&(i.exception.values[0].stacktrace={frames:t})}return i}(e,t,n,s),H(o,{synthetic:!0}),o):(o=Ot(e,t,n,r),G(o,`${t}`,void 0),H(o,{synthetic:!0}),o)}function Ot(e,t,n,r){const s={message:t};if(r&&n){const r=Et(e,n);r.length&&(s.exception={values:[{value:t,stacktrace:{frames:r}}]})}return s}const Nt=(0,m.Rf)();function Ct(){if(!("fetch"in Nt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function xt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const It=(0,m.Rf)(),At={},Rt={};function Lt(e,t){At[e]=At[e]||[],At[e].push(t),function(e){if(!Rt[e])switch(Rt[e]=!0,e){case"console":"console"in It&&P.forEach((function(e){e in It.console&&w(It.console,e,(function(t){return function(...n){Mt("console",{args:n,level:e}),t&&t.apply(It.console,n)}}))}));break;case"dom":!function(){if(!("document"in It))return;const e=Mt.bind(null,"dom"),t=Vt(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=It[t]&&It[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(w(n,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=Vt(e);i.handler=r,t.call(this,n,r,s)}i.refCount++}catch(e){}return t.call(this,n,r,s)}})),w(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in It))return;const e=XMLHttpRequest.prototype;w(e,"open",(function(e){return function(...t){const n=this,r=t[1],s=n.__sentry_xhr__={method:u(t[0])?t[0].toUpperCase():t[0],url:t[1]};u(r)&&"POST"===s.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const o=function(){if(4===n.readyState){try{s.status_code=n.status}catch(e){}Mt("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?w(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),w(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Mt("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":(function(){if(!Ct())return!1;if(xt(Nt.fetch))return!0;let e=!1;const t=Nt.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=xt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&w(It,"fetch",(function(e){return function(...t){const n={args:t,fetchData:{method:Dt(t),url:Pt(t)},startTimestamp:Date.now()};return Mt("fetch",{...n}),e.apply(It,t).then((e=>(Mt("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Mt("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(!function(){const e=Nt.chrome,t=e&&e.app&&e.app.runtime,n="history"in Nt&&!!Nt.history.pushState&&!!Nt.history.replaceState;return!t&&n}())return;const e=It.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Ft,t=String(n);Ft=t,Mt("history",{from:e,to:t})}return e.apply(this,t)}}It.onpopstate=function(...t){const n=It.location.href,r=Ft;if(Ft=n,Mt("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},w(It.history,"pushState",t),w(It.history,"replaceState",t)}();break;case"error":$t=It.onerror,It.onerror=function(e,t,n,r,s){return Mt("error",{column:r,error:s,line:n,msg:e,url:t}),!!$t&&$t.apply(this,arguments)};break;case"unhandledrejection":Gt=It.onunhandledrejection,It.onunhandledrejection=function(e){return Mt("unhandledrejection",e),!Gt||Gt.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("unknown instrumentation type:",e)}}(e)}function Mt(e,t){if(e&&At[e])for(const n of At[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Fe(n)}\nError:`,t)}}function Dt(e=[]){return"Request"in It&&_(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Pt(e=[]){return"string"==typeof e[0]?e[0]:"Request"in It&&_(e[0],Request)?e[0].url:String(e[0])}let Ft;const Ut=1e3;let Bt,jt;function Vt(e,t=!1){return n=>{if(!n||jt===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Bt||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(jt,n))&&(e({event:n,name:r,global:t}),jt=n),clearTimeout(Bt),Bt=It.setTimeout((()=>{Bt=void 0}),Ut)}}let $t=null,Gt=null;const Ht=["fatal","error","warning","log","info","debug"];function zt(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],relative:t[5]+n+r}}const Yt="Breadcrumbs";class Wt{static __initStatic(){this.id=Yt}__init(){this.name=Wt.id}constructor(e){Wt.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&Lt("console",Xt),this.options.dom&&Lt("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,s="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;s&&s>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof r&&(r=[r]);try{n=t.event.target?v(t.event.target,{keyAttrs:r,maxStringLength:s}):v(t.event,{keyAttrs:r,maxStringLength:s})}catch(e){n=""}0!==n.length&&de().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&Lt("xhr",qt),this.options.fetch&&Lt("fetch",Kt),this.options.history&&Lt("history",Jt)}addSentryBreadcrumb(e){this.options.sentry&&de().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:$(e)},{event:e})}}function Xt(e){for(let t=0;t{"hidden"===nt.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return Tt(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return wt(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(Yt);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,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(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("Sending outcomes:",e);const t=lt(this._dsn,this._options),n=(r=e,Ve((s=this._options.tunnel&&Ae(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:(0,J.yW)(),discarded_events:r}]]));var r,s;try{"[object Navigator]"===Object.prototype.toString.call(nt&&nt.navigator)&&"function"==typeof nt.navigator.sendBeacon&&!this._options.transportOptions?nt.navigator.sendBeacon.bind(nt.navigator)(t,ze(n)):this._sendEnvelope(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(e)}}}let Qt;function en(e,t=function(){if(Qt)return Qt;if(xt(nt.fetch))return Qt=nt.fetch.bind(nt);const e=nt.document;let t=nt.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){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Qt=t.bind(nt)}()){return et(e,(function(n){const r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n.body.length<=65536,...e.fetchOptions};try{return t(e.url,r).then((e=>({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 Qt=void 0,ee(e)}}))}const tn=4;function nn(e){return et(e,(function(t){return new te(((n,r)=>{const s=new XMLHttpRequest;s.onerror=r,s.onreadystatechange=()=>{s.readyState===tn&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const rn="?";function sn(e,t,n,r){const s={filename:e,abs_path:e,function:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const on=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,an=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=[30,e=>{const t=on.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=an.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=En(t[1]||rn,t[2]);return sn(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],cn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,un=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dn=[50,e=>{const t=cn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=un.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]||rn;return[n,e]=En(n,e),sn(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],pn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hn=[40,e=>{const t=pn.exec(e);return t?sn(t[2],t[1]||rn,+t[3],t[4]?+t[4]:void 0):void 0}],fn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,_n=[10,e=>{const t=fn.exec(e);return t?sn(t[2],t[3]||rn,+t[1]):void 0}],mn=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,gn=[20,e=>{const t=mn.exec(e);return t?sn(t[5],t[3]||t[4]||rn,+t[1],+t[2]):void 0}],yn=[ln,dn,hn],vn=De(...yn),En=(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]:rn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class bn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=bn.id}__init2(){this._installFunc={onerror:Sn,onunhandledrejection:Tn}}constructor(e){bn.prototype.__init.call(this),bn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}}function Sn(){Lt("error",(e=>{const[t,n,r]=On();if(!t.getIntegration(bn))return;const{msg:s,url:o,line:i,column:a,error:c}=e;if(st()||c&&c.__sentry_own_request__)return;const d=void 0===c&&u(s)?function(e,t,n,r){let s=l(e)?e.message:e,o="Error";const i=s.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);i&&(o=i[1],s=i[2]);return wn({exception:{values:[{type:o,value:s}]}},t,n,r)}(s,o,i,a):wn(kt(n,c||s,void 0,r,!1),o,i,a);d.level="error",kn(t,c,d,"onerror")}))}function Tn(){Lt("unhandledrejection",(e=>{const[t,n,r]=On();if(!t.getIntegration(bn))return;let s=e;try{"reason"in e?s=e.reason:"detail"in e&&"reason"in e.detail&&(s=e.detail.reason)}catch(e){}if(st()||s&&s.__sentry_own_request__)return!0;const o=d(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:kt(n,s,void 0,r,!0);o.level="error",kn(t,s,o,"onunhandledrejection")}))}function wn(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=u(t)&&t.length>0?t:function(){try{return g.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:p,function:"?",in_app:!0,lineno:d}),e}function kn(e,t,n,r){H(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function On(){const e=de(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}bn.__initStatic();const Nn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Cn{static __initStatic(){this.id="TryCatch"}__init(){this.name=Cn.id}constructor(e){Cn.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&w(nt,"setTimeout",xn),this._options.setInterval&&w(nt,"setInterval",xn),this._options.requestAnimationFrame&&w(nt,"requestAnimationFrame",In),this._options.XMLHttpRequest&&"XMLHttpRequest"in nt&&w(XMLHttpRequest.prototype,"send",An);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:Nn).forEach(Rn)}}function xn(e){return function(...t){const n=t[0];return t[0]=ot(n,{mechanism:{data:{function:Fe(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function In(e){return function(t){return e.apply(this,[ot(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Fe(e)},handled:!0,type:"instrument"}})])}}function An(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&w(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Fe(t)},handled:!0,type:"instrument"}},r=N(t);return r&&(n.mechanism.data.handler=Fe(r)),ot(t,n)}))})),e.apply(this,t)}}function Rn(e){const t=nt,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(w(n,"addEventListener",(function(t){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=ot(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Fe(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ot(r,{mechanism:{data:{function:"addEventListener",handler:Fe(r),target:e},handled:!0,type:"instrument"}}),s])}})),w(n,"removeEventListener",(function(e){return function(t,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,s,r)}})))}Cn.__initStatic();class Ln{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ln.id}constructor(e={}){Ln.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=de().getClient();e&&oe(((t,n)=>{const r=de().getIntegration(Ln);return r?function(e,t,n,r,s){if(!(r.exception&&r.exception.values&&s&&_(s.originalException,Error)))return r;const o=Mn(e,n,s.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Mn(e,t,n,r,s=[]){if(!_(n[r],Error)||s.length+1>=t)return s;const o=yt(e,n[r]);return Mn(e,t,n[r],r,[o,...s])}Ln.__initStatic();class Dn{constructor(){Dn.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Dn.id}setupOnce(){oe((e=>{if(de().getIntegration(Dn)){if(!nt.navigator&&!nt.location&&!nt.document)return e;const t=e.request&&e.request.url||nt.location&&nt.location.href,{referrer:n}=nt.document||{},{userAgent:r}=nt.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};return{...e,request:o}}return e}))}}Dn.__initStatic();class Pn{constructor(){Pn.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Pn.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(Pn);if(n){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&&(!!Un(e,t)&&!!Fn(e,t))))}(e,t)||!!function(e,t){const n=Bn(t),r=Bn(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Un(e,t)&&!!Fn(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Fn(e,t){let n=jn(e),r=jn(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{void 0!==e&&e!==t&&Kn(de())})))}()}function Gn(e={},t=de()){if(!nt.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),s=e.dsn||n&&n.getDsn();if(!s)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=nt.document.createElement("script");o.async=!0,o.src=function(e,t){const n=Le(e),r=`${at(n)}embed/error-page/`;let s=`dsn=${Ae(n)}`;for(const e in t)if("dsn"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(s+=`&name=${encodeURIComponent(e.name)}`),e.email&&(s+=`&email=${encodeURIComponent(e.email)}`)}else s+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${s}`}(s,e),e.onLoad&&(o.onload=e.onLoad);const i=nt.document.head||nt.document.body;i?i.appendChild(o):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Not injecting report dialog. No injection point found in HTML")}function Hn(){return de().lastEventId()}function zn(){}function Yn(e){e()}function Wn(e){const t=de().getClient();return t?t.flush(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Cannot flush events. No client defined."),Q(!1))}function Xn(e){const t=de().getClient();return t?t.close(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Cannot flush events and disable SDK. No client defined."),Q(!1))}function qn(e){return ot(e)()}function Kn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}const Jn=m.n2,Zn="sentryReplaySession",Qn="replay_event",er="Unable to send Replay",tr=3e5,nr=tr,rr=36e5;var sr;function or(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function ir({maskInputOptions:e,tagName:t,type:n}){return e[t.toLowerCase()]||e[n]||"input"===t&&!n&&e.text}function ar({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:s,type:o,value:i,maskInputFn:a}){let l=i||"";return n&&e.matches(n)||(ir({maskInputOptions:r,tagName:s,type:o})||t&&e.matches(t))&&(l=a?a(l):"*".repeat(l.length)),l}!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"}(sr||(sr={}));const lr="__rrweb_original__";let cr=1;const ur=new RegExp("[^a-z0-9-_:]"),dr=-2;function pr(e){return e?e.replace(/[\S]/g,"*"):""}function hr(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(fr).join(""):null}catch(e){return null}}function fr(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=hr(e.styleSheet)||t}catch(e){}return t}let _r,mr;const gr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,yr=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,vr=/^(data:)([^,]*),(.*)/i;function Er(e,t){return(e||"").replace(gr,((e,n,r,s,o,i)=>{const a=r||o||i,l=n||s||"";if(!a)return e;if(!yr.test(a))return`url(${l}${a}${l})`;if(vr.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${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}${l})`;const c=t.split("/"),u=a.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const br=/^[^ \t\n\r\u000c]+/,Sr=/^[, \t\n\r\u000c]+/;function Tr(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function wr(){const e=document.createElement("a");return e.href="",e.href}function kr(e,t,n,r,s,o){return r?"src"===n||"href"===n||"xlink:href"===n&&"#"!==r[0]?Tr(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,s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}let s=[];for(;r(Sr),!(n>=t.length);){let o=r(br);if(","===o.slice(-1))o=Tr(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=Tr(e,o);let i=!1;for(;;){let e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?Er(r,wr()):"object"===t&&"data"===n?Tr(e,r):s&&["placeholder","title","aria-label"].indexOf(n)>-1?o?o(r):pr(r):r:Tr(e,r):r}function Or(e,t,n,r,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Or(e.parentNode,t,n,r,s);if(r&&(e.matches(r)||e.closest(r)))return!1;if(s)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n!1)}=t;let{preserveWhiteSpace:O=!0}=t;const N=function(e,t){var n;const{doc:r,blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:a,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,maskInputOptions:f={},maskTextFn:_,maskInputFn:m,dataURLOptions:g={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:E}=t;let b;if(r.__sn){const e=r.__sn.id;b=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:sr.Document,childNodes:[],compatMode:e.compatMode,rootId:b}:{type:sr.Document,childNodes:[],rootId:b};case e.DOCUMENT_TYPE_NODE:return{type:sr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:const t=function(e,t,n,r){if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;nt.href===e.href));let n=null;t&&(n=hr(t)),n&&(delete k.rel,delete k.href,k._cssText=Er(n,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=hr(e.sheet);t&&(k._cssText=Er(t,wr()))}if("input"===w||"textarea"===w||"select"===w){const t=e.value;"radio"!==k.type&&"checkbox"!==k.type&&"submit"!==k.type&&"button"!==k.type&&t?k.value=ar({input:e,type:k.type,tagName:w,value:t,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:f,maskInputFn:m}):e.checked&&(k.checked=e.checked)}if("option"===w&&(e.selected&&!f.select?k.selected=!0:delete k.selected),"canvas"===w&&v)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)||(k.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const t=e.toDataURL(g.type,g.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(g.type,g.quality)&&(k.rr_dataURL=t)}if("img"===w&&y){_r||(_r=r.createElement("canvas"),mr=_r.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{try{_r.width=t.naturalWidth,_r.height=t.naturalHeight,mr.drawImage(t,0,0),k.rr_dataURL=_r.toDataURL(g.type,g.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?k.crossOrigin=n:delete k.crossOrigin};t.complete&&0!==t.naturalWidth?s():t.onload=s}if("audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==w||E(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src),{type:sr.Element,tagName:w,attributes:k,childNodes:[],isSVG:(T=e,Boolean("svg"===T.tagName||T.ownerSVGElement)||void 0),needBlock:t,rootId:b};case e.TEXT_NODE:const O=e.parentNode&&e.parentNode.tagName;let N=e.textContent;const C="STYLE"===O||void 0,x="SCRIPT"===O||void 0;if(C&&N){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(N=(S=e.parentNode.sheet).cssRules?Array.from(S.cssRules).map((e=>e.cssText||"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}N=Er(N,wr())}return x&&(N="SCRIPT_PLACEHOLDER"),"TEXTAREA"===O&&N?N="":!C&&!x&&Or(e,a,l,c,h)&&N&&(N=_?_(N):pr(N)),{type:sr.Text,textContent:N||"",isStyle:C,rootId:b};case e.CDATA_SECTION_NODE:return{type:sr.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:sr.Comment,textContent:e.textContent||"",rootId:b};default:return!1}var S,T}(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:a,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:g,dataURLOptions:v,inlineImages:E,recordCanvas:b,keepIframeSrcFn:k});if(!N)return console.warn(e,"not serialized"),null;let C;C="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===sr.Comment)return!0;if(e.type===sr.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&&(Nr(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Nr(e.attributes.name)||"icon"===Nr(e.attributes.rel)||"apple-touch-icon"===Nr(e.attributes.rel)||"shortcut icon"===Nr(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Nr(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Nr(e.attributes.property).match(/^(og|twitter|fb):/)||Nr(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Nr(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Nr(e.attributes.name)||"googlebot"===Nr(e.attributes.name)||"bingbot"===Nr(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Nr(e.attributes.name)||"generator"===Nr(e.attributes.name)||"framework"===Nr(e.attributes.name)||"publisher"===Nr(e.attributes.name)||"progid"===Nr(e.attributes.name)||Nr(e.attributes.property).match(/^article:/)||Nr(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Nr(e.attributes.name)||"yandex-verification"===Nr(e.attributes.name)||"csrf-token"===Nr(e.attributes.name)||"p:domain_verify"===Nr(e.attributes.name)||"verify-v1"===Nr(e.attributes.name)||"verification"===Nr(e.attributes.name)||"shopify-checkout-api-token"===Nr(e.attributes.name)))return!0}}return!1}(N,y)&&(O||N.type!==sr.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?cr++:dr;const x=Object.assign(N,{id:C});if(e.__sn=x,C===dr)return null;r[C]=e,S&&S(e);let I=!u;if(x.type===sr.Element&&(I=I&&!x.needBlock,delete x.needBlock,e.shadowRoot&&(x.isShadowHost=!0)),(x.type===sr.Document||x.type===sr.Element)&&I){y.headWhitespace&&N.type===sr.Element&&"head"===N.tagName&&(O=!1);const t={doc:n,map:r,blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:a,maskTextSelector:l,unmaskTextSelector:c,skipChild:u,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:E,recordCanvas:b,preserveWhiteSpace:O,onSerialize:S,onIframeLoad:T,iframeLoadTimeout:w,keepIframeSrcFn:k};for(const n of Array.from(e.childNodes)){const e=Cr(n,t);e&&x.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 e=Cr(n,t);e&&(e.isShadow=!0,x.childNodes.push(e))}}return e.parentNode&&or(e.parentNode)&&(x.isShadow=!0),x.type===sr.Element&&"iframe"===x.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),o=!0,t()}))}const i="about:blank";r.location.href===i&&e.src!==i&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&T){const n=Cr(t,{doc:t,map:r,blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:a,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:E,recordCanvas:b,preserveWhiteSpace:O,onSerialize:S,onIframeLoad:T,iframeLoadTimeout:w,keepIframeSrcFn:k});n&&T(e,n)}}),w),x}function xr(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var Ir,Ar,Rr,Lr,Mr,Dr;function Pr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}!function(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"}(Ir||(Ir={})),function(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"}(Ar||(Ar={})),function(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"}(Rr||(Rr={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(Lr||(Lr={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(Mr||(Mr={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(Dr||(Dr={}));const Fr="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 Ur={map:{},getId:()=>(console.error(Fr),-1),getNode:()=>(console.error(Fr),null),removeNodeFromMap(){console.error(Fr)},has:()=>(console.error(Fr),!1),reset(){console.error(Fr)}};function Br(e,t,n={}){let r=null,s=0;return function(o){let i=Date.now();s||!1!==n.leading||(s=i);let a=t-(i-s),l=this,c=arguments;a<=0||a>t?(r&&(clearTimeout(r),r=null),s=i,e.apply(l,c)):r||!1===n.trailing||(r=setTimeout((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(l,c)}),a))}}function jr(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>jr(e,t,o||{},!0)}function Vr(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}function $r(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Hr(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let s=!1;const o=r&&e.matches(r);return"string"==typeof t?s=void 0!==e.closest?!o&&null!==e.closest("."+t):!o&&e.classList.contains(t):!o&&e.classList.forEach((e=>{t.test(e)&&(s=!0)})),!s&&n&&(s=e.matches(n)),!o&&s||Hr(e.parentNode,t,n,r)}return e.nodeType,e.TEXT_NODE,Hr(e.parentNode,t,n,r)}function zr(e){return"__sn"in e&&e.__sn.id===dr}function Yr(e,t){if(or(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Yr(e.parentNode,t))}function Wr(e){return Boolean(e.changedTouches)}function Xr(e){return"__sn"in e&&e.__sn.type===sr.Element&&"iframe"===e.__sn.tagName}function qr(e){return Boolean(null==e?void 0:e.shadowRoot)}function Kr(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ur=new Proxy(Ur,{get:(e,t,n)=>("map"===t&&console.error(Fr),Reflect.get(e,t,n))}));class Jr{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n`${e}@${t}`;function Qr(e){return"__sn"in e}class es{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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 Jr,n=e=>{let t=e,n=dr;for(;n===dr;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{var s,o,i,a,l;const c=r.getRootNode?null===(s=r.getRootNode())||void 0===s?void 0:s.host:null;let u=c;for(;null===(i=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===i?void 0:i.host;)u=(null===(l=null===(a=null==u?void 0:u.getRootNode)||void 0===a?void 0:a.call(u))||void 0===l?void 0:l.host)||null;const d=!(this.doc.contains(r)||u&&this.doc.contains(u));if(!r.parentNode||d)return;const p=or(r.parentNode)?this.mirror.getId(c):this.mirror.getId(r.parentNode),h=n(r);if(-1===p||-1===h)return t.addNode(r);let f=Cr(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Xr(e)&&this.iframeManager.addIframe(e),qr(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});f&&e.push({parentId:p,nextId:h,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ns(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)rs(this.droppedSet,e)||ns(this.removes,e,this.mirror)?rs(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let s=null;for(;t.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),r=n(s.value);-1!==t&&-1!==r&&(e=s)}if(!e)for(let r=t.length-1;r>=0;r--){const s=t.get(r);if(s){const t=this.mirror.getId(s.value.parentNode),r=n(s.value);if(-1!==t&&-1!==r){e=s;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}s=e.previous,t.removeNode(e.value),r(e.value)}const o={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!zr(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;Hr(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:Or(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=ar({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Hr(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let r=this.attributes.find((t=>t.node===e.target));if(r||(r={node:e.target,attributes:{}},this.attributes.push(r)),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==r.attributes.style&&null!==r.attributes.style||(r.attributes.style={});try{const e=r.attributes.style;for(const r of Array.from(t.style)){const s=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);s===n.style.getPropertyValue(r)&&o===n.style.getPropertyPriority(r)||(e[r]=""===o?s:[s,o])}for(const r of Array.from(n.style))""===t.style.getPropertyValue(r)&&(e[r]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else r.attributes[e.attributeName]=kr(this.doc,e.target.tagName,e.attributeName,n,this.maskAllText,this.maskTextFn);break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=or(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Hr(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||zr(t)||(this.addedSet.has(t)?(ts(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Yr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Zr(n,r)]?ts(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!or(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!Hr(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(Qr(e)){if(zr(e))return;this.movedSet.add(e);let n=null;t&&Qr(t)&&(n=t.__sn.id),n&&(this.movedMap[Zr(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Hr(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 ts(e,t){e.delete(t),t.childNodes.forEach((t=>ts(e,t)))}function ns(e,t,n){const{parentNode:r}=t;if(!r)return!1;const s=n.getId(r);return!!e.some((e=>e.id===s))||ns(e,r,n)}function rs(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||rs(e,n))}const ss=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},os=[];function is(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 as(e,t){var n,r;const s=new es;os.push(s),s.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const i=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");i&&window[i]&&(o=window[i]);const a=new o(ss(s.processMutations.bind(s)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ls({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=Br((i=>{const a=is(i);if(!a||Hr(a,r,s,o))return;const l=n.getId(a);if(a===t){const n=t.scrollingElement||t.documentElement;ss(e)({id:l,x:n.scrollLeft,y:n.scrollTop})}else ss(e)({id:l,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100);return Pr("scroll",ss(a),t)}function cs(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const us=["INPUT","TEXTAREA","SELECT"],ds=new WeakMap;function ps(e){return function(e,t){if(fs("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||fs("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||fs("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||fs("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function hs(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:s,scrollCb:o,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),i(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)}}(e,t);const r=as(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const l=Br((t=>{const n=Date.now()-i;ss(e)(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null}),o),c=Br((e=>{const t=is(e),{clientX:n,clientY:s}=Wr(e)?e.changedTouches[0]:e;i||(i=Date.now()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Date.now()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ar.Drag:e instanceof MouseEvent?Ar.MouseMove:Ar.TouchMove)}),s,{trailing:!1}),u=[Pr("mousemove",ss(c),n),Pr("touchmove",ss(c),n),Pr("drag",ss(c),n)];return ss((()=>{u.forEach((e=>e()))}))}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,l=[];return Object.keys(Rr).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{const a=i.toLowerCase(),c=ss((t=>i=>{const a=is(i);if(Hr(a,r,s,o))return;const l=Wr(i)?i.changedTouches[0]:i;if(!l)return;const c=n.getId(a),{clientX:u,clientY:d}=l;ss(e)({type:Rr[t],id:c,x:u,y:d})})(i));l.push(Pr(a,c,t))})),ss((()=>{l.forEach((e=>e()))}))}(e),i=ls(e),a=function({viewportResizeCb:e}){let t=-1,n=-1;const r=Br((()=>{const r=$r(),s=Gr();t===r&&n===s||(ss(e)({width:Number(s),height:Number(r)}),t=r,n=s)}),200);return Pr("resize",ss(r),window)}(e),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputSelector:l,unmaskInputSelector:c,maskInputOptions:u,maskInputFn:d,sampling:p,userTriggeredOnInput:h}){function f(e){let n=is(e);const p=e.isTrusted;if(n&&"OPTION"===n.tagName&&(n=n.parentElement),!n||!n.tagName||us.indexOf(n.tagName)<0||Hr(n,r,s,o))return;const f=n.type;if(n.classList.contains(i)||a&&n.matches(a))return;let m=n.value,g=!1;"radio"===f||"checkbox"===f?g=n.checked:function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||ir({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:u,maskInputSelector:l,tagName:n.tagName,type:f})&&(m=ar({input:n,maskInputOptions:u,maskInputSelector:l,unmaskInputSelector:c,tagName:n.tagName,type:f,value:m,maskInputFn:d})),_(n,ss(cs)({text:m,isChecked:g,userTriggered:p},h));const y=n.name;"radio"===f&&y&&g&&t.querySelectorAll(`input[type="radio"][name="${y}"]`).forEach((e=>{e!==n&&_(e,ss(cs)({text:e.value,isChecked:!g,userTriggered:!1},h))}))}function _(t,r){const s=ds.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){ds.set(t,r);const s=n.getId(t);e(Object.assign(Object.assign({},r),{id:s}))}}const m=("last"===p.input?["change"]:["input","change"]).map((e=>Pr(e,ss(f),t))),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...y.map((e=>jr(e[0],e[1],{set(){ss(f)({target:this})}})))),ss((()=>{m.forEach((e=>e()))}))}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o}){const i=i=>Br(ss((o=>{const a=is(o);if(!a||Hr(a,t,n,r))return;const{currentTime:l,volume:c,muted:u}=a;e({type:i,id:s.getId(a),currentTime:l,volume:c,muted:u})})),o.media||500),a=[Pr("play",i(0)),Pr("pause",i(1)),Pr("seeked",i(2)),Pr("volumechange",i(3))];return ss((()=>{a.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:ss(((n,r,s)=>{const[o,i]=s,a=t.getId(r.ownerNode);return-1!==a&&e({id:a,adds:[{rule:o,index:i}]}),n.apply(r,s)}))});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ss(((n,r,s)=>{const[o]=s,i=t.getId(r.ownerNode);return-1!==i&&e({id:i,removes:[{index:o}]}),n.apply(r,s)}))});const o={};_s("CSSGroupingRule")?o.CSSGroupingRule=n.CSSGroupingRule:(_s("CSSMediaRule")&&(o.CSSMediaRule=n.CSSMediaRule),_s("CSSConditionRule")&&(o.CSSConditionRule=n.CSSConditionRule),_s("CSSSupportsRule")&&(o.CSSSupportsRule=n.CSSSupportsRule));const i={};return Object.entries(o).forEach((([n,r])=>{i[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(i[n].insertRule,{apply:ss(((n,r,s)=>{const[o,i]=s,a=t.getId(r.parentStyleSheet.ownerNode);return-1!==a&&e({id:a,adds:[{rule:o,index:[...ps(r),i||0]}]}),n.apply(r,s)}))}),r.prototype.deleteRule=new Proxy(i[n].deleteRule,{apply:ss(((n,r,s)=>{const[o]=s,i=t.getId(r.parentStyleSheet.ownerNode);return-1!==i&&e({id:i,removes:[{index:[...ps(r),o]}]}),n.apply(r,s)}))})})),ss((()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=s,Object.entries(o).forEach((([e,t])=>{t.prototype.insertRule=i[e].insertRule,t.prototype.deleteRule=i[e].deleteRule}))}))}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:ss(((n,r,s)=>{var o,i;const[a,l,c]=s,u=t.getId(null===(i=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==u&&e({id:u,set:{property:a,value:l,priority:c},index:ps(r.parentRule)}),n.apply(r,s)}))});const s=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ss(((n,r,s)=>{var o,i;const[a]=s,l=t.getId(null===(i=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==l&&e({id:l,remove:{property:a},index:ps(r.parentRule)}),n.apply(r,s)}))}),ss((()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.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=Vr(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),ss((()=>{r.forEach((e=>e()))}))}(e):()=>{},h=[];for(const t of e.plugins)h.push(t.observer(t.callback,n,t.options));return ss((()=>{os.forEach((e=>e.reset())),r.disconnect(),s(),o(),i(),a(),l(),c();try{u(),d()}catch(e){}p(),h.forEach((e=>e()))}))}function fs(e){return void 0!==window[e]}function _s(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ms{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class gs{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(Vr(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){as(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),ls(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(Vr(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var ys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vs="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Es=0;Es<64;Es++)vs[ys.charCodeAt(Es)]=Es;const bs=new Map,Ss=(e,t,n)=>{if(!e||!ks(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=bs.get(e);return n||(n=new Map,bs.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let s=r.indexOf(e);return-1===s&&(s=r.length,r.push(e)),s};function Ts(e,t,n){if(e instanceof Array)return e.map((e=>Ts(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,s="";for(t=0;t>2],s+=ys[(3&n[t])<<4|n[t+1]>>4],s+=ys[(15&n[t+1])<<2|n[t+2]>>6],s+=ys[63&n[t+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ts(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 ImageData?{rr_type:e.constructor.name,args:[Ts(e.data,t,n),e.width,e.height]}:ks(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Ss(e,t,n)}:e}const ws=(e,t,n)=>[...e].map((e=>Ts(e,t,n))),ks=(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 Os(e,t,n,r,s,o,i,a){const l=[],c=Object.getOwnPropertyNames(e);for(const u of c)try{if("function"!=typeof e[u])continue;const c=Vr(e,u,(function(l){return function(...c){const d=l.apply(this,c);if(Ss(d,a,e),!Hr(this.canvas,r,o,s)){i.getId(this.canvas);const r=ws([...c],a,e),s={type:t,property:u,args:r};n(this.canvas,s)}return d}}));l.push(c)}catch(r){const s=jr(e,u,{set(e){n(this.canvas,{type:t,property:u,args:[e],setter:!0})}});l.push(s)}return l}class Ns{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=function(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)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=function(e,t,n,r){const s=[];try{const o=Vr(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...o){return Hr(this,t,n,r)||"__context"in this||(this.__context=s),e.apply(this,[s,...o])}}));s.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}(e,t,r,n),o=function(e,t,n,r,s,o){const i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const a=Vr(t.CanvasRenderingContext2D.prototype,o,(function(t){return function(...i){return Hr(this.canvas,n,s,r)||setTimeout((()=>{const t=[...i];if("drawImage"===o&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let r=null==n?void 0:n.getImageData(0,0,e.width,e.height),s=null==r?void 0:r.data;t[0]=JSON.stringify(s)}e(this.canvas,{type:Lr["2D"],property:o,args:t})}),0),t.apply(this,i)}}));i.push(a)}catch(n){const r=jr(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Lr["2D"],property:o,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror),i=function(e,t,n,r,s,o){const i=[];return i.push(...Os(t.WebGLRenderingContext.prototype,Lr.WebGL,e,n,r,s,o,t)),void 0!==t.WebGL2RenderingContext&&i.push(...Os(t.WebGL2RenderingContext.prototype,Lr.WebGL2,e,n,r,s,o,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{s(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>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 t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);se&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function Rs(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:p=null,unmaskInputSelector:h=null,inlineStylesheet:f=!0,maskAllText:_=!1,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:v,maskTextFn:E,hooks:b,packFn:S,sampling:T={},mousemoveWait:w,recordCanvas:k=!1,userTriggeredOnInput:O=!1,collectFonts:N=!1,inlineImages:C=!1,plugins:x,keepIframeSrcFn:I=(()=>!1)}=e;if(!t)throw new Error("emit function is required");void 0!==w&&void 0===T.mousemove&&(T.mousemove=w);const A=!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,password:!0}:void 0!==g?g:{password:!0},R=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let L;!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=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let M=0;xs=(e,s)=>{var o;if(!(null===(o=os[0])||void 0===o?void 0:o.isFrozen())||e.type===Ir.FullSnapshot||e.type===Ir.IncrementalSnapshot&&e.data.source===Ar.Mutation||os.forEach((e=>e.unfreeze())),t((e=>{for(const t of x||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&(e=S(e)),e})(e),s),e.type===Ir.FullSnapshot)L=e,M=0;else if(e.type===Ir.IncrementalSnapshot){if(e.data.source===Ar.Mutation&&e.data.isAttachIframe)return;M++;const t=r&&M>=r,s=n&&e.timestamp-L.timestamp>n;(t||s)&&Is(!0)}};const D=e=>{xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.Mutation},e)}))},P=e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.Scroll},e)})),F=e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.CanvasMutation},e)})),U=new ms({mutationCb:D}),B=new Ns({recordCanvas:k,mutationCb:F,win:window,blockClass:s,blockSelector:o,unblockSelector:i,mirror:As}),j=new gs({mutationCb:D,scrollCb:P,bypassOptions:{blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:_,maskInputOptions:A,maskTextFn:E,maskInputFn:v,recordCanvas:k,inlineImages:C,sampling:T,slimDOMOptions:R,iframeManager:U,canvasManager:B},mirror:As});Is=(e=!1)=>{var t,n,r,a;xs(Cs({type:Ir.Meta,data:{href:window.location.href,width:Gr(),height:$r()}}),e),os.forEach((e=>e.lock()));const[l,m]=function(e,t){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:i=null,unmaskTextSelector:a=null,inlineStylesheet:l=!0,inlineImages:c=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:p=null,maskAllText:h=!1,maskAllInputs:f=!1,maskTextFn:_,maskInputFn:m,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:S,keepIframeSrcFn:T=(()=>!1)}=t||{},w={};return[Cr(e,{doc:e,map:w,blockClass:n,blockSelector:r,unblockSelector:s,maskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,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,password:!0}:!1===f?{password:!0}:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:y,inlineImages:c,recordCanvas:u,preserveWhiteSpace:v,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:S,keepIframeSrcFn:T}),w]}(document,{blockClass:s,blockSelector:o,unblockSelector:i,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:_,maskAllInputs:A,maskTextFn:E,slimDOM:R,recordCanvas:k,inlineImages:C,onSerialize:e=>{Xr(e)&&U.addIframe(e),qr(e)&&j.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{U.attachIframe(e,t),j.observeAttachShadow(e)},keepIframeSrcFn:I});if(!l)return console.warn("Failed to snapshot the document");As.map=m,xs(Cs({type:Ir.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===a?void 0:a.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),os.forEach((e=>e.unlock()))};try{const e=[];e.push(Pr("DOMContentLoaded",(()=>{xs(Cs({type:Ir.DomContentLoaded,data:{}}))})));const t=e=>{var t;return ss(hs)({mutationCb:D,mousemoveCb:(e,t)=>xs(Cs({type:Ir.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.MouseInteraction},e)})),scrollCb:P,viewportResizeCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.ViewportResize},e)})),inputCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.Input},e)})),mediaInteractionCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.MediaInteraction},e)})),styleSheetRuleCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.StyleSheetRule},e)})),styleDeclarationCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.StyleDeclaration},e)})),canvasMutationCb:F,fontCb:e=>xs(Cs({type:Ir.IncrementalSnapshot,data:Object.assign({source:Ar.Font},e)})),blockClass:s,ignoreClass:a,ignoreSelector:l,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:A,inlineStylesheet:f,sampling:T,recordCanvas:k,inlineImages:C,userTriggeredOnInput:O,collectFonts:N,doc:e,maskAllText:_,maskInputFn:v,maskTextFn:E,blockSelector:o,unblockSelector:i,slimDOMOptions:R,mirror:As,iframeManager:U,shadowDomManager:j,canvasManager:B,plugins:(null===(t=null==x?void 0:x.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>xs(Cs({type:Ir.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},b)};U.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Is(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(Pr("load",(()=>{xs(Cs({type:Ir.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}Rs.addCustomEvent=(e,t)=>{if(!xs)throw new Error("please add custom event after start recording");xs(Cs({type:Ir.Custom,data:{tag:e,payload:t}}))},Rs.freezePage=()=>{os.forEach((e=>e.freeze()))},Rs.takeFullSnapshot=e=>{if(!Is)throw new Error("please take full snapshot after start recording");Is(e)},Rs.mirror=As;const Ls=["name","type","startTime","transferSize","duration"];function Ms(e){return function(t){return Ls.every((n=>e[n]===t[n]))}}class Ds{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}destroy(){this.events=[]}async addEvent(e,t){t?this.events=[e]:this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.events=[],e(JSON.stringify(t))}))}}class Ps{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(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay]",i.response),void s(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Fs{constructor(e){this._worker=new Ps(e),this.hasEvents=!1}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}async addEvent(e,t){return this.hasEvents=!0,t&&await this._clear(),this._sendEventToWorker(e)}finish(){return this._finishRequest()}_sendEventToWorker(e){return this._worker.postMessage("addEvent",JSON.stringify(e))}async _finishRequest(){const e=await this._worker.postMessage("finish");return this.hasEvents=!1,e}_clear(){return this._worker.postMessage("clear")}}class Us{constructor(e){this._fallback=new Ds,this._compression=new Fs(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(e,t){return this._used.addEvent(e,t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e}=this._fallback,t=[];for(const n of e)t.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(t)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Bs(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function js(e,t,n=+new Date){return Bs(e.started,rr,n)||Bs(e.lastActivity,t,n)}function Vs(e){if("sessionStorage"in Jn)try{Jn.sessionStorage.setItem(Zn,JSON.stringify(e))}catch(e){}}function $s(e){return void 0!==e&&Math.random()9999999999?t.timestamp:1e3*t.timestamp;if(r+tr<(new Date).getTime())return null;const s=e.getContext().earliestEvent;e.session&&0===e.session.segmentId&&(!s||r(zs(e,{type:Ir.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:t}}),"console"===t.category))))}function Xs(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>zs(e,{type:Ir.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}})))}function qs(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=de().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}let Ks=null;function Js(e){const t=de().getScope();t&&t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Ks!==t&&t?(Ks=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:Ys(t)):null}(t);n&&Ws(e,n)})(e)),Lt("dom",(e=>t=>{if(!e.isEnabled())return;const n=function(e){let t,n;try{n=function(e){return e.event.target?e.event.target:e.event}(e),t=v(n)}catch(e){t=""}return 0===t.length?null:Ys({category:`ui.${e.name}`,message:t,data:{...n?{nodeId:Rs.mirror.getId(n)}:{}}})}(t);n&&Ws(e,n)})(e)),Lt("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){if(!e.endTimestamp)return null;const{startTimestamp:t,endTimestamp:n,fetchData:r,response:s}=e;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:s.status}}}(t);null!==n&&(qs(e,n.name)||e.addUpdate((()=>(Xs(e,[n]),!0))))}}(e)),Lt("xhr",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){if(e.xhr.__sentry_own_request__)return null;if(e.startTimestamp&&(e.xhr.__sentry_xhr__=e.xhr.__sentry_xhr__||{},e.xhr.__sentry_xhr__.startTimestamp=e.startTimestamp),!e.endTimestamp)return null;const{method:t,url:n,status_code:r}=e.xhr.__sentry_xhr__||{};return void 0===n?null:{type:"resource.xhr",name:n,start:(e.xhr.__sentry_xhr__?e.xhr.__sentry_xhr__.startTimestamp||0:e.endTimestamp)/1e3,end:e.endTimestamp/1e3,data:{method:t,statusCode:r}}}(t);null!==n&&(qs(e,n.name)||e.addUpdate((()=>(Xs(e,[n]),!0))))}}(e)),Lt("history",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=(new Date).getTime()/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((()=>(Xs(e,[n]),!1))))}}(e)),oe(function(e){return(t,n)=>{if(t.type===Qn)return delete t.breadcrumbs,t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,n)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Ignoring error from rrweb internals",t),null;if(t.type&&"session"!==e.recordingMode||(t.tags={...t.tags,replayId:e.getSessionId()}),"transaction"===t.type&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id)return e.getContext().traceIds.add(t.contexts.trace.trace_id),t;if(t.type||e.getContext().errorIds.add(t.event_id),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals){const e=function(e){return{type:"Unknown",value:"n/a",...e.exception&&e.exception.values&&e.exception.values[0]}}(t);!function(e){const{category:t,level:n,message:r,...s}=e;Ee({category:t||"console",level:n||"debug",message:`[debug]: ${r}`,...s})}({message:`Tagging event (${t.event_id}) - ${t.message} - ${e.type}: ${e.value}`})}return"error"===e.recordingMode&&t.exception&&t.message!==er&&setTimeout((async()=>{await e.flushImmediate(),e.stopRecording()&&(e.recordingMode="session",e.startRecording())})),t}}(e))}function Zs(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=(new Date).getTime()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Qs={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,encodedBodySize:i,transferSize:a}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:to(o),end:to(s),name:r,data:{size:a,encodedBodySize:i}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=to(s);return{type:n,name:r,start:o,end:o+t}},navigation:function(e){const{entryType:t,name:n,duration:r,domComplete:s,startTime:o,transferSize:i,type:a}=e;return 0===r?null:{type:`${t}.${a}`,start:to(o),end:to(s),name:n,data:{size:i,duration:r}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:r}=e;let s=0;if(Jn.performance){const e=Jn.performance.getEntriesByType("navigation")[0];s=e&&e.activationStart||0}const o=Math.max(n-s,0),i=to(s)+o/1e3;return{type:t,name:t,start:i,end:i,data:{value:o,size:r,nodeId:Rs.mirror.getId(e.element)}}}};function eo(e){return void 0===Qs[e.entryType]?null:Qs[e.entryType](e)}function to(e){return((J.Z1||Jn.performance.timeOrigin)+e)/1e3}let no;class ro extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function so(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,includeReplayStartTimestamp:r,eventContext:s,timestamp:o,session:i,options:a}){const l=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:c,errorIds:u,traceIds:d,initialTimestamp:p}=s,h=de(),f=h.getClient(),_=h.getScope(),m=f&&f.getTransport(),g=f&&f.getDsn();if(!(f&&_&&m&&g&&i.sampled))return;const y={type:Qn,...r?{replay_start_timestamp:p/1e3}:{},timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},v=await async function({client:e,scope:t,replayId:n,event:r}){const s="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),o=await pt(e.getOptions(),r,{event_id:n,integrations:s},t);if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:l}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0"},o}({scope:_,client:f,replayId:t,event:y});if(!v)return f.recordDroppedEvent("event_processor","replay",y),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("An event processor returned `null`, will not send event."));v.contexts={...v.contexts,replay:{...v.contexts&&v.contexts.replay,session_sample_rate:a.sessionSampleRate,error_sample_rate:a.errorSampleRate}};const E=function(e,t,n,r){return Ve(Ke(e,qe(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,l,g,f.getOptions().tunnel);let b;try{b=await m.send(E)}catch(e){throw new Error(er)}if(!b)return b;if("number"==typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new ro(b.statusCode);return b}(e),!0}catch(n){if(n instanceof ro)throw n;if(be("Replays",{_retryCount:t.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&me(n),t.count>=3)throw new Error(`${er} - max retries exceeded`);return t.interval*=++t.count,await new Promise(((n,r)=>{setTimeout((async()=>{try{await so(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}class oo{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._flushLock=null}__init6(){this._lastActivity=(new Date).getTime()}__init7(){this._isEnabled=!1}__init8(){this._isPaused=!1}__init9(){this._hasInitializedCoreListeners=!1}__init10(){this._stopRecording=null}__init11(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""}}constructor({options:e,recordingOptions:t}){oo.prototype.__init.call(this),oo.prototype.__init2.call(this),oo.prototype.__init3.call(this),oo.prototype.__init4.call(this),oo.prototype.__init5.call(this),oo.prototype.__init6.call(this),oo.prototype.__init7.call(this),oo.prototype.__init8.call(this),oo.prototype.__init9.call(this),oo.prototype.__init10.call(this),oo.prototype.__init11.call(this),oo.prototype.__init12.call(this),oo.prototype.__init13.call(this),oo.prototype.__init14.call(this),oo.prototype.__init15.call(this),oo.prototype.__init16.call(this),this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return l(),r=e(),r}function l(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function c(){return s&&clearTimeout(s),s=setTimeout(a,t),i&&void 0===o&&(o=setTimeout(a,i)),r}return c.cancel=l,c.flush=function(){return void 0!==s||void 0!==o?a():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){this._setInitialState(),this._loadAndCheckSession()&&(this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Using compression worker");const t=new Worker(e);return new Us(t)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Using simple buffer"),new Ds}({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording()):this._handleException(new Error("No session found")))}startRecording(){try{this._stopRecording=Rs({...this._recordingOptions,..."error"===this.recordingMode&&{checkoutEveryNms:6e4},emit:this._handleRecordingEmit})}catch(e){this._handleException(e)}}stopRecording(){try{return!!this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0,!0)}catch(e){return this._handleException(e),!1}}stop(e){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t="[Replay] Stopping Replay"+(e?` triggered by ${e}`:"");(this.getOptions()._experiments.traceInternals?console.warn:B.log)(t)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(e){this._handleException(e)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}addUpdate(e){const t=e();"error"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(e){const t=this.getSessionId();if(this._lastActivity&&Bs(this._lastActivity,rr))this.pause();else if(this._loadAndCheckSession(e))return t===this.getSessionId()||(this._triggerFullSnapshot(),!1)}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&me(e)}_loadAndCheckSession(e=tr){const{type:t,session:n}=function({expiry:e,currentSession:t,stickySession:n,sessionSampleRate:r,errorSampleRate:s}){const o=t||n&&function(){if(!("sessionStorage"in Jn))return null;try{const e=Jn.sessionStorage.getItem(Zn);return e?Gs(JSON.parse(e)):null}catch(e){return null}}();if(o){if(!js(o,e))return{type:"saved",session:o};if("error"===o.sampled)return{type:"new",session:Gs({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Session has expired")}return{type:"new",session:Hs({stickySession:n,sessionSampleRate:r,errorSampleRate:s})}}({expiry:e,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});"new"===t&&this._setInitialState();const r=this.getSessionId();return n.id!==r&&(n.previousSessionId=r),this.session=n,!!this.session.sampled||(this.stop("session unsampled"),!1)}_setInitialState(){const e=`${Jn.location.pathname}${Jn.location.hash}${Jn.location.search}`,t=`${Jn.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=(new Date).getTime(),this._context.urls.push(t)}_addListeners(){try{Jn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Jn.addEventListener("blur",this._handleWindowBlur),Jn.addEventListener("focus",this._handleWindowFocus),function(e){const t=de().getClient();if(!t)return;const n=t.recordDroppedEvent.bind(t);t.recordDroppedEvent=(t,r,s)=>(s&&!s.type&&s.event_id&&e.delete(s.event_id),n(t,r,s)),no=n}(this._context.errorIds),this._hasInitializedCoreListeners||(Js(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Jn&&(this._performanceObserver=function(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,r,s]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),o=[],i=[];let a=r.length?r[r.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)o.push(e);else{const t=e;e.duration>0&&!n.find(Ms(t))&&!i.find(Ms(t))&&i.push(t)}else(!a||a.startTimee.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}(this))}_removeListeners(){try{Jn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Jn.removeEventListener("blur",this._handleWindowBlur),Jn.removeEventListener("focus",this._handleWindowFocus),function(){const e=de().getClient();e&&no&&(e.recordDroppedEvent=no)}(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(e){this._handleException(e)}}__init12(){this._handleRecordingEmit=(e,t)=>{this.checkAndHandleExpiredSession()?this.addUpdate((()=>("error"===this.recordingMode&&2===e.type&&this._setInitialState(),zs(this,e,t),2===e.type&&(this.session&&this.session.previousSessionId||("error"===this.recordingMode&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),"session"===this.recordingMode&&this.flushImmediate()),!0)))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] Received replay event after session expired.")}}__init13(){this._handleVisibilityChange=()=>{"visible"===Jn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const e=Ys({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init15(){this._handleWindowFocus=()=>{const e=Ys({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;const t=js(this.session,nr);e&&!t&&this._createCustomBreadcrumb(e),this._conditionalFlush()}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession(nr)?e&&this._createCustomBreadcrumb(e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Taking full rrweb snapshot"),Rs.takeFullSnapshot(!0)}catch(e){this._handleException(e)}}_updateUserActivity(e=(new Date).getTime()){this._lastActivity=e}_updateSessionActivity(e=(new Date).getTime()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{zs(this,{type:Ir.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Xs(this,function(e){return e.map(eo).filter(Boolean)}(e)))}_conditionalFlush(){"error"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent{if(this._isEnabled)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(e)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&Vs(this.session)}}function io(e,t,n,r){const s=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&s.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),s.join(",")}function ao({mask:e,unmask:t,block:n,unblock:r,ignore:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:l,ignoreClass:c}){const u=io(e,[".sentry-mask","[data-sentry-mask]"],a,l),d=io(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:io(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,i),unblockSelector:io(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:io(s,[".sentry-ignore","[data-sentry-ignore]"],c)};return o instanceof RegExp&&(p.blockClass=o),a instanceof RegExp&&(p.maskTextClass=a),p}function lo(){return"undefined"!=typeof window&&(!(0,Z.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const co='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';let uo=!1;class po{static __initStatic(){this.id="Replay"}__init(){this.name=po.id}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,stickySession:n=!0,useCompression:r=!0,_experiments:s={},sessionSampleRate:o,errorSampleRate:i,maskAllText:a=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,mask:u=[],unmask:d=[],block:p=[],unblock:h=[],ignore:f=[],maskFn:_,blockClass:m,blockSelector:g,maskInputOptions:y,maskTextClass:v,maskTextSelector:E,ignoreClass:b}={}){if(po.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:a,maskInputOptions:{...y||{},password:!0},maskTextFn:_,maskInputFn:_,...ao({mask:u,unmask:d,block:p,unblock:h,ignore:f,blockClass:m,blockSelector:g,maskTextClass:v,maskTextSelector:E,ignoreClass:b}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,stickySession:n,sessionSampleRate:o,errorSampleRate:i,useCompression:r,blockAllMedia:c,_experiments:s},"number"==typeof o&&(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: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof i&&(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: ${i} })`),this._initialOptions.errorSampleRate=i),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${co}`:co),this._isInitialized&&lo())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return uo}set _isInitialized(e){uo=e}setupOnce(){lo()&&(this._setup(),setTimeout((()=>this.start())))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}flush(){if(this._replay&&this._replay.isEnabled())return this._replay.flushImmediate()}_setup(){const e=function(e){const t=de().getClient(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...R(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&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):(console.warn("SDK client is not available."),r)}(this._initialOptions);this._replay=new oo({options:e,recordingOptions:this._recordingOptions})}}po.__initStatic();const ho=100,fo=5e3,_o=36e5;function mo(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.info(`[Offline]: ${e}`,t)}function go(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let s,o=fo;function i(e){r&&(s&&clearTimeout(s),s=setTimeout((async()=>{s=void 0;const e=await r.pop();e&&(mo("Attempting to send previously queued event"),l(e).catch((e=>{mo("Failed to retry sending",e)})))}),e),"number"!=typeof s&&s.unref&&s.unref())}function a(){s||(i(o),o=Math.min(2*o,_o))}async function l(e){try{const t=await n.send(e);let r=ho;if(t)if(t.headers&&t.headers["retry-after"])r=Ze(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return i(r),o=fo,t}catch(n){if(r&&await function(e,n,r){return s=["replay_event","replay_recording","client_report"],!Ge(e,((e,t)=>s.includes(t)))&&(!t.shouldStore||t.shouldStore(e,n,r));var s}(e,n,o))return await r.insert(e),a(),mo("Error sending. Event queued",n),{};throw n}}return t.flushAtStartup&&a(),{send:l,flush:e=>n.flush(e)}}}function yo(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function vo(e){return yo(e.getAllKeys())}function Eo(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=yo(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 ze(t,e.textEncoder);await function(e,t,n){return e((e=>vo(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),yo(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},pop:async()=>{try{const t=await function(e){return e((e=>vo(e).then((t=>{if(0!==t.length)return yo(e.get(t[0])).then((n=>(e.delete(t[0]),yo(e.transaction).then((()=>n)))))}))))}(n());if(t)return function(e,t,n){let r="string"==typeof e?t.encode(e):e;function s(e){const t=r.subarray(0,e);return r=r.subarray(e+1),t}function o(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(s(e)))}const i=o(),a=[];for(;r.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?s(t):o()])}return[i,a]}(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch(e){}}}}function bo(e){return function(e){return t=>e({...t,createStore:Eo})}(go(e))}let So={};nt.Sentry&&nt.Sentry.Integrations&&(So=nt.Sentry.Integrations);const To={...So,...r,...s}},267:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function s(){return"npm"}n.d(t,{S:()=>s,n:()=>r})},708:(e,t,n)=>{"use strict";n.d(t,{KV:()=>s,l$:()=>o});var r=n(267);function s(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}e=n.hmd(e)},281:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>p,ph:()=>u,yW:()=>c});var r=n(708),s=n(397);e=n.hmd(e);const o=(0,s.Rf)(),i={nowSeconds:()=>Date.now()/1e3},a=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=o;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},c=i.nowSeconds.bind(i),u=l.nowSeconds.bind(l);let d;const p=(()=>{const{performance:e}=o;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>o,YO:()=>i,n2:()=>s});const s="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return s}function i(e,t,n){const r=n||s,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BASE_TRANSITION:()=>l,BindingTypes:()=>br,CAMELIZE:()=>R,CAPITALIZE:()=>L,CREATE_BLOCK:()=>u,CREATE_COMMENT:()=>f,CREATE_ELEMENT_BLOCK:()=>d,CREATE_ELEMENT_VNODE:()=>h,CREATE_SLOTS:()=>w,CREATE_STATIC:()=>m,CREATE_TEXT:()=>_,CREATE_VNODE:()=>p,CompilerDeprecationTypes:()=>we,ConstantTypes:()=>X,DOMDirectiveTransforms:()=>Wr,DOMErrorCodes:()=>Ur,DOMErrorMessages:()=>Br,DOMNodeTransforms:()=>Yr,ElementTypes:()=>W,ErrorCodes:()=>Le,FRAGMENT:()=>s,GUARD_REACTIVE_PROPS:()=>I,IS_MEMO_SAME:()=>$,IS_REF:()=>j,KEEP_ALIVE:()=>a,MERGE_PROPS:()=>O,NORMALIZE_CLASS:()=>N,NORMALIZE_PROPS:()=>x,NORMALIZE_STYLE:()=>C,Namespaces:()=>z,NodeTypes:()=>Y,OPEN_BLOCK:()=>c,POP_SCOPE_ID:()=>F,PUSH_SCOPE_ID:()=>P,RENDER_LIST:()=>S,RENDER_SLOT:()=>T,RESOLVE_COMPONENT:()=>g,RESOLVE_DIRECTIVE:()=>v,RESOLVE_DYNAMIC_COMPONENT:()=>y,RESOLVE_FILTER:()=>E,SET_BLOCK_TRACKING:()=>D,SUSPENSE:()=>i,TELEPORT:()=>o,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:()=>wr,V_MODEL_DYNAMIC:()=>Nr,V_MODEL_RADIO:()=>Tr,V_MODEL_SELECT:()=>Or,V_MODEL_TEXT:()=>kr,V_ON_WITH_KEYS:()=>xr,V_ON_WITH_MODIFIERS:()=>Cr,V_SHOW:()=>Ir,WITH_CTX:()=>U,WITH_DIRECTIVES:()=>b,WITH_MEMO:()=>V,advancePositionWithClone:()=>rt,advancePositionWithMutation:()=>st,assert:()=>ot,baseCompile:()=>Er,baseParse:()=>nn,buildDirectiveArgs:()=>Qn,buildProps:()=>Kn,buildSlots:()=>Gn,checkCompatEnabled:()=>Ce,compile:()=>Xr,convertToBlock:()=>me,createArrayExpression:()=>Z,createAssignmentExpression:()=>de,createBlockStatement:()=>le,createCacheExpression:()=>ae,createCallExpression:()=>se,createCompilerError:()=>Re,createCompoundExpression:()=>re,createConditionalExpression:()=>ie,createDOMCompilerError:()=>Fr,createForLoopParams:()=>Un,createFunctionExpression:()=>oe,createIfStatement:()=>ue,createInterpolation:()=>ne,createObjectExpression:()=>Q,createObjectProperty:()=>ee,createReturnStatement:()=>he,createRoot:()=>K,createSequenceExpression:()=>pe,createSimpleExpression:()=>te,createStructuralDirectiveTransform:()=>mn,createTemplateLiteral:()=>ce,createTransformContext:()=>hn,createVNodeCall:()=>J,errorMessages:()=>Me,extractIdentifiers:()=>Ve,findDir:()=>it,findProp:()=>at,forAliasRE:()=>bt,generate:()=>vn,generateCodeFrame:()=>r.generateCodeFrame,getBaseTransformPreset:()=>vr,getConstantType:()=>an,getMemoedVNodeCall:()=>Et,getVNodeBlockHelper:()=>_e,getVNodeHelper:()=>fe,hasDynamicKeyVBind:()=>ct,hasScopeRef:()=>vt,helperNameMap:()=>G,injectProp:()=>mt,isCoreComponent:()=>Xe,isFunctionType:()=>$e,isInDestructureAssignment:()=>Fe,isInNewExpression:()=>Ue,isMemberExpression:()=>nt,isMemberExpressionBrowser:()=>et,isMemberExpressionNode:()=>tt,isReferencedIdentifier:()=>Pe,isSimpleIdentifier:()=>Ke,isSlotOutlet:()=>ht,isStaticArgOf:()=>lt,isStaticExp:()=>We,isStaticProperty:()=>Ge,isStaticPropertyKey:()=>He,isTemplateNode:()=>pt,isText:()=>ut,isVSlot:()=>dt,locStub:()=>q,noopDirectiveTransform:()=>Sr,parse:()=>qr,parserOptions:()=>Mr,processExpression:()=>Cn,processFor:()=>Pn,processIf:()=>An,processSlotOutlet:()=>nr,registerRuntimeHelpers:()=>H,resolveComponentType:()=>qn,stringifyExpression:()=>xn,toValidAssetId:()=>yt,trackSlotScopes:()=>jn,trackVForSlotScopes:()=>Vn,transform:()=>fn,transformBind:()=>or,transformElement:()=>Xn,transformExpression:()=>Nn,transformModel:()=>ur,transformOn:()=>sr,transformStyle:()=>Dr,traverseNode:()=>_n,unwrapTSNode:()=>Ye,walkBlockDeclarations:()=>je,walkFunctionParams:()=>Be,walkIdentifiers:()=>De,warnDeprecation:()=>xe});var r=n(933);const s=Symbol(""),o=Symbol(""),i=Symbol(""),a=Symbol(""),l=Symbol(""),c=Symbol(""),u=Symbol(""),d=Symbol(""),p=Symbol(""),h=Symbol(""),f=Symbol(""),_=Symbol(""),m=Symbol(""),g=Symbol(""),y=Symbol(""),v=Symbol(""),E=Symbol(""),b=Symbol(""),S=Symbol(""),T=Symbol(""),w=Symbol(""),k=Symbol(""),O=Symbol(""),N=Symbol(""),C=Symbol(""),x=Symbol(""),I=Symbol(""),A=Symbol(""),R=Symbol(""),L=Symbol(""),M=Symbol(""),D=Symbol(""),P=Symbol(""),F=Symbol(""),U=Symbol(""),B=Symbol(""),j=Symbol(""),V=Symbol(""),$=Symbol(""),G={[s]:"Fragment",[o]:"Teleport",[i]:"Suspense",[a]:"KeepAlive",[l]:"BaseTransition",[c]:"openBlock",[u]:"createBlock",[d]:"createElementBlock",[p]:"createVNode",[h]:"createElementVNode",[f]:"createCommentVNode",[_]:"createTextVNode",[m]:"createStaticVNode",[g]:"resolveComponent",[y]:"resolveDynamicComponent",[v]:"resolveDirective",[E]:"resolveFilter",[b]:"withDirectives",[S]:"renderList",[T]:"renderSlot",[w]:"createSlots",[k]:"toDisplayString",[O]:"mergeProps",[N]:"normalizeClass",[C]:"normalizeStyle",[x]:"normalizeProps",[I]:"guardReactiveProps",[A]:"toHandlers",[R]:"camelize",[L]:"capitalize",[M]:"toHandlerKey",[D]:"setBlockTracking",[P]:"pushScopeId",[F]:"popScopeId",[U]:"withCtx",[B]:"unref",[j]:"isRef",[V]:"withMemo",[$]:"isMemoSame"};function H(e){Object.getOwnPropertySymbols(e).forEach((t=>{G[t]=e[t]}))}const z={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Y={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"},W={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"},q={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:q}}function J(e,t,n,r,s,o,i,a=!1,l=!1,u=!1,d=q){return e&&(a?(e.helper(c),e.helper(_e(e.inSSR,u))):e.helper(fe(e.inSSR,u)),i&&e.helper(b)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:o,directives:i,isBlock:a,disableTracking:l,isComponent:u,loc:d}}function Z(e,t=q){return{type:17,loc:t,elements:e}}function Q(e,t=q){return{type:15,loc:t,properties:e}}function ee(e,t){return{type:16,loc:q,key:(0,r.isString)(e)?te(e,!0):e,value:t}}function te(e,t=!1,n=q,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=q){return{type:8,loc:t,children:e}}function se(e,t=[],n=q){return{type:14,loc:n,callee:e,arguments:t}}function oe(e,t=void 0,n=!1,r=!1,s=q){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function ie(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:q}}function ae(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:q}}function le(e){return{type:21,body:e,loc:q}}function ce(e){return{type:22,elements:e,loc:q}}function ue(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:q}}function de(e,t){return{type:24,left:e,right:t,loc:q}}function pe(e){return{type:25,expressions:e,loc:q}}function he(e){return{type:26,returns:e,loc:q}}function fe(e,t){return e||t?p:h}function _e(e,t){return e||t?u:d}function me(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(fe(r,e.isComponent)),t(c),t(_e(r,e.isComponent)))}const ge=new Uint8Array([123,123]),ye=new Uint8Array([125,125]);function ve(e){return e>=97&&e<=122||e>=65&&e<=90}function Ee(e){return 32===e||10===e||9===e||12===e||13===e}function be(e){return 47===e||62===e||Ee(e)}function Se(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