Current File : //var/www/vinorea/modules/psxmarketingwithgoogle/views/js/fetchWarningMessage.js |
/*! For license information please see fetchWarningMessage.js.LICENSE.txt */
(()=>{var e={410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(561),s=n(481);const i=[];i[0]={w:[0],i:[3,0],"[":[4],o:[7]},i[1]={w:[1],".":[2],"[":[4],o:[7]},i[2]={w:[2],i:[3,0],0:[3,0]},i[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},i[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},i[5]={"'":[4,0],o:8,l:[5,0]},i[6]={'"':[4,0],o:8,l:[6,0]};const a=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function c(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function l(e){const t=[];let n,r,o,s,l,u,d,p=-1,h=0,f=0;const m=[];function g(){const t=e[p+1];if(5===h&&"'"===t||6===h&&'"'===t)return p++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,h=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,a.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;m[1]()}};null!==h;)if(p++,n=e[p],"\\"!==n||!g()){if(s=c(n),d=i[h],l=d[s]||d.l||8,8===l)return;if(h=l[0],void 0!==l[1]&&(u=m[l[1]],u&&(o=n,!1===u())))return;if(7===h)return t}}const u=new Map;function d(e,t){return o.isObject(e)?e[t]:null}const p=e=>e,h=e=>"",f="text",m=e=>0===e.length?"":e.join(""),g=o.toDisplayString;function _(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function y(e={}){const t=e.locale,n=function(e){const t=o.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o.isNumber(e.named.count)||o.isNumber(e.named.n))?o.isNumber(e.named.count)?e.named.count:o.isNumber(e.named.n)?e.named.n:t:t}(e),r=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?e.pluralRules[t]:_,s=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?_:void 0,i=e.list||[],a=e.named||{};function c(t){return(o.isFunction(e.messages)?e.messages(t):!!o.isObject(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):h)}o.isNumber(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);const l=o.isPlainObject(e.processor)&&o.isFunction(e.processor.normalize)?e.processor.normalize:m,u=o.isPlainObject(e.processor)&&o.isFunction(e.processor.interpolate)?e.processor.interpolate:g,d={list:e=>i[e],named:e=>a[e],plural:e=>e[r(n,e.length,s)],linked:(t,...n)=>{const[r,s]=n;let i="text",a="";1===n.length?o.isObject(r)?(a=r.modifier||a,i=r.type||i):o.isString(r)&&(a=r||a):2===n.length&&(o.isString(r)&&(a=r||a),o.isString(s)&&(i=s||i));let l=c(t)(d);return"vnode"===i&&o.isArray(l)&&a&&(l=l[0]),a?(u=a,e.modifiers?e.modifiers[u]:p)(l,i):l;var u},message:c,type:o.isPlainObject(e.processor)&&o.isString(e.processor.type)?e.processor.type:f,interpolate:u,normalize:l};return d}let v=null;const b=S(s.IntlifyDevToolsHooks.FunctionTranslate);function S(e){return t=>v&&v.emit(e,t)}const E={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},T={[E.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[E.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[E.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[E.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function C(e,t,n){return[...new Set([n,...o.isArray(t)?t:o.isObject(t)?Object.keys(t):o.isString(t)?[t]:[n]])]}function k(e,t,n){let r=!0;for(let s=0;s<t.length&&o.isBoolean(r);s++){const i=t[s];o.isString(i)&&(r=w(e,t[s],n))}return r}function w(e,t,n){let r;const o=t.split("-");do{r=O(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function O(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const s=t.replace(/!/g,"");e.push(s),(o.isArray(n)||o.isPlainObject(n))&&n[s]&&(r=n[s])}return r}const I="9.2.2",x="en-US",N=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let A,R,L,M=null,P=null,D=0;function F(e,t,n,r,s){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,s);return o.isString(r)?r:t}return t}const U=e=>e;let B=Object.create(null),$=r.CompileErrorCodes.__EXTEND_POINT__;const j=()=>++$,H={INVALID_ARGUMENT:$,INVALID_DATE_ARGUMENT:j(),INVALID_ISO_DATE_ARGUMENT:j(),__EXTEND_POINT__:j()};function V(e){return r.createCompileError(e,null,void 0)}const W=()=>"",z=e=>o.isFunction(e);function G(e,t,n,r,s,i){const{messages:a,onWarn:c,messageResolver:l,localeFallbacker:u}=e,d=u(e,r,n);let p,h={},f=null;for(let n=0;n<d.length&&(p=d[n],h=a[p]||{},null===(f=l(h,t))&&(f=h[t]),!o.isString(f)&&!o.isFunction(f));n++){const n=F(e,t,p,0,"translate");n!==t&&(f=n)}return[f,p,h]}function q(e,t,n,r,s,i){const{messageCompiler:a,warnHtmlMessage:c}=e;if(z(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}const l=a(r,function(e,t,n,r,s,i){return{warnHtmlMessage:s,onError:e=>{throw i&&i(e),e},onCacheKey:e=>o.generateFormatCacheKey(t,n,e)}}(0,n,s,0,c,i));return l.locale=n,l.key=t,l.source=r,l}function X(...e){const[t,n,r]=e,s={};if(!o.isString(t)&&!o.isNumber(t)&&!z(t))throw V(H.INVALID_ARGUMENT);const i=o.isNumber(t)?String(t):(z(t),t);return o.isNumber(n)?s.plural=n:o.isString(n)?s.default=n:o.isPlainObject(n)&&!o.isEmptyObject(n)?s.named=n:o.isArray(n)&&(s.list=n),o.isNumber(r)?s.plural=r:o.isString(r)?s.default=r:o.isPlainObject(r)&&o.assign(s,r),[i,s]}const Y=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function K(...e){const[t,n,r,s]=e,i={};let a,c={};if(o.isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw V(H.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch(e){throw V(H.INVALID_ISO_DATE_ARGUMENT)}}else if(o.isDate(t)){if(isNaN(t.getTime()))throw V(H.INVALID_DATE_ARGUMENT);a=t}else{if(!o.isNumber(t))throw V(H.INVALID_ARGUMENT);a=t}return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach((e=>{Y.includes(e)?c[e]=n[e]:i[e]=n[e]})),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(c=r),o.isPlainObject(s)&&(c=s),[i.key||"",a,i,c]}const J=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Q(...e){const[t,n,r,s]=e,i={};let a={};if(!o.isNumber(t))throw V(H.INVALID_ARGUMENT);const c=t;return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach((e=>{J.includes(e)?a[e]=n[e]:i[e]=n[e]})),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(a=r),o.isPlainObject(s)&&(a=s),[i.key||"",c,i,a]}t.CompileErrorCodes=r.CompileErrorCodes,t.createCompileError=r.createCompileError,t.CoreErrorCodes=H,t.CoreWarnCodes=E,t.DATETIME_FORMAT_OPTIONS_KEYS=Y,t.DEFAULT_LOCALE=x,t.DEFAULT_MESSAGE_DATA_TYPE=f,t.MISSING_RESOLVE_VALUE="",t.NOT_REOSLVED=-1,t.NUMBER_FORMAT_OPTIONS_KEYS=J,t.VERSION=I,t.clearCompileCache=function(){B=Object.create(null)},t.clearDateTimeFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}},t.clearNumberFormat=function(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}},t.compileToFunction=function(e,t={}){{const n=(t.onCacheKey||U)(e),o=B[n];if(o)return o;let s=!1;const i=t.onError||r.defaultOnError;t.onError=e=>{s=!0,i(e)};const{code:a}=r.baseCompile(e,t),c=new Function(`return ${a}`)();return s?c:B[n]=c}},t.createCoreContext=function(e={}){const t=o.isString(e.version)?e.version:I,n=o.isString(e.locale)?e.locale:x,r=o.isArray(e.fallbackLocale)||o.isPlainObject(e.fallbackLocale)||o.isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=o.isPlainObject(e.messages)?e.messages:{[n]:{}},i=o.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=o.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},c=o.assign({},e.modifiers||{},{upper:(e,t)=>"text"===t&&o.isString(e)?e.toUpperCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&o.isString(e)?e.toLowerCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&o.isString(e)?N(e):"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?N(e.children):e}),l=e.pluralRules||{},u=o.isFunction(e.missing)?e.missing:null,p=!o.isBoolean(e.missingWarn)&&!o.isRegExp(e.missingWarn)||e.missingWarn,h=!o.isBoolean(e.fallbackWarn)&&!o.isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=o.isFunction(e.postTranslation)?e.postTranslation:null,_=o.isPlainObject(e.processor)?e.processor:null,y=!o.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter,b=o.isFunction(e.messageCompiler)?e.messageCompiler:A,S=o.isFunction(e.messageResolver)?e.messageResolver:R||d,E=o.isFunction(e.localeFallbacker)?e.localeFallbacker:L||C,T=o.isObject(e.fallbackContext)?e.fallbackContext:void 0,k=o.isFunction(e.onWarn)?e.onWarn:o.warn,w=e,O=o.isObject(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=o.isObject(w.__numberFormatters)?w.__numberFormatters:new Map,P=o.isObject(w.__meta)?w.__meta:{};D++;const F={version:t,cid:D,locale:n,fallbackLocale:r,messages:s,modifiers:c,pluralRules:l,missing:u,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:m,postTranslation:g,processor:_,warnHtmlMessage:y,escapeParameter:v,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:T,onWarn:k,__meta:P};return F.datetimeFormats=i,F.numberFormats=a,F.__datetimeFormatters=O,F.__numberFormatters=M,F},t.createCoreError=V,t.createMessageContext=y,t.datetime=function(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:c}=e,[l,u,d,p]=K(...t);o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=o.isString(d.locale)?d.locale:e.locale,m=a(e,s,f);if(!o.isString(l)||""===l)return new Intl.DateTimeFormat(f,p).format(u);let g,_={},y=null;for(let t=0;t<m.length&&(g=m[t],_=n[g]||{},y=_[l],!o.isPlainObject(y));t++)F(e,l,g,0,"datetime format");if(!o.isPlainObject(y)||!o.isString(g))return r?-1:l;let v=`${g}__${l}`;o.isEmptyObject(p)||(v=`${v}__${JSON.stringify(p)}`);let b=c.get(v);return b||(b=new Intl.DateTimeFormat(g,o.assign({},y,p)),c.set(v,b)),h?b.formatToParts(u):b.format(u)},t.fallbackWithLocaleChain=function(e,t,n){const r=o.isString(n)?n:x,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;o.isArray(e);)e=k(i,e,t);const a=o.isArray(t)||!o.isPlainObject(t)?t:t.default?t.default:null;e=o.isString(a)?[a]:a,o.isArray(e)&&k(i,e,!1),s.__localeChainCache.set(r,i)}return i},t.fallbackWithSimple=C,t.getAdditionalMeta=()=>M,t.getDevToolsHook=function(){return v},t.getFallbackContext=()=>P,t.getWarnMessage=function(e,...t){return o.format(T[e],...t)},t.handleMissing=F,t.initI18nDevTools=function(e,t,n){v&&v.emit(s.IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})},t.isMessageFunction=z,t.isTranslateFallbackWarn=function(e,t){return e instanceof RegExp?e.test(t):e},t.isTranslateMissingWarn=function(e,t){return e instanceof RegExp?e.test(t):e},t.number=function(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:c}=e,[l,u,d,p]=Q(...t);o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,f=o.isString(d.locale)?d.locale:e.locale,m=a(e,s,f);if(!o.isString(l)||""===l)return new Intl.NumberFormat(f,p).format(u);let g,_={},y=null;for(let t=0;t<m.length&&(g=m[t],_=n[g]||{},y=_[l],!o.isPlainObject(y));t++)F(e,l,g,0,"number format");if(!o.isPlainObject(y)||!o.isString(g))return r?-1:l;let v=`${g}__${l}`;o.isEmptyObject(p)||(v=`${v}__${JSON.stringify(p)}`);let b=c.get(v);return b||(b=new Intl.NumberFormat(g,o.assign({},y,p)),c.set(v,b)),h?b.formatToParts(u):b.format(u)},t.parse=l,t.parseDateTimeArgs=K,t.parseNumberArgs=Q,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(!o.isObject(e))return null;let n=u.get(t);if(n||(n=l(t),n&&u.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const e=s[n[i]];if(void 0===e)return null;s=e,i++}return s},t.resolveWithKeyValue=d,t.setAdditionalMeta=e=>{M=e},t.setDevToolsHook=function(e){v=e},t.setFallbackContext=e=>{P=e},t.translate=function(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:a,messages:c}=e,[l,u]=X(...t),d=(o.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,o.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,o.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter),p=!!u.resolvedMessage,h=o.isString(u.default)||o.isBoolean(u.default)?o.isBoolean(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",f=n||""!==h,m=o.isString(u.locale)?u.locale:e.locale;d&&function(e){o.isArray(e.list)?e.list=e.list.map((e=>o.isString(e)?o.escapeHtml(e):e)):o.isObject(e.named)&&Object.keys(e.named).forEach((t=>{o.isString(e.named[t])&&(e.named[t]=o.escapeHtml(e.named[t]))}))}(u);let[g,_,v]=p?[l,m,c[m]||{}]:G(e,l,m,a),b=g,S=l;if(p||o.isString(b)||z(b)||f&&(b=h,S=b),!(p||(o.isString(b)||z(b))&&o.isString(_)))return s?-1:l;let E=!1;const T=z(b)?b:q(e,l,_,b,S,(()=>{E=!0}));if(E)return b;const C=function(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:a,fallbackLocale:c,fallbackWarn:l,missingWarn:u,fallbackContext:d}=e,p={locale:t,modifiers:s,pluralRules:i,messages:r=>{let s=a(n,r);if(null==s&&d){const[,,e]=G(d,r,t,c);s=a(e,r)}if(o.isString(s)){let n=!1;const o=q(e,r,t,s,r,(()=>{n=!0}));return n?W:o}return z(s)?s:W}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),o.isNumber(r.plural)&&(p.pluralIndex=r.plural),p}(e,_,v,u),k=function(e,t,n){return t(n)}(0,T,y(C));return r?r(k,l):k},t.translateDevTools=b,t.updateFallbackLocale=function(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}},585:(e,t,n)=>{"use strict";e.exports=n(410)},762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"}},481:(e,t,n)=>{"use strict";e.exports=n(762)},680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(561),o=n(57);const s={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},i={[s.EXPECTED_TOKEN]:"Expected token: '{0}'",[s.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[s.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[s.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[s.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[s.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[s.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[s.EMPTY_PLACEHOLDER]:"Empty placeholder",[s.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[s.INVALID_LINKED_FORMAT]:"Invalid linked format",[s.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[s.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[s.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[s.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function a(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}const c={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function l(e,t,n){return{line:e,column:t,offset:n}}function u(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const d=" ",p="\r",h="\n",f=String.fromCharCode(8232),m=String.fromCharCode(8233);function g(e){const t=e;let n=0,r=1,o=1,s=0;const i=e=>t[e]===p&&t[e+1]===h,a=e=>t[e]===m,c=e=>t[e]===f,l=e=>i(e)||a(e)||c(e)?h:t[e];function u(){return s=0,(i(e=n)||(e=>t[e]===h)(e)||a(e)||c(e))&&(r++,o=0),i(n)&&n++,n++,o++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>s,charAt:l,currentChar:()=>l(n),currentPeek:()=>l(n+s),next:u,peek:function(){return i(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,r=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)u();s=0}}}const _=void 0,y="'",v="tokenizer";function b(e,t={}){const n=!1!==t.location,r=g(e),o=()=>r.index(),i=()=>l(r.line(),r.column(),r.index()),c=i(),p=o(),f={currentType:14,offset:p,startLoc:c,endLoc:c,lastType:14,lastOffset:p,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},m=()=>f,{onError:b}=t;function S(e,t,n,...r){const o=m();if(t.column+=n,t.offset+=n,b){const n=a(e,u(o.startLoc,t),{domain:v,args:r});b(n)}}function E(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=u(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const T=e=>E(e,14);function C(e,t){return e.currentChar()===t?(e.next(),t):(S(s.EXPECTED_TOKEN,i(),0,t),"")}function k(e){let t="";for(;e.currentPeek()===d||e.currentPeek()===h;)t+=e.currentPeek(),e.peek();return t}function w(e){const t=k(e);return e.skipToPeek(),t}function O(e){if(e===_)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function I(e){k(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function x(e,t=!0){const n=(t=!1,r="",o=!1)=>{const s=e.currentPeek();return"{"===s?"%"!==r&&t:"@"!==s&&s?"%"===s?(e.peek(),n(t,"%",!0)):"|"===s?!("%"!==r&&!o&&(r===d||r===h)):s===d?(e.peek(),n(!0,d,o)):s!==h||(e.peek(),n(!0,h,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function N(e,t){const n=e.currentChar();return n===_?_:t(n)?(e.next(),n):null}function A(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function R(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function L(e){return N(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function M(e){let t="",n="";for(;t=R(e);)n+=t;return n}function P(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!x(e))break;t+=n,e.next()}else if(n===d||n===h)if(x(e))t+=n,e.next();else{if(I(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function D(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return F(e,t,4);case"U":return F(e,t,6);default:return S(s.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function F(e,t,n){C(e,t);let r="";for(let o=0;o<n;o++){const n=L(e);if(!n){S(s.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function U(e){w(e);const t=C(e,"|");return w(e),t}function B(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&S(s.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=E(t,2,"{"),w(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&S(s.EMPTY_PLACEHOLDER,i(),0),e.next(),n=E(t,3,"}"),t.braceNest--,t.braceNest>0&&w(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n=$(e,t)||T(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(I(e))return t.braceNest>0&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return S(s.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,j(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=O(e.currentPeek());return e.resetPeek(),r}(e,t))return n=E(t,5,function(e){w(e);let t="",n="";for(;t=A(e);)n+=t;return e.currentChar()===_&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),n}(e)),w(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=function(e){if(e===_)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=E(t,6,function(e){w(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${M(e)}`):t+=M(e),e.currentChar()===_&&S(s.UNTERMINATED_CLOSING_BRACE,i(),0),t}(e)),w(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;k(e);const r=e.currentPeek()===y;return e.resetPeek(),r}(e,t))return n=E(t,7,function(e){w(e),C(e,"'");let t="",n="";const r=e=>e!==y&&e!==h;for(;t=N(e,r);)n+="\\"===t?D(e):t;const o=e.currentChar();return o===h||o===_?(S(s.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),o===h&&(e.next(),C(e,"'")),n):(C(e,"'"),n)}(e)),w(e),n;if(!r&&!o&&!a)return n=E(t,13,function(e){w(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==d&&e!==h;for(;t=N(e,r);)n+=t;return n}(e)),S(s.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),w(e),n}return n}function $(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==h&&o!==d||S(s.INVALID_LINKED_FORMAT,i(),0),o){case"@":return e.next(),r=E(t,8,"@"),t.inLinked=!0,r;case".":return w(e),e.next(),E(t,9,".");case":":return w(e),e.next(),E(t,10,":");default:return I(e)?(r=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;k(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;k(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(w(e),$(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;k(e);const r=O(e.currentPeek());return e.resetPeek(),r}(e,t)?(w(e),E(t,12,function(e){let t="",n="";for(;t=A(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?O(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===d||!t)&&(t===h?(e.peek(),r()):O(t))},o=r();return e.resetPeek(),o}(e,t)?(w(e),"{"===o?B(e,t)||r:E(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===d?r:o===h?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&S(s.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let n={type:14};if(t.braceNest>0)return B(e,t)||T(t);if(t.inLinked)return $(e,t)||T(t);switch(e.currentChar()){case"{":return B(e,t)||T(t);case"}":return S(s.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),E(t,3,"}");case"@":return $(e,t)||T(t);default:if(I(e))return n=E(t,1,U(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=k(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?E(t,0,P(e)):E(t,4,function(e){w(e);const t=e.currentChar();return"%"!==t&&S(s.EXPECTED_TOKEN,i(),0,t),e.next(),"%"}(e));if(x(e))return E(t,0,P(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=f;return f.lastType=e,f.lastOffset=t,f.lastStartLoc=n,f.lastEndLoc=s,f.offset=o(),f.startLoc=i(),r.currentChar()===_?E(f,14):j(r,f)},currentOffset:o,currentPosition:i,context:m}}const S="parser",E=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function T(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function C(e={}){const t=!1!==e.location,{onError:n}=e;function o(e,t,r,o,...s){const i=e.currentPosition();if(i.offset+=o,i.column+=o,n){const e=a(t,u(r,i),{domain:S,args:s});n(e)}}function i(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function c(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function l(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,c(r,e.currentOffset(),e.currentPosition()),r}function d(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(5,r,o);return s.index=parseInt(t,10),e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function p(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(4,r,o);return s.key=t,e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function h(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(9,r,o);return s.value=t.replace(E,T),e.nextToken(),c(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=i(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:a}=n,l=i(8,r,a);return 12!==t.type?(o(e,s.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",c(l,r,a),{nextConsumeToken:t,node:l}):(null==t.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,k(t)),l.value=t.value||"",c(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=function(e,t){const n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,c(r,e.currentOffset(),e.currentPosition()),r}(e,r.value||"");break;case 5:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=p(e,r.value||"");break;case 6:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=d(e,r.value||"");break;case 7:null==r.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=h(e,r.value||"");break;default:o(e,s.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=i(7,a.offset,a.startLoc);return l.value="",c(l,a.offset,a.startLoc),n.key=l,c(n,a.offset,a.startLoc),{nextConsumeToken:r,node:n}}return c(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=i(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let r=null;do{const i=r||e.nextToken();switch(r=null,i.type){case 0:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(l(e,i.value||""));break;case 6:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(d(e,i.value||""));break;case 5:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(p(e,i.value||""));break;case 7:null==i.value&&o(e,s.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(i)),n.items.push(h(e,i.value||""));break;case 8:const a=f(e);n.items.push(a.node),r=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return c(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const a=b(n,r.assign({},e)),l=a.context(),u=i(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=function(e){const t=e.context(),{offset:n,startLoc:r}=t,a=m(e);return 14===t.currentType?a:function(e,t,n,r){const a=e.context();let l=0===r.items.length;const u=i(1,t,n);u.cases=[],u.cases.push(r);do{const t=m(e);l||(l=0===t.items.length),u.cases.push(t)}while(14!==a.currentType);return l&&o(e,s.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),c(u,e.currentOffset(),e.currentPosition()),u}(e,n,r,a)}(a),14!==l.currentType&&o(a,s.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,n[l.offset]||""),c(u,a.currentOffset(),a.currentPosition()),u}}}function k(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function w(e,t){for(let n=0;n<e.length;n++)O(e[n],t)}function O(e,t){switch(e.type){case 1:w(e.cases,t),t.helper("plural");break;case 2:w(e.items,t);break;case 6:O(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function I(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};function l(e,t){var n,r;a.code+=e,a.map&&(t&&t.loc&&t.loc!==c&&(n=t.loc.start,r=function(e){switch(e.type){case 3:case 9:case 8:case 7:return e.value;case 5:return e.index.toString();case 4:return e.key;default:return}}(t),a.map.addMapping({name:r,source:a.filename,original:{line:n.line,column:n.column-1},generated:{line:a.line,column:a.column-1}})),function(e,t,n=t.length){let r=0,o=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,o=e);e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o}(a,e))}function u(e,t=!0){const n=t?s:"";l(i?n+" ".repeat(e):n)}return n&&(a.map=new o.SourceMapGenerator,a.map.setSourceContent(r,a.source)),{context:()=>a,push:l,indent:function(e=!0){const t=++a.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&u(t)},newline:function(){u(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}function x(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?x(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(x(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(x(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),x(e,t.key),t.modifier?(e.push(", "),x(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}t.CompileErrorCodes=s,t.ERROR_DOMAIN=S,t.LocationStub=c,t.baseCompile=function(e,t={}){const n=r.assign({},t),o=C(n).parse(e);return function(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&O(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(o,n),((e,t={})=>{const n=r.isString(t.mode)?t.mode:"normal",o=r.isString(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=I(e,{mode:n,filename:o,sourceMap:s,breakLineCode:i,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),c.length>0&&(l.push(`const { ${c.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),x(l,e),l.deindent(a),l.push("}");const{code:u,map:d}=l.context();return{ast:e,code:u,map:d?d.toJSON():void 0}})(o,n)},t.createCompileError=a,t.createLocation=u,t.createParser=C,t.createPosition=l,t.defaultOnError=function(e){throw e},t.errorMessages=i},1:(e,t,n)=>{"use strict";e.exports=n(680)},458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"!=typeof window,o=/\{([0-9a-zA-Z]+)\}/g,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=Object.assign;let c;const l=Object.prototype.hasOwnProperty,u=Array.isArray,d=e=>"function"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,f=e=>h.call(e),m=e=>"[object Object]"===f(e);t.assign=a,t.createEmitter=function(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}},t.escapeHtml=function(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},t.format=function(e,...t){return 1===t.length&&p(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(o,((e,n)=>t.hasOwnProperty(n)?t[n]:""))},t.friendlyJSONstringify=i,t.generateCodeFrame=function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const s=[];for(let e=0;e<r.length;e++)if(o+=r[e].length+1,o>=t){for(let i=e-2;i<=e+2||n>o;i++){if(i<0||i>=r.length)continue;const a=i+1;s.push(`${a}${" ".repeat(3-String(a).length)}| ${r[i]}`);const c=r[i].length;if(i===e){const e=t-(o-c)+1,r=Math.max(1,n>o?c-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(i>e){if(n>o){const e=Math.max(Math.min(n-o,c),1);s.push(" | "+"^".repeat(e))}o+=c+1}}break}return s.join("\n")},t.generateFormatCacheKey=(e,t,n)=>i({l:e,k:t,s:n}),t.getGlobalThis=()=>c||(c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),t.hasOwn=function(e,t){return l.call(e,t)},t.inBrowser=r,t.isArray=u,t.isBoolean=e=>"boolean"==typeof e,t.isDate=e=>"[object Date]"===f(e),t.isEmptyObject=e=>m(e)&&0===Object.keys(e).length,t.isFunction=d,t.isNumber=e=>"number"==typeof e&&isFinite(e),t.isObject=p,t.isPlainObject=m,t.isPromise=e=>p(e)&&d(e.then)&&d(e.catch),t.isRegExp=e=>"[object RegExp]"===f(e),t.isString=e=>"string"==typeof e,t.isSymbol=e=>"symbol"==typeof e,t.makeSymbol=e=>s?Symbol(e):e,t.mark=void 0,t.measure=void 0,t.objectToString=h,t.toDisplayString=e=>null==e?"":u(e)||m(e)&&e.toString===h?JSON.stringify(e,null,2):String(e),t.toTypeString=f,t.warn=function(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}},561:(e,t,n)=>{"use strict";e.exports=n(458)},115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breadcrumbs:()=>Cs,BrowserClient:()=>Co,BrowserProfilingIntegration:()=>Rh,BrowserTracing:()=>Hp,Dedupe:()=>Os,Feedback:()=>Pd,FunctionToString:()=>Yt,GlobalHandlers:()=>Ms,HttpContext:()=>$s,Hub:()=>Xe,InboundFilters:()=>en,Integrations:()=>Mh,LinkedErrors:()=>Vs,ModuleMetadata:()=>An,Replay:()=>Iu,ReplayCanvas:()=>ad,SDK_VERSION:()=>ze,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>Mn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>Pn,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>Ln,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>Rn,Scope:()=>Ve,TryCatch:()=>qs,WINDOW:()=>io,addBreadcrumb:()=>yt,addEventProcessor:()=>Xn,addGlobalEventProcessor:()=>he,addIntegration:()=>Vt,addTracingExtensions:()=>jr,breadcrumbsIntegration:()=>Ts,browserApiErrorsIntegration:()=>Gs,browserProfilingIntegration:()=>Ah,browserTracingIntegration:()=>Gp,captureConsoleIntegration:()=>Fd,captureEvent:()=>gt,captureException:()=>ft,captureMessage:()=>mt,captureSession:()=>Ut,captureUserFeedback:()=>si,chromeStackLineParser:()=>Fo,close:()=>Nt,configureScope:()=>_t,contextLinesIntegration:()=>$d,continueTrace:()=>_r,createTransport:()=>qr,createUserFeedbackEnvelope:()=>To,debugIntegration:()=>Hd,dedupeIntegration:()=>zd,defaultIntegrations:()=>Qs,defaultRequestInstrumentationOptions:()=>Dp,defaultStackLineParsers:()=>qo,defaultStackParser:()=>Xo,endSession:()=>Dt,eventFromException:()=>yo,eventFromMessage:()=>vo,exceptionFromError:()=>ho,extraErrorDataIntegration:()=>Jd,extractTraceparentData:()=>ar,feedbackIntegration:()=>Md,flush:()=>xt,forceLoad:()=>ni,functionToStringIntegration:()=>Xt,geckoStackLineParser:()=>$o,getActiveSpan:()=>gr,getActiveTransaction:()=>ir,getClient:()=>Rt,getCurrentHub:()=>Je,getCurrentScope:()=>Mt,getDefaultIntegrations:()=>Zs,getHubFromCarrier:()=>et,getReplay:()=>Nu,getSpanStatusFromHttpCode:()=>wr,globalHandlersIntegration:()=>Ls,httpClientIntegration:()=>Zd,httpContextIntegration:()=>Bs,inboundFiltersIntegration:()=>Zt,init:()=>ei,instrumentOutgoingRequests:()=>Fp,isInitialized:()=>Lt,lastEventId:()=>At,linkedErrorsIntegration:()=>Hs,makeBrowserOfflineTransport:()=>ih,makeFetchTransport:()=>No,makeMain:()=>Ke,makeMultiplexedTransport:()=>Kr,makeXHRTransport:()=>Ro,metrics:()=>no,moduleMetadataIntegration:()=>Nn,onLoad:()=>ri,onProfilingStartRouteTransaction:()=>Ih,opera10StackLineParser:()=>Wo,opera11StackLineParser:()=>Go,parameterize:()=>ro,replayCanvasIntegration:()=>id,replayIntegration:()=>Ou,reportingObserverIntegration:()=>cp,rewriteFramesIntegration:()=>hp,sendFeedback:()=>_d,sessionTimingIntegration:()=>mp,setContext:()=>vt,setCurrentClient:()=>oo,setExtra:()=>St,setExtras:()=>bt,setHttpStatus:()=>Ir,setMeasurement:()=>so,setTag:()=>Tt,setTags:()=>Et,setUser:()=>Ct,showReportDialog:()=>ti,spanStatusfromHttpCode:()=>Or,startBrowserTracingNavigationSpan:()=>Xp,startBrowserTracingPageLoadSpan:()=>qp,startInactiveSpan:()=>mr,startSession:()=>Pt,startSpan:()=>hr,startSpanManual:()=>fr,startTransaction:()=>It,trace:()=>pr,winjsStackLineParser:()=>Ho,withActiveSpan:()=>Ot,withIsolationScope:()=>wt,withScope:()=>kt,wrap:()=>oi});var r={};n.r(r),n.d(r,{FunctionToString:()=>Yt,InboundFilters:()=>en,LinkedErrors:()=>ln});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>Cs,Dedupe:()=>Os,GlobalHandlers:()=>Ms,HttpContext:()=>$s,LinkedErrors:()=>Vs,TryCatch:()=>qs});const s=Object.prototype.toString;function i(e){switch(s.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function a(e,t){return s.call(e)===`[object ${t}]`}function c(e){return a(e,"ErrorEvent")}function l(e){return a(e,"DOMError")}function u(e){return a(e,"String")}function d(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||d(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return a(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function v(e){return e&&e.Math==Math?e:void 0}const b="object"==typeof globalThis&&v(globalThis)||"object"==typeof window&&v(window)||"object"==typeof self&&v(self)||"object"==typeof n.g&&v(n.g)||function(){return this}()||{};function S(){return b}function E(e,t,n){const r=n||b,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const T=S(),C=80;function k(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||C;for(;n&&s++<r&&(l=w(n,u),!("html"===l||s>1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return"<unknown>"}}function w(e,t){const n=e,r=[];let o,s,i,a,c;if(!n||!n.tagName)return"";if(T.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&u(o))for(s=o.split(/\s+/),c=0;c<s.length;c++)r.push(`.${s[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)i=d[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}function O(){try{return T.document.location.href}catch(e){return""}}function I(e){return T.document&&T.document.querySelector?T.document.querySelector(e):null}function x(e){if(!T.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const N="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,A=["debug","info","warn","error","log","assert","trace"],R={};function L(e){if(!("console"in b))return e();const t=b.console,n={},r=Object.keys(R);r.forEach((e=>{const r=R[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const M=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return N?A.forEach((n=>{t[n]=(...t)=>{e&&L((()=>{b.console[n](`Sentry Logger [${n}]:`,...t)}))}})):A.forEach((e=>{t[e]=()=>{}})),t}();function P(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function D(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let s=Math.min(o+140,r);return s>r-5&&(s=r),s===r&&(o=Math.max(s-140,0)),n=n.slice(o,s),o>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n}function F(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{y(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function U(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!u(e)&&(a(t,"RegExp")?t.test(e):!!u(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function B(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&j(o,r),e[t]=o}function $(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){N&&M.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function j(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,$(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function V(e){if(i(e))return{message:e.message,name:e.name,stack:e.stack,...z(e)};if(f(e)){const t={type:e.type,target:W(e.target),currentTarget:W(e.currentTarget),...z(e)};return"undefined"!=typeof CustomEvent&&_(e,CustomEvent)&&(t.detail=e.detail),t}return e}function W(e){try{return"undefined"!=typeof Element&&_(e,Element)?k(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function z(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function G(e){return q(e,new Map)}function q(e,t){if(function(e){if(!h(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=q(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(q(e,t))})),r}return e}const X="production",Y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function K(){const e=b,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function J(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Q(e){const{message:t,event_id:n}=e;if(t)return t;const r=J(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Z(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ee(e,t){const n=J(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function te(e){if(e&&e.__sentry_captured__)return!0;try{$(e,"__sentry_captured__",!0)}catch(e){}return!1}function ne(e){return Array.isArray(e)?e:[e]}const re=1e3;function oe(){return Date.now()/re}const se=function(){const{performance:e}=b;if(!e||!e.now)return oe;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/re}();let ie;const ae=(()=>{const{performance:e}=b;if(!e||!e.now)return void(ie="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return s||a<t?o<=a?(ie="timeOrigin",e.timeOrigin):(ie="navigationStart",i):(ie="dateNow",r)})();var ce;function le(e){return new de((t=>{t(e)}))}function ue(e){return new de(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ce||(ce={}));class de{constructor(e){de.prototype.__init.call(this),de.prototype.__init2.call(this),de.prototype.__init3.call(this),de.prototype.__init4.call(this),this._state=ce.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new de(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new de(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(ce.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ce.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ce.PENDING&&(m(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ce.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ce.RESOLVED&&e[1](this._value),this._state===ce.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function pe(){return E("globalEventProcessors",(()=>[]))}function he(e){pe().push(e)}function fe(e,t,n,r=0){return new de(((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);Y&&i.id&&null===a&&M.log(`Event processor "${i.id}" dropped event`),m(a)?a.then((t=>fe(e,t,n,r+1).then(o))).then(null,s):fe(e,a,n,r+1).then(o).then(null,s)}}))}function me(e){const t=se(),n={sid:K(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return G({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ge(n,e),n}function ge(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||se(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:K()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function _e(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),ge(e,n)}function ye(e){return e.transaction}const ve="baggage",be="sentry-",Se=/^sentry-/,Ee=8192;function Te(e){if(!u(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=ke(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=ke(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Se)&&(e[t.slice(be.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function Ce(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?o:`${e},${o}`;return s.length>Ee?(N&&M.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${be}${t}`]=n),e)),{}))}function ke(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const we=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Oe(e){if(!e)return;const t=e.match(we);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ie(e,t){const n=Oe(e),r=Te(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{};return n?{traceId:o||K(),parentSpanId:s||K().substring(16),spanId:K().substring(16),sampled:i,dsc:r||{}}:{traceId:o||K(),spanId:K().substring(16)}}function xe(e=K(),t=K().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Ne=1;function Ae(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:i,tags:a,origin:c}=Pe(e);return G({data:r,op:o,parent_span_id:s,span_id:t,status:i,tags:a,trace_id:n,origin:c})}function Re(e){const{traceId:t,spanId:n}=e.spanContext();return xe(t,n,De(e))}function Le(e){return"number"==typeof e?Me(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Me(e.getTime()):se()}function Me(e){return e>9999999999?e/1e3:e}function Pe(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function De(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Ne)}function Fe(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},i=G({environment:r.environment||X,release:r.release,user_segment:s,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",i),i}function Ue(e){const t=Rt();if(!t)return{};const n=Fe(Pe(e).trace_id||"",t,Mt()),r=ye(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:s,source:i}=r.metadata;null!=s&&(n.sample_rate=`${s}`);const a=Pe(r);return i&&"url"!==i&&(n.transaction=a.description),n.sampled=String(De(r)),t.emit&&t.emit("createDsc",n),n}function Be(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,c=G(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=G(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=G(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=G(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ae(t),...e.contexts};const n=ye(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ue(t),...e.sdkProcessingMetadata};const r=Pe(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?ne(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function $e(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;je(e,"extra",n),je(e,"tags",r),je(e,"user",o),je(e,"contexts",s),je(e,"sdkProcessingMetadata",a),i&&(e.level=i),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function je(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let He;class Ve{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=We()}static clone(e){return e?e.clone():new Ve}clone(){const e=new Ve;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ge(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof Ve){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(h(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=We(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:oe(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:s,_level:i,_fingerprint:a,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:s,level:i,fingerprint:a||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return Be(e,this.getScopeData()),fe([...n,...pe(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:K();if(!this._client)return M.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:K();if(!this._client)return M.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:K();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(M.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function We(){return{traceId:K(),spanId:K().substring(16)}}const ze="7.119.1",Ge=parseFloat(ze),qe=100;class Xe{constructor(e,t,n,r=Ge){let o,s;this._version=r,t?o=t:(o=new Ve,o.setClient(e)),n?s=n:(s=new Ve,s.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return m(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:K(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:K(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:K();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=qe}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const i={timestamp:oe(),...e},a=o?L((()=>o(i,t))):i;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Ke(this);try{e(this)}finally{Ke(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Y&&M.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Y&&!n&&(this.getClient()?M.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):M.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&_e(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=X}=n&&n.getOptions()||{},{userAgent:s}=b.navigator||{},i=me({release:r,environment:o,user:t.getUser(),...s&&{userAgent:s},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&ge(a,{status:"exited"}),this.endSession(),t.setSession(i),i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=Ye().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Y&&M.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ye(){return b.__SENTRY__=b.__SENTRY__||{extensions:{},hub:void 0},b}function Ke(e){const t=Ye(),n=et(t);return tt(t,e),n}function Je(){const e=Ye();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ye()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!et(e).isOlderThan(Ge)||tt(e,new Xe),et(e);var t}(e)}function Qe(){return Je().getIsolationScope()}function Ze(e,t={}){const n=Ye();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function et(e){return E("hub",(()=>new Xe),e)}function tt(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const nt=50,rt=/\(error: (.*)\)/,ot=/captureMessage|captureException/;function st(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e<o.length;e++){const n=o[e];if(n.length>1024)continue;const s=rt.test(n)?n.replace(rt,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){r.push(t);break}}if(r.length>=nt)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ot.test(t[t.length-1].function||"")&&(t.pop(),ot.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,nt).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const it="<anonymous>";function at(e){try{return e&&"function"==typeof e&&e.name||it}catch(e){return it}}function ct(e,t=100,n=1/0){try{return ut("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function lt(e,t=3,n=102400){const r=ct(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?lt(e,t-1,n):r;var o}function ut(e,t,r=1/0,o=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!g(t))return t;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(y(t))return"[VueViewModel]";if(h(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${at(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const o=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(o)?`[HTMLElement: ${o}]`:`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}var r}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return c.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return ut("",u.toJSON(),l-1,o,s)}catch(e){}const d=Array.isArray(t)?[]:{};let p=0;const f=V(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(p>=o){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=ut(e,t,l-1,o,s),p++}return a(t),d}function dt(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||K(),timestamp:t.timestamp||oe()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:X),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=P(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=P(i.value,s));const a=e.request;a&&a.url&&(a.url=P(a.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=b._sentryDebugIds;if(!n)return;let r;const o=pt.get(t);o?r=o:(r=new Map,pt.set(t,r));const s=Object.keys(n).reduce(((e,o)=>{let s;const i=r.get(o);i?s=i:(s=t(o),r.set(o,s));for(let t=s.length-1;t>=0;t--){const r=s[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Ve;return n.update(t),n}(r,n.captureContext);n.mechanism&&ee(c,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(He||(He=new Ve),He).getScopeData();s&&$e(p,s.getScopeData()),u&&$e(p,u.getScopeData());const h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),Be(c,p),fe([...d,...pe(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:ct(e.data,t,n)}})))},...e.user&&{user:ct(e.user,t,n)},...e.contexts&&{contexts:ct(e.contexts,t,n)},...e.extra&&{extra:ct(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ct(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Pe(e).data;return r&&(e.data=ct(r,t,n)),e}))),r}(e,i,a):e)))}const pt=new WeakMap;const ht=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ft(e,t){return Je().captureException(e,function(e){if(e)return function(e){return e instanceof Ve||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>ht.includes(e)))}(e)?{captureContext:e}:e}(t))}function mt(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return Je().captureMessage(e,n,r)}function gt(e,t){return Je().captureEvent(e,t)}function _t(e){Je().configureScope(e)}function yt(e,t){Je().addBreadcrumb(e,t)}function vt(e,t){Je().setContext(e,t)}function bt(e){Je().setExtras(e)}function St(e,t){Je().setExtra(e,t)}function Et(e){Je().setTags(e)}function Tt(e,t){Je().setTag(e,t)}function Ct(e){Je().setUser(e)}function kt(...e){const t=Je();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function wt(e){return Ze((()=>e(Qe())))}function Ot(e,t){return kt((n=>(n.setSpan(e),t(n))))}function It(e,t){return Je().startTransaction({...e},t)}async function xt(e){const t=Rt();return t?t.flush(e):(Y&&M.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Nt(e){const t=Rt();return t?t.close(e):(Y&&M.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function At(){return Je().lastEventId()}function Rt(){return Je().getClient()}function Lt(){return!!Rt()}function Mt(){return Je().getScope()}function Pt(e){const t=Rt(),n=Qe(),r=Mt(),{release:o,environment:s=X}=t&&t.getOptions()||{},{userAgent:i}=b.navigator||{},a=me({release:o,environment:s,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&"ok"===c.status&&ge(c,{status:"exited"}),Dt(),n.setSession(a),r.setSession(a),a}function Dt(){const e=Qe(),t=Mt(),n=t.getSession()||e.getSession();n&&_e(n),Ft(),e.setSession(),t.setSession()}function Ft(){const e=Qe(),t=Mt(),n=Rt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Ut(e=!1){e?Dt():Ft()}const Bt=[];function $t(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?ne(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),s=function(e,t){for(let t=0;t<e.length;t++)if(!0==("Debug"===e[t].name))return t;return-1}(o);if(-1!==s){const[e]=o.splice(s,1);o.push(e)}return o}function jt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ht(e,t,n){if(n[t.name])Y&&M.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Bt.indexOf(t.name)&&(t.setupOnce(he,Je),Bt.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Y&&M.log(`Integration installed: ${t.name}`)}}function Vt(e){const t=Rt();t&&t.addIntegration?t.addIntegration(e):Y&&M.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function Wt(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}let zt;const Gt="FunctionToString",qt=new WeakMap,Xt=()=>({name:Gt,setupOnce(){zt=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=H(this),n=qt.has(Rt())&&void 0!==t?t:this;return zt.apply(n,e)}}catch(e){}},setup(e){qt.set(e,!0)}}),Yt=Wt(Gt,Xt),Kt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Jt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Qt="InboundFilters",Zt=(e={})=>({name:Qt,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Kt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Jt],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Y&&M.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Q(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Y&&0===t.length&&M.error(`Could not extract message for event ${Q(e)}`),t}(e).some((e=>U(e,t)))}(e,t.ignoreErrors)?(Y&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Q(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&U(n,t)}(e,t.ignoreTransactions)?(Y&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Q(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=tn(e);return!!n&&U(n,t)}(e,t.denyUrls)?(Y&&M.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Q(e)}.\nUrl: ${tn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=tn(e);return!n||U(n,t)}(e,t.allowUrls)&&(Y&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Q(e)}.\nUrl: ${tn(e)}`),!0)}(t,s)?null:t}}),en=Wt(Qt,Zt);function tn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Y&&M.error(`Cannot extract url for event ${Q(e)}`),null}}function nn(e,t,n=250,r,o,s,i){if(!(s.exception&&s.exception.values&&i&&_(i.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;a&&(s.exception.values=(c=rn(e,t,o,i.originalException,r,s.exception.values,a,0),l=n,c.map((e=>(e.value&&(e.value=P(e.value,l)),e)))))}function rn(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(_(r[o],Error)){on(i,a);const s=e(t,r[o]),l=c.length;sn(s,o,l,a),c=rn(e,t,n,r[o],o,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(_(r,Error)){on(i,a);const l=e(t,r),u=c.length;sn(l,`errors[${s}]`,u,a),c=rn(e,t,n,r,o,[l,...c],l,u)}})),c}function on(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function sn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function an(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=function(e,t){return e(t.stack||"",1)}(e,t);return r.length&&(n.stacktrace={frames:r}),n}const cn="LinkedErrors",ln=Wt(cn,((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:cn,setupOnce(){},preprocessEvent(e,r,o){const s=o.getOptions();nn(an,s.stackParser,s.maxValueLength,n,t,e,r)}}})),un=r,dn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pn(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function hn(e){const t=dn.exec(e);if(!t)return void L((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",s,i="",a]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return fn({host:s,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function fn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mn(e){const t="string"==typeof e?hn(e):fn(e);if(t&&function(e){if(!N)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(M.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function gn(e,t=[]){return[e,t]}function _n(e,t){const[n,r]=e;return[n,[...r,t]]}function yn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function vn(e,t){return(t||new TextEncoder).encode(e)}function bn(e,t){const[n,r]=e;let o=JSON.stringify(n);function s(e){"string"==typeof o?o="string"==typeof e?o+e:[vn(o,t),e]:o.push("string"==typeof e?vn(e,t):e)}for(const e of r){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(ct(n))}s(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Sn(e,t){const n="string"==typeof e.data?vn(e.data,t):e.data;return[G({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const En={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Tn(e){return En[e]}function Cn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function kn(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pn(r)},...o&&{trace:G({...o})}}}const wn=new Map,On=new Set;function In(e,t){return function(e){if(b._sentryModuleMetadata)for(const t of Object.keys(b._sentryModuleMetadata)){const n=b._sentryModuleMetadata[t];if(On.has(t))continue;On.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){wn.set(e.filename,n);break}}}(e),wn.get(t)}const xn="ModuleMetadata",Nn=()=>({name:xn,setupOnce(){},setup(e){"function"==typeof e.on&&e.on("beforeEnvelope",(e=>{yn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}(t),e[1]=t)}}))}))},processEvent:(e,t,n)=>(function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename)continue;const t=In(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}}(n.getOptions().stackParser,e),e)}),An=Wt(xn,Nn),Rn="sentry.source",Ln="sentry.sample_rate",Mn="sentry.op",Pn="sentry.origin";class Dn extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Fn="7";function Un(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Bn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${Un(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:Fn,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function $n(e,t,n,r){const o=Cn(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const i=kn(e,o,r,t);return delete e.sdkProcessingMetadata,gn(i,[[{type:s},e]])}function jn(e){return e.replace(/[^\w\-./]+/gi,"")}const Hn=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Vn(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of Hn)if(e===t)return n;return e}(t)),"")}const Wn="Not capturing exception because it's already been captured.";class zn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=mn(e.dsn):Y&&M.warn("No DSN provided, client will not send events."),this._dsn){const t=Bn(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(te(e))return void(Y&&M.log(Wn));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const s=d(e)?e:String(e),i=p(e)?this.eventFromMessage(s,t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&te(t.originalException))return void(Y&&M.log(Wn));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Y&&M.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ge(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):le(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Y&&M.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ht(this,e,this._integrations),t||jt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=$n(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=_n(n,Sn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Cn(n);return gn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:pn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;Y&&M.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}captureAggregateMetrics(e){Y&&M.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=pn(t));const s=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return gn(o,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Ht(e,t,n)})),n}(this,e),jt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ge(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new de((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=Qe()){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),dt(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:s,dsc:i}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:s},...e.contexts};const a=i||Fe(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Y){const t=e;"log"===t.logLevel?M.log(t.message):M.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=qn(e),i=Gn(e),a=e.type||"error",c=`before send for type \`${a}\``;if(i&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),ue(new Dn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l="replay_event"===a?"replay":a,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Dn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(Gn(t)&&r)return r(t,n);if(qn(t)&&o){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(m(e))return e.then((e=>{if(!h(e)&&null!==e)throw new Dn(n);return e}),(e=>{throw new Dn(`${t} rejected with ${e}`)}));if(!h(e)&&null!==e)throw new Dn(n);return e}(o,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Dn(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const i=r.transaction_info;if(s&&i&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...i,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Dn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Dn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Y&&M.error("Error while sending event:",e)}));Y&&M.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Gn(e){return void 0===e.type}function qn(e){return"transaction"===e.type}function Xn(e){const t=Rt();t&&t.addEventProcessor&&t.addEventProcessor(e)}const Yn={},Kn={};function Jn(e,t){Yn[e]=Yn[e]||[],Yn[e].push(t)}function Qn(e,t){Kn[e]||(t(),Kn[e]=!0)}function Zn(e,t){const n=e&&Yn[e];if(n)for(const r of n)try{r(t)}catch(t){N&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${at(r)}\nError:`,t)}}let er=null;function tr(e){const t="error";Jn(t,e),Qn(t,nr)}function nr(){er=b.onerror,b.onerror=function(e,t,n,r,o){return Zn("error",{column:r,error:o,line:n,msg:e,url:t}),!(!er||er.__SENTRY_LOADER__)&&er.apply(this,arguments)},b.onerror.__SENTRY_INSTRUMENTED__=!0}let rr=null;function or(e){const t="unhandledrejection";Jn(t,e),Qn(t,sr)}function sr(){rr=b.onunhandledrejection,b.onunhandledrejection=function(e){return Zn("unhandledrejection",e),!(rr&&!rr.__SENTRY_LOADER__)||rr.apply(this,arguments)},b.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ir(e){return(e||Je()).getScope().getTransaction()}const ar=Oe;let cr=!1;function lr(){const e=ir();if(e){const t="internal_error";Y&&M.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function ur(e,t,n=(()=>{})){let r;try{r=e()}catch(e){throw t(e),n(),e}return function(e,t,n){return m(e)?e.then((e=>(n(),e)),(e=>{throw t(e),n(),e})):(n(),e)}(r,t,n)}function dr(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Rt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function pr(e,t,n=(()=>{}),r=(()=>{})){const o=Je(),s=Mt(),i=s.getSpan(),a=vr(e),c=yr(o,{parentSpan:i,spanContext:a,forceTransaction:!1,scope:s});return s.setSpan(c),ur((()=>t(c)),(e=>{c&&c.setStatus("internal_error"),n(e,c)}),(()=>{c&&c.end(),s.setSpan(i),r()}))}function hr(e,t){const n=vr(e);return Ze((()=>kt(e.scope,(r=>{const o=Je(),s=r.getSpan(),i=e.onlyIfParent&&!s?void 0:yr(o,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return ur((()=>t(i)),(()=>{if(i){const{status:e}=Pe(i);e&&"ok"!==e||i.setStatus("internal_error")}}),(()=>i&&i.end()))}))))}function fr(e,t){const n=vr(e);return Ze((()=>kt(e.scope,(r=>{const o=Je(),s=r.getSpan(),i=e.onlyIfParent&&!s?void 0:yr(o,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){i&&i.end()}return ur((()=>t(i,a)),(()=>{if(i&&i.isRecording()){const{status:e}=Pe(i);e&&"ok"!==e||i.setStatus("internal_error")}}))}))))}function mr(e){if(!dr())return;const t=vr(e),n=Je(),r=e.scope?e.scope.getSpan():gr();if(e.onlyIfParent&&!r)return;const o=(e.scope||Mt()).clone();return yr(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function gr(){return Mt().getSpan()}lr.tag="sentry_tracingErrorCallback";const _r=({sentryTrace:e,baggage:t},n)=>{const r=Mt(),{traceparentData:o,dynamicSamplingContext:s,propagationContext:i}=function(e,t){const n=Oe(e),r=Te(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:o||K(),parentSpanId:s||K().substring(16),spanId:K().substring(16),sampled:i,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||K(),spanId:K().substring(16)}}}(e,t);r.setPropagationContext(i),Y&&o&&M.log(`[Tracing] Continuing trace ${o.traceId}.`);const a={...o,metadata:G({dynamicSamplingContext:s})};return n?Ze((()=>n(a))):a};function yr(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!dr())return;const s=Qe();let i;if(t&&!r)i=t.startChild(n);else if(t){const r=Ue(t),{traceId:o,spanId:s}=t.spanContext(),a=De(t);i=e.startTransaction({traceId:o,parentSpanId:s,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:a,sampled:c}={...s.getPropagationContext(),...o.getPropagationContext()};i=e.startTransaction({traceId:t,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return o.setSpan(i),function(e,t,n){e&&($(e,Sr,n),$(e,br,t))}(i,o,s),i}function vr(e){if(e.startTime){const t={...e};return t.startTimestamp=Le(e.startTime),delete t.startTime,t}return e}const br="_sentryScope",Sr="_sentryIsolationScope";let Er;function Tr(e){return Er?Er.get(e):void 0}function Cr(e){const t=Tr(e);if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(G(r));return n}var kr;function wr(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(kr||(kr={}));const Or=wr;function Ir(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=wr(t);"unknown_error"!==n&&e.setStatus(n)}class xr{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Nr{constructor(e={}){this._traceId=e.traceId||K(),this._spanId=e.spanId||K().substring(16),this._startTime=e.startTimestamp||se(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Pn]:e.origin||"manual",[Mn]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[Mn]}set op(e){this.setAttribute(Mn,e)}get origin(){return this._attributes[Pn]}set origin(e){this.setAttribute(Pn,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Ne:0}}startChild(e){const t=new Nr({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=ye(this);if(t.transaction=n,Y&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Pe(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;M.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Ir(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=ye(this);if(Y&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&M.log(e.replace("Starting","Finishing"))}this._endTime=Le(e)}toTraceparent(){return Re(this)}toContext(){return G({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return Ae(this)}getSpanJSON(){return G({data:this._getData(),description:this._name,op:this._attributes[Mn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Pn],_metrics_summary:Cr(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}class Ar extends Nr{constructor(e,t){super(e),this._contexts={},this._hub=t||Je(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Rn]&&{source:this._attributes[Rn]},...this._attributes[Ln]&&{sampleRate:this._attributes[Ln]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(Rn,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new xr(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=Le(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return G({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Ue(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Y&&M.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Y&&M.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Pe(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Pe(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:o}={scope:this[br],isolationScope:this[Sr]};const{metadata:s}=this,{source:i}=s,a={contexts:{...this._contexts,trace:Ae(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:o,...G({dynamicSamplingContext:Ue(this)})},_metrics_summary:Cr(this),...i&&{transaction_info:{source:i}}};return Object.keys(this._measurements).length>0&&(Y&&M.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),Y&&M.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),a}}const Rr={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Lr=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Mr extends xr{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Pe(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Pr extends Ar{constructor(e,t,n=Rr.idleTimeout,r=Rr.finalTimeout,o=Rr.heartbeatInterval,s=!1,i=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Lr[4],this._autoFinishAllowed=!i,s&&(Y&&M.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),i||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Lr[3],this.end())}),this._finalTimeout)}end(e){const t=Le(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Y&&M.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Pe(e).timestamp||(e.setStatus("cancelled"),e.end(t),Y&&M.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=Pe(e),o=n&&n<t,s=(this._finalTimeout+this._idleTimeout)/1e3,i=r&&n&&r-n<s;if(Y){const t=JSON.stringify(e,void 0,2);o?i||M.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):M.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return o&&i})),Y&&M.log("[Tracing] flushing IdleTransaction")}else Y&&M.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Mr(t,n,this.spanContext().spanId,e),Y&&M.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Lr[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Y&&M.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Lr[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Y&&M.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Y&&M.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Y&&M.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Y&&M.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=se();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Lr[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Y&&M.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Lr[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Y&&M.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Dr(e,t,n){if(!dr(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(Ln,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(Ln,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(Ln,Number(r))):(r=1,e.setAttribute(Ln,r)),Fr(r)?r?(e.sampled=Math.random()<r,e.sampled?(Y&&M.log(`[Tracing] starting ${e.op} transaction - ${Pe(e).description}`),e):(Y&&M.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Y&&M.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Y&&M.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Fr(e){return g(e)||"number"!=typeof e&&"boolean"!=typeof e?(Y&&M.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(Y&&M.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function Ur(){const e=this.getScope().getSpan();return e?{"sentry-trace":Re(e)}:{}}function Br(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",s=e.instrumenter||"sentry";o!==s&&(Y&&M.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let i=new Ar(e,this);return i=Dr(i,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),i.isRecording()&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",i),i}function $r(e,t,n,r,o,s,i,a=!1){const c=e.getClient(),l=c&&c.getOptions()||{};let u=new Pr(t,e,n,r,i,o,a);return u=Dr(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...s}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",u),u}function jr(){const e=Ye();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Br),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Ur),cr||(cr=!0,tr(lr),or(lr)))}const Hr=6e4;function Vr(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Hr:r-t}function Wr(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function zr(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else i?o.all=r+Vr(i,r):429===t&&(o.all=r+6e4);return o}const Gr=30;function qr(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ue(new Dn("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new de(((n,r)=>{let o=t.length;if(!o)return n(!0);const s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{le(e).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(e.bufferSize||Gr)){let r={};function o(o){const s=[];if(yn(o,((t,n)=>{const o=Tn(n);if(Wr(r,o)){const r=Xr(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)})),0===s.length)return le();const i=gn(o[0],s),a=t=>{yn(i,((n,r)=>{const o=Xr(n,r);e.recordDroppedEvent(t,Tn(r),o)}))};return n.add((()=>t({body:bn(i,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Y&&M.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=zr(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Dn)return Y&&M.error("Skipped sending event because buffer is full."),a("queue_overflow"),le();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Xr(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Yr(e,t){let n;return yn(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function Kr(e,t){return n=>{const r=e(n),o=new Map;function s(t,r){const s=r?`${t}:${r}`:t;let i=o.get(s);if(!i){const a=hn(t);if(!a)return;const c=Bn(a,n.tunnel);i=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=Yr(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(s,i)}return[t,i]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return Yr(e,n)}}).map((e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release))).filter((e=>!!e));return 0===n.length&&n.push(["",r]),(await Promise.all(n.map((([t,n])=>n.send(function(e,t){return gn(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[await r.flush(e)];for(const[,n]of o)t.push(await n.flush(e));return t.every((e=>e))}}}}const Jr={c:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},g:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},d:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},s:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t>>>0}(e):e)).join(":")}}};class Qr{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(e,t,n,r="none",o={},s=se()){const i=Math.floor(s),a=t.replace(/[^\w\-.]+/gi,"_"),c=function(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[jn(n)]=Vn(String(e[n])));return t}(o),l=function(e){return e.replace(/[^\w]+/gi,"_")}(r),u=function(e,t,n,r){return`${e}${t}${n}${Object.entries(G(r)).sort(((e,t)=>e[0].localeCompare(t[0])))}`}(e,a,l,c);let d=this._buckets.get(u);const p=d&&"s"===e?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<i&&(d.timestamp=i)):(d={metric:new Jr[e](n),timestamp:i,metricType:e,name:a,unit:l,tags:c},this._buckets.set(u,d)),function(e,t,n,r,o,s){const i=gr();if(i){const a=Tr(i)||new Map,c=`${e}:${t}@${r}`,l=a.get(s);if(l){const[,e]=l;a.set(s,[c,{min:Math.min(e.min,n),max:Math.max(e.max,n),count:e.count+=1,sum:e.sum+=n,tags:e.tags}])}else a.set(s,[c,{min:n,max:n,count:1,sum:n,tags:o}]);Er||(Er=new WeakMap),Er.set(i,a)}}(e,a,"string"==typeof n?d.metric.weight-p:n,l,o,u)}flush(){if(0!==this._buckets.size){if(this._client.captureAggregateMetrics){const e=Array.from(this._buckets).map((([,e])=>e));this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const Zr="MetricsAggregator",eo=()=>({name:Zr,setupOnce(){},setup(e){e.metricsAggregator=new Qr(e)}});function to(e,t,n,r={}){const o=Rt(),s=Mt();if(o){if(!o.metricsAggregator)return void(Y&&M.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs"));const{unit:i,tags:a,timestamp:c}=r,{release:l,environment:u}=o.getOptions(),d=s.getTransaction(),p={};l&&(p.release=l),u&&(p.environment=u),d&&(p.transaction=Pe(d).description||""),Y&&M.log(`Adding value of ${n} to ${e} metric ${t}`),o.metricsAggregator.add(e,t,n,i,{...p,...a},c)}}const no={increment:function(e,t=1,n){to("c",e,t,n)},distribution:function(e,t,n){to("d",e,t,n)},set:function(e,t,n){to("s",e,t,n)},gauge:function(e,t,n){to("g",e,t,n)},MetricsAggregator:Wt(Zr,eo),metricsAggregatorIntegration:eo};function ro(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function oo(e){const t=Je().getStackTop();t.client=e,t.scope.setClient(e)}function so(e,t,n){const r=ir();r&&r.setMeasurement(e,t,n)}const io=b;let ao=0;function co(){return ao>0}function lo(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(H(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>lo(e,t)));return e.apply(this,o)}catch(e){throw ao++,setTimeout((()=>{ao--})),kt((n=>{n.addEventProcessor((e=>(t.mechanism&&(Z(e,void 0,void 0),ee(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),ft(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}j(r,e),$(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}var uo=n(958);const po="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ho(e,t){const n=mo(e,t),r={type:t&&t.name,value:_o(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function fo(e,t){return{exception:{values:[ho(e,t)]}}}function mo(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(go.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const go=/Minified React error #\d+;/i;function _o(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function yo(e,t,n,r){const o=bo(e,t,n&&n.syntheticException||void 0,r);return ee(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),le(o)}function vo(e,t,n="info",r,o){const s=So(e,t,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),le(s)}function bo(e,t,n,r,o){let s;if(c(t)&&t.error)return fo(e,t.error);if(l(t)||a(t,"DOMException")){const o=t;if("stack"in t)s=fo(e,t);else{const t=o.name||(l(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;s=So(e,i,n,r),Z(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return i(t)?fo(e,t):h(t)||f(t)?(s=function(e,t,n,r){const o=Rt(),s=o&&o.getOptions().normalizeDepth,i={exception:{values:[{type:f(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Eo(t,{isUnhandledRejection:r})}]},extra:{__serialized__:lt(t,s)}};if(n){const t=mo(e,n);t.length&&(i.exception.values[0].stacktrace={frames:t})}return i}(e,t,n,o),ee(s,{synthetic:!0}),s):(s=So(e,t,n,r),Z(s,`${t}`,void 0),ee(s,{synthetic:!0}),s)}function So(e,t,n,r){const o={};if(r&&n){const r=mo(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(d(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Eo(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(V(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return P(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:P(r,t)}return""}(e),r=t?"promise rejection":"exception";return c(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:f(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function To(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:pn(r)}},s=function(e){return[{type:"user_report"},e]}(e);return gn(o,[s])}class Co extends zn{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:ze}))),version:ze}),e._metadata=o}(e,"browser",["browser"],io.SENTRY_SDK_SOURCE||(0,uo.e)()),super(e),e.sendClientReports&&io.document&&io.document.addEventListener("visibilitychange",(()=>{"hidden"===io.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return yo(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return vo(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(po&&M.warn("SDK not enabled, will not capture user feedback."));const t=To(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(po&&M.log("No outcomes to send"));if(!this._dsn)return void(po&&M.log("No dsn provided, will not send outcomes"));po&&M.log("Sending outcomes:",e);const t=(n=e,gn((r=this._options.tunnel&&pn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:oe(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}const ko=S();function wo(){if(!("fetch"in ko))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Oo(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Io(){if("string"==typeof EdgeRuntime)return!0;if(!wo())return!1;if(Oo(ko.fetch))return!0;let e=!1;const t=ko.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Oo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){N&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}let xo;function No(e,t=function(){if(xo)return xo;if(Oo(io.fetch))return xo=io.fetch.bind(io);const e=io.document;let t=io.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){po&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return xo=t.bind(io)}()){let n=0,r=0;return qr(e,(function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,i).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return xo=void 0,n-=s,r--,ue(e)}}))}const Ao=4;function Ro(e){return qr(e,(function(t){return new de(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{o.readyState===Ao&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Lo="?";function Mo(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Po=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Do=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fo=[30,e=>{const t=Po.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Do.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Yo(t[1]||Lo,t[2]);return Mo(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Uo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$o=[50,e=>{const t=Uo.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Bo.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Lo;return[n,e]=Yo(n,e),Mo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],jo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ho=[40,e=>{const t=jo.exec(e);return t?Mo(t[2],t[1]||Lo,+t[3],t[4]?+t[4]:void 0):void 0}],Vo=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Wo=[10,e=>{const t=Vo.exec(e);return t?Mo(t[2],t[3]||Lo,+t[1]):void 0}],zo=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Go=[20,e=>{const t=zo.exec(e);return t?Mo(t[5],t[3]||t[4]||Lo,+t[1],+t[2]):void 0}],qo=[Fo,$o,Ho],Xo=st(...qo),Yo=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Lo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ko=S(),Jo=b;let Qo;function Zo(e){const t="history";Jn(t,e),Qn(t,es)}function es(){if(!function(){const e=Ko.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ko&&!!Ko.history.pushState&&!!Ko.history.replaceState;return!t&&n}())return;const e=Jo.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Qo,t=String(n);Qo=t,Zn("history",{from:e,to:t})}return e.apply(this,t)}}Jo.onpopstate=function(...t){const n=Jo.location.href,r=Qo;if(Qo=n,Zn("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},B(Jo.history,"pushState",t),B(Jo.history,"replaceState",t)}function ts(e){const t="console";Jn(t,e),Qn(t,ns)}function ns(){"console"in b&&A.forEach((function(e){e in b.console&&B(b.console,e,(function(t){return R[e]=t,function(...t){Zn("console",{args:t,level:e});const n=R[e];n&&n.apply(b.console,t)}}))}))}const rs=b,os=1e3;let ss,is,as;function cs(e){Jn("dom",e),Qn("dom",ls)}function ls(){if(!rs.document)return;const e=Zn.bind(null,"dom"),t=us(e,!0);rs.document.addEventListener("click",t,!1),rs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=rs[t]&&rs[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=s[n]=s[n]||{refCount:0};if(!i.handler){const r=us(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),B(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},s=o[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function us(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;$(n,"_sentryCaptured",!0),r&&!r._sentryId&&$(r,"_sentryId",K());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==is)return!1;try{if(!e.target||e.target._sentryId!==as)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),is=n.type,as=r?r._sentryId:void 0),clearTimeout(ss),ss=rs.setTimeout((()=>{as=void 0,is=void 0}),os)}}const ds=b,ps="__sentry_xhr_v3__";function hs(e){Jn("xhr",e),Qn("xhr",fs)}function fs(){if(!ds.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;B(e,"open",(function(e){return function(...t){const n=Date.now(),r=u(t[0])?t[0].toUpperCase():void 0,o=function(e){if(u(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!o)return e.apply(this,t);this[ps]={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[ps];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Zn("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?B(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),B(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[ps];return o&&u(n)&&u(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),B(e,"send",(function(e){return function(...t){const n=this[ps];return n?(void 0!==t[0]&&(n.body=t[0]),Zn("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}function ms(e){const t="fetch";Jn(t,e),Qn(t,gs)}function gs(){Io()&&B(b,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:ys(t),method:_s(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:ys(t),method:_s(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Zn("fetch",{...o}),e.apply(b,t).then((e=>(Zn("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Zn("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function _s(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ys(e){return"string"==typeof e?e:e?_s(e,"url")?e.url:e.toString?e.toString():"":""}const vs=["fatal","error","warning","log","info","debug"];function bs(e){return"warn"===e?"warning":vs.includes(e)?e:"log"}function Ss(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Es="Breadcrumbs",Ts=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Es,setupOnce(){},setup(e){t.console&&ts(function(e){return function(t){if(Rt()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:bs(t.level),message:F(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${F(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}yt(n,{input:t.args,level:t.level})}}(e)),t.dom&&cs(function(e,t){return function(n){if(Rt()!==e)return;let r,o,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(po&&M.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=k(t,{keyAttrs:s,maxStringLength:i}),o=x(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),yt(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&hs(function(e){return function(t){if(Rt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[ps];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o;yt({category:"xhr",data:{method:s,url:i,status_code:a},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&ms(function(e){return function(t){if(Rt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)yt({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;yt({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Zo(function(e){return function(t){if(Rt()!==e)return;let n=t.from,r=t.to;const o=Ss(io.location.href);let s=n?Ss(n):void 0;const i=Ss(r);s&&s.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),yt({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Rt()===e&&yt({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Q(t)},{event:t})}}(e))}}},Cs=Wt(Es,Ts),ks="Dedupe",ws=()=>{let e;return{name:ks,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!xs(e,t)&&!!Is(e,t))))}(e,t)||!!function(e,t){const n=Ns(t),r=Ns(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!xs(e,t)&&!!Is(e,t)))}(e,t))}(t,e))return po&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},Os=Wt(ks,ws);function Is(e,t){let n=As(e),r=As(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function xs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Ns(e){return e.exception&&e.exception.values&&e.exception.values[0]}function As(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}const Rs="GlobalHandlers",Ls=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Rs,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){tr((t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(Rt()!==e||co())return;const{msg:o,url:s,line:i,column:a,error:l}=t,d=void 0===l&&u(o)?function(e,t,n,r){let o=c(e)?e.message:e,s="Error";const i=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);i&&(s=i[1],o=i[2]);return Ps({exception:{values:[{type:s,value:o}]}},t,n,r)}(o,s,i,a):Ps(bo(n,l||o,void 0,r,!1),s,i,a);d.level="error",gt(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),Ds("onerror")),t.onunhandledrejection&&(function(e){or((t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(Rt()!==e||co())return;const o=function(e){if(p(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),s=p(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:bo(n,o,void 0,r,!0);s.level="error",gt(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Ds("onunhandledrejection"))}}},Ms=Wt(Rs,Ls);function Ps(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=u(t)&&t.length>0?t:O();return 0===c.length&&c.push({colno:l,filename:p,function:"?",in_app:!0,lineno:d}),e}function Ds(e){po&&M.log(`Global Handler attached: ${e}`)}function Fs(){const e=Rt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Us="HttpContext",Bs=()=>({name:Us,setupOnce(){},preprocessEvent(e){if(!io.navigator&&!io.location&&!io.document)return;const t=e.request&&e.request.url||io.location&&io.location.href,{referrer:n}=io.document||{},{userAgent:r}=io.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),$s=Wt(Us,Bs),js="LinkedErrors",Hs=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:js,setupOnce(){},preprocessEvent(e,r,o){const s=o.getOptions();nn(ho,s.stackParser,s.maxValueLength,n,t,e,r)}}},Vs=Wt(js,Hs),Ws=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],zs="TryCatch",Gs=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:zs,setupOnce(){t.setTimeout&&B(io,"setTimeout",Xs),t.setInterval&&B(io,"setInterval",Xs),t.requestAnimationFrame&&B(io,"requestAnimationFrame",Ys),t.XMLHttpRequest&&"XMLHttpRequest"in io&&B(XMLHttpRequest.prototype,"send",Ks);const e=t.eventTarget;e&&(Array.isArray(e)?e:Ws).forEach(Js)}}},qs=Wt(zs,Gs);function Xs(e){return function(...t){const n=t[0];return t[0]=lo(n,{mechanism:{data:{function:at(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ys(e){return function(t){return e.apply(this,[lo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:at(e)},handled:!1,type:"instrument"}})])}}function Ks(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&B(n,e,(function(t){const n={mechanism:{data:{function:e,handler:at(t)},handled:!1,type:"instrument"}},r=H(t);return r&&(n.mechanism.data.handler=at(r)),lo(t,n)}))})),e.apply(this,t)}}function Js(e){const t=io,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=lo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:at(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,lo(r,{mechanism:{data:{function:"addEventListener",handler:at(r),target:e},handled:!1,type:"instrument"}}),o])}})),B(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}const Qs=[Zt(),Xt(),Gs(),Ts(),Ls(),Hs(),ws(),Bs()];function Zs(e){return[...Qs]}function ei(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Zs()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),io.SENTRY_RELEASE&&io.SENTRY_RELEASE.id&&(e.release=io.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Xo,Array.isArray(n)?st(...n):n),integrations:$t(e),transport:e.transport||(wo()?No:Ro)};var n;!function(e,t){!0===t.debug&&(Y?M.enable():L((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Mt().update(t.initialScope);const n=new e(t);oo(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}(Co,t),e.autoSessionTracking&&(void 0!==io.document?(Pt({ignoreDuration:!0}),Ut(),Zo((({from:e,to:t})=>{void 0!==e&&e!==t&&(Pt({ignoreDuration:!0}),Ut())}))):po&&M.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}const ti=(e={},t=Je())=>{if(!io.document)return void(po&&M.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o)return void(po&&M.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const s=io.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){const n=mn(e);if(!n)return"";const r=`${Un(n)}embed/error-page/`;let o=`dsn=${pn(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(o,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:i}=e;if(i){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{i()}finally{io.removeEventListener("message",e)}};io.addEventListener("message",e)}const a=io.document.head||io.document.body;a?a.appendChild(s):po&&M.error("Not injecting report dialog. No injection point found in HTML")};function ni(){}function ri(e){e()}function oi(e){return lo(e)()}function si(e){const t=Rt();t&&t.captureUserFeedback(e)}function ii(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function ai(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&ci(e)===ci(t)}(e,o)}function ci(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var li=n(609);function ui(){return"undefined"!=typeof window&&(!(0,li.wD)()||void 0!==b.process&&"renderer"===b.process.type)}const di="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pi=(e,t,n)=>{let r,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},hi=b,fi=()=>hi.__WEB_VITALS_POLYFILL__?hi.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=hi.performance.timing,t=hi.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):hi.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mi=()=>{const e=fi();return e&&e.activationStart||0},gi=(e,t)=>{const n=fi();let r="navigate";return n&&(r=hi.document&&hi.document.prerendering||mi()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},_i=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},yi=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==hi.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};hi.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},vi=(e,t={})=>{const n=gi("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],i=s[s.length-1];o&&0!==s.length&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>n.value&&(n.value=o,n.entries=s,r&&r())}}))},a=_i("layout-shift",i);if(a){r=pi(e,n,t.reportAllChanges);const o=()=>{i(a.takeRecords()),r(!0)};return yi(o),o}};let bi=-1;const Si=()=>(bi<0&&(hi.document&&hi.document.visibilityState&&(bi="hidden"!==hi.document.visibilityState||hi.document.prerendering?1/0:0),yi((({timeStamp:e})=>{bi=e}),!0)),{get firstHiddenTime(){return bi}}),Ei=e=>{const t=Si(),n=gi("FID");let r;const o=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},s=e=>{e.forEach(o)},i=_i("first-input",s);r=pi(e,n),i&&yi((()=>{s(i.takeRecords()),i.disconnect()}),!0)};let Ti=0,Ci=1/0,ki=0;const wi=e=>{e.forEach((e=>{e.interactionId&&(Ci=Math.min(Ci,e.interactionId),ki=Math.max(ki,e.interactionId),Ti=ki?(ki-Ci)/7+1:0)}))};let Oi;const Ii=()=>{"interactionCount"in performance||Oi||(Oi=_i("event",wi,{type:"event",buffered:!0,durationThreshold:0}))},xi=()=>Oi?Ti:performance.interactionCount||0,Ni=[],Ai={},Ri=e=>{const t=Ni[Ni.length-1],n=Ai[e.interactionId];if(n||Ni.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Ai[t.id]=t,Ni.push(t)}Ni.sort(((e,t)=>t.latency-e.latency)),Ni.splice(10).forEach((e=>{delete Ai[e.id]}))}},Li=(e,t)=>{t=t||{},Ii();const n=gi("INP");let r;const o=e=>{e.forEach((e=>{e.interactionId&&Ri(e),"first-input"===e.entryType&&!Ni.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&Ri(e)}));const t=(()=>{const e=Math.min(Ni.length-1,Math.floor(xi()/50));return Ni[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},s=_i("event",o,{durationThreshold:t.durationThreshold||40});r=pi(e,n,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),yi((()=>{o(s.takeRecords()),n.value<0&&xi()>0&&(n.value=0,n.entries=[]),r(!0)})))},Mi={},Pi=e=>{const t=Si(),n=gi("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-mi(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[o],r())}},s=_i("largest-contentful-paint",o);if(s){r=pi(e,n);const t=()=>{Mi[n.id]||(o(s.takeRecords()),s.disconnect(),Mi[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{hi.document&&addEventListener(e,t,{once:!0,capture:!0})})),yi(t,!0),t}},Di=e=>{hi.document&&(hi.document.prerendering?addEventListener("prerenderingchange",(()=>Di(e)),!0):"complete"!==hi.document.readyState?addEventListener("load",(()=>Di(e)),!0):setTimeout(e,0))},Fi=(e,t)=>{t=t||{};const n=gi("TTFB"),r=pi(e,n,t.reportAllChanges);Di((()=>{const e=fi();if(e){if(n.value=Math.max(e.responseStart-mi(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))},Ui={},Bi={};let $i,ji,Hi,Vi,Wi;function zi(e,t=!1){return Zi("lcp",e,Ki,Hi,t)}function Gi(e,t){return ea(e,t),Bi[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),_i(e,(t=>{qi(e,{entries:t})}),t)}(e),Bi[e]=!0),ta(e,t)}function qi(e,t){const n=Ui[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){di&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${at(r)}\nError:`,t)}}function Xi(){return vi((e=>{qi("cls",{metric:e}),$i=e}),{reportAllChanges:!0})}function Yi(){return Ei((e=>{qi("fid",{metric:e}),ji=e}))}function Ki(){return Pi((e=>{qi("lcp",{metric:e}),Hi=e}))}function Ji(){return Fi((e=>{qi("ttfb",{metric:e}),Vi=e}))}function Qi(){return Li((e=>{qi("inp",{metric:e}),Wi=e}))}function Zi(e,t,n,r,o=!1){let s;return ea(e,t),Bi[e]||(s=n(),Bi[e]=!0),r&&t({metric:r}),ta(e,t,o?s:void 0)}function ea(e,t){Ui[e]=Ui[e]||[],Ui[e].push(t)}function ta(e,t,n){return()=>{n&&n();const r=Ui[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const na=b,ra="sentryReplaySession",oa="replay_event",sa="Unable to send Replay",ia=15e4,aa=5e3,ca=2e7;function la(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var ua;function da(e){const t=la([e,"optionalAccess",e=>e.host]);return Boolean(la([t,"optionalAccess",e=>e.shadowRoot])===e)}function pa(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ha(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,fa).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function fa(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=ha(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ua||(ua={}));class ma{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return()=>-1,null!=(t=la([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:-1;var t}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ga({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function _a({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function ya(e){return e.toLowerCase()}function va(e){return e.toUpperCase()}const ba="__rrweb_original__";function Sa(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ya(t):null}function Ea(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let Ta=1;const Ca=new RegExp("[^a-z0-9-_:]"),ka=-2;function wa(){return Ta++}let Oa,Ia;const xa=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Na=/^(?:[a-z+]+:)?\/\//i,Aa=/^www\..*/i,Ra=/^(data:)([^,]*),(.*)/i;function La(e,t){return(e||"").replace(xa,((e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return e;if(Na.test(a)||Aa.test(a))return`url(${c}${a}${c})`;if(Ra.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const Ma=/^[^ \t\n\r\u000c]+/,Pa=/^[, \t\n\r\u000c]+/;function Da(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function Fa(){const e=document.createElement("a");return e.href="",e.href}function Ua(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Da(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Pa),!(n>=t.length);){let s=r(Ma);if(","===s.slice(-1))s=Da(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=Da(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?La(r,Fa()):"object"===t&&"data"===n?Da(e,r):"function"==typeof s?s(n,r,o):r:Da(e,r):r}function Ba(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function $a(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:$a(e.parentNode,t,n,r+1):-1}function ja(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Ha(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(s){if(c=$a(i,ja(r,o)),c<0)return!0;a=$a(i,ja(t,n),c>=0?c:1/0)}else{if(a=$a(i,ja(t,n)),a<0)return!1;c=$a(i,ja(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!s)}catch(e){}return!!s}function Va(e){return null==e?"":e.toLowerCase()}function Wa(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:O=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:x=!0}=t;const N=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,E=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ua.Document,childNodes:[],compatMode:e.compatMode}:{type:ua.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ua.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,s),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=ya(e.tagName);return Ca.test(t)?"div":t}(e);let T={};const C=e.attributes.length;for(let t=0;t<C;t++){const r=e.attributes[t];r.name&&!Ba(E,r.name,r.value)&&(T[r.name]=Ua(n,E,ya(r.name),r.value,e,c))}if("link"===E&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=ha(t)),r&&(delete T.rel,delete T.href,T._cssText=La(r,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=ha(e.sheet);t&&(T._cssText=La(t,Fa()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=Sa(t),r=Ea(t,va(E),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Ha(t,_,v,y,b,ga({type:n,tagName:va(E),maskInputOptions:a}));T.value=_a({isMasked:e,element:t,value:r,maskInputFn:l})}o&&(T.checked=o)}if("option"===E&&(e.selected&&!a.select?T.selected=!0:delete T.selected),"canvas"===E&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=ba in o?o[ba]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(u.type,u.quality)&&(T.rr_dataURL=t)}if("img"===E&&d){Oa||(Oa=n.createElement("canvas"),Ia=Oa.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{Oa.width=t.naturalWidth,Oa.height=t.naturalHeight,Ia.drawImage(t,0,0),T.rr_dataURL=Oa.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?T.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==E&&"video"!==E||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}let k;"iframe"!==E||h(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(E)&&(k=!0)}catch(e){}return{type:ua.Element,tagName:E,attributes:T,childNodes:[],isSVG:(w=e,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:k};var w}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:E,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||la([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=ha(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=La(p,Fa())}f&&(p="SCRIPT_PLACEHOLDER");const g=Ha(e,r,s,o,i,n);return h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=_a({isMasked:Ha(e,r,s,o,i,ga({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:l})),{type:ua.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:ua.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ua.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:O,newlyAddedElement:I});if(!N)return console.warn(e,"not serialized"),null;let A;A=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===ua.Comment)return!0;if(e.type===ua.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Va(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Va(e.attributes.name)||"icon"===Va(e.attributes.rel)||"apple-touch-icon"===Va(e.attributes.rel)||"shortcut icon"===Va(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Va(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Va(e.attributes.property).match(/^(og|twitter|fb):/)||Va(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Va(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Va(e.attributes.name)||"googlebot"===Va(e.attributes.name)||"bingbot"===Va(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Va(e.attributes.name)||"generator"===Va(e.attributes.name)||"framework"===Va(e.attributes.name)||"publisher"===Va(e.attributes.name)||"progid"===Va(e.attributes.name)||Va(e.attributes.property).match(/^article:/)||Va(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Va(e.attributes.name)||"yandex-verification"===Va(e.attributes.name)||"csrf-token"===Va(e.attributes.name)||"p:domain_verify"===Va(e.attributes.name)||"verify-v1"===Va(e.attributes.name)||"verification"===Va(e.attributes.name)||"shopify-checkout-api-token"===Va(e.attributes.name)))return!0}}return!1}(N,y)&&(x||N.type!==ua.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?wa():ka;const R=Object.assign(N,{id:A});if(r.add(e,R),A===ka)return null;E&&E(e);let L=!p;if(R.type===ua.Element){L=L&&!R.needBlock,delete R.needBlock;const t=e.shadowRoot;t&&pa(t)&&(R.isShadowHost=!0)}if((R.type===ua.Document||R.type===ua.Element)&&L){y.headWhitespace&&R.type===ua.Element&&"head"===R.tagName&&(x=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O};for(const n of Array.from(e.childNodes)){const e=Wa(n,t);e&&R.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Wa(n,t);r&&(pa(e.shadowRoot)&&(r.isShadow=!0),R.childNodes.push(r))}}return e.parentNode&&da(e.parentNode)&&pa(e.parentNode)&&(R.isShadow=!0),R.type===ua.Element&&"iframe"===R.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),s=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&T){const n=Wa(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O});n&&T(e,n)}}),C),R.type===ua.Element&&"link"===R.tagName&&"stylesheet"===R.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(s),o=!0,t()}))}(e,(()=>{if(k){const t=Wa(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:O});t&&k(e,t)}}),w),R}function za(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Ga(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const qa="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Xa={map:{},getId:()=>(console.error(qa),-1),getNode:()=>(console.error(qa),null),removeNodeFromMap(){console.error(qa)},has:()=>(console.error(qa),!1),reset(){console.error(qa)}};function Ya(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(function(...e){fc("clearTimeout")(...e)}(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=mc((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)}),a))}}function Ka(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){mc((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Ka(e,t,s||{},!0)}function Ja(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Xa=new Proxy(Xa,{get:(e,t,n)=>("map"===t&&console.error(qa),Reflect.get(e,t,n))}));let Qa=Date.now;function Za(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:za([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:za([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||za([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ec(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function tc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function rc(e,t,n,r,o){if(!e)return!1;const s=nc(e);if(!s)return!1;const i=ja(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=$a(s,i);let c=-1;return!(a<0)&&(r&&(c=$a(s,ja(null,r))),a>-1&&c<0||a<c)}function oc(e,t){return t.getId(e)===ka}function sc(e,t){if(da(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||sc(e.parentNode,t))}function ic(e){return Boolean(e.changedTouches)}function ac(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function cc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function lc(e){return Boolean(za([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Qa=()=>(new Date).getTime());class uc{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return()=>-1,null!=(t=this.styleIDMap.get(e))?t:-1;var t}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function dc(e){let t=null;return za([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function pc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=dc(n);)n=t;return n}(e);return t.contains(n)}(e))}const hc={};function fc(e){const t=hc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return hc[e]=r.bind(window)}function mc(...e){return fc("setTimeout")(...e)}var gc=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(gc||{}),_c=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(_c||{}),yc=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(yc||{}),vc=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(vc||{});function bc(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Sc(e){return"__ln"in e}class Ec{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=bc([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Sc(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Sc(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tc=(e,t)=>`${e}@${t}`;class Cc{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ec,r=e=>{let t=e,n=ka;for(;n===ka;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!pc(o))return;const s=da(o.parentNode)?this.mirror.getId(dc(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=Wa(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ac(e,this.mirror)&&this.iframeManager.addIframe(e),cc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),lc(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)wc(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Ic(this.droppedSet,e)||wc(this.removes,e,this.mirror)?Ic(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!oc(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Ha(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,nc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Sa(t),o=t.tagName;r=Ea(t,o,n);const s=ga({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=_a({isMasked:Ha(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ba(t.tagName,n)&&(o.attributes[n]=Ua(this.doc,ya(t.tagName),ya(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=da(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||oc(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(kc(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||sc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tc(n,r)]?kc(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!da(e.target)||!pa(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(oc(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Tc(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rc(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),lc(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function kc(e,t){e.delete(t),t.childNodes.forEach((t=>kc(e,t)))}function wc(e,t,n){return 0!==e.length&&Oc(e,t,n)}function Oc(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||Oc(e,r,n)}function Ic(e,t){return 0!==e.size&&xc(e,t)}function xc(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||xc(e,n))}let Nc;function Ac(e){Nc=e}function Rc(){Nc=void 0}const Lc=e=>Nc?(...t)=>{try{return e(...t)}catch(e){if(Nc&&!0===Nc(e))return()=>{};throw e}}:e;function Mc(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const Pc=[];function Dc(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Fc(e,t){const n=new Cc;Pc.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Mc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(Lc((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Uc({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return Ga("scroll",Lc(Ya(Lc((i=>{const a=Dc(i);if(!a||rc(a,r,o,s,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Za(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const Bc=["INPUT","TEXTAREA","SELECT"],$c=new WeakMap;function jc({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=Dc(e);const u=e.isTrusted,g=n&&va(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Bc.indexOf(g)<0||rc(n,r,o,s,!0))return;const y=n;if(y.classList.contains(i)||a&&y.matches(a))return;const v=Sa(n);let b=Ea(y,g,v),S=!1;const E=ga({maskInputOptions:c,tagName:g,type:v}),T=Ha(n,p,f,h,m,E);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=_a({isMasked:T,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});const C=n.name;"radio"===v&&C&&S&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=_a({isMasked:T,element:e,value:Ea(e,g,v),maskInputFn:l});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function _(t,r){const o=$c.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){$c.set(t,r);const o=n.getId(t);Lc(e)({...r,id:o})}}const y=("last"===u.input?["change"]:["input","change"]).map((e=>Ga(e,Lc(g),t))),v=t.defaultView;if(!v)return()=>{y.forEach((e=>e()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map((e=>Ka(e[0],e[1],{set(){Lc(g)({target:this,isTrusted:!1})}},!1,v)))),Lc((()=>{y.forEach((e=>e()))}))}function Hc(e){return function(e,t){if(Gc("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Gc("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Gc("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Gc("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Vc(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Wc({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Mc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Mc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=Mc([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Mc([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return Mc([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Mc([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Lc((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function zc(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Fc(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Ya(Lc((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),l=Lc(Ya(Lc((e=>{const t=Dc(e),{clientX:n,clientY:o}=ic(e)?e.changedTouches[0]:e;i||(i=Qa()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Qa()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?_c.Drag:e instanceof MouseEvent?_c.MouseMove:_c.TouchMove)})),o,{trailing:!1})),u=[Ga("mousemove",l,n),Ga("touchmove",l,n),Ga("drag",l,n)];return Lc((()=>{u.forEach((e=>e()))}))}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(yc).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=ya(i);const u=(t=>i=>{const a=Dc(i);if(rc(a,r,o,s,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=vc.Mouse;break;case"touch":c=vc.Touch;break;case"pen":c=vc.Pen}c===vc.Touch?yc[t]===yc.MouseDown?u="TouchStart":yc[t]===yc.MouseUp&&(u="TouchEnd"):vc.Pen}else ic(i)&&(c=vc.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===vc.Touch||u.startsWith("Mouse")&&c===vc.Mouse)&&(c=null)):yc[t]===yc.Click&&(c=l,l=null);const d=ic(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;Lc(e)({type:yc[u],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(yc[i]){case yc.MouseDown:case yc.MouseUp:a=a.replace("mouse","pointer");break;case yc.TouchStart:case yc.TouchEnd:return}c.push(Ga(a,u,t))})),Lc((()=>{c.forEach((e=>e()))}))}(e),i=Uc(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ga("resize",Lc(Ya(Lc((()=>{const t=ec(),o=tc();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=jc(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Lc((i=>Ya(Lc((s=>{const a=Dc(s);if(!a||rc(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),s.media||500))),c=[Ga("play",a(0),i),Ga("pause",a(1),i),Ga("seeked",a(2),i),Ga("volumechange",a(3),i),Ga("ratechange",a(4),i)];return Lc((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Lc(((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=Vc(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)}))}));const c={};qc("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(qc("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),qc("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),qc("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Lc(((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=Vc(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Hc(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Lc(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Vc(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Hc(o),i]}]}),r.apply(o,s)}))})})),Lc((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=Wc(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Lc(((o,i,a)=>{const[c,l,u]=a;if(n.has(c))return s.apply(i,[c,l,u]);const{id:d,styleId:p}=Vc(Mc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:l,priority:u},index:Hc(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Lc(((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:l,styleId:u}=Vc(Mc([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Hc(s.parentRule)}),o.apply(s,a)}))}),Lc((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Ja(t.fonts,"add",(function(t){return function(n){return mc(Lc((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),Lc((()=>{r.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const c=Lc((()=>{const e=t.getSelection();if(!e||a&&Mc([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;rc(a,r,o,s,!0)||rc(u,r,o,s,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})}));return c(),Ga("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ja(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Lc((()=>{Pc.forEach((e=>e.reset())),r.disconnect(),o(),s(),i(),a(),c(),l(),u(),d(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function Gc(e){return void 0!==window[e]}function qc(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xc{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Yc(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class Kc{constructor(){this.crossOriginIframeMirror=new Xc(wa),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Jc{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xc(wa),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Yc([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case gc.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:gc.IncrementalSnapshot,data:{source:_c.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gc.Meta:case gc.Load:case gc.DomContentLoaded:return!1;case gc.Plugin:return t;case gc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case gc.IncrementalSnapshot:switch(t.data.source){case _c.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _c.Drag:case _c.TouchMove:case _c.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _c.ViewportResize:return!1;case _c.MediaInteraction:case _c.MouseInteraction:case _c.Scroll:case _c.CanvasMutation:case _c.Input:return this.replaceIds(t.data,e,["id"]),t;case _c.StyleSheetRule:case _c.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _c.Font:return t;case _c.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case _c.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Yc([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===ua.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Qc{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Zc{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!pa(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Fc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Uc({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mc((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Wc({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ja(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&pc(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class el{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class tl{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new uc,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:fa(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class nl{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){fc("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let rl,ol;const sl=new ma;function il(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:E,sampling:T={},dataURLOptions:C={},mousemoveWait:k,recordCanvas:w=!1,recordCrossOriginIframes:O=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:x=!1,collectFonts:N=!1,inlineImages:A=!1,plugins:R,keepIframeSrcFn:L=(()=>!1),ignoreCSSAttributes:M=new Set([]),errorHandler:P,onMutation:D,getCanvasManager:F}=e;Ac(P);const U=!O||window.parent===window;let B=!1;if(!U)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(U&&!t)throw new Error("emit function is required");void 0!==k&&void 0===T.mousemove&&(T.mousemove=k),sl.reset();const $=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},j=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const W=e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!B&&(e=E(e)),e};rl=(e,o)=>{const s=e;if(s.timestamp=Qa(),!ii([Pc,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||s.type===gc.FullSnapshot||s.type===gc.IncrementalSnapshot&&s.data.source===_c.Mutation||Pc.forEach((e=>e.unfreeze())),U)ii([t,"optionalCall",e=>e(W(s),o)]);else if(B){const e={type:"rrweb",event:W(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===gc.FullSnapshot)H=s,V=0;else if(s.type===gc.IncrementalSnapshot){if(s.data.source===_c.Mutation&&s.data.isAttachIframe)return;V++;const e=r&&V>=r,t=n&&H&&s.timestamp-H.timestamp>n;(e||t)&&Z(!0)}};const z=e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.Mutation,...e}})},G=e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Scroll,...e}}),q=e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.CanvasMutation,...e}}),X=new tl({mutationCb:z,adoptedStyleSheetCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Kc:new Jc({mirror:sl,mutationCb:z,stylesheetManager:X,recordCrossOriginIframes:O,wrappedEmit:rl});for(const e of R||[])e.getMirror&&e.getMirror({nodeMirror:sl,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const K=new nl,J=function(e,t){try{return e?e(t):new el}catch(e){return console.warn("Unable to initialize CanvasManager"),new el}}(F,{mirror:sl,win:window,mutationCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.CanvasMutation,...e}}),recordCanvas:w,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:T.canvas,dataURLOptions:C,errorHandler:P}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Qc:new Zc({mutationCb:z,scrollCb:G,bypassOptions:{onMutation:D,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:$,dataURLOptions:C,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:w,inlineImages:A,sampling:T,slimDOMOptions:j,iframeManager:Y,stylesheetManager:X,canvasManager:J,keepIframeSrcFn:L,processedNodeManager:K},mirror:sl}),Z=(e=!1)=>{rl({type:gc.Meta,data:{href:window.location.href,width:tc(),height:ec()}},e),X.reset(),Q.init(),Pc.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new ma,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w=(()=>!1)}=t||{};return Wa(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:sl,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:$,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:j,dataURLOptions:C,recordCanvas:w,inlineImages:A,onSerialize:e=>{ac(e,sl)&&Y.addIframe(e),cc(e,sl)&&X.trackLinkElement(e),lc(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");rl({type:gc.FullSnapshot,data:{node:t,initialOffset:Za(window)}}),Pc.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,sl.getId(document))};ol=Z;try{const e=[],t=e=>Lc(zc)({onMutation:D,mutationCb:z,mousemoveCb:(e,t)=>rl({type:gc.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.ViewportResize,...e}}),inputCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Input,...e}}),mediaInteractionCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.MediaInteraction,...e}}),styleSheetRuleCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.StyleSheetRule,...e}}),styleDeclarationCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.StyleDeclaration,...e}}),canvasMutationCb:q,fontCb:e=>rl({type:gc.IncrementalSnapshot,data:{source:_c.Font,...e}}),selectionCb:e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.Selection,...e}})},customElementCb:e=>{rl({type:gc.IncrementalSnapshot,data:{source:_c.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:$,inlineStylesheet:f,sampling:T,recordCanvas:w,inlineImages:A,userTriggeredOnInput:x,collectFonts:N,doc:e,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:L,blockSelector:s,unblockSelector:i,slimDOMOptions:j,dataURLOptions:C,mirror:sl,iframeManager:Y,stylesheetManager:X,shadowDomManager:Q,processedNodeManager:K,canvasManager:J,ignoreCSSAttributes:M,plugins:ii([R,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>rl({type:gc.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ga("DOMContentLoaded",(()=>{rl({type:gc.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(Ga("load",(()=>{rl({type:gc.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),K.destroy(),ol=void 0,Rc()}}catch(e){console.warn(e)}}il.mirror=sl,il.takeFullSnapshot=function(e){if(!ol)throw new Error("please take full snapshot after start recording");ol(e)};const al=3;function cl(e){return e>9999999999?e:1e3*e}function ll(e){return e>9999999999?e/1e3:e}function ul(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:gc.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:ct(t,10,1e3)}}),"console"===t.category))))}const dl="button,a";function pl(e){return e.closest(dl)||e}function hl(e){const t=fl(e);return t&&t instanceof Element?pl(t):t}function fl(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let ml;class gl{constructor(e,t,n=ul){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=yl()},ml||(ml=[],B(na,"open",(function(e){return function(...t){if(ml)try{ml.forEach((e=>e()))}catch(e){}return e.apply(na,t)}}))),ml.push(t),()=>{const e=ml?ml.indexOf(t):-1;e>-1&&ml.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!_l.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:ll(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ll(e)}registerScroll(e=Date.now()){this._lastScroll=ll(e)}registerClick(e){const t=pl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=yl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:na.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(t,o)}else if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:na.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const _l=["A","BUTTON","INPUT"];function yl(){return Date.now()/1e3}function vl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var bl;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(bl||(bl={}));const Sl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function El(e){const t={};for(const n in e)if(Sl.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function Tl(e,t){const n=il.mirror.getId(e),r=n&&il.mirror.getNode(n),o=r&&il.mirror.getMeta(r),s=o&&function(e){return e.type===bl.Element}(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===bl.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:El(s.attributes)}}:{}}}const Cl={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:wl(s),end:wl(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=wl(o);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:wl(h),end:wl(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function kl(e){return Cl[e.entryType]?Cl[e.entryType](e):null}function wl(e){return((ae||na.performance.timeOrigin)+e)/1e3}const Ol="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Il(e,t){Ol&&(M.info(e),t&&Nl(e))}function xl(e,t){Ol&&(M.info(e),t&&setTimeout((()=>{Nl(e)}),0))}function Nl(e){yt({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Al extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Rl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>ca)throw new Al;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?cl(e):null}}class Ll{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Il("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return Ol&&M.error("[Replay]",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Ml{constructor(e){this._worker=new Ll(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=cl(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>ca?Promise.reject(new Al):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Ol&&M.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Pl{constructor(e){this._fallback=new Rl,this._compression=new Ml(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Il("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Ol&&M.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Dl(){try{return"sessionStorage"in na&&!!na.sessionStorage}catch(e){return!1}}function Fl(e){return void 0!==e&&Math.random()<e}function Ul(e){const t=Date.now();return{id:e.id||K(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Bl(e){if(Dl())try{na.sessionStorage.setItem(ra,JSON.stringify(e))}catch(e){}}function $l({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return Fl(e)?"session":!!t&&"buffer"}(e,t),s=Ul({sampled:o,previousSessionId:r});return n&&Bl(s),s}function jl(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Hl(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return jl(e.started,t,r)||jl(e.lastActivity,n,r)}function Vl(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Hl(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Wl({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const s=o.stickySession&&function(e){if(!Dl())return null;try{const t=na.sessionStorage.getItem(ra);if(!t)return null;const n=JSON.parse(t);return xl("[Replay] Loading existing session",e),Ul(n)}catch(e){return null}}(e);return s?Vl(s,{sessionIdleExpire:t,maxReplayDuration:n})?(xl("[Replay] Session in sessionStorage is expired, creating new one..."),$l(o,{previousSessionId:s.id})):s:(xl("[Replay] Creating new session",e),$l(o,{previousSessionId:r}))}function zl(e,t,n){return!!ql(e,t)&&(Gl(e,t,n),!0)}async function Gl(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===gc.Custom}(e))return t(e)}catch(e){return Ol&&M.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof Al?"addEventSizeExceeded":"addEvent";Ol&&M.error(t),await e.stop({reason:n});const r=Rt();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function ql(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=cl(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Il(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),1))}function Xl(e){return!e.type}function Yl(e){return"transaction"===e.type}function Kl(e){return"feedback"===e.type}function Jl(e){const t=function(){const e=Rt();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!Xl(n)&&!Yl(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(Yl(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Ql(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:gc.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Zl(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Ol||!e.getOptions()._experiments.traceInternals)&&ai(t,Rt())}(e,t.name)||e.addUpdate((()=>(Ql(e,[t]),!0))))}function eu(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=cu(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function tu(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function nu(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[cu(e)];if(!e)return[void 0]}catch(t){return Ol&&M.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ol&&M.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ru(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ou(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:G({method:s,statusCode:i,request:a,response:c})}}function su(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function iu(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>ia,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,ia);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function au(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function cu(e){return new URLSearchParams(e).toString()}function lu(e,t){const n=function(e,t=na.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(na.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return U(n,t)}function uu(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function du(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function pu(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?du(n,t):Array.isArray(n)?{}:au(n,t):{}}function hu(e){const t=Rt();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const s=eu(o,n.textEncoder),i=r.getResponseHeader("content-length")?tu(r.getResponseHeader("content-length")):function(e,t,n){try{return eu("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!lu(c,n.networkDetailAllowUrls)||lu(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:su(d),response:su(p)};const h=a[ps],f=h?au(h.request_headers,n.networkRequestHeaders):{},m=au(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?nu(i):[void 0],[y,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Ol&&M.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ol&&M.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Ol&&M.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=iu(f,d,g),S=iu(m,p,y);return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:_?ru(b,_):b,response:v?ru(S,v):S}}(e,t,n),o=ou("resource.xhr",r);Zl(n.replay,o)}catch(e){Ol&&M.error("[Replay] Failed to capture xhr breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:o}=t,s=eu(r?uu(r):void 0,n.textEncoder),i=o?tu(o.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=lu(i,n.networkDetailAllowUrls)&&!lu(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(i=t,1===(s=n).length&&"string"!=typeof s[0]?pu(s[0],i):2===s.length?pu(s[1],i):{}):{};var s,i;if(!e)return iu(o,r,void 0);const a=uu(n),[c,l]=nu(a),u=iu(o,r,c);return l?ru(u,l):u}(n,t.input,l):su(l),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,s){if(!e&&void 0!==s)return su(s);const i=o?du(o.headers,r):{};if(!o||!t&&void 0!==s)return iu(i,s,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Ol&&M.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return Ol&&M.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(o),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:s}){try{const i=e&&e.length&&void 0===r?eu(e,n):r;return o?iu(s,i,t?e:void 0):su(i)}catch(e){return Ol&&M.warn("[Replay] Failed to serialize response body",e),iu(s,r,void 0)}}(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:e,headers:i});return c?ru(l,c):l}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:h}}(e,t,n),o=ou("resource.fetch",r);Zl(n.replay,o)}catch(e){Ol&&M.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){Ol&&M.warn("Error when enriching network breadcrumb")}}(c,e,t))):(ms(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:s,url:i}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:i,data:{method:s,statusCode:o?o.status:void 0}}}(t);Zl(e,n)}}(e)),hs(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[ps];if(!t||!n||!o)return null;const{method:s,url:i,status_code:a}=o;return void 0===i?null:{type:"resource.xhr",name:i,start:t/1e3,end:n/1e3,data:{method:s,statusCode:a}}}(t);Zl(e,n)}}(e)))}catch(e){}}let fu=null;function mu(e){return!(!e||!e.on)}function gu(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function _u(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Ol&&M.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return e.type===al}(t))return;const{source:n}=t.data;if(n===_c.Mutation&&e.registerMutation(t.timestamp),n===_c.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===_c.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=il.mirror.getNode(r);o instanceof HTMLElement&&n===yc.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!zl(e,n,o))return!0;if(!o)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&zl(e,function(e){const t=e.getOptions();return{type:gc.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Il(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Bl(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}class yu extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class vu extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function bu(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=Rt(),p=Mt(),h=d&&d.getTransport(),f=d&&d.getDsn();if(!(d&&h&&f&&s.sampled))return;const m={type:oa,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const s=await dt(e.getOptions(),r,o,t,e,Qe());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),void Il("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const _=function(e,t,n,r){return gn(kn(e,Cn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,i,f,d.getOptions().tunnel);let y;try{y=await h.send(_)}catch(e){const t=new Error(sa);try{t.cause=e}catch(e){}throw t}if(!y)return y;if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new yu(y.statusCode);const v=zr({},y);if(Wr(v,"replay"))throw new vu(v);return y}(e),!0}catch(n){if(n instanceof yu||n instanceof vu)throw n;if(vt("Replays",{_retryCount:t.count}),Ol&&r._experiments&&r._experiments.captureExceptions&&ft(n),t.count>=3){const e=new Error(`${sa} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await bu(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Su="__THROTTLED";class Eu{constructor({options:e,recordingOptions:t}){Eu.prototype.__init.call(this),Eu.prototype.__init2.call(this),Eu.prototype.__init3.call(this),Eu.prototype.__init4.call(this),Eu.prototype.__init5.call(this),Eu.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,s;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function l(){return o&&clearTimeout(o),o=setTimeout(a,t),i&&void 0===s&&(s=setTimeout(a,i)),r}return l.cancel=c,l.flush=function(){return void 0!==o||void 0!==s?a():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Su}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}(((e,t)=>function(e,t,n){return ql(e,t)?Gl(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new gl(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",xl(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");xl("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Wl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");xl("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Wl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=il({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:_u(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Il("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(Dl())try{na.sessionStorage.removeItem(ra)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Il("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Il("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Il("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&jl(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${na.location.pathname}${na.location.hash}${na.location.search}`,t=`${na.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Su){const e=vl({category:"replay.throttled"});this.addUpdate((()=>!zl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Mt().getTransaction(),t=(e&&Pe(e).data||{})[Rn];if(e&&t&&["route","custom"].includes(t))return Pe(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;Il("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Pl(n)}catch(e){Il("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Il("[Replay] Using simple buffer"),new Rl}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Ol&&M.error("[Replay]",e),Ol&&this._options._experiments&&this._options._experiments.captureExceptions&&ft(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Wl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Vl(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{na.document.addEventListener("visibilitychange",this._handleVisibilityChange),na.addEventListener("blur",this._handleWindowBlur),na.addEventListener("focus",this._handleWindowFocus),na.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=Mt(),n=Rt();t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return fu!==t&&t?(fu=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return vl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>aa?(n=!0,`${e.slice(0,aa)}…`):e;if("object"==typeof e)try{const t=ct(e,7);return JSON.stringify(t).length>aa?(n=!0,`${JSON.stringify(t,null,2).slice(0,aa)}…`):t}catch(e){}return e}));return vl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):vl(t)):null}(t);n&&ul(e,n)})(e)),cs((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?hl(e.event):fl(e.event),n=k(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return vl({category:`ui.${e.name}`,...Tl(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var s,i,a;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=e.clickDetector,i=n,a=hl(t.event),s.handleClick(i,a)),ul(e,n)})(e)),Zo(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Ql(e,[n]),!1))))}}(e)),hu(e);const r=function(e,t=!1){const n=t?Jl(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Xl(t)&&!Yl(t)&&!Kl(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Kl(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:gc.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Ol&&M.log("[Replay] Ignoring error from rrweb internals",t),null;const o=function(e,t){return"buffer"===e.recordingMode&&t.message!==sa&&!(!t.exception||t.type)&&Fl(e.getOptions().errorSampleRate)}(e,t);return(o||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}(e,!mu(n));n&&n.addEventProcessor?n.addEventProcessor(r):Xn(r),mu(n)&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&Xl(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;"string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&ul(e,vl({category:"replay.hydrate-error"}))}(e,t)}}(e)),n.on("afterSendEvent",Jl(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Gi(e,n))})),r.push(zi((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,s=wl(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:o,size:o,nodeId:r?il.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{na.document.removeEventListener("visibilitychange",this._handleVisibilityChange),na.removeEventListener("blur",this._handleWindowBlur),na.removeEventListener("focus",this._handleWindowFocus),na.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===na.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=vl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=vl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!s)return null;const a=t||r||o,c=1===s.length;if(!a&&c)return null;const l=k(i,{maxStringLength:200})||"<unknown>";return vl({category:"ui.keyDown",message:l,data:{...Tl(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(t);n&&ul(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(Hl(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Il("[Replay] Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:gc.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(kl).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Ql(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Ql(e,[gu(na.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await bu({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Rt();t&&t.recordDroppedEvent("send_error","replay")}}else Ol&&M.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Ol&&M.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Il(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&Il("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Ol&&M.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Bl(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=vl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Tu(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(`.${n}`),L((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),o.join(",")}const Cu='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ku=["content-length","content-type","accept"];let wu=!1;const Ou=e=>new Iu(e);class Iu{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:T=["title","placeholder"],unmask:C=[],block:k=[],unblock:w=[],ignore:O=[],maskFn:I,beforeAddRecordingEvent:x,beforeErrorSampling:N,blockClass:A,blockSelector:R,maskInputOptions:L,maskTextClass:M,maskTextSelector:P,ignoreClass:D}={}){this.name=Iu.id;const F=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:s,blockSelector:i,maskTextClass:a,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:Tu(e,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:Tu(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Tu(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,i),unblockSelector:Tu(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Tu(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return s instanceof RegExp&&(u.blockClass=s),a instanceof RegExp&&(u.maskTextClass=a),u}({mask:E,unmask:C,block:k,unblock:w,ignore:O,blockClass:A,blockSelector:R,maskTextClass:M,maskTextSelector:P,ignoreClass:D});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...L||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:T,maskAllText:u,privacyOptions:F,key:e,value:t,el:n}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,sessionSampleRate:c,errorSampleRate:l,useCompression:s,workerUrl:i,blockAllMedia:p,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:xu(b),networkResponseHeaders:xu(S),beforeAddRecordingEvent:x,beforeErrorSampling:N,_experiments:a},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Cu}`:Cu),this._isInitialized&&ui())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return wu}set _isInitialized(e){wu=e}setupOnce(){ui()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Rt(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...G(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&L((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(L((()=>{console.warn("SDK client is not available.")})),r)}(this._initialOptions);this._replay=new Eu({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Rt().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function xu(e){return[...ku,...e.map((e=>e.toLowerCase()))]}function Nu(){const e=Rt();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}var Au;function Ru(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ru(e.parentNode,t,n,r+1):-1}function Lu(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}Iu.__initStatic(),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Au||(Au={}));const Mu="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Pu={map:{},getId:()=>(console.error(Mu),-1),getNode:()=>(console.error(Mu),null),removeNodeFromMap(){console.error(Mu)},has:()=>(console.error(Mu),!1),reset(){console.error(Mu)}};function Du(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Hu((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Du(e,t,s||{},!0)}function Fu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function Uu(e,t,n,r,o){if(!e)return!1;const s=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!s)return!1;const i=Lu(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=Ru(s,i);let c=-1;return!(a<0)&&(r&&(c=Ru(s,Lu(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Pu=new Proxy(Pu,{get:(e,t,n)=>("map"===t&&console.error(Mu),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const Bu={};function $u(e){const t=Bu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Bu[e]=r.bind(window)}function ju(...e){return $u("requestAnimationFrame")(...e)}function Hu(...e){return $u("setTimeout")(...e)}var Vu=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Vu||{});let Wu;const zu=e=>Wu?(...t)=>{try{return e(...t)}catch(e){if(Wu&&!0===Wu(e))return()=>{};throw e}}:e;for(var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xu=0;Xu<64;Xu++)qu[Gu.charCodeAt(Xu)]=Xu;const Yu=new Map,Ku=(e,t,n)=>{if(!e||!Zu(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=Yu.get(e);return n||(n=new Map,Yu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function Ju(e,t,n){if(e instanceof Array)return e.map((e=>Ju(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=Gu[n[t]>>2],o+=Gu[(3&n[t])<<4|n[t+1]>>4],o+=Gu[(15&n[t+1])<<2|n[t+2]>>6],o+=Gu[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ju(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[Ju(e.data,t,n),e.width,e.height]}:Zu(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Ku(e,t,n)}:e}const Qu=(e,t,n)=>e.map((e=>Ju(e,t,n))),Zu=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function ed(e,t,n,r,o){const s=[];try{const i=Fu(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...i){if(!Uu(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}}));s.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}function td(e,t,n,r,o,s,i,a){const c=[],l=Object.getOwnPropertyNames(e);for(const i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const l=Fu(e,i,(function(e){return function(...c){const l=e.apply(this,c);if(Ku(l,a,this),"tagName"in this.canvas&&!Uu(this.canvas,r,o,s,!0)){const e=Qu(c,a,this),r={type:t,property:i,args:e};n(this.canvas,r)}return l}}));c.push(l)}catch(r){const o=Du(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});c.push(o)}return c}class nd{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,l&&(Wu=l),e.enableManualSnapshot||zu((()=>{a&&"all"===t&&this.initCanvasMutationObserver(n,r,o,s),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,r,o,s,i,{dataURLOptions:c})}))()}initCanvasFPSObserver(e,t,n,r,o,s,i){const a=ed(t,n,r,o,!0),c=this.takeSnapshot(!1,e,t,n,r,o,s,i.dataURLOptions);this.resetObservers=()=>{a(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=ed(e,t,n,r,!1),s=function(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=Fu(t.CanvasRenderingContext2D.prototype,a,(function(s){return function(...i){return Uu(this.canvas,n,r,o,!0)||Hu((()=>{const n=Qu(i,t,this);e(this.canvas,{type:Vu["2D"],property:a,args:n})}),0),s.apply(this,i)}}));s.push(i)}catch(n){const r=Du(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:Vu["2D"],property:a,args:[t],setter:!0})}});s.push(r)}return()=>{s.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,o,s){const i=[];return i.push(...td(t.WebGLRenderingContext.prototype,Vu.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...td(t.WebGL2RenderingContext.prototype,Vu.WebGL2,e,n,r,o,0,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.resetObservers=()=>{o(),s(),i()}}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,r,o,s,i,a,c){const l=new Map,u=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());u.onmessage=e=>{const t=e.data,{id:n}=t;if(l.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:s,height:i}=t;this.mutationCb({id:n,type:Vu["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,s,i]}]})};const d=1e3/t;let p,h=0;const f=t=>{h&&t-h<d||(h=t,(e=>{if(e)return[e];const t=[];return n.document.querySelectorAll("canvas").forEach((e=>{Uu(e,r,o,s,!0)||t.push(e)})),t})(c).forEach((t=>{const n=this.mirror.getId(t);if(!l.get(n)&&t.width&&t.height){if(l.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===ii([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{u.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:i},[e])})).catch((e=>{zu((()=>{throw e}))()}))}}))),p=ju(f)};return p=ju(f),p}startPendingCanvasMutationFlusher(){ju((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,ju(e)};ju(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),ju((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}const rd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},od="ReplayCanvas",sd=1280,id=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,sd):sd,n?Math.min(n,sd):sd]};let o;const s=new Promise((e=>o=e));return{name:od,setupOnce(){},getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new nd({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return o(r),r},...rd[e||"medium"]||rd.medium}},async snapshot(e){(await s).snapshot(e)}}},ad=Wt(od,id),cd=b,ld="#ffffff",ud="inherit",dd="rgba(108, 95, 199, 1)",pd={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:ld,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:dd,submitBorder:dd,submitOutlineFocus:"#29232f",submitForeground:ld,submitForegroundHover:ld,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:ud,inputForeground:ud,inputBorder:"var(--border)",inputOutlineFocus:dd,formBorderRadius:"20px",formContentBorderRadius:"6px"},hd=pd,fd={...pd,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"},md="widget",gd="api";function _d({name:e,email:t,message:n,source:r=gd,url:o=O()},s={}){if(!n)throw new Error("Unable to submit feedback with empty message");return async function({feedback:{message:e,email:t,name:n,source:r,url:o}},{includeReplay:s=!0}={}){const i=Rt(),a=i&&i.getTransport(),c=i&&i.getDsn();if(!i||!a||!c)return;const l={contexts:{feedback:{contact_email:t,name:n,message:e,url:o,source:r}},type:"feedback"};return kt((async e=>{e.clearBreadcrumbs(),[gd,md].includes(String(r))&&e.setLevel("info");const t=await async function({client:e,scope:t,event:n}){const r={};e.emit&&e.emit("preprocessEvent",n,r);const o=await dt(e.getOptions(),n,r,t,e,Qe());return null===o?(e.recordDroppedEvent("event_processor","feedback",n),null):(o.platform=o.platform||"javascript",o)}({scope:e,client:i,event:l});if(!t)return;i.emit&&i.emit("beforeSendFeedback",t,{includeReplay:Boolean(s)});const n=$n(t,c,i.getOptions()._metadata,i.getOptions().tunnel);let o;try{o=await a.send(n)}catch(e){const t=new Error("Unable to send Feedback");try{t.cause=e}catch(e){}throw t}if(o){if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new Error("Unable to send Feedback");return o}}))}({feedback:{name:e,email:t,message:n,url:o,source:r}},s)}const yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function vd(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function bd(e){return`\n --background: ${e.background};\n --background-hover: ${e.backgroundHover};\n --foreground: ${e.foreground};\n --error: ${e.error};\n --success: ${e.success};\n --border: ${e.border};\n --border-radius: ${e.borderRadius};\n --box-shadow: ${e.boxShadow};\n\n --submit-background: ${e.submitBackground};\n --submit-background-hover: ${e.submitBackgroundHover};\n --submit-border: ${e.submitBorder};\n --submit-outline-focus: ${e.submitOutlineFocus};\n --submit-foreground: ${e.submitForeground};\n --submit-foreground-hover: ${e.submitForegroundHover};\n\n --cancel-background: ${e.cancelBackground};\n --cancel-background-hover: ${e.cancelBackgroundHover};\n --cancel-border: ${e.cancelBorder};\n --cancel-outline-focus: ${e.cancelOutlineFocus};\n --cancel-foreground: ${e.cancelForeground};\n --cancel-foreground-hover: ${e.cancelForegroundHover};\n\n --input-background: ${e.inputBackground};\n --input-foreground: ${e.inputForeground};\n --input-border: ${e.inputBorder};\n --input-outline-focus: ${e.inputOutlineFocus};\n\n --form-border-radius: ${e.formBorderRadius};\n --form-content-border-radius: ${e.formContentBorderRadius};\n `}function Sd(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const Ed=20,Td="http://www.w3.org/2000/svg";function Cd(e,t,...n){const r=cd.document.createElement(e);t&&Object.entries(t).forEach((([e,t])=>{"className"===e&&"string"==typeof t?r.setAttribute("class",t):"boolean"==typeof t&&t?r.setAttribute(e,""):"string"==typeof t?r.setAttribute(e,t):e.startsWith("on")&&"function"==typeof t&&r.addEventListener(e.substring(2).toLowerCase(),t)}));for(const e of n)kd(r,e);return r}function kd(e,t){const n=cd.document;if(null!=t)if(Array.isArray(t))for(const n of t)kd(e,n);else!1===t||("string"==typeof t?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function wd(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}const Od="http://www.w3.org/2000/svg";function Id({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:o,isEmailRequired:s,colorScheme:i,defaultName:a,defaultEmail:c,onClosed:l,onCancel:u,onSubmit:d,...p}){let h=null;function f(){h&&(h.open=!1)}const{el:m,showError:g,hideError:_}=function({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:o,messagePlaceholder:s,isRequiredLabel:i,cancelButtonLabel:a,submitButtonLabel:c,showName:l,showEmail:u,isNameRequired:d,isEmailRequired:p,defaultName:h,defaultEmail:f,onCancel:m,onSubmit:g}){const{el:_}=function({label:e}){return{el:Cd("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}({label:c}),y=Cd("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"}),v=Cd("input",{id:"name",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"name",required:d,className:"form__input",placeholder:t,value:h}),b=Cd("input",{id:"email",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"email",required:p,className:"form__input",placeholder:r,value:f}),S=Cd("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:s}),E=Cd("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:e=>{m&&m(e)}},a),T=Cd("form",{className:"form",onSubmit:function(e){if(e.preventDefault(),e.target instanceof HTMLFormElement)try{if(g){const t=new FormData(e.target),n={name:wd(t,"name"),email:wd(t,"email"),message:wd(t,"message")};g(n)}}catch(e){}}},[y,l&&Cd("label",{htmlFor:"name",className:"form__label"},[Cd("span",{className:"form__label__text"},e,d&&Cd("span",{className:"form__label__text--required"},` ${i}`)),v]),!l&&v,u&&Cd("label",{htmlFor:"email",className:"form__label"},[Cd("span",{className:"form__label__text"},n,p&&Cd("span",{className:"form__label__text--required"},` ${i}`)),b]),!u&&b,Cd("label",{htmlFor:"message",className:"form__label"},[Cd("span",{className:"form__label__text"},o,Cd("span",{className:"form__label__text--required"},` ${i}`)),S]),Cd("div",{className:"btn-group"},[_,E])]);return{get el(){return T},showError:function(e){y.textContent=e,y.classList.remove("form__error-container--hidden"),y.setAttribute("aria-hidden","false")},hideError:function(){y.textContent="",y.classList.add("form__error-container--hidden"),y.setAttribute("aria-hidden","true")}}}({showEmail:r,showName:n,isEmailRequired:s,isNameRequired:o,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:u,...p});return h=Cd("dialog",{className:"dialog",open:!0,onClick:function(){f(),l&&l()}},Cd("div",{className:"dialog__content",onClick:e=>{e.stopPropagation()}},Cd("h2",{className:"dialog__header"},e,t&&Cd("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},function({colorScheme:e}){const t=e=>cd.document.createElementNS(Od,e),n=Sd(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=Sd(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const o=t("defs"),s=t("style");return s.textContent=`\n path {\n fill: ${"dark"===e?"#fff":"#362d59"};\n }`,"system"===e&&(s.textContent+="\n @media (prefers-color-scheme: dark) {\n path: {\n fill: '#fff';\n }\n }\n "),o.append(s),n.append(o),{get el(){return n}}}({colorScheme:i}).el)),m)),{get el(){return h},showError:g,hideError:_,open:function(){h&&(h.open=!0)},close:f,checkIsOpen:function(){return h&&!0===h.open||!1}}}const xd=16,Nd=17,Ad="http://www.w3.org/2000/svg";function Rd({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let o,s,i=!1;async function a(t){if(!s)return;const r=[];n.isNameRequired&&!t.name&&r.push(n.nameLabel),n.isEmailRequired&&!t.email&&r.push(n.emailLabel),t.message||r.push(n.messageLabel),r.length>0?s.showError(`Please enter in the following required fields: ${r.join(", ")}`):await async function(e,t,n){if(e){e.hideError();try{return await _d({...t,source:md},n)}catch(t){yd&&M.error(t),e&&e.showError("There was a problem submitting feedback, please wait and try again.")}}}(s,t)?(h(),function(){if(e)try{const t=function({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}const r=Cd("div",{className:"success-message",onClick:n},function(){const e=e=>cd.document.createElementNS(Ad,e),t=Sd(e("svg"),{class:"success-icon",width:`${xd}`,height:`${Nd}`,viewBox:`0 0 ${xd} ${Nd}`,fill:"none"}),n=Sd(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Sd(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Sd(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const s=e("defs"),i=Sd(e("clipPath"),{id:"clip0_57_156"}),a=Sd(e("rect"),{width:`${xd}`,height:`${xd}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),{get el(){return t}}}().el,e);return{el:r,remove:n}}({message:n.successMessageText,onRemove:()=>{r&&clearTimeout(r),l()}});if(!t.el)throw new Error("Unable to show success message");e.appendChild(t.el);const r=setTimeout((()=>{t&&t.remove()}),5e3)}catch(e){M.error(e)}}(),n.onSubmitSuccess&&n.onSubmitSuccess()):n.onSubmitError&&n.onSubmitError()}function c(){const e=Rt(),t=e&&e.getIntegrationByName&&e.getIntegrationByName("Replay");t&&t.flush().catch((e=>{yd&&M.error(e)}))}function l(){o&&o.show()}function u(){o&&o.hide()}function d(){try{if(s)return s.open(),i=!0,n.onFormOpen&&n.onFormOpen(),void c();const t=n.useSentryUser,r=Mt(),o=r&&r.getUser();if(s=Id({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:t&&o&&o[t.name]||"",defaultEmail:t&&o&&o[t.email]||"",onClosed:()=>{l(),i=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{p(),l()},onSubmit:a}),!s.el)throw new Error("Unable to open Feedback dialog");e.appendChild(s.el),u(),n.onFormOpen&&n.onFormOpen(),c()}catch(e){M.error(e)}}function p(){s&&(s.close(),i=!1,n.onFormClose&&n.onFormClose())}function h(){if(s){p();const e=s.el;e&&e.remove(),s=void 0}}function f(){i||d(),u()}return r?r.addEventListener("click",f):t&&(o=function({buttonLabel:e,onClick:t}){const n=Cd("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},function(){const e=e=>cd.document.createElementNS(Td,e),t=Sd(e("svg"),{class:"feedback-icon",width:`${Ed}`,height:`${Ed}`,viewBox:`0 0 ${Ed} ${Ed}`,fill:"none"}),n=Sd(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Sd(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),s=Sd(e("clipPath"),{id:"clip0_57_80"}),i=Sd(e("rect"),{width:`${Ed}`,height:`${Ed}`,fill:"white"});return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),{get el(){return t}}}().el,e?Cd("span",{className:"widget__actor__text"},e):null);return n.addEventListener("click",(function(e){t&&t(e)})),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}({buttonLabel:n.buttonLabel,onClick:f}),o.el&&e.appendChild(o.el)),{get actor(){return o},get dialog(){return s},showActor:l,hideActor:u,removeActor:function(){o&&o.el&&o.el.remove()},openDialog:d,closeDialog:p,removeDialog:h}}const Ld=cd.document,Md=e=>new Pd(e);class Pd{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:t="sentry-feedback",isEmailRequired:n=!1,isNameRequired:r=!1,showBranding:o=!0,showEmail:s=!0,showName:i=!0,useSentryUser:a={email:"email",name:"username"},themeDark:c,themeLight:l,colorScheme:u="system",buttonLabel:d="Report a Bug",cancelButtonLabel:p="Cancel",submitButtonLabel:h="Send Bug Report",formTitle:f="Report a Bug",emailPlaceholder:m="your.email@example.org",emailLabel:g="Email",messagePlaceholder:_="What's the bug? What did you expect?",messageLabel:y="Description",namePlaceholder:v="Your Name",nameLabel:b="Name",isRequiredLabel:S="(required)",successMessageText:E="Thank you for your report!",onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}={}){this.name=Pd.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:o,id:t,isEmailRequired:n,isNameRequired:r,showEmail:s,showName:i,useSentryUser:a,colorScheme:u,themeDark:{...fd,...c},themeLight:{...hd,...l},buttonLabel:d,cancelButtonLabel:p,submitButtonLabel:h,formTitle:f,emailLabel:g,emailPlaceholder:m,messageLabel:y,messagePlaceholder:_,nameLabel:b,namePlaceholder:v,isRequiredLabel:S,successMessageText:E,onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}}setupOnce(){if(ui())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){yd&&M.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{const n=vd(this.options,t||{});return this._ensureShadowHost(n,(({shadow:t})=>{const r="string"==typeof e?Ld.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)return yd&&M.error("[Feedback] Unable to attach to target element"),null;const o=Rd({shadow:t,options:n,attachTo:r});return this._widgets.add(o),this._widget||(this._widget=o),o}))}catch(e){return yd&&M.error(e),null}}createWidget(e){try{return this._createWidget(vd(this.options,e||{}))}catch(e){return yd&&M.error(e),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(e){yd&&M.error(e)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Ld.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,(({shadow:t})=>{const n=Rd({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.widget__actor {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n line-height: 16px;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n border-radius: var(--border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 16px;\n text-decoration: none;\n z-index: 9000;\n\n color: var(--foreground);\n background-color: var(--background);\n border: var(--border);\n box-shadow: var(--box-shadow);\n opacity: 1;\n transition: opacity 0.1s ease-in-out;\n}\n\n.widget__actor:hover {\n background-color: var(--background-hover);\n}\n\n.widget__actor svg {\n width: 16px;\n height: 16px;\n}\n\n.widget__actor--hidden {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n\n.widget__actor__text {\n}\n\n@media (max-width: 600px) {\n .widget__actor__text {\n display: none;\n }\n}\n\n.feedback-icon path {\n fill: var(--foreground);\n}\n",t}(Ld)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n}))}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){const{id:t,colorScheme:r,themeLight:o,themeDark:s}=e,{shadow:i,host:a}=function({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{const o=cd.document,s=o.createElement("div");s.id=e;const i=s.attachShadow({mode:"open"});return i.appendChild(function(e,t,n){const r=e.createElement("style");return r.textContent=`\n:host {\n --bottom: 1rem;\n --right: 1rem;\n --top: auto;\n --left: auto;\n --z-index: 100000;\n --font-family: ${n.light.fontFamily};\n --font-size: ${n.light.fontSize};\n\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${bd("dark"===t?n.dark:n.light)}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${bd(n.dark)}\n }\n}`:""}\n}`,r}(o,t,{dark:n,light:r})),i.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.dialog {\n line-height: 25px;\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n position: fixed;\n inset: 0;\n z-index: 10000;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n\n border: var(--border);\n border-radius: var(--form-border-radius);\n background-color: var(--background);\n color: var(--foreground);\n\n width: 320px;\n max-width: 100%;\n max-height: calc(100% - 2rem);\n display: flex;\n flex-direction: column;\n box-shadow: var(--box-shadow);\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 20px;\n font-weight: 600;\n padding: 24px 24px 0 24px;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.brand-link {\n display: inline-flex;\n}\n\n.error {\n color: var(--error);\n margin-bottom: 16px;\n}\n\n.form {\n display: grid;\n overflow: auto;\n flex-direction: column;\n gap: 16px;\n padding: 0 24px 24px;\n}\n\n.form__error-container {\n color: var(--error);\n}\n\n.form__error-container--hidden {\n display: none;\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: grid;\n gap: 4px;\n align-items: center;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n line-height: inherit;\n background-color: var(--input-background);\n box-sizing: border-box;\n border: var(--input-border);\n border-radius: var(--form-content-border-radius);\n color: var(--input-foreground);\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 500;\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n color: var(--input-foreground);\n opacity: 0.65;\n}\n\n.form__input:focus-visible {\n outline: 1px auto var(--input-outline-focus);\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.btn-group {\n display: grid;\n gap: 8px;\n margin-top: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--cancel-border);\n border-radius: var(--form-content-border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 6px 16px;\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n background-color: var(--submit-background);\n border-color: var(--submit-border);\n color: var(--submit-foreground);\n}\n.btn--primary:hover {\n background-color: var(--submit-background-hover);\n color: var(--submit-foreground-hover);\n}\n.btn--primary:focus-visible {\n outline: 1px auto var(--submit-outline-focus);\n}\n\n.btn--default {\n background-color: var(--cancel-background);\n color: var(--cancel-foreground);\n font-weight: 500;\n}\n.btn--default:hover {\n background-color: var(--cancel-background-hover);\n color: var(--cancel-foreground-hover);\n}\n.btn--default:focus-visible {\n outline: 1px auto var(--cancel-outline-focus);\n}\n\n.success-message {\n background-color: var(--background);\n border: var(--border);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n font-weight: 600;\n color: var(--success);\n padding: 12px 24px;\n line-height: 25px;\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success-icon path {\n fill: var(--success);\n}\n",t}(o)),{shadow:i,host:s}}catch(e){throw M.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}({id:t,colorScheme:r,themeLight:o,themeDark:s});this._shadow=i,this._host=a,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const r=t({shadow:this._shadow,host:this._host});return n&&Ld.body.appendChild(this._host),r}}Pd.__initStatic();const Dd="CaptureConsole",Fd=(e={})=>{const t=e.levels||A;return{name:Dd,setupOnce(){},setup(e){"console"in b&&ts((({args:n,level:r})=>{Rt()===e&&t.includes(r)&&function(e,t){const n={level:bs(t),extra:{arguments:e}};kt((r=>{if(r.addEventProcessor((e=>(e.logger="console",ee(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${F(e.slice(1)," ")||"console.assert"}`;return r.setExtra("arguments",e.slice(1)),void mt(t,n)}const o=e.find((e=>e instanceof Error));"error"===t&&o?ft(o,n):mt(F(e," "),n)}))}(n,r)}))}}};Wt(Dd,Fd);const Ud=b,Bd="ContextLines",$d=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:Bd,setupOnce(){},processEvent:e=>function(e,t){const n=Ud.document,r=Ud.location&&Ud.location.href.split(/[\?#]/,1)[0];if(!n||!r)return e;const o=e.exception&&e.exception.values;if(!o||!o.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const i=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"];return o.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(function(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>D(e,0))),t.context_line=D(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>D(e,0)))}(t,e,r),e):e}(e,i,r,t))))})),e}(e,t)}};Wt(Bd,$d);const jd="Debug",Hd=(e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:jd,setupOnce(){},setup(e){e.on&&e.on("beforeSendEvent",((e,n)=>{t.debugger,L((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}},Vd=(Wt(jd,Hd),"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__),Wd="Dedupe",zd=()=>{let e;return{name:Wd,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!qd(e,t)&&!!Gd(e,t))))}(e,t)||!!function(e,t){const n=Xd(t),r=Xd(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!qd(e,t)&&!!Gd(e,t)))}(e,t))}(t,e))return Vd&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Gd(e,t){let n=Yd(e),r=Yd(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function qd(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Xd(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Yd(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Wt(Wd,zd);const Kd="ExtraErrorData",Jd=(e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:Kd,setupOnce(){},processEvent:(e,r)=>function(e,t={},n,r){if(!t.originalException||!i(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,s=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const o=e[t];r[t]=i(o)?o.toString():o}if(t&&void 0!==e.cause&&(r.cause=i(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];r[e]=i(n)?n.toString():n}}return r}catch(e){Vd&&M.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r);if(s){const t={...e.contexts},r=ct(s,n);return h(r)&&($(r,"__sentry_skip_normalization__",!0),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n)}};Wt(Kd,Jd);const Qd="HttpClient",Zd=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Qd,setupOnce(){},setup(e){!function(e,t){Io()&&ms((n=>{if(Rt()!==e)return;const{response:r,args:o}=n,[s,i]=o;r&&function(e,t,n,r){if(np(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let o,s,i,a;op()&&([{headers:o,cookies:i},{headers:s,cookies:a}]=[{cookieHeader:"Cookie",obj:e},{cookieHeader:"Set-Cookie",obj:n}].map((({cookieHeader:e,obj:t})=>{const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=tp(t))}catch(t){Vd&&M.log(`Could not extract cookies from header ${e}`)}return{headers:n,cookies:r}}))),gt(rp({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:s,requestCookies:i,responseCookies:a}))}}(t,s,r,i)}))}(e,t),function(e,t){"XMLHttpRequest"in b&&hs((n=>{if(Rt()!==e)return;const r=n.xhr,o=r[ps];if(!o)return;const{method:s,request_headers:i}=o;try{!function(e,t,n,r){if(np(e,t.status,t.responseURL)){let e,o,s;if(op()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=tp(e))}catch(e){Vd&&M.log("Could not extract cookies from response headers")}try{s=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{}):{}}(t)}catch(e){Vd&&M.log("Could not extract headers from response")}e=r}gt(rp({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:o}))}}(t,r,s,i)}catch(e){Vd&&M.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}};function ep(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function tp(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{})}function np(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!ai(n,Rt());var r,o}function rp(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:ep(e.responseHeaders)}}};return ee(n,{type:"http.client",handled:!1}),n}function op(){const e=Rt();return!!e&&Boolean(e.getOptions().sendDefaultPii)}Wt(Qd,Zd);const sp=b,ip="ReportingObserver",ap=new WeakMap,cp=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(ap.has(Rt()))for(const t of e)kt((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}mt(`${n}: ${r}`)}))}return{name:ip,setupOnce(){"ReportingObserver"in ko&&new sp.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){ap.set(e,!0)}}};Wt(ip,cp);const lp=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function up(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function dp(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const pp="RewriteFrames",hp=(e={})=>{const t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;const r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),o=/^\//.test(e.filename);if(r||o){const o=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,s=t?function(e,t){e=up(e).slice(1),t=up(t).slice(1);const n=dp(e.split("/")),r=dp(t.split("/")),o=Math.min(n.length,r.length);let s=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){s=e;break}let i=[];for(let e=s;e<n.length;e++)i.push("..");return i=i.concat(r.slice(s)),i.join("/")}(t,o):function(e,t){let n=function(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=lp.exec(t);return n?n.slice(1):[]}(e)[2];return n}(o);e.filename=`${n}${s}`}return e});return{name:pp,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>r(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}},fp=(Wt(pp,hp),"SessionTiming"),mp=()=>{const e=Date.now();return{name:fp,setupOnce(){},processEvent(t){const n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}};function gp(){hi.document?hi.document.addEventListener("visibilitychange",(()=>{const e=ir();if(hi.document.hidden&&e){const t="cancelled",{op:n,status:r}=Pe(e);di&&M.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):di&&M.warn("[Tracing] Could not set up background tab detection due to lack of global document")}function _p(e){return[{type:"span"},e]}function yp(e){return"number"==typeof e&&isFinite(e)}function vp(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}Wt(fp,mp);const bp=2147483647;function Sp(e){return e/1e3}function Ep(){return hi&&hi.addEventListener&&hi.performance}let Tp,Cp,kp=0,wp={};function Op(){const e=Ep();if(e&&ae){e.mark&&hi.performance.mark("sentry-tracing-init");const t=Zi("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Sp(ae),r=Sp(t.startTime);di&&M.log("[Measurements] Adding FID"),wp.fid={value:e.value,unit:"millisecond"},wp["mark.fid"]={value:n+r,unit:"second"}}),Yi,ji),n=function(e,t=!1){return Zi("cls",e,Xi,$i,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(di&&M.log("[Measurements] Adding CLS"),wp.cls={value:e.value,unit:""},Cp=t)}),!0),r=zi((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(di&&M.log("[Measurements] Adding LCP"),wp.lcp={value:e.value,unit:"millisecond"},Tp=t)}),!0),o=Zi("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(di&&M.log("[Measurements] Adding TTFB"),wp.ttfb={value:e.value,unit:"millisecond"})}),Ji,Vi);return()=>{t(),n(),r(),o()}}return()=>{}}function Ip(){Gi("longtask",(({entries:e})=>{for(const t of e){const e=ir();if(!e)return;const n=Sp(ae+t.startTime),r=Sp(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}))}function xp(){Gi("event",(({entries:e})=>{for(const t of e){const e=ir();if(!e)return;if("click"===t.name){const n=Sp(ae+t.startTime),r=Sp(t.duration),o={description:k(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},s=x(t.target);s&&(o.attributes={"ui.component_name":s}),e.startChild(o)}}}))}function Np(e,t){if(Ep()&&ae){const n=function(e,t){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((e=>e.duration===n.value&&void 0!==Ap[e.name])),o=Rt();if(!r||!o)return;const s=Ap[r.name],i=o.getOptions(),a=Sp(ae+r.startTime),c=Sp(n.value),l=void 0!==r.interactionId?e[r.interactionId]:void 0;if(void 0===l)return;const{routeName:u,parentContext:d,activeTransaction:p,user:h,replayId:f}=l,m=void 0!==h?h.email||h.id||h.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,_=new Nr({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${s}`,name:k(r.target),attributes:{release:i.release,environment:i.environment,transaction:u,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==f?{replay_id:f}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=function(e,t,n){if(!dr(t))return!1;let r;return r=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:hi.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,Fr(r)?!0===r?n:!1===r?0:r*n:(di&&M.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(d,i,t);if(y&&Math.random()<y){const e=_?function(e,t){const n={sent_at:(new Date).toISOString()};return t&&(n.dsn=pn(t)),gn(n,e.map(_p))}([_],o.getDsn()):void 0,t=o&&o.getTransport();t&&e&&t.send(e).then(null,(e=>{di&&M.error("Error while sending interaction:",e)}))}},Zi("inp",n,Qi,Wi);var n}(e,t);return()=>{n()}}return()=>{}}const Ap={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Rp(e){const t=Ep();if(!t||!hi.performance.getEntries||!ae)return;di&&M.log("[Tracing] Adding & adjusting spans using Performance API");const n=Sp(ae),r=t.getEntries(),{op:o,start_timestamp:s}=Pe(e);if(r.slice(kp).forEach((t=>{const r=Sp(t.startTime),o=Sp(t.duration);if(!("navigation"===e.op&&s&&n+r<s))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Lp(e,t,r,n)})),Lp(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Lp(e,t,"fetch",n,"cache","domainLookupStart"),Lp(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Sp(t.requestStart),endTimestamp:n+Sp(t.responseEnd)}),vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Sp(t.responseStart),endTimestamp:n+Sp(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const s=o+n,i=s+r;vp(e,{description:t.name,endTimestamp:i,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,r,o,n);const s=Si(),i=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&i&&(di&&M.log("[Measurements] Adding FP"),wp.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(di&&M.log("[Measurements] Adding FCP"),wp.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const i=Ss(n),a={};Mp(a,t,"transferSize","http.response_transfer_size"),Mp(a,t,"encodedBodySize","http.response_content_length"),Mp(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(hi.location.origin);const c=s+r,l=c+o;vp(e,{description:n.replace(hi.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}(e,t,t.name,r,o,n)}})),kp=Math.max(r.length-1,0),function(e){const t=hi.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),yp(n.rtt)&&(wp["connection.rtt"]={value:n.rtt,unit:"millisecond"})),yp(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),yp(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){!function(e){const t=fi();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(di&&M.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(wp),["fcp","fp","lcp"].forEach((e=>{if(!wp[e]||!s||n>=s)return;const t=wp[e].value,r=n+Sp(t),o=Math.abs(1e3*(r-s)),i=o-t;di&&M.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${i})`),wp[e].value=o}));const t=wp["mark.fid"];t&&wp.fid&&(vp(e,{description:"first input delay",endTimestamp:t.value+Sp(wp.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete wp["mark.fid"]),"fcp"in wp||delete wp.cls,Object.keys(wp).forEach((e=>{so(e,wp[e].value,wp[e].unit)})),function(e){Tp&&(di&&M.log("[Measurements] Adding LCP Data"),Tp.element&&e.setTag("lcp.element",k(Tp.element)),Tp.id&&e.setTag("lcp.id",Tp.id),Tp.url&&e.setTag("lcp.url",Tp.url.trim().slice(0,200)),e.setTag("lcp.size",Tp.size)),Cp&&Cp.sources&&(di&&M.log("[Measurements] Adding CLS Data"),Cp.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,k(t.node)))))}(e)}Tp=void 0,Cp=void 0,wp={}}function Lp(e,t,n,r,o,s){const i=s?t[s]:t[`${n}End`],a=t[`${n}Start`];a&&i&&vp(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+Sp(a),endTimestamp:r+Sp(i)})}function Mp(e,t,n,r){const o=t[n];null!=o&&o<bp&&(e[r]=o)}const Pp=["localhost",/^\/(?!\/)/],Dp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Pp,tracePropagationTargets:Pp};function Fp(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i}={traceFetch:Dp.traceFetch,traceXHR:Dp.traceXHR,...e},a="function"==typeof s?s:e=>!0,c=e=>function(e,t){return U(e,t||Pp)}(e,r||o),l={};t&&ms((e=>{const t=function(e,t,n,r,o="auto.http.browser"){if(!dr()||!e.fetchData)return;const s=t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){Ir(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const i=Mt(),a=Rt(),{method:c,url:l}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(l),d=u?Ss(u).host:void 0,p=s?mr({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[Pn]:o},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&a){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const s=o||n.getSpan(),i=Qe(),{traceId:a,spanId:c,sampled:l,dsc:u}={...i.getPropagationContext(),...n.getPropagationContext()},d=s?Re(s):xe(a,c,l),p=Ce(u||(s?Ue(s):Fe(a,t,n))),h=r.headers||("undefined"!=typeof Request&&_(e,Request)?e.headers:void 0);if(h){if("undefined"!=typeof Headers&&_(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(ve,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",d]];return p&&e.push([ve,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,a,i,n,p)}return p}(e,a,c,l);if(t){const n=$p(e.fetchData.url),r=n?Ss(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&Up(t)})),n&&hs((e=>{const t=function(e,t,n,r){const o=e.xhr,s=o&&o[ps];if(!dr()||!o||o.__sentry_own_request__||!s)return;const i=t(s.url);if(e.endTimestamp&&i){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==s.status_code&&(Ir(t,s.status_code),t.end(),delete r[e]))}const a=Mt(),c=Qe(),l=$p(s.url),u=l?Ss(l).host:void 0,d=i?mr({name:`${s.method} ${s.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,"http.url":l,url:s.url,"server.address":u,[Pn]:"auto.http.browser"},op:"http.client"}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);const p=Rt();if(o.setRequestHeader&&n(s.url)&&p){const{traceId:e,spanId:t,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ve,n)}catch(e){}}(o,d?Re(d):xe(e,t,n),Ce(r||(d?Ue(d):Fe(e,p,a))))}return d}(e,a,c,l);i&&t&&Up(t)}))}function Up(e){const{url:t}=Pe(e).data||{};if(!t||"string"!=typeof t)return;const n=Gi("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ae?[...r,["http.request.redirect_start",Bp(e.redirectStart)],["http.request.fetch_start",Bp(e.fetchStart)],["http.request.domain_lookup_start",Bp(e.domainLookupStart)],["http.request.domain_lookup_end",Bp(e.domainLookupEnd)],["http.request.connect_start",Bp(e.connectStart)],["http.request.secure_connection_start",Bp(e.secureConnectionStart)],["http.request.connection_end",Bp(e.connectEnd)],["http.request.request_start",Bp(e.requestStart)],["http.request.response_start",Bp(e.responseStart)],["http.request.response_end",Bp(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function Bp(e=0){return((ae||performance.timeOrigin)+e)/1e3}function $p(e){try{return new URL(e,hi.location.origin).href}catch(e){return}}const jp={...Rr,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!hi||!hi.location)return void(di&&M.warn("Could not initialize routing instrumentation due to invalid location"));let r,o=hi.location.href;t&&(r=e({name:hi.location.pathname,startTimestamp:ae?ae/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Zo((({to:t,from:n})=>{void 0===n&&o&&-1!==o.indexOf(t)?o=void 0:n!==t&&(o=void 0,r&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=e({name:hi.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Dp};class Hp{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,jr(),di&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...jp,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Op(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Np(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Ip(),this.options._experiments.enableInteractions&&xp(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:s,startTransactionOnPageLoad:i,markBackgroundTransactions:a,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,f=h||this.options.tracePropagationTargets;di&&this._hasSetTracePropagationTargets&&h&&M.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),i,s),a&&gp(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Fp({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(di&&M.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:o,heartbeatInterval:s}=this.options,i="pageload"===e.op;let a;if(i){const t=i?Vp("sentry-trace"):"",n=i?Vp("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:s,sampled:c}=Ie(t,n);a={traceId:r,parentSpanId:s,parentSampled:c,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else a={trimEnd:!0,...e};const c="function"==typeof n?n(a):a,l=void 0===c?{...a,sampled:!1}:c;l.metadata=l.name!==a.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,!1===l.sampled&&di&&M.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),di&&M.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:u}=hi,d=$r(t,l,r,o,!0,{location:u},s,i);return i&&hi.document&&(hi.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(hi.document.readyState)&&d.sendAutoFinishSignal()})),["interactive","complete"].includes(hi.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Rp(e)})),d}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,o="ui.action.click",s=ir();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(di&&M.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const i=this._getCurrentHub(),{location:a}=hi,c={name:this._latestRoute.name,op:o,trimEnd:!0,data:{[Rn]:this._latestRoute.context?Wp(this._latestRoute.context):"url"}};e=$r(i,c,t,n,!0,{location:a},r)};["click"].forEach((e=>{hi.document&&addEventListener(e,t,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const e=({entries:e})=>{const t=Rt(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,o=ir(),s=Mt(),i=void 0!==s?s.getUser():void 0;e.forEach((e=>{if(function(e){return"duration"in e}(e)){const t=e.interactionId;if(void 0===t)return;const n=this._interactionIdToRouteNameMapping[t],s=e.duration,a=e.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),l=c.length>0?c.reduce(((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t)):void 0;if("first-input"===e.entryType&&c.map((e=>this._interactionIdToRouteNameMapping[e])).some((e=>e.duration===s&&e.startTime===a)))return;if(!t)return;if(n)n.duration=Math.max(n.duration,s);else if(c.length<10||void 0===l||s>this._interactionIdToRouteNameMapping[l].duration){const e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(l&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[l],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:s,parentContext:n,user:i,activeTransaction:o,replayId:r,startTime:a})}}}))};Gi("event",e),Gi("first-input",e)}}function Vp(e){const t=I(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Wp(e){const t=e.attributes&&e.attributes[Rn],n=e.data&&e.data[Rn],r=e.metadata&&e.metadata.source;return t||n||r}const zp={...Rr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Dp},Gp=(e={})=>{const t=!(!di||!e.tracePropagationTargets&&!e.tracingOrigins);jr(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...zp,...e},r=Op(),o={};n.enableInp&&Np(o,n.interactionsSampleRate),n.enableLongTask&&Ip(),n._experiments.enableInteractions&&xp();const s={name:void 0,context:void 0};function i(e){const t=Je(),{beforeStartSpan:o,idleTimeout:i,finalTimeout:a,heartbeatInterval:c}=n,l="pageload"===e.op;let u;if(l){const t=l?Yp("sentry-trace"):"",n=l?Yp("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:s,sampled:i}=Ie(t,n);u={traceId:r,parentSpanId:s,parentSampled:i,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else u={trimEnd:!0,...e};const d=o?o(u):u;d.metadata=d.name!==u.name?{...d.metadata,source:"custom"}:d.metadata,s.name=d.name,s.context=d,!1===d.sampled&&di&&M.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),di&&M.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=hi,h=$r(t,d,i,a,!0,{location:p},c,l);return l&&hi.document&&(hi.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(hi.document.readyState)&&h.sendAutoFinishSignal()})),["interactive","complete"].includes(hi.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback((e=>{r(),Rp(e)})),h}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=n,h=r&&r.tracePropagationTargets,f=h||n.tracePropagationTargets;let m;di&&t&&h&&M.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=hi.location&&hi.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${Pe(m).op}`),m.end()),m=i({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(di&&M.log(`[Tracing] Finishing current transaction with op: ${Pe(m).op}`),m.end()),m=i({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&hi.location){const t={name:hi.location.pathname,startTimestamp:ae?ae/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Rn]:"url"}};qp(e,t)}n.instrumentNavigation&&e.emit&&hi.location&&Zo((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:hi.location.pathname,origin:"auto.navigation.browser",attributes:{[Rn]:"url"}};Xp(e,t)}})),a&&gp(),p.enableInteractions&&function(e,t){let n;const r=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:s}=e,i="ui.action.click",a=ir();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(di&&M.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(di&&M.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const{location:c}=hi,l={name:t.name,op:i,trimEnd:!0,data:{[Rn]:t.context?Jp(t.context):"url"}};n=$r(Je(),l,r,o,!0,{location:c},s)};["click"].forEach((e=>{hi.document&&addEventListener(e,r,{once:!1,capture:!0})}))}(n,s),n.enableInp&&function(e,t){const n=({entries:n})=>{const r=Rt(),o=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,s=void 0!==o?o.getReplayId():void 0,i=ir(),a=Mt(),c=void 0!==a?a.getUser():void 0;n.forEach((n=>{if(function(e){return"duration"in e}(n)){const r=n.interactionId;if(void 0===r)return;const o=e[r],a=n.duration,l=n.startTime,u=Object.keys(e),d=u.length>0?u.reduce(((t,n)=>e[t].duration<e[n].duration?t:n)):void 0;if("first-input"===n.entryType&&u.map((t=>e[t])).some((e=>e.duration===a&&e.startTime===l)))return;if(!r)return;if(o)o.duration=Math.max(o.duration,a);else if(u.length<Kp||void 0===d||a>e[d].duration){const n=t.name,o=t.context;n&&o&&(d&&Object.keys(e).length>=Kp&&delete e[d],e[r]={routeName:n,duration:a,parentContext:o,user:c,activeTransaction:i,replayId:s,startTime:l})}}}))};Gi("event",n),Gi("first-input",n)}(o,s),Fp({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})},options:n}};function qp(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=gr();return"pageload"===(n&&Pe(n).op)?n:void 0}function Xp(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=gr();return"navigation"===(n&&Pe(n).op)?n:void 0}function Yp(e){const t=I(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const Kp=10;function Jp(e){const t=e.attributes&&e.attributes[Rn],n=e.data&&e.data[Rn],r=e.metadata&&e.metadata.source;return t||n||r}const Qp=100,Zp=5e3,eh=36e5;function th(e,t){Y&&M.info(`[Offline]: ${e}`,t)}function nh(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let o,s=Zp;function i(e){r&&(o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const e=await r.pop();e&&(th("Attempting to send previously queued event"),c(e).catch((e=>{th("Failed to retry sending",e)})))}),e),"number"!=typeof o&&o.unref&&o.unref())}function a(){o||(i(s),s=Math.min(2*s,eh))}async function c(e){try{const t=await n.send(e);let r=Qp;if(t)if(t.headers&&t.headers["retry-after"])r=Vr(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return i(r),s=Zp,t}catch(n){if(r&&await function(e,n,r){return o=["replay_event","replay_recording","client_report"],!yn(e,((e,t)=>o.includes(t)))&&(!t.shouldStore||t.shouldStore(e,n,r));var o}(e,n,s))return await r.insert(e),a(),th("Error sending. Event queued",n),{};throw n}}return t.flushAtStartup&&a(),{send:c,flush:e=>n.flush(e)}}}function rh(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function oh(e){return rh(e.getAllKeys())}function sh(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=rh(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async t=>{try{const r=await bn(t,e.textEncoder);await function(e,t,n){return e((e=>oh(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),rh(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},pop:async()=>{try{const t=await function(e){return e((e=>oh(e).then((t=>{if(0!==t.length)return rh(e.get(t[0])).then((n=>(e.delete(t[0]),rh(e.transaction).then((()=>n)))))}))))}(n());if(t)return function(e,t,n){let r="string"==typeof e?t.encode(e):e;function o(e){const t=r.subarray(0,e);return r=r.subarray(e+1),t}function s(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(o(e)))}const i=s(),a=[];for(;r.length;){const e=s(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?o(t):s()])}return[i,a]}(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch(e){}}}}function ih(e){return function(e){return t=>e({...t,createStore:sh})}(nh(e))}const ah=1e6,ch=String(0),lh="main";let uh="",dh="",ph="",hh=io.navigator&&io.navigator.userAgent||"",fh="";const mh=io.navigator&&io.navigator.language||io.navigator&&io.navigator.languages&&io.navigator.languages[0]||"",gh=io.navigator&&io.navigator.userAgentData;var _h;function yh(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&po&&M.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),s=function(e){return!("thread_metadata"in e)}(c=n)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[ch]:{name:lh}}};if(!e.samples.length)return r;const o=e.samples[0].timestamp,s="number"==typeof performance.timeOrigin?performance.timeOrigin:ae||0,i=s-(ae||s);for(let s=0;s<e.samples.length;s++){const a=e.samples[s];if(void 0===a.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[s]={elapsed_since_start_ns:((a.timestamp+i-o)*ah).toFixed(0),stack_id:t,thread_id:ch};continue}let c=e.stacks[a.stackId];const l=[];for(;c;){l.push(c.frameId);const t=e.frames[c.frameId];void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const u={elapsed_since_start_ns:((a.timestamp+i-o)*ah).toFixed(0),stack_id:n,thread_id:ch};r.stacks[n]=l,r.samples[s]=u,n++}return r}(c):c,i=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:Date.now()),a="number"==typeof r.timestamp?1e3*r.timestamp:Date.now();var c;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||X,runtime:{name:"javascript",version:io.navigator.userAgent},os:{name:uh,version:dh,build_number:hh},device:{locale:mh,model:fh,manufacturer:hh,architecture:ph,is_emulator:!1},debug_meta:{images:Sh(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||K(),trace_id:o,active_thread_id:ch,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}function vh(e){return"pageload"===e.op}"object"==typeof(_h=gh)&&null!==_h&&"getHighEntropyValues"in _h&&gh.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(uh=e.platform||"",ph=e.architecture||"",fh=e.model||"",dh=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];hh=`${t.brand} ${t.version}`}})).catch((e=>{}));const bh=new WeakMap;function Sh(e){const t=b._sentryDebugIds;if(!t)return[];const n=Rt(),r=n&&n.getOptions(),o=r&&r.stackParser;if(!o)return[];let s;const i=bh.get(o);i?s=i:(s=new Map,bh.set(o,s));const a=Object.keys(t).reduce(((e,n)=>{let r;const i=s.get(n);i?r=i:(r=o(n),s.set(n,r));for(let o=r.length-1;o>=0;o--){const s=r[o],i=s&&s.filename;if(s&&i){e[i]=t[n];break}}return e}),{}),c=[];for(const t of e)t&&a[t]&&c.push({type:"sourcemap",code_file:t,debug_id:a[t]});return c}let Eh=!1;const Th=3e4;function Ch(e){if(Eh)return po&&M.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return po&&M.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=Rt(),n=t&&t.getOptions();if(!n)return po&&M.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(po&&M.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(po&&M.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?!!(!0===r||Math.random()<r)||(po&&M.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(po&&M.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(po&&M.warn("[Profiling] Discarding profile because of invalid sample rate."),!1);var o}function kh(e,t,n,r){return function(e){return e.samples.length<2?(po&&M.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(po&&M.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?yh(e,t,n,r):null}const wh=new Map;function Oh(e){const t=wh.get(e);return t&&wh.delete(e),t}function Ih(e){return e?Ch(e)?xh(e):e:(po&&M.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function xh(e){let t;vh(e)&&(t=1e3*se());const n=function(){const e=io.Profiler;if("function"!=typeof e)return void(po&&M.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(Th/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){po&&(M.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),M.log("[Profiling] Disabling profiling for current user session.")),Eh=!0}}();if(!n)return e;po&&M.log(`[Profiling] started profiling transaction: ${Pe(e).description}`);const r=K();async function o(){return e&&n?n.stop().then((t=>(s&&(io.clearTimeout(s),s=void 0),po&&M.log(`[Profiling] stopped profiling of transaction: ${Pe(e).description}`),t?(function(e,t){if(wh.set(e,t),wh.size>30){const e=wh.keys().next().value;wh.delete(e)}}(r,t),null):(po&&M.log(`[Profiling] profiler returned null profile for: ${Pe(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)))).catch((e=>(po&&M.log("[Profiling] error while stopping profiler:",e),null))):null}let s=io.setTimeout((()=>{po&&M.log("[Profiling] max profile duration elapsed, stopping profiling for:",Pe(e).description),o()}),Th);const i=e.end.bind(e);return e.end=function(){return e?(o().then((()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),i()}),(()=>{i()})),e):i()},e}const Nh="BrowserProfiling",Ah=()=>({name:Nh,setupOnce(){},setup(e){const t=Mt().getTransaction();t&&vh(t)&&Ch(t)&&xh(t),"function"==typeof e.on?(e.on("startTransaction",(e=>{Ch(e)&&xh(e)})),e.on("beforeEnvelope",(e=>{if(!wh.size)return;const t=function(e){const t=[];return yn(e,((e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&t.push(e[n])}})),t}(e);if(!t.length)return;const n=[];for(const e of t){const t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id,o=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof r){po&&M.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!r){po&&M.log("[Profiling] cannot find profile for a transaction without a profile context");continue}t&&t.profile&&delete t.profile;const s=Oh(r);if(!s){po&&M.log(`[Profiling] Could not retrieve profile for transaction: ${r}`);continue}const i=kh(r,o,s,e);i&&n.push(i)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)}))):M.warn("[Profiling] Client does not support hooks, profiling will be disabled")}}),Rh=Wt(Nh,Ah);let Lh={};io.Sentry&&io.Sentry.Integrations&&(Lh=io.Sentry.Integrations);const Mh={...Lh,...un,...o}},958:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:()=>r,e:()=>o})},609:(e,t,n)=>{"use strict";n.d(t,{wD:()=>o});var r=n(958);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}e=n.hmd(e)},141:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BASE_TRANSITION:()=>c,BindingTypes:()=>Sr,CAMELIZE:()=>R,CAPITALIZE:()=>L,CREATE_BLOCK:()=>u,CREATE_COMMENT:()=>f,CREATE_ELEMENT_BLOCK:()=>d,CREATE_ELEMENT_VNODE:()=>h,CREATE_SLOTS:()=>C,CREATE_STATIC:()=>g,CREATE_TEXT:()=>m,CREATE_VNODE:()=>p,CompilerDeprecationTypes:()=>Ce,ConstantTypes:()=>X,DOMDirectiveTransforms:()=>qr,DOMErrorCodes:()=>Ur,DOMErrorMessages:()=>Br,DOMNodeTransforms:()=>Gr,ElementTypes:()=>q,ErrorCodes:()=>Le,FRAGMENT:()=>o,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>H,IS_REF:()=>$,KEEP_ALIVE:()=>a,MERGE_PROPS:()=>w,NORMALIZE_CLASS:()=>O,NORMALIZE_PROPS:()=>x,NORMALIZE_STYLE:()=>I,Namespaces:()=>z,NodeTypes:()=>G,OPEN_BLOCK:()=>l,POP_SCOPE_ID:()=>F,PUSH_SCOPE_ID:()=>D,RENDER_LIST:()=>E,RENDER_SLOT:()=>T,RESOLVE_COMPONENT:()=>_,RESOLVE_DIRECTIVE:()=>v,RESOLVE_DYNAMIC_COMPONENT:()=>y,RESOLVE_FILTER:()=>b,SET_BLOCK_TRACKING:()=>P,SUSPENSE:()=>i,TELEPORT:()=>s,TO_DISPLAY_STRING:()=>k,TO_HANDLERS:()=>A,TO_HANDLER_KEY:()=>M,TRANSITION:()=>Ar,TRANSITION_GROUP:()=>Rr,TS_NODE_TYPES:()=>ze,UNREF:()=>B,V_MODEL_CHECKBOX:()=>Cr,V_MODEL_DYNAMIC:()=>Or,V_MODEL_RADIO:()=>Tr,V_MODEL_SELECT:()=>wr,V_MODEL_TEXT:()=>kr,V_ON_WITH_KEYS:()=>xr,V_ON_WITH_MODIFIERS:()=>Ir,V_SHOW:()=>Nr,WITH_CTX:()=>U,WITH_DIRECTIVES:()=>S,WITH_MEMO:()=>j,advancePositionWithClone:()=>rt,advancePositionWithMutation:()=>ot,assert:()=>st,baseCompile:()=>br,baseParse:()=>nn,buildDirectiveArgs:()=>Zn,buildProps:()=>Kn,buildSlots:()=>Vn,checkCompatEnabled:()=>Ie,compile:()=>Xr,convertToBlock:()=>ge,createArrayExpression:()=>Q,createAssignmentExpression:()=>de,createBlockStatement:()=>ce,createCacheExpression:()=>ae,createCallExpression:()=>oe,createCompilerError:()=>Re,createCompoundExpression:()=>re,createConditionalExpression:()=>ie,createDOMCompilerError:()=>Fr,createForLoopParams:()=>Un,createFunctionExpression:()=>se,createIfStatement:()=>ue,createInterpolation:()=>ne,createObjectExpression:()=>Z,createObjectProperty:()=>ee,createReturnStatement:()=>he,createRoot:()=>K,createSequenceExpression:()=>pe,createSimpleExpression:()=>te,createStructuralDirectiveTransform:()=>gn,createTemplateLiteral:()=>le,createTransformContext:()=>hn,createVNodeCall:()=>J,errorMessages:()=>Me,extractIdentifiers:()=>je,findDir:()=>it,findProp:()=>at,forAliasRE:()=>St,generate:()=>vn,generateCodeFrame:()=>r.generateCodeFrame,getBaseTransformPreset:()=>vr,getConstantType:()=>an,getMemoedVNodeCall:()=>bt,getVNodeBlockHelper:()=>me,getVNodeHelper:()=>fe,hasDynamicKeyVBind:()=>lt,hasScopeRef:()=>vt,helperNameMap:()=>V,injectProp:()=>gt,isCoreComponent:()=>Xe,isFunctionType:()=>He,isInDestructureAssignment:()=>Fe,isInNewExpression:()=>Ue,isMemberExpression:()=>nt,isMemberExpressionBrowser:()=>et,isMemberExpressionNode:()=>tt,isReferencedIdentifier:()=>De,isSimpleIdentifier:()=>Ke,isSlotOutlet:()=>ht,isStaticArgOf:()=>ct,isStaticExp:()=>qe,isStaticProperty:()=>Ve,isStaticPropertyKey:()=>We,isTemplateNode:()=>pt,isText:()=>ut,isVSlot:()=>dt,locStub:()=>Y,noopDirectiveTransform:()=>Er,parse:()=>Yr,parserOptions:()=>Mr,processExpression:()=>In,processFor:()=>Dn,processIf:()=>An,processSlotOutlet:()=>nr,registerRuntimeHelpers:()=>W,resolveComponentType:()=>Yn,stringifyExpression:()=>xn,toValidAssetId:()=>yt,trackSlotScopes:()=>$n,trackVForSlotScopes:()=>jn,transform:()=>fn,transformBind:()=>sr,transformElement:()=>Xn,transformExpression:()=>On,transformModel:()=>ur,transformOn:()=>or,transformStyle:()=>Pr,traverseNode:()=>mn,unwrapTSNode:()=>Ge,walkBlockDeclarations:()=>$e,walkFunctionParams:()=>Be,walkIdentifiers:()=>Pe,warnDeprecation:()=>xe});var r=n(411);const o=Symbol(""),s=Symbol(""),i=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),d=Symbol(""),p=Symbol(""),h=Symbol(""),f=Symbol(""),m=Symbol(""),g=Symbol(""),_=Symbol(""),y=Symbol(""),v=Symbol(""),b=Symbol(""),S=Symbol(""),E=Symbol(""),T=Symbol(""),C=Symbol(""),k=Symbol(""),w=Symbol(""),O=Symbol(""),I=Symbol(""),x=Symbol(""),N=Symbol(""),A=Symbol(""),R=Symbol(""),L=Symbol(""),M=Symbol(""),P=Symbol(""),D=Symbol(""),F=Symbol(""),U=Symbol(""),B=Symbol(""),$=Symbol(""),j=Symbol(""),H=Symbol(""),V={[o]:"Fragment",[s]:"Teleport",[i]:"Suspense",[a]:"KeepAlive",[c]:"BaseTransition",[l]:"openBlock",[u]:"createBlock",[d]:"createElementBlock",[p]:"createVNode",[h]:"createElementVNode",[f]:"createCommentVNode",[m]:"createTextVNode",[g]:"createStaticVNode",[_]:"resolveComponent",[y]:"resolveDynamicComponent",[v]:"resolveDirective",[b]:"resolveFilter",[S]:"withDirectives",[E]:"renderList",[T]:"renderSlot",[C]:"createSlots",[k]:"toDisplayString",[w]:"mergeProps",[O]:"normalizeClass",[I]:"normalizeStyle",[x]:"normalizeProps",[N]:"guardReactiveProps",[A]:"toHandlers",[R]:"camelize",[L]:"capitalize",[M]:"toHandlerKey",[P]:"setBlockTracking",[D]:"pushScopeId",[F]:"popScopeId",[U]:"withCtx",[B]:"unref",[$]:"isRef",[j]:"withMemo",[H]:"isMemoSame"};function W(e){Object.getOwnPropertySymbols(e).forEach((t=>{V[t]=e[t]}))}const z={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},G={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},q={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},X={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Y={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function K(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Y}}function J(e,t,n,r,o,s,i,a=!1,c=!1,u=!1,d=Y){return e&&(a?(e.helper(l),e.helper(me(e.inSSR,u))):e.helper(fe(e.inSSR,u)),i&&e.helper(S)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:a,disableTracking:c,isComponent:u,loc:d}}function Q(e,t=Y){return{type:17,loc:t,elements:e}}function Z(e,t=Y){return{type:15,loc:t,properties:e}}function ee(e,t){return{type:16,loc:Y,key:(0,r.isString)(e)?te(e,!0):e,value:t}}function te(e,t=!1,n=Y,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ne(e,t){return{type:5,loc:t,content:(0,r.isString)(e)?te(e,!1,t):e}}function re(e,t=Y){return{type:8,loc:t,children:e}}function oe(e,t=[],n=Y){return{type:14,loc:n,callee:e,arguments:t}}function se(e,t=void 0,n=!1,r=!1,o=Y){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function ie(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Y}}function ae(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Y}}function ce(e){return{type:21,body:e,loc:Y}}function le(e){return{type:22,elements:e,loc:Y}}function ue(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Y}}function de(e,t){return{type:24,left:e,right:t,loc:Y}}function pe(e){return{type:25,expressions:e,loc:Y}}function he(e){return{type:26,returns:e,loc:Y}}function fe(e,t){return e||t?p:h}function me(e,t){return e||t?u:d}function ge(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(fe(r,e.isComponent)),t(l),t(me(r,e.isComponent)))}const _e=new Uint8Array([123,123]),ye=new Uint8Array([125,125]);function ve(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return 32===e||10===e||9===e||12===e||13===e}function Se(e){return 47===e||62===e||be(e)}function Ee(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Te={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Ce={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},ke={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.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 <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function we(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function Oe(e,t){const n=we("MODE",t),r=we(e,t);return 3===n?!0===r:!1!==r}function Ie(e,t,n,...r){return Oe(e,t)}function xe(e,t,n,...r){if("suppress-warning"===we(e,t))return;const{message:o,link:s}=ke[e],i=`(deprecation ${e}) ${"function"==typeof o?o(...r):o}${s?`\n Details: ${s}`:""}`,a=new SyntaxError(i);a.code=e,n&&(a.loc=n),t.onWarn(a)}function Ne(e){throw e}function Ae(e){}function Re(e,t,n,r){const o=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return o.code=e,o.loc=t,o}const Le={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",__EXTEND_POINT__:52,52:"__EXTEND_POINT__"},Me={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',52:""};function Pe(e,t,n=!1,r=[],o=Object.create(null)){}function De(e,t,n){return!1}function Fe(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1}function Ue(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1}function Be(e,t){for(const n of e.params)for(const e of je(n))t(e)}function $e(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of je(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}else if("ForOfStatement"===n.type||"ForInStatement"===n.type||"ForStatement"===n.type){const e="ForStatement"===n.type?n.init:n.left;if(e&&"VariableDeclaration"===e.type)for(const n of e.declarations)for(const e of je(n.id))t(e)}}function je(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?je(n.argument,t):je(n.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&je(e,t)}));break;case"RestElement":je(e.argument,t);break;case"AssignmentPattern":je(e.left,t)}return t}const He=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Ve=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,We=(e,t)=>Ve(t)&&t.key===e,ze=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ge(e){return ze.includes(e.type)?Ge(e.expression):e}const qe=e=>4===e.type&&e.isStatic;function Xe(e){switch(e){case"Teleport":case"teleport":return s;case"Suspense":case"suspense":return i;case"KeepAlive":case"keep-alive":return a;case"BaseTransition":case"base-transition":return c}}const Ye=/^\d|[^\$\w]/,Ke=e=>!Ye.test(e),Je=/[A-Za-z_$\xA0-\uFFFF]/,Qe=/[\.\?\w$\xA0-\uFFFF]/,Ze=/\s+[.[]\s*|\s*[.[]\s+/g,et=e=>{e=e.trim().replace(Ze,(e=>e.trim()));let t=0,n=[],r=0,o=0,s=null;for(let i=0;i<e.length;i++){const a=e.charAt(i);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,o++;else if(!(0===i?Je:Qe).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,s=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,s=a;else if("("===a)o++;else if(")"===a){if(i===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null)}}return!r&&!o},tt=r.NOOP,nt=et;function rt(e,t,n=t.length){return ot({offset:e.offset,line:e.line,column:e.column},t,n)}function ot(e,t,n=t.length){let r=0,o=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,o=e);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function st(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function it(e,t,n=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(7===s.type&&(n||s.exp)&&((0,r.isString)(t)?s.name===t:t.test(s.name)))return s}}function at(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||r))return s}else if("bind"===s.name&&(s.exp||r)&&ct(s.arg,t))return s}}function ct(e,t){return!(!e||!qe(e)||e.content!==t)}function lt(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function ut(e){return 5===e.type||2===e.type}function dt(e){return 7===e.type&&"slot"===e.name}function pt(e){return 1===e.type&&3===e.tagType}function ht(e){return 1===e.type&&2===e.tagType}const ft=new Set([x,N]);function mt(e,t=[]){if(e&&!(0,r.isString)(e)&&14===e.type){const n=e.callee;if(!(0,r.isString)(n)&&ft.has(n))return mt(e.arguments[0],t.concat(e))}return[e,t]}function gt(e,t,n){let o,s,i=13===e.type?e.props:e.arguments[2],a=[];if(i&&!(0,r.isString)(i)&&14===i.type){const e=mt(i);i=e[0],a=e[1],s=a[a.length-1]}if(null==i||(0,r.isString)(i))o=Z([t]);else if(14===i.type){const e=i.arguments[0];(0,r.isString)(e)||15!==e.type?i.callee===A?o=oe(n.helper(w),[Z([t]),i]):i.arguments.unshift(Z([t])):_t(t,e)||e.properties.unshift(t),!o&&(o=i)}else 15===i.type?(_t(t,i)||i.properties.unshift(t),o=i):(o=oe(n.helper(w),[Z([t]),i]),s&&s.callee===N&&(s=a[a.length-2]));13===e.type?s?s.arguments[0]=o:e.props=o:s?s.arguments[0]=o:e.arguments[2]=o}function _t(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function yt(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function vt(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&(vt(r.arg,t)||vt(r.exp,t)))return!0}return e.children.some((e=>vt(e,t)));case 11:return!!vt(e.source,t)||e.children.some((e=>vt(e,t)));case 9:return e.branches.some((e=>vt(e,t)));case 10:return!!vt(e.condition,t)||e.children.some((e=>vt(e,t)));case 4:return!e.isStatic&&Ke(e.content)&&!!t[e.content];case 8:return e.children.some((e=>(0,r.isObject)(e)&&vt(e,t)));case 5:case 12:return vt(e.content,t);default:return!1}}function bt(e){return 14===e.type&&e.callee===j?e.arguments[1].returns:e}const St=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Et={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,onError:Ne,onWarn:Ae,comments:!1,prefixIdentifiers:!1};let Tt=Et,Ct=null,kt="",wt=null,Ot=null,It="",xt=-1,Nt=-1,At=0,Rt=!1,Lt=null;const Mt=[],Pt=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=_e,this.delimiterClose=ye,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=_e,this.delimiterClose=ye}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Se(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||be(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Te.TitleEnd||this.currentSequence===Te.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Te.Cdata[this.sequenceIndex]?++this.sequenceIndex===Te.Cdata.length&&(this.state=28,this.currentSequence=Te.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Te.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){if(33===e)this.state=22,this.sectionStart=this.index+1;else if(63===e)this.state=24,this.sectionStart=this.index+1;else if(ve(e))if(this.sectionStart=this.index,0===this.mode)this.state=6;else if(this.inSFCRoot)this.state=34;else if(this.inXML)this.state=6;else{const t=32|e;this.state=116===t?30:115===t?29:6}else 47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Se(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Se(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Ee("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){be(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=ve(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||be(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):be(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):be(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Se(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Se(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Se(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Se(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Se(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):be(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):be(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){be(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Te.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===Te.ScriptEnd[3]?this.startSpecial(Te.ScriptEnd,4):t===Te.StyleEnd[3]?this.startSpecial(Te.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){const t=32|e;t===Te.TitleEnd[3]?this.startSpecial(Te.TitleEnd,4):t===Te.TextareaEnd[3]?this.startSpecial(Te.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Te.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Mt,{onerr:tn,ontext(e,t){$t(Ut(e,t),e,t)},ontextentity(e,t,n){$t(e,t,n)},oninterpolation(e,t){if(Rt)return $t(Ut(e,t),e,t);let n=e+Pt.delimiterOpen.length,r=t-Pt.delimiterClose.length;for(;be(kt.charCodeAt(n));)n++;for(;be(kt.charCodeAt(r-1));)r--;let o=Ut(n,r);o.includes("&")&&(o=Tt.decodeEntities(o,!1)),Kt({type:5,content:en(o,!1,Jt(n,r)),loc:Jt(e,t)})},onopentagname(e,t){const n=Ut(e,t);wt={type:1,tag:n,ns:Tt.getNamespace(n,Mt[0],Tt.ns),tagType:0,props:[],children:[],loc:Jt(e-1,t),codegenNode:void 0}},onopentagend(e){Bt(e)},onclosetag(e,t){const n=Ut(e,t);if(!Tt.isVoidTag(n)){let r=!1;for(let e=0;e<Mt.length;e++)if(Mt[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&tn(24,Mt[0].loc.start.offset);for(let n=0;n<=e;n++)jt(Mt.shift(),t,n<e);break}r||tn(23,Ht(e,60))}},onselfclosingtag(e){var t;const n=wt.tag;wt.isSelfClosing=!0,Bt(e),(null==(t=Mt[0])?void 0:t.tag)===n&&jt(Mt.shift(),e)},onattribname(e,t){Ot={type:6,name:Ut(e,t),nameLoc:Jt(e,t),value:void 0,loc:Jt(e)}},ondirname(e,t){const n=Ut(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Rt||""!==r||tn(26,e),Rt||""===r)Ot={type:6,name:n,nameLoc:Jt(e,t),value:void 0,loc:Jt(e)};else if(Ot={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:Jt(e)},"pre"===r){Rt=Pt.inVPre=!0,Lt=wt;const e=wt.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Zt(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Ut(e,t);if(Rt)Ot.name+=n,Qt(Ot.nameLoc,t);else{const r="["!==n[0];Ot.arg=en(r?n:n.slice(1,-1),r,Jt(e,t),r?3:0)}},ondirmodifier(e,t){const n=Ut(e,t);if(Rt)Ot.name+="."+n,Qt(Ot.nameLoc,t);else if("slot"===Ot.name){const e=Ot.arg;e&&(e.content+="."+n,Qt(e.loc,t))}else Ot.modifiers.push(n)},onattribdata(e,t){It+=Ut(e,t),xt<0&&(xt=e),Nt=t},onattribentity(e,t,n){It+=e,xt<0&&(xt=t),Nt=n},onattribnameend(e){const t=Ot.loc.start.offset,n=Ut(t,e);7===Ot.type&&(Ot.rawName=n),wt.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&tn(2,t)},onattribend(e,t){if(wt&&Ot){if(Qt(Ot.loc,t),0!==e)if(It.includes("&")&&(It=Tt.decodeEntities(It,!0)),6===Ot.type)"class"===Ot.name&&(It=Yt(It).trim()),1!==e||It||tn(13,t),Ot.value={type:2,content:It,loc:1===e?Jt(xt,Nt):Jt(xt-1,Nt+1)},Pt.inSFCRoot&&"template"===wt.tag&&"lang"===Ot.name&&It&&"html"!==It&&Pt.enterRCDATA(Ee("</template"),0);else{let e=0;Ot.exp=en(It,!1,Jt(xt,Nt),0,e),"for"===Ot.name&&(Ot.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(St);if(!r)return;const[,o,s]=r,i=(e,n,r=!1)=>{const o=t.start.offset+n;return en(e,!1,Jt(o,o+e.length),0,r?1:0)},a={source:i(s.trim(),n.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(Ft,"").trim();const l=o.indexOf(c),u=c.match(Dt);if(u){c=c.replace(Dt,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,l+c.length),a.key=i(e,t,!0)),u[2]){const r=u[2].trim();r&&(a.index=i(r,n.indexOf(r,a.key?t+e.length:l+c.length),!0))}}return c&&(a.value=i(c,l,!0)),a}(Ot.exp));let t=-1;"bind"===Ot.name&&(t=Ot.modifiers.indexOf("sync"))>-1&&Ie("COMPILER_V_BIND_SYNC",Tt,Ot.loc,Ot.rawName)&&(Ot.name="model",Ot.modifiers.splice(t,1))}7===Ot.type&&"pre"===Ot.name||wt.props.push(Ot)}It="",xt=Nt=-1},oncomment(e,t){Tt.comments&&Kt({type:3,content:Ut(e,t),loc:Jt(e-4,t+3)})},onend(){const e=kt.length;for(let t=0;t<Mt.length;t++)jt(Mt[t],e-1),tn(24,Mt[t].loc.start.offset)},oncdata(e,t){0!==Mt[0].ns?$t(Ut(e,t),e,t):tn(1,e-9)},onprocessinginstruction(e){0===(Mt[0]?Mt[0].ns:Tt.ns)&&tn(21,e-1)}}),Dt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ft=/^\(|\)$/g;function Ut(e,t){return kt.slice(e,t)}function Bt(e){Pt.inSFCRoot&&(wt.innerLoc=Jt(e+1,e+1)),Kt(wt);const{tag:t,ns:n}=wt;0===n&&Tt.isPreTag(t)&&At++,Tt.isVoidTag(t)?jt(wt,e):(Mt.unshift(wt),1!==n&&2!==n||(Pt.inXML=!0)),wt=null}function $t(e,t,n){var r;{const t=null==(r=Mt[0])?void 0:r.tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Tt.decodeEntities(e,!1))}const o=Mt[0]||Ct,s=o.children[o.children.length-1];2===(null==s?void 0:s.type)?(s.content+=e,Qt(s.loc,n)):o.children.push({type:2,content:e,loc:Jt(t,n)})}function jt(e,t,n=!1){Qt(e.loc,n?Ht(t,60):t+1),Pt.inSFCRoot&&(e.children.length?e.innerLoc.end=(0,r.extend)({},e.children[e.children.length-1].loc.end):e.innerLoc.end=(0,r.extend)({},e.innerLoc.start),e.innerLoc.source=Ut(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:s}=e;Rt||("slot"===o?e.tagType=2:Wt(e)?e.tagType=3:function({tag:e,props:t}){var n,r;if(Tt.isCustomElement(e))return!1;if("component"===e||(r=e.charCodeAt(0))>64&&r<91||Xe(e)||(null==(n=Tt.isBuiltInComponent)?void 0:n.call(Tt,e))||Tt.isNativeTag&&!Tt.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Ie("COMPILER_IS_ON_ELEMENT",Tt,n.loc))return!0}}else if("bind"===n.name&&ct(n.arg,"is")&&Ie("COMPILER_IS_ON_ELEMENT",Tt,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Pt.inRCDATA||(e.children=Gt(e.children,e.tag)),0===s&&Tt.isPreTag(o)&&At--,Lt===e&&(Rt=Pt.inVPre=!1,Lt=null),Pt.inXML&&0===(Mt[0]?Mt[0].ns:Tt.ns)&&(Pt.inXML=!1);{const t=e.props;if(!Pt.inSFCRoot&&Oe("COMPILER_NATIVE_TEMPLATE",Tt)&&"template"===e.tag&&!Wt(e)){const t=Mt[0]||Ct,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Ie("COMPILER_INLINE_TEMPLATE",Tt,n.loc)&&e.children.length&&(n.value={type:2,content:Ut(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Ht(e,t){let n=e;for(;kt.charCodeAt(n)!==t&&n>=0;)n--;return n}const Vt=new Set(["if","else","else-if","for","slot"]);function Wt({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Vt.has(t[e].name))return!0;return!1}const zt=/\r\n/g;function Gt(e,t){var n,r;const o="preserve"!==Tt.whitespace;let s=!1;for(let t=0;t<e.length;t++){const i=e[t];if(2===i.type)if(At)i.content=i.content.replace(zt,"\n");else if(qt(i.content)){const a=null==(n=e[t-1])?void 0:n.type,c=null==(r=e[t+1])?void 0:r.type;!a||!c||o&&(3===a&&(3===c||1===c)||1===a&&(3===c||1===c&&Xt(i.content)))?(s=!0,e[t]=null):i.content=" "}else o&&(i.content=Yt(i.content))}if(At&&t&&Tt.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return s?e.filter(Boolean):e}function qt(e){for(let t=0;t<e.length;t++)if(!be(e.charCodeAt(t)))return!1;return!0}function Xt(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function Yt(e){let t="",n=!1;for(let r=0;r<e.length;r++)be(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function Kt(e){(Mt[0]||Ct).children.push(e)}function Jt(e,t){return{start:Pt.getPos(e),end:null==t?t:Pt.getPos(t),source:null==t?t:Ut(e,t)}}function Qt(e,t){e.end=Pt.getPos(t),e.source=Ut(e.start.offset,t)}function Zt(e){const t={type:6,name:e.rawName,nameLoc:Jt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function en(e,t=!1,n,r=0,o=0){return te(e,t,n,r)}function tn(e,t,n){Tt.onError(Re(e,Jt(t,t)))}function nn(e,t){if(Pt.reset(),wt=null,Ot=null,It="",xt=-1,Nt=-1,Mt.length=0,kt=e,Tt=(0,r.extend)({},Et),t){let e;for(e in t)null!=t[e]&&(Tt[e]=t[e])}Pt.mode="html"===Tt.parseMode?1:"sfc"===Tt.parseMode?2:0,Pt.inXML=1===Tt.ns||2===Tt.ns;const n=null==t?void 0:t.delimiters;n&&(Pt.delimiterOpen=Ee(n[0]),Pt.delimiterClose=Ee(n[1]));const o=Ct=K([],e);return Pt.parse(kt),o.loc=Jt(0,e.length),o.children=Gt(o.children),Ct=null,o}function rn(e,t){sn(e,t,on(e,e.children[0]))}function on(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!ht(t)}function sn(e,t,n=!1){const{children:o}=e,s=o.length;let i=0;for(let e=0;e<o.length;e++){const r=o[e];if(1===r.type&&0===r.tagType){const e=n?0:an(r,t);if(e>0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=pn(e);if((!n||512===n||1===n)&&un(r,t)>=2){const n=dn(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,sn(r,t),e&&t.scopes.vSlot--}else if(11===r.type)sn(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e<r.branches.length;e++)sn(r.branches[e],t,1===r.branches[e].children.length)}if(i&&t.transformHoist&&t.transformHoist(o,t,e),i&&i===s&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,r.isArray)(e.codegenNode.children)){const n=t.hoist(Q(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function an(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const s=e.codegenNode;if(13!==s.type)return 0;if(s.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(pn(s))return n.set(e,0),0;{let r=3;const o=un(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let o=0;o<e.children.length;o++){const s=an(e.children[o],t);if(0===s)return n.set(e,0),0;s<r&&(r=s)}if(r>1)for(let o=0;o<e.props.length;o++){const s=e.props[o];if(7===s.type&&"bind"===s.name&&s.exp){const o=an(s.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(s.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(l),t.removeHelper(me(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(fe(t.inSSR,s.isComponent))}return n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return an(e.content,t);case 4:return e.constType;case 8:let i=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if((0,r.isString)(o)||(0,r.isSymbol)(o))continue;const s=an(o,t);if(0===s)return 0;s<i&&(i=s)}return i}}const cn=new Set([O,I,x,N]);function ln(e,t){if(14===e.type&&!(0,r.isString)(e.callee)&&cn.has(e.callee)){const n=e.arguments[0];if(4===n.type)return an(n,t);if(14===n.type)return ln(n,t)}return 0}function un(e,t){let n=3;const r=dn(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:s}=e[r],i=an(o,t);if(0===i)return i;let a;if(i<n&&(n=i),a=4===s.type?an(s,t):14===s.type?ln(s,t):0,0===a)return a;a<n&&(n=a)}}return n}function dn(e){const t=e.codegenNode;if(13===t.type)return t.props}function pn(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function hn(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:s=!1,cacheHandlers:i=!1,nodeTransforms:a=[],directiveTransforms:c={},transformHoist:l=null,isBuiltInComponent:u=r.NOOP,isCustomElement:d=r.NOOP,expressionPlugins:p=[],scopeId:h=null,slotted:f=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:_="",bindingMetadata:y=r.EMPTY_OBJ,inline:v=!1,isTS:b=!1,onError:S=Ne,onWarn:E=Ae,compatConfig:T}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:C&&(0,r.capitalize)((0,r.camelize)(C[1])),prefixIdentifiers:n,hoistStatic:o,hmr:s,cacheHandlers:i,nodeTransforms:a,directiveTransforms:c,transformHoist:l,isBuiltInComponent:u,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:f,ssr:m,inSSR:g,ssrCssVars:_,bindingMetadata:y,inline:v,isTS:b,onError:S,onWarn:E,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const n=t-1;n?k.helpers.set(e,n):k.helpers.delete(e)}},helperString:e=>`_${V[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:r.NOOP,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,r.isString)(e)&&(e=te(e)),k.hoists.push(e);const t=te(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ae(k.cached++,e,t)};return k.filters=new Set,k}function fn(e,t){const n=hn(e,t);mn(e,n),t.hoistStatic&&rn(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:s}=e;if(1===s.length){const n=s[0];if(on(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&ge(r,t),e.codegenNode=r}else e.codegenNode=n}else if(s.length>1){let s=64;r.PatchFlagNames[64],e.codegenNode=J(t,n(o),void 0,e.children,s+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const i=n[s](e,t);if(i&&((0,r.isArray)(i)?o.push(...i):o.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(f);break;case 5:t.ssr||t.helper(k);break;case 9:for(let n=0;n<e.branches.length;n++)mn(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const s=e.children[n];(0,r.isString)(s)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,mn(s,t))}}(e,t)}t.currentNode=e;let s=o.length;for(;s--;)o[s]()}function gn(e,t){const n=(0,r.isString)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(dt))return;const s=[];for(let i=0;i<o.length;i++){const a=o[i];if(7===a.type&&n(a.name)){o.splice(i,1),i--;const n=t(e,a,r);n&&s.push(n)}}return s}}}const _n="/*#__PURE__*/",yn=e=>`${V[e]}: _${V[e]}`;function vn(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:l="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${V[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:a,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),_=d.length>0,y=!s&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,l=a,u=Array.from(e.helpers);u.length>0&&(o(`const _Vue = ${l}\n`,-1),e.hoists.length)&&o(`const { ${[p,h,f,m,g].filter((e=>u.includes(e))).map(yn).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:i}=t;r();for(let o=0;o<e.length;o++){const s=e[o];s&&(n(`const _hoisted_${o+1} = `),Tn(s,t),r())}t.pure=!1}(e.hoists,t),s(),o("return ")}(e,n),o(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),i(),y&&(o("with (_ctx) {"),i(),_&&(o(`const { ${d.map(yn).join(", ")} } = _Vue\n`,-1),c())),e.components.length&&(bn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(bn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),bn(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),c()),u||o("return "),e.codegenNode?Tn(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function bn(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?b:"component"===t?_:v);for(let n=0;n<e.length;n++){let a=e[n];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),r(`const ${yt(a,t)} = ${i}(${JSON.stringify(a)}${c?", true":""})${s?"!":""}`),n<e.length-1&&o()}}function Sn(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),En(e,t,n),n&&t.deindent(),t.push("]")}function En(e,t,n=!1,o=!0){const{push:s,newline:i}=t;for(let a=0;a<e.length;a++){const c=e[a];(0,r.isString)(c)?s(c,-3):(0,r.isArray)(c)?Sn(c,t):Tn(c,t),a<e.length-1&&(n?(o&&s(","),i()):o&&s(", "))}}function Tn(e,t){if((0,r.isString)(e))t.push(e,-3);else if((0,r.isSymbol)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Tn(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Cn(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(_n),n(`${r(k)}(`),Tn(e.content,t),n(")")}(e,t);break;case 8:kn(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(_n),n(`${r(f)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:i,children:a,patchFlag:c,dynamicProps:u,directives:d,isBlock:p,disableTracking:h,isComponent:f}=e;d&&n(r(S)+"("),p&&n(`(${r(l)}(${h?"true":""}), `),o&&n(_n);n(r(p?me(t.inSSR,f):fe(t.inSSR,f))+"(",-2,e),En(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([s,i,a,c,u]),t),n(")"),p&&n(")"),d&&(n(", "),Tn(d,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:s}=t,i=(0,r.isString)(e.callee)?e.callee:o(e.callee);s&&n(_n),n(i+"(",-2,e),En(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const a=i.length>1||!1;n(a?"{":"{ "),a&&r();for(let e=0;e<i.length;e++){const{key:r,value:o}=i[e];wn(r,t),n(": "),Tn(o,t),e<i.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}(e,t);break;case 17:!function(e,t){Sn(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:s}=t,{params:i,returns:a,body:c,newline:l,isSlot:u}=e;u&&n(`_${V[U]}(`),n("(",-2,e),(0,r.isArray)(i)?En(i,t):i&&Tn(i,t),n(") => "),(l||c)&&(n("{"),o()),a?(l&&n("return "),(0,r.isArray)(a)?Sn(a,t):Tn(a,t)):c&&Tn(c,t),(l||c)&&(s(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:a,deindent:c,newline:l}=t;if(4===n.type){const e=!Ke(n.content);e&&i("("),Cn(n,t),e&&i(")")}else i("("),Tn(n,t),i(")");s&&a(),t.indentLevel++,s||i(" "),i("? "),Tn(r,t),t.indentLevel--,s&&l(),s||i(" "),i(": ");const u=19===o.type;u||t.indentLevel++,Tn(o,t),u||t.indentLevel--,s&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(P)}(-1),`),i()),n(`_cache[${e.index}] = `),Tn(e.value,t),e.isVNode&&(n(","),i(),n(`${r(P)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:En(e.body,t,!0,!1)}}function Cn(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function kn(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];(0,r.isString)(o)?t.push(o,-3):Tn(o,t)}}function wn(e,t){const{push:n}=t;8===e.type?(n("["),kn(e,t),n("]")):e.isStatic?n(Ke(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const On=(e,t)=>{if(5===e.type)e.content=In(e.content,t);else if(1===e.type)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&"for"!==r.name){const e=r.exp,n=r.arg;!e||4!==e.type||"on"===r.name&&n||(r.exp=In(e,t,"slot"===r.name)),n&&4===n.type&&!n.isStatic&&(r.arg=In(n,t))}}};function In(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return e}function xn(e){return(0,r.isString)(e)?e:4===e.type?e.content:e.children.map(xn).join("")}const Nn=gn(/^(if|else|else-if)$/,((e,t,n)=>An(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=Ln(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Ln(t,i+e.branches.length-1,n)}}}))));function An(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Re(28,t.loc)),t.exp=te("true",!1,r)}if("if"===t.name){const o=Rn(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Re(30,e.loc)),n.removeNode();const o=Rn(e,t);i.branches.push(o);const s=r&&r(i,o,!1);mn(o,n),s&&s(),n.currentNode=null}else n.onError(Re(30,e.loc));break}n.removeNode(i)}}}}function Rn(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!it(e,"for")?e.children:[e],userKey:at(e,"key"),isTemplateIf:n}}function Ln(e,t,n){return e.condition?ie(e.condition,Mn(e,t,n),oe(n.helper(f),['""',"true"])):Mn(e,t,n)}function Mn(e,t,n){const{helper:s}=n,i=ee("key",te(`${t}`,!1,Y,2)),{children:a}=e,c=a[0];if(1!==a.length||1!==c.type){if(1===a.length&&11===c.type){const e=c.codegenNode;return gt(e,i,n),e}{let t=64;return r.PatchFlagNames[64],J(n,s(o),Z([i]),a,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=c.codegenNode,t=bt(e);return 13===t.type&&ge(t,n),gt(t,i,n),e}}const Pn=gn("for",((e,t,n)=>{const{helper:r,removeHelper:s}=n;return Dn(e,t,n,(t=>{const i=oe(r(E),[t.source]),a=pt(e),c=it(e,"memo"),u=at(e,"key"),d=u&&(6===u.type?te(u.value.content,!0):u.exp),p=u?ee("key",d):null,h=4===t.source.type&&t.source.constType>0,f=h?64:u?128:256;return t.codegenNode=J(n,r(o),void 0,i,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let u;const{children:f}=t,m=1!==f.length||1!==f[0].type,g=ht(e)?e:a&&1===e.children.length&&ht(e.children[0])?e.children[0]:null;if(g?(u=g.codegenNode,a&&p&>(u,p,n)):m?u=J(n,r(o),p?Z([p]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(u=f[0].codegenNode,a&&p&>(u,p,n),u.isBlock!==!h&&(u.isBlock?(s(l),s(me(n.inSSR,u.isComponent))):s(fe(n.inSSR,u.isComponent))),u.isBlock=!h,u.isBlock?(r(l),r(me(n.inSSR,u.isComponent))):r(fe(n.inSSR,u.isComponent))),c){const e=se(Un(t.parseResult,[te("_cached")]));e.body=ce([re(["const _memo = (",c.exp,")"]),re(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${n.helperString(H)}(_cached, _memo)) return _cached`]),re(["const _item = ",u]),te("_item.memo = _memo"),te("return _item")]),i.arguments.push(e,te("_cache"),te(String(n.cached++)))}else i.arguments.push(se(Un(t.parseResult),u,!0))}}))}));function Dn(e,t,n,r){if(!t.exp)return void n.onError(Re(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Re(32,t.loc));Fn(o);const{addIdentifiers:s,removeIdentifiers:i,scopes:a}=n,{source:c,value:l,key:u,index:d}=o,p={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:o,children:pt(e)?e.children:[e]};n.replaceNode(p),a.vFor++;const h=r&&r(p);return()=>{a.vFor--,h&&h()}}function Fn(e,t){e.finalized||(e.finalized=!0)}function Un({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||te("_".repeat(t+1),!1)))}([e,t,n,...r])}const Bn=te("undefined",!1),$n=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=it(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},jn=(e,t)=>{let n;if(pt(e)&&e.props.some(dt)&&(n=it(e,"for"))){const e=n.forParseResult;if(e){Fn(e);const{value:n,key:r,index:o}=e,{addIdentifiers:s,removeIdentifiers:i}=t;return n&&s(n),r&&s(r),o&&s(o),()=>{n&&i(n),r&&i(r),o&&i(o)}}}},Hn=(e,t,n,r)=>se(e,n,!1,!0,n.length?n[0].loc:r);function Vn(e,t,n=Hn){t.helper(U);const{children:r,loc:o}=e,s=[],i=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=it(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!qe(e)&&(a=!0),s.push(ee(e||te("default",!0),n(t,void 0,r,o)))}let l=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e<r.length;e++){const o=r[e];let f;if(!pt(o)||!(f=it(o,"slot",!0))){3!==o.type&&d.push(o);continue}if(c){t.onError(Re(37,f.loc));break}l=!0;const{children:m,loc:g}=o,{arg:_=te("default",!0),exp:y,loc:v}=f;let b;qe(_)?b=_?_.content:"default":a=!0;const S=it(o,"for"),T=n(y,S,m,g);let C,k;if(C=it(o,"if"))a=!0,i.push(ie(C.exp,Wn(_,T,h++),Bn));else if(k=it(o,/^else(-if)?$/,!0)){let n,o=e;for(;o--&&(n=r[o],3===n.type););if(n&&pt(n)&&it(n,"if")){r.splice(e,1),e--;let t=i[i.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=k.exp?ie(k.exp,Wn(_,T,h++),Bn):Wn(_,T,h++)}else t.onError(Re(30,k.loc))}else if(S){a=!0;const e=S.forParseResult;e?(Fn(e),i.push(oe(t.helper(E),[e.source,se(Un(e),Wn(_,T),!0)]))):t.onError(Re(32,S.loc))}else{if(b){if(p.has(b)){t.onError(Re(38,v));continue}p.add(b),"default"===b&&(u=!0)}s.push(ee(_,T))}}if(!c){const e=(e,r)=>{const s=n(e,void 0,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),ee("default",s)};l?d.length&&d.some((e=>Gn(e)))&&(u?t.onError(Re(39,d[0].loc)):s.push(e(void 0,d))):s.push(e(void 0,r))}const f=a?2:zn(e.children)?3:1;let m=Z(s.concat(ee("_",te(f+"",!1))),o);return i.length&&(m=oe(t.helper(C),[m,Q(i)])),{slots:m,hasDynamicSlots:a}}function Wn(e,t,n){const r=[ee("name",e),ee("fn",t)];return null!=n&&r.push(ee("key",te(String(n),!0))),Z(r)}function zn(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||zn(n.children))return!0;break;case 9:if(zn(n.branches))return!0;break;case 10:case 11:if(zn(n.children))return!0}}return!1}function Gn(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Gn(e.content))}const qn=new WeakMap,Xn=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,c=1===e.tagType;let l=c?Yn(e,t):`"${n}"`;const u=(0,r.isObject)(l)&&l.callee===y;let d,p,h,f,m,g,_=0,v=u||l===s||l===i||!c&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Kn(e,t,void 0,c,u);d=n.props,_=n.patchFlag,m=n.dynamicPropNames;const r=n.directives;g=r&&r.length?Q(r.map((e=>Zn(e,t)))):void 0,n.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(l===a&&(v=!0,_|=1024),c&&l!==s&&l!==a){const{slots:n,hasDynamicSlots:r}=Vn(e,t);p=n,r&&(_|=1024)}else if(1===e.children.length&&l!==s){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===an(n,t)&&(_|=1),p=o||2===r?n:e.children}else p=e.children;0!==_&&(h=String(_),m&&m.length&&(f=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=J(t,l,d,p,h,f,g,!!v,!1,c,e.loc)};function Yn(e,t,n=!1){let{tag:r}=e;const o=er(r),s=at(e,"is");if(s)if(o||Oe("COMPILER_IS_ON_ELEMENT",t)){const e=6===s.type?s.value&&te(s.value.content,!0):s.exp;if(e)return oe(t.helper(y),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=Xe(r)||t.isBuiltInComponent(r);return i?(n||t.helper(i),i):(t.helper(_),t.components.add(r),yt(r,"component"))}function Kn(e,t,n=e.props,o,s,i=!1){const{tag:a,loc:c,children:l}=e;let u=[];const d=[],p=[],h=l.length>0;let f=!1,m=0,g=!1,_=!1,y=!1,v=!1,b=!1,S=!1;const E=[],T=e=>{u.length&&(d.push(Z(Jn(u),c)),u=[]),e&&d.push(e)},C=({key:e,value:n})=>{if(qe(e)){const i=e.content,a=(0,r.isOn)(i);if(!a||o&&!s||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||(0,r.isReservedProp)(i)||(v=!0),a&&(0,r.isReservedProp)(i)&&(S=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&an(n,t)>0)return;"ref"===i?g=!0:"class"===i?_=!0:"style"===i?y=!0:"key"===i||E.includes(i)||E.push(i),!o||"class"!==i&&"style"!==i||E.includes(i)||E.push(i)}else b=!0};for(let s=0;s<n.length;s++){const l=n[s];if(6===l.type){const{loc:e,name:n,nameLoc:r,value:o}=l;let s=!0;if("ref"===n&&(g=!0,t.scopes.vFor>0&&u.push(ee(te("ref_for",!0),te("true")))),"is"===n&&(er(a)||o&&o.content.startsWith("vue:")||Oe("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(ee(te(n,!0,r),te(o?o.content:"",s,o?o.loc:e)))}else{const{name:n,arg:s,exp:g,loc:_,modifiers:y}=l,v="bind"===n,S="on"===n;if("slot"===n){o||t.onError(Re(40,_));continue}if("once"===n||"memo"===n)continue;if("is"===n||v&&ct(s,"is")&&(er(a)||Oe("COMPILER_IS_ON_ELEMENT",t)))continue;if(S&&i)continue;if((v&&ct(s,"key")||S&&h&&ct(s,"vue:before-update"))&&(f=!0),v&&ct(s,"ref")&&t.scopes.vFor>0&&u.push(ee(te("ref_for",!0),te("true"))),!s&&(v||S)){if(b=!0,g)if(v){if(T(),Oe("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(g);continue}d.push(g)}else T({type:14,loc:_,callee:t.helper(A),arguments:o?[g]:[g,"true"]});else t.onError(Re(v?34:35,_));continue}v&&y.includes("prop")&&(m|=32);const E=t.directiveTransforms[n];if(E){const{props:n,needRuntime:o}=E(l,e,t);!i&&n.forEach(C),S&&s&&!qe(s)?T(Z(n,c)):u.push(...n),o&&(p.push(l),(0,r.isSymbol)(o)&&qn.set(l,o))}else(0,r.isBuiltInDirective)(n)||(p.push(l),h&&(f=!0))}}let k;if(d.length?(T(),k=d.length>1?oe(t.helper(w),d,c):d[0]):u.length&&(k=Z(Jn(u),c)),b?m|=16:(_&&!o&&(m|=2),y&&!o&&(m|=4),E.length&&(m|=8),v&&(m|=32)),f||0!==m&&32!==m||!(g||S||p.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<k.properties.length;t++){const o=k.properties[t].key;qe(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=k.properties[e],s=k.properties[n];r?k=oe(t.helper(x),[k]):(o&&!qe(o.value)&&(o.value=oe(t.helper(O),[o.value])),s&&(y||4===s.value.type&&"["===s.value.content.trim()[0]||17===s.value.type)&&(s.value=oe(t.helper(I),[s.value])));break;case 14:break;default:k=oe(t.helper(x),[oe(t.helper(N),[k])])}return{props:k,directives:p,patchFlag:m,dynamicPropNames:E,shouldUseBlock:f}}function Jn(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const s=e[o];if(8===s.key.type||!s.key.isStatic){n.push(s);continue}const i=s.key.content,a=t.get(i);a?("style"===i||"class"===i||(0,r.isOn)(i))&&Qn(a,s):(t.set(i,s),n.push(s))}return n}function Qn(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Q([e.value,t.value],e.loc)}function Zn(e,t){const n=[],r=qn.get(e);r?n.push(t.helperString(r)):(t.helper(v),t.directives.add(e.name),n.push(yt(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=te("true",!1,o);n.push(Z(e.modifiers.map((e=>ee(e,t))),o))}return Q(n,e.loc)}function er(e){return"component"===e||"Component"===e}const tr=(e,t)=>{if(ht(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=nr(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;s&&(i[2]=s,a=3),n.length&&(i[3]=se([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),i.splice(a),e.codegenNode=oe(t.helper(T),i,r)}};function nr(e,t){let n,o='"default"';const s=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?o=JSON.stringify(n.value.content):(n.name=(0,r.camelize)(n.name),s.push(n))):"bind"===n.name&&ct(n.arg,"name")?n.exp&&(o=n.exp):("bind"===n.name&&n.arg&&qe(n.arg)&&(n.arg.content=(0,r.camelize)(n.arg.content)),s.push(n))}if(s.length>0){const{props:r,directives:o}=Kn(e,t,s,!1,!1);n=r,o.length&&t.onError(Re(36,o[0].loc))}return{slotName:o,slotProps:n}}const rr=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,or=(e,t,n,o)=>{const{loc:s,modifiers:i,arg:a}=e;let c;if(e.exp||i.length||n.onError(Re(35,s)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),c=te(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?(0,r.toHandlerKey)((0,r.camelize)(e)):`on:${e}`,!0,a.loc)}else c=re([`${n.helperString(M)}(`,a,")"]);else c=a,c.children.unshift(`${n.helperString(M)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=nt(l.content),t=!(e||rr.test(l.content)),n=l.content.includes(";");(t||u&&e)&&(l=re([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let d={props:[ee(c,l||te("() => {}",!1,s))]};return o&&(d=o(d)),u&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach((e=>e.key.isHandlerKey=!0)),d},sr=(e,t,n)=>{const{modifiers:o,loc:s}=e,i=e.arg;let{exp:a}=e;if(!a&&4===i.type){const t=(0,r.camelize)(i.content);a=e.exp=te(t,!1,i.loc)}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=(0,r.camelize)(i.content):i.content=`${n.helperString(R)}(${i.content})`:(i.children.unshift(`${n.helperString(R)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&ir(i,"."),o.includes("attr")&&ir(i,"^")),!a||4===a.type&&!a.content.trim()?(n.onError(Re(34,s)),{props:[ee(i,te("",!0,s))]}):{props:[ee(i,a)]}},ir=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ar=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(ut(t)){o=!0;for(let o=e+1;o<n.length;o++){const s=n[o];if(!ut(s)){r=void 0;break}r||(r=n[e]=re([t],t.loc)),r.children.push(" + ",s),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(ut(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==an(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:oe(t.helper(m),o)}}}}},cr=new WeakSet,lr=(e,t)=>{if(1===e.type&&it(e,"once",!0)){if(cr.has(e)||t.inVOnce||t.inSSR)return;return cr.add(e),t.inVOnce=!0,t.helper(P),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},ur=(e,t,n)=>{const{exp:o,arg:s}=e;if(!o)return n.onError(Re(41,e.loc)),dr();const i=o.loc.source,a=4===o.type?o.content:i,c=n.bindingMetadata[i];if("props"===c||"props-aliased"===c)return n.onError(Re(44,o.loc)),dr();if(!a.trim()||!nt(a))return n.onError(Re(42,o.loc)),dr();const l=s||te("modelValue",!0),u=s?qe(s)?`onUpdate:${(0,r.camelize)(s.content)}`:re(['"onUpdate:" + ',s]):"onUpdate:modelValue";let d;d=re([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const p=[ee(l,e.exp),ee(u,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ke(e)?e:JSON.stringify(e))+": true")).join(", "),n=s?qe(s)?`${s.content}Modifiers`:re([s,' + "Modifiers"']):"modelModifiers";p.push(ee(n,te(`{ ${t} }`,!1,e.loc,2)))}return dr(p)};function dr(e=[]){return{props:e}}const pr=/[\w).+\-_$\]]/,hr=(e,t)=>{Oe("COMPILER_FILTERS",t)&&(5===e.type&&fr(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&fr(e.exp,t)})))};function fr(e,t){if(4===e.type)mr(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?mr(r,t):8===r.type?fr(e,t):5===r.type&&fr(r.content,t))}}function mr(e,t){const n=e.content;let r,o,s,i,a=!1,c=!1,l=!1,u=!1,d=0,p=0,h=0,f=0,m=[];for(s=0;s<n.length;s++)if(o=r,r=n.charCodeAt(s),a)39===r&&92!==o&&(a=!1);else if(c)34===r&&92!==o&&(c=!1);else if(l)96===r&&92!==o&&(l=!1);else if(u)47===r&&92!==o&&(u=!1);else if(124!==r||124===n.charCodeAt(s+1)||124===n.charCodeAt(s-1)||d||p||h){switch(r){case 34:c=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:p++;break;case 93:p--;break;case 123:d++;break;case 125:d--}if(47===r){let e,t=s-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&pr.test(e)||(u=!0)}}else void 0===i?(f=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(f,s).trim()),f=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==f&&g(),m.length){for(s=0;s<m.length;s++)i=gr(i,m[s],t);e.content=i}}function gr(e,t,n){n.helper(b);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${yt(t,"filter")}(${e})`;{const o=t.slice(0,r),s=t.slice(r+1);return n.filters.add(o),`${yt(o,"filter")}(${e}${")"!==s?","+s:s}`}}const _r=new WeakSet,yr=(e,t)=>{if(1===e.type){const n=it(e,"memo");if(!n||_r.has(e))return;return _r.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&ge(r,t),e.codegenNode=oe(t.helper(j),[n.exp,se(void 0,r),"_cache",String(t.cached++)]))}}};function vr(e){return[[lr,Nn,yr,Pn,hr,tr,Xn,$n,ar],{on:or,bind:sr,model:ur}]}function br(e,t={}){const n=t.onError||Ne,o="module"===t.mode;!0===t.prefixIdentifiers?n(Re(47)):o&&n(Re(48)),t.cacheHandlers&&n(Re(49)),t.scopeId&&!o&&n(Re(50));const s=(0,r.extend)({},t,{prefixIdentifiers:!1}),i=(0,r.isString)(e)?nn(e,s):e,[a,c]=vr();return fn(i,(0,r.extend)({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},c,t.directiveTransforms||{})})),vn(i,s)}const Sr={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},Er=()=>({props:[]}),Tr=Symbol(""),Cr=Symbol(""),kr=Symbol(""),wr=Symbol(""),Or=Symbol(""),Ir=Symbol(""),xr=Symbol(""),Nr=Symbol(""),Ar=Symbol(""),Rr=Symbol("");let Lr;W({[Tr]:"vModelRadio",[Cr]:"vModelCheckbox",[kr]:"vModelText",[wr]:"vModelSelect",[Or]:"vModelDynamic",[Ir]:"withModifiers",[xr]:"withKeys",[Nr]:"vShow",[Ar]:"Transition",[Rr]:"TransitionGroup"});const Mr={parseMode:"html",isVoidTag:r.isVoidTag,isNativeTag:e=>(0,r.isHTMLTag)(e)||(0,r.isSVGTag)(e)||(0,r.isMathMLTag)(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Lr||(Lr=document.createElement("div")),t?(Lr.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Lr.children[0].getAttribute("foo")):(Lr.innerHTML=e,Lr.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Ar:"TransitionGroup"===e||"transition-group"===e?Rr:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},Pr=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:te("style",!0,t.loc),exp:Dr(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},Dr=(e,t)=>{const n=(0,r.parseStringStyle)(e);return te(JSON.stringify(n),!1,t,3)};function Fr(e,t){return Re(e,t)}const Ur={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},Br={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},$r=(0,r.makeMap)("passive,once,capture"),jr=(0,r.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Hr=(0,r.makeMap)("left,right"),Vr=(0,r.makeMap)("onkeyup,onkeydown,onkeypress",!0),Wr=(e,t)=>qe(e)&&"onclick"===e.content.toLowerCase()?te(t,!0):4!==e.type?re(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,zr=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Gr=[Pr],qr={cloak:Er,html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(53,o)),t.children.length&&(n.onError(Fr(54,o)),t.children.length=0),{props:[ee(te("innerHTML",!0,o),r||te("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(55,o)),t.children.length&&(n.onError(Fr(56,o)),t.children.length=0),{props:[ee(te("textContent",!0),r?an(r,n)>0?r:oe(n.helperString(k),[r],o):te("",!0))]}},model:(e,t,n)=>{const r=ur(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Fr(58,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=kr,a=!1;if("input"===o||s){const r=at(t,"type");if(r){if(7===r.type)i=Or;else if(r.value)switch(r.value.content){case"radio":i=Tr;break;case"checkbox":i=Cr;break;case"file":a=!0,n.onError(Fr(59,e.loc))}}else lt(t)&&(i=Or)}else"select"===o&&(i=wr);a||(r.needRuntime=n.helper(i))}else n.onError(Fr(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>or(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:s,value:i}=t.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],s=[],i=[];for(let r=0;r<t.length;r++){const a=t[r];"native"===a&&Ie("COMPILER_V_ON_NATIVE",n)||$r(a)?i.push(a):Hr(a)?qe(e)?Vr(e.content)?o.push(a):s.push(a):(o.push(a),s.push(a)):jr(a)?s.push(a):o.push(a)}return{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:i}})(s,o,n,e.loc);if(c.includes("right")&&(s=Wr(s,"onContextmenu")),c.includes("middle")&&(s=Wr(s,"onMouseup")),c.length&&(i=oe(n.helper(Ir),[i,JSON.stringify(c)])),!a.length||qe(s)&&!Vr(s.content)||(i=oe(n.helper(xr),[i,JSON.stringify(a)])),l.length){const e=l.map(r.capitalize).join("");s=qe(s)?te(`${s.content}${e}`,!0):re(["(",s,`) + "${e}"`])}return{props:[ee(s,i)]}})),show:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(61,o)),{props:[],needRuntime:n.helper(Nr)}}};function Xr(e,t={}){return br(e,(0,r.extend)({},Mr,t,{nodeTransforms:[zr,...Gr,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},qr,t.directiveTransforms||{}),transformHoist:null}))}function Yr(e,t={}){return nn(e,(0,r.extend)({},Mr,t))}},647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>Ln,BaseTransitionPropsValidators:()=>Rn,Comment:()=>Uo,DeprecationTypes:()=>Qs,EffectScope:()=>i,ErrorCodes:()=>st,ErrorTypeStrings:()=>Gs,Fragment:()=>Do,KeepAlive:()=>zn,ReactiveEffect:()=>d,Static:()=>Bo,Suspense:()=>ln,Teleport:()=>Mo,Text:()=>Fo,TrackOpTypes:()=>Qe,Transition:()=>si,TransitionGroup:()=>Yi,TriggerOpTypes:()=>Ze,VueElement:()=>Vi,assertNumber:()=>ot,callWithAsyncErrorHandling:()=>at,callWithErrorHandling:()=>it,camelize:()=>r.camelize,capitalize:()=>r.capitalize,cloneVNode:()=>ss,compatUtils:()=>Js,computed:()=>Us,createApp:()=>wa,createBlock:()=>Yo,createCommentVNode:()=>cs,createElementBlock:()=>Xo,createElementVNode:()=>ns,createHydrationRenderer:()=>Eo,createPropsRestProxy:()=>Mr,createRenderer:()=>So,createSSRApp:()=>Oa,createSlots:()=>pr,createStaticVNode:()=>as,createTextVNode:()=>is,createVNode:()=>rs,customRef:()=>Ge,defineAsyncComponent:()=>Hn,defineComponent:()=>$n,defineCustomElement:()=>$i,defineEmits:()=>Er,defineExpose:()=>Tr,defineModel:()=>wr,defineOptions:()=>Cr,defineProps:()=>Sr,defineSSRCustomElement:()=>ji,defineSlots:()=>kr,devtools:()=>qs,effect:()=>g,effectScope:()=>a,getCurrentInstance:()=>ys,getCurrentScope:()=>l,getTransitionRawChildren:()=>Bn,guardReactiveProps:()=>os,h:()=>$s,handleError:()=>ct,hasInjectionContext:()=>Zr,hydrate:()=>ka,initCustomFormatter:()=>js,initDirectivesForSSR:()=>Aa,inject:()=>Qr,isMemoSame:()=>Vs,isProxy:()=>Oe,isReactive:()=>Ce,isReadonly:()=>ke,isRef:()=>Pe,isRuntimeOnly:()=>Ns,isShallow:()=>we,isVNode:()=>Ko,markRaw:()=>xe,mergeDefaults:()=>Rr,mergeModels:()=>Lr,mergeProps:()=>ps,nextTick:()=>yt,normalizeClass:()=>r.normalizeClass,normalizeProps:()=>r.normalizeProps,normalizeStyle:()=>r.normalizeStyle,onActivated:()=>qn,onBeforeMount:()=>tr,onBeforeUnmount:()=>sr,onBeforeUpdate:()=>rr,onDeactivated:()=>Xn,onErrorCaptured:()=>ur,onMounted:()=>nr,onRenderTracked:()=>lr,onRenderTriggered:()=>cr,onScopeDispose:()=>u,onServerPrefetch:()=>ar,onUnmounted:()=>ir,onUpdated:()=>or,openBlock:()=>Ho,popScopeId:()=>Wt,provide:()=>Jr,proxyRefs:()=>We,pushScopeId:()=>Vt,queuePostFlushCb:()=>St,reactive:()=>ve,readonly:()=>Se,ref:()=>De,registerRuntimeCompiler:()=>xs,render:()=>Ca,renderList:()=>dr,renderSlot:()=>hr,resolveComponent:()=>en,resolveDirective:()=>rn,resolveDynamicComponent:()=>nn,resolveFilter:()=>Ks,resolveTransitionHooks:()=>Pn,setBlockTracking:()=>Go,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Un,shallowReactive:()=>be,shallowReadonly:()=>Ee,shallowRef:()=>Fe,ssrContextKey:()=>mn,ssrUtils:()=>Ys,stop:()=>_,toDisplayString:()=>r.toDisplayString,toHandlerKey:()=>r.toHandlerKey,toHandlers:()=>mr,toRaw:()=>Ie,toRef:()=>Ke,toRefs:()=>qe,toValue:()=>He,transformVNodeArgs:()=>Qo,triggerRef:()=>$e,unref:()=>je,useAttrs:()=>xr,useCssModule:()=>Wi,useCssVars:()=>ki,useModel:()=>Bs,useSSRContext:()=>gn,useSlots:()=>Ir,useTransitionState:()=>Nn,vModelCheckbox:()=>oa,vModelDynamic:()=>da,vModelRadio:()=>ia,vModelSelect:()=>aa,vModelText:()=>ra,vShow:()=>Ei,version:()=>Ws,warn:()=>zs,watch:()=>Sn,watchEffect:()=>_n,watchPostEffect:()=>yn,watchSyncEffect:()=>vn,withAsyncContext:()=>Pr,withCtx:()=>Gt,withDefaults:()=>Or,withDirectives:()=>wn,withKeys:()=>ya,withMemo:()=>Hs,withModifiers:()=>ga,withScopeId:()=>zt});var r=n(411);let o,s;class i{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function a(e){return new i(e)}function c(e,t=o){t&&t.active&&t.effects.push(e)}function l(){return o}function u(e){o&&o.cleanups.push(e)}class d{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,c(this,r)}get dirty(){if(1===this._dirtyLevel){S();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(p(t.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),E()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=y,t=s;try{return y=!0,s=this,this._runnings++,h(this),this.fn()}finally{f(this),this._runnings--,s=t,y=e}}stop(){var e;this.active&&(h(this),f(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function p(e){return e.value}function h(e){e._trackId++,e._depsLength=0}function f(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)m(e.deps[t],e);e.deps.length=e._depsLength}}function m(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function g(e,t){e.effect instanceof d&&(e=e.effect.fn);const n=new d(e,r.NOOP,(()=>{n.dirty&&n.run()}));t&&((0,r.extend)(n,t),t.scope&&c(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function _(e){e.effect.stop()}let y=!0,v=0;const b=[];function S(){b.push(y),y=!1}function E(){const e=b.pop();y=void 0===e||e}function T(){v++}function C(){for(v--;!v&&w.length;)w.shift()()}function k(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&m(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const w=[];function O(e,t,n){T();for(const n of e.keys())if(n._dirtyLevel<t&&e.get(n)===n._trackId){const e=n._dirtyLevel;n._dirtyLevel=t,0===e&&(n._shouldSchedule=!0,n.trigger())}I(e),C()}function I(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,w.push(t.scheduler))}const x=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},N=new WeakMap,A=Symbol(""),R=Symbol("");function L(e,t,n){if(y&&s){let t=N.get(e);t||N.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=x((()=>t.delete(n)))),k(s,r)}}function M(e,t,n,o,s,i){const a=N.get(e);if(!a)return;let c=[];if("clear"===t)c=[...a.values()];else if("length"===n&&(0,r.isArray)(e)){const e=Number(o);a.forEach(((t,n)=>{("length"===n||!(0,r.isSymbol)(n)&&n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(a.get(n)),t){case"add":(0,r.isArray)(e)?(0,r.isIntegerKey)(n)&&c.push(a.get("length")):(c.push(a.get(A)),(0,r.isMap)(e)&&c.push(a.get(R)));break;case"delete":(0,r.isArray)(e)||(c.push(a.get(A)),(0,r.isMap)(e)&&c.push(a.get(R)));break;case"set":(0,r.isMap)(e)&&c.push(a.get(A))}T();for(const e of c)e&&O(e,2);C()}const P=(0,r.makeMap)("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.isSymbol)),F=U();function U(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ie(this);for(let e=0,t=this.length;e<t;e++)L(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ie)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){S(),T();const n=Ie(this)[t].apply(this,e);return C(),E(),n}})),e}function B(e){const t=Ie(this);return L(t,0,e),t.hasOwnProperty(e)}class ${constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,s=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(o?s?ye:_e:s?ge:me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=(0,r.isArray)(e);if(!o){if(i&&(0,r.hasOwn)(F,t))return Reflect.get(F,t,n);if("hasOwnProperty"===t)return B}const a=Reflect.get(e,t,n);return((0,r.isSymbol)(t)?D.has(t):P(t))?a:(o||L(e,0,t),s?a:Pe(a)?i&&(0,r.isIntegerKey)(t)?a:a.value:(0,r.isObject)(a)?o?Se(a):ve(a):a)}}class j extends ${constructor(e=!1){super(!1,e)}set(e,t,n,o){let s=e[t];if(!this._shallow){const t=ke(s);if(we(n)||ke(n)||(s=Ie(s),n=Ie(n)),!(0,r.isArray)(e)&&Pe(s)&&!Pe(n))return!t&&(s.value=n,!0)}const i=(0,r.isArray)(e)&&(0,r.isIntegerKey)(t)?Number(t)<e.length:(0,r.hasOwn)(e,t),a=Reflect.set(e,t,n,o);return e===Ie(o)&&(i?(0,r.hasChanged)(n,s)&&M(e,"set",t,n):M(e,"add",t,n)),a}deleteProperty(e,t){const n=(0,r.hasOwn)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&M(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return(0,r.isSymbol)(t)&&D.has(t)||L(e,0,t),n}ownKeys(e){return L(e,0,(0,r.isArray)(e)?"length":A),Reflect.ownKeys(e)}}class H extends ${constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const V=new j,W=new H,z=new j(!0),G=new H(!0),q=e=>e,X=e=>Reflect.getPrototypeOf(e);function Y(e,t,n=!1,o=!1){const s=Ie(e=e.__v_raw),i=Ie(t);n||((0,r.hasChanged)(t,i)&&L(s,0,t),L(s,0,i));const{has:a}=X(s),c=o?q:n?Ae:Ne;return a.call(s,t)?c(e.get(t)):a.call(s,i)?c(e.get(i)):void(e!==s&&e.get(t))}function K(e,t=!1){const n=this.__v_raw,o=Ie(n),s=Ie(e);return t||((0,r.hasChanged)(e,s)&&L(o,0,e),L(o,0,s)),e===s?n.has(e):n.has(e)||n.has(s)}function J(e,t=!1){return e=e.__v_raw,!t&&L(Ie(e),0,A),Reflect.get(e,"size",e)}function Q(e){e=Ie(e);const t=Ie(this);return X(t).has.call(t,e)||(t.add(e),M(t,"add",e,e)),this}function Z(e,t){t=Ie(t);const n=Ie(this),{has:o,get:s}=X(n);let i=o.call(n,e);i||(e=Ie(e),i=o.call(n,e));const a=s.call(n,e);return n.set(e,t),i?(0,r.hasChanged)(t,a)&&M(n,"set",e,t):M(n,"add",e,t),this}function ee(e){const t=Ie(this),{has:n,get:r}=X(t);let o=n.call(t,e);o||(e=Ie(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&M(t,"delete",e,void 0),s}function te(){const e=Ie(this),t=0!==e.size,n=e.clear();return t&&M(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,r){const o=this,s=o.__v_raw,i=Ie(s),a=t?q:e?Ae:Ne;return!e&&L(i,0,A),s.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function re(e,t,n){return function(...o){const s=this.__v_raw,i=Ie(s),a=(0,r.isMap)(i),c="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=s[e](...o),d=n?q:t?Ae:Ne;return!t&&L(i,0,l?R:A),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function se(){const e={get(e){return Y(this,e)},get size(){return J(this)},has:K,add:Q,set:Z,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return Y(this,e,!1,!0)},get size(){return J(this)},has:K,add:Q,set:Z,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return Y(this,e,!0)},get size(){return J(this,!0)},has(e){return K.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return Y(this,e,!0,!0)},get size(){return J(this,!0)},has(e){return K.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ie,ae,ce,le]=se();function ue(e,t){const n=t?e?le:ce:e?ae:ie;return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.hasOwn)(n,o)&&o in t?n:t,o,s)}const de={get:ue(!1,!1)},pe={get:ue(!1,!0)},he={get:ue(!0,!1)},fe={get:ue(!0,!0)},me=new WeakMap,ge=new WeakMap,_e=new WeakMap,ye=new WeakMap;function ve(e){return ke(e)?e:Te(e,!1,V,de,me)}function be(e){return Te(e,!1,z,pe,ge)}function Se(e){return Te(e,!0,W,he,_e)}function Ee(e){return Te(e,!0,G,fe,ye)}function Te(e,t,n,o,s){if(!(0,r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const a=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.toRawType)(c));var c;if(0===a)return e;const l=new Proxy(e,2===a?o:n);return s.set(e,l),l}function Ce(e){return ke(e)?Ce(e.__v_raw):!(!e||!e.__v_isReactive)}function ke(e){return!(!e||!e.__v_isReadonly)}function we(e){return!(!e||!e.__v_isShallow)}function Oe(e){return Ce(e)||ke(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function xe(e){return(0,r.def)(e,"__v_skip",!0),e}const Ne=e=>(0,r.isObject)(e)?ve(e):e,Ae=e=>(0,r.isObject)(e)?Se(e):e;class Re{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new d((()=>e(this._value)),(()=>Me(this,1)),(()=>this.dep&&I(this.dep))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ie(this);return e._cacheable&&!e.effect.dirty||(0,r.hasChanged)(e._value,e._value=e.effect.run())&&Me(e,2),Le(e),e.effect._dirtyLevel>=1&&Me(e,1),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Le(e){y&&s&&(e=Ie(e),k(s,e.dep||(e.dep=x((()=>e.dep=void 0),e instanceof Re?e:void 0))))}function Me(e,t=2,n){const r=(e=Ie(e)).dep;r&&O(r,t)}function Pe(e){return!(!e||!0!==e.__v_isRef)}function De(e){return Ue(e,!1)}function Fe(e){return Ue(e,!0)}function Ue(e,t){return Pe(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ie(e),this._value=t?e:Ne(e)}get value(){return Le(this),this._value}set value(e){const t=this.__v_isShallow||we(e)||ke(e);e=t?e:Ie(e),(0,r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ne(e),Me(this,2))}}function $e(e){Me(e,2)}function je(e){return Pe(e)?e.value:e}function He(e){return(0,r.isFunction)(e)?e():je(e)}const Ve={get:(e,t,n)=>je(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Pe(o)&&!Pe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function We(e){return Ce(e)?e:new Proxy(e,Ve)}class ze{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Le(this)),(()=>Me(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ge(e){return new ze(e)}function qe(e){const t=(0,r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=Je(e,n);return t}class Xe{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ie(this._object),t=this._key,null==(n=N.get(e))?void 0:n.get(t);var e,t,n}}class Ye{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ke(e,t,n){return Pe(e)?e:(0,r.isFunction)(e)?new Ye(e):(0,r.isObject)(e)&&arguments.length>1?Je(e,t,n):De(e)}function Je(e,t,n){const r=e[t];return Pe(r)?r:new Xe(e,t,n)}const Qe={GET:"get",HAS:"has",ITERATE:"iterate"},Ze={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},et=[];function tt(e,...t){S();const n=et.length?et[et.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=function(){let e=et[et.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)it(r,n,11,[e+t.join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Fs(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Fs(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...nt(e.props),s]:[o+s]}(e))})),t}(o)),console.warn(...n)}E()}function nt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...rt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function rt(e,t,n){return(0,r.isString)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Pe(t)?(t=rt(e,Ie(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,r.isFunction)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ie(t),n?t:[`${e}=`,t])}function ot(e,t){}const st={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"};function it(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){ct(e,t,n)}return o}function at(e,t,n,o){if((0,r.isFunction)(e)){const s=it(e,t,n,o);return s&&(0,r.isPromise)(s)&&s.catch((e=>{ct(e,t,n)})),s}const s=[];for(let r=0;r<e.length;r++)s.push(at(e[r],t,n,o));return s}function ct(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,s))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void it(i,null,10,[e,o,s])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let lt=!1,ut=!1;const dt=[];let pt=0;const ht=[];let ft=null,mt=0;const gt=Promise.resolve();let _t=null;function yt(e){const t=_t||gt;return e?t.then(this?e.bind(this):e):t}function vt(e){dt.length&&dt.includes(e,lt&&e.allowRecurse?pt+1:pt)||(null==e.id?dt.push(e):dt.splice(function(e){let t=pt+1,n=dt.length;for(;t<n;){const r=t+n>>>1,o=dt[r],s=Ct(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),bt())}function bt(){lt||ut||(ut=!0,_t=gt.then(wt))}function St(e){(0,r.isArray)(e)?ht.push(...e):ft&&ft.includes(e,e.allowRecurse?mt+1:mt)||ht.push(e),bt()}function Et(e,t,n=(lt?pt+1:0)){for(;n<dt.length;n++){const t=dt[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;dt.splice(n,1),n--,t()}}}function Tt(e){if(ht.length){const e=[...new Set(ht)].sort(((e,t)=>Ct(e)-Ct(t)));if(ht.length=0,ft)return void ft.push(...e);for(ft=e,mt=0;mt<ft.length;mt++)ft[mt]();ft=null,mt=0}}const Ct=e=>null==e.id?1/0:e.id,kt=(e,t)=>{const n=Ct(e)-Ct(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wt(e){ut=!1,lt=!0,dt.sort(kt),r.NOOP;try{for(pt=0;pt<dt.length;pt++){const e=dt[pt];e&&!1!==e.active&&it(e,null,14)}}finally{pt=0,dt.length=0,Tt(),lt=!1,_t=null,(dt.length||ht.length)&&wt(e)}}let Ot,It=[],xt=!1;function Nt(e,...t){Ot?Ot.emit(e,...t):xt||It.push({event:e,args:t})}function At(e,t){var n,r;Ot=e,Ot?(Ot.enabled=!0,It.forEach((({event:e,args:t})=>Ot.emit(e,...t))),It=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{At(e,t)})),setTimeout((()=>{Ot||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,xt=!0,It=[])}),3e3)):(xt=!0,It=[])}const Rt=Dt("component:added"),Lt=Dt("component:updated"),Mt=Dt("component:removed"),Pt=e=>{Ot&&"function"==typeof Ot.cleanupBuffer&&!Ot.cleanupBuffer(e)&&Mt(e)};function Dt(e){return t=>{Nt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Ft(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r.EMPTY_OBJ;let s=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:i}=o[e]||r.EMPTY_OBJ;i&&(s=n.map((e=>(0,r.isString)(e)?e.trim():e))),t&&(s=n.map(r.looseToNumber))}let c;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Nt("component:emit",e.appContext.app,e,t,n)}(e,t,s);let l=o[c=(0,r.toHandlerKey)(t)]||o[c=(0,r.toHandlerKey)((0,r.camelize)(t))];!l&&i&&(l=o[c=(0,r.toHandlerKey)((0,r.hyphenate)(t))]),l&&at(l,e,6,s);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,at(u,e,6,s)}}function Ut(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(void 0!==s)return s;const i=e.emits;let a={},c=!1;if(__VUE_OPTIONS_API__&&!(0,r.isFunction)(e)){const o=e=>{const n=Ut(e,t,!0);n&&(c=!0,(0,r.extend)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||c?((0,r.isArray)(i)?i.forEach((e=>a[e]=null)):(0,r.extend)(a,i),(0,r.isObject)(e)&&o.set(e,a),a):((0,r.isObject)(e)&&o.set(e,null),null)}function Bt(e,t){return!(!e||!(0,r.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||(0,r.hasOwn)(e,(0,r.hyphenate)(t))||(0,r.hasOwn)(e,t))}let $t=null,jt=null;function Ht(e){const t=$t;return $t=e,jt=e&&e.type.__scopeId||null,t}function Vt(e){jt=e}function Wt(){jt=null}const zt=e=>Gt;function Gt(e,t=$t,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Go(-1);const o=Ht(t);let s;try{s=e(...n)}finally{Ht(o),r._d&&Go(1)}return __VUE_PROD_DEVTOOLS__&&Lt(t),s};return r._n=!0,r._c=!0,r._d=!0,r}function qt(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[a],slots:c,attrs:l,emit:u,render:d,renderCache:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e;let _,y;const v=Ht(e);try{if(4&n.shapeFlag){const e=s||o,t=e;_=ls(d.call(t,e,p,i,f,h,m)),y=l}else{const e=t;_=ls(e.length>1?e(i,{attrs:l,slots:c,emit:u}):e(i,null)),y=t.props?l:Xt(l)}}catch(t){$o.length=0,ct(t,e,1),_=rs(Uo)}let b=_;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(r.isModelListener)&&(y=Yt(y,a)),b=ss(b,y))}return n.dirs&&(b=ss(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),_=b,Ht(v),_}const Xt=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Yt=(e,t)=>{const n={};for(const o in e)(0,r.isModelListener)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Kt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!Bt(n,s))return!0}return!1}function Jt({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const Qt="components",Zt="directives";function en(e,t){return on(Qt,e,!0,t)||e}const tn=Symbol.for("v-ndc");function nn(e){return(0,r.isString)(e)?on(Qt,e,!1)||e:e||tn}function rn(e){return on(Zt,e)}function on(e,t,n=!0,o=!1){const s=$t||_s;if(s){const n=s.type;if(e===Qt){const e=Ds(n,!1);if(e&&(e===t||e===(0,r.camelize)(t)||e===(0,r.capitalize)((0,r.camelize)(t))))return n}const i=sn(s[e]||n[e],t)||sn(s.appContext[e],t);return!i&&o?n:i}}function sn(e,t){return e&&(e[t]||e[(0,r.camelize)(t)]||e[(0,r.capitalize)((0,r.camelize)(t))])}const an=e=>e.__isSuspense;let cn=0;const ln={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,c,l){if(null==e)!function(e,t,n,r,o,s,i,a,c){const{p:l,o:{createElement:u}}=c,d=u("div"),p=e.suspense=dn(e,o,r,t,d,n,s,i,a,c);l(null,p.pendingBranch=e.ssContent,d,null,r,p,s,i),p.deps>0?(un(e,"onPending"),un(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,s,i),fn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,s,i,a,c,l);else{if(s&&s.deps>0)return void(t.suspense=e.suspense);!function(e,t,n,r,o,s,i,a,{p:c,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:_}=d;if(m)d.pendingBranch=p,Jo(p,m)?(c(m,p,d.hiddenContainer,null,o,d,s,i,a),d.deps<=0?d.resolve():g&&(_||(c(f,h,n,r,o,null,s,i,a),fn(d,h)))):(d.pendingId=cn++,_?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,o,d,s,i,a),d.deps<=0?d.resolve():(c(f,h,n,r,o,null,s,i,a),fn(d,h))):f&&Jo(p,f)?(c(f,p,n,r,o,d,s,i,a),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,o,d,s,i,a),d.deps<=0&&d.resolve()));else if(f&&Jo(p,f))c(f,p,n,r,o,d,s,i,a),fn(d,p);else if(un(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=cn++,c(null,p,d.hiddenContainer,null,o,d,s,i,a),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,r,o,i,a,c,l)}},hydrate:function(e,t,n,r,o,s,i,a,c){const l=t.suspense=dn(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,s,i);return 0===l.deps&&l.resolve(!1,!0),u},create:dn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=pn(r?n.default:n),e.ssFallback=r?pn(n.fallback):rs(Uo)}};function un(e,t){const n=e.props&&e.props[t];(0,r.isFunction)(n)&&n()}function dn(e,t,n,o,s,i,a,c,l,u,d=!1){const{p,m:h,um:f,n:m,o:{parentNode:g,remove:_}}=u;let y;const v=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);v&&(null==t?void 0:t.pendingBranch)&&(y=t.pendingId,t.deps++);const b=e.props?(0,r.toNumber)(e.props.timeout):void 0,S=i,E={vnode:e,parent:t,parentComponent:n,namespace:a,container:o,hiddenContainer:s,deps:0,pendingId:cn++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:s,pendingId:a,effects:c,parentComponent:l,container:u}=E;let d=!1;E.isHydrating?E.isHydrating=!1:e||(d=o&&s.transition&&"out-in"===s.transition.mode,d&&(o.transition.afterLeave=()=>{a===E.pendingId&&(h(s,u,i===S?m(o):i,0),St(c))}),o&&(g(o.el)!==E.hiddenContainer&&(i=m(o)),f(o,l,E,!0)),d||h(s,u,i,0)),fn(E,s),E.pendingBranch=null,E.isInFallback=!1;let p=E.parent,_=!1;for(;p;){if(p.pendingBranch){p.effects.push(...c),_=!0;break}p=p.parent}_||d||St(c),E.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),un(r,"onResolve")},fallback(e){if(!E.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:s}=E;un(t,"onFallback");const i=m(n),a=()=>{E.isInFallback&&(p(null,e,o,i,r,null,s,c,l),fn(E,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),E.isInFallback=!0,f(n,r,null,!0),u||a()},move(e,t,n){E.activeBranch&&h(E.activeBranch,e,t,n),E.container=e},next:()=>E.activeBranch&&m(E.activeBranch),registerDep(e,t){const n=!!E.pendingBranch;n&&E.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{ct(t,e,0)})).then((o=>{if(e.isUnmounted||E.isUnmounted||E.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Is(e,o,!1),r&&(s.el=r);const i=!r&&e.subTree.el;t(e,s,g(r||e.subTree.el),r?null:m(e.subTree),E,a,l),i&&_(i),Jt(e,s.el),n&&0==--E.deps&&E.resolve()}))},unmount(e,t){E.isUnmounted=!0,E.activeBranch&&f(E.activeBranch,n,e,t),E.pendingBranch&&f(E.pendingBranch,n,e,t)}};return E}function pn(e){let t;if((0,r.isFunction)(e)){const n=zo&&e._c;n&&(e._d=!1,Ho()),e=e(),n&&(e._d=!0,t=jo,Vo())}if((0,r.isArray)(e)){const t=function(e,t=!0){let n;for(let t=0;t<e.length;t++){const r=e[t];if(!Ko(r))return;if(r.type!==Uo||"v-if"===r.children){if(n)return;n=r}}return n}(e);e=t}return e=ls(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function hn(e,t){t&&t.pendingBranch?(0,r.isArray)(e)?t.effects.push(...e):t.effects.push(e):St(e)}function fn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Jt(r,o))}const mn=Symbol.for("v-scx"),gn=()=>Qr(mn);function _n(e,t){return En(e,null,t)}function yn(e,t){return En(e,null,{flush:"post"})}function vn(e,t){return En(e,null,{flush:"sync"})}const bn={};function Sn(e,t,n){return En(e,t,n)}function En(e,t,{immediate:n,deep:o,flush:s,once:i,onTrack:a,onTrigger:c}=r.EMPTY_OBJ){if(t&&i){const e=t;t=(...t)=>{e(...t),C()}}const u=_s,p=e=>!0===o?e:kn(e,!1===o?1:void 0);let h,f,m=!1,g=!1;if(Pe(e)?(h=()=>e.value,m=we(e)):Ce(e)?(h=()=>p(e),m=!0):(0,r.isArray)(e)?(g=!0,m=e.some((e=>Ce(e)||we(e))),h=()=>e.map((e=>Pe(e)?e.value:Ce(e)?p(e):(0,r.isFunction)(e)?it(e,u,2):void 0))):h=(0,r.isFunction)(e)?t?()=>it(e,u,2):()=>(f&&f(),at(e,u,3,[y])):r.NOOP,t&&o){const e=h;h=()=>kn(e())}let _,y=e=>{f=E.onStop=()=>{it(e,u,4),f=E.onStop=void 0}};if(ws){if(y=r.NOOP,t?n&&at(t,u,3,[h(),g?[]:void 0,y]):h(),"sync"!==s)return r.NOOP;{const e=gn();_=e.__watcherHandles||(e.__watcherHandles=[])}}let v=g?new Array(e.length).fill(bn):bn;const b=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||m||(g?e.some(((e,t)=>(0,r.hasChanged)(e,v[t]))):(0,r.hasChanged)(e,v)))&&(f&&f(),at(t,u,3,[e,v===bn?void 0:g&&v[0]===bn?[]:v,y]),v=e)}else E.run()};let S;b.allowRecurse=!!t,"sync"===s?S=b:"post"===s?S=()=>bo(b,u&&u.suspense):(b.pre=!0,u&&(b.id=u.uid),S=()=>vt(b));const E=new d(h,r.NOOP,S),T=l(),C=()=>{E.stop(),T&&(0,r.remove)(T.effects,E)};return t?n?b():v=E.run():"post"===s?bo(E.run.bind(E),u&&u.suspense):E.run(),_&&_.push(C),C}function Tn(e,t,n){const o=this.proxy,s=(0,r.isString)(e)?e.includes(".")?Cn(o,e):()=>o[e]:e.bind(o,o);let i;(0,r.isFunction)(t)?i=t:(i=t.handler,n=t);const a=Ss(this),c=En(s,i.bind(o),n);return a(),c}function Cn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function kn(e,t,n=0,o){if(!(0,r.isObject)(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Pe(e))kn(e.value,t,n,o);else if((0,r.isArray)(e))for(let r=0;r<e.length;r++)kn(e[r],t,n,o);else if((0,r.isSet)(e)||(0,r.isMap)(e))e.forEach((e=>{kn(e,t,n,o)}));else if((0,r.isPlainObject)(e))for(const r in e)kn(e[r],t,n,o);return e}function wn(e,t){if(null===$t)return e;const n=Ls($t)||$t.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,i,a,c=r.EMPTY_OBJ]=t[e];s&&((0,r.isFunction)(s)&&(s={mounted:s,updated:s}),s.deep&&kn(i),o.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function On(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let c=a.dir[r];c&&(S(),at(c,n,8,[e.el,a,e,t]),E())}}const In=Symbol("_leaveCb"),xn=Symbol("_enterCb");function Nn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nr((()=>{e.isMounted=!0})),sr((()=>{e.isUnmounting=!0})),e}const An=[Function,Array],Rn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:An,onEnter:An,onAfterEnter:An,onEnterCancelled:An,onBeforeLeave:An,onLeave:An,onAfterLeave:An,onLeaveCancelled:An,onBeforeAppear:An,onAppear:An,onAfterAppear:An,onAppearCancelled:An},Ln={name:"BaseTransition",props:Rn,setup(e,{slots:t}){const n=ys(),r=Nn();let o;return()=>{const s=t.default&&Bn(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==Uo){i=t,e=!0;break}}const a=Ie(e),{mode:c}=a;if(r.isLeaving)return Dn(i);const l=Fn(i);if(!l)return Dn(i);const u=Pn(l,a,r,n);Un(l,u);const d=n.subTree,p=d&&Fn(d);let h=!1;const{getTransitionKey:f}=l.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==Uo&&(!Jo(l,p)||h)){const e=Pn(p,a,r,n);if(Un(p,e),"out-in"===c)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Dn(i);"in-out"===c&&l.type!==Uo&&(e.delayLeave=(e,t,n)=>{Mn(r,p)[String(p.key)]=p,e[In]=()=>{t(),e[In]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return i}}};function Mn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Pn(e,t,n,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:_,onAfterAppear:y,onAppearCancelled:v}=t,b=String(e.key),S=Mn(n,e),E=(e,t)=>{e&&at(e,o,9,t)},T=(e,t)=>{const n=t[1];E(e,t),(0,r.isArray)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:i,persisted:a,beforeEnter(t){let r=c;if(!n.isMounted){if(!s)return;r=g||c}t[In]&&t[In](!0);const o=S[b];o&&Jo(e,o)&&o.el[In]&&o.el[In](),E(r,[t])},enter(e){let t=l,r=u,o=d;if(!n.isMounted){if(!s)return;t=_||l,r=y||u,o=v||d}let i=!1;const a=e[xn]=t=>{i||(i=!0,E(t?o:r,[e]),C.delayedLeave&&C.delayedLeave(),e[xn]=void 0)};t?T(t,[e,a]):a()},leave(t,r){const o=String(e.key);if(t[xn]&&t[xn](!0),n.isUnmounting)return r();E(p,[t]);let s=!1;const i=t[In]=n=>{s||(s=!0,r(),E(n?m:f,[t]),t[In]=void 0,S[o]===e&&delete S[o])};S[o]=e,h?T(h,[t,i]):i()},clone:e=>Pn(e,t,n,o)};return C}function Dn(e){if(Wn(e))return(e=ss(e)).children=null,e}function Fn(e){return Wn(e)?e.children?e.children[0]:void 0:e}function Un(e,t){6&e.shapeFlag&&e.component?Un(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bn(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=null==n?i.key:String(n)+String(null!=i.key?i.key:s);i.type===Do?(128&i.patchFlag&&o++,r=r.concat(Bn(i.children,t,a))):(t||i.type!==Uo)&&r.push(null!=a?ss(i,{key:a}):i)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function $n(e,t){return(0,r.isFunction)(e)?(()=>(0,r.extend)({name:e.name},t,{setup:e}))():e}const jn=e=>!!e.type.__asyncLoader;function Hn(e){(0,r.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:s=200,timeout:i,suspensible:a=!0,onError:c}=e;let l,u=null,d=0;const p=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((d++,u=null,p()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return $n({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return l},setup(){const e=_s;if(l)return()=>Vn(l,e);const t=t=>{u=null,ct(t,e,13,!o)};if(a&&e.suspense||ws)return p().then((t=>()=>Vn(t,e))).catch((e=>(t(e),()=>o?rs(o,{error:e}):null)));const r=De(!1),c=De(),d=De(!!s);return s&&setTimeout((()=>{d.value=!1}),s),null!=i&&setTimeout((()=>{if(!r.value&&!c.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),c.value=e}}),i),p().then((()=>{r.value=!0,e.parent&&Wn(e.parent.vnode)&&(e.parent.effect.dirty=!0,vt(e.parent.update))})).catch((e=>{t(e),c.value=e})),()=>r.value&&l?Vn(l,e):c.value&&o?rs(o,{error:c.value}):n&&!d.value?rs(n):void 0}})}function Vn(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=rs(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Wn=e=>e.type.__isKeepAlive,zn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ys(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const s=new Map,i=new Set;let a=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=s);const c=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=o,h=p("div");function f(e){Jn(e),d(e,n,c,!0)}function m(e){s.forEach(((t,n)=>{const r=Ds(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=s.get(e);a&&Jo(t,a)?a&&Jn(a):f(t),s.delete(e),i.delete(e)}o.activate=(e,t,n,o,s)=>{const i=e.component;u(e,t,n,0,c),l(i.vnode,e,t,n,i,c,o,e.slotScopeIds,s),bo((()=>{i.isDeactivated=!1,i.a&&(0,r.invokeArrayFns)(i.a);const t=e.props&&e.props.onVnodeMounted;t&&hs(t,i.parent,e)}),c),__VUE_PROD_DEVTOOLS__&&Rt(i)},o.deactivate=e=>{const t=e.component;u(e,h,null,1,c),bo((()=>{t.da&&(0,r.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&hs(n,t.parent,e),t.isDeactivated=!0}),c),__VUE_PROD_DEVTOOLS__&&Rt(t)},Sn((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>Gn(e,t))),t&&m((e=>!Gn(t,e)))}),{flush:"post",deep:!0});let _=null;const y=()=>{null!=_&&s.set(_,Qn(n.subTree))};return nr(y),or(y),sr((()=>{s.forEach((e=>{const{subTree:t,suspense:r}=n,o=Qn(t);if(e.type!==o.type||e.key!==o.key)f(e);else{Jn(o);const e=o.component.da;e&&bo(e,r)}}))})),()=>{if(_=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!Ko(r)||!(4&r.shapeFlag||128&r.shapeFlag))return a=null,r;let o=Qn(r);const c=o.type,l=Ds(jn(o)?o.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!l||!Gn(u,l))||d&&l&&Gn(d,l))return a=o,r;const h=null==o.key?c:o.key,f=s.get(h);return o.el&&(o=ss(o),128&r.shapeFlag&&(r.ssContent=o)),_=h,f?(o.el=f.el,o.component=f.component,o.transition&&Un(o,o.transition),o.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&g(i.values().next().value)),o.shapeFlag|=256,a=o,an(r.type)?r:o}}};function Gn(e,t){return(0,r.isArray)(e)?e.some((e=>Gn(e,t))):(0,r.isString)(e)?e.split(",").includes(t):!!(0,r.isRegExp)(e)&&e.test(t)}function qn(e,t){Yn(e,"a",t)}function Xn(e,t){Yn(e,"da",t)}function Yn(e,t,n=_s){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Zn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Wn(e.parent.vnode)&&Kn(r,t,n,e),e=e.parent}}function Kn(e,t,n,o){const s=Zn(t,e,o,!0);ir((()=>{(0,r.remove)(o[t],s)}),n)}function Jn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Qn(e){return 128&e.shapeFlag?e.ssContent:e}function Zn(e,t,n=_s,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;S();const o=Ss(n),s=at(t,n,e,r);return o(),E(),s});return r?o.unshift(s):o.push(s),s}}const er=e=>(t,n=_s)=>(!ws||"sp"===e)&&Zn(e,((...e)=>t(...e)),n),tr=er("bm"),nr=er("m"),rr=er("bu"),or=er("u"),sr=er("bum"),ir=er("um"),ar=er("sp"),cr=er("rtg"),lr=er("rtc");function ur(e,t=_s){Zn("ec",e,t)}function dr(e,t,n,o){let s;const i=n&&n[o];if((0,r.isArray)(e)||(0,r.isString)(e)){s=new Array(e.length);for(let n=0,r=e.length;n<r;n++)s[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,i&&i[n])}else if((0,r.isObject)(e))if(e[Symbol.iterator])s=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);s=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];s[r]=t(e[o],o,r,i&&i[r])}}else s=[];return n&&(n[o]=s),s}function pr(e,t){for(let n=0;n<t.length;n++){const o=t[n];if((0,r.isArray)(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function hr(e,t,n={},r,o){if($t.isCE||$t.parent&&jn($t.parent)&&$t.parent.isCE)return"default"!==t&&(n.name=t),rs("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),Ho();const i=s&&fr(s(n)),a=Yo(Do,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function fr(e){return e.some((e=>!Ko(e)||e.type!==Uo&&!(e.type===Do&&!fr(e.children))))?e:null}function mr(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:(0,r.toHandlerKey)(o)]=e[o];return n}const gr=e=>e?Ts(e)?Ls(e)||e.proxy:gr(e.parent):null,_r=(0,r.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gr(e.parent),$root:e=>gr(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Br(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vt(e.update)}),$nextTick:e=>e.n||(e.n=yt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Tn.bind(e):r.NOOP}),yr=(e,t)=>e!==r.EMPTY_OBJ&&!e.__isScriptSetup&&(0,r.hasOwn)(e,t),vr={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:a,type:c,appContext:l}=e;let u;if("$"!==t[0]){const c=a[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(yr(o,t))return a[t]=1,o[t];if(s!==r.EMPTY_OBJ&&(0,r.hasOwn)(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&(0,r.hasOwn)(u,t))return a[t]=3,i[t];if(n!==r.EMPTY_OBJ&&(0,r.hasOwn)(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!Dr||(a[t]=0)}}const d=_r[t];let p,h;return d?("$attrs"===t&&L(e,0,t),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==r.EMPTY_OBJ&&(0,r.hasOwn)(n,t)?(a[t]=4,n[t]):(h=l.config.globalProperties,(0,r.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return yr(s,t)?(s[t]=n,!0):o!==r.EMPTY_OBJ&&(0,r.hasOwn)(o,t)?(o[t]=n,!0):!((0,r.hasOwn)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:i}},a){let c;return!!n[a]||e!==r.EMPTY_OBJ&&(0,r.hasOwn)(e,a)||yr(t,a)||(c=i[0])&&(0,r.hasOwn)(c,a)||(0,r.hasOwn)(o,a)||(0,r.hasOwn)(_r,a)||(0,r.hasOwn)(s.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},br=(0,r.extend)({},vr,{get(e,t){if(t!==Symbol.unscopables)return vr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,r.isGloballyAllowed)(t)});function Sr(){return null}function Er(){return null}function Tr(e){}function Cr(e){}function kr(){return null}function wr(){}function Or(e,t){return null}function Ir(){return Nr().slots}function xr(){return Nr().attrs}function Nr(){const e=ys();return e.setupContext||(e.setupContext=Rs(e))}function Ar(e){return(0,r.isArray)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Rr(e,t){const n=Ar(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?(0,r.isArray)(o)||(0,r.isFunction)(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function Lr(e,t){return e&&t?(0,r.isArray)(e)&&(0,r.isArray)(t)?e.concat(t):(0,r.extend)({},Ar(e),Ar(t)):e||t}function Mr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Pr(e){const t=ys();let n=e();return Es(),(0,r.isPromise)(n)&&(n=n.catch((e=>{throw Ss(t),e}))),[n,()=>Ss(t)]}let Dr=!0;function Fr(e,t,n){at((0,r.isArray)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ur(e,t,n,o){const s=o.includes(".")?Cn(n,o):()=>n[o];if((0,r.isString)(e)){const n=t[e];(0,r.isFunction)(n)&&Sn(s,n)}else if((0,r.isFunction)(e))Sn(s,e.bind(n));else if((0,r.isObject)(e))if((0,r.isArray)(e))e.forEach((e=>Ur(e,t,n,o)));else{const o=(0,r.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.isFunction)(o)&&Sn(s,o,e)}}function Br(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,c=i.get(t);let l;return c?l=c:s.length||n||o?(l={},s.length&&s.forEach((e=>$r(l,e,a,!0))),$r(l,t,a)):l=t,(0,r.isObject)(t)&&i.set(t,l),l}function $r(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&$r(e,s,n,!0),o&&o.forEach((t=>$r(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=jr[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const jr={data:Hr,props:Gr,emits:Gr,methods:zr,computed:zr,beforeCreate:Wr,created:Wr,beforeMount:Wr,mounted:Wr,beforeUpdate:Wr,updated:Wr,beforeDestroy:Wr,beforeUnmount:Wr,destroyed:Wr,unmounted:Wr,activated:Wr,deactivated:Wr,errorCaptured:Wr,serverPrefetch:Wr,components:zr,directives:zr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,r.extend)(Object.create(null),e);for(const r in t)n[r]=Wr(e[r],t[r]);return n},provide:Hr,inject:function(e,t){return zr(Vr(e),Vr(t))}};function Hr(e,t){return t?e?function(){return(0,r.extend)((0,r.isFunction)(e)?e.call(this,this):e,(0,r.isFunction)(t)?t.call(this,this):t)}:t:e}function Vr(e){if((0,r.isArray)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Wr(e,t){return e?[...new Set([].concat(e,t))]:t}function zr(e,t){return e?(0,r.extend)(Object.create(null),e,t):t}function Gr(e,t){return e?(0,r.isArray)(e)&&(0,r.isArray)(t)?[...new Set([...e,...t])]:(0,r.extend)(Object.create(null),Ar(e),Ar(null!=t?t:{})):t}function qr(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Xr=0;function Yr(e,t){return function(n,o=null){(0,r.isFunction)(n)||(n=(0,r.extend)({},n)),null==o||(0,r.isObject)(o)||(o=null);const s=qr(),i=new WeakSet;let a=!1;const c=s.app={_uid:Xr++,_component:n,_props:o,_container:null,_context:s,_instance:null,version:Ws,get config(){return s.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&(0,r.isFunction)(e.install)?(i.add(e),e.install(c,...t)):(0,r.isFunction)(e)&&(i.add(e),e(c,...t))),c),mixin:e=>(__VUE_OPTIONS_API__&&(s.mixins.includes(e)||s.mixins.push(e)),c),component:(e,t)=>t?(s.components[e]=t,c):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,c):s.directives[e],mount(r,i,l){if(!a){const u=rs(n,o);return u.appContext=s,!0===l?l="svg":!1===l&&(l=void 0),i&&t?t(u,r):e(u,r,l),a=!0,c._container=r,r.__vue_app__=c,__VUE_PROD_DEVTOOLS__&&(c._instance=u.component,function(e,t){Nt("app:init",e,t,{Fragment:Do,Text:Fo,Comment:Uo,Static:Bo})}(c,Ws)),Ls(u.component)||u.component.proxy}},unmount(){a&&(e(null,c._container),__VUE_PROD_DEVTOOLS__&&(c._instance=null,function(e){Nt("app:unmount",e)}(c)),delete c._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,c),runWithContext(e){Kr=c;try{return e()}finally{Kr=null}}};return c}}let Kr=null;function Jr(e,t){if(_s){let n=_s.provides;const r=_s.parent&&_s.parent.provides;r===n&&(n=_s.provides=Object.create(r)),n[e]=t}}function Qr(e,t,n=!1){const o=_s||$t;if(o||Kr){const s=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Kr._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&(0,r.isFunction)(t)?t.call(o&&o.proxy):t}}function Zr(){return!!(_s||$t||Kr)}function eo(e,t,n,o){const[s,i]=e.propsOptions;let a,c=!1;if(t)for(let l in t){if((0,r.isReservedProp)(l))continue;const u=t[l];let d;s&&(0,r.hasOwn)(s,d=(0,r.camelize)(l))?i&&i.includes(d)?(a||(a={}))[d]=u:n[d]=u:Bt(e.emitsOptions,l)||l in o&&u===o[l]||(o[l]=u,c=!0)}if(i){const t=Ie(n),o=a||r.EMPTY_OBJ;for(let a=0;a<i.length;a++){const c=i[a];n[c]=to(s,t,c,o[c],e,!(0,r.hasOwn)(o,c))}}return c}function to(e,t,n,o,s,i){const a=e[n];if(null!=a){const e=(0,r.hasOwn)(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&!a.skipFactory&&(0,r.isFunction)(e)){const{propsDefaults:r}=s;if(n in r)o=r[n];else{const i=Ss(s);o=r[n]=e.call(null,t),i()}}else o=e}a[0]&&(i&&!e?o=!1:!a[1]||""!==o&&o!==(0,r.hyphenate)(n)||(o=!0))}return o}function no(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,a={},c=[];let l=!1;if(__VUE_OPTIONS_API__&&!(0,r.isFunction)(e)){const o=e=>{l=!0;const[n,o]=no(e,t,!0);(0,r.extend)(a,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return(0,r.isObject)(e)&&o.set(e,r.EMPTY_ARR),r.EMPTY_ARR;if((0,r.isArray)(i))for(let e=0;e<i.length;e++){const t=(0,r.camelize)(i[e]);ro(t)&&(a[t]=r.EMPTY_OBJ)}else if(i)for(const e in i){const t=(0,r.camelize)(e);if(ro(t)){const n=i[e],o=a[t]=(0,r.isArray)(n)||(0,r.isFunction)(n)?{type:n}:(0,r.extend)({},n);if(o){const e=io(Boolean,o.type),n=io(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||(0,r.hasOwn)(o,"default"))&&c.push(t)}}}const u=[a,c];return(0,r.isObject)(e)&&o.set(e,u),u}function ro(e){return"$"!==e[0]}function oo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function so(e,t){return oo(e)===oo(t)}function io(e,t){return(0,r.isArray)(t)?t.findIndex((t=>so(t,e))):(0,r.isFunction)(t)&&so(t,e)?0:-1}const ao=e=>"_"===e[0]||"$stable"===e,co=e=>(0,r.isArray)(e)?e.map(ls):[ls(e)],lo=(e,t,n)=>{if(t._n)return t;const r=Gt(((...e)=>co(t(...e))),n);return r._c=!1,r},uo=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ao(n))continue;const s=e[n];if((0,r.isFunction)(s))t[n]=lo(0,s,o);else if(null!=s){const e=co(s);t[n]=()=>e}}},po=(e,t)=>{const n=co(t);e.slots.default=()=>n},ho=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ie(t),(0,r.def)(t,"_",n)):uo(t,e.slots={})}else e.slots={},t&&po(e,t);(0,r.def)(e.slots,Zo,1)},fo=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,a=r.EMPTY_OBJ;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:((0,r.extend)(s,t),n||1!==e||delete s._):(i=!t.$stable,uo(t,s)),a=t}else t&&(po(e,t),a={default:1});if(i)for(const e in s)ao(e)||null!=a[e]||delete s[e]};function mo(e,t,n,o,s=!1){if((0,r.isArray)(e))return void e.forEach(((e,i)=>mo(e,t&&((0,r.isArray)(t)?t[i]:t),n,o,s)));if(jn(o)&&!s)return;const i=4&o.shapeFlag?Ls(o.component)||o.component.proxy:o.el,a=s?null:i,{i:c,r:l}=e,u=t&&t.r,d=c.refs===r.EMPTY_OBJ?c.refs={}:c.refs,p=c.setupState;if(null!=u&&u!==l&&((0,r.isString)(u)?(d[u]=null,(0,r.hasOwn)(p,u)&&(p[u]=null)):Pe(u)&&(u.value=null)),(0,r.isFunction)(l))it(l,c,12,[a,d]);else{const t=(0,r.isString)(l),o=Pe(l),c=e.f;if(t||o){const u=()=>{if(c){const n=t?(0,r.hasOwn)(p,l)?p[l]:d[l]:l.value;s?(0,r.isArray)(n)&&(0,r.remove)(n,i):(0,r.isArray)(n)?n.includes(i)||n.push(i):t?(d[l]=[i],(0,r.hasOwn)(p,l)&&(p[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else t?(d[l]=a,(0,r.hasOwn)(p,l)&&(p[l]=a)):o&&(l.value=a,e.k&&(d[e.k]=a))};s||c?u():(u.id=-1,bo(u,n))}}}let go=!1;const _o=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,yo=e=>8===e.nodeType;function vo(e){const{mt:t,p:n,o:{patchProp:o,createText:s,nextSibling:i,parentNode:a,remove:c,insert:l,createComment:u}}=e,d=(n,r,o,c,u,v=!1)=>{const b=yo(n)&&"["===n.data,S=()=>m(n,r,o,c,u,b),{type:E,ref:T,shapeFlag:C,patchFlag:k}=r;let w=n.nodeType;r.el=n,__VUE_PROD_DEVTOOLS__&&("__vnode"in n||Object.defineProperty(n,"__vnode",{value:r,enumerable:!1}),"__vueParentComponent"in n||Object.defineProperty(n,"__vueParentComponent",{value:o,enumerable:!1})),-2===k&&(v=!1,r.dynamicChildren=null);let O=null;switch(E){case Fo:3!==w?""===r.children?(l(r.el=s(""),a(n),n),O=n):O=S():(n.data!==r.children&&(go=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&tt("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),n.data=r.children),O=i(n));break;case Uo:y(n)?(O=i(n),_(r.el=n.content.firstChild,n,o)):O=8!==w||b?S():i(n);break;case Bo:if(b&&(w=(n=i(n)).nodeType),1===w||3===w){O=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===O.nodeType?O.outerHTML:O.data),t===r.staticCount-1&&(r.anchor=O),O=i(O);return b?i(O):O}S();break;case Do:O=b?f(n,r,o,c,u,v):S();break;default:if(1&C)O=1===w&&r.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?p(n,r,o,c,u,v):S();else if(6&C){r.slotScopeIds=u;const e=a(n);if(O=b?g(n):yo(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):i(n),t(r,e,null,o,c,_o(e),v),jn(r)){let t;b?(t=rs(Do),t.anchor=O?O.previousSibling:e.lastChild):t=3===n.nodeType?is(""):rs("div"),t.el=n,r.component.subTree=t}}else 64&C?O=8!==w?S():r.type.hydrate(n,r,o,c,u,v,e,h):128&C?O=r.type.hydrate(n,r,o,c,_o(a(n)),u,v,e,d):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&tt("Invalid HostVNode type:",E,`(${typeof E})`)}return null!=T&&mo(T,null,c,r),O},p=(e,t,n,s,i,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==d){f&&On(t,null,n,"created");let l,v=!1;if(y(e)){v=wo(s,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;v&&m.beforeEnter(r),_(r,e,n),t.el=e=r}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=h(e.firstChild,t,e,n,s,i,a),o=!1;for(;r;){go=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(tt("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0);const t=r;r=r.nextSibling,c(t)}}else 8&p&&e.textContent!==t.children&&(go=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&tt("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),e.textContent=t.children);if(u)if(g||!a||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||(0,r.isOn)(t)&&!(0,r.isReservedProp)(t)||"."===t[0])&&o(e,t,null,u[t],void 0,void 0,n);else u.onClick&&o(e,"onClick",null,u.onClick,void 0,void 0,n);(l=u&&u.onVnodeBeforeMount)&&hs(l,n,t),f&&On(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||f||v)&&hn((()=>{l&&hs(l,n,t),v&&m.enter(e),f&&On(t,null,n,"mounted")}),s)}return e.nextSibling},h=(e,t,r,o,s,i,a)=>{a=a||!!t.dynamicChildren;const c=t.children,l=c.length;let u=!1;for(let t=0;t<l;t++){const l=a?c[t]:c[t]=ls(c[t]);if(e)e=d(e,l,o,s,i,a);else{if(l.type===Fo&&!l.children)continue;go=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!u&&(tt("Hydration children mismatch on",r,"\nServer rendered element contains fewer child nodes than client vdom."),u=!0),n(null,l,r,null,o,s,_o(r),i)}}return e},f=(e,t,n,r,o,s)=>{const{slotScopeIds:c}=t;c&&(o=o?o.concat(c):c);const d=a(e),p=h(i(e),t,d,n,r,o,s);return p&&yo(p)&&"]"===p.data?i(t.anchor=p):(go=!0,l(t.anchor=u("]"),d,p),p)},m=(e,t,r,o,s,l)=>{if(go=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&tt("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":yo(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),t.el=null,l){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=a(e);return c(e),n(null,t,d,u,r,o,_o(d),s),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=i(e))&&yo(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return i(e);r--}return e},_=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&tt("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),Tt(),void(t._vnode=e);go=!1,d(t.firstChild,e,null,null,null),Tt(),t._vnode=e,go&&console.error("Hydration completed but contains mismatches.")},d]}const bo=hn;function So(e){return To(e)}function Eo(e){return To(e,vo)}function To(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&((0,r.getGlobalThis)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&((0,r.getGlobalThis)().__VUE_PROD_DEVTOOLS__=!1),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,r.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);const n=(0,r.getGlobalThis)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&At(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:s,patchProp:i,createElement:a,createText:c,createComment:l,setText:u,setElementText:p,parentNode:h,nextSibling:f,setScopeId:m=r.NOOP,insertStaticContent:g}=e,_=(e,t,n,r=null,o=null,s=null,i=void 0,a=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Jo(e,t)&&(r=G(e),j(e,o,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Fo:y(e,t,n,r);break;case Uo:v(e,t,n,r);break;case Bo:null==e&&b(t,n,r,i);break;case Do:N(e,t,n,r,o,s,i,a,c);break;default:1&d?T(e,t,n,r,o,s,i,a,c):6&d?A(e,t,n,r,o,s,i,a,c):(64&d||128&d)&&l.process(e,t,n,r,o,s,i,a,c,Y)}null!=u&&o&&mo(u,e&&e.ref,s,t||e,!t)},y=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},v=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},T=(e,t,n,r,o,s,i,a,c)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?C(t,n,r,o,s,i,a,c):O(e,t,o,s,i,a,c)},C=(e,t,n,s,c,l,u,d)=>{let h,f;const{props:m,shapeFlag:g,transition:_,dirs:y}=e;if(h=e.el=a(e.type,l,m&&m.is,m),8&g?p(h,e.children):16&g&&w(e.children,h,null,s,c,Co(e,l),u,d),y&&On(e,null,s,"created"),k(h,e,e.scopeId,u,s),m){for(const t in m)"value"===t||(0,r.isReservedProp)(t)||i(h,t,null,m[t],l,e.children,s,c,z);"value"in m&&i(h,"value",null,m.value,l),(f=m.onVnodeBeforeMount)&&hs(f,s,e)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(h,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(h,"__vueParentComponent",{value:s,enumerable:!1})),y&&On(e,null,s,"beforeMount");const v=wo(c,_);v&&_.beforeEnter(h),o(h,t,n),((f=m&&m.onVnodeMounted)||v||y)&&bo((()=>{f&&hs(f,s,e),v&&_.enter(h),y&&On(e,null,s,"mounted")}),c)},k=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let t=0;t<r.length;t++)m(e,r[t]);if(o&&t===o.subTree){const t=o.vnode;k(e,t,t.scopeId,t.slotScopeIds,o.parent)}},w=(e,t,n,r,o,s,i,a,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=a?us(e[l]):ls(e[l]);_(null,c,t,n,r,o,s,i,a)}},O=(e,t,n,o,s,a,c)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||r.EMPTY_OBJ,m=t.props||r.EMPTY_OBJ;let g;if(n&&ko(n,!1),(g=m.onVnodeBeforeUpdate)&&hs(g,n,t,e),h&&On(t,e,n,"beforeUpdate"),n&&ko(n,!0),d?I(e.dynamicChildren,d,l,n,o,Co(t,s),a):c||F(e,t,l,null,n,o,Co(t,s),a,!1),u>0){if(16&u)x(l,t,f,m,n,o,s);else if(2&u&&f.class!==m.class&&i(l,"class",null,m.class,s),4&u&&i(l,"style",f.style,m.style,s),8&u){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const a=r[t],c=f[a],u=m[a];u===c&&"value"!==a||i(l,a,c,u,s,e.children,n,o,z)}}1&u&&e.children!==t.children&&p(l,t.children)}else c||null!=d||x(l,t,f,m,n,o,s);((g=m.onVnodeUpdated)||h)&&bo((()=>{g&&hs(g,n,t,e),h&&On(t,e,n,"updated")}),o)},I=(e,t,n,r,o,s,i)=>{for(let a=0;a<t.length;a++){const c=e[a],l=t[a],u=c.el&&(c.type===Do||!Jo(c,l)||70&c.shapeFlag)?h(c.el):n;_(c,l,u,null,r,o,s,i,!0)}},x=(e,t,n,o,s,a,c)=>{if(n!==o){if(n!==r.EMPTY_OBJ)for(const l in n)(0,r.isReservedProp)(l)||l in o||i(e,l,n[l],null,c,t.children,s,a,z);for(const l in o){if((0,r.isReservedProp)(l))continue;const u=o[l],d=n[l];u!==d&&"value"!==l&&i(e,l,d,u,c,t.children,s,a,z)}"value"in o&&i(e,"value",n.value,o.value,c)}},N=(e,t,n,r,s,i,a,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(o(d,n,r),o(p,n,r),w(t.children||[],n,p,s,i,a,l,u)):h>0&&64&h&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,n,s,i,a,l),(null!=t.key||s&&t===s.subTree)&&Oo(e,t,!0)):F(e,t,n,p,s,i,a,l,u)},A=(e,t,n,r,o,s,i,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,c):R(t,n,r,o,s,i,c):L(e,t,c)},R=(e,t,n,r,o,s,i)=>{const a=e.component=gs(e,r,o);if(Wn(e)&&(a.ctx.renderer=Y),Os(a),a.asyncDep){if(o&&o.registerDep(a,P),!e.el){const e=a.subTree=rs(Uo);v(null,e,t,n)}}else P(a,e,t,n,o,s,i)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:c}=t,l=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!o&&!a||a&&a.$stable)||r!==i&&(r?!i||Kt(r,i,l):!!i);if(1024&c)return!0;if(16&c)return r?Kt(r,i,l):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==r[n]&&!Bt(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void D(r,t,n);r.next=t,function(e){const t=dt.indexOf(e);t>pt&&dt.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},P=(e,t,n,o,s,i,a)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:u}=e;{const n=Io(e);if(n)return t&&(t.el=u.el,D(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let d,p=t;ko(e,!1),t?(t.el=u.el,D(e,t,a)):t=u,n&&(0,r.invokeArrayFns)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&hs(d,l,t,u),ko(e,!0);const f=qt(e),m=e.subTree;e.subTree=f,_(m,f,h(m.el),G(m),e,s,i),t.el=f.el,null===p&&Jt(e,f.el),o&&bo(o,s),(d=t.props&&t.props.onVnodeUpdated)&&bo((()=>hs(d,l,t,u)),s),__VUE_PROD_DEVTOOLS__&&Lt(e)}else{let a;const{el:c,props:l}=t,{bm:u,m:d,parent:p}=e,h=jn(t);if(ko(e,!1),u&&(0,r.invokeArrayFns)(u),!h&&(a=l&&l.onVnodeBeforeMount)&&hs(a,p,t),ko(e,!0),c&&J){const n=()=>{e.subTree=qt(e),J(c,e.subTree,e,s,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=qt(e);_(null,r,n,o,e,s,i),t.el=r.el}if(d&&bo(d,s),!h&&(a=l&&l.onVnodeMounted)){const e=t;bo((()=>hs(a,p,e)),s)}(256&t.shapeFlag||p&&jn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&bo(e.a,s),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Rt(e),t=n=o=null}},l=e.effect=new d(c,r.NOOP,(()=>vt(u)),e.scope),u=e.update=()=>{l.dirty&&l.run()};u.id=e.uid,ko(e,!0),u()},D=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:a}}=e,c=Ie(s),[l]=e.propsOptions;let u=!1;if(!(o||a>0)||16&a){let o;eo(e,t,s,i)&&(u=!0);for(const i in c)t&&((0,r.hasOwn)(t,i)||(o=(0,r.hyphenate)(i))!==i&&(0,r.hasOwn)(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(s[i]=to(l,c,i,void 0,e,!0)):delete s[i]);if(i!==c)for(const e in i)t&&(0,r.hasOwn)(t,e)||(delete i[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let a=n[o];if(Bt(e.emitsOptions,a))continue;const d=t[a];if(l)if((0,r.hasOwn)(i,a))d!==i[a]&&(i[a]=d,u=!0);else{const t=(0,r.camelize)(a);s[t]=to(l,c,t,d,e,!1)}else d!==i[a]&&(i[a]=d,u=!0)}}u&&M(e,"set","$attrs")}(e,t.props,o,n),fo(e,t.children,n),S(),Et(e),E()},F=(e,t,n,r,o,s,i,a,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void B(l,d,n,r,o,s,i,a,c);if(256&h)return void U(l,d,n,r,o,s,i,a,c)}8&f?(16&u&&z(l,o,s),d!==l&&p(n,d)):16&u?16&f?B(l,d,n,r,o,s,i,a,c):z(l,o,s,!0):(8&u&&p(n,""),16&f&&w(d,n,r,o,s,i,a,c))},U=(e,t,n,o,s,i,a,c,l)=>{e=e||r.EMPTY_ARR,t=t||r.EMPTY_ARR;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const r=t[h]=l?us(t[h]):ls(t[h]);_(e[h],r,n,null,s,i,a,c,l)}u>d?z(e,s,i,!0,!1,p):w(t,n,o,s,i,a,c,l,p)},B=(e,t,n,o,s,i,a,c,l)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const r=e[u],o=t[u]=l?us(t[u]):ls(t[u]);if(!Jo(r,o))break;_(r,o,n,null,s,i,a,c,l),u++}for(;u<=p&&u<=h;){const r=e[p],o=t[h]=l?us(t[h]):ls(t[h]);if(!Jo(r,o))break;_(r,o,n,null,s,i,a,c,l),p--,h--}if(u>p){if(u<=h){const e=h+1,r=e<d?t[e].el:o;for(;u<=h;)_(null,t[u]=l?us(t[u]):ls(t[u]),n,r,s,i,a,c,l),u++}}else if(u>h)for(;u<=p;)j(e[u],s,i,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=l?us(t[u]):ls(t[u]);null!=e.key&&g.set(e.key,u)}let y,v=0;const b=h-m+1;let S=!1,E=0;const T=new Array(b);for(u=0;u<b;u++)T[u]=0;for(u=f;u<=p;u++){const r=e[u];if(v>=b){j(r,s,i,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=h;y++)if(0===T[y-m]&&Jo(r,t[y])){o=y;break}void 0===o?j(r,s,i,!0):(T[o-m]=u+1,o>=E?E=o:S=!0,_(r,t[o],n,null,s,i,a,c,l),v++)}const C=S?function(e){const t=e.slice(),n=[0];let r,o,s,i,a;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(T):r.EMPTY_ARR;for(y=C.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],p=e+1<d?t[e+1].el:o;0===T[u]?_(null,r,n,p,s,i,a,c,l):S&&(y<0||u!==C[y]?$(r,n,p,2):y--)}}},$=(e,t,n,r,s=null)=>{const{el:i,type:a,transition:c,children:l,shapeFlag:u}=e;if(6&u)$(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)a.move(e,t,n,Y);else if(a!==Do)if(a!==Bo)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(i),o(i,t,n),bo((()=>c.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,a=()=>o(i,t,n),l=()=>{e(i,(()=>{a(),s&&s()}))};r?r(i,a,l):l()}else o(i,t,n);else(({el:e,anchor:t},n,r)=>{let s;for(;e&&e!==t;)s=f(e),o(e,n,r),e=s;o(t,n,r)})(e,t,n);else{o(i,t,n);for(let e=0;e<l.length;e++)$(l[e],t,n,r);o(e.anchor,t,n)}},j=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=a&&mo(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!jn(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&hs(m,t,e),6&u)W(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&On(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,Y,r):l&&(s!==Do||d>0&&64&d)?z(l,t,n,!1,!0):(s===Do&&384&d||!o&&16&u)&&z(c,t,n),r&&H(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&bo((()=>{m&&hs(m,t,e),h&&On(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Do)return void V(n,r);if(t===Bo)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},V=(e,t)=>{let n;for(;e!==t;)n=f(e),s(e),e=n;s(t)},W=(e,t,n)=>{const{bum:o,scope:s,update:i,subTree:a,um:c}=e;o&&(0,r.invokeArrayFns)(o),s.stop(),i&&(i.active=!1,j(a,e,t,n)),c&&bo(c,t),bo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Pt(e)},z=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i<e.length;i++)j(e[i],t,n,r,o)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el);let q=!1;const X=(e,t,n)=>{null==e?t._vnode&&j(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),q||(q=!0,Et(),Tt(),q=!1),t._vnode=e},Y={p:_,um:j,m:$,r:H,mt:R,mc:w,pc:F,pbc:I,n:G,o:e};let K,J;return t&&([K,J]=t(Y)),{render:X,hydrate:K,createApp:Yr(X,K)}}function Co({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ko({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Oo(e,t,n=!1){const o=e.children,s=t.children;if((0,r.isArray)(o)&&(0,r.isArray)(s))for(let e=0;e<o.length;e++){const t=o[e];let r=s[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=s[e]=us(s[e]),r.el=t.el),n||Oo(t,r)),r.type===Fo&&(r.el=t.el)}}function Io(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Io(t)}const xo=e=>e&&(e.disabled||""===e.disabled),No=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ao=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Ro=(e,t)=>{const n=e&&e.to;if((0,r.isString)(n)){if(t){return t(n)}return null}return n};function Lo(e,t,n,{o:{insert:r},m:o},s=2){0===s&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:c,children:l,props:u}=e,d=2===s;if(d&&r(i,t,n),(!d||xo(u))&&16&c)for(let e=0;e<l.length;e++)o(l[e],t,n,2);d&&r(a,t,n)}const Mo={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,c,l){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=l,_=xo(t.props);let{shapeFlag:y,children:v,dynamicChildren:b}=t;if(null==e){const e=t.el=m(""),l=t.anchor=m("");h(e,n,r),h(l,n,r);const d=t.target=Ro(t.props,f),p=t.targetAnchor=m("");d&&(h(p,d),"svg"===i||No(d)?i="svg":("mathml"===i||Ao(d))&&(i="mathml"));const g=(e,t)=>{16&y&&u(v,e,t,o,s,i,a,c)};_?g(n,l):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=xo(e.props),g=m?n:u,y=m?r:h;if("svg"===i||No(u)?i="svg":("mathml"===i||Ao(u))&&(i="mathml"),b?(p(e.dynamicChildren,b,g,o,s,i,a),Oo(e,t,!0)):c||d(e,t,g,y,o,s,i,a,!1),_)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lo(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ro(t.props,f);e&&Lo(t,e,null,l,0)}else m&&Lo(t,u,h,l,1)}Po(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:c,anchor:l,targetAnchor:u,target:d,props:p}=e;if(d&&s(u),i&&s(l),16&a){const e=i||!xo(p);for(let r=0;r<c.length;r++){const s=c[r];o(s,t,n,e,!!s.dynamicChildren)}}},move:Lo,hydrate:function(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:c}},l){const u=t.target=Ro(t.props,c);if(u){const c=u._lpa||u.firstChild;if(16&t.shapeFlag)if(xo(t.props))t.anchor=l(i(e),t,a(e),n,r,o,s),t.targetAnchor=c;else{t.anchor=i(e);let a=c;for(;a;)if(a=i(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,u._lpa=t.targetAnchor&&i(t.targetAnchor);break}l(c,t,u,n,r,o,s)}Po(t)}return t.anchor&&i(t.anchor)}};function Po(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Do=Symbol.for("v-fgt"),Fo=Symbol.for("v-txt"),Uo=Symbol.for("v-cmt"),Bo=Symbol.for("v-stc"),$o=[];let jo=null;function Ho(e=!1){$o.push(jo=e?null:[])}function Vo(){$o.pop(),jo=$o[$o.length-1]||null}let Wo,zo=1;function Go(e){zo+=e}function qo(e){return e.dynamicChildren=zo>0?jo||r.EMPTY_ARR:null,Vo(),zo>0&&jo&&jo.push(e),e}function Xo(e,t,n,r,o,s){return qo(ns(e,t,n,r,o,s,!0))}function Yo(e,t,n,r,o){return qo(rs(e,t,n,r,o,!0))}function Ko(e){return!!e&&!0===e.__v_isVNode}function Jo(e,t){return e.type===t.type&&e.key===t.key}function Qo(e){Wo=e}const Zo="__vInternal",es=({key:e})=>null!=e?e:null,ts=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,r.isString)(e)||Pe(e)||(0,r.isFunction)(e)?{i:$t,r:e,k:t,f:!!n}:e:null);function ns(e,t=null,n=null,o=0,s=null,i=(e===Do?0:1),a=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&es(t),ref:t&&ts(t),scopeId:jt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$t};return c?(ds(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=(0,r.isString)(n)?8:16),zo>0&&!a&&jo&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&jo.push(l),l}const rs=function(e,t=null,n=null,o=0,s=null,i=!1){if(e&&e!==tn||(e=Uo),Ko(e)){const r=ss(e,t,!0);return n&&ds(r,n),zo>0&&!i&&jo&&(6&r.shapeFlag?jo[jo.indexOf(e)]=r:jo.push(r)),r.patchFlag|=-2,r}if(a=e,(0,r.isFunction)(a)&&"__vccOpts"in a&&(e=e.__vccOpts),t){t=os(t);let{class:e,style:n}=t;e&&!(0,r.isString)(e)&&(t.class=(0,r.normalizeClass)(e)),(0,r.isObject)(n)&&(Oe(n)&&!(0,r.isArray)(n)&&(n=(0,r.extend)({},n)),t.style=(0,r.normalizeStyle)(n))}var a;return ns(e,t,n,o,s,(0,r.isString)(e)?1:an(e)?128:(e=>e.__isTeleport)(e)?64:(0,r.isObject)(e)?4:(0,r.isFunction)(e)?2:0,i,!0)};function os(e){return e?Oe(e)||Zo in e?(0,r.extend)({},e):e:null}function ss(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:a}=e,c=t?ps(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&es(c),ref:t&&t.ref?n&&s?(0,r.isArray)(s)?s.concat(ts(t)):[s,ts(t)]:ts(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Do?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ss(e.ssContent),ssFallback:e.ssFallback&&ss(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function is(e=" ",t=0){return rs(Fo,null,e,t)}function as(e,t){const n=rs(Bo,null,e);return n.staticCount=t,n}function cs(e="",t=!1){return t?(Ho(),Yo(Uo,null,e)):rs(Uo,null,e)}function ls(e){return null==e||"boolean"==typeof e?rs(Uo):(0,r.isArray)(e)?rs(Do,null,e.slice()):"object"==typeof e?us(e):rs(Fo,null,String(e))}function us(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ss(e)}function ds(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.isArray)(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),ds(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Zo in t?3===r&&$t&&(1===$t.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$t}}else(0,r.isFunction)(t)?(t={default:t,_ctx:$t},n=32):(t=String(t),64&o?(n=16,t=[is(t)]):n=8);e.children=t,e.shapeFlag|=n}function ps(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=(0,r.normalizeClass)([t.class,o.class]));else if("style"===e)t.style=(0,r.normalizeStyle)([t.style,o.style]);else if((0,r.isOn)(e)){const n=t[e],s=o[e];!s||n===s||(0,r.isArray)(n)&&n.includes(s)||(t[e]=n?[].concat(n,s):s)}else""!==e&&(t[e]=o[e])}return t}function hs(e,t,n,r=null){at(e,t,7,[n,r])}const fs=qr();let ms=0;function gs(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||fs,a={uid:ms++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new i(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:no(o,s),emitsOptions:Ut(o,s),emit:null,emitted:null,propsDefaults:r.EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:r.EMPTY_OBJ,data:r.EMPTY_OBJ,props:r.EMPTY_OBJ,attrs:r.EMPTY_OBJ,slots:r.EMPTY_OBJ,refs:r.EMPTY_OBJ,setupState:r.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Ft.bind(null,a),e.ce&&e.ce(a),a}let _s=null;const ys=()=>_s||$t;let vs,bs;{const e=(0,r.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};vs=t("__VUE_INSTANCE_SETTERS__",(e=>_s=e)),bs=t("__VUE_SSR_SETTERS__",(e=>ws=e))}const Ss=e=>{const t=_s;return vs(e),e.scope.on(),()=>{e.scope.off(),vs(t)}},Es=()=>{_s&&_s.scope.off(),vs(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Cs,ks,ws=!1;function Os(e,t=!1){t&&bs(t);const{props:n,children:o}=e.vnode,s=Ts(e);!function(e,t,n,o=!1){const s={},i={};(0,r.def)(i,Zo,1),e.propsDefaults=Object.create(null),eo(e,t,s,i);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=o?s:be(s):e.type.props?e.props=s:e.props=i,e.attrs=i}(e,n,s,t),ho(e,o);const i=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xe(new Proxy(e.ctx,vr));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Rs(e):null,s=Ss(e);S();const i=it(o,e,0,[e.props,n]);if(E(),s(),(0,r.isPromise)(i)){if(i.then(Es,Es),t)return i.then((n=>{Is(e,n,t)})).catch((t=>{ct(t,e,0)}));e.asyncDep=i}else Is(e,i,t)}else As(e,t)}(e,t):void 0;return t&&bs(!1),i}function Is(e,t,n){(0,r.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=We(t)),As(e,n)}function xs(e){Cs=e,ks=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,br))}}const Ns=()=>!Cs;function As(e,t,n){const o=e.type;if(!e.render){if(!t&&Cs&&!o.render){const t=o.template||Br(e).template;if(t){const{isCustomElement:n,compilerOptions:s}=e.appContext.config,{delimiters:i,compilerOptions:a}=o,c=(0,r.extend)((0,r.extend)({isCustomElement:n,delimiters:i},s),a);o.render=Cs(t,c)}}e.render=o.render||r.NOOP,ks&&ks(e)}if(__VUE_OPTIONS_API__){const t=Ss(e);S();try{!function(e){const t=Br(e),n=e.proxy,o=e.ctx;Dr=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:a,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:m,activated:g,deactivated:_,beforeDestroy:y,beforeUnmount:v,destroyed:b,unmounted:S,render:E,renderTracked:T,renderTriggered:C,errorCaptured:k,serverPrefetch:w,expose:O,inheritAttrs:I,components:x,directives:N,filters:A}=t;if(u&&function(e,t,n=r.NOOP){(0,r.isArray)(e)&&(e=Vr(e));for(const n in e){const o=e[n];let s;s=(0,r.isObject)(o)?"default"in o?Qr(o.from||n,o.default,!0):Qr(o.from||n):Qr(o),Pe(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,o,null),a)for(const e in a){const t=a[e];(0,r.isFunction)(t)&&(o[e]=t.bind(n))}if(s){const t=s.call(n,n);(0,r.isObject)(t)&&(e.data=ve(t))}if(Dr=!0,i)for(const e in i){const t=i[e],s=(0,r.isFunction)(t)?t.bind(n,n):(0,r.isFunction)(t.get)?t.get.bind(n,n):r.NOOP,a=!(0,r.isFunction)(t)&&(0,r.isFunction)(t.set)?t.set.bind(n):r.NOOP,c=Us({get:s,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Ur(c[e],o,n,e);if(l){const e=(0,r.isFunction)(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Jr(t,e[t])}))}function R(e,t){(0,r.isArray)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Fr(d,e,"c"),R(tr,p),R(nr,h),R(rr,f),R(or,m),R(qn,g),R(Xn,_),R(ur,k),R(lr,T),R(cr,C),R(sr,v),R(ir,S),R(ar,w),(0,r.isArray)(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});E&&e.render===r.NOOP&&(e.render=E),null!=I&&(e.inheritAttrs=I),x&&(e.components=x),N&&(e.directives=N)}(e)}finally{E(),t()}}}function Rs(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(L(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ls(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(We(xe(e.exposed)),{get:(t,n)=>n in t?t[n]:n in _r?_r[n](e):void 0,has:(e,t)=>t in e||t in _r}))}const Ms=/(?:^|[-_])(\w)/g,Ps=e=>e.replace(Ms,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Ds(e,t=!0){return(0,r.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Fs(e,t,n=!1){let r=Ds(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Ps(r):n?"App":"Anonymous"}const Us=(e,t)=>function(e,t,n=!1){let o,s;const i=(0,r.isFunction)(e);return i?(o=e,s=r.NOOP):(o=e.get,s=e.set),new Re(o,s,i||!s,n)}(e,0,ws);function Bs(e,t,n=r.EMPTY_OBJ){const o=ys(),s=(0,r.camelize)(t),i=(0,r.hyphenate)(t),a=Ge(((a,c)=>{let l;return vn((()=>{const n=e[t];(0,r.hasChanged)(l,n)&&(l=n,c())})),{get:()=>(a(),n.get?n.get(l):l),set(e){const a=o.vnode.props;a&&(t in a||s in a||i in a)&&(`onUpdate:${t}`in a||`onUpdate:${s}`in a||`onUpdate:${i}`in a)||!(0,r.hasChanged)(e,l)||(l=e,c()),o.emit(`update:${t}`,n.set?n.set(e):e)}}})),c="modelValue"===t?"modelModifiers":`${t}Modifiers`;return a[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[c]||{}:a,done:!1}:{done:!0}}},a}function $s(e,t,n){const o=arguments.length;return 2===o?(0,r.isObject)(t)&&!(0,r.isArray)(t)?Ko(t)?rs(e,null,[t]):rs(e,t):rs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Ko(n)&&(n=[n]),rs(e,t,n))}function js(){}function Hs(e,t,n,r){const o=n[r];if(o&&Vs(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function Vs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if((0,r.hasChanged)(n[e],t[e]))return!1;return zo>0&&jo&&jo.push(e),!0}const Ws="3.4.15",zs=r.NOOP,Gs={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."},qs=Ot,Xs=At,Ys={createComponentInstance:gs,setupComponent:Os,renderComponentRoot:qt,setCurrentRenderingInstance:Ht,isVNode:Ko,normalizeVNode:ls},Ks=null,Js=null,Qs=null,Zs="undefined"!=typeof document?document:null,ei=Zs&&Zs.createElement("template"),ti={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?Zs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Zs.createElementNS("http://www.w3.org/1998/Math/MathML",e):Zs.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Zs.createTextNode(e),createComment:e=>Zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{ei.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const o=ei.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ni="transition",ri="animation",oi=Symbol("_vtc"),si=(e,{slots:t})=>$s(Ln,ui(e),t);si.displayName="Transition";const ii={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ai=si.props=(0,r.extend)({},Rn,ii),ci=(e,t=[])=>{(0,r.isArray)(e)?e.forEach((e=>e(...t))):e&&e(...t)},li=e=>!!e&&((0,r.isArray)(e)?e.some((e=>e.length>1)):e.length>1);function ui(e){const t={};for(const n in e)n in ii||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if((0,r.isObject)(e))return[di(e.enter),di(e.leave)];{const t=di(e);return[t,t]}}(s),g=m&&m[0],_=m&&m[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:b,onLeave:S,onLeaveCancelled:E,onBeforeAppear:T=y,onAppear:C=v,onAppearCancelled:k=b}=t,w=(e,t,n)=>{hi(e,t?d:c),hi(e,t?u:a),n&&n()},O=(e,t)=>{e._isLeaving=!1,hi(e,p),hi(e,f),hi(e,h),t&&t()},I=e=>(t,n)=>{const r=e?C:v,s=()=>w(t,e,n);ci(r,[t,s]),fi((()=>{hi(t,e?l:i),pi(t,e?d:c),li(r)||gi(t,o,g,s)}))};return(0,r.extend)(t,{onBeforeEnter(e){ci(y,[e]),pi(e,i),pi(e,a)},onBeforeAppear(e){ci(T,[e]),pi(e,l),pi(e,u)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>O(e,t);pi(e,p),bi(),pi(e,h),fi((()=>{e._isLeaving&&(hi(e,p),pi(e,f),li(S)||gi(e,o,_,n))})),ci(S,[e,n])},onEnterCancelled(e){w(e,!1),ci(b,[e])},onAppearCancelled(e){w(e,!0),ci(k,[e])},onLeaveCancelled(e){O(e),ci(E,[e])}})}function di(e){return(0,r.toNumber)(e)}function pi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[oi]||(e[oi]=new Set)).add(t)}function hi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[oi];n&&(n.delete(t),n.size||(e[oi]=void 0))}function fi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let mi=0;function gi(e,t,n,r){const o=e._endId=++mi,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:c}=_i(e,t);if(!i)return r();const l=i+"end";let u=0;const d=()=>{e.removeEventListener(l,p),s()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u<c&&d()}),a+1),e.addEventListener(l,p)}function _i(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${ni}Delay`),s=r(`${ni}Duration`),i=yi(o,s),a=r(`${ri}Delay`),c=r(`${ri}Duration`),l=yi(a,c);let u=null,d=0,p=0;return t===ni?i>0&&(u=ni,d=i,p=s.length):t===ri?l>0&&(u=ri,d=l,p=c.length):(d=Math.max(i,l),u=d>0?i>l?ni:ri:null,p=u?u===ni?s.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString())}}function yi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>vi(t)+vi(e[n]))))}function vi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function bi(){return document.body.offsetHeight}const Si=Symbol("_vod"),Ei={beforeMount(e,{value:t},{transition:n}){e[Si]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ti(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ti(e,!0),r.enter(e)):r.leave(e,(()=>{Ti(e,!1)})):Ti(e,t))},beforeUnmount(e,{value:t}){Ti(e,t)}};function Ti(e,t){e.style.display=t?e[Si]:"none"}const Ci=Symbol("");function ki(e){const t=ys();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Oi(e,n)))},r=()=>{const r=e(t.proxy);wi(t.subTree,r),n(r)};yn(r),nr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ir((()=>e.disconnect()))}))}function wi(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{wi(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Oi(e.el,t);else if(e.type===Do)e.children.forEach((e=>wi(e,t)));else if(e.type===Bo){let{el:n,anchor:r}=e;for(;n&&(Oi(n,t),n!==r);)n=n.nextSibling}}function Oi(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[Ci]=r}}const Ii=/\s*!important$/;function xi(e,t,n){if((0,r.isArray)(n))n.forEach((n=>xi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ai[t];if(n)return n;let o=(0,r.camelize)(t);if("filter"!==o&&o in e)return Ai[t]=o;o=(0,r.capitalize)(o);for(let n=0;n<Ni.length;n++){const r=Ni[n]+o;if(r in e)return Ai[t]=r}return t}(e,t);Ii.test(n)?e.setProperty((0,r.hyphenate)(o),n.replace(Ii,""),"important"):e[o]=n}}const Ni=["Webkit","Moz","ms"],Ai={},Ri="http://www.w3.org/1999/xlink";function Li(e,t,n,r){e.addEventListener(t,n,r)}const Mi=Symbol("_vei");const Pi=/(?:Once|Passive|Capture)$/;let Di=0;const Fi=Promise.resolve(),Ui=()=>Di||(Fi.then((()=>Di=0)),Di=Date.now()),Bi=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function $i(e,t){const n=$n(e);class r extends Vi{constructor(e){super(n,e,t)}}return r.def=n,r}const ji=e=>$i(e,ka),Hi="undefined"!=typeof HTMLElement?HTMLElement:class{};class Vi extends Hi{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),yt((()=>{this._connected||(Ca(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let s;if(n&&!(0,r.isArray)(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=(0,r.toNumber)(this._props[e])),(s||(s=Object.create(null)))[(0,r.camelize)(e)]=!0)}this._numberProps=s,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=(0,r.isArray)(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(r.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=(0,r.camelize)(e);this._numberProps&&this._numberProps[n]&&(t=(0,r.toNumber)(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,r.hyphenate)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,r.hyphenate)(e),t+""):t||this.removeAttribute((0,r.hyphenate)(e))))}_update(){Ca(this._createVNode(),this.shadowRoot)}_createVNode(){const e=rs(this._def,(0,r.extend)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),(0,r.hyphenate)(e)!==e&&t((0,r.hyphenate)(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Vi){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Wi(e="$style"){{const t=ys();if(!t)return r.EMPTY_OBJ;const n=t.type.__cssModules;if(!n)return r.EMPTY_OBJ;return n[e]||r.EMPTY_OBJ}}const zi=new WeakMap,Gi=new WeakMap,qi=Symbol("_moveCb"),Xi=Symbol("_enterCb"),Yi={name:"TransitionGroup",props:(0,r.extend)({},ai,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ys(),r=Nn();let o,s;return or((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[oi];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=_i(r);return s.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(Ki),o.forEach(Ji);const r=o.filter(Qi);bi(),r.forEach((e=>{const n=e.el,r=n.style;pi(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[qi]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[qi]=null,hi(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=Ie(e),a=ui(i);let c=i.tag||Do;o=s,s=t.default?Bn(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&Un(t,Pn(t,a,r,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];Un(t,Pn(t,a,r,n)),zi.set(t,t.el.getBoundingClientRect())}return rs(c,null,s)}}};function Ki(e){const t=e.el;t[qi]&&t[qi](),t[Xi]&&t[Xi]()}function Ji(e){Gi.set(e,e.el.getBoundingClientRect())}function Qi(e){const t=zi.get(e),n=Gi.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const Zi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.isArray)(t)?e=>(0,r.invokeArrayFns)(t,e):t};function ea(e){e.target.composing=!0}function ta(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const na=Symbol("_assign"),ra={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[na]=Zi(s);const i=o||s.props&&"number"===s.props.type;Li(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=(0,r.looseToNumber)(o)),e[na](o)})),n&&Li(e,"change",(()=>{e.value=e.value.trim()})),t||(Li(e,"compositionstart",ea),Li(e,"compositionend",ta),Li(e,"change",ta))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e[na]=Zi(i),e.composing)return;const a=null==t?"":t;if((s||"number"===e.type?(0,r.looseToNumber)(e.value):e.value)!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===a)return}e.value=a}}},oa={deep:!0,created(e,t,n){e[na]=Zi(n),Li(e,"change",(()=>{const t=e._modelValue,n=la(e),o=e.checked,s=e[na];if((0,r.isArray)(t)){const e=(0,r.looseIndexOf)(t,n),i=-1!==e;if(o&&!i)s(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),s(n)}}else if((0,r.isSet)(t)){const e=new Set(t);o?e.add(n):e.delete(n),s(e)}else s(ua(e,o))}))},mounted:sa,beforeUpdate(e,t,n){e[na]=Zi(n),sa(e,t,n)}};function sa(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.isArray)(t)?e.checked=(0,r.looseIndexOf)(t,o.props.value)>-1:(0,r.isSet)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.looseEqual)(t,ua(e,!0)))}const ia={created(e,{value:t},n){e.checked=(0,r.looseEqual)(t,n.props.value),e[na]=Zi(n),Li(e,"change",(()=>{e[na](la(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[na]=Zi(o),t!==n&&(e.checked=(0,r.looseEqual)(t,o.props.value))}},aa={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=(0,r.isSet)(t);Li(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,r.looseToNumber)(la(e)):la(e)));e[na](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,yt((()=>{e._assigning=!1}))})),e[na]=Zi(o)},mounted(e,{value:t,oldValue:n,modifiers:{number:r}}){ca(e,t,n,r)},beforeUpdate(e,t,n){e[na]=Zi(n)},updated(e,{value:t,oldValue:n,modifiers:{number:r}}){e._assigning||ca(e,t,n,r)}};function ca(e,t,n,o){const s=e.multiple,i=(0,r.isArray)(t);if((!s||i||(0,r.isSet)(t))&&(!i||!(0,r.looseEqual)(t,n))){for(let n=0,a=e.options.length;n<a;n++){const a=e.options[n],c=la(a);if(s)if(i){const e=typeof c;a.selected="string"===e||"number"===e?t.includes(o?(0,r.looseToNumber)(c):c):(0,r.looseIndexOf)(t,c)>-1}else a.selected=t.has(c);else if((0,r.looseEqual)(la(a),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}s||-1===e.selectedIndex||(e.selectedIndex=-1)}}function la(e){return"_value"in e?e._value:e.value}function ua(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const da={created(e,t,n){ha(e,t,n,null,"created")},mounted(e,t,n){ha(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ha(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ha(e,t,n,r,"updated")}};function pa(e,t){switch(e){case"SELECT":return aa;case"TEXTAREA":return ra;default:switch(t){case"checkbox":return oa;case"radio":return ia;default:return ra}}}function ha(e,t,n,r,o){const s=pa(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const fa=["ctrl","shift","alt","meta"],ma={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>fa.some((n=>e[`${n}Key`]&&!t.includes(n)))},ga=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=ma[t[e]];if(r&&r(n,t))return}return e(n,...r)})},_a={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ya=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=(0,r.hyphenate)(n.key);return t.some((e=>e===o||_a[e]===o))?e(n):void 0})},va=(0,r.extend)({patchProp:(e,t,n,o,s,i,a,c,l)=>{const u="svg"===s;"class"===t?function(e,t,n){const r=e[oi];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,u):"style"===t?function(e,t,n){const o=e.style,s=o.display,i=(0,r.isString)(n);if(n&&!i){if(t&&!(0,r.isString)(t))for(const e in t)null==n[e]&&xi(o,e,"");for(const e in n)xi(o,e,n[e])}else if(i){if(t!==n){const e=o[Ci];e&&(n+=";"+e),o.cssText=n}}else t&&e.removeAttribute("style");Si in e&&(o.display=s)}(e,n,o):(0,r.isOn)(t)?(0,r.isModelListener)(t)||function(e,t,n,o,s=null){const i=e[Mi]||(e[Mi]={}),a=i[t];if(o&&a)a.value=o;else{const[n,c]=function(e){let t;if(Pi.test(e)){let n;for(t={};n=e.match(Pi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):(0,r.hyphenate)(e.slice(2)),t]}(t);if(o){const a=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();at(function(e,t){if((0,r.isArray)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ui(),n}(o,s);Li(e,n,a,c)}else a&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,c),i[t]=void 0)}}(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Bi(t)&&(0,r.isFunction)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Bi(t)||!(0,r.isString)(n))&&t in e}(e,t,o,u))?function(e,t,n,o,s,i,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,s,i),void(e[t]=null==n?"":n);const c=e.tagName;if("value"===t&&"PROGRESS"!==c&&!c.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===c?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=(0,r.includeBooleanAttr)(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,o,i,a,c,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,s){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Ri,t.slice(6,t.length)):e.setAttributeNS(Ri,t,n);else{const o=(0,r.isSpecialBooleanAttr)(t);null==n||o&&!(0,r.includeBooleanAttr)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,u))}},ti);let ba,Sa=!1;function Ea(){return ba||(ba=So(va))}function Ta(){return ba=Sa?ba:Eo(va),Sa=!0,ba}const Ca=(...e)=>{Ea().render(...e)},ka=(...e)=>{Ta().hydrate(...e)},wa=(...e)=>{const t=Ea().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=xa(e);if(!o)return;const s=t._component;(0,r.isFunction)(s)||s.render||s.template||(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Ia(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Oa=(...e)=>{const t=Ta().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=xa(e);if(t)return n(t,!0,Ia(t))},t};function Ia(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function xa(e){return(0,r.isString)(e)?document.querySelector(e):e}let Na=!1;const Aa=()=>{Na||(Na=!0,ra.getSSRProps=({value:e})=>({value:e}),ia.getSSRProps=({value:e},t)=>{if(t.props&&(0,r.looseEqual)(t.props.value,e))return{checked:!0}},oa.getSSRProps=({value:e},t)=>{if((0,r.isArray)(e)){if(t.props&&(0,r.looseIndexOf)(e,t.props.value)>-1)return{checked:!0}}else if((0,r.isSet)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},da.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=pa(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Ei.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},411:(e,t,n)=>{"use strict";function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(t),n.d(t,{EMPTY_ARR:()=>s,EMPTY_OBJ:()=>o,NO:()=>a,NOOP:()=>i,PatchFlagNames:()=>X,PatchFlags:()=>q,ShapeFlags:()=>Y,SlotFlags:()=>K,camelize:()=>L,capitalize:()=>D,def:()=>$,escapeHtml:()=>we,escapeHtmlComment:()=>Ie,extend:()=>u,genPropsAccessExp:()=>G,generateCodeFrame:()=>te,getGlobalThis:()=>W,hasChanged:()=>U,hasOwn:()=>h,hyphenate:()=>P,includeBooleanAttr:()=>_e,invokeArrayFns:()=>B,isArray:()=>f,isBooleanAttr:()=>ge,isBuiltInDirective:()=>N,isDate:()=>_,isFunction:()=>v,isGloballyAllowed:()=>Q,isGloballyWhitelisted:()=>Z,isHTMLTag:()=>ue,isIntegerKey:()=>I,isKnownHtmlAttr:()=>Ee,isKnownSvgAttr:()=>Te,isMap:()=>m,isMathMLTag:()=>pe,isModelListener:()=>l,isObject:()=>E,isOn:()=>c,isPlainObject:()=>O,isPromise:()=>T,isRegExp:()=>y,isRenderableAttrValue:()=>Ce,isReservedProp:()=>x,isSSRSafeAttrName:()=>be,isSVGTag:()=>de,isSet:()=>g,isSpecialBooleanAttr:()=>me,isString:()=>b,isSymbol:()=>S,isVoidTag:()=>he,looseEqual:()=>xe,looseIndexOf:()=>Ne,looseToNumber:()=>j,makeMap:()=>r,normalizeClass:()=>ce,normalizeProps:()=>le,normalizeStyle:()=>ne,objectToString:()=>C,parseStringStyle:()=>ie,propsToAttrMap:()=>Se,remove:()=>d,slotFlagsText:()=>J,stringifyStyle:()=>ae,toDisplayString:()=>Ae,toHandlerKey:()=>F,toNumber:()=>H,toRawType:()=>w,toTypeString:()=>k});const o={},s=[],i=()=>{},a=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),f=Array.isArray,m=e=>"[object Map]"===k(e),g=e=>"[object Set]"===k(e),_=e=>"[object Date]"===k(e),y=e=>"[object RegExp]"===k(e),v=e=>"function"==typeof e,b=e=>"string"==typeof e,S=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,T=e=>(E(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,k=e=>C.call(e),w=e=>k(e).slice(8,-1),O=e=>"[object Object]"===k(e),I=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,x=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},R=/-(\w)/g,L=A((e=>e.replace(R,((e,t)=>t?t.toUpperCase():"")))),M=/\B([A-Z])/g,P=A((e=>e.replace(M,"-$1").toLowerCase())),D=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=A((e=>e?`on${D(e)}`:"")),U=(e,t)=>!Object.is(e,t),B=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const W=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),z=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function G(e){return z.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}const q={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},X={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},Y={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},K={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},J={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Q=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Z=Q,ee=2;function te(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2==1));r=r.filter(((e,t)=>t%2==0));let s=0;const i=[];for(let e=0;e<r.length;e++)if(s+=r[e].length+(o[e]&&o[e].length||0),s>=t){for(let a=e-ee;a<=e+ee||n>s;a++){if(a<0||a>=r.length)continue;const c=a+1;i.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${r[a]}`);const l=r[a].length,u=o[a]&&o[a].length||0;if(a===e){const e=t-(s-(l+u)),r=Math.max(1,n>s?l-e:n-t);i.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(a>e){if(n>s){const e=Math.max(Math.min(n-s,l),1);i.push(" | "+"^".repeat(e))}s+=l+u}}break}return i.join("\n")}function ne(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=b(r)?ie(r):ne(r);if(o)for(const e in o)t[e]=o[e]}return t}if(b(e)||E(e))return e}const re=/;(?![^(]*\))/g,oe=/:([^]+)/,se=/\/\*[^]*?\*\//g;function ie(e){const t={};return e.replace(se,"").split(re).forEach((e=>{if(e){const n=e.split(oe);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ae(e){let t="";if(!e||b(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:P(n);(b(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ce(e){let t="";if(b(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=ce(e[n]);r&&(t+=r+" ")}else if(E(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function le(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=ce(t)),n&&(e.style=ne(n)),e}const ue=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),de=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),pe=r("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),he=r("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),fe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",me=r(fe),ge=r(fe+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function _e(e){return!!e||""===e}const ye=/[>/="'\u0009\u000a\u000c\u0020]/,ve={};function be(e){if(ve.hasOwnProperty(e))return ve[e];const t=ye.test(e);return t&&console.error(`unsafe attribute name: ${e}`),ve[e]=!t}const Se={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ee=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Te=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Ce(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const ke=/["'&<>]/;function we(e){const t=""+e,n=ke.exec(t);if(!n)return t;let r,o,s="",i=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}i!==o&&(s+=t.slice(i,o)),i=o+1,s+=r}return i!==o?s+t.slice(i,o):s}const Oe=/^-?>|<!--|-->|--!>|<!-$/g;function Ie(e){return e.replace(Oe,"")}function xe(e,t){if(e===t)return!0;let n=_(e),r=_(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=S(e),r=S(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xe(e[r],t[r]);return n}(e,t);if(n=E(e),r=E(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!xe(e[n],t[n]))return!1}}return String(e)===String(t)}function Ne(e,t){return e.findIndex((e=>xe(e,t)))}const Ae=e=>b(e)?e:null==e?"":f(e)||E(e)&&(e.toString===C||!v(e.toString))?JSON.stringify(e,Re,2):String(e),Re=(e,t)=>t&&t.__v_isRef?Re(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[Le(t,r)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Le(e)))}:S(t)?Le(t):!E(t)||f(t)||O(t)?t:String(t),Le=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},855:(e,t,n)=>{var r=n(755),o=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function i(){this._array=[],this._set=s?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},i.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,t){var n=s?e:r.toSetString(e),i=s?this.has(e):o.call(this._set,n),a=this._array.length;i&&!t||this._array.push(e),i||(s?this._set.set(e,a):this._set[n]=a)},i.prototype.has=function(e){if(s)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},i.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},i.prototype.toArray=function(){return this._array.slice()},t.C=i},903:(e,t,n)=>{var r=n(316);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,s,i,a,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&s),l+=(s&=31)<<u,u+=5}while(o);n.value=(a=(i=l)>>1,1==(1&i)?-a:a),n.rest=t}},316:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},867:(e,t)=>{function n(e,r,o,s,i,a){var c=Math.floor((r-e)/2)+e,l=i(o,s[c],!0);return 0===l?c:l>0?r-c>1?n(c,r,o,s,i,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:c:c-e>1?n(e,c,o,s,i,a):a==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,o,s){if(0===r.length)return-1;var i=n(-1,r.length,e,r,o,s||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(r[i],r[i-1],!0);)--i;return i}},246:(e,t,n)=>{var r=n(755);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,s,i,a;n=e,o=(t=this._last).generatedLine,s=n.generatedLine,i=t.generatedColumn,a=n.generatedColumn,s>o||s==o&&a>=i||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=o},761:(e,t)=>{function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,s){if(o<s){var i=o-1;n(e,(u=o,d=s,Math.round(u+Math.random()*(d-u))),s);for(var a=e[s],c=o;c<s;c++)t(e[c],a)<=0&&n(e,i+=1,c);n(e,i+1,c);var l=i+1;r(e,t,o,l-1),r(e,t,l+1,s)}var u,d}t.g=function(e,t){r(e,t,0,e.length-1)}},718:(e,t,n)=>{var r=n(755),o=n(867),s=n(855).C,i=n(903),a=n(761).g;function c(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new l(n,t)}function l(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sources"),a=r.getArg(n,"names",[]),c=r.getArg(n,"sourceRoot",null),l=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);c&&(c=r.normalize(c)),i=i.map(String).map(r.normalize).map((function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e})),this._names=s.fromArray(a.map(String),!0),this._sources=s.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),i=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new s,this._names=new s;var a={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),s=r.getArg(n,"column");if(o<a.line||o===a.line&&s<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=n,{generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:new c(r.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var o,s=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:o=this._generatedMappings;break;case c.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(i,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},c.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var l=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==l;)s.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return s},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var n=Object.create(l.prototype),o=n._names=s.fromArray(e._names.toArray(),!0),i=n._sources=s.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),d=n.__generatedMappings=[],p=n.__originalMappings=[],h=0,f=c.length;h<f;h++){var m=c[h],g=new u;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=i.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=o.indexOf(m.name)),p.push(g)),d.push(g)}return a(n.__originalMappings,r.compareByOriginalPositions),n},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var n,o,s,c,l,d=1,p=0,h=0,f=0,m=0,g=0,_=e.length,y=0,v={},b={},S=[],E=[];y<_;)if(";"===e.charAt(y))d++,y++,p=0;else if(","===e.charAt(y))y++;else{for((n=new u).generatedLine=d,c=y;c<_&&!this._charIsMappingSeparator(e,c);c++);if(s=v[o=e.slice(y,c)])y+=o.length;else{for(s=[];y<c;)i.decode(e,y,b),l=b.value,y=b.rest,s.push(l);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");v[o]=s}n.generatedColumn=p+s[0],p=n.generatedColumn,s.length>1&&(n.source=m+s[1],m+=s[1],n.originalLine=h+s[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=f+s[3],f=n.originalColumn,s.length>4&&(n.name=g+s[4],g+=s[4])),E.push(n),"number"==typeof n.originalLine&&S.push(n)}a(E,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,a(S,r.compareByOriginalPositions),this.__originalMappings=S},l.prototype._findMapping=function(e,t,n,r,s,i){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,s,i)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var s=r.getArg(o,"source",null);null!==s&&(s=this._sources.at(s),s=r.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var i=r.getArg(o,"name",null);return null!==i&&(i=this._names.at(i)),{source:s,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,s=e;if(null!=this.sourceRoot&&(s=r.relative(this.sourceRoot,s)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var i=s.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!o.path||"/"==o.path)&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(t)return null;throw new Error('"'+s+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(o>=0){var s=this._originalMappings[o];if(s.source===n.source)return{line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],s=o.consumer._generatedMappings,i=0;i<s.length;i++){var c=s[i],l=o.consumer._sources.at(c.source);l=r.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=o.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(o.generatedOffset.generatedLine===c.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}a(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),a(this.__originalMappings,r.compareByOriginalPositions)}},249:(e,t,n)=>{var r=n(903),o=n(755),s=n(855).C,i=n(246).P;function a(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,n=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var s=r;null!==t&&(s=o.relative(t,r)),n._sources.has(s)||n._sources.add(s);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},a.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),s=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,s),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:s})},a.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=o.relative(i,r));var a=new s,c=new s;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=o.join(n,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||a.has(l)||a.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=a,this._names=c,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,r))}),this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,s,i=0,a=1,c=0,l=0,u=0,d=0,p="",h=this._mappings.toArray(),f=0,m=h.length;f<m;f++){if(e="",(t=h[f]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(s=this._sources.indexOf(t.source),e+=r.encode(s-d),d=s,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},811:(e,t,n)=>{var r=n(249).SourceMapGenerator,o=n(755),s=/(\r?\n)/,i="$$$isSourceNode$$$";function a(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,i=e.split(s),c=0,l=function(){return e()+(e()||"");function e(){return c<i.length?i[c++]:void 0}},u=1,d=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(u<e.generatedLine)){var t=(n=i[c]||"").substr(0,e.generatedColumn-d);return i[c]=n.substr(e.generatedColumn-d),d=e.generatedColumn,h(p,t),void(p=e)}h(p,l()),u++,d=0}for(;u<e.generatedLine;)r.add(l()),u++;if(d<e.generatedColumn){var n=i[c]||"";r.add(n.substr(0,e.generatedColumn)),i[c]=n.substr(e.generatedColumn),d=e.generatedColumn}p=e}),this),c<i.length&&(p&&h(p,l()),r.add(i.splice(c).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,s))})),r;function h(e,t){if(null===e||void 0===e.source)r.add(t);else{var s=n?o.join(n,e.source):e.source;r.add(new a(e.originalLine,e.originalColumn,s,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[i]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][i]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},a.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,s=null,i=null,a=null,c=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(s===r.source&&i===r.line&&a===r.column&&c===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),s=r.source,i=r.line,a=r.column,c=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),s=null,o=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(s=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=a},755:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function s(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var i,a=t.isAbsolute(n),c=n.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(i=c[u])?c.splice(u,1):".."===i?l++:l>0&&(""===i?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=a?"/":"."),r?(r.path=n,s(r)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),a=o(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),s(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,s(a);var c="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=c,s(a)):c}t.urlParse=o,t.urlGenerate=s,t.normalize=i,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var c=r.path.lastIndexOf("/");c>=0&&(r.path=r.path.substring(0,c+1))}t=a(s(r),t)}return i(t)}},57:(e,t,n)=>{t.SourceMapGenerator=n(249).SourceMapGenerator,t.SourceMapConsumer=n(718).SourceMapConsumer,t.SourceNode=n(811).SourceNode},140:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0,t.WarningElement=void 0;var r=function(){function e(e){this.options=n(n({},e),{id:e.id||Math.random().toString(36).slice(2,12)})}return e.prototype.build=function(){var e=this.options.cta?'<a href="'.concat(this.options.cta.link,'" target="_blank">').concat(this.options.cta.buttonContent,"</a>"):"";this.warning=document.createElement("div"),this.warning.setAttribute("id",this.options.id);var t='\n <div class="alert alert-warning">\n <button type="button" class="close" data-dismiss="alert">×</button>\n <div class="alert-text">\n '.concat(this.options.message," ").concat(e,"\n </div>\n </div>\n");return this.warning.innerHTML=t,this.options.onClose&&this.warning.getElementsByClassName("close").item(0).addEventListener("click",this.options.onClose),this.warning},e}();t.WarningElement=r},798:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};t.__esModule=!0;var c=s(n(115)),l=n(638),u=n(359),d=n(933);(0,l.initOnboardingClient)({apiUrl:window.psxMktgWithGoogleApiUrl,token:window.psxMktgWithGoogleTokenPsAccounts}),window.psxMktgWithGoogleOnProductionEnvironment&&c.init({dsn:window.psxMktgWithGoogleDsnSentry,allowUrls:["https://storage.googleapis.com/psxmarketing-cdn/"],sampleRate:.5,tracesSampleRate:1,initialScope:{user:{id:window.psxMktgWithGoogleShopIdPsAccounts?window.psxMktgWithGoogleShopIdPsAccounts.toString():"unknown"}},release:"dev"}),document.addEventListener("DOMContentLoaded",(function(){return i(void 0,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,(0,d.getListOfWarnings)(l.fetchOnboarding)];case 1:return e=t.sent(),(0,u.buildWarningMessages)(e,{isoCode:new Intl.Locale(window.i18nSettings.languageLocale).language,link:window.psxMktgWithGoogleAdminUrl}).attachBefore(document.getElementById("dashboard")),[2]}}))}))}))},933:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};t.__esModule=!0,t.aknowledgeWarning=t.getListOfWarnings=void 0;var c=s(n(115)),l=n(309),u="".concat(Math.floor(Date.now()/1e3)),d=new c.Scope;t.getListOfWarnings=function(e){return i(void 0,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e("GET","shop-warnings",{correlationId:u,onResponse:p})];case 1:return[4,t.sent().json()];case 2:return[2,t.sent().map((function(e){return e.warningName}))]}}))}))},t.aknowledgeWarning=function(e,t){return i(void 0,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return[4,t("POST","shop-warnings/".concat(e,"/ack"),{correlationId:u,onResponse:p})];case 1:return n.sent(),[2]}}))}))};var p=function(e){return i(void 0,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:if(e.ok)return[3,5];t=new l.HttpClientError(e.statusText,e.status),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.text()];case 2:return n=r.sent(),d.setExtra("responseContent",n),[3,4];case 3:return r.sent(),[3,4];case 4:throw d.setTransactionName(e.url),d.setTag("correlationId",u),c.captureException(t,d),t;case 5:return[2,e]}}))}))}},359:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.buildWarningMessages=t.messages=void 0;var o=r(n(538)),s=r(n(554)),i=r(n(431)),a=r(n(7)),c=r(n(572)),l=r(n(353)),u=r(n(279)),d=r(n(367)),p=r(n(284)),h=n(381),f=n(309),m=n(140),g=n(933);t.messages={de:o.default,en:s.default,es:i.default,fr:a.default,it:c.default,nl:l.default,pl:u.default,pt:d.default,ru:p.default};var _=(0,h.createI18n)({messages:t.messages,fallbackLocale:"en"});t.buildWarningMessages=function(e,t){_.global.locale=t.isoCode;var n=e.map((function(e){return new m.WarningElement({message:_.global.t("".concat(e,".message"),{link:'<a href="'.concat(t.link,'" target="_blank">'),endLink:"</a>"}).toString(),cta:{buttonContent:_.global.t("".concat(e,".ctaContent")).toString(),link:t.link},onClose:function(){(0,g.aknowledgeWarning)(e,f.fetchOnboarding),console.log("Message ".concat(e," has been acknowledged."))}}).build()}));return{elements:n,attachBefore:function(e){e.before.apply(e,n)}}}},657:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});t.__esModule=!0,t.HttpClientError=void 0;var o=function(e){function t(t,n){var r=e.call(this,t)||this;return r.code=n,r.name=r.constructor.name,r.message=t,r.code=n,r}return r(t,e),t}(Error);t.HttpClientError=o,t.default={HttpClientError:o}},638:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};t.__esModule=!0,t.fetchOnboarding=t.initOnboardingClient=t.noCorrelationIdValue=void 0;var s=n(657);t.noCorrelationIdValue="no-correlation-id-provided";var i={apiUrl:"",token:""};t.initOnboardingClient=function(e){i.apiUrl=e.apiUrl,i.token=e.token};var a=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){if(!e.ok)throw new s.HttpClientError(e.statusText,e.status);return[2,e]}))}))};t.fetchOnboarding=function(e,n,s){return r(void 0,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:if(!i.apiUrl.length)throw new Error("Cannot call onboarding API, client is not initialized (missing URL)");if(!i.token.length)throw new Error("Cannot call onboarding API, client is not initialized (missing token)");return[4,fetch("".concat(i.apiUrl,"/").concat(n),{method:e,headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(i.token),"x-correlation-id":(null==s?void 0:s.correlationId)||t.noCorrelationIdValue},body:(null==s?void 0:s.body)&&JSON.stringify(null==s?void 0:s.body)})];case 1:return r=o.sent(),[2,(null==s?void 0:s.onResponse)?null==s?void 0:s.onResponse(r):a(r)]}}))}))},t.default={initOnboardingClient:t.initOnboardingClient,fetchOnboarding:t.fetchOnboarding}},979:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};t.__esModule=!0,t.fetchShop=t.initShopClient=void 0;var i=n(657),a={shopUrl:""};t.initShopClient=function(e){a.shopUrl=e.shopUrl,a.onShopSessionLoggedOut=e.onShopSessionLoggedOut},t.fetchShop=function(e,t,n){return o(void 0,void 0,void 0,(function(){var o;return s(this,(function(s){switch(s.label){case 0:if(!a.shopUrl.length)throw new Error("Cannot call action ".concat(e,", API is not initialized (missing shop URL)"));return[4,fetch(a.shopUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r({action:e},t)),signal:n})];case 1:if((o=s.sent()).redirected&&-1!==o.url.indexOf("AdminLogin"))throw a.onShopSessionLoggedOut&&a.onShopSessionLoggedOut(),new i.HttpClientError("Unauthorized",401);if(!o.ok)throw new i.HttpClientError(o.statusText,o.status);return[2,o.json()]}}))}))},t.default={initShopClient:t.initShopClient,fetchShop:t.fetchShop}},309:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});t.__esModule=!0,t.fetchShop=t.fetchOnboarding=t.HttpClientError=void 0,r(t,n(657),"HttpClientError"),r(t,n(638),"fetchOnboarding"),r(t,n(979),"fetchShop")},320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(585),o=n(441),s=n(561);const i="9.2.2";let a=r.CompileErrorCodes.__EXTEND_POINT__;const c=()=>++a,l={UNEXPECTED_RETURN_TYPE:a,INVALID_ARGUMENT:c(),MUST_BE_CALL_SETUP_TOP:c(),NOT_INSLALLED:c(),NOT_AVAILABLE_IN_LEGACY_MODE:c(),REQUIRED_VALUE:c(),INVALID_VALUE:c(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:c(),NOT_INSLALLED_WITH_PROVIDE:c(),UNEXPECTED_ERROR:c(),NOT_COMPATIBLE_LEGACY_VUE_I18N:c(),BRIDGE_SUPPORT_VUE_2_ONLY:c(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:c(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:c(),__EXTEND_POINT__:c()};function u(e,...t){return r.createCompileError(e,null,void 0)}const d=s.makeSymbol("__transrateVNode"),p=s.makeSymbol("__datetimeParts"),h=s.makeSymbol("__numberParts"),f=s.makeSymbol("__setPluralRules");s.makeSymbol("__intlifyMeta");const m=s.makeSymbol("__injectWithOption");function g(e){if(!s.isObject(e))return e;for(const t in e)if(s.hasOwn(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],s.isObject(o[n[r]])&&g(o[n[r]])}else s.isObject(e[t])&&g(e[t]);return e}function _(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,a=s.isPlainObject(n)?n:s.isArray(r)?{}:{[e]:{}};if(s.isArray(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||{},v(n,a[t])):v(n,a)}else s.isString(e)&&v(JSON.parse(e),a)})),null==o&&i)for(const e in a)s.hasOwn(a,e)&&g(a[e]);return a}const y=e=>!s.isObject(e)||s.isArray(e);function v(e,t){if(y(e)||y(t))throw u(l.INVALID_VALUE);for(const n in e)s.hasOwn(e,n)&&(y(e[n])||y(t[n])?t[n]=e[n]:v(e[n],t[n]))}function b(e,t,n){let r=s.isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=_(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),s.isObject(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(s.isObject(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function S(e){return o.createVNode(o.Text,null,e,0)}let E=0;function T(e){return(t,n,r,s)=>e(n,r,o.getCurrentInstance()||void 0,s)}function C(e={},t){const{__root:n}=e,a=void 0===n;let c=!s.isBoolean(e.inheritLocale)||e.inheritLocale;const g=o.ref(n&&c?n.locale.value:s.isString(e.locale)?e.locale:r.DEFAULT_LOCALE),y=o.ref(n&&c?n.fallbackLocale.value:s.isString(e.fallbackLocale)||s.isArray(e.fallbackLocale)||s.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:g.value),b=o.ref(_(g.value,e)),C=o.ref(s.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[g.value]:{}}),k=o.ref(s.isPlainObject(e.numberFormats)?e.numberFormats:{[g.value]:{}});let w=n?n.missingWarn:!s.isBoolean(e.missingWarn)&&!s.isRegExp(e.missingWarn)||e.missingWarn,O=n?n.fallbackWarn:!s.isBoolean(e.fallbackWarn)&&!s.isRegExp(e.fallbackWarn)||e.fallbackWarn,I=n?n.fallbackRoot:!s.isBoolean(e.fallbackRoot)||e.fallbackRoot,x=!!e.fallbackFormat,N=s.isFunction(e.missing)?e.missing:null,A=s.isFunction(e.missing)?T(e.missing):null,R=s.isFunction(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:!s.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,M=!!e.escapeParameter;const P=n?n.modifiers:s.isPlainObject(e.modifiers)?e.modifiers:{};let D,F=e.pluralRules||n&&n.pluralRules;D=(()=>{a&&r.setFallbackContext(null);const t={version:i,locale:g.value,fallbackLocale:y.value,messages:b.value,modifiers:P,pluralRules:F,missing:null===A?void 0:A,missingWarn:w,fallbackWarn:O,fallbackFormat:x,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:L,escapeParameter:M,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=C.value,t.numberFormats=k.value,t.__datetimeFormatters=s.isPlainObject(D)?D.__datetimeFormatters:void 0,t.__numberFormatters=s.isPlainObject(D)?D.__numberFormatters:void 0;const n=r.createCoreContext(t);return a&&r.setFallbackContext(n),n})(),r.updateFallbackLocale(D,g.value,y.value);const U=o.computed({get:()=>g.value,set:e=>{g.value=e,D.locale=g.value}}),B=o.computed({get:()=>y.value,set:e=>{y.value=e,D.fallbackLocale=y.value,r.updateFallbackLocale(D,g.value,e)}}),$=o.computed((()=>b.value)),j=o.computed((()=>C.value)),H=o.computed((()=>k.value)),V=(e,t,o,i,a,c)=>{let d;if(g.value,y.value,b.value,C.value,k.value,d=e(D),s.isNumber(d)&&d===r.NOT_REOSLVED){const[e,r]=t();return n&&I?i(n):a(e)}if(c(d))return d;throw u(l.UNEXPECTED_RETURN_TYPE)};function W(...e){return V((t=>Reflect.apply(r.translate,null,[t,...e])),(()=>r.parseTranslateArgs(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>s.isString(e)))}const z={normalize:function(e){return e.map((e=>s.isString(e)||s.isNumber(e)||s.isBoolean(e)?S(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return b.value[e]||{}}E++,n&&s.inBrowser&&(o.watch(n.locale,(e=>{c&&(g.value=e,D.locale=e,r.updateFallbackLocale(D,g.value,y.value))})),o.watch(n.fallbackLocale,(e=>{c&&(y.value=e,D.fallbackLocale=e,r.updateFallbackLocale(D,g.value,y.value))})));const q={id:E,locale:U,fallbackLocale:B,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&n&&(g.value=n.locale.value,y.value=n.fallbackLocale.value,r.updateFallbackLocale(D,g.value,y.value))},get availableLocales(){return Object.keys(b.value).sort()},messages:$,get modifiers(){return P},get pluralRules(){return F||{}},get isGlobal(){return a},get missingWarn(){return w},set missingWarn(e){w=e,D.missingWarn=w},get fallbackWarn(){return O},set fallbackWarn(e){O=e,D.fallbackWarn=O},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return x},set fallbackFormat(e){x=e,D.fallbackFormat=x},get warnHtmlMessage(){return L},set warnHtmlMessage(e){L=e,D.warnHtmlMessage=e},get escapeParameter(){return M},set escapeParameter(e){M=e,D.escapeParameter=e},t:W,getLocaleMessage:G,setLocaleMessage:function(e,t){b.value[e]=t,D.messages=b.value},mergeLocaleMessage:function(e,t){b.value[e]=b.value[e]||{},v(t,b.value[e]),D.messages=b.value},getPostTranslationHandler:function(){return s.isFunction(R)?R:null},setPostTranslationHandler:function(e){R=e,D.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(A=T(e)),N=e,D.missing=A},[f]:function(e){F=e,D.pluralRules=F}};return q.datetimeFormats=j,q.numberFormats=H,q.rt=function(...e){const[t,n,r]=e;if(r&&!s.isObject(r))throw u(l.INVALID_ARGUMENT);return W(t,n,s.assign({resolvedMessage:!0},r||{}))},q.te=function(e,t){const n=G(s.isString(t)?t:g.value);return null!==D.messageResolver(n,e)},q.tm=function(e){const t=function(e){let t=null;const n=r.fallbackWithLocaleChain(D,y.value,g.value);for(let r=0;r<n.length;r++){const o=b.value[n[r]]||{},s=D.messageResolver(o,e);if(null!=s){t=s;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},q.d=function(...e){return V((t=>Reflect.apply(r.datetime,null,[t,...e])),(()=>r.parseDateTimeArgs(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>r.MISSING_RESOLVE_VALUE),(e=>s.isString(e)))},q.n=function(...e){return V((t=>Reflect.apply(r.number,null,[t,...e])),(()=>r.parseNumberArgs(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>r.MISSING_RESOLVE_VALUE),(e=>s.isString(e)))},q.getDateTimeFormat=function(e){return C.value[e]||{}},q.setDateTimeFormat=function(e,t){C.value[e]=t,D.datetimeFormats=C.value,r.clearDateTimeFormat(D,e,t)},q.mergeDateTimeFormat=function(e,t){C.value[e]=s.assign(C.value[e]||{},t),D.datetimeFormats=C.value,r.clearDateTimeFormat(D,e,t)},q.getNumberFormat=function(e){return k.value[e]||{}},q.setNumberFormat=function(e,t){k.value[e]=t,D.numberFormats=k.value,r.clearNumberFormat(D,e,t)},q.mergeNumberFormat=function(e,t){k.value[e]=s.assign(k.value[e]||{},t),D.numberFormats=k.value,r.clearNumberFormat(D,e,t)},q[m]=e.__injectWithOption,q[d]=function(...e){return V((t=>{let n;const o=t;try{o.processor=z,n=Reflect.apply(r.translate,null,[o,...e])}finally{o.processor=null}return n}),(()=>r.parseTranslateArgs(...e)),0,(t=>t[d](...e)),(e=>[S(e)]),(e=>s.isArray(e)))},q[p]=function(...e){return V((t=>Reflect.apply(r.datetime,null,[t,...e])),(()=>r.parseDateTimeArgs(...e)),0,(t=>t[p](...e)),(()=>[]),(e=>s.isString(e)||s.isArray(e)))},q[h]=function(...e){return V((t=>Reflect.apply(r.number,null,[t,...e])),(()=>r.parseNumberArgs(...e)),0,(t=>t[h](...e)),(()=>[]),(e=>s.isString(e)||s.isArray(e)))},q}function k(e={},t){{const t=C(function(e){const t=s.isString(e.locale)?e.locale:r.DEFAULT_LOCALE,n=s.isString(e.fallbackLocale)||s.isArray(e.fallbackLocale)||s.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,o=s.isFunction(e.missing)?e.missing:void 0,i=!s.isBoolean(e.silentTranslationWarn)&&!s.isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!s.isBoolean(e.silentFallbackWarn)&&!s.isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,c=!s.isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,u=s.isPlainObject(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,p=s.isFunction(e.postTranslation)?e.postTranslation:void 0,h=!s.isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!s.isBoolean(e.sync)||e.sync;let g=e.messages;if(s.isPlainObject(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return s.assign(r,t[n]),e}),g||{})}const{__i18n:_,__root:y,__injectWithOption:v}=e,b=e.datetimeFormats,S=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:b,numberFormats:S,missing:o,missingWarn:i,fallbackWarn:a,fallbackRoot:c,fallbackFormat:l,modifiers:u,pluralRules:d,postTranslation:p,warnHtmlMessage:h,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,__i18n:_,__root:y,__injectWithOption:v}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return s.isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=s.isBoolean(e)?!e:e},get silentFallbackWarn(){return s.isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=s.isBoolean(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,i={};let a=null,c=null;if(!s.isString(n))throw u(l.INVALID_ARGUMENT);const d=n;return s.isString(r)?i.locale=r:s.isArray(r)?a=r:s.isPlainObject(r)&&(c=r),s.isArray(o)?a=o:s.isPlainObject(o)&&(c=o),Reflect.apply(t.t,t,[d,a||c||{},i])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,o]=e,i={plural:1};let a=null,c=null;if(!s.isString(n))throw u(l.INVALID_ARGUMENT);const d=n;return s.isString(r)?i.locale=r:s.isNumber(r)?i.plural=r:s.isArray(r)?a=r:s.isPlainObject(r)&&(c=r),s.isString(o)?i.locale=o:s.isArray(o)?a=o:s.isPlainObject(o)&&(c=o),Reflect.apply(t.t,t,[d,a||c||{},i])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const w={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function O(e){return o.Fragment}const I={name:"i18n-t",props:s.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s.isNumber(e)||!isNaN(e)}},w),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||F({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter((e=>"_"!==e)),c={};e.locale&&(c.locale=e.locale),void 0!==e.plural&&(c.plural=s.isString(e.plural)?+e.plural:e.plural);const l=function({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...s.isArray(t.children)?t.children:[t]]),[]):t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,a),u=i[d](e.keypath,l,c),p=s.assign({},r),h=s.isString(e.tag)||s.isObject(e.tag)?e.tag:O();return o.h(h,p,u)}}};function x(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const t={part:!0};let c={};e.locale&&(t.locale=e.locale),s.isString(e.format)?t.key=e.format:s.isObject(e.format)&&(s.isString(e.format.key)&&(t.key=e.format.key),c=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?s.assign({},t,{[r]:e.format[r]}):t),{}));const l=r(e.value,t,c);let u=[t.key];s.isArray(l)?u=l.map(((e,t)=>{const n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];var o;return o=r,s.isArray(o)&&!s.isString(o[0])&&(r[0].key=`${e.type}-${t}`),r})):s.isString(l)&&(u=[l]);const d=s.assign({},a),p=s.isString(e.tag)||s.isObject(e.tag)?e.tag:O();return o.h(p,d,u)}}const N={name:"i18n-n",props:s.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},w),setup(e,t){const n=e.i18n||F({useScope:"parent",__useComponent:!0});return x(e,t,r.NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>n[h](...e)))}},A={name:"i18n-d",props:s.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},w),setup(e,t){const n=e.i18n||F({useScope:"parent",__useComponent:!0});return x(e,t,r.DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>n[p](...e)))}};function R(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw u(l.UNEXPECTED_ERROR);const s=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),i=L(o);return[Reflect.apply(s.t,s,[...M(i)]),s]};return{created:(n,r)=>{const[i,a]=t(r);s.inBrowser&&e.global===a&&(n.__i18nWatcher=o.watch(a.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=a,n.textContent=i},unmounted:e=>{s.inBrowser&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=L(t);e.textContent=Reflect.apply(n.t,n,[...M(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}function L(e){if(s.isString(e))return{path:e};if(s.isPlainObject(e)){if(!("path"in e))throw u(l.REQUIRED_VALUE);return e}throw u(l.INVALID_VALUE)}function M(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,a={},c=r||{};return s.isString(n)&&(a.locale=n),s.isNumber(o)&&(a.plural=o),s.isNumber(i)&&(a.plural=i),[t,c,a]}function P(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[f](t.pluralizationRules||e.pluralizationRules);const n=_(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const D=s.makeSymbol("global-vue-i18n");function F(e={}){const t=o.getCurrentInstance();if(null==t)throw u(l.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw u(l.NOT_INSLALLED);const n=function(e){{const t=o.inject(e.isCE?D:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw u(e.isCE?l.NOT_INSLALLED_WITH_PROVIDE:l.UNEXPECTED_ERROR);return t}}(t),i=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),a=function(e){return e.type}(t),c=function(e,t){return s.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,a);if("legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw u(l.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,i={}){const a="local"===t,c=o.shallowRef(null);if(a&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw u(l.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const d=!s.isBoolean(i.inheritLocale)||i.inheritLocale,p=o.ref(a&&d?n.locale.value:s.isString(i.locale)?i.locale:r.DEFAULT_LOCALE),h=o.ref(a&&d?n.fallbackLocale.value:s.isString(i.fallbackLocale)||s.isArray(i.fallbackLocale)||s.isPlainObject(i.fallbackLocale)||!1===i.fallbackLocale?i.fallbackLocale:p.value),f=o.ref(_(p.value,i)),m=o.ref(s.isPlainObject(i.datetimeFormats)?i.datetimeFormats:{[p.value]:{}}),g=o.ref(s.isPlainObject(i.numberFormats)?i.numberFormats:{[p.value]:{}}),y=a?n.missingWarn:!s.isBoolean(i.missingWarn)&&!s.isRegExp(i.missingWarn)||i.missingWarn,v=a?n.fallbackWarn:!s.isBoolean(i.fallbackWarn)&&!s.isRegExp(i.fallbackWarn)||i.fallbackWarn,b=a?n.fallbackRoot:!s.isBoolean(i.fallbackRoot)||i.fallbackRoot,S=!!i.fallbackFormat,E=s.isFunction(i.missing)?i.missing:null,T=s.isFunction(i.postTranslation)?i.postTranslation:null,C=a?n.warnHtmlMessage:!s.isBoolean(i.warnHtmlMessage)||i.warnHtmlMessage,k=!!i.escapeParameter,w=a?n.modifiers:s.isPlainObject(i.modifiers)?i.modifiers:{},O=i.pluralRules||a&&n.pluralRules;function I(e){return p.value,h.value,f.value,m.value,g.value,e()}const x={get id(){return c.value?c.value.id:-1},locale:o.computed({get:()=>c.value?c.value.locale.value:p.value,set:e=>{c.value&&(c.value.locale.value=e),p.value=e}}),fallbackLocale:o.computed({get:()=>c.value?c.value.fallbackLocale.value:h.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),h.value=e}}),messages:o.computed((()=>c.value?c.value.messages.value:f.value)),datetimeFormats:o.computed((()=>m.value)),numberFormats:o.computed((()=>g.value)),get inheritLocale(){return c.value?c.value.inheritLocale:d},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(f.value)},get modifiers(){return c.value?c.value.modifiers:w},get pluralRules(){return c.value?c.value.pluralRules:O},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:y},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:v},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:b},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:S},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:C},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:k},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:function(...e){return c.value?I((()=>Reflect.apply(c.value.t,null,[...e]))):I((()=>""))},getPostTranslationHandler:function(){return c.value?c.value.getPostTranslationHandler():T},setPostTranslationHandler:function(e){c.value&&c.value.setPostTranslationHandler(e)},getMissingHandler:function(){return c.value?c.value.getMissingHandler():E},setMissingHandler:function(e){c.value&&c.value.setMissingHandler(e)},rt:function(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""},d:function(...e){return c.value?I((()=>Reflect.apply(c.value.d,null,[...e]))):I((()=>""))},n:function(...e){return c.value?I((()=>Reflect.apply(c.value.n,null,[...e]))):I((()=>""))},tm:function(e){return c.value?c.value.tm(e):{}},te:function(e,t){return!!c.value&&c.value.te(e,t)},getLocaleMessage:function(e){return c.value?c.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){c.value&&(c.value.setLocaleMessage(e,t),f.value[e]=t)},mergeLocaleMessage:function(e,t){c.value&&c.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return c.value?c.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){c.value&&(c.value.setDateTimeFormat(e,t),m.value[e]=t)},mergeDateTimeFormat:function(e,t){c.value&&c.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return c.value?c.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){c.value&&(c.value.setNumberFormat(e,t),g.value[e]=t)},mergeNumberFormat:function(e,t){c.value&&c.value.mergeNumberFormat(e,t)}};return o.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw u(l.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=c.value=e.proxy.$i18n.__composer;"global"===t?(p.value=n.locale.value,h.value=n.fallbackLocale.value,f.value=n.messages.value,m.value=n.datetimeFormats.value,g.value=n.numberFormats.value):a&&function(e){e.locale.value=p.value,e.fallbackLocale.value=h.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(g.value).forEach((t=>{e.mergeNumberFormat(t,g.value[t])})),e.escapeParameter=k,e.fallbackFormat=S,e.fallbackRoot=b,e.fallbackWarn=v,e.missingWarn=y,e.warnHtmlMessage=C}(n)})),x}(t,c,i,e)}if("global"===c)return b(i,e,a),i;if("parent"===c){let r=function(e,t,n=!1){let r=null;const o=t.root;let s=t.parent;for(;null!=s;){const t=e;if("composition"===e.mode)r=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(r=e.__composer,n&&r&&!r[m]&&(r=null))}if(null!=r)break;if(o===s)break;s=s.parent}return r}(n,t,e.__useComponent);return null==r&&(r=i),r}const d=n;let p=d.__getInstance(t);if(null==p){const n=s.assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),i&&(n.__root=i),p=C(n),function(e,t,n){o.onMounted((()=>{}),t),o.onUnmounted((()=>{e.__deleteInstance(t)}),t)}(d,t),d.__setInstance(t,p)}return p}const U=["locale","fallbackLocale","availableLocales"],B=["t","rt","d","n","tm"];r.registerMessageCompiler(r.compileToFunction),r.registerMessageResolver(r.resolveValue),r.registerLocaleFallbacker(r.fallbackWithLocaleChain),t.DatetimeFormat=A,t.I18nInjectionKey=D,t.NumberFormat=N,t.Translation=I,t.VERSION=i,t.castToVueI18n=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw u(l.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},t.createI18n=function(e={},t){const n=!s.isBoolean(e.legacy)||e.legacy,r=!s.isBoolean(e.globalInjection)||e.globalInjection,i=!n||!!e.allowComposition,a=new Map,[c,d]=function(e,t,n){const r=o.effectScope();{const n=t?r.run((()=>k(e))):r.run((()=>C(e)));if(null==n)throw u(l.UNEXPECTED_ERROR);return[r,n]}}(e,n),p=s.makeSymbol("");{const e={get mode(){return n?"legacy":"composition"},get allowComposition(){return i},async install(t,...i){t.__VUE_I18N_SYMBOL__=p,t.provide(t.__VUE_I18N_SYMBOL__,e),!n&&r&&function(e,t){const n=Object.create(null);U.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw u(l.UNEXPECTED_ERROR);const s=o.isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,s)})),e.config.globalProperties.$i18n=n,B.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw u(l.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}(t,e.global),function(e,t,...n){const r=s.isPlainObject(n[0])?n[0]:{},o=!!r.useI18nComponentName;(!s.isBoolean(r.globalInstall)||r.globalInstall)&&(e.component(o?"i18n":I.name,I),e.component(N.name,N),e.component(A.name,A)),e.directive("t",R(t))}(t,e,...i),n&&t.mixin(function(e,t,n){return{beforeCreate(){const r=o.getCurrentInstance();if(!r)throw u(l.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const n=s.i18n;s.__i18n&&(n.__i18n=s.__i18n),n.__root=t,this===this.$root?this.$i18n=P(e,n):(n.__injectWithOption=!0,this.$i18n=k(n))}else s.__i18n?this===this.$root?this.$i18n=P(e,s):this.$i18n=k({__i18n:s.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;s.__i18nGlobal&&b(t,s,s),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},unmounted(){const e=o.getCurrentInstance();if(!e)throw u(l.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(d,d.__composer,e));const a=t.unmount;t.unmount=()=>{e.dispose(),a()}},get global(){return d},dispose(){c.stop()},__instances:a,__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return e}},t.useI18n=F,t.vTDirective=R},381:(e,t,n)=>{"use strict";e.exports=n(320)},963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(141),o=n(647),s=n(411);function i(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var a=i(o);const c=new WeakMap;function l(e,t){if(!s.isString(e)){if(!e.nodeType)return s.NOOP;e=e.innerHTML}const n=e,o=function(e){let t=c.get(null!=e?e:s.EMPTY_OBJ);return t||(t=Object.create(null),c.set(null!=e?e:s.EMPTY_OBJ,t)),t}(t),i=o[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=s.extend({hoistStatic:!0,onError:void 0,onWarn:s.NOOP},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:u}=r.compile(e,l),d=new Function("Vue",u)(a);return d._rc=!0,o[n]=d}o.registerRuntimeCompiler(l),t.compile=l,Object.keys(o).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=o[e])}))},441:(e,t,n)=>{"use strict";e.exports=n(963)},538:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},554:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},431:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},7:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},572:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},353:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},279:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},367:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')},284:e=>{"use strict";e.exports=JSON.parse('{"NOT_ONBOARDED":{"message":"{link}PS Marketing with Google{endLink} is not configured. You are missing out on a lot of opportunities and visibility. It is highly recommended that you configure your synchronisation settings to maximise your benefits and enhance your online presence. Take action now to avoid missing out on valuable opportunities!","ctaContent":"Start the configuration"},"ONBOARDING_INCOMPLETE":{"message":"It appears that you have not finalised your configuration with {link}PS Marketing with Google{endLink}. This may result in limited functionality and missed opportunities. To ensure that you are fully set up and able to take advantage of all available features, please complete the configuration process as soon as possible.","ctaContent":"Finalise the configuration"}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(798)})();