mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-03-21 09:13:10 +00:00
545 lines
601 KiB
JavaScript
545 lines
601 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./default-D04kVd6K.js","./default-CmdaPMSp.css","./index-IqnSk473.js","./ExamConfigEditor-CRyGuPDY.js","./dataProvider-DoTVklvr.js","./serverRotation-4KSAQGdG.js","./VAlert-DXnPeL0N.js","./VAlert-D_OX1cfW.css","./VSkeletonLoader-DqGj7LY1.js","./VSkeletonLoader-C11ZEozu.css","./VTooltip-RQ1kRyyG.js","./VTooltip-D7EaNDeY.css","./VChip-DqGZjSbk.js","./VChip-Dmz_1Lnv.css","./VRow-C3PQhn4H.js","./VTextField-DeqXRftv.js","./VTextField-D1VSzmed.css","./VTextarea-BgEmJCmH.js","./VTextarea-_xVwaw_z.css","./VSwitch-hW7KdHpG.js","./VSwitch-C87GkfUP.css","./filter-DEIeMa9Y.js","./VCheckboxBtn-CnFc-Zp2.js","./filter-DEjKrR5R.css","./VSheet-CaBw5994.js","./VSheet-DW_b51tO.css","./ExamConfigEditor-Ckglhw5E.css","./socketClient-SZaXjpAC.js","./VCombobox-BR2Wun8o.js","./VAppBarTitle-CXHg5YlB.js","./VAppBarTitle-DHaTV8xv.css","./VCombobox-BLfr31LE.css","./deviceEvents-CHwiICRA.js","./VPagination-BYCScF4v.js","./VPagination-DNe_r2rg.css","./VContainer-ChmPF_Cc.js","./VForm-p_PlCn_t.js","./VExpansionPanels-42RQvAx6.js","./VExpansionPanels-kEj4ZJQK.css","./index-CuoHvzZv.css","./404-BxejNl3W.js","./authorize-DrQd2t0N.js","./CacheManagement-Cy1DxUGk.js","./cses2wakeup-Cgt6H-Ka.js","./VTabsWindowItem-B5jFIYnE.js","./VTabsWindowItem-DsCcWpt1.css","./cses2wakeup-V9ZvMok7.css","./debug-BAYtyZE1.js","./debug-CbS14biG.css","./debug-init-Bxo1OUw2.js","./debug-socket-BTsvV0tt.js","./_id_-CbB3l-yw.js","./examschedule-Brajg9r6.js","./examschedule-CU_Gxm4i.css","./index-VU08wDOe.js","./_id_-C8vlKyL8.js","./settings-NykJBnE0.js","./settings-BuoTKm8j.css","./socket-debugger-CdpNWnZK.js","./socket-debugger-ykBk0O32.css"])))=>i.map(i=>d[i]);
|
||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const kw="modulepreload",Iw=function(e,t){return new URL(e,t).href},sp={},yt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=Iw(l,r),l in sp)return;sp[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===l&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":kw,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/**
|
||
* @vue/shared v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function cf(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ue={},ii=[],Vn=()=>{},py=()=>!1,il=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),lf=e=>e.startsWith("onUpdate:"),dt=Object.assign,uf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xw=Object.prototype.hasOwnProperty,Be=(e,t)=>xw.call(e,t),fe=Array.isArray,oi=e=>ea(e)==="[object Map]",my=e=>ea(e)==="[object Set]",ip=e=>ea(e)==="[object Date]",ve=e=>typeof e=="function",rt=e=>typeof e=="string",En=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",gy=e=>(De(e)||ve(e))&&ve(e.then)&&ve(e.catch),vy=Object.prototype.toString,ea=e=>vy.call(e),Rw=e=>ea(e).slice(8,-1),yy=e=>ea(e)==="[object Object]",ol=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,uo=cf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),al=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Aw=/-\w/g,$t=al(e=>e.replace(Aw,t=>t.slice(1).toUpperCase())),Mw=/\B([A-Z])/g,jr=al(e=>e.replace(Mw,"-$1").toLowerCase()),Oi=al(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=al(e=>e?`on${Oi(e)}`:""),Or=(e,t)=>!Object.is(e,t),Ka=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_y=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},df=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pw=e=>{const t=rt(e)?Number(e):NaN;return isNaN(t)?e:t};let op;const cl=()=>op||(op=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xe(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=rt(r)?Dw(r):Xe(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(rt(e)||De(e))return e}const Ow=/;(?![^(]*\))/g,Lw=/:([^]+)/,Nw=/\/\*[^]*?\*\//g;function Dw(e){const t={};return e.replace(Nw,"").split(Ow).forEach(n=>{if(n){const r=n.split(Lw);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Oe(e){let t="";if(rt(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const r=Oe(e[n]);r&&(t+=r+" ")}else if(De(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$w=cf(Fw);function by(e){return!!e||e===""}function Bw(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ff(e[r],t[r]);return n}function ff(e,t){if(e===t)return!0;let n=ip(e),r=ip(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=En(e),r=En(t),n||r)return e===t;if(n=fe(e),r=fe(t),n||r)return n&&r?Bw(e,t):!1;if(n=De(e),r=De(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(a&&!c||!a&&c||!ff(e[o],t[o]))return!1}}return String(e)===String(t)}const Sy=e=>!!(e&&e.__v_isRef===!0),bn=e=>rt(e)?e:e==null?"":fe(e)||De(e)&&(e.toString===vy||!ve(e.toString))?Sy(e)?bn(e.value):JSON.stringify(e,Ey,2):String(e),Ey=(e,t)=>Sy(t)?Ey(e,t.value):oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[jl(r,i)+" =>"]=s,n),{})}:my(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jl(n))}:En(t)?jl(t):De(t)&&!fe(t)&&!yy(t)?String(t):t,jl=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let It;class wy{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=It,!t&&It&&(this.index=(It.scopes||(It.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=It;try{return It=this,t()}finally{It=n}}}on(){++this._on===1&&(this.prevScope=It,It=this)}off(){this._on>0&&--this._on===0&&(It=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Es(e){return new wy(e)}function hf(){return It}function Ct(e,t=!1){It&&It.cleanups.push(e)}let Ke;const zl=new WeakSet;class Cy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,It&&It.active&&It.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zl.has(this)&&(zl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ky(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ap(this),Iy(this);const t=Ke,n=Sn;Ke=this,Sn=!0;try{return this.fn()}finally{xy(this),Ke=t,Sn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)gf(t);this.deps=this.depsTail=void 0,ap(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qu(this)&&this.run()}get dirty(){return qu(this)}}let Ty=0,fo,ho;function ky(e,t=!1){if(e.flags|=8,t){e.next=ho,ho=e;return}e.next=fo,fo=e}function pf(){Ty++}function mf(){if(--Ty>0)return;if(ho){let t=ho;for(ho=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fo;){let t=fo;for(fo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Iy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xy(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),gf(r),Hw(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function qu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ry(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ry(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xo)||(e.globalVersion=xo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qu(e))))return;e.flags|=2;const t=e.dep,n=Ke,r=Sn;Ke=e,Sn=!0;try{Iy(e);const s=e.fn(e._value);(t.version===0||Or(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ke=n,Sn=r,xy(e),e.flags&=-3}}function gf(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)gf(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Hw(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Sn=!0;const Ay=[];function ir(){Ay.push(Sn),Sn=!1}function or(){const e=Ay.pop();Sn=e===void 0?!0:e}function ap(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let xo=0;class Vw{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vf{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ke||!Sn||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new Vw(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,My(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=r)}return n}trigger(t){this.version++,xo++,this.notify(t)}notify(t){pf();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{mf()}}}function My(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)My(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _c=new WeakMap,hs=Symbol(""),Gu=Symbol(""),Ro=Symbol("");function xt(e,t,n){if(Sn&&Ke){let r=_c.get(e);r||_c.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new vf),s.map=r,s.key=n),s.track()}}function Jn(e,t,n,r,s,i){const o=_c.get(e);if(!o){xo++;return}const a=c=>{c&&c.trigger()};if(pf(),t==="clear")o.forEach(a);else{const c=fe(e),l=c&&ol(n);if(c&&n==="length"){const d=Number(r);o.forEach((u,f)=>{(f==="length"||f===Ro||!En(f)&&f>=d)&&a(u)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(Ro)),t){case"add":c?l&&a(o.get("length")):(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"delete":c||(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"set":oi(e)&&a(o.get(hs));break}}mf()}function Uw(e,t){const n=_c.get(e);return n&&n.get(t)}function Fs(e){const t=de(e);return t===e?t:(xt(t,"iterate",Ro),en(e)?t:t.map(wn))}function ll(e){return xt(e=de(e),"iterate",Ro),e}function kr(e,t){return ar(e)?pi(Qn(e)?wn(t):t):wn(t)}const Ww={__proto__:null,[Symbol.iterator](){return ql(this,Symbol.iterator,e=>kr(this,e))},concat(...e){return Fs(this).concat(...e.map(t=>fe(t)?Fs(t):t))},entries(){return ql(this,"entries",e=>(e[1]=kr(this,e[1]),e))},every(e,t){return jn(this,"every",e,t,void 0,arguments)},filter(e,t){return jn(this,"filter",e,t,n=>n.map(r=>kr(this,r)),arguments)},find(e,t){return jn(this,"find",e,t,n=>kr(this,n),arguments)},findIndex(e,t){return jn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jn(this,"findLast",e,t,n=>kr(this,n),arguments)},findLastIndex(e,t){return jn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gl(this,"includes",e)},indexOf(...e){return Gl(this,"indexOf",e)},join(e){return Fs(this).join(e)},lastIndexOf(...e){return Gl(this,"lastIndexOf",e)},map(e,t){return jn(this,"map",e,t,void 0,arguments)},pop(){return Zi(this,"pop")},push(...e){return Zi(this,"push",e)},reduce(e,...t){return cp(this,"reduce",e,t)},reduceRight(e,...t){return cp(this,"reduceRight",e,t)},shift(){return Zi(this,"shift")},some(e,t){return jn(this,"some",e,t,void 0,arguments)},splice(...e){return Zi(this,"splice",e)},toReversed(){return Fs(this).toReversed()},toSorted(e){return Fs(this).toSorted(e)},toSpliced(...e){return Fs(this).toSpliced(...e)},unshift(...e){return Zi(this,"unshift",e)},values(){return ql(this,"values",e=>kr(this,e))}};function ql(e,t,n){const r=ll(e),s=r[t]();return r!==e&&!en(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const jw=Array.prototype;function jn(e,t,n,r,s,i){const o=ll(e),a=o!==e&&!en(e),c=o[t];if(c!==jw[t]){const u=c.apply(e,i);return a?wn(u):u}let l=n;o!==e&&(a?l=function(u,f){return n.call(this,kr(e,u),f,e)}:n.length>2&&(l=function(u,f){return n.call(this,u,f,e)}));const d=c.call(o,l,r);return a&&s?s(d):d}function cp(e,t,n,r){const s=ll(e);let i=n;return s!==e&&(en(e)?n.length>3&&(i=function(o,a,c){return n.call(this,o,a,c,e)}):i=function(o,a,c){return n.call(this,o,kr(e,a),c,e)}),s[t](i,...r)}function Gl(e,t,n){const r=de(e);xt(r,"iterate",Ro);const s=r[t](...n);return(s===-1||s===!1)&&ul(n[0])?(n[0]=de(n[0]),r[t](...n)):s}function Zi(e,t,n=[]){ir(),pf();const r=de(e)[t].apply(e,n);return mf(),or(),r}const zw=cf("__proto__,__v_isRef,__isVue"),Py=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En));function qw(e){En(e)||(e=String(e));const t=de(this);return xt(t,"has",e),t.hasOwnProperty(e)}class Oy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?n1:Fy:i?Dy:Ny).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=fe(t);if(!s){let c;if(o&&(c=Ww[n]))return c;if(n==="hasOwnProperty")return qw}const a=Reflect.get(t,n,Je(t)?t:r);if((En(n)?Py.has(n):zw(n))||(s||xt(t,"get",n),i))return a;if(Je(a)){const c=o&&ol(n)?a:a.value;return s&&De(c)?hi(c):c}return De(a)?s?hi(a):pt(a):a}}class Ly extends Oy{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=fe(t)&&ol(n);if(!this._isShallow){const l=ar(i);if(!en(r)&&!ar(r)&&(i=de(i),r=de(r)),!o&&Je(i)&&!Je(r))return l||(i.value=r),!0}const a=o?Number(n)<t.length:Be(t,n),c=Reflect.set(t,n,r,Je(t)?t:s);return t===de(s)&&(a?Or(r,i)&&Jn(t,"set",n,r):Jn(t,"add",n,r)),c}deleteProperty(t,n){const r=Be(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Jn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!En(n)||!Py.has(n))&&xt(t,"has",n),r}ownKeys(t){return xt(t,"iterate",fe(t)?"length":hs),Reflect.ownKeys(t)}}class Gw extends Oy{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Kw=new Ly,Yw=new Gw,Xw=new Ly(!0);const Ku=e=>e,Ia=e=>Reflect.getPrototypeOf(e);function Jw(e,t,n){return function(...r){const s=this.__v_raw,i=de(s),o=oi(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=s[e](...r),d=n?Ku:t?pi:wn;return!t&&xt(i,"iterate",c?Gu:hs),dt(Object.create(l),{next(){const{value:u,done:f}=l.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}}})}}function xa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zw(e,t){const n={get(s){const i=this.__v_raw,o=de(i),a=de(s);e||(Or(s,a)&&xt(o,"get",s),xt(o,"get",a));const{has:c}=Ia(o),l=t?Ku:e?pi:wn;if(c.call(o,s))return l(i.get(s));if(c.call(o,a))return l(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&xt(de(s),"iterate",hs),s.size},has(s){const i=this.__v_raw,o=de(i),a=de(s);return e||(Or(s,a)&&xt(o,"has",s),xt(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,c=de(a),l=t?Ku:e?pi:wn;return!e&&xt(c,"iterate",hs),a.forEach((d,u)=>s.call(i,l(d),l(u),o))}};return dt(n,e?{add:xa("add"),set:xa("set"),delete:xa("delete"),clear:xa("clear")}:{add(s){!t&&!en(s)&&!ar(s)&&(s=de(s));const i=de(this);return Ia(i).has.call(i,s)||(i.add(s),Jn(i,"add",s,s)),this},set(s,i){!t&&!en(i)&&!ar(i)&&(i=de(i));const o=de(this),{has:a,get:c}=Ia(o);let l=a.call(o,s);l||(s=de(s),l=a.call(o,s));const d=c.call(o,s);return o.set(s,i),l?Or(i,d)&&Jn(o,"set",s,i):Jn(o,"add",s,i),this},delete(s){const i=de(this),{has:o,get:a}=Ia(i);let c=o.call(i,s);c||(s=de(s),c=o.call(i,s)),a&&a.call(i,s);const l=i.delete(s);return c&&Jn(i,"delete",s,void 0),l},clear(){const s=de(this),i=s.size!==0,o=s.clear();return i&&Jn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Jw(s,e,t)}),n}function yf(e,t){const n=Zw(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Be(n,s)&&s in r?n:r,s,i)}const Qw={get:yf(!1,!1)},e1={get:yf(!1,!0)},t1={get:yf(!0,!1)};const Ny=new WeakMap,Dy=new WeakMap,Fy=new WeakMap,n1=new WeakMap;function r1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function s1(e){return e.__v_skip||!Object.isExtensible(e)?0:r1(Rw(e))}function pt(e){return ar(e)?e:_f(e,!1,Kw,Qw,Ny)}function $y(e){return _f(e,!1,Xw,e1,Dy)}function hi(e){return _f(e,!0,Yw,t1,Fy)}function _f(e,t,n,r,s){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s1(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Qn(e){return ar(e)?Qn(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function en(e){return!!(e&&e.__v_isShallow)}function ul(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function bf(e){return!Be(e,"__v_skip")&&Object.isExtensible(e)&&_y(e,"__v_skip",!0),e}const wn=e=>De(e)?pt(e):e,pi=e=>De(e)?hi(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function we(e){return By(e,!1)}function be(e){return By(e,!0)}function By(e,t){return Je(e)?e:new i1(e,t)}class i1{constructor(t,n){this.dep=new vf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:wn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||en(t)||ar(t);t=r?t:de(t),Or(t,n)&&(this._rawValue=t,this._value=r?t:wn(t),this.dep.trigger())}}function Ut(e){return Je(e)?e.value:e}function bt(e){return ve(e)?e():Ut(e)}const o1={get:(e,t,n)=>t==="__v_raw"?e:Ut(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Je(s)&&!Je(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Hy(e){return Qn(e)?e:new Proxy(e,o1)}function Sf(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=Vy(e,n);return t}class a1{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=de(t);let s=!0,i=t;if(!fe(t)||!ol(String(n)))do s=!ul(i)||en(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Ut(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Je(this._raw[this._key])){const n=this._object[this._key];if(Je(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Uw(this._raw,this._key)}}class c1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ee(e,t,n){return Je(e)?e:ve(e)?new c1(e):De(e)&&arguments.length>1?Vy(e,t,n):we(e)}function Vy(e,t,n){return new a1(e,t,n)}class l1{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new vf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return ky(this,!0),!0}get value(){const t=this.dep.track();return Ry(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function u1(e,t,n=!1){let r,s;return ve(e)?r=e:(r=e.get,s=e.set),new l1(r,s,n)}const Ra={},bc=new WeakMap;let rs;function d1(e,t=!1,n=rs){if(n){let r=bc.get(n);r||bc.set(n,r=[]),r.push(e)}}function f1(e,t,n=Ue){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=n,l=S=>s?S:en(S)||s===!1||s===0?Zn(S,1):Zn(S);let d,u,f,h,p=!1,m=!1;if(Je(e)?(u=()=>e.value,p=en(e)):Qn(e)?(u=()=>l(e),p=!0):fe(e)?(m=!0,p=e.some(S=>Qn(S)||en(S)),u=()=>e.map(S=>{if(Je(S))return S.value;if(Qn(S))return l(S);if(ve(S))return c?c(S,2):S()})):ve(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){ir();try{f()}finally{or()}}const S=rs;rs=d;try{return c?c(e,3,[h]):e(h)}finally{rs=S}}:u=Vn,t&&s){const S=u,M=s===!0?1/0:s;u=()=>Zn(S(),M)}const y=hf(),g=()=>{d.stop(),y&&y.active&&uf(y.effects,d)};if(i&&t){const S=t;t=(...M)=>{S(...M),g()}}let v=m?new Array(e.length).fill(Ra):Ra;const _=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const M=d.run();if(s||p||(m?M.some((R,E)=>Or(R,v[E])):Or(M,v))){f&&f();const R=rs;rs=d;try{const E=[M,v===Ra?void 0:m&&v[0]===Ra?[]:v,h];v=M,c?c(t,3,E):t(...E)}finally{rs=R}}}else d.run()};return a&&a(_),d=new Cy(u),d.scheduler=o?()=>o(_,!1):_,h=S=>d1(S,!1,d),f=d.onStop=()=>{const S=bc.get(d);if(S){if(c)c(S,4);else for(const M of S)M();bc.delete(d)}},t?r?_(!0):v=d.run():o?o(_.bind(null,!0),!0):d.run(),g.pause=d.pause.bind(d),g.resume=d.resume.bind(d),g.stop=g,g}function Zn(e,t=1/0,n){if(t<=0||!De(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Je(e))Zn(e.value,t,n);else if(fe(e))for(let r=0;r<e.length;r++)Zn(e[r],t,n);else if(my(e)||oi(e))e.forEach(r=>{Zn(r,t,n)});else if(yy(e)){for(const r in e)Zn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Zn(e[r],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function ta(e,t,n,r){try{return r?e(...r):e()}catch(s){dl(s,t,n)}}function Cn(e,t,n,r){if(ve(e)){const s=ta(e,t,n,r);return s&&gy(s)&&s.catch(i=>{dl(i,t,n)}),s}if(fe(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Cn(e[i],t,n,r));return s}}function dl(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ue;if(t){let a=t.parent;const c=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,c,l)===!1)return}a=a.parent}if(i){ir(),ta(i,null,10,[e,c,l]),or();return}}h1(e,n,s,r,o)}function h1(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Dt=[];let Pn=-1;const ai=[];let Ir=null,qs=0;const Uy=Promise.resolve();let Sc=null;function vt(e){const t=Sc||Uy;return e?t.then(this?e.bind(this):e):t}function p1(e){let t=Pn+1,n=Dt.length;for(;t<n;){const r=t+n>>>1,s=Dt[r],i=Ao(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Ef(e){if(!(e.flags&1)){const t=Ao(e),n=Dt[Dt.length-1];!n||!(e.flags&2)&&t>=Ao(n)?Dt.push(e):Dt.splice(p1(t),0,e),e.flags|=1,Wy()}}function Wy(){Sc||(Sc=Uy.then(zy))}function m1(e){fe(e)?ai.push(...e):Ir&&e.id===-1?Ir.splice(qs+1,0,e):e.flags&1||(ai.push(e),e.flags|=1),Wy()}function lp(e,t,n=Pn+1){for(;n<Dt.length;n++){const r=Dt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Dt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function jy(e){if(ai.length){const t=[...new Set(ai)].sort((n,r)=>Ao(n)-Ao(r));if(ai.length=0,Ir){Ir.push(...t);return}for(Ir=t,qs=0;qs<Ir.length;qs++){const n=Ir[qs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ir=null,qs=0}}const Ao=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zy(e){try{for(Pn=0;Pn<Dt.length;Pn++){const t=Dt[Pn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ta(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pn<Dt.length;Pn++){const t=Dt[Pn];t&&(t.flags&=-2)}Pn=-1,Dt.length=0,jy(),Sc=null,(Dt.length||ai.length)&&zy()}}let St=null,qy=null;function Ec(e){const t=St;return St=e,qy=e&&e.type.__scopeId||null,t}function gt(e,t=St,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Tc(-1);const i=Ec(t);let o;try{o=e(...s)}finally{Ec(i),r._d&&Tc(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ws(e,t){if(St===null)return e;const n=vl(St),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,c=Ue]=t[s];i&&(ve(i)&&(i={mounted:i,updated:i}),i.deep&&Zn(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function Zr(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let c=a.dir[r];c&&(ir(),Cn(c,n,8,[e.el,a,e,t]),or())}}function Mt(e,t){if(Rt){let n=Rt.provides;const r=Rt.parent&&Rt.parent.provides;r===n&&(n=Rt.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=Li();if(r||ps){let s=ps?ps._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ve(t)?t.call(r&&r.proxy):t}}function g1(){return!!(Li()||ps)}const v1=Symbol.for("v-scx"),y1=()=>Le(v1);function hn(e,t){return wf(e,null,t)}function Se(e,t,n){return wf(e,t,n)}function wf(e,t,n=Ue){const{immediate:r,deep:s,flush:i,once:o}=n,a=dt({},n),c=t&&r||!t&&i!=="post";let l;if(Oo){if(i==="sync"){const h=y1();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=Vn,h.resume=Vn,h.pause=Vn,h}}const d=Rt;a.call=(h,p,m)=>Cn(h,d,p,m);let u=!1;i==="post"?a.scheduler=h=>{kt(h,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Ef(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=f1(e,t,a);return Oo&&(l?l.push(f):c&&f()),f}function _1(e,t,n){const r=this.proxy,s=rt(e)?e.includes(".")?Gy(r,e):()=>r[e]:e.bind(r,r);let i;ve(t)?i=t:(i=t.handler,n=t);const o=ra(this),a=wf(s,i.bind(r),n);return o(),a}function Gy(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Ky=Symbol("_vte"),Yy=e=>e.__isTeleport,po=e=>e&&(e.disabled||e.disabled===""),up=e=>e&&(e.defer||e.defer===""),dp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,fp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yu=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},Xy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,l){const{mc:d,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:y}}=l,g=po(t.props);let{shapeFlag:v,children:_,dynamicChildren:S}=t;if(e==null){const M=t.el=m(""),R=t.anchor=m("");h(M,n,r),h(R,n,r);const E=(k,A)=>{v&16&&d(_,k,A,s,i,o,a,c)},C=()=>{const k=t.target=Yu(t.props,p),A=Xu(k,t,m,h);k&&(o!=="svg"&&dp(k)?o="svg":o!=="mathml"&&fp(k)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(k),g||(E(k,A),Ya(t,!1)))};g&&(E(n,R),Ya(t,!0)),up(t.props)?(t.el.__isMounted=!1,kt(()=>{C(),delete t.el.__isMounted},i)):C()}else{if(up(t.props)&&e.el.__isMounted===!1){kt(()=>{Xy.process(e,t,n,r,s,i,o,a,c,l)},i);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,R=t.target=e.target,E=t.targetAnchor=e.targetAnchor,C=po(e.props),k=C?n:R,A=C?M:E;if(o==="svg"||dp(R)?o="svg":(o==="mathml"||fp(R))&&(o="mathml"),S?(f(e.dynamicChildren,S,k,s,i,o,a),xf(e,t,!0)):c||u(e,t,k,A,s,i,o,a,!1),g)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Aa(t,n,M,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=Yu(t.props,p);O&&Aa(t,O,null,l,0)}else C&&Aa(t,R,E,l,1);Ya(t,g)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:d,target:u,props:f}=e;if(u&&(s(l),s(d)),i&&s(c),o&16){const h=i||!po(f);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:Aa,hydrate:b1};function Aa(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:c,children:l,props:d}=e,u=i===2;if(u&&r(o,t,n),(!u||po(d))&&c&16)for(let f=0;f<l.length;f++)s(l[f],t,n,2);u&&r(a,t,n)}function b1(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:l,createText:d}},u){function f(y,g){let v=g;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,y._lpa=t.targetAnchor&&o(t.targetAnchor);break}}v=o(v)}}function h(y,g){g.anchor=u(o(y),g,a(y),n,r,s,i)}const p=t.target=Yu(t.props,c),m=po(t.props);if(p){const y=p._lpa||p.firstChild;t.shapeFlag&16&&(m?(h(e,t),f(p,y),t.targetAnchor||Xu(p,t,d,l,a(e)===p?e:null)):(t.anchor=o(e),f(p,y),t.targetAnchor||Xu(p,t,d,l),u(y&&o(y),t,p,n,r,s,i))),Ya(t,m)}else m&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const S1=Xy;function Ya(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Xu(e,t,n,r,s=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[Ky]=o,e&&(r(i,e,s),r(o,e,s)),o}const On=Symbol("_leaveCb"),Qi=Symbol("_enterCb");function Jy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zr(()=>{e.isMounted=!0}),kn(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Zy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},Qy=e=>{const t=e.subTree;return t.component?Qy(t.component):t},E1={name:"BaseTransition",props:Zy,setup(e,{slots:t}){const n=Li(),r=Jy();return()=>{const s=t.default&&Cf(t.default(),!0);if(!s||!s.length)return;const i=e_(s),o=de(e),{mode:a}=o;if(r.isLeaving)return Kl(i);const c=hp(i);if(!c)return Kl(i);let l=Mo(c,o,r,n,u=>l=u);c.type!==_t&&Cs(c,l);let d=n.subTree&&hp(n.subTree);if(d&&d.type!==_t&&!os(d,c)&&Qy(n).type!==_t){let u=Mo(d,o,r,n);if(Cs(d,u),a==="out-in"&&c.type!==_t)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},Kl(i);a==="in-out"&&c.type!==_t?u.delayLeave=(f,h,p)=>{const m=t_(r,d);m[String(d.key)]=d,f[On]=()=>{h(),f[On]=void 0,delete l.delayedLeave,d=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function e_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}const w1=E1;function t_(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 Mo(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:v,onAppearCancelled:_}=t,S=String(e.key),M=t_(n,e),R=(k,A)=>{k&&Cn(k,r,9,A)},E=(k,A)=>{const O=A[1];R(k,A),fe(k)?k.every(T=>T.length<=1)&&O():k.length<=1&&O()},C={mode:o,persisted:a,beforeEnter(k){let A=c;if(!n.isMounted)if(i)A=y||c;else return;k[On]&&k[On](!0);const O=M[S];O&&os(e,O)&&O.el[On]&&O.el[On](),R(A,[k])},enter(k){let A=l,O=d,T=u;if(!n.isMounted)if(i)A=g||l,O=v||d,T=_||u;else return;let P=!1;k[Qi]=z=>{P||(P=!0,z?R(T,[k]):R(O,[k]),C.delayedLeave&&C.delayedLeave(),k[Qi]=void 0)};const N=k[Qi].bind(null,!1);A?E(A,[k,N]):N()},leave(k,A){const O=String(e.key);if(k[Qi]&&k[Qi](!0),n.isUnmounting)return A();R(f,[k]);let T=!1;k[On]=N=>{T||(T=!0,A(),N?R(m,[k]):R(p,[k]),k[On]=void 0,M[O]===e&&delete M[O])};const P=k[On].bind(null,!1);M[O]=e,h?E(h,[k,P]):P()},clone(k){const A=Mo(k,t,n,r,s);return s&&s(A),A}};return C}function Kl(e){if(hl(e))return e=$r(e),e.children=null,e}function hp(e){if(!hl(e))return Yy(e.type)&&e.children?e_(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ve(n.default))return n.default()}}function Cs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cf(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Qe?(o.patchFlag&128&&s++,r=r.concat(Cf(o.children,t,a))):(t||o.type!==_t)&&r.push(a!=null?$r(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function fl(e,t){return ve(e)?dt({name:e.name},t,{setup:e}):e}function n_(){const e=Li();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function r_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pp(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const wc=new WeakMap;function mo(e,t,n,r,s=!1){if(fe(e)){e.forEach((m,y)=>mo(m,t&&(fe(t)?t[y]:t),n,r,s));return}if(ci(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mo(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?vl(r.component):r.el,o=s?null:i,{i:a,r:c}=e,l=t&&t.r,d=a.refs===Ue?a.refs={}:a.refs,u=a.setupState,f=de(u),h=u===Ue?py:m=>pp(d,m)?!1:Be(f,m),p=(m,y)=>!(y&&pp(d,y));if(l!=null&&l!==c){if(mp(t),rt(l))d[l]=null,h(l)&&(u[l]=null);else if(Je(l)){const m=t;p(l,m.k)&&(l.value=null),m.k&&(d[m.k]=null)}}if(ve(c))ta(c,a,12,[o,d]);else{const m=rt(c),y=Je(c);if(m||y){const g=()=>{if(e.f){const v=m?h(c)?u[c]:d[c]:p()||!e.k?c.value:d[e.k];if(s)fe(v)&&uf(v,i);else if(fe(v))v.includes(i)||v.push(i);else if(m)d[c]=[i],h(c)&&(u[c]=d[c]);else{const _=[i];p(c,e.k)&&(c.value=_),e.k&&(d[e.k]=_)}}else m?(d[c]=o,h(c)&&(u[c]=o)):y&&(p(c,e.k)&&(c.value=o),e.k&&(d[e.k]=o))};if(o){const v=()=>{g(),wc.delete(e)};v.id=-1,wc.set(e,v),kt(v,n)}else mp(e),g()}}}function mp(e){const t=wc.get(e);t&&(t.flags|=8,wc.delete(e))}cl().requestIdleCallback;cl().cancelIdleCallback;const ci=e=>!!e.type.__asyncLoader,hl=e=>e.type.__isKeepAlive;function s_(e,t){o_(e,"a",t)}function i_(e,t){o_(e,"da",t)}function o_(e,t,n=Rt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(pl(t,r,n),n){let s=n.parent;for(;s&&s.parent;)hl(s.parent.vnode)&&C1(r,t,n,s),s=s.parent}}function C1(e,t,n,r){const s=pl(t,e,r,!0);a_(()=>{uf(r[t],s)},n)}function pl(e,t,n=Rt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ir();const a=ra(n),c=Cn(t,n,e,o);return a(),or(),c});return r?s.unshift(i):s.push(i),i}}const mr=e=>(t,n=Rt)=>{(!Oo||e==="sp")&&pl(e,(...r)=>t(...r),n)},ml=mr("bm"),zr=mr("m"),T1=mr("bu"),Tf=mr("u"),kn=mr("bum"),a_=mr("um"),k1=mr("sp"),I1=mr("rtg"),x1=mr("rtc");function R1(e,t=Rt){pl("ec",e,t)}const c_="components";function A1(e,t){return d_(c_,e,!0,t)||e}const l_=Symbol.for("v-ndc");function u_(e){return rt(e)?d_(c_,e,!1)||e:e||l_}function d_(e,t,n=!0,r=!1){const s=St||Rt;if(s){const i=s.type;{const a=pC(i,!1);if(a&&(a===t||a===$t(t)||a===Oi($t(t))))return i}const o=gp(s[e]||i[e],t)||gp(s.appContext[e],t);return!o&&r?i:o}}function gp(e,t){return e&&(e[t]||e[$t(t)]||e[Oi($t(t))])}function M1(e,t,n,r){let s;const i=n,o=fe(e);if(o||rt(e)){const a=o&&Qn(e);let c=!1,l=!1;a&&(c=!en(e),l=ar(e),e=ll(e)),s=new Array(e.length);for(let d=0,u=e.length;d<u;d++)s[d]=t(c?l?pi(wn(e[d])):wn(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(De(e))if(e[Symbol.iterator])s=Array.from(e,(a,c)=>t(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const d=a[c];s[c]=t(e[d],d,c,i)}}else s=[];return s}function t4(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(fe(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function n4(e,t,n={},r,s){if(St.ce||St.parent&&ci(St.parent)&&St.parent.ce){const l=Object.keys(n).length>0;return t!=="default"&&(n.name=t),cn(),$n(Qe,null,[B("slot",n,r)],l?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),cn();const o=i&&f_(i(n)),a=n.key||o&&o.key,c=$n(Qe,{key:(a&&!En(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),c}function f_(e){return e.some(t=>mi(t)?!(t.type===_t||t.type===Qe&&!f_(t.children)):!0)?e:null}const Ju=e=>e?P_(e)?vl(e):Ju(e.parent):null,go=dt(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=>Ju(e.parent),$root:e=>Ju(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>p_(e),$forceUpdate:e=>e.f||(e.f=()=>{Ef(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>_1.bind(e)}),Yl=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Be(e,t),P1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Yl(r,t))return o[t]=1,r[t];if(s!==Ue&&Be(s,t))return o[t]=2,s[t];if(Be(i,t))return o[t]=3,i[t];if(n!==Ue&&Be(n,t))return o[t]=4,n[t];Zu&&(o[t]=0)}}const l=go[t];let d,u;if(l)return t==="$attrs"&&xt(e.attrs,"get",""),l(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ue&&Be(n,t))return o[t]=4,n[t];if(u=c.config.globalProperties,Be(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Yl(s,t)?(s[t]=n,!0):r!==Ue&&Be(r,t)?(r[t]=n,!0):Be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let c;return!!(n[a]||e!==Ue&&a[0]!=="$"&&Be(e,a)||Yl(t,a)||Be(i,a)||Be(r,a)||Be(go,a)||Be(s.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vp(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zu=!0;function O1(e){const t=p_(e),n=e.proxy,r=e.ctx;Zu=!1,t.beforeCreate&&yp(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:d,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:y,beforeDestroy:g,beforeUnmount:v,destroyed:_,unmounted:S,render:M,renderTracked:R,renderTriggered:E,errorCaptured:C,serverPrefetch:k,expose:A,inheritAttrs:O,components:T,directives:P,filters:N}=t;if(l&&L1(l,r,null),o)for(const q in o){const D=o[q];ve(D)&&(r[q]=D.bind(n))}if(s){const q=s.call(n,n);De(q)&&(e.data=pt(q))}if(Zu=!0,i)for(const q in i){const D=i[q],re=ve(D)?D.bind(n,n):ve(D.get)?D.get.bind(n,n):Vn,U=!ve(D)&&ve(D.set)?D.set.bind(n):Vn,ie=j({get:re,set:U});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>ie.value,set:ce=>ie.value=ce})}if(a)for(const q in a)h_(a[q],r,n,q);if(c){const q=ve(c)?c.call(n):c;Reflect.ownKeys(q).forEach(D=>{Mt(D,q[D])})}d&&yp(d,e,"c");function X(q,D){fe(D)?D.forEach(re=>q(re.bind(n))):D&&q(D.bind(n))}if(X(ml,u),X(zr,f),X(T1,h),X(Tf,p),X(s_,m),X(i_,y),X(R1,C),X(x1,R),X(I1,E),X(kn,v),X(a_,S),X(k1,k),fe(A))if(A.length){const q=e.exposed||(e.exposed={});A.forEach(D=>{Object.defineProperty(q,D,{get:()=>n[D],set:re=>n[D]=re,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Vn&&(e.render=M),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),P&&(e.directives=P),k&&r_(e)}function L1(e,t,n=Vn){fe(e)&&(e=Qu(e));for(const r in e){const s=e[r];let i;De(s)?"default"in s?i=Le(s.from||r,s.default,!0):i=Le(s.from||r):i=Le(s),Je(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function yp(e,t,n){Cn(fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){let s=r.includes(".")?Gy(n,r):()=>n[r];if(rt(e)){const i=t[e];ve(i)&&Se(s,i)}else if(ve(e))Se(s,e.bind(n));else if(De(e))if(fe(e))e.forEach(i=>h_(i,t,n,r));else{const i=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(i)&&Se(s,i,e)}}function p_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>Cc(c,l,o,!0)),Cc(c,t,o)),De(t)&&i.set(t,c),c}function Cc(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Cc(e,i,n,!0),s&&s.forEach(o=>Cc(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=N1[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const N1={data:_p,props:bp,emits:bp,methods:ao,computed:ao,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:ao,directives:ao,watch:F1,provide:_p,inject:D1};function _p(e,t){return t?e?function(){return dt(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function D1(e,t){return ao(Qu(e),Qu(t))}function Qu(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ot(e,t){return e?[...new Set([].concat(e,t))]:t}function ao(e,t){return e?dt(Object.create(null),e,t):t}function bp(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:dt(Object.create(null),vp(e),vp(t??{})):t}function F1(e,t){if(!e)return t;if(!t)return e;const n=dt(Object.create(null),e);for(const r in t)n[r]=Ot(e[r],t[r]);return n}function m_(){return{app:null,config:{isNativeTag:py,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 $1=0;function B1(e,t){return function(r,s=null){ve(r)||(r=dt({},r)),s!=null&&!De(s)&&(s=null);const i=m_(),o=new WeakSet,a=[];let c=!1;const l=i.app={_uid:$1++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:gC,get config(){return i.config},set config(d){},use(d,...u){return o.has(d)||(d&&ve(d.install)?(o.add(d),d.install(l,...u)):ve(d)&&(o.add(d),d(l,...u))),l},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),l},component(d,u){return u?(i.components[d]=u,l):i.components[d]},directive(d,u){return u?(i.directives[d]=u,l):i.directives[d]},mount(d,u,f){if(!c){const h=l._ceVNode||B(r,s);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,d,f),c=!0,l._container=d,d.__vue_app__=l,vl(h.component)}},onUnmount(d){a.push(d)},unmount(){c&&(Cn(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(d,u){return i.provides[d]=u,l},runWithContext(d){const u=ps;ps=l;try{return d()}finally{ps=u}}};return l}}let ps=null;const H1=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$t(t)}Modifiers`]||e[`${jr(t)}Modifiers`];function V1(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ue;let s=n;const i=t.startsWith("update:"),o=i&&H1(r,t.slice(7));o&&(o.trim&&(s=n.map(d=>rt(d)?d.trim():d)),o.number&&(s=n.map(df)));let a,c=r[a=Wl(t)]||r[a=Wl($t(t))];!c&&i&&(c=r[a=Wl(jr(t))]),c&&Cn(c,e,6,s);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Cn(l,e,6,s)}}const U1=new WeakMap;function g_(e,t,n=!1){const r=n?U1:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ve(e)){const c=l=>{const d=g_(l,t,!0);d&&(a=!0,dt(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(De(e)&&r.set(e,null),null):(fe(i)?i.forEach(c=>o[c]=null):dt(o,i),De(e)&&r.set(e,o),o)}function gl(e,t){return!e||!il(t)?!1:(t=t.slice(2).replace(/Once$/,""),Be(e,t[0].toLowerCase()+t.slice(1))||Be(e,jr(t))||Be(e,t))}function Sp(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:l,renderCache:d,props:u,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,y=Ec(e);let g,v;try{if(n.shapeFlag&4){const S=s||r,M=S;g=Nn(l.call(M,S,d,u,h,f,p)),v=a}else{const S=t;g=Nn(S.length>1?S(u,{attrs:a,slots:o,emit:c}):S(u,null)),v=t.props?a:W1(a)}}catch(S){vo.length=0,dl(S,e,1),g=B(_t)}let _=g;if(v&&m!==!1){const S=Object.keys(v),{shapeFlag:M}=_;S.length&&M&7&&(i&&S.some(lf)&&(v=j1(v,i)),_=$r(_,v,!1,!0))}return n.dirs&&(_=$r(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(_,n.transition),g=_,Ec(y),g}const W1=e=>{let t;for(const n in e)(n==="class"||n==="style"||il(n))&&((t||(t={}))[n]=e[n]);return t},j1=(e,t)=>{const n={};for(const r in e)(!lf(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function z1(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Ep(r,o,l):!!o;if(c&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const f=d[u];if(v_(o,r,f)&&!gl(l,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ep(r,o,l):!0:!!o;return!1}function Ep(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(v_(t,e,i)&&!gl(n,i))return!0}return!1}function v_(e,t,n){const r=e[n],s=t[n];return n==="style"&&De(r)&&De(s)?!ff(r,s):r!==s}function q1({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const y_={},__=()=>Object.create(y_),b_=e=>Object.getPrototypeOf(e)===y_;function G1(e,t,n,r=!1){const s={},i=__();e.propsDefaults=Object.create(null),S_(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:$y(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function K1(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=de(s),[c]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let f=d[u];if(gl(e.emitsOptions,f))continue;const h=t[f];if(c)if(Be(i,f))h!==i[f]&&(i[f]=h,l=!0);else{const p=$t(f);s[p]=ed(c,a,p,h,e,!1)}else h!==i[f]&&(i[f]=h,l=!0)}}}else{S_(e,t,s,i)&&(l=!0);let d;for(const u in a)(!t||!Be(t,u)&&((d=jr(u))===u||!Be(t,d)))&&(c?n&&(n[u]!==void 0||n[d]!==void 0)&&(s[u]=ed(c,a,u,void 0,e,!0)):delete s[u]);if(i!==a)for(const u in i)(!t||!Be(t,u))&&(delete i[u],l=!0)}l&&Jn(e.attrs,"set","")}function S_(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let c in t){if(uo(c))continue;const l=t[c];let d;s&&Be(s,d=$t(c))?!i||!i.includes(d)?n[d]=l:(a||(a={}))[d]=l:gl(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(i){const c=de(n),l=a||Ue;for(let d=0;d<i.length;d++){const u=i[d];n[u]=ed(s,c,u,l[u],e,!Be(l,u))}}return o}function ed(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Be(o,"default");if(a&&r===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&ve(c)){const{propsDefaults:l}=s;if(n in l)r=l[n];else{const d=ra(s);r=l[n]=c.call(null,t),d()}}else r=c;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===jr(n))&&(r=!0))}return r}const Y1=new WeakMap;function E_(e,t,n=!1){const r=n?Y1:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let c=!1;if(!ve(e)){const d=u=>{c=!0;const[f,h]=E_(u,t,!0);dt(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return De(e)&&r.set(e,ii),ii;if(fe(i))for(let d=0;d<i.length;d++){const u=$t(i[d]);wp(u)&&(o[u]=Ue)}else if(i)for(const d in i){const u=$t(d);if(wp(u)){const f=i[d],h=o[u]=fe(f)||ve(f)?{type:f}:dt({},f),p=h.type;let m=!1,y=!0;if(fe(p))for(let g=0;g<p.length;++g){const v=p[g],_=ve(v)&&v.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(y=!1)}else m=ve(p)&&p.name==="Boolean";h[0]=m,h[1]=y,(m||Be(h,"default"))&&a.push(u)}}const l=[o,a];return De(e)&&r.set(e,l),l}function wp(e){return e[0]!=="$"&&!uo(e)}const kf=e=>e==="_"||e==="_ctx"||e==="$stable",If=e=>fe(e)?e.map(Nn):[Nn(e)],X1=(e,t,n)=>{if(t._n)return t;const r=gt((...s)=>If(t(...s)),n);return r._c=!1,r},w_=(e,t,n)=>{const r=e._ctx;for(const s in e){if(kf(s))continue;const i=e[s];if(ve(i))t[s]=X1(s,i,r);else if(i!=null){const o=If(i);t[s]=()=>o}}},C_=(e,t)=>{const n=If(t);e.slots.default=()=>n},T_=(e,t,n)=>{for(const r in t)(n||!kf(r))&&(e[r]=t[r])},J1=(e,t,n)=>{const r=e.slots=__();if(e.vnode.shapeFlag&32){const s=t._;s?(T_(r,t,n),n&&_y(r,"_",s,!0)):w_(t,r)}else t&&C_(e,t)},Z1=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:T_(s,t,n):(i=!t.$stable,w_(t,s)),o=t}else t&&(C_(e,t),o={default:1});if(i)for(const a in s)!kf(a)&&o[a]==null&&delete s[a]},kt=rC;function Q1(e){return eC(e)}function eC(e,t){const n=cl();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:d,parentNode:u,nextSibling:f,setScopeId:h=Vn,insertStaticContent:p}=e,m=(b,w,I,L=null,$=null,F=null,G=void 0,Y=null,H=!!w.dynamicChildren)=>{if(b===w)return;b&&!os(b,w)&&(L=x(b),ce(b,$,F,!0),b=null),w.patchFlag===-2&&(H=!1,w.dynamicChildren=null);const{type:V,ref:Z,shapeFlag:Q}=w;switch(V){case na:y(b,w,I,L);break;case _t:g(b,w,I,L);break;case Jl:b==null&&v(w,I,L,G);break;case Qe:T(b,w,I,L,$,F,G,Y,H);break;default:Q&1?M(b,w,I,L,$,F,G,Y,H):Q&6?P(b,w,I,L,$,F,G,Y,H):(Q&64||Q&128)&&V.process(b,w,I,L,$,F,G,Y,H,ne)}Z!=null&&$?mo(Z,b&&b.ref,F,w||b,!w):Z==null&&b&&b.ref!=null&&mo(b.ref,null,F,b,!0)},y=(b,w,I,L)=>{if(b==null)r(w.el=a(w.children),I,L);else{const $=w.el=b.el;w.children!==b.children&&l($,w.children)}},g=(b,w,I,L)=>{b==null?r(w.el=c(w.children||""),I,L):w.el=b.el},v=(b,w,I,L)=>{[b.el,b.anchor]=p(b.children,w,I,L,b.el,b.anchor)},_=({el:b,anchor:w},I,L)=>{let $;for(;b&&b!==w;)$=f(b),r(b,I,L),b=$;r(w,I,L)},S=({el:b,anchor:w})=>{let I;for(;b&&b!==w;)I=f(b),s(b),b=I;s(w)},M=(b,w,I,L,$,F,G,Y,H)=>{if(w.type==="svg"?G="svg":w.type==="math"&&(G="mathml"),b==null)R(w,I,L,$,F,G,Y,H);else{const V=b.el&&b.el._isVueCE?b.el:null;try{V&&V._beginPatch(),k(b,w,$,F,G,Y,H)}finally{V&&V._endPatch()}}},R=(b,w,I,L,$,F,G,Y)=>{let H,V;const{props:Z,shapeFlag:Q,transition:oe,dirs:te}=b;if(H=b.el=o(b.type,F,Z&&Z.is,Z),Q&8?d(H,b.children):Q&16&&C(b.children,H,null,L,$,Xl(b,F),G,Y),te&&Zr(b,null,L,"created"),E(H,b,b.scopeId,G,L),Z){for(const qe in Z)qe!=="value"&&!uo(qe)&&i(H,qe,null,Z[qe],F,L);"value"in Z&&i(H,"value",null,Z.value,F),(V=Z.onVnodeBeforeMount)&&An(V,L,b)}te&&Zr(b,null,L,"beforeMount");const Ie=tC($,oe);Ie&&oe.beforeEnter(H),r(H,w,I),((V=Z&&Z.onVnodeMounted)||Ie||te)&&kt(()=>{V&&An(V,L,b),Ie&&oe.enter(H),te&&Zr(b,null,L,"mounted")},$)},E=(b,w,I,L,$)=>{if(I&&h(b,I),L)for(let F=0;F<L.length;F++)h(b,L[F]);if($){let F=$.subTree;if(w===F||x_(F.type)&&(F.ssContent===w||F.ssFallback===w)){const G=$.vnode;E(b,G,G.scopeId,G.slotScopeIds,$.parent)}}},C=(b,w,I,L,$,F,G,Y,H=0)=>{for(let V=H;V<b.length;V++){const Z=b[V]=Y?Xn(b[V]):Nn(b[V]);m(null,Z,w,I,L,$,F,G,Y)}},k=(b,w,I,L,$,F,G)=>{const Y=w.el=b.el;let{patchFlag:H,dynamicChildren:V,dirs:Z}=w;H|=b.patchFlag&16;const Q=b.props||Ue,oe=w.props||Ue;let te;if(I&&Qr(I,!1),(te=oe.onVnodeBeforeUpdate)&&An(te,I,w,b),Z&&Zr(w,b,I,"beforeUpdate"),I&&Qr(I,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&d(Y,""),V?A(b.dynamicChildren,V,Y,I,L,Xl(w,$),F):G||D(b,w,Y,null,I,L,Xl(w,$),F,!1),H>0){if(H&16)O(Y,Q,oe,I,$);else if(H&2&&Q.class!==oe.class&&i(Y,"class",null,oe.class,$),H&4&&i(Y,"style",Q.style,oe.style,$),H&8){const Ie=w.dynamicProps;for(let qe=0;qe<Ie.length;qe++){const He=Ie[qe],Bt=Q[He],Ht=oe[He];(Ht!==Bt||He==="value")&&i(Y,He,Bt,Ht,$,I)}}H&1&&b.children!==w.children&&d(Y,w.children)}else!G&&V==null&&O(Y,Q,oe,I,$);((te=oe.onVnodeUpdated)||Z)&&kt(()=>{te&&An(te,I,w,b),Z&&Zr(w,b,I,"updated")},L)},A=(b,w,I,L,$,F,G)=>{for(let Y=0;Y<w.length;Y++){const H=b[Y],V=w[Y],Z=H.el&&(H.type===Qe||!os(H,V)||H.shapeFlag&198)?u(H.el):I;m(H,V,Z,null,L,$,F,G,!0)}},O=(b,w,I,L,$)=>{if(w!==I){if(w!==Ue)for(const F in w)!uo(F)&&!(F in I)&&i(b,F,w[F],null,$,L);for(const F in I){if(uo(F))continue;const G=I[F],Y=w[F];G!==Y&&F!=="value"&&i(b,F,Y,G,$,L)}"value"in I&&i(b,"value",w.value,I.value,$)}},T=(b,w,I,L,$,F,G,Y,H)=>{const V=w.el=b?b.el:a(""),Z=w.anchor=b?b.anchor:a("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:te}=w;te&&(Y=Y?Y.concat(te):te),b==null?(r(V,I,L),r(Z,I,L),C(w.children||[],I,Z,$,F,G,Y,H)):Q>0&&Q&64&&oe&&b.dynamicChildren&&b.dynamicChildren.length===oe.length?(A(b.dynamicChildren,oe,I,$,F,G,Y),(w.key!=null||$&&w===$.subTree)&&xf(b,w,!0)):D(b,w,I,Z,$,F,G,Y,H)},P=(b,w,I,L,$,F,G,Y,H)=>{w.slotScopeIds=Y,b==null?w.shapeFlag&512?$.ctx.activate(w,I,L,G,H):N(w,I,L,$,F,G,H):z(b,w,H)},N=(b,w,I,L,$,F,G)=>{const Y=b.component=lC(b,L,$);if(hl(b)&&(Y.ctx.renderer=ne),uC(Y,!1,G),Y.asyncDep){if($&&$.registerDep(Y,X,G),!b.el){const H=Y.subTree=B(_t);g(null,H,w,I),b.placeholder=H.el}}else X(Y,b,w,I,$,F,G)},z=(b,w,I)=>{const L=w.component=b.component;if(z1(b,w,I))if(L.asyncDep&&!L.asyncResolved){q(L,w,I);return}else L.next=w,L.update();else w.el=b.el,L.vnode=w},X=(b,w,I,L,$,F,G)=>{const Y=()=>{if(b.isMounted){let{next:Q,bu:oe,u:te,parent:Ie,vnode:qe}=b;{const xn=k_(b);if(xn){Q&&(Q.el=qe.el,q(b,Q,G)),xn.asyncDep.then(()=>{kt(()=>{b.isUnmounted||V()},$)});return}}let He=Q,Bt;Qr(b,!1),Q?(Q.el=qe.el,q(b,Q,G)):Q=qe,oe&&Ka(oe),(Bt=Q.props&&Q.props.onVnodeBeforeUpdate)&&An(Bt,Ie,Q,qe),Qr(b,!0);const Ht=Sp(b),In=b.subTree;b.subTree=Ht,m(In,Ht,u(In.el),x(In),b,$,F),Q.el=Ht.el,He===null&&q1(b,Ht.el),te&&kt(te,$),(Bt=Q.props&&Q.props.onVnodeUpdated)&&kt(()=>An(Bt,Ie,Q,qe),$)}else{let Q;const{el:oe,props:te}=w,{bm:Ie,m:qe,parent:He,root:Bt,type:Ht}=b,In=ci(w);Qr(b,!1),Ie&&Ka(Ie),!In&&(Q=te&&te.onVnodeBeforeMount)&&An(Q,He,w),Qr(b,!0);{Bt.ce&&Bt.ce._hasShadowRoot()&&Bt.ce._injectChildStyle(Ht);const xn=b.subTree=Sp(b);m(null,xn,I,L,b,$,F),w.el=xn.el}if(qe&&kt(qe,$),!In&&(Q=te&&te.onVnodeMounted)){const xn=w;kt(()=>An(Q,He,xn),$)}(w.shapeFlag&256||He&&ci(He.vnode)&&He.vnode.shapeFlag&256)&&b.a&&kt(b.a,$),b.isMounted=!0,w=I=L=null}};b.scope.on();const H=b.effect=new Cy(Y);b.scope.off();const V=b.update=H.run.bind(H),Z=b.job=H.runIfDirty.bind(H);Z.i=b,Z.id=b.uid,H.scheduler=()=>Ef(Z),Qr(b,!0),V()},q=(b,w,I)=>{w.component=b;const L=b.vnode.props;b.vnode=w,b.next=null,K1(b,w.props,L,I),Z1(b,w.children,I),ir(),lp(b),or()},D=(b,w,I,L,$,F,G,Y,H=!1)=>{const V=b&&b.children,Z=b?b.shapeFlag:0,Q=w.children,{patchFlag:oe,shapeFlag:te}=w;if(oe>0){if(oe&128){U(V,Q,I,L,$,F,G,Y,H);return}else if(oe&256){re(V,Q,I,L,$,F,G,Y,H);return}}te&8?(Z&16&&Ve(V,$,F),Q!==V&&d(I,Q)):Z&16?te&16?U(V,Q,I,L,$,F,G,Y,H):Ve(V,$,F,!0):(Z&8&&d(I,""),te&16&&C(Q,I,L,$,F,G,Y,H))},re=(b,w,I,L,$,F,G,Y,H)=>{b=b||ii,w=w||ii;const V=b.length,Z=w.length,Q=Math.min(V,Z);let oe;for(oe=0;oe<Q;oe++){const te=w[oe]=H?Xn(w[oe]):Nn(w[oe]);m(b[oe],te,I,null,$,F,G,Y,H)}V>Z?Ve(b,$,F,!0,!1,Q):C(w,I,L,$,F,G,Y,H,Q)},U=(b,w,I,L,$,F,G,Y,H)=>{let V=0;const Z=w.length;let Q=b.length-1,oe=Z-1;for(;V<=Q&&V<=oe;){const te=b[V],Ie=w[V]=H?Xn(w[V]):Nn(w[V]);if(os(te,Ie))m(te,Ie,I,null,$,F,G,Y,H);else break;V++}for(;V<=Q&&V<=oe;){const te=b[Q],Ie=w[oe]=H?Xn(w[oe]):Nn(w[oe]);if(os(te,Ie))m(te,Ie,I,null,$,F,G,Y,H);else break;Q--,oe--}if(V>Q){if(V<=oe){const te=oe+1,Ie=te<Z?w[te].el:L;for(;V<=oe;)m(null,w[V]=H?Xn(w[V]):Nn(w[V]),I,Ie,$,F,G,Y,H),V++}}else if(V>oe)for(;V<=Q;)ce(b[V],$,F,!0),V++;else{const te=V,Ie=V,qe=new Map;for(V=Ie;V<=oe;V++){const Yt=w[V]=H?Xn(w[V]):Nn(w[V]);Yt.key!=null&&qe.set(Yt.key,V)}let He,Bt=0;const Ht=oe-Ie+1;let In=!1,xn=0;const Ji=new Array(Ht);for(V=0;V<Ht;V++)Ji[V]=0;for(V=te;V<=Q;V++){const Yt=b[V];if(Bt>=Ht){ce(Yt,$,F,!0);continue}let Rn;if(Yt.key!=null)Rn=qe.get(Yt.key);else for(He=Ie;He<=oe;He++)if(Ji[He-Ie]===0&&os(Yt,w[He])){Rn=He;break}Rn===void 0?ce(Yt,$,F,!0):(Ji[Rn-Ie]=V+1,Rn>=xn?xn=Rn:In=!0,m(Yt,w[Rn],I,null,$,F,G,Y,H),Bt++)}const tp=In?nC(Ji):ii;for(He=tp.length-1,V=Ht-1;V>=0;V--){const Yt=Ie+V,Rn=w[Yt],np=w[Yt+1],rp=Yt+1<Z?np.el||I_(np):L;Ji[V]===0?m(null,Rn,I,rp,$,F,G,Y,H):In&&(He<0||V!==tp[He]?ie(Rn,I,rp,2):He--)}}},ie=(b,w,I,L,$=null)=>{const{el:F,type:G,transition:Y,children:H,shapeFlag:V}=b;if(V&6){ie(b.component.subTree,w,I,L);return}if(V&128){b.suspense.move(w,I,L);return}if(V&64){G.move(b,w,I,ne);return}if(G===Qe){r(F,w,I);for(let Q=0;Q<H.length;Q++)ie(H[Q],w,I,L);r(b.anchor,w,I);return}if(G===Jl){_(b,w,I);return}if(L!==2&&V&1&&Y)if(L===0)Y.beforeEnter(F),r(F,w,I),kt(()=>Y.enter(F),$);else{const{leave:Q,delayLeave:oe,afterLeave:te}=Y,Ie=()=>{b.ctx.isUnmounted?s(F):r(F,w,I)},qe=()=>{F._isLeaving&&F[On](!0),Q(F,()=>{Ie(),te&&te()})};oe?oe(F,Ie,qe):qe()}else r(F,w,I)},ce=(b,w,I,L=!1,$=!1)=>{const{type:F,props:G,ref:Y,children:H,dynamicChildren:V,shapeFlag:Z,patchFlag:Q,dirs:oe,cacheIndex:te}=b;if(Q===-2&&($=!1),Y!=null&&(ir(),mo(Y,null,I,b,!0),or()),te!=null&&(w.renderCache[te]=void 0),Z&256){w.ctx.deactivate(b);return}const Ie=Z&1&&oe,qe=!ci(b);let He;if(qe&&(He=G&&G.onVnodeBeforeUnmount)&&An(He,w,b),Z&6)Ne(b.component,I,L);else{if(Z&128){b.suspense.unmount(I,L);return}Ie&&Zr(b,null,w,"beforeUnmount"),Z&64?b.type.remove(b,w,I,ne,L):V&&!V.hasOnce&&(F!==Qe||Q>0&&Q&64)?Ve(V,w,I,!1,!0):(F===Qe&&Q&384||!$&&Z&16)&&Ve(H,w,I),L&&ue(b)}(qe&&(He=G&&G.onVnodeUnmounted)||Ie)&&kt(()=>{He&&An(He,w,b),Ie&&Zr(b,null,w,"unmounted")},I)},ue=b=>{const{type:w,el:I,anchor:L,transition:$}=b;if(w===Qe){Ce(I,L);return}if(w===Jl){S(b);return}const F=()=>{s(I),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:G,delayLeave:Y}=$,H=()=>G(I,F);Y?Y(b.el,F,H):H()}else F()},Ce=(b,w)=>{let I;for(;b!==w;)I=f(b),s(b),b=I;s(w)},Ne=(b,w,I)=>{const{bum:L,scope:$,job:F,subTree:G,um:Y,m:H,a:V}=b;Cp(H),Cp(V),L&&Ka(L),$.stop(),F&&(F.flags|=8,ce(G,b,w,I)),Y&&kt(Y,w),kt(()=>{b.isUnmounted=!0},w)},Ve=(b,w,I,L=!1,$=!1,F=0)=>{for(let G=F;G<b.length;G++)ce(b[G],w,I,L,$)},x=b=>{if(b.shapeFlag&6)return x(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const w=f(b.anchor||b.el),I=w&&w[Ky];return I?f(I):w};let W=!1;const K=(b,w,I)=>{let L;b==null?w._vnode&&(ce(w._vnode,null,null,!0),L=w._vnode.component):m(w._vnode||null,b,w,null,null,null,I),w._vnode=b,W||(W=!0,lp(L),jy(),W=!1)},ne={p:m,um:ce,m:ie,r:ue,mt:N,mc:C,pc:D,pbc:A,n:x,o:e};return{render:K,hydrate:void 0,createApp:B1(K)}}function Xl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Qr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xf(e,t,n=!1){const r=e.children,s=t.children;if(fe(r)&&fe(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Xn(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&xf(o,a)),a.type===na&&(a.patchFlag===-1&&(a=s[i]=Xn(a)),a.el=o.el),a.type===_t&&!a.el&&(a.el=o.el)}}function nC(e){const t=e.slice(),n=[0];let r,s,i,o,a;const c=e.length;for(r=0;r<c;r++){const l=e[r];if(l!==0){if(s=n[n.length-1],e[s]<l){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<l?i=a+1:o=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function k_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:k_(t)}function Cp(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function I_(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?I_(t.subTree):null}const x_=e=>e.__isSuspense;function rC(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):m1(e)}const Qe=Symbol.for("v-fgt"),na=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Jl=Symbol.for("v-stc"),vo=[];let Qt=null;function cn(e=!1){vo.push(Qt=e?null:[])}function sC(){vo.pop(),Qt=vo[vo.length-1]||null}let Po=1;function Tc(e,t=!1){Po+=e,e<0&&Qt&&t&&(Qt.hasOnce=!0)}function R_(e){return e.dynamicChildren=Po>0?Qt||ii:null,sC(),Po>0&&Qt&&Qt.push(e),e}function A_(e,t,n,r,s,i){return R_(se(e,t,n,r,s,i,!0))}function $n(e,t,n,r,s){return R_(B(e,t,n,r,s,!0))}function mi(e){return e?e.__v_isVNode===!0:!1}function os(e,t){return e.type===t.type&&e.key===t.key}const M_=({key:e})=>e??null,Xa=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||Je(e)||ve(e)?{i:St,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,r=0,s=null,i=e===Qe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&M_(t),ref:t&&Xa(t),scopeId:qy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:St};return a?(Rf(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=rt(n)?8:16),Po>0&&!o&&Qt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Qt.push(c),c}const B=iC;function iC(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===l_)&&(e=_t),mi(e)){const a=$r(e,t,!0);return n&&Rf(a,n),Po>0&&!i&&Qt&&(a.shapeFlag&6?Qt[Qt.indexOf(e)]=a:Qt.push(a)),a.patchFlag=-2,a}if(mC(e)&&(e=e.__vccOpts),t){t=oC(t);let{class:a,style:c}=t;a&&!rt(a)&&(t.class=Oe(a)),De(c)&&(ul(c)&&!fe(c)&&(c=dt({},c)),t.style=Xe(c))}const o=rt(e)?1:x_(e)?128:Yy(e)?64:De(e)?4:ve(e)?2:0;return se(e,t,n,r,s,o,i,!0)}function oC(e){return e?ul(e)||b_(e)?dt({},e):e:null}function $r(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=e,l=t?Ze(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&M_(l),ref:t&&t.ref?n&&i?fe(i)?i.concat(Xa(t)):[i,Xa(t)]:Xa(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$r(e.ssContent),ssFallback:e.ssFallback&&$r(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Cs(d,c.clone(d)),d}function co(e=" ",t=0){return B(na,null,e,t)}function td(e="",t=!1){return t?(cn(),$n(_t,null,e)):B(_t,null,e)}function Nn(e){return e==null||typeof e=="boolean"?B(_t):fe(e)?B(Qe,null,e.slice()):mi(e)?Xn(e):B(na,null,String(e))}function Xn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function Rf(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Rf(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!b_(t)?t._ctx=St:s===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:St},n=32):(t=String(t),r&64?(n=16,t=[co(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ze(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Oe([t.class,r.class]));else if(s==="style")t.style=Xe([t.style,r.style]);else if(il(s)){const i=t[s],o=r[s];o&&i!==o&&!(fe(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function An(e,t,n,r=null){Cn(e,t,7,[n,r])}const aC=m_();let cC=0;function lC(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||aC,i={uid:cC++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:E_(r,s),emitsOptions:g_(r,s),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:r.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext: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 i.ctx={_:i},i.root=t?t.root:i,i.emit=V1.bind(null,i),e.ce&&e.ce(i),i}let Rt=null;const Li=()=>Rt||St;let kc,nd;{const e=cl(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};kc=t("__VUE_INSTANCE_SETTERS__",n=>Rt=n),nd=t("__VUE_SSR_SETTERS__",n=>Oo=n)}const ra=e=>{const t=Rt;return kc(e),e.scope.on(),()=>{e.scope.off(),kc(t)}},Tp=()=>{Rt&&Rt.scope.off(),kc(null)};function P_(e){return e.vnode.shapeFlag&4}let Oo=!1;function uC(e,t=!1,n=!1){t&&nd(t);const{props:r,children:s}=e.vnode,i=P_(e);G1(e,r,i,t),J1(e,s,n||t);const o=i?dC(e,t):void 0;return t&&nd(!1),o}function dC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,P1);const{setup:r}=n;if(r){ir();const s=e.setupContext=r.length>1?hC(e):null,i=ra(e),o=ta(r,e,0,[e.props,s]),a=gy(o);if(or(),i(),(a||e.sp)&&!ci(e)&&r_(e),a){if(o.then(Tp,Tp),t)return o.then(c=>{kp(e,c)}).catch(c=>{dl(c,e,0)});e.asyncDep=o}else kp(e,o)}else O_(e)}function kp(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=Hy(t)),O_(e)}function O_(e,t,n){const r=e.type;e.render||(e.render=r.render||Vn);{const s=ra(e);ir();try{O1(e)}finally{or(),s()}}}const fC={get(e,t){return xt(e,"get",""),e[t]}};function hC(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,fC),slots:e.slots,emit:e.emit,expose:t}}function vl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hy(bf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in go)return go[n](e)},has(t,n){return n in t||n in go}})):e.proxy}function pC(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function mC(e){return ve(e)&&"__vccOpts"in e}const j=(e,t)=>u1(e,t,Oo);function qr(e,t,n){try{Tc(-1);const r=arguments.length;return r===2?De(t)&&!fe(t)?mi(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mi(n)&&(n=[n]),B(e,t,n))}finally{Tc(1)}}const gC="3.5.28";/**
|
||
* @vue/runtime-dom v3.5.28
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let rd;const Ip=typeof window<"u"&&window.trustedTypes;if(Ip)try{rd=Ip.createPolicy("vue",{createHTML:e=>e})}catch{}const L_=rd?e=>rd.createHTML(e):e=>e,vC="http://www.w3.org/2000/svg",yC="http://www.w3.org/1998/Math/MathML",Yn=typeof document<"u"?document:null,xp=Yn&&Yn.createElement("template"),_C={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 s=t==="svg"?Yn.createElementNS(vC,e):t==="mathml"?Yn.createElementNS(yC,e):n?Yn.createElement(e,{is:n}):Yn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Yn.createTextNode(e),createComment:e=>Yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xp.innerHTML=L_(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=xp.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},br="transition",eo="animation",gi=Symbol("_vtc"),N_={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},D_=dt({},Zy,N_),bC=e=>(e.displayName="Transition",e.props=D_,e),Br=bC((e,{slots:t})=>qr(w1,F_(e),t)),es=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rp=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function F_(e){const t={};for(const T in e)T in N_||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=SC(s),m=p&&p[0],y=p&&p[1],{onBeforeEnter:g,onEnter:v,onEnterCancelled:_,onLeave:S,onLeaveCancelled:M,onBeforeAppear:R=g,onAppear:E=v,onAppearCancelled:C=_}=t,k=(T,P,N,z)=>{T._enterCancelled=z,wr(T,P?d:a),wr(T,P?l:o),N&&N()},A=(T,P)=>{T._isLeaving=!1,wr(T,u),wr(T,h),wr(T,f),P&&P()},O=T=>(P,N)=>{const z=T?E:v,X=()=>k(P,T,N);es(z,[P,X]),Ap(()=>{wr(P,T?c:i),Mn(P,T?d:a),Rp(z)||Mp(P,r,m,X)})};return dt(t,{onBeforeEnter(T){es(g,[T]),Mn(T,i),Mn(T,o)},onBeforeAppear(T){es(R,[T]),Mn(T,c),Mn(T,l)},onEnter:O(!1),onAppear:O(!0),onLeave(T,P){T._isLeaving=!0;const N=()=>A(T,P);Mn(T,u),T._enterCancelled?(Mn(T,f),sd(T)):(sd(T),Mn(T,f)),Ap(()=>{T._isLeaving&&(wr(T,u),Mn(T,h),Rp(S)||Mp(T,r,y,N))}),es(S,[T,N])},onEnterCancelled(T){k(T,!1,void 0,!0),es(_,[T])},onAppearCancelled(T){k(T,!0,void 0,!0),es(C,[T])},onLeaveCancelled(T){A(T),es(M,[T])}})}function SC(e){if(e==null)return null;if(De(e))return[Zl(e.enter),Zl(e.leave)];{const t=Zl(e);return[t,t]}}function Zl(e){return Pw(e)}function Mn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gi]||(e[gi]=new Set)).add(t)}function wr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[gi];n&&(n.delete(t),n.size||(e[gi]=void 0))}function Ap(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EC=0;function Mp(e,t,n,r){const s=e._endId=++EC,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=$_(e,t);if(!o)return r();const l=o+"end";let d=0;const u=()=>{e.removeEventListener(l,f),i()},f=h=>{h.target===e&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),e.addEventListener(l,f)}function $_(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${br}Delay`),i=r(`${br}Duration`),o=Pp(s,i),a=r(`${eo}Delay`),c=r(`${eo}Duration`),l=Pp(a,c);let d=null,u=0,f=0;t===br?o>0&&(d=br,u=o,f=i.length):t===eo?l>0&&(d=eo,u=l,f=c.length):(u=Math.max(o,l),d=u>0?o>l?br:eo:null,f=d?d===br?i.length:c.length:0);const h=d===br&&/\b(?:transform|all)(?:,|$)/.test(r(`${br}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:h}}function Pp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Op(n)+Op(e[r])))}function Op(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sd(e){return(e?e.ownerDocument:document).body.offsetHeight}function wC(e,t,n){const r=e[gi];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ic=Symbol("_vod"),B_=Symbol("_vsh"),Af={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ic]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):to(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),to(e,!0),r.enter(e)):r.leave(e,()=>{to(e,!1)}):to(e,t))},beforeUnmount(e,{value:t}){to(e,t)}};function to(e,t){e.style.display=t?e[Ic]:"none",e[B_]=!t}const CC=Symbol(""),TC=/(?:^|;)\s*display\s*:/;function kC(e,t,n){const r=e.style,s=rt(n);let i=!1;if(n&&!s){if(t)if(rt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ja(r,a,"")}else for(const o in t)n[o]==null&&Ja(r,o,"");for(const o in n)o==="display"&&(i=!0),Ja(r,o,n[o])}else if(s){if(t!==n){const o=r[CC];o&&(n+=";"+o),r.cssText=n,i=TC.test(n)}}else t&&e.removeAttribute("style");Ic in e&&(e[Ic]=i?r.display:"",e[B_]&&(r.display="none"))}const Lp=/\s*!important$/;function Ja(e,t,n){if(fe(n))n.forEach(r=>Ja(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=IC(e,t);Lp.test(n)?e.setProperty(jr(r),n.replace(Lp,""),"important"):e[r]=n}}const Np=["Webkit","Moz","ms"],Ql={};function IC(e,t){const n=Ql[t];if(n)return n;let r=$t(t);if(r!=="filter"&&r in e)return Ql[t]=r;r=Oi(r);for(let s=0;s<Np.length;s++){const i=Np[s]+r;if(i in e)return Ql[t]=i}return t}const Dp="http://www.w3.org/1999/xlink";function Fp(e,t,n,r,s,i=$w(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dp,t.slice(6,t.length)):e.setAttributeNS(Dp,t,n):n==null||i&&!by(n)?e.removeAttribute(t):e.setAttribute(t,i?"":En(n)?String(n):n)}function $p(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?L_(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=by(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Gs(e,t,n,r){e.addEventListener(t,n,r)}function xC(e,t,n,r){e.removeEventListener(t,n,r)}const Bp=Symbol("_vei");function RC(e,t,n,r,s=null){const i=e[Bp]||(e[Bp]={}),o=i[t];if(r&&o)o.value=r;else{const[a,c]=AC(t);if(r){const l=i[t]=OC(r,s);Gs(e,a,l,c)}else o&&(xC(e,a,o,c),i[t]=void 0)}}const Hp=/(?:Once|Passive|Capture)$/;function AC(e){let t;if(Hp.test(e)){t={};let r;for(;r=e.match(Hp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jr(e.slice(2)),t]}let eu=0;const MC=Promise.resolve(),PC=()=>eu||(MC.then(()=>eu=0),eu=Date.now());function OC(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Cn(LC(r,n.value),t,5,[r])};return n.value=e,n.attached=PC(),n}function LC(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Vp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,NC=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?wC(e,r,o):t==="style"?kC(e,n,r):il(t)?lf(t)||RC(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):DC(e,t,r,o))?($p(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fp(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!rt(r))?$p(e,$t(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Fp(e,t,r,o))};function DC(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vp(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Vp(t)&&rt(n)?!1:t in e}const H_=new WeakMap,V_=new WeakMap,xc=Symbol("_moveCb"),Up=Symbol("_enterCb"),FC=e=>(delete e.props.mode,e),$C=FC({name:"TransitionGroup",props:dt({},D_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Li(),r=Jy();let s,i;return Tf(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!UC(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(BC),s.forEach(HC);const a=s.filter(VC);sd(n.vnode.el),a.forEach(c=>{const l=c.el,d=l.style;Mn(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=l[xc]=f=>{f&&f.target!==l||(!f||f.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",u),l[xc]=null,wr(l,o))};l.addEventListener("transitionend",u)}),s=[]}),()=>{const o=de(e),a=F_(o);let c=o.tag||Qe;if(s=[],i)for(let l=0;l<i.length;l++){const d=i[l];d.el&&d.el instanceof Element&&(s.push(d),Cs(d,Mo(d,a,r,n)),H_.set(d,U_(d.el)))}i=t.default?Cf(t.default()):[];for(let l=0;l<i.length;l++){const d=i[l];d.key!=null&&Cs(d,Mo(d,a,r,n))}return B(c,null,i)}}}),Mf=$C;function BC(e){const t=e.el;t[xc]&&t[xc](),t[Up]&&t[Up]()}function HC(e){V_.set(e,U_(e.el))}function VC(e){const t=H_.get(e),n=V_.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el,o=i.style,a=i.getBoundingClientRect();let c=1,l=1;return i.offsetWidth&&(c=a.width/i.offsetWidth),i.offsetHeight&&(l=a.height/i.offsetHeight),(!Number.isFinite(c)||c===0)&&(c=1),(!Number.isFinite(l)||l===0)&&(l=1),Math.abs(c-1)<.01&&(c=1),Math.abs(l-1)<.01&&(l=1),o.transform=o.webkitTransform=`translate(${r/c}px,${s/l}px)`,o.transitionDuration="0s",e}}function U_(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function UC(e,t,n){const r=e.cloneNode(),s=e[gi];s&&s.forEach(a=>{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=$_(r);return i.removeChild(r),o}const Wp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>Ka(t,n):t};function WC(e){e.target.composing=!0}function jp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tu=Symbol("_assign");function zp(e,t,n){return t&&(e=e.trim()),n&&(e=df(e)),e}const r4={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[tu]=Wp(s);const i=r||s.props&&s.props.type==="number";Gs(e,t?"change":"input",o=>{o.target.composing||e[tu](zp(e.value,n,i))}),(n||i)&&Gs(e,"change",()=>{e.value=zp(e.value,n,i)}),t||(Gs(e,"compositionstart",WC),Gs(e,"compositionend",jp),Gs(e,"change",jp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[tu]=Wp(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?df(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},jC=["ctrl","shift","alt","meta"],zC={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>jC.some(n=>e[`${n}Key`]&&!t.includes(n))},s4=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=zC[t[o]];if(a&&a(s,t))return}return e(s,...i)})},qC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},i4=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=jr(s.key);if(t.some(o=>o===i||qC[o]===i))return e(s)})},GC=dt({patchProp:NC},_C);let qp;function KC(){return qp||(qp=Q1(GC))}const YC=(...e)=>{const t=KC().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=JC(r);if(!s)return;const i=t._component;!ve(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,XC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function XC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function JC(e){return rt(e)?document.querySelector(e):e}function o4(e){}function W_(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const et=typeof window<"u",Pf=et&&"IntersectionObserver"in window,ZC=et&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),j_=et&&"matchMedia"in window&&typeof window.matchMedia=="function",Lo=()=>j_&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Gp(e,t,n){QC(e,t),t.set(e,n)}function QC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kp(e,t,n){return e.set(z_(e,t),n),n}function zn(e,t){return e.get(z_(e,t))}function z_(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function q_(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function id(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),q_(e,t.split("."),n))}function Fn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return id(e,t,n);if(Array.isArray(t))return q_(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function G_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function od(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Yp(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Of(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const a4=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function c4(e){return Object.keys(e)}function nu(e,t){return t.every(n=>e.hasOwnProperty(n))}function Lf(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Xp(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)?r[i]=e[i]:s[i]=e[i];return[r,s]}function As(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const K_=/^on[^a-z]/,Y_=e=>K_.test(e),eT=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],tT=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function l4(e){return e.isComposing&&tT.includes(e.key)}function u4(e){const[t,n]=Xp(e,[K_]),r=As(t,eT),[s,i]=Xp(n,["class","style","id","inert",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function Nf(e){return e==null?[]:Array.isArray(e)?e:[e]}function d4(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>e(...i),Ut(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function cr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Jp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Zp(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function nT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function f4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;for(;Math.abs(e)>=t&&r<n.length-1;)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function At(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(Yp(i)&&Yp(o)){r[s]=At(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[s]=n(i,o);continue}r[s]=o}return r}function X_(e){return e.map(t=>t.type===Qe?X_(t.children):t).flat()}function ms(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ms.cache.has(e))return ms.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ms.cache.set(e,t),t}ms.cache=new Map;function Zs(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Zs(e,n)).flat(1);if(t.suspense)return Zs(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Zs(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Zs(e,t.component.subTree).flat(1)}return[]}var $s=new WeakMap,ts=new WeakMap;class rT{constructor(t){Gp(this,$s,[]),Gp(this,ts,0),this.size=t}get isFull(){return zn($s,this).length===this.size}push(t){zn($s,this)[zn(ts,this)]=t,Kp(ts,this,(zn(ts,this)+1)%this.size)}values(){return zn($s,this).slice(zn(ts,this)).concat(zn($s,this).slice(0,zn(ts,this)))}clear(){zn($s,this).length=0,Kp(ts,this,0)}}function Df(e){const t=pt({});hn(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=ee(()=>t[r]);return n}function Rc(e,t){return e.includes(t)}function J_(e){return e[2].toLowerCase()+e.slice(3)}const yo=()=>[Function,Array];function Qp(e,t){return t="on"+Oi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function h4(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const s of e)s(...n);else typeof e=="function"&&e(...n)}function _o(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>{var i,o;return!((i=s.parentElement)!=null&&i.closest("details:not([open])"))||s.tagName==="SUMMARY"&&((o=s.parentElement)==null?void 0:o.tagName)==="DETAILS"})}function sT(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s<e.length&&s>=0);return r}function Z_(e,t){var r,s,i,o;const n=_o(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=sT(n,t);a?a.focus():Z_(e,t==="next"?"first":"last")}}function p4(e){return e==null||typeof e=="string"&&e.trim()===""}function m4(){}function iT(e,t){if(!(et&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function oT(e){return e.some(t=>mi(t)?t.type===_t?!1:t.type!==Qe||oT(t.children):!0)?e:null}function aT(e,t){if(!et||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function g4(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,c=s.bottom;return n>=i&&n<=a&&r>=o&&r<=c}function ad(){const e=be(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Of(e.value)}),t}function v4(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Ts(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function y4(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function _4(e){const t={};for(const n in e)t[$t(n)]=e[n];return t}function cT(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,s]=n;return t.includes(r)?!!s:s!==void 0}))}const Q_=["top","bottom"],lT=["start","end","left","right"];function cd(e,t){let[n,r]=e.split(" ");return r||(r=Rc(Q_,n)?"start":Rc(lT,n)?"top":"center"),{side:em(n,t),align:em(r,t)}}function em(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function ru(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function su(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function tm(e){return{side:e.align,align:e.side}}function nm(e){return Rc(Q_,e.side)?"y":"x"}class ln{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,s=r?1+(1-n)/n:1,{x:i,y:o,width:a,height:c}=r?t.getBoundingClientRect():t;this.x=i*s,this.y=o*s,this.width=a*s,this.height=c*s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function rm(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function eb(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new ln({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new ln(e)}function uT(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new ln({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new ln({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new ln(e)}function tb(e){const t=new ln(e),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,c;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=Number(s[0]),o=Number(s[5]),a=Number(s[12]),c=Number(s[13]);else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=Number(s[0]),o=Number(s[3]),a=Number(s[4]),c=Number(s[5]);else return new ln(t);const l=n.transformOrigin,d=t.x-a-(1-i)*parseFloat(l),u=t.y-c-(1-o)*parseFloat(l.slice(l.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new ln({x:d,y:u,width:f,height:h})}else return new ln(t)}function ss(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Za=new WeakMap;function dT(e,t){Object.keys(t).forEach(n=>{if(Y_(n)){const r=J_(n),s=Za.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),Za.has(e)||Za.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function fT(e,t){Object.keys(t).forEach(n=>{if(Y_(n)){const r=J_(n),s=Za.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Bs=2.4,sm=.2126729,im=.7151522,om=.072175,hT=.55,pT=.58,mT=.57,gT=.62,Ma=.03,am=1.45,vT=5e-4,yT=1.25,_T=1.25,cm=.078,lm=12.82051282051282,Pa=.06,um=.001;function dm(e,t){const n=(e.r/255)**Bs,r=(e.g/255)**Bs,s=(e.b/255)**Bs,i=(t.r/255)**Bs,o=(t.g/255)**Bs,a=(t.b/255)**Bs;let c=n*sm+r*im+s*om,l=i*sm+o*im+a*om;if(c<=Ma&&(c+=(Ma-c)**am),l<=Ma&&(l+=(Ma-l)**am),Math.abs(l-c)<vT)return 0;let d;if(l>c){const u=(l**hT-c**pT)*yT;d=u<um?0:u<cm?u-u*lm*Pa:u-Pa}else{const u=(l**gT-c**mT)*_T;d=u>-um?0:u>-cm?u-u*lm*Pa:u+Pa}return d*100}const Ac=.20689655172413793,bT=e=>e>Ac**3?Math.cbrt(e):e/(3*Ac**2)+4/29,ST=e=>e>Ac?e**3:3*Ac**2*(e-4/29);function nb(e){const t=bT,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function rb(e){const t=ST,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const ET=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],wT=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,CT=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],TT=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function sb(e){const t=Array(3),n=wT,r=ET;for(let s=0;s<3;++s)t[s]=Math.round(cr(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Ff(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=TT,o=CT;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function ld(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function kT(e){return ld(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const fm=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,IT={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>hm({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>hm({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>No({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>No({h:e,s:t,v:n,a:r})};function Bn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&fm.test(e)){const{groups:t}=e.match(fm),{fn:n,values:r}=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((i,o)=>i.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return IT[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),RT(t)}else if(typeof e=="object"){if(nu(e,["r","g","b"]))return e;if(nu(e,["h","s","l"]))return No(ib(e));if(nu(e,["h","s","v"]))return No(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
||
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function No(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const c=(a+t/60)%6;return r-r*n*Math.max(Math.min(c,4-c,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function hm(e){return No(ib(e))}function ib(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Oa(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function xT(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Oa(t),Oa(n),Oa(r),s!==void 0?Oa(Math.round(s*255)):""].join("")}`}function RT(e){e=AT(e);let[t,n,r,s]=nT(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function AT(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Jp(Jp(e,6),8,"F")),e}function MT(e,t){const n=nb(Ff(e));return n[0]=n[0]+t*10,sb(rb(n))}function PT(e,t){const n=nb(Ff(e));return n[0]=n[0]-t*10,sb(rb(n))}function OT(e){const t=Bn(e);return Ff(t)[1]}function ob(e){const t=Math.abs(dm(Bn(0),Bn(e)));return Math.abs(dm(Bn(16777215),Bn(e)))>Math.min(t,50)?"#fff":"#000"}function le(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const ct=le({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function mt(e,t){const n=Li();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Gr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=mt(e).type;return ms((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}function LT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const vi=Symbol.for("vuetify:defaults");function NT(e){return we(e)}function $f(){const e=Le(vi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function yl(e,t){const n=$f(),r=we(e),s=j(()=>{if(Ut(t==null?void 0:t.disabled))return n.value;const o=Ut(t==null?void 0:t.scoped),a=Ut(t==null?void 0:t.reset),c=Ut(t==null?void 0:t.root);if(r.value==null&&!(o||a||c))return n.value;let l=At(r.value,{prev:n.value});if(o)return l;if(a||c){const d=Number(a||1/0);for(let u=0;u<=d&&!(!l||!("prev"in l));u++)l=l.prev;return l&&typeof c=="string"&&c in l&&(l=At(At(l,{prev:l}),l[c])),l}return l.prev?At(l.prev,l):l});return Mt(vi,s),s}function DT(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[ms(t)]<"u")}function FT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$f();const r=mt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=j(()=>{var c;return(c=n.value)==null?void 0:c[e._as??t]}),i=new Proxy(e,{get(c,l){var h,p,m,y;const d=Reflect.get(c,l);if(l==="class"||l==="style")return[(h=s.value)==null?void 0:h[l],d].filter(g=>g!=null);if(DT(r.vnode,l))return d;const u=(p=s.value)==null?void 0:p[l];if(u!==void 0)return u;const f=(y=(m=n.value)==null?void 0:m.global)==null?void 0:y[l];return f!==void 0?f:d}}),o=be();hn(()=>{if(s.value){const c=Object.entries(s.value).filter(l=>{let[d]=l;return d.startsWith(d[0].toUpperCase())});o.value=c.length?Object.fromEntries(c):void 0}else o.value=void 0});function a(){const c=LT(vi,r);Mt(vi,j(()=>o.value?At((c==null?void 0:c.value)??{},o.value):c==null?void 0:c.value))}return{props:i,provideSubDefaults:a}}function Ni(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=le(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Lf(r,t)},e.props._as=String,e.setup=function(r,s){const i=$f();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=FT(r,r._as??e.name,i),c=e._setup(o,s);return a(),c}}return e}function Fe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Ni:fl)(t)}function b4(e,t){return t.props=e,t}function Bf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Fe()({name:n??Oi($t(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ct()},setup(r,s){let{slots:i}=s;return()=>{var o;return qr(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function $T(e,t,n,r){if(!n||Ts(e)||Ts(t))return;const s=n.get(e);if(s)s.set(t,r);else{const i=new WeakMap;i.set(t,r),n.set(e,i)}}function BT(e,t,n){var i,o;if(!n||Ts(e)||Ts(t))return null;const r=(i=n.get(e))==null?void 0:i.get(t);if(typeof r=="boolean")return r;const s=(o=n.get(t))==null?void 0:o.get(e);return typeof s=="boolean"?s:null}function gs(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const s=BT(e,t,n);return s||($T(e,t,n,!0),r.every(i=>gs(e[i],t[i],n)))}function ab(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const ud="cubic-bezier(0.4, 0, 0.2, 1)",pm="cubic-bezier(0.0, 0, 0.2, 1)",mm="cubic-bezier(0.4, 0, 1, 1)",HT={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function VT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?UT(e):Hf(e))return e;e=e.parentElement}return document.scrollingElement}function Mc(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Hf(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Hf(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function UT(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function WT(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function tt(e){const t=mt("useRender");t.render=e}function jT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,s=0,i=!1,o=0;function a(){clearTimeout(r),i=!1,o=0}const c=function(){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];clearTimeout(r);const f=Date.now();o||(o=f);const h=f-Math.max(o,s);function p(){s=Date.now(),r=setTimeout(a,t),e(...d)}i?h>=t?p():n.trailing&&(r=setTimeout(p,t-h)):(i=!0,n.leading&&p())};return c.clear=a,c.immediate=e,c}const Et=[String,Function,Object,Array],dd=Symbol.for("vuetify:icons"),_l=le({icon:{type:Et},tag:{type:[String,Object,Function],required:!0}},"icon"),gm=Fe()({name:"VComponentIcon",props:_l(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return B(e.tag,null,{default:()=>{var s;return[e.icon?B(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),cb=Ni({name:"VSvgIcon",inheritAttrs:!1,props:_l(),setup(e,t){let{attrs:n}=t;return()=>B(e.tag,Ze(n,{style:null}),{default:()=>[se("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?se("path",{d:r[0],"fill-opacity":r[1]},null):se("path",{d:r},null)):se("path",{d:e.icon},null)])]})}});Ni({name:"VLigatureIcon",props:_l(),setup(e){return()=>B(e.tag,null,{default:()=>[e.icon]})}});const lb=Ni({name:"VClassIcon",props:_l(),setup(e){return()=>B(e.tag,{class:Oe(e.icon)},null)}}),zT=e=>{const t=Le(dd);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:j(()=>{var c;const r=bt(e);if(!r)return{component:gm};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(c=t.aliases)==null?void 0:c[s.slice(1)])),Array.isArray(s))return{component:cb,icon:s};if(typeof s!="string")return{component:gm,icon:s};const i=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},qT={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},GT={component:e=>qr(lb,{...e,class:"mdi"})};function KT(){return{svg:{component:cb},class:{component:lb}}}function YT(e){const t=KT(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=GT),At({defaultSet:n,sets:t,aliases:{...qT,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function Di(e,t){let n;function r(){n=Es(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Se(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),Ct(()=>{n==null||n.stop()})}function er(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u=>u,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u=>u;const i=mt("useProxiedModel"),o=we(e[t]!==void 0?e[t]:n),a=ms(t),l=j(a!==t?()=>{var u,f,h,p;return e[t],!!(((u=i.vnode.props)!=null&&u.hasOwnProperty(t)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(p=i.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var u,f;return e[t],!!((u=i.vnode.props)!=null&&u.hasOwnProperty(t)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});Di(()=>!l.value,()=>{Se(()=>e[t],u=>{o.value=u})});const d=j({get(){const u=e[t];return r(l.value?u:o.value)},set(u){const f=s(u),h=de(l.value?e[t]:o.value);h===f||r(h)===u||(o.value=f,i==null||i.emit(`update:${t}`,f))}});return Object.defineProperty(d,"externalValue",{get:()=>l.value?e[t]:o.value}),d}const XT={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},vm="$vuetify.",ym=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),ub=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];if(!r.startsWith(vm))return ym(r,i);const a=r.replace(vm,""),c=e.value&&n.value[e.value],l=t.value&&n.value[t.value];let d=id(c,a,null);return d||(`${r}${e.value}`,d=id(l,a,null)),d||(d=r),typeof d!="string"&&(d=r),ym(d,i)};function Vf(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function db(e,t){return Vf(e,t)(.1).includes(",")?",":"."}function iu(e,t,n){const r=er(e,t,e[t]??n.value);return r.value=e[t]??n.value,Se(n,s=>{e[t]==null&&(r.value=n.value)}),r}function fb(e){return t=>{const n=iu(t,"locale",e.current),r=iu(t,"fallback",e.fallback),s=iu(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:ee(()=>db(n,r)),t:ub(n,r,s),n:Vf(n,r),provide:fb({current:n,fallback:r,messages:s})}}}function JT(e){const t=be((e==null?void 0:e.locale)??"en"),n=be((e==null?void 0:e.fallback)??"en"),r=we({en:XT,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:ee(()=>(e==null?void 0:e.decimalSeparator)??db(t,n)),t:ub(t,n,r),n:Vf(t,n),provide:fb({current:t,fallback:n,messages:r})}}const Pc=Symbol.for("vuetify:locale");function ZT(e){return e.name!=null}function QT(e){const t=e!=null&&e.adapter&&ZT(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:JT(e),n=nk(t,e);return{...t,...n}}function ek(){const e=Le(Pc);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function tk(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function nk(e,t){const n=we((t==null?void 0:t.rtl)??tk()),r=j(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ee(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function sa(){const e=Le(Pc);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function ia(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
|
||
KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
|
||
VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
|
||
MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
|
||
IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function rk(e,t,n){var d;const r=[];let s=[];const i=hb(e),o=pb(e),a=n??((d=ia(t))==null?void 0:d.firstDay)??0,c=(i.getDay()-a+7)%7,l=(o.getDay()-a+7)%7;for(let u=0;u<c;u++){const f=new Date(i);f.setDate(f.getDate()-(c-u)),s.push(f)}for(let u=1;u<=o.getDate();u++){const f=new Date(e.getFullYear(),e.getMonth(),u);s.push(f),s.length===7&&(r.push(s),s=[])}for(let u=1;u<7-l;u++){const f=new Date(o);f.setDate(f.getDate()+u),s.push(f)}return s.length>0&&r.push(s),r}function bo(e,t,n){var i;let r=(n??((i=ia(t))==null?void 0:i.firstDay)??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function sk(e,t){var s;const n=new Date(e),r=((((s=ia(t))==null?void 0:s.firstDay)??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function hb(e){return new Date(e.getFullYear(),e.getMonth(),1)}function pb(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function ik(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const ok=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function mb(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(ok.test(e))return ik(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const _m=new Date(2e3,0,2);function ak(e,t,n){var s;const r=t??((s=ia(e))==null?void 0:s.firstDay)??0;return G_(7).map(i=>{const o=new Date(_m);return o.setDate(_m.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function ck(e,t,n,r){const s=mb(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),c=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${c}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function lk(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Zp(String(n.getMonth()+1),2,"0"),i=Zp(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function uk(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function dk(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function fk(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function vs(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function hk(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function pk(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Do(e){return e.getFullYear()}function mk(e){return e.getMonth()}function gk(e,t,n,r){const s=ia(t),i=n??(s==null?void 0:s.firstDay)??0,o=(s==null?void 0:s.firstWeekSize)??1;return r!==void 0?vk(e,t,i,r):yk(e,t,i,o)}function vk(e,t,n,r){const s=(7+r-n)%7,i=bo(e,t,n),o=vs(i,6);function a(f){return(7+new Date(f,0,1).getDay()-n)%7}let c=Do(i);c<Do(o)&&a(c+1)<=s&&c++;const l=new Date(c,0,1),d=a(c),u=d<=s?vs(l,-d):vs(l,7-d);return 1+Lc(Uf(i),Fo(u),"weeks")}function yk(e,t,n,r){const s=bo(e,t,n),i=vs(bo(e,t,n),6);function o(u){const f=new Date(u,0,1);return 7-Lc(f,bo(f,t,n),"days")}let a=Do(s);a<Do(i)&&o(a+1)>=r&&a++;const c=new Date(a,0,1),l=o(a),d=l>=r?vs(c,l-7):vs(c,l);return 1+Lc(Uf(s),Fo(d),"weeks")}function _k(e){return e.getDate()}function bk(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Sk(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Ek(e){return e.getHours()}function wk(e){return e.getMinutes()}function Ck(e){return new Date(e.getFullYear(),0,1)}function Tk(e){return new Date(e.getFullYear(),11,31)}function kk(e,t){return Oc(e,t[0])&&Rk(e,t[1])}function Ik(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Oc(e,t){return e.getTime()>t.getTime()}function xk(e,t){return Oc(Fo(e),Fo(t))}function Rk(e,t){return e.getTime()<t.getTime()}function bm(e,t){return e.getTime()===t.getTime()}function Ak(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Mk(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Pk(e,t){return e.getFullYear()===t.getFullYear()}function Lc(e,t,n){const r=new Date(e),s=new Date(t);switch(n){case"years":return r.getFullYear()-s.getFullYear();case"quarters":return Math.floor((r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12)/4);case"months":return r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-s.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-s.getTime())/1e3);default:return r.getTime()-s.getTime()}}function Ok(e,t){const n=new Date(e);return n.setHours(t),n}function Lk(e,t){const n=new Date(e);return n.setMinutes(t),n}function Nk(e,t){const n=new Date(e);return n.setMonth(t),n}function Dk(e,t){const n=new Date(e);return n.setDate(t),n}function Fk(e,t){const n=new Date(e);return n.setFullYear(t),n}function Fo(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function Uf(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class $k{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return mb(t)}toJsDate(t){return t}toISO(t){return lk(this,t)}parseISO(t){return uk(t)}addMinutes(t,n){return dk(t,n)}addHours(t,n){return fk(t,n)}addDays(t,n){return vs(t,n)}addWeeks(t,n){return hk(t,n)}addMonths(t,n){return pk(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return rk(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return bo(t,this.locale,r)}endOfWeek(t){return sk(t,this.locale)}startOfMonth(t){return hb(t)}endOfMonth(t){return pb(t)}format(t,n){return ck(t,n,this.locale,this.formats)}isEqual(t,n){return bm(t,n)}isValid(t){return Ik(t)}isWithinRange(t,n){return kk(t,n)}isAfter(t,n){return Oc(t,n)}isAfterDay(t,n){return xk(t,n)}isBefore(t,n){return!Oc(t,n)&&!bm(t,n)}isSameDay(t,n){return Ak(t,n)}isSameMonth(t,n){return Mk(t,n)}isSameYear(t,n){return Pk(t,n)}setMinutes(t,n){return Lk(t,n)}setHours(t,n){return Ok(t,n)}setMonth(t,n){return Nk(t,n)}setDate(t,n){return Dk(t,n)}setYear(t,n){return Fk(t,n)}getDiff(t,n,r){return Lc(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return ak(this.locale,r,n)}getYear(t){return Do(t)}getMonth(t){return mk(t)}getWeek(t,n,r){const s=n!==void 0?Number(n):void 0,i=r!==void 0?Number(r):void 0;return gk(t,this.locale,s,i)}getDate(t){return _k(t)}getNextMonth(t){return bk(t)}getPreviousMonth(t){return Sk(t)}getHours(t){return Ek(t)}getMinutes(t){return wk(t)}startOfDay(t){return Fo(t)}endOfDay(t){return Uf(t)}startOfYear(t){return Ck(t)}endOfYear(t){return Tk(t)}}const gb=Symbol.for("vuetify:date-options"),Sm=Symbol.for("vuetify:date-adapter");function Bk(e,t){const n=At({adapter:$k,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:vb(n,t)}}function S4(e,t,n){const r=Hk(e,t,n),s=[t];for(let i=1;i<r;i++){const o=e.addDays(t,i);s.push(o)}return n&&s.push(e.endOfDay(n)),s}function Hk(e,t,n){const r=[`${e.toISO(n??t).split("T")[0]}T00:00:00Z`,`${e.toISO(t).split("T")[0]}T00:00:00Z`];return typeof e.date()=="string"?e.getDiff(r[0],r[1],"days"):e.getDiff(e.date(r[0]),e.date(r[1]),"days")}function vb(e,t){const n=pt(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Se(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}function E4(){const e=Le(gb);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=ek();return vb(e,t)}const w4=["sm","md","lg","xl","xxl"],fd=Symbol.for("vuetify:display"),Em={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Vk=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Em;return At(Em,e)};function wm(e){return et&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Cm(e){return et&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function Tm(e){const t=et&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),c=n(/edge/i),l=n(/firefox/i),d=n(/opera/i),u=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:c,firefox:l,opera:d,win:u,mac:f,linux:h,touch:ZC,ssr:t==="ssr"}}function Uk(e,t){const{thresholds:n,mobileBreakpoint:r}=Vk(e),s=be(Cm(t)),i=be(Tm(t)),o=pt({}),a=be(wm(t));function c(){s.value=Cm(),a.value=wm()}function l(){c(),i.value=Tm()}return hn(()=>{const d=a.value<n.sm,u=a.value<n.md&&!d,f=a.value<n.lg&&!(u||d),h=a.value<n.xl&&!(f||u||d),p=a.value<n.xxl&&!(h||f||u||d),m=a.value>=n.xxl,y=d?"xs":u?"sm":f?"md":h?"lg":p?"xl":"xxl",g=typeof r=="number"?r:n[r],v=a.value<g;o.xs=d,o.sm=u,o.md=f,o.lg=h,o.xl=p,o.xxl=m,o.smAndUp=!d,o.mdAndUp=!(d||u),o.lgAndUp=!(d||u||f),o.xlAndUp=!(d||u||f||h),o.smAndDown=!(f||h||p||m),o.mdAndDown=!(h||p||m),o.lgAndDown=!(p||m),o.xlAndDown=!m,o.name=y,o.height=s.value,o.width=a.value,o.mobile=v,o.mobileBreakpoint=r,o.platform=i.value,o.thresholds=n}),et&&(window.addEventListener("resize",c,{passive:!0}),Ct(()=>{window.removeEventListener("resize",c)},!0)),{...Sf(o),update:l,ssr:!!t}}const C4=le({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Wk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();const n=Le(fd);if(!n)throw new Error("Could not find Vuetify display injection");const r=j(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1);return{...n,displayClasses:ee(()=>t?{[`${t}--mobile`]:r.value}:{}),mobile:r}}const yb=Symbol.for("vuetify:goto");function _b(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:HT}}function jk(e){return Wf(e)??(document.scrollingElement||document.body)}function Wf(e){return typeof e=="string"?document.querySelector(e):Of(e)}function ou(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=Wf(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function zk(e,t){return{rtl:t.isRtl,options:At(_b(),e)}}async function km(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=At((r==null?void 0:r.options)??_b(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:Wf(e))??0,c=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:jk(i.container),l=Lo()?i.patterns.instant:typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!l)throw new TypeError(`Easing function "${i.easing}" not found.`);let d;if(typeof a=="number")d=ou(a,n,o);else if(d=ou(a,n,o)-ou(c,n,o),i.layout){const p=window.getComputedStyle(a).getPropertyValue("--v-layout-top");p&&(d-=parseInt(p,10))}d+=i.offset,d=qk(c,d,!!o,!!n);const u=c[s]??0;if(d===u)return Promise.resolve(d);const f=performance.now();return new Promise(h=>requestAnimationFrame(function p(m){const g=(m-f)/i.duration,v=Math.floor(u+(d-u)*l(cr(g,0,1)));if(c[s]=v,g>=1&&Math.abs(v-c[s])<10)return h(d);if(g>2)return h(c[s]);requestAnimationFrame(p)}))}function T4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Le(yb),{isRtl:n}=sa();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:ee(()=>t.rtl.value||n.value)};async function s(i,o){return km(i,At(e,o),!1,r)}return s.horizontal=async(i,o)=>km(i,At(e,o),!0,r),s}function qk(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let c,l;return r?n?(c=-(s-o),l=0):(c=0,l=s-o):(c=0,l=i+-a),cr(t,c,l)}const $o=Symbol.for("vuetify:theme"),nn=le({theme:String},"theme");function Im(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function Gk(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Im();const t=Im();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=At(a,o)}return At(t,{...e,themes:n})}function ns(e,t,n,r){e.push(`${Jk(t,r)} {
|
||
`,...n.map(s=>` ${s};
|
||
`),`}
|
||
`)}function xm(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const a=Bn(o);s.push(`--${t}theme-${i}: ${a.r},${a.g},${a.b}`),i.startsWith("on-")||s.push(`--${t}theme-${i}-overlay-multiplier: ${OT(o)>.18?n:r}`)}for(const[i,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Bn(o):void 0,c=a?`${a.r}, ${a.g}, ${a.b}`:void 0;s.push(`--${t}${i}: ${c??o}`)}return s}function Kk(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const i=s==="lighten"?MT:PT;for(const o of G_(n[s],1))r[`${e}-${s}-${o}`]=xT(i(Bn(t),o))}return r}function Yk(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...Kk(r,s,t)})}return n}function Xk(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,s=Bn(e[n]);t[r]=ob(s)}return t}function Jk(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function Zk(e,t,n){const r=Qk(e,t);r&&(r.innerHTML=n)}function Qk(e,t){if(!et)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function eI(e){const t=Gk(e),n=be(t.defaultTheme),r=we(t.themes),s=be("light"),i=j({get(){return n.value==="system"?s.value:n.value},set(g){n.value=g}}),o=j(()=>{const g={};for(const[v,_]of Object.entries(r.value)){const S={..._.colors,...Yk(_.colors,t.variations)};g[v]={..._,colors:{...S,...Xk(S)}}}return g}),a=ee(()=>o.value[i.value]),c=ee(()=>n.value==="system"),l=j(()=>{var M;const g=[],v=t.unimportant?"":" !important",_=t.scoped?t.prefix:"";(M=a.value)!=null&&M.dark&&ns(g,":root",["color-scheme: dark"],t.scope),ns(g,":root",xm(a.value,t.prefix),t.scope);for(const[R,E]of Object.entries(o.value))ns(g,`.${t.prefix}theme--${R}`,[`color-scheme: ${E.dark?"dark":"normal"}`,...xm(E,t.prefix)],t.scope);if(t.utilities){const R=[],E=[],C=new Set(Object.values(o.value).flatMap(k=>Object.keys(k.colors)));for(const k of C)k.startsWith("on-")?ns(E,`.${k}`,[`color: rgb(var(--${t.prefix}theme-${k}))${v}`],t.scope):(ns(R,`.${_}bg-${k}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${k}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${k}))${v}`,`color: rgb(var(--${t.prefix}theme-on-${k}))${v}`],t.scope),ns(E,`.${_}text-${k}`,[`color: rgb(var(--${t.prefix}theme-${k}))${v}`],t.scope),ns(E,`.${_}border-${k}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${k})`],t.scope));t.layers?g.push(`@layer background {
|
||
`,...R.map(k=>` ${k}`),`}
|
||
`,`@layer foreground {
|
||
`,...E.map(k=>` ${k}`),`}
|
||
`):g.push(...R,...E)}let S=g.map((R,E)=>E===0?R:` ${R}`).join("");return t.layers&&(S=`@layer vuetify.theme {
|
||
`+g.map(R=>` ${R}`).join("")+`
|
||
}`),S}),d=ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${i.value}`),u=ee(()=>Object.keys(o.value));if(j_){let v=function(){s.value=g.matches?"dark":"light"};const g=window.matchMedia("(prefers-color-scheme: dark)");v(),g.addEventListener("change",v,{passive:!0}),hf()&&Ct(()=>{g.removeEventListener("change",v)})}function f(g){if(t.isDisabled)return;const v=g._context.provides.usehead;if(v){let _=function(){return{style:[{textContent:l.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(v.push){const S=v.push(_);et&&Se(l,()=>{S.patch(_)})}else et?(v.addHeadObjs(ee(_)),hn(()=>v.updateDOM())):v.addHeadObjs(_())}else{let _=function(){Zk(t.stylesheetId,t.cspNonce,l.value)};et?Se(l,_,{immediate:!0}):_()}}function h(g){g!=="system"&&!u.value.includes(g)||(i.value=g)}function p(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.value;const v=g.indexOf(i.value),_=v===-1?0:(v+1)%g.length;h(g[_])}function m(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(g)}const y=new Proxy(i,{get(g,v){return Reflect.get(g,v)},set(g,v,_){return v==="value"&&W_(`theme.global.name.value = ${_}`,`theme.change('${_}')`),Reflect.set(g,v,_)}});return{install:f,change:h,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:c,name:i,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:d,styles:l,global:{name:y,current:a}}}function mn(e){mt("provideTheme");const t=Le($o,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=ee(()=>e.theme??t.name.value),i={...t,name:n,current:ee(()=>t.themes.value[n.value]),themeClasses:ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`)};return Mt($o,i),i}function bb(){mt("useTheme");const e=Le($o,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function jf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=ad(),r=we();if(et){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});kn(()=>{s.disconnect()}),Se(()=>n.el,(i,o)=>{o&&(s.unobserve(o),r.value=void 0),i&&s.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:hi(r)}}const Bo=Symbol.for("vuetify:layout"),Sb=Symbol.for("vuetify:layout-item"),Rm=1e3,tI=le({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),k4=le({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function nI(){const e=Le(Bo);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function I4(e){const t=Le(Bo);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${n_()}`,r=mt("useLayoutItem");Mt(Sb,{id:n});const s=be(!1);i_(()=>s.value=!0),s_(()=>s.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:j(()=>s.value?!1:e.active.value),id:n});return kn(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const rI=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),c=n.get(o),l=r.get(o);if(!a||!c||!l)continue;const d={...s,[a.value]:parseInt(s[a.value],10)+(l.value?parseInt(c.value,10):0)};i.push({id:o,layer:d}),s=d}return i};function sI(e){const t=Le(Bo,null),n=j(()=>t?t.rootZIndex.value-100:Rm),r=we([]),s=pt(new Map),i=pt(new Map),o=pt(new Map),a=pt(new Map),c=pt(new Map),{resizeRef:l,contentRect:d}=jf(),u=j(()=>{const R=new Map,E=e.overlaps??[];for(const C of E.filter(k=>k.includes(":"))){const[k,A]=C.split(":");if(!r.value.includes(k)||!r.value.includes(A))continue;const O=s.get(k),T=s.get(A),P=i.get(k),N=i.get(A);!O||!T||!P||!N||(R.set(A,{position:O.value,amount:parseInt(P.value,10)}),R.set(k,{position:T.value,amount:-parseInt(N.value,10)}))}return R}),f=j(()=>{const R=[...new Set([...o.values()].map(C=>C.value))].sort((C,k)=>C-k),E=[];for(const C of R){const k=r.value.filter(A=>{var O;return((O=o.get(A))==null?void 0:O.value)===C});E.push(...k)}return rI(E,s,i,a)}),h=j(()=>!Array.from(c.values()).some(R=>R.value)),p=j(()=>f.value[f.value.length-1].layer),m=ee(()=>({"--v-layout-left":me(p.value.left),"--v-layout-right":me(p.value.right),"--v-layout-top":me(p.value.top),"--v-layout-bottom":me(p.value.bottom),...h.value?void 0:{transition:"none"}})),y=j(()=>f.value.slice(1).map((R,E)=>{let{id:C}=R;const{layer:k}=f.value[E],A=i.get(C),O=s.get(C);return{id:C,...k,size:Number(A.value),position:O.value}})),g=R=>y.value.find(E=>E.id===R),v=mt("createLayout"),_=be(!1);return zr(()=>{_.value=!0}),Mt(Bo,{register:(R,E)=>{let{id:C,order:k,position:A,layoutSize:O,elementSize:T,active:P,disableTransitions:N,absolute:z}=E;o.set(C,k),s.set(C,A),i.set(C,O),a.set(C,P),N&&c.set(C,N);const q=Zs(Sb,v==null?void 0:v.vnode).indexOf(R);q>-1?r.value.splice(q,0,C):r.value.push(C);const D=j(()=>y.value.findIndex(ce=>ce.id===C)),re=j(()=>n.value+f.value.length*2-D.value*2),U=j(()=>{const ce=A.value==="left"||A.value==="right",ue=A.value==="right",Ce=A.value==="bottom",Ne=T.value??O.value,Ve=Ne===0?"%":"px",x={[A.value]:0,zIndex:re.value,transform:`translate${ce?"X":"Y"}(${(P.value?0:-(Ne===0?100:Ne))*(ue||Ce?-1:1)}${Ve})`,position:z.value||n.value!==Rm?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!_.value)return x;const W=y.value[D.value],K=u.value.get(C);return K&&(W[K.position]+=K.amount),{...x,height:ce?`calc(100% - ${W.top}px - ${W.bottom}px)`:T.value?`${T.value}px`:void 0,left:ue?void 0:`${W.left}px`,right:ue?`${W.right}px`:void 0,top:A.value!=="bottom"?`${W.top}px`:void 0,bottom:A.value!=="top"?`${W.bottom}px`:void 0,width:ce?T.value?`${T.value}px`:void 0:`calc(100% - ${W.left}px - ${W.right}px)`}}),ie=j(()=>({zIndex:re.value-1}));return{layoutItemStyles:U,layoutItemScrimStyles:ie,zIndex:re}},unregister:R=>{o.delete(R),s.delete(R),i.delete(R),a.delete(R),c.delete(R),r.value=r.value.filter(E=>E!==R)},mainRect:p,mainStyles:m,getLayoutItem:g,items:y,layoutRect:d,rootZIndex:n}),{layoutClasses:ee(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),layoutStyles:ee(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0})),getLayoutItem:g,items:y,layoutRect:d,layoutRef:l}}function Eb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=At(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=Es();return a.run(()=>{const c=NT(r.defaults),l=Uk(r.display,r.ssr),d=eI(r.theme),u=YT(r.icons),f=QT(r.locale),h=Bk(r.date,f),p=zk(r.goTo,f);function m(g){for(const _ in o)g.directive(_,o[_]);for(const _ in i)g.component(_,i[_]);for(const _ in s)g.component(_,Ni({...s[_],name:_,aliasName:s[_].name}));const v=Es();if(v.run(()=>{d.install(g)}),g.onUnmount(()=>v.stop()),g.provide(vi,c),g.provide(fd,l),g.provide($o,d),g.provide(dd,u),g.provide(Pc,f),g.provide(gb,h.options),g.provide(Sm,h.instance),g.provide(yb,p),et&&r.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:_}=g;g.mount=function(){const S=_(...arguments);return vt(()=>l.update()),g.mount=_,S}}g.mixin({computed:{$vuetify(){return pt({defaults:Hs.call(this,vi),display:Hs.call(this,fd),theme:Hs.call(this,$o),icons:Hs.call(this,dd),locale:Hs.call(this,Pc),date:Hs.call(this,Sm)})}}})}function y(){a.stop()}return{install:m,unmount:y,defaults:c,display:l,theme:d,icons:u,locale:f,date:h,goTo:p}})}const iI="3.11.8";Eb.version=iI;function Hs(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const oI=Eb({theme:{defaultTheme:"dark"}});/*!
|
||
* pinia v3.0.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let wb;const bl=e=>wb=e,Cb=Symbol();function hd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var So;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(So||(So={}));function Tb(){const e=Es(!0),t=e.run(()=>we({}));let n=[],r=[];const s=bf({install(i){bl(s),s._a=i,i.provide(Cb,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const kb=()=>{};function Am(e,t,n,r=kb){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&hf()&&Ct(s),s}function Vs(e,...t){e.forEach(n=>{n(...t)})}const aI=e=>e(),Mm=Symbol(),au=Symbol();function pd(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];hd(s)&&hd(r)&&e.hasOwnProperty(n)&&!Je(r)&&!Qn(r)?e[n]=pd(s,r):e[n]=r}return e}const cI=Symbol();function lI(e){return!hd(e)||!Object.prototype.hasOwnProperty.call(e,cI)}const{assign:Cr}=Object;function uI(e){return!!(Je(e)&&e.effect)}function dI(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const d=Sf(n.state.value[e]);return Cr(d,i,Object.keys(o||{}).reduce((u,f)=>(u[f]=bf(j(()=>{bl(n);const h=n._s.get(e);return o[f].call(h,h)})),u),{}))}return c=Ib(e,l,t,n,r,!0),c}function Ib(e,t,n={},r,s,i){let o;const a=Cr({actions:{}},n),c={deep:!0};let l,d,u=new Set,f=new Set,h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={});let m;function y(C){let k;l=d=!1,typeof C=="function"?(C(r.state.value[e]),k={type:So.patchFunction,storeId:e,events:h}):(pd(r.state.value[e],C),k={type:So.patchObject,payload:C,storeId:e,events:h});const A=m=Symbol();vt().then(()=>{m===A&&(l=!0)}),d=!0,Vs(u,k,r.state.value[e])}const g=i?function(){const{state:k}=n,A=k?k():{};this.$patch(O=>{Cr(O,A)})}:kb;function v(){o.stop(),u.clear(),f.clear(),r._s.delete(e)}const _=(C,k="")=>{if(Mm in C)return C[au]=k,C;const A=function(){bl(r);const O=Array.from(arguments),T=new Set,P=new Set;function N(q){T.add(q)}function z(q){P.add(q)}Vs(f,{args:O,name:A[au],store:M,after:N,onError:z});let X;try{X=C.apply(this&&this.$id===e?this:M,O)}catch(q){throw Vs(P,q),q}return X instanceof Promise?X.then(q=>(Vs(T,q),q)).catch(q=>(Vs(P,q),Promise.reject(q))):(Vs(T,X),X)};return A[Mm]=!0,A[au]=k,A},S={_p:r,$id:e,$onAction:Am.bind(null,f),$patch:y,$reset:g,$subscribe(C,k={}){const A=Am(u,C,k.detached,()=>O()),O=o.run(()=>Se(()=>r.state.value[e],T=>{(k.flush==="sync"?d:l)&&C({storeId:e,type:So.direct,events:h},T)},Cr({},c,k)));return A},$dispose:v},M=pt(S);r._s.set(e,M);const E=(r._a&&r._a.runWithContext||aI)(()=>r._e.run(()=>(o=Es()).run(()=>t({action:_}))));for(const C in E){const k=E[C];if(Je(k)&&!uI(k)||Qn(k))i||(p&&lI(k)&&(Je(k)?k.value=p[C]:pd(k,p[C])),r.state.value[e][C]=k);else if(typeof k=="function"){const A=_(k,C);E[C]=A,a.actions[C]=k}}return Cr(M,E),Cr(de(M),E),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:C=>{y(k=>{Cr(k,C)})}}),r._p.forEach(C=>{Cr(M,o.run(()=>C({store:M,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(M.$state,p),l=!0,d=!0,M}/*! #__NO_SIDE_EFFECTS__ */function x4(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const c=g1();return o=o||(c?Le(Cb,null):null),o&&bl(o),o=wb,o._s.has(e)||(s?Ib(e,t,r,o):dI(e,r,o)),o._s.get(e)}return i.$id=e,i}function R4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,s):s[i]},n),{})}function A4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}const fI=Tb();/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Ks=typeof document<"u";function xb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function hI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&xb(e.default)}const $e=Object.assign;function cu(e,t){const n={};for(const r in t){const s=t[r];n[r]=Tn(s)?s.map(e):e(s)}return n}const Eo=()=>{},Tn=Array.isArray;function Pm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Rb=/#/g,pI=/&/g,mI=/\//g,gI=/=/g,vI=/\?/g,Ab=/\+/g,yI=/%5B/g,_I=/%5D/g,Mb=/%5E/g,bI=/%60/g,Pb=/%7B/g,SI=/%7C/g,Ob=/%7D/g,EI=/%20/g;function zf(e){return e==null?"":encodeURI(""+e).replace(SI,"|").replace(yI,"[").replace(_I,"]")}function wI(e){return zf(e).replace(Pb,"{").replace(Ob,"}").replace(Mb,"^")}function md(e){return zf(e).replace(Ab,"%2B").replace(EI,"+").replace(Rb,"%23").replace(pI,"%26").replace(bI,"`").replace(Pb,"{").replace(Ob,"}").replace(Mb,"^")}function CI(e){return md(e).replace(gI,"%3D")}function TI(e){return zf(e).replace(Rb,"%23").replace(vI,"%3F")}function kI(e){return TI(e).replace(mI,"%2F")}function Ho(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const II=/\/$/,xI=e=>e.replace(II,"");function lu(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=t.slice(0,c),i=t.slice(c,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=PI(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:Ho(o)}}function RI(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Om(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function AI(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&yi(t.matched[r],n.matched[s])&&Lb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!MI(e[n],t[n]))return!1;return!0}function MI(e,t){return Tn(e)?Lm(e,t):Tn(t)?Lm(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Lm(e,t){return Tn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function PI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Sr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let gd=function(e){return e.pop="pop",e.push="push",e}({}),uu=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function OI(e){if(!e)if(Ks){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xI(e)}const LI=/^[^#]+#/;function NI(e,t){return e.replace(LI,"#")+t}function DI(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Sl=()=>({left:window.scrollX,top:window.scrollY});function FI(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=DI(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nm(e,t){return(history.state?history.state.position-t:-1)+e}const vd=new Map;function $I(e,t){vd.set(e,t)}function BI(e){const t=vd.get(e);return vd.delete(e),t}function HI(e){return typeof e=="string"||e&&typeof e=="object"}function Nb(e){return typeof e=="string"||typeof e=="symbol"}let ot=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Db=Symbol("");ot.MATCHER_NOT_FOUND+"",ot.NAVIGATION_GUARD_REDIRECT+"",ot.NAVIGATION_ABORTED+"",ot.NAVIGATION_CANCELLED+"",ot.NAVIGATION_DUPLICATED+"";function _i(e,t){return $e(new Error,{type:e,[Db]:!0},t)}function qn(e,t){return e instanceof Error&&Db in e&&(t==null||!!(e.type&t))}const VI=["params","query","hash"];function UI(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of VI)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function WI(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Ab," "),i=s.indexOf("="),o=Ho(i<0?s:s.slice(0,i)),a=i<0?null:Ho(s.slice(i+1));if(o in t){let c=t[o];Tn(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function Dm(e){let t="";for(let n in e){const r=e[n];if(n=CI(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Tn(r)?r.map(s=>s&&md(s)):[r&&md(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function jI(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Tn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const zI=Symbol(""),Fm=Symbol(""),El=Symbol(""),qf=Symbol(""),yd=Symbol("");function no(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function xr(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=f=>{f===!1?c(_i(ot.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):HI(f)?c(_i(ot.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},d=i(()=>e.call(r&&r.instances[s],t,n,l));let u=Promise.resolve(d);e.length<3&&(u=u.then(l)),u.catch(f=>c(f))})}function du(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(xb(c)){const l=(c.__vccOpts||c)[t];l&&i.push(xr(l,n,r,o,a,s))}else{let l=c();i.push(()=>l.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=hI(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&xr(f,n,r,o,a,s)()}))}}return i}function qI(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(l=>yi(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>yi(l,c))||s.push(c))}return[n,r,s]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let GI=()=>location.protocol+"//"+location.host;function Fb(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),Om(a,"")}return Om(n,e)+r+s}function KI(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=Fb(e,location),p=n.value,m=t.value;let y=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}y=m?f.position-m.position:0}else r(h);s.forEach(g=>{g(n.value,p,{delta:y,type:gd.pop,direction:y?y>0?uu.forward:uu.back:uu.unknown})})};function c(){o=n.value}function l(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return i.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState($e({},f.state,{scroll:Sl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:c,listen:l,destroy:u}}function $m(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Sl():null}}function YI(e){const{history:t,location:n}=window,r={value:Fb(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,l,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:GI()+e+c;try{t[d?"replaceState":"pushState"](l,"",f),s.value=l}catch(h){console.error(h),n[d?"replace":"assign"](f)}}function o(c,l){i(c,$e({},t.state,$m(s.value.back,c,s.value.forward,!0),l,{position:s.value.position}),!0),r.value=c}function a(c,l){const d=$e({},s.value,t.state,{forward:c,scroll:Sl()});i(d.current,d,!0),i(c,$e({},$m(r.value,c,null),{position:d.position+1},l),!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function XI(e){e=OI(e);const t=YI(e),n=KI(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=$e({location:"",base:e,go:r,createHref:NI.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let ls=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ft=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ft||{});const JI={type:ls.Static,value:""},ZI=/[a-zA-Z0-9_]/;function QI(e){if(!e)return[[]];if(e==="/")return[[JI]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${l}": ${h}`)}let n=ft.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",d="";function u(){l&&(n===ft.Static?i.push({type:ls.Static,value:l}):n===ft.Param||n===ft.ParamRegExp||n===ft.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ls.Param,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==ft.ParamRegExp){r=n,n=ft.EscapeNext;continue}switch(n){case ft.Static:c==="/"?(l&&u(),o()):c===":"?(u(),n=ft.Param):f();break;case ft.EscapeNext:f(),n=r;break;case ft.Param:c==="("?n=ft.ParamRegExp:ZI.test(c)?f():(u(),n=ft.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case ft.ParamRegExp:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=ft.ParamRegExpEnd:d+=c;break;case ft.ParamRegExpEnd:u(),n=ft.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===ft.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),u(),o(),s}const Bm="[^/]+?",ex={sensitive:!1,strict:!1,start:!0,end:!0};var Nt=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Nt||{});const tx=/[.+*?^${}()[\]/\\]/g;function nx(e,t){const n=$e({},ex,t),r=[];let s=n.start?"^":"";const i=[];for(const l of e){const d=l.length?[]:[Nt.Root];n.strict&&!l.length&&(s+="/");for(let u=0;u<l.length;u++){const f=l[u];let h=Nt.Segment+(n.sensitive?Nt.BonusCaseSensitive:0);if(f.type===ls.Static)u||(s+="/"),s+=f.value.replace(tx,"\\$&"),h+=Nt.Static;else if(f.type===ls.Param){const{value:p,repeatable:m,optional:y,regexp:g}=f;i.push({name:p,repeatable:m,optional:y});const v=g||Bm;if(v!==Bm){h+=Nt.BonusCustomRegExp;try{`${v}`}catch(S){throw new Error(`Invalid custom RegExp for param "${p}" (${v}): `+S.message)}}let _=m?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;u||(_=y&&l.length<2?`(?:/${_})`:"/"+_),y&&(_+="?"),s+=_,h+=Nt.Dynamic,y&&(h+=Nt.BonusOptional),m&&(h+=Nt.BonusRepeatable),v===".*"&&(h+=Nt.BonusWildcard)}d.push(h)}r.push(d)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=Nt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(l){const d=l.match(o),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",p=i[f-1];u[p.name]=h&&p.repeatable?h.split("/"):h}return u}function c(l){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===ls.Static)d+=h.value;else if(h.type===ls.Param){const{value:p,repeatable:m,optional:y}=h,g=p in l?l[p]:"";if(Tn(g)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const v=Tn(g)?g.join("/"):g;if(!v)if(y)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${p}"`);d+=v}}return d||"/"}return{re:o,score:r,keys:i,parse:a,stringify:c}}function rx(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Nt.Static+Nt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Nt.Static+Nt.Segment?1:-1:0}function $b(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=rx(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Hm(r))return 1;if(Hm(s))return-1}return s.length-r.length}function Hm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const sx={strict:!1,end:!0,sensitive:!1};function ix(e,t,n){const r=nx(QI(e.path),n),s=$e(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function ox(e,t){const n=[],r=new Map;t=Pm(sx,t);function s(u){return r.get(u)}function i(u,f,h){const p=!h,m=Um(u);m.aliasOf=h&&h.record;const y=Pm(t,u),g=[m];if("alias"in u){const S=typeof u.alias=="string"?[u.alias]:u.alias;for(const M of S)g.push(Um($e({},m,{components:h?h.record.components:m.components,path:M,aliasOf:h?h.record:m})))}let v,_;for(const S of g){const{path:M}=S;if(f&&M[0]!=="/"){const R=f.record.path,E=R[R.length-1]==="/"?"":"/";S.path=f.record.path+(M&&E+M)}if(v=ix(S,f,y),h?h.alias.push(v):(_=_||v,_!==v&&_.alias.push(v),p&&u.name&&!Wm(v)&&o(u.name)),Bb(v)&&c(v),m.children){const R=m.children;for(let E=0;E<R.length;E++)i(R[E],v,h&&h.children[E])}h=h||v}return _?()=>{o(_)}:Eo}function o(u){if(Nb(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function c(u){const f=lx(u,n);n.splice(f,0,u),u.record.name&&!Wm(u)&&r.set(u.record.name,u)}function l(u,f){let h,p={},m,y;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u});y=h.record.name,p=$e(Vm(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),u.params&&Vm(u.params,h.keys.map(_=>_.name))),m=h.stringify(p)}else if(u.path!=null)m=u.path,h=n.find(_=>_.re.test(m)),h&&(p=h.parse(m),y=h.record.name);else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u,currentLocation:f});y=h.record.name,p=$e({},f.params,u.params),m=h.stringify(p)}const g=[];let v=h;for(;v;)g.unshift(v.record),v=v.parent;return{name:y,path:m,params:p,matched:g,meta:cx(g)}}e.forEach(u=>i(u));function d(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:s}}function Vm(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Um(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ax(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ax(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Wm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function cx(e){return e.reduce((t,n)=>$e(t,n.meta),{})}function lx(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;$b(e,t[i])<0?r=i:n=i+1}const s=ux(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ux(e){let t=e;for(;t=t.parent;)if(Bb(t)&&$b(e,t)===0)return t}function Bb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jm(e){const t=Le(El),n=Le(qf),r=j(()=>{const c=Ut(e.to);return t.resolve(c)}),s=j(()=>{const{matched:c}=r.value,{length:l}=c,d=c[l-1],u=n.matched;if(!d||!u.length)return-1;const f=u.findIndex(yi.bind(null,d));if(f>-1)return f;const h=zm(c[l-2]);return l>1&&zm(d)===h&&u[u.length-1].path!==h?u.findIndex(yi.bind(null,c[l-2])):f}),i=j(()=>s.value>-1&&mx(n.params,r.value.params)),o=j(()=>s.value>-1&&s.value===n.matched.length-1&&Lb(n.params,r.value.params));function a(c={}){if(px(c)){const l=t[Ut(e.replace)?"replace":"push"](Ut(e.to)).catch(Eo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function dx(e){return e.length===1?e[0]:e}const fx=fl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:jm,setup(e,{slots:t}){const n=pt(jm(e)),{options:r}=Le(El),s=j(()=>({[qm(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[qm(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&dx(t.default(n));return e.custom?i:qr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),hx=fx;function px(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function mx(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Tn(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function zm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qm=(e,t,n)=>e??t??n,gx=fl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Le(yd),s=j(()=>e.route||r.value),i=Le(Fm,0),o=j(()=>{let l=Ut(i);const{matched:d}=s.value;let u;for(;(u=d[l])&&!u.components;)l++;return l}),a=j(()=>s.value.matched[o.value]);Mt(Fm,j(()=>o.value+1)),Mt(zI,a),Mt(yd,s);const c=we();return Se(()=>[c.value,a.value,e.name],([l,d,u],[f,h,p])=>{d&&(d.instances[u]=l,h&&h!==d&&l&&l===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),l&&d&&(!h||!yi(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=s.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Gm(n.default,{Component:f,route:l});const h=u.props[d],p=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=qr(f,$e({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:c}));return Gm(n.default,{Component:y,route:l})||y}}});function Gm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const vx=gx;function yx(e){const t=ox(e.routes,e),n=e.parseQuery||WI,r=e.stringifyQuery||Dm,s=e.history,i=no(),o=no(),a=no(),c=be(Sr);let l=Sr;Ks&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=cu.bind(null,x=>""+x),u=cu.bind(null,kI),f=cu.bind(null,Ho);function h(x,W){let K,ne;return Nb(x)?(K=t.getRecordMatcher(x),ne=W):ne=x,t.addRoute(ne,K)}function p(x){const W=t.getRecordMatcher(x);W&&t.removeRoute(W)}function m(){return t.getRoutes().map(x=>x.record)}function y(x){return!!t.getRecordMatcher(x)}function g(x,W){if(W=$e({},W||c.value),typeof x=="string"){const I=lu(n,x,W.path),L=t.resolve({path:I.path},W),$=s.createHref(I.fullPath);return $e(I,L,{params:f(L.params),hash:Ho(I.hash),redirectedFrom:void 0,href:$})}let K;if(x.path!=null)K=$e({},x,{path:lu(n,x.path,W.path).path});else{const I=$e({},x.params);for(const L in I)I[L]==null&&delete I[L];K=$e({},x,{params:u(I)}),W.params=u(W.params)}const ne=t.resolve(K,W),ye=x.hash||"";ne.params=d(f(ne.params));const b=RI(r,$e({},x,{hash:wI(ye),path:ne.path})),w=s.createHref(b);return $e({fullPath:b,hash:ye,query:r===Dm?jI(x.query):x.query||{}},ne,{redirectedFrom:void 0,href:w})}function v(x){return typeof x=="string"?lu(n,x,c.value.path):$e({},x)}function _(x,W){if(l!==x)return _i(ot.NAVIGATION_CANCELLED,{from:W,to:x})}function S(x){return E(x)}function M(x){return S($e(v(x),{replace:!0}))}function R(x,W){const K=x.matched[x.matched.length-1];if(K&&K.redirect){const{redirect:ne}=K;let ye=typeof ne=="function"?ne(x,W):ne;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=v(ye):{path:ye},ye.params={}),$e({query:x.query,hash:x.hash,params:ye.path!=null?{}:x.params},ye)}}function E(x,W){const K=l=g(x),ne=c.value,ye=x.state,b=x.force,w=x.replace===!0,I=R(K,ne);if(I)return E($e(v(I),{state:typeof I=="object"?$e({},ye,I.state):ye,force:b,replace:w}),W||K);const L=K;L.redirectedFrom=W;let $;return!b&&AI(r,ne,K)&&($=_i(ot.NAVIGATION_DUPLICATED,{to:L,from:ne}),ie(ne,ne,!0,!1)),($?Promise.resolve($):A(L,ne)).catch(F=>qn(F)?qn(F,ot.NAVIGATION_GUARD_REDIRECT)?F:U(F):D(F,L,ne)).then(F=>{if(F){if(qn(F,ot.NAVIGATION_GUARD_REDIRECT))return E($e({replace:w},v(F.to),{state:typeof F.to=="object"?$e({},ye,F.to.state):ye,force:b}),W||L)}else F=T(L,ne,!0,w,ye);return O(L,ne,F),F})}function C(x,W){const K=_(x,W);return K?Promise.reject(K):Promise.resolve()}function k(x){const W=Ce.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(x):x()}function A(x,W){let K;const[ne,ye,b]=qI(x,W);K=du(ne.reverse(),"beforeRouteLeave",x,W);for(const I of ne)I.leaveGuards.forEach(L=>{K.push(xr(L,x,W))});const w=C.bind(null,x,W);return K.push(w),Ve(K).then(()=>{K=[];for(const I of i.list())K.push(xr(I,x,W));return K.push(w),Ve(K)}).then(()=>{K=du(ye,"beforeRouteUpdate",x,W);for(const I of ye)I.updateGuards.forEach(L=>{K.push(xr(L,x,W))});return K.push(w),Ve(K)}).then(()=>{K=[];for(const I of b)if(I.beforeEnter)if(Tn(I.beforeEnter))for(const L of I.beforeEnter)K.push(xr(L,x,W));else K.push(xr(I.beforeEnter,x,W));return K.push(w),Ve(K)}).then(()=>(x.matched.forEach(I=>I.enterCallbacks={}),K=du(b,"beforeRouteEnter",x,W,k),K.push(w),Ve(K))).then(()=>{K=[];for(const I of o.list())K.push(xr(I,x,W));return K.push(w),Ve(K)}).catch(I=>qn(I,ot.NAVIGATION_CANCELLED)?I:Promise.reject(I))}function O(x,W,K){a.list().forEach(ne=>k(()=>ne(x,W,K)))}function T(x,W,K,ne,ye){const b=_(x,W);if(b)return b;const w=W===Sr,I=Ks?history.state:{};K&&(ne||w?s.replace(x.fullPath,$e({scroll:w&&I&&I.scroll},ye)):s.push(x.fullPath,ye)),c.value=x,ie(x,W,K,w),U()}let P;function N(){P||(P=s.listen((x,W,K)=>{if(!Ne.listening)return;const ne=g(x),ye=R(ne,Ne.currentRoute.value);if(ye){E($e(ye,{replace:!0,force:!0}),ne).catch(Eo);return}l=ne;const b=c.value;Ks&&$I(Nm(b.fullPath,K.delta),Sl()),A(ne,b).catch(w=>qn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_CANCELLED)?w:qn(w,ot.NAVIGATION_GUARD_REDIRECT)?(E($e(v(w.to),{force:!0}),ne).then(I=>{qn(I,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===gd.pop&&s.go(-1,!1)}).catch(Eo),Promise.reject()):(K.delta&&s.go(-K.delta,!1),D(w,ne,b))).then(w=>{w=w||T(ne,b,!1),w&&(K.delta&&!qn(w,ot.NAVIGATION_CANCELLED)?s.go(-K.delta,!1):K.type===gd.pop&&qn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),O(ne,b,w)}).catch(Eo)}))}let z=no(),X=no(),q;function D(x,W,K){U(x);const ne=X.list();return ne.length?ne.forEach(ye=>ye(x,W,K)):console.error(x),Promise.reject(x)}function re(){return q&&c.value!==Sr?Promise.resolve():new Promise((x,W)=>{z.add([x,W])})}function U(x){return q||(q=!x,N(),z.list().forEach(([W,K])=>x?K(x):W()),z.reset()),x}function ie(x,W,K,ne){const{scrollBehavior:ye}=e;if(!Ks||!ye)return Promise.resolve();const b=!K&&BI(Nm(x.fullPath,0))||(ne||!K)&&history.state&&history.state.scroll||null;return vt().then(()=>ye(x,W,b)).then(w=>w&&FI(w)).catch(w=>D(w,x,W))}const ce=x=>s.go(x);let ue;const Ce=new Set,Ne={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:g,options:e,push:S,replace:M,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:X.add,isReady:re,install(x){x.component("RouterLink",hx),x.component("RouterView",vx),x.config.globalProperties.$router=Ne,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Ut(c)}),Ks&&!ue&&c.value===Sr&&(ue=!0,S(s.location).catch(ne=>{}));const W={};for(const ne in Sr)Object.defineProperty(W,ne,{get:()=>c.value[ne],enumerable:!0});x.provide(El,Ne),x.provide(qf,$y(W)),x.provide(yd,c);const K=x.unmount;Ce.add(x),x.unmount=function(){Ce.delete(x),Ce.size<1&&(l=Sr,P&&P(),P=null,c.value=Sr,ue=!1,q=!1),K()}}};function Ve(x){return x.reduce((W,K)=>W.then(()=>k(K)),Promise.resolve())}return Ne}function M4(){return Le(El)}function P4(e){return Le(qf)}const _x=e=>{const t={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>yt(()=>import("./default-D04kVd6K.js"),__vite__mapDeps([0,1]),import.meta.url)})).forEach(([s,i])=>{let o=s.replace("/src/layouts/","").replace(".vue","");t[o]=i});function r(s,i=!0){return s.map(o=>{var a,c,l,d,u,f;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=r(o.children,!1)),i){if(!o.component&&((c=o.children)==null?void 0:c.find(p=>{var m;return(p.path===""||p.path==="/")&&((m=p.meta)==null?void 0:m.isLayout)})))return o;if(((l=o.meta)==null?void 0:l.layout)!==!1)return{path:o.path,component:t[((d=o.meta)==null?void 0:d.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(u=o.meta)!=null&&u.layout?{path:o.path,component:t[(f=o.meta)==null?void 0:f.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return r(e)},bx=[{path:"/",name:"/",component:()=>yt(()=>import("./index-IqnSk473.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url)},{path:"/404",name:"/404",component:()=>yt(()=>import("./404-BxejNl3W.js"),__vite__mapDeps([40,14,35]),import.meta.url)},{path:"/authorize",name:"/authorize",component:()=>yt(()=>import("./authorize-DrQd2t0N.js"),__vite__mapDeps([41,14,35]),import.meta.url)},{path:"/CacheManagement",name:"/CacheManagement",component:()=>yt(()=>import("./CacheManagement-Cy1DxUGk.js"),__vite__mapDeps([42,6,7,37,38,12,13,8,9,14,35]),import.meta.url)},{path:"/cses2wakeup",name:"/cses2wakeup",component:()=>yt(()=>import("./cses2wakeup-Cgt6H-Ka.js"),__vite__mapDeps([43,14,6,7,44,33,22,19,15,16,20,34,21,12,13,23,45,10,11,17,18,8,9,35,46]),import.meta.url)},{path:"/debug",name:"/debug",component:()=>yt(()=>import("./debug-BAYtyZE1.js"),__vite__mapDeps([47,35,48]),import.meta.url)},{path:"/debug-init",name:"/debug-init",component:()=>yt(()=>import("./debug-init-Bxo1OUw2.js"),__vite__mapDeps([49,4,5,14,36,15,16,35]),import.meta.url)},{path:"/debug-socket",name:"/debug-socket",component:()=>yt(()=>import("./debug-socket-BTsvV0tt.js"),__vite__mapDeps([50,27,5,32,14,12,13,15,16,17,18,35]),import.meta.url)},{path:"/exam-editor",children:[{path:":id",name:"/exam-editor/[id]",component:()=>yt(()=>import("./_id_-CbB3l-yw.js"),__vite__mapDeps([51,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29,30,35]),import.meta.url)}]},{path:"/examschedule",name:"/examschedule",component:()=>yt(()=>import("./examschedule-Brajg9r6.js"),__vite__mapDeps([52,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,35,53]),import.meta.url)},{path:"/list",children:[{path:"",name:"/list/",component:()=>yt(()=>import("./index-VU08wDOe.js"),__vite__mapDeps([54,4,5,29,30,15,16,35]),import.meta.url)},{path:":id",name:"/list/[id]",component:()=>yt(()=>import("./_id_-C8vlKyL8.js"),__vite__mapDeps([55,4,5,29,30,15,16,22,19,20,12,13,17,18,35]),import.meta.url)}]},{path:"/settings",name:"/settings",component:()=>yt(()=>import("./settings-NykJBnE0.js"),__vite__mapDeps([56,28,29,30,15,16,21,22,19,20,12,13,23,31,4,5,6,7,14,35,33,34,17,18,36,37,38,44,45,24,25,57]),import.meta.url)},{path:"/socket-debugger",name:"/socket-debugger",component:()=>yt(()=>import("./socket-debugger-CdpNWnZK.js"),__vite__mapDeps([58,27,5,14,12,13,15,16,17,18,19,20,6,7,35,59]),import.meta.url)}],wl=yx({history:XI("./"),routes:_x(bx)});wl.onError((e,t)=>{var n,r;(r=(n=e==null?void 0:e.message)==null?void 0:n.includes)!=null&&r.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",e):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(t.fullPath)):console.error(e)});wl.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});function Sx(e){e.use(oI).use(wl).use(fI)}async function Ex(){return typeof Notification<"u"&&Notification.requestPermission?await Notification.requestPermission()==="granted"?(console.log("通知权限已授予"),!0):(console.warn("通知权限被拒绝"),!1):(console.warn("浏览器不支持通知权限请求"),!1)}async function wx(){var e;try{return(e=navigator.storage)!=null&&e.persist?await navigator.storage.persist():!1}catch(t){return console.warn("请求持久性存储失败:",t),!1}}const fu="Classworks_settings",Km={"server.domain":"https://kv-service.houlang.cloud","server.siteKey":""},Tr={"device.uuid":{type:"string",default:"00000000-0000-4000-8000-000000000000",description:"设备唯一标识符",icon:"mdi-identifier"},"storage.persistOnLoad":{type:"boolean",default:!0,description:"是否在页面加载时自动请求持久性存储",icon:"mdi-database-sync"},"display.emptySubjectDisplay":{type:"string",default:"card",validate:e=>["card","button"].includes(e),description:"空科目的显示方式",icon:"mdi-card-outline"},"hitokoto.enabled":{type:"boolean",default:!0,description:"启用一言",icon:"mdi-comment-quote"},"hitokoto.refreshInterval":{type:"number",default:300,description:"刷新时间(秒,0为不自动刷新)",icon:"mdi-timer-refresh"},"display.dynamicSort":{type:"boolean",default:!0,description:"是否启用动态排序",icon:"mdi-sort-variant"},"display.showRandomButton":{type:"boolean",default:!1,description:"是否显示随机点人按钮",icon:"mdi-shuffle-variant"},"display.showFullscreenButton":{type:"boolean",default:!0,description:"是否显示全屏按钮",icon:"mdi-fullscreen"},"display.cardHoverEffect":{type:"boolean",default:!0,description:"是否启用卡片悬浮效果",icon:"mdi-gesture-tap"},"display.enhancedTouchMode":{type:"boolean",default:!0,description:"是否启用增强触摸模式",icon:"mdi-gesture-tap-button"},"display.showAntiScreenBurnCard":{type:"boolean",default:!1,description:"是否显示防烧屏忽悠卡片",icon:"mdi-monitor-shimmer"},"display.showListCard":{type:"boolean",default:!0,description:"是否显示列表卡片",icon:"mdi-list-box"},"display.showExamScheduleButton":{type:"boolean",default:!0,description:"是否显示考试看板",icon:"mdi-calendar-check"},"display.showQuickTools":{type:"boolean",default:!0,description:"是否显示快捷键盘",icon:"mdi-dialpad"},"display.forceDesktopMode":{type:"boolean",default:!1,description:"强制使用一体机UI模式",icon:"mdi-monitor"},"display.lateStudentsArePresent":{type:"boolean",default:!1,description:"将迟到人数算入出勤人数",icon:"mdi-clock-fast"},"server.domain":{type:"string",default:"",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("域名格式无效:",t),!1}},description:"后端服务器域名",icon:"mdi-web"},"server.classNumber":{type:"string",default:"高三八班",validate:e=>/.*/.test(e),description:"班级编号",icon:"mdi-account-group"},"server.siteKey":{type:"string",default:"",description:"网站令牌",icon:"mdi-key-chain"},"server.kvToken":{type:"string",default:"",description:"KV授权令牌",icon:"mdi-shield-key"},"server.authDomain":{type:"string",default:"https://kv.houlang.cloud",description:"授权服务器域名",icon:"mdi-shield-account",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("授权域名格式无效:",t),!1}}},"server.provider":{type:"string",default:"classworkscloud",validate:e=>["kv-local","kv-server","classworkscloud"].includes(e),description:"数据提供者",icon:"mdi-database"},"refresh.auto":{type:"boolean",default:!1,description:"是否启用自动刷新",icon:"mdi-refresh-auto"},"refresh.interval":{type:"number",default:300,validate:e=>e>=10&&e<=3600,description:"自动刷新间隔(秒)",icon:"mdi-timer-outline"},"font.size":{type:"number",default:28,validate:e=>e>=16&&e<=100,description:"字体大小",icon:"mdi-format-size"},"edit.autoSave":{type:"boolean",default:!0,description:"是否启用自动保存",icon:"mdi-content-save-outline"},"edit.blockNonTodayAutoSave":{type:"boolean",default:!0,description:"禁止自动保存非当天数据",icon:"mdi-calendar-lock"},"edit.refreshBeforeEdit":{type:"boolean",default:!0,description:"编辑前是否自动刷新",icon:"mdi-refresh"},"edit.confirmNonTodaySave":{type:"boolean",default:!0,description:"保存非当天数据需确认",icon:"mdi-calendar-alert"},"edit.blockPastDataEdit":{type:"boolean",default:!1,description:"禁止编辑过往数据",icon:"mdi-lock-clock"},"edit.autoSavePromptText":{type:"string",default:"喵?喵呜!",description:"自动保存模式提示文本",icon:"mdi-text-box-outline"},"edit.manualSavePromptText":{type:"string",default:"写完后点击上传谢谢喵",description:"手动保存模式提示文本",icon:"mdi-text-box-outline"},"developer.enabled":{type:"boolean",default:!1,description:"是否启用开发者选项",icon:"mdi-developer-board"},"developer.showDebugConfig":{type:"boolean",default:!1,description:"是否显示调试配置",icon:"mdi-bug-outline"},"developer.disableMessageLog":{type:"boolean",default:!1,description:"禁用消息日志记录",requireDeveloper:!0,icon:"mdi-message-off-outline"},"message.showSidebar":{type:"boolean",default:!0,description:"是否显示消息记录侧栏",requireDeveloper:!0,icon:"mdi-message-text-outline"},"message.maxActiveMessages":{type:"number",default:5,validate:e=>e>=1&&e<=10,description:"同时显示的最大消息数量",requireDeveloper:!0,icon:"mdi-message-badge-outline"},"message.timeout":{type:"number",default:5e3,validate:e=>e>=1e3&&e<=3e4,description:"消息自动关闭时间(毫秒)",requireDeveloper:!0,icon:"mdi-timer-sand"},"message.saveHistory":{type:"boolean",default:!0,description:"是否保存消息历史记录",requireDeveloper:!0,icon:"mdi-history"},"theme.mode":{type:"string",default:"dark",validate:e=>["light","dark"].includes(e),description:"主题模式",icon:"mdi-theme-light-dark"},"notification.singleSound":{type:"string",default:"Teams 默认.mp3",description:"单次通知铃声",icon:"mdi-bell-ring"},"notification.urgentSound":{type:"string",default:"Teams 默认通话铃.mp3",description:"持续通知铃声",icon:"mdi-bell-alert"},"randomPicker.enabled":{type:"boolean",default:!0,description:"是否启用随机点名功能",icon:"mdi-account-question"},"randomPicker.animation":{type:"boolean",default:!0,description:"是否启用随机点名动画效果",icon:"mdi-animation-play"},"randomPicker.defaultCount":{type:"number",default:1,validate:e=>e>=1&&e,description:"默认抽取人数",icon:"mdi-counter"},"randomPicker.excludeAbsent":{type:"boolean",default:!0,description:"是否排除请假学生",icon:"mdi-account-off"},"randomPicker.excludeLate":{type:"boolean",default:!1,description:"是否排除迟到学生",icon:"mdi-clock-alert"},"randomPicker.excludeExcluded":{type:"boolean",default:!0,description:"是否排除不参与学生",icon:"mdi-account-cancel"},"randomPicker.mode":{type:"string",default:"name",validate:e=>["name","number"].includes(e),description:"随机点名模式",icon:"mdi-format-list-numbered"},"randomPicker.maxNumber":{type:"number",default:60,validate:e=>e>=1&&e,description:"学号模式最大值",icon:"mdi-numeric"},"randomPicker.minNumber":{type:"number",default:1,validate:e=>e>=1&&e,description:"学号模式最小值",icon:"mdi-numeric-negative-1"},"pwa.hideInstallCard":{type:"boolean",default:!1,description:"不显示PWA安装卡片",icon:"mdi-download-off"}};class Cx{constructor(){this.settingsCache=null,this.isInitialized=!1}init(){this.isInitialized||(this.loadSettings(),this.isInitialized=!0)}loadSettings(){this.settingsCache={};try{const t=typeof localStorage<"u"?localStorage.getItem(fu):null;t&&(this.settingsCache=JSON.parse(t))}catch(t){console.error("加载设置失败:",t)}for(const[t,n]of Object.entries(Tr))t in this.settingsCache||(this.settingsCache[t]=n.default);return this.settingsCache}saveSettings(){if(!(typeof localStorage>"u"))try{localStorage.setItem(fu,JSON.stringify(this.settingsCache))}catch(t){console.error("保存设置失败:",t)}}getSetting(t){this.isInitialized||this.init();const n=Tr[t];if(!n)return console.warn(`未定义的设置项: ${t}`),null;if(n.requireDeveloper&&!this.settingsCache["developer.enabled"])return n.default;if(this.settingsCache["server.provider"]==="classworkscloud"&&Km[t]!==void 0)return Km[t];const r=this.settingsCache[t];return r!==void 0?r:n.default}setSetting(t,n){this.isInitialized||this.init();const r=Tr[t];if(!r)return console.warn(`未定义的设置项: ${t}`),!1;if(r.requireDeveloper&&!this.settingsCache["developer.enabled"])return console.warn(`设置项 ${t} 需要启用开发者选项`),!1;try{const s=this.settingsCache[t];if(typeof n!==r.type&&(n=r.type==="boolean"?!!n:r.type==="number"?Number(n):String(n)),r.validate&&!r.validate(n))return console.warn(`设置项 ${t} 的值无效`),!1;this.settingsCache[t]=n,this.saveSettings(),this.logSettingsChange(t,s,n);const i=r.legacyKey;return i&&typeof localStorage<"u"&&localStorage.setItem(i,n.toString()),!0}catch(s){return console.error(`设置配置项 ${t} 失败:`,s),!1}}logSettingsChange(t,n,r){this.settingsCache["developer.enabled"]&&this.settingsCache["developer.showDebugConfig"]&&console.log(`[Settings] ${t}:`,{old:n,new:r,time:new Date().toLocaleTimeString()})}resetSetting(t){this.isInitialized||this.init();const n=Tr[t];if(!n){console.warn(`未定义的设置项: ${t}`);return}this.settingsCache[t]=n.default,this.saveSettings()}resetAllSettings(){this.settingsCache={};for(const[t,n]of Object.entries(Tr))this.settingsCache[t]=n.default;this.saveSettings()}watchSettings(t){if(typeof window>"u")return()=>{};const n=r=>{r.key===fu&&(this.settingsCache=JSON.parse(r.newValue),t(this.settingsCache))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}getSettingDefinition(t){return Tr[t]||null}exportSettingsAsKeyValue(){this.isInitialized||this.init();const t={};for(const n in Tr)t[n]=this.getSetting(n);return t}}const gr=new Cx;typeof window<"u"&&gr.init();const Gf=e=>gr.getSetting(e),Tx=(e,t)=>gr.setSetting(e,t),kx=e=>gr.resetSetting(e),Ix=()=>gr.resetAllSettings(),xx=e=>gr.watchSettings(e),Rx=e=>gr.getSettingDefinition(e),Ax=()=>gr.exportSettingsAsKeyValue(),O4=Object.freeze(Object.defineProperty({__proto__:null,SettingsManager:gr,exportSettingsAsKeyValue:Ax,getSetting:Gf,getSettingDefinition:Rx,requestNotificationPermission:Ex,requestPersistentStorage:wx,resetAllSettings:Ix,resetSetting:kx,setSetting:Tx,settingsDefinitions:Tr,watchSettings:xx},Symbol.toStringTag,{value:"Module"}));class Mx{constructor(){this.logs=[]}async addLog(t){return this.logs.push(t),this.logs.length>100&&this.logs.shift(),!0}async getLogs(t=20){return this.logs.slice(-t).reverse()}}const Qa=new Mx,Dn=[];let ec=null,Ln=null;const ro={SUCCESS:"success",ERROR:"error",INFO:"info",WARNING:"warning"},Px={timeout:3e3,showSnackbar:!0,addToLog:!0};async function La(e,t,n="",r={}){const s={...Px,...r},i={id:Date.now()+Math.random(),type:e,title:t,content:n.substring(0,500),timestamp:new Date};if(s.addToLog)try{for(await Qa.addLog(i),Dn.unshift(i);Dn.length>Gf("message.maxActiveMessages");)Dn.pop();Ln==null||Ln(Dn)}catch(o){console.error("保存日志失败:",o)}return s.showSnackbar&&(ec==null||ec(i)),i}function Ox(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}const Ys={install:e=>{e.config.globalProperties.$message={success:(t,n,r)=>La(ro.SUCCESS,t,n,r),error:(t,n,r)=>La(ro.ERROR,t,n,r),info:(t,n,r)=>La(ro.INFO,t,n,r),warning:(t,n,r)=>La(ro.WARNING,t,n,r)}},onSnackbar:e=>{ec=e},onLog:e=>{Ln=e},getMessages:async()=>{try{return await Qa.getLogs()}catch(e){return console.error("获取日志失败:",e),[...Dn]}},clearMessages:async()=>{try{await Qa.clearLogs(),Dn.length=0,Ln==null||Ln(Dn)}catch(e){console.error("清除日志失败:",e)}},MessageType:ro,markAsRead:()=>{},deleteMessage:async e=>{try{await Qa.deleteLog(e);const t=Dn.findIndex(n=>n.id===e);t!==-1&&Dn.splice(t,1),Ln==null||Ln(Dn)}catch(t){console.error("删除消息失败:",t)}},getUnreadCount:()=>0,debounce:Ox},Hb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Fi=le({border:[Boolean,Number,String]},"border");function $i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{borderClasses:j(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(s=>`border-${s}`):[]})}}const Lx=[null,"default","comfortable","compact"],Ms=le({density:{type:String,default:"default",validator:e=>Lx.includes(e)}},"density");function Bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{densityClasses:ee(()=>`${t}--density-${e.density}`)}}const oa=le({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function aa(e){return{elevationClasses:ee(()=>{const n=Je(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const vr=le({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function yr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{roundedClasses:j(()=>{const r=Je(e)?e.value:e.rounded,s=Je(e)?!1:e.tile,i=[];if(s||r===!1)i.push("rounded-0");else if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const Pt=le({tag:{type:[String,Object,Function],default:"div"}},"tag");function Kf(e){return Df(()=>{const{class:t,style:n}=Nx(e);return{colorClasses:t,colorStyles:n}})}function bi(e){const{colorClasses:t,colorStyles:n}=Kf(()=>({text:bt(e)}));return{textColorClasses:t,textColorStyles:n}}function li(e){const{colorClasses:t,colorStyles:n}=Kf(()=>({background:bt(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function Nx(e){const t=bt(e),n=[],r={};if(t.background)if(ld(t.background)){if(r.backgroundColor=t.background,!t.text&&kT(t.background)){const s=Bn(t.background);if(s.a==null||s.a===1){const i=ob(s);r.color=i,r.caretColor=i}}}else n.push(`bg-${t.background}`);return t.text&&(ld(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const Dx=["elevated","flat","tonal","outlined","text","plain"];function ca(e,t){return se(Qe,null,[e&&se("span",{key:"overlay",class:Oe(`${t}__overlay`)},null),se("span",{key:"underlay",class:Oe(`${t}__underlay`)},null)])}const Ps=le({color:String,variant:{type:String,default:"elevated",validator:e=>Dx.includes(e)}},"variant");function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();const n=ee(()=>{const{variant:i}=bt(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=Kf(()=>{const{variant:i,color:o}=bt(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}});return{colorClasses:r,colorStyles:s,variantClasses:n}}const Vb=le({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Fi(),...ct(),...Ms(),...oa(),...vr(),...Pt(),...nn(),...Ps()},"VBtnGroup"),Ym=Fe()({name:"VBtnGroup",props:Vb(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{densityClasses:s}=Bi(e),{borderClasses:i}=$i(e),{elevationClasses:o}=aa(e),{roundedClasses:a}=yr(e);yl({VBtn:{height:ee(()=>e.direction==="horizontal"?"auto":null),baseColor:ee(()=>e.baseColor),color:ee(()=>e.color),density:ee(()=>e.density),flat:!0,variant:ee(()=>e.variant)}}),tt(()=>B(e.tag,{class:Oe(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class]),style:Xe(e.style)},n))}}),Fx=le({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),$x=le({value:null,disabled:Boolean,selectedClass:String},"group-item");function Bx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=mt("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=n_();Mt(Symbol.for(`${t.description}:id`),s);const i=Le(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=ee(()=>e.value),a=j(()=>!!(i.disabled.value||e.disabled));function c(){i==null||i.register({id:s,value:o,disabled:a},r)}function l(){i==null||i.unregister(s)}c(),kn(()=>l());const d=j(()=>i.isSelected(s)),u=j(()=>i.items.value[0].id===s),f=j(()=>i.items.value[i.items.value.length-1].id===s),h=j(()=>d.value&&[i.selectedClass.value,e.selectedClass]);return Se(d,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:s,isSelected:d,isFirst:u,isLast:f,toggle:()=>i.select(s,!d.value),select:p=>i.select(s,p),selectedClass:h,value:o,disabled:a,group:i,register:c,unregister:l}}function Hx(e,t){let n=!1;const r=pt([]),s=er(e,"modelValue",[],f=>f===void 0?[]:Ub(r,f===null?[null]:Nf(f)),f=>{const h=Ux(r,f);return e.multiple?h:h[0]}),i=mt("useGroup");function o(f,h){const p=f,m=Symbol.for(`${t.description}:id`),g=Zs(m,i==null?void 0:i.vnode).indexOf(h);Ut(p.value)===void 0&&(p.value=g,p.useIndexAsValue=!0),g>-1?r.splice(g,0,p):r.push(p)}function a(f){if(n)return;c();const h=r.findIndex(p=>p.id===f);r.splice(h,1)}function c(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}zr(()=>{c()}),kn(()=>{n=!0}),Tf(()=>{for(let f=0;f<r.length;f++)r[f].useIndexAsValue&&(r[f].value=f)});function l(f,h){const p=r.find(m=>m.id===f);if(!(h&&(p!=null&&p.disabled)))if(e.multiple){const m=s.value.slice(),y=m.findIndex(v=>v===f),g=~y;if(h=h??!g,g&&e.mandatory&&m.length<=1||!g&&e.max!=null&&m.length+1>e.max)return;y<0&&h?m.push(f):y>=0&&!h&&m.splice(y,1),s.value=m}else{const m=s.value.includes(f);if(e.mandatory&&m||!m&&!h)return;s.value=h??!m?[f]:[]}}function d(f){if(e.multiple,s.value.length){const h=s.value[0],p=r.findIndex(g=>g.id===h);let m=(p+f)%r.length,y=r[m];for(;y.disabled&&m!==p;)m=(m+f)%r.length,y=r[m];if(y.disabled)return;s.value=[r[m].id]}else{const h=r.find(p=>!p.disabled);h&&(s.value=[h.id])}}const u={register:o,unregister:a,selected:s,select:l,disabled:ee(()=>e.disabled),prev:()=>d(r.length-1),next:()=>d(1),isSelected:f=>s.value.includes(f),selectedClass:ee(()=>e.selectedClass),items:ee(()=>r),getItemIndex:f=>Vx(r,f)};return Mt(t,u),u}function Vx(e,t){const n=Ub(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function Ub(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>gs(r,o.value)),i=e[r];(s==null?void 0:s.value)!==void 0?n.push(s.id):i!=null&&i.useIndexAsValue&&n.push(i.id)}),n}function Ux(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!==void 0?i.value:s)}}),n}const Wb=Symbol.for("vuetify:v-btn-toggle"),Wx=le({...Vb(),...Fx()},"VBtnToggle"),L4=Fe()({name:"VBtnToggle",props:Wx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=Hx(e,Wb);return tt(()=>{const c=Ym.filterProps(e);return B(Ym,Ze({class:["v-btn-toggle",e.class]},c,{style:e.style}),{default:()=>{var l;return[(l=n.default)==null?void 0:l.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}}),jx=le({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),un=Fe(!1)({name:"VDefaultsProvider",props:jx(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=Sf(e);return yl(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var c;return(c=n.default)==null?void 0:c.call(n)}}}),zx=["x-small","small","default","large","x-large"],Cl=le({size:{type:[String,Number],default:"default"}},"size");function Tl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return Df(()=>{const n=e.size;let r,s;return Rc(zx,n)?r=`${t}--size-${n}`:n&&(s={width:me(n),height:me(n)}),{sizeClasses:r,sizeStyles:s}})}const qx=le({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Et,opacity:[String,Number],...ct(),...Cl(),...Pt({tag:"i"}),...nn()},"VIcon"),Un=Fe()({name:"VIcon",props:qx(),setup(e,t){let{attrs:n,slots:r}=t;const s=be(),{themeClasses:i}=bb(),{iconData:o}=zT(()=>s.value||e.icon),{sizeClasses:a}=Tl(e),{textColorClasses:c,textColorStyles:l}=bi(()=>e.color);return tt(()=>{var f,h;const d=(f=r.default)==null?void 0:f.call(r);d&&(s.value=(h=X_(d).filter(p=>p.type===na&&p.children&&typeof p.children=="string")[0])==null?void 0:h.children);const u=!!(n.onClick||n.onClickOnce);return B(o.value.component,{tag:e.tag,icon:o.value.icon,class:Oe(["v-icon","notranslate",i.value,a.value,c.value,{"v-icon--clickable":u,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Xe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:me(e.size),height:me(e.size),width:me(e.size)},l.value,e.style]),role:u?"button":void 0,"aria-hidden":!u,tabindex:u?e.disabled?-1:0:void 0},{default:()=>[d]})}),{}}});function jb(e,t){const n=we(),r=be(!1);if(Pf){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);Ct(()=>{s.disconnect()}),Se(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Gx=le({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ct(),...Cl(),...Pt({tag:"div"}),...nn()},"VProgressCircular"),Kx=Fe()({name:"VProgressCircular",props:Gx(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=we(),{themeClasses:o}=mn(e),{sizeClasses:a,sizeStyles:c}=Tl(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{textColorClasses:u,textColorStyles:f}=bi(()=>e.bgColor),{intersectionRef:h,isIntersecting:p}=jb(),{resizeRef:m,contentRect:y}=jf(),g=ee(()=>cr(parseFloat(e.modelValue),0,100)),v=ee(()=>Number(e.width)),_=ee(()=>c.value?Number(e.size):y.value?y.value.width:Math.max(v.value,32)),S=ee(()=>r/(1-v.value/_.value)*2),M=ee(()=>v.value/_.value*S.value),R=ee(()=>{const C=(100-g.value)/100*s;return e.rounded&&g.value>0&&g.value<100?me(Math.min(s-.01,C+M.value)):me(C)}),E=j(()=>{const C=Number(e.rotate);return e.rounded?C+M.value/2/s*360:C});return hn(()=>{h.value=i.value,m.value=i.value}),tt(()=>B(e.tag,{ref:i,class:Oe(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Lo())},o.value,a.value,l.value,e.class]),style:Xe([c.value,d.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:g.value},{default:()=>[se("svg",{style:{transform:`rotate(calc(-90deg + ${E.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${S.value} ${S.value}`},[se("circle",{class:Oe(["v-progress-circular__underlay",u.value]),style:Xe(f.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),se("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":R.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&se("div",{class:"v-progress-circular__content"},[n.default({value:g.value})])]})),{}}}),Hi=le({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Vi(e){return{dimensionStyles:j(()=>{const n={},r=me(e.height),s=me(e.maxHeight),i=me(e.maxWidth),o=me(e.minHeight),a=me(e.minWidth),c=me(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),c!=null&&(n.width=c),n})}}const Xm={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},kl=le({location:String},"location");function Yf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=sa();return{locationStyles:j(()=>{if(!e.location)return{};const{side:i,align:o}=cd(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(l){return n?n(l):0}const c={};return i!=="center"&&(t?c[Xm[i]]=`calc(100% - ${a(i)}px)`:c[i]=0),o!=="center"?t?c[Xm[o]]=`calc(100% - ${a(o)}px)`:c[o]=0:(i==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),c})}}const Yx=le({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function Xx(e,t){const n=ee(()=>!!e.chunkCount||!!e.chunkWidth),r=j(()=>{const a=bt(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const c=Number(e.chunkCount);return(a-Number(e.chunkGap)*(c-1))/c}),s=ee(()=>Number(e.chunkGap)),i=j(()=>{if(!n.value)return{};const a=me(s.value),c=me(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${c}, transparent ${c}, transparent)`,maskSize:`calc(${c} + ${a}) 100%`}});function o(a){const c=bt(t);if(!c)return a;const l=100*s.value/c,d=100*(r.value+s.value)/c,u=Math.floor((a+l)/d);return cr(0,u*d-l/2,100)}return{hasChunks:n,chunksMaskStyles:i,snapValueToChunk:o}}const Jx=le({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Yx(),...ct(),...kl({location:"top"}),...vr(),...Pt(),...nn()},"VProgressLinear"),zb=Fe()({name:"VProgressLinear",props:Jx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=we(),s=er(e,"modelValue"),{isRtl:i,rtlClasses:o}=sa(),{themeClasses:a}=mn(e),{locationStyles:c}=Yf(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{backgroundColorClasses:u,backgroundColorStyles:f}=li(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:p}=li(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:y}=li(()=>e.color),{roundedClasses:g}=yr(e),{intersectionRef:v,isIntersecting:_}=jb(),S=j(()=>parseFloat(e.max)),M=j(()=>parseFloat(e.height)),R=j(()=>cr(parseFloat(e.bufferValue)/S.value*100,0,100)),E=j(()=>cr(parseFloat(s.value)/S.value*100,0,100)),C=j(()=>i.value!==e.reverse),k=j(()=>e.indeterminate?"fade-transition":"slide-x-transition"),A=be(0),{hasChunks:O,chunksMaskStyles:T,snapValueToChunk:P}=Xx(e,A);Di(O,()=>{const{resizeRef:q}=jf(D=>A.value=D[0].contentRect.width);hn(()=>q.value=r.value)});const N=j(()=>O.value?P(R.value):R.value),z=j(()=>O.value?P(E.value):E.value);function X(q){if(!v.value)return;const{left:D,right:re,width:U}=v.value.getBoundingClientRect(),ie=C.value?U-q.clientX+(re-U):q.clientX-D;s.value=Math.round(ie/U*S.value)}return hn(()=>{v.value=r.value}),tt(()=>B(e.tag,{ref:r,class:Oe(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&_.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},g.value,a.value,o.value,e.class]),style:Xe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?me(M.value):0,"--v-progress-linear-height":me(M.value),...e.absolute?c.value:{}},T.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),S.value),onClick:e.clickable&&X},{default:()=>[e.stream&&se("div",{key:"stream",class:Oe(["v-progress-linear__stream",l.value]),style:{...d.value,[C.value?"left":"right"]:me(-M.value),borderTop:`${me(M.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${me(M.value/4)})`,width:me(100-R.value,"%"),"--v-progress-linear-stream-to":me(M.value*(C.value?1:-1))}},null),se("div",{class:Oe(["v-progress-linear__background",u.value]),style:Xe([f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),se("div",{class:Oe(["v-progress-linear__buffer",h.value]),style:Xe([p.value,{opacity:parseFloat(e.bufferOpacity),width:me(N.value,"%")}])},null),B(Br,{name:k.value},{default:()=>[e.indeterminate?se("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(q=>se("div",{key:q,class:Oe(["v-progress-linear__indeterminate",q,m.value]),style:Xe(y.value)},null))]):se("div",{class:Oe(["v-progress-linear__determinate",m.value]),style:Xe([y.value,{width:me(z.value,"%")}])},null)]}),n.default&&se("div",{class:"v-progress-linear__content"},[n.default({value:E.value,buffer:R.value})])]})),{}}}),qb=le({loading:[Boolean,String]},"loader");function Gb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{loaderClasses:ee(()=>({[`${t}--loading`]:e.loading}))}}function Zx(e,t){var r;let{slots:n}=t;return se("div",{class:Oe(`${e.name}__loader`)},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||B(zb,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Qx=["static","relative","fixed","absolute","sticky"],Xf=le({position:{type:String,validator:e=>Qx.includes(e)}},"position");function Jf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{positionClasses:ee(()=>e.position?`${t}--${e.position}`:void 0)}}function eR(){const e=mt("useRoute");return j(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function tR(){var e,t;return(t=(e=mt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Zf(e,t){var u,f;const n=u_("RouterLink"),r=ee(()=>!!(e.href||e.to)),s=j(()=>(r==null?void 0:r.value)||Qp(t,"click")||Qp(e,"click"));if(typeof n=="string"||!("useLink"in n)){const h=ee(()=>e.href);return{isLink:r,isRouterLink:ee(()=>!1),isClickable:s,href:h,linkProps:pt({href:h})}}const i=n.useLink({to:ee(()=>e.to||""),replace:ee(()=>e.replace)}),o=j(()=>e.to?i:void 0),a=eR(),c=j(()=>{var h,p,m;return o.value?e.exact?a.value?((m=o.value.isExactActive)==null?void 0:m.value)&&gs(o.value.route.value.query,a.value.query):((p=o.value.isExactActive)==null?void 0:p.value)??!1:((h=o.value.isActive)==null?void 0:h.value)??!1:!1}),l=j(()=>{var h;return e.to?(h=o.value)==null?void 0:h.route.value.href:e.href});return{isLink:r,isRouterLink:ee(()=>!!e.to),isClickable:s,isActive:c,route:(u=o.value)==null?void 0:u.route,navigate:(f=o.value)==null?void 0:f.navigate,href:l,linkProps:pt({href:l,"aria-current":ee(()=>c.value?"page":void 0),"aria-disabled":ee(()=>e.disabled&&r.value?"true":void 0),tabindex:ee(()=>e.disabled&&r.value?"-1":void 0)})}}const Qf=le({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let hu=!1;function nR(e,t){let n=!1,r,s;et&&(e!=null&&e.beforeEach)&&(vt(()=>{window.addEventListener("popstate",i),r=e.beforeEach((o,a,c)=>{hu?n?t(c):c():setTimeout(()=>n?t(c):c()),hu=!0}),s=e==null?void 0:e.afterEach(()=>{hu=!1})}),Ct(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function rR(e,t){Se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n!=null&&t&&vt(()=>{t(n)})},{immediate:!0})}const _d=Symbol("rippleStop"),sR=80;function Jm(e,t){e.style.transform=t,e.style.webkitTransform=t}function bd(e){return e.constructor.name==="TouchEvent"}function Kb(e){return e.constructor.name==="KeyboardEvent"}const iR=function(e,t){var u;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!Kb(e)){const f=t.getBoundingClientRect(),h=bd(e)?e.touches[e.touches.length-1]:e;r=h.clientX-f.left,s=h.clientY-f.top}let i=0,o=.3;(u=t._ripple)!=null&&u.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,c=`${(t.clientHeight-i*2)/2}px`,l=n.center?a:`${r-i}px`,d=n.center?c:`${s-i}px`;return{radius:i,scale:o,x:l,y:d,centerX:a,centerY:c}},Nc={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:c,centerX:l,centerY:d}=iR(e,t,n),u=`${i*2}px`;s.className="v-ripple__animation",s.style.width=u,s.style.height=u,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Jm(s,`translate(${a}, ${c}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Jm(s,`translate(${l}, ${d}) scale3d(1,1,1)`)})})},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(o=>!o.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Yb(e){return typeof e>"u"||!!e}function Vo(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[_d])){if(e[_d]=!0,bd(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Kb(e),n._ripple.class&&(t.class=n._ripple.class),bd(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Nc.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},sR)}else Nc.show(e,n,t)}}function Dc(e){e[_d]=!0}function Zt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Zt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Nc.hide(t)}}function Xb(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Uo=!1;function oR(e,t){!Uo&&t.includes(e.key)&&(Uo=!0,Vo(e))}function Jb(e){Uo=!1,Zt(e)}function Zb(e){Uo&&(Uo=!1,Zt(e))}function Qb(e,t,n){const{value:r,modifiers:s}=t,i=Yb(r);i||Nc.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle;const o=od(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=c=>oR(c,a),i&&!n){if(s.stop){e.addEventListener("touchstart",Dc,{passive:!0}),e.addEventListener("mousedown",Dc);return}e.addEventListener("touchstart",Vo,{passive:!0}),e.addEventListener("touchend",Zt,{passive:!0}),e.addEventListener("touchmove",Xb,{passive:!0}),e.addEventListener("touchcancel",Zt),e.addEventListener("mousedown",Vo),e.addEventListener("mouseup",Zt),e.addEventListener("mouseleave",Zt),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",Jb),e.addEventListener("blur",Zb),e.addEventListener("dragstart",Zt,{passive:!0})}else!i&&n&&eS(e)}function eS(e){var t;e.removeEventListener("touchstart",Dc),e.removeEventListener("mousedown",Dc),e.removeEventListener("touchstart",Vo),e.removeEventListener("touchend",Zt),e.removeEventListener("touchmove",Xb),e.removeEventListener("touchcancel",Zt),e.removeEventListener("mousedown",Vo),e.removeEventListener("mouseup",Zt),e.removeEventListener("mouseleave",Zt),(t=e._ripple)!=null&&t.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",Jb),e.removeEventListener("blur",Zb),e.removeEventListener("dragstart",Zt)}function aR(e,t){Qb(e,t,!1)}function cR(e){eS(e),delete e._ripple}function lR(e,t){if(t.value===t.oldValue)return;const n=Yb(t.oldValue);Qb(e,t,n)}const Wo={mounted:aR,unmounted:cR,updated:lR},uR=le({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Wb},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Et,appendIcon:Et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...oa(),...$x(),...qb(),...kl(),...Xf(),...vr(),...Qf(),...Cl(),...Pt({tag:"button"}),...nn(),...Ps({variant:"elevated"})},"VBtn"),tS=Fe()({name:"VBtn",props:uR(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{densityClasses:o}=Bi(e),{dimensionStyles:a}=Vi(e),{elevationClasses:c}=aa(e),{loaderClasses:l}=Gb(e),{locationStyles:d}=Yf(e),{positionClasses:u}=Jf(e),{roundedClasses:f}=yr(e),{sizeClasses:h,sizeStyles:p}=Tl(e),m=Bx(e,e.symbol,!1),y=Zf(e,n),g=j(()=>{var O;return e.active!==void 0?e.active:y.isRouterLink.value?(O=y.isActive)==null?void 0:O.value:m==null?void 0:m.isSelected.value}),v=ee(()=>g.value?e.activeColor??e.color:e.color),_=j(()=>{var T,P;return{color:(m==null?void 0:m.isSelected.value)&&(!y.isLink.value||((T=y.isActive)==null?void 0:T.value))||!m||((P=y.isActive)==null?void 0:P.value)?v.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:S,colorStyles:M,variantClasses:R}=la(_),E=j(()=>(m==null?void 0:m.disabled.value)||e.disabled),C=ee(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),k=j(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(O){var T;E.value||y.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||(y.isRouterLink.value?(T=y.navigate)==null||T.call(y,O):m==null||m.toggle())}return rR(y,m==null?void 0:m.select),tt(()=>{const O=y.isLink.value?"a":e.tag,T=!!(e.prependIcon||r.prepend),P=!!(e.appendIcon||r.append),N=!!(e.icon&&e.icon!==!0);return ws(B(O,Ze(y.linkProps,{type:O==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":g.value,"v-btn--block":e.block,"v-btn--disabled":E.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,i.value,S.value,o.value,c.value,l.value,u.value,f.value,h.value,R.value,e.class],style:[M.value,a.value,d.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:E.value&&O!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:k.value}),{default:()=>{var z;return[ca(!0,"v-btn"),!e.icon&&T&&se("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):B(Un,{key:"prepend-icon",icon:e.prependIcon},null)]),se("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&N?B(Un,{key:"content-icon",icon:e.icon},null):B(un,{key:"content-defaults",disabled:!N,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var X;return[((X=r.default)==null?void 0:X.call(r))??bn(e.text)]}})]),!e.icon&&P&&se("span",{key:"append",class:"v-btn__append"},[r.append?B(un,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):B(Un,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&se("span",{key:"loader",class:"v-btn__loader"},[((z=r.loader)==null?void 0:z.call(r))??B(Kx,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Wo,!E.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}});function pu(e,t){return{x:e.x+t.x,y:e.y+t.y}}function dR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zm(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return pu({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return pu({x:s,y:i},t)}return pu({x:t.width/2,y:t.height/2},t)}const nS={static:pR,connected:gR},fR=le({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in nS},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function hR(e,t){const n=we({}),r=we();et&&Di(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var c,l;Se(()=>e.locationStrategy,a),Ct(()=>{window.removeEventListener("resize",s),visualViewport==null||visualViewport.removeEventListener("resize",i),visualViewport==null||visualViewport.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),visualViewport==null||visualViewport.addEventListener("resize",i,{passive:!0}),visualViewport==null||visualViewport.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(c=e.locationStrategy(t,e,n))==null?void 0:c.updateLocation:r.value=(l=nS[e.locationStrategy](t,e,n))==null?void 0:l.updateLocation});function s(a){var c;(c=r.value)==null||c.call(r,a)}function i(a){var c;(c=r.value)==null||c.call(r,a)}function o(a){var c;(c=r.value)==null||c.call(r,a)}return{contentStyles:n,updateLocation:r}}function pR(){}function mR(e,t){const n=tb(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function gR(e,t,n){(Array.isArray(e.target.value)||WT(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=Df(()=>{const g=cd(t.location,e.isRtl.value),v=t.origin==="overlap"?g:t.origin==="auto"?ru(g):cd(t.origin,e.isRtl.value);return g.side===v.side&&g.align===su(v).align?{preferredAnchor:tm(g),preferredOrigin:tm(v)}:{preferredAnchor:g,preferredOrigin:v}}),[o,a,c,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>j(()=>{const v=parseFloat(t[g]);return isNaN(v)?1/0:v})),d=j(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const g=t.offset.split(" ").map(parseFloat);return g.length<2&&g.push(0),g}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let u=!1,f=-1;const h=new rT(4),p=new ResizeObserver(()=>{if(!u)return;if(requestAnimationFrame(v=>{v!==f&&h.clear(),requestAnimationFrame(_=>{f=_})}),h.isFull){const v=h.values();if(gs(v.at(-1),v.at(-3))&&!gs(v.at(-1),v.at(-2)))return}const g=y();g&&h.push(g.flipped)});let m=new ln({x:0,y:0,width:0,height:0});Se(e.target,(g,v)=>{v&&!Array.isArray(v)&&p.unobserve(v),Array.isArray(g)?gs(g,v)||y():g&&p.observe(g)},{immediate:!0}),Se(e.contentEl,(g,v)=>{v&&p.unobserve(v),g&&p.observe(g)},{immediate:!0}),Ct(()=>{p.disconnect()});function y(){if(u=!1,requestAnimationFrame(()=>u=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=eb(e.target.value));const g=mR(e.contentEl.value,e.isRtl.value),v=Mc(e.contentEl.value),_=Number(t.viewportMargin);v.length||(v.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=v.reduce((P,N)=>{const z=uT(N);return P?new ln({x:Math.max(P.left,z.left),y:Math.max(P.top,z.top),width:Math.min(P.right,z.right)-Math.max(P.left,z.left),height:Math.min(P.bottom,z.bottom)-Math.max(P.top,z.top)}):z},void 0);t.stickToTarget?(S.x+=Math.min(_,m.x),S.y+=Math.min(_,m.y),S.width=Math.max(S.width-_*2,m.x+m.width-_),S.height=Math.max(S.height-_*2,m.y+m.height-_)):(S.x+=_,S.y+=_,S.width-=_*2,S.height-=_*2);let M={anchor:s.value,origin:i.value};function R(P){const N=new ln(g),z=Zm(P.anchor,m),X=Zm(P.origin,N);let{x:q,y:D}=dR(z,X);switch(P.anchor.side){case"top":D-=d.value[0];break;case"bottom":D+=d.value[0];break;case"left":q-=d.value[0];break;case"right":q+=d.value[0];break}switch(P.anchor.align){case"top":D-=d.value[1];break;case"bottom":D+=d.value[1];break;case"left":q-=d.value[1];break;case"right":q+=d.value[1];break}return N.x+=q,N.y+=D,N.width=Math.min(N.width,c.value),N.height=Math.min(N.height,l.value),{overflows:rm(N,S),x:q,y:D}}let E=0,C=0;const k={x:0,y:0},A={x:!1,y:!1};let O=-1;for(;!(O++>10);){const{x:P,y:N,overflows:z}=R(M);E+=P,C+=N,g.x+=P,g.y+=N;{const X=nm(M.anchor),q=z.x.before||z.x.after,D=z.y.before||z.y.after;let re=!1;if(["x","y"].forEach(U=>{if(U==="x"&&q&&!A.x||U==="y"&&D&&!A.y){const ie={anchor:{...M.anchor},origin:{...M.origin}},ce=U==="x"?X==="y"?su:ru:X==="y"?ru:su;ie.anchor=ce(ie.anchor),ie.origin=ce(ie.origin);const{overflows:ue}=R(ie);(ue[U].before<=z[U].before&&ue[U].after<=z[U].after||ue[U].before+ue[U].after<(z[U].before+z[U].after)/2)&&(M=ie,re=A[U]=!0)}}),re)continue}z.x.before&&(E+=z.x.before,g.x+=z.x.before),z.x.after&&(E-=z.x.after,g.x-=z.x.after),z.y.before&&(C+=z.y.before,g.y+=z.y.before),z.y.after&&(C-=z.y.after,g.y-=z.y.after);{const X=rm(g,S);k.x=S.width-X.x.before-X.x.after,k.y=S.height-X.y.before-X.y.after,E+=X.x.before,g.x+=X.x.before,C+=X.y.before,g.y+=X.y.before}break}const T=nm(M.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${M.anchor.side} ${M.anchor.align}`,transformOrigin:`${M.origin.side} ${M.origin.align}`,top:me(mu(C)),left:e.isRtl.value?void 0:me(mu(E)),right:e.isRtl.value?me(mu(-E)):void 0,minWidth:me(T==="y"?Math.min(o.value,m.width):o.value),maxWidth:me(Qm(cr(k.x,o.value===1/0?0:o.value,c.value))),maxHeight:me(Qm(cr(k.y,a.value===1/0?0:a.value,l.value)))}),{available:k,contentBox:g,flipped:A}}return Se(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>y()),vt(()=>{const g=y();if(!g)return;const{available:v,contentBox:_}=g;_.height>v.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function mu(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Qm(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Sd=!0;const Fc=[];function vR(e){!Sd||Fc.length?(Fc.push(e),Ed()):(Sd=!1,e(),Ed())}let eg=-1;function Ed(){cancelAnimationFrame(eg),eg=requestAnimationFrame(()=>{const e=Fc.shift();e&&e(),Fc.length?Ed():Sd=!0})}const tc={none:null,close:bR,block:SR,reposition:ER},yR=le({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in tc}},"VOverlay-scroll-strategies");function _R(e,t){if(!et)return;let n;hn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Es(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=tc[e.scrollStrategy])==null||r.call(tc,t,e,n)}))}),Ct(()=>{n==null||n.stop()})}function bR(e){function t(n){e.isActive.value=!1}rS(eh(e.target.value,e.contentEl.value),t)}function SR(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,r=eh(e.target.value,e.contentEl.value),s=[...new Set([...Mc(r,t.contained?n:void 0),...Mc(e.contentEl.value,t.contained?n:void 0)])].filter(c=>!c.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(c=>Hf(c)&&c)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((c,l)=>{c.style.setProperty("--v-body-scroll-x",me(-c.scrollLeft)),c.style.setProperty("--v-body-scroll-y",me(-c.scrollTop)),c!==document.documentElement&&c.style.setProperty("--v-scrollbar-offset",me(i)),c.classList.add("v-overlay-scroll-blocked")}),Ct(()=>{s.forEach((c,l)=>{const d=parseFloat(c.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(c.style.getPropertyValue("--v-body-scroll-y")),f=c.style.scrollBehavior;c.style.scrollBehavior="auto",c.style.removeProperty("--v-body-scroll-x"),c.style.removeProperty("--v-body-scroll-y"),c.style.removeProperty("--v-scrollbar-offset"),c.classList.remove("v-overlay-scroll-blocked"),c.scrollLeft=-d,c.scrollTop=-u,c.style.scrollBehavior=f}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function ER(e,t,n){let r=!1,s=-1,i=-1;function o(a){vR(()=>{var d,u;const c=performance.now();(u=(d=e.updateLocation).value)==null||u.call(d,a),r=(performance.now()-c)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{rS(eh(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),Ct(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function eh(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!(t!=null&&t.contains(n))):e??t}function rS(e,t){const n=[document,...Mc(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Ct(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const wR=Symbol.for("vuetify:v-menu"),CR=le({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function TR(e,t){let n=()=>{};function r(o,a){n==null||n();const c=o?e.openDelay:e.closeDelay,l=Math.max((a==null?void 0:a.minDelay)??0,Number(c??0));return new Promise(d=>{n=aT(l,()=>{t==null||t(o),d(o)})})}function s(){return r(!0)}function i(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const kR=le({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...CR()},"VOverlay-activator");function IR(e,t){let{isActive:n,isTop:r,contentEl:s}=t;const i=mt("useActivator"),o=we();let a=!1,c=!1,l=!0;const d=j(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),u=j(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!d.value),{runOpenDelay:f,runCloseDelay:h}=TR(e,C=>{C===(e.openOnHover&&a||d.value&&c)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(l=!0),n.value=C)}),p=we(),m={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(p.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{a=!0,o.value=C.currentTarget||C.target,f()},onMouseleave:C=>{a=!1,h()},onFocus:C=>{iT(C.target,":focus-visible")!==!1&&(c=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,f())},onBlur:C=>{c=!1,C.stopPropagation(),h({minDelay:1})}},y=j(()=>{const C={};return u.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),d.value&&(C.onFocus=m.onFocus,C.onBlur=m.onBlur),C}),g=j(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{a=!0,f()},C.onMouseleave=()=>{a=!1,h()}),d.value&&(C.onFocusin=k=>{k.target.matches(":focus-visible")&&(c=!0,f())},C.onFocusout=()=>{c=!1,h({minDelay:1})}),e.closeOnContentClick){const k=Le(wR,null);C.onClick=()=>{n.value=!1,k==null||k.closeParents()}}return C}),v=j(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(a=!0,l=!1,f())},C.onMouseleave=()=>{a=!1,h()}),C});Se(r,C=>{var k;C&&(e.openOnHover&&!a&&(!d.value||!c)||d.value&&!c&&(!e.openOnHover||!a))&&!((k=s.value)!=null&&k.contains(document.activeElement))&&(n.value=!1)}),Se(n,C=>{C||setTimeout(()=>{p.value=void 0})},{flush:"post"});const _=ad();hn(()=>{_.value&&vt(()=>{o.value=_.el})});const S=ad(),M=j(()=>e.target==="cursor"&&p.value?p.value:S.value?S.el:sS(e.target,i)||o.value),R=j(()=>Array.isArray(M.value)?void 0:M.value);let E;return Se(()=>!!e.activator,C=>{C&&et?(E=Es(),E.run(()=>{xR(e,i,{activatorEl:o,activatorEvents:y})})):E&&E.stop()},{flush:"post",immediate:!0}),Ct(()=>{E==null||E.stop()}),{activatorEl:o,activatorRef:_,target:M,targetEl:R,targetRef:S,activatorEvents:y,contentEvents:g,scrimEvents:v}}function xR(e,t,n){let{activatorEl:r,activatorEvents:s}=n;Se(()=>e.activator,(c,l)=>{if(l&&c!==l){const d=a(l);d&&o(d)}c&&vt(()=>i())},{immediate:!0}),Se(()=>e.activatorProps,()=>{i()}),Ct(()=>{o()});function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&dT(c,Ze(s.value,l))}function o(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&fT(c,Ze(s.value,l))}function a(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const l=sS(c,t);return r.value=(l==null?void 0:l.nodeType)===Node.ELEMENT_NODE?l:void 0,r.value}}function sS(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const RR=le({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),nc=new Map;let tg=0;function ng(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(nc.values()).filter(l=>{var f;let{isActive:d,contentEl:u}=l;return d.value&&((f=u.value)==null?void 0:f.contains(t))}).map(l=>l.contentEl.value);let r,s=t.parentElement;for(;s;){if(n.includes(s)){r=s;break}s=s.parentElement}if(!r)return;const i=_o(r).filter(l=>l.tabIndex>=0);if(!i.length)return;const o=document.activeElement;if(i.length===1&&i[0].classList.contains("v-list")&&i[0].contains(o)){e.preventDefault();return}const a=i[0],c=i[i.length-1];e.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(e.preventDefault(),c.focus()),!e.shiftKey&&(o===c||c.classList.contains("v-list")&&c.contains(o))&&(e.preventDefault(),a.focus())}function AR(e,t){let{isActive:n,localTop:r,activatorEl:s,contentEl:i}=t;const o=Symbol("trap");let a=!1,c=-1;async function l(){a=!0,c=window.setTimeout(()=>{a=!1},100)}async function d(h){var y;const p=h.relatedTarget,m=h.target;document.removeEventListener("pointerdown",l),document.removeEventListener("keydown",u),await vt(),n.value&&!a&&p!==m&&i.value&&bt(r)&&![document,i.value].includes(m)&&!i.value.contains(m)&&((y=_o(i.value)[0])==null||y.focus())}function u(h){if(h.key==="Tab"&&(document.removeEventListener("keydown",u),n.value&&i.value&&h.target&&!i.value.contains(h.target))){const p=_o(document.documentElement);if(h.shiftKey&&h.target===p.at(0)||!h.shiftKey&&h.target===p.at(-1)){const m=_o(i.value);m.length>0&&(h.preventDefault(),m[0].focus())}}}const f=ee(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);et&&(Se(()=>e.retainFocus,h=>{h?nc.set(o,{isActive:n,contentEl:i}):nc.delete(o)},{immediate:!0}),Se(f,h=>{h?(document.addEventListener("pointerdown",l),document.addEventListener("focusin",d,{once:!0}),document.addEventListener("keydown",u)):(document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u))},{immediate:!0}),tg++<1&&document.addEventListener("keydown",ng)),Ct(()=>{nc.delete(o),clearTimeout(c),document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u),--tg<1&&document.removeEventListener("keydown",ng)})}function MR(){if(!et)return be(!1);const{ssr:e}=Wk();if(e){const t=be(!1);return zr(()=>{t.value=!0}),t}else return be(!0)}const PR=le({eager:Boolean},"lazy");function OR(e,t){const n=be(!1),r=ee(()=>n.value||e.eager||t.value);Se(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function th(){const t=mt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const rg=Symbol.for("vuetify:stack"),so=pt([]);function LR(e,t,n){const r=mt("useStack"),s=!n,i=Le(rg,void 0),o=pt({activeChildren:new Set});Mt(rg,o);const a=be(Number(bt(t)));Di(e,()=>{var u;const d=(u=so.at(-1))==null?void 0:u[1];a.value=d?d+10:Number(bt(t)),s&&so.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),Ct(()=>{if(s){const f=de(so).findIndex(h=>h[0]===r.uid);so.splice(f,1)}i==null||i.activeChildren.delete(r.uid)})});const c=be(!0);return s&&hn(()=>{var u;const d=((u=so.at(-1))==null?void 0:u[0])===r.uid;setTimeout(()=>c.value=d)}),{globalTop:hi(c),localTop:ee(()=>!o.activeChildren.size),stackStyles:ee(()=>({zIndex:a.value}))}}function NR(e){return{teleportTarget:j(()=>{const n=e();if(n===!0||!et)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=[...r.children].find(i=>i.matches(".v-overlay-container"));return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}const iS=le({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Qs=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Mf:Br,...c}=od(r)?r:{};let l;return od(r)?l=Ze(c,cT({disabled:s,group:i}),o):l=Ze({name:s||!r?"":r},o),qr(a,l,n)};function DR(){return!0}function oS(e,t,n){if(!e||aS(e,n)===!1)return!1;const r=ab(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function aS(e,t){return(typeof t.value=="object"&&t.value.closeConditional||DR)(e)}function FR(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&oS(e,t,n)&&setTimeout(()=>{aS(e,n)&&r&&r(e)},0)}function sg(e,t){const n=ab(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const ig={mounted(e,t){const n=s=>FR(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=oS(s,e,t)};sg(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(sg(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function $R(e){const{modelValue:t,color:n,...r}=e;return B(Br,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&se("div",Ze({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const nh=le({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...kR(),...ct(),...Hi(),...PR(),...fR(),...yR(),...RR(),...nn(),...iS()},"VOverlay"),$c=Fe()({name:"VOverlay",directives:{vClickOutside:ig},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...As(nh(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=mt("VOverlay"),o=we(),a=we(),c=we(),l=er(e,"modelValue"),d=j({get:()=>l.value,set:x=>{x&&e.disabled||(l.value=x)}}),{themeClasses:u}=mn(e),{rtlClasses:f,isRtl:h}=sa(),{hasContent:p,onAfterLeave:m}=OR(e,d),y=li(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:g,localTop:v,stackStyles:_}=LR(d,()=>e.zIndex,e._disableGlobalStack),{activatorEl:S,activatorRef:M,target:R,targetEl:E,targetRef:C,activatorEvents:k,contentEvents:A,scrimEvents:O}=IR(e,{isActive:d,isTop:v,contentEl:c}),{teleportTarget:T}=NR(()=>{var K,ne,ye;const x=e.attach||e.contained;if(x)return x;const W=((K=S==null?void 0:S.value)==null?void 0:K.getRootNode())||((ye=(ne=i.proxy)==null?void 0:ne.$el)==null?void 0:ye.getRootNode());return W instanceof ShadowRoot?W:!1}),{dimensionStyles:P}=Vi(e),N=MR(),{scopeId:z}=th();Se(()=>e.disabled,x=>{x&&(d.value=!1)});const{contentStyles:X,updateLocation:q}=hR(e,{isRtl:h,contentEl:c,target:R,isActive:d});_R(e,{root:o,contentEl:c,targetEl:E,target:R,isActive:d,updateLocation:q});function D(x){s("click:outside",x),e.persistent?Ce():d.value=!1}function re(x){return d.value&&v.value&&(!e.scrim||x.target===a.value||x instanceof MouseEvent&&x.shadowTarget===a.value)}AR(e,{isActive:d,localTop:v,contentEl:c,activatorEl:S}),et&&Se(d,x=>{x?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),kn(()=>{et&&window.removeEventListener("keydown",U)});function U(x){var W,K,ne;x.key==="Escape"&&g.value&&((W=c.value)!=null&&W.contains(document.activeElement)||s("keydown",x),e.persistent?Ce():(d.value=!1,(K=c.value)!=null&&K.contains(document.activeElement)&&((ne=S.value)==null||ne.focus())))}function ie(x){x.key==="Escape"&&!g.value||s("keydown",x)}const ce=tR();Di(()=>e.closeOnBack,()=>{nR(ce,x=>{g.value&&d.value?(x(!1),e.persistent?Ce():d.value=!1):x()})});const ue=we();Se(()=>d.value&&(e.absolute||e.contained)&&T.value==null,x=>{if(x){const W=VT(o.value);W&&W!==document.scrollingElement&&(ue.value=W.scrollTop)}});function Ce(){e.noClickAnimation||c.value&&ss(c.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:ud})}function Ne(){s("afterEnter")}function Ve(){m(),s("afterLeave")}return tt(()=>{var x;return se(Qe,null,[(x=n.activator)==null?void 0:x.call(n,{isActive:d.value,targetRef:C,props:Ze({ref:M},k.value,e.activatorProps)}),N.value&&p.value&&B(S1,{disabled:!T.value,to:T.value},{default:()=>[se("div",Ze({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":d.value,"v-overlay--contained":e.contained},u.value,f.value,e.class],style:[_.value,{"--v-overlay-opacity":e.opacity,top:me(ue.value)},e.style],ref:o,onKeydown:ie},z,r),[B($R,Ze({color:y,modelValue:d.value&&!!e.scrim,ref:a},O.value),null),B(Qs,{appear:!0,persisted:!0,transition:e.transition,target:R.value,onAfterEnter:Ne,onAfterLeave:Ve},{default:()=>{var W;return[ws(se("div",Ze({ref:c,class:["v-overlay__content",e.contentClass],style:[P.value,X.value]},A.value,e.contentProps),[(W=n.default)==null?void 0:W.call(n,{isActive:d})]),[[Af,d.value],[ig,{handler:D,closeConditional:re,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:a,target:R,animateClick:Ce,contentEl:c,rootEl:o,globalTop:g,localTop:v,updateLocation:q}}}),gu=Symbol("Forwarded refs");function vu(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function cS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[gu]=n,new Proxy(e,{get(s,i){if(Reflect.has(s,i))return Reflect.get(s,i);if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,i)){const a=Reflect.get(o.value,i);return typeof a=="function"?a.bind(o.value):a}}},has(s,i){if(Reflect.has(s,i))return!0;if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,i))return!0;return!1},set(s,i,o){if(Reflect.has(s,i))return Reflect.set(s,i,o);if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,i))return Reflect.set(a.value,i,o);return!1},getOwnPropertyDescriptor(s,i){var a;const o=Reflect.getOwnPropertyDescriptor(s,i);if(o)return o;if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const c of n){if(!c.value)continue;const l=vu(c.value,i)??("_"in c.value?vu((a=c.value._)==null?void 0:a.setupState,i):void 0);if(l)return l}for(const c of n){const l=c.value&&c.value[gu];if(!l)continue;const d=l.slice();for(;d.length;){const u=d.shift(),f=vu(u.value,i);if(f)return f;const h=u.value&&u.value[gu];h&&d.push(...h)}}}}})}function BR(e){const t=be(e());let n=-1;function r(){clearInterval(n)}function s(){r(),vt(()=>t.value=e())}function i(o){const a=o?getComputedStyle(o):{transitionDuration:.2},c=parseFloat(a.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const l=performance.now();n=window.setInterval(()=>{const d=performance.now()-l+c;t.value=Math.max(e()-d,0),t.value<=0&&r()},c)}return Ct(r),{clear:r,time:t,start:i,reset:s}}const HR=le({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...kl({location:"bottom"}),...Xf(),...vr(),...Ps(),...nn(),...As(nh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),VR=Fe()({name:"VSnackbar",props:HR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=er(e,"modelValue"),{positionClasses:s}=Jf(e),{scopeId:i}=th(),{themeClasses:o}=mn(e),{colorClasses:a,colorStyles:c,variantClasses:l}=la(e),{roundedClasses:d}=yr(e),u=BR(()=>Number(e.timeout)),f=we(),h=we(),p=be(!1),m=be(0),y=we(),g=Le(Bo,void 0);Di(()=>!!g,()=>{const O=nI();hn(()=>{y.value=O.mainStyles.value})}),Se(r,_),Se(()=>e.timeout,_),zr(()=>{r.value&&_()});let v=-1;function _(){u.reset(),window.clearTimeout(v);const O=Number(e.timeout);if(!r.value||O===-1)return;const T=Of(h.value);u.start(T),v=window.setTimeout(()=>{r.value=!1},O)}function S(){u.reset(),window.clearTimeout(v)}function M(){p.value=!0,S()}function R(){p.value=!1,_()}function E(O){m.value=O.touches[0].clientY}function C(O){Math.abs(m.value-O.changedTouches[0].clientY)>50&&(r.value=!1)}function k(){p.value&&R()}const A=j(()=>e.location.split(" ").reduce((O,T)=>(O[`v-snackbar--${T}`]=!0,O),{}));return tt(()=>{const O=$c.filterProps(e),T=!!(n.default||n.text||e.text);return B($c,Ze({ref:f,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},A.value,s.value,e.class],style:[y.value,e.style]},O,{modelValue:r.value,"onUpdate:modelValue":P=>r.value=P,contentProps:Ze({class:["v-snackbar__wrapper",o.value,a.value,d.value,l.value],style:[c.value],onPointerenter:M,onPointerleave:R},O.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:E,onTouchend:C,onAfterLeave:k},i),{default:()=>{var P,N;return[ca(!1,"v-snackbar"),e.timer&&!p.value&&se("div",{key:"timer",class:"v-snackbar__timer"},[B(zb,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:u.time.value},null)]),T&&se("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((P=n.text)==null?void 0:P.call(n))??e.text,(N=n.default)==null?void 0:N.call(n)]),n.actions&&B(un,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[se("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),cS({},f)}}),UR=fl({name:"GlobalMessage",setup(){var i;const e=we(!1),t=we(null),n={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},r={success:"success",error:"error",warning:"warning",info:"info"},s=(i=Ys==null?void 0:Ys.onSnackbar)==null?void 0:i.call(Ys,async o=>{o&&(e.value&&(e.value=!1,await vt()),t.value=o,e.value=!0)});return kn(()=>s==null?void 0:s()),{snackbar:e,message:t,icons:n,colors:r}}}),WR={class:"d-flex align-center"},jR={class:"text-subtitle-2 font-weight-medium"},zR={key:0,class:"text-body-2"};function qR(e,t,n,r,s,i){var o;return cn(),$n(VR,{modelValue:e.snackbar,"onUpdate:modelValue":t[1]||(t[1]=a=>e.snackbar=a),color:e.colors[(o=e.message)==null?void 0:o.type]||e.colors.info,timeout:2e3,location:"top right","multi-line":"",variant:"tonal"},{actions:gt(()=>[B(tS,{icon:"mdi-close",variant:"text",onClick:t[0]||(t[0]=a=>e.snackbar=!1)})]),default:gt(()=>{var a,c,l,d;return[se("div",WR,[B(Un,{icon:e.icons[(a=e.message)==null?void 0:a.type]||e.icons.info,class:"mr-2"},null,8,["icon"]),se("div",null,[se("div",jR,bn((c=e.message)==null?void 0:c.title),1),(l=e.message)!=null&&l.content?(cn(),A_("div",zR,bn((d=e.message)==null?void 0:d.content),1)):td("",!0)])])]}),_:1},8,["modelValue","color"])}const lS=Hb(UR,[["render",qR]]),GR=le({...ct(),...Pt()},"VCardActions"),uS=Fe()({name:"VCardActions",props:GR(),setup(e,t){let{slots:n}=t;return yl({VBtn:{slim:!0,variant:"text"}}),tt(()=>B(e.tag,{class:Oe(["v-card-actions",e.class]),style:Xe(e.style)},n)),{}}}),KR=le({opacity:[Number,String],...ct(),...Pt()},"VCardSubtitle"),YR=Fe()({name:"VCardSubtitle",props:KR(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Oe(["v-card-subtitle",e.class]),style:Xe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),dS=Bf("v-card-title");function XR(e){return{aspectStyles:j(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const fS=le({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ct(),...Hi()},"VResponsive"),og=Fe()({name:"VResponsive",props:fS(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=XR(e),{dimensionStyles:s}=Vi(e);return tt(()=>{var i;return se("div",{class:Oe(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Xe([s.value,e.style])},[se("div",{class:"v-responsive__sizer",style:Xe(r.value)},null),(i=n.additional)==null?void 0:i.call(n),n.default&&se("div",{class:Oe(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function JR(e,t){if(!Pf)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var u;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const l=(u=e._observe)==null?void 0:u[t.instance.$.uid];if(!l)return;const d=a.some(f=>f.isIntersecting);s&&(!n.quiet||l.init)&&(!n.once||d||l.init)&&s(d,a,c),d&&n.once?hS(e,t):l.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function hS(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const ag={mounted:JR,unmounted:hS},ZR=le({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...fS(),...ct(),...vr(),...iS()},"VImg"),pS=Fe()({name:"VImg",directives:{vIntersect:ag},props:ZR(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=li(()=>e.color),{roundedClasses:o}=yr(e),a=mt("VImg"),c=be(""),l=we(),d=be(e.eager?"loading":"idle"),u=be(),f=be(),h=j(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=j(()=>h.value.aspect||u.value/f.value||0);Se(()=>e.src,()=>{m(d.value!=="idle")}),Se(p,(T,P)=>{!T&&P&&l.value&&S(l.value)}),ml(()=>m());function m(T){if(!(e.eager&&T)&&!(Pf&&!T&&!e.eager)){if(d.value="loading",h.value.lazySrc){const P=new Image;P.src=h.value.lazySrc,S(P,null)}h.value.src&&vt(()=>{var P;n("loadstart",((P=l.value)==null?void 0:P.currentSrc)||h.value.src),setTimeout(()=>{var N;if(!a.isUnmounted)if((N=l.value)!=null&&N.complete){if(l.value.naturalWidth||g(),d.value==="error")return;p.value||S(l.value,null),d.value==="loading"&&y()}else p.value||S(l.value),v()})})}}function y(){var T;a.isUnmounted||(v(),S(l.value),d.value="loaded",n("load",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function g(){var T;a.isUnmounted||(d.value="error",n("error",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function v(){const T=l.value;T&&(c.value=T.currentSrc||T.src)}let _=-1;kn(()=>{clearTimeout(_)});function S(T){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const N=()=>{if(clearTimeout(_),a.isUnmounted)return;const{naturalHeight:z,naturalWidth:X}=T;z||X?(u.value=X,f.value=z):!T.complete&&d.value==="loading"&&P!=null?_=window.setTimeout(N,P):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(u.value=1,f.value=1)};N()}const M=ee(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),R=()=>{var N;if(!h.value.src||d.value==="idle")return null;const T=se("img",{class:Oe(["v-img__img",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:l,onLoad:y,onError:g},null),P=(N=r.sources)==null?void 0:N.call(r);return B(Qs,{transition:e.transition,appear:!0},{default:()=>[ws(P?se("picture",{class:"v-img__picture"},[P,T]):T,[[Af,d.value==="loaded"]])]})},E=()=>B(Qs,{transition:e.transition},{default:()=>[h.value.lazySrc&&d.value!=="loaded"&&se("img",{class:Oe(["v-img__img","v-img__img--preload",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?B(Qs,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!r.error)&&se("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,k=()=>r.error?B(Qs,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&se("div",{class:"v-img__error"},[r.error()])]}):null,A=()=>e.gradient?se("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=be(!1);{const T=Se(p,P=>{P&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),T())})}return tt(()=>{const T=og.filterProps(e);return ws(B(og,Ze({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!O.value},s.value,o.value,e.class],style:[{width:me(e.width==="auto"?u.value:e.width)},i.value,e.style]},T,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>se(Qe,null,[B(R,null,null),B(E,null,null),B(A,null,null),B(C,null,null),B(k,null,null)]),default:r.default}),[[ag,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:c,image:l,state:d,naturalWidth:u,naturalHeight:f}}}),QR=le({start:Boolean,end:Boolean,icon:Et,image:String,text:String,...Fi(),...ct(),...Ms(),...vr(),...Cl(),...Pt(),...nn(),...Ps({variant:"flat"})},"VAvatar"),Bc=Fe()({name:"VAvatar",props:QR(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{borderClasses:s}=$i(e),{colorClasses:i,colorStyles:o,variantClasses:a}=la(e),{densityClasses:c}=Bi(e),{roundedClasses:l}=yr(e),{sizeClasses:d,sizeStyles:u}=Tl(e);return tt(()=>B(e.tag,{class:Oe(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,i.value,c.value,l.value,d.value,a.value,e.class]),style:Xe([o.value,u.value,e.style])},{default:()=>[n.default?B(un,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?B(pS,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?B(Un,{key:"icon",icon:e.icon},null):e.text,ca(!1,"v-avatar")]})),{}}}),eA=le({appendAvatar:String,appendIcon:Et,prependAvatar:String,prependIcon:Et,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...ct(),...Ms(),...Pt()},"VCardItem"),tA=Fe()({name:"VCardItem",props:eA(),setup(e,t){let{slots:n}=t;return tt(()=>{const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),c=!!(e.subtitle!=null||n.subtitle);return B(e.tag,{class:Oe(["v-card-item",e.class]),style:Xe(e.style)},{default:()=>{var l;return[s&&se("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?B(un,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):se(Qe,null,[e.prependAvatar&&B(Bc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Un,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),se("div",{class:"v-card-item__content"},[a&&B(dS,{key:"title"},{default:()=>{var d;return[((d=n.title)==null?void 0:d.call(n))??bn(e.title)]}}),c&&B(YR,{key:"subtitle"},{default:()=>{var d;return[((d=n.subtitle)==null?void 0:d.call(n))??bn(e.subtitle)]}}),(l=n.default)==null?void 0:l.call(n)]),o&&se("div",{key:"append",class:"v-card-item__append"},[n.append?B(un,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):se(Qe,null,[e.appendIcon&&B(Un,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Bc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),nA=le({opacity:[Number,String],...ct(),...Pt()},"VCardText"),wd=Fe()({name:"VCardText",props:nA(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Oe(["v-card-text",e.class]),style:Xe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),rA=le({appendAvatar:String,appendIcon:Et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...oa(),...qb(),...kl(),...Xf(),...vr(),...Qf(),...Pt(),...nn(),...Ps({variant:"elevated"})},"VCard"),cg=Fe()({name:"VCard",directives:{vRipple:Wo},props:rA(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{colorClasses:o,colorStyles:a,variantClasses:c}=la(e),{densityClasses:l}=Bi(e),{dimensionStyles:d}=Vi(e),{elevationClasses:u}=aa(e),{loaderClasses:f}=Gb(e),{locationStyles:h}=Yf(e),{positionClasses:p}=Jf(e),{roundedClasses:m}=yr(e),y=Zf(e,n),g=be(void 0);return Se(()=>e.loading,(v,_)=>{g.value=!v&&typeof _=="string"?_:typeof v=="boolean"?void 0:v},{immediate:!0}),tt(()=>{const v=e.link!==!1&&y.isLink.value,_=!e.disabled&&e.link!==!1&&(e.link||y.isClickable.value),S=v?"a":e.tag,M=!!(r.title||e.title!=null),R=!!(r.subtitle||e.subtitle!=null),E=M||R,C=!!(r.append||e.appendAvatar||e.appendIcon),k=!!(r.prepend||e.prependAvatar||e.prependIcon),A=!!(r.image||e.image),O=E||k||C,T=!!(r.text||e.text!=null);return ws(B(S,Ze(y.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":_},s.value,i.value,o.value,l.value,u.value,f.value,p.value,m.value,c.value,e.class],style:[a.value,d.value,h.value,e.style],onClick:_&&y.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var P;return[A&&se("div",{key:"image",class:"v-card__image"},[r.image?B(un,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):B(pS,{key:"image-img",cover:!0,src:e.image},null)]),B(Zx,{name:"v-card",active:!!e.loading,color:g.value},{default:r.loader}),O&&B(tA,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),T&&B(wd,{key:"text"},{default:()=>{var N;return[((N=r.text)==null?void 0:N.call(r))??e.text]}}),(P=r.default)==null?void 0:P.call(r),r.actions&&B(uS,null,{default:r.actions}),ca(_,"v-card")]}}),[[Wo,_&&e.ripple]])}),{}}}),sA=le({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function rn(e,t,n){return Fe()({name:e,props:sA({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:c,offsetLeft:l,offsetWidth:d,offsetHeight:u}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${c}px`,a.style.left=`${l}px`,a.style.width=`${d}px`,a.style.height=`${u}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:c,top:l,left:d,width:u,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=c||"",a.style.top=l||"",a.style.left=d||"",a.style.width=u||"",a.style.height=f||""}}};return()=>{const a=r.group?Mf:Br;return qr(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function mS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Fe()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Lo()},group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Mf:Br;return()=>qr(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function gS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=$t(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const c=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=c})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const iA=le({target:[Object,Array]},"v-dialog-transition"),yu=new WeakMap,oA=Fe()({name:"VDialogTransition",props:iA(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),s.style.visibility="";const o=ug(e.target,s),{x:a,y:c,sx:l,sy:d,speed:u}=o;if(yu.set(s,o),Lo())ss(s,[{opacity:0},{}],{duration:125*u,easing:pm}).finished.then(()=>i());else{const h=ss(s,[{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0},{}],{duration:225*u,easing:pm});(f=lg(s))==null||f.forEach(p=>{ss(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:ud})}),h.finished.then(()=>i())}},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var f;await new Promise(h=>requestAnimationFrame(h));let o;!yu.has(s)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=ug(e.target,s):o=yu.get(s);const{x:a,y:c,sx:l,sy:d,speed:u}=o;Lo()?ss(s,[{},{opacity:0}],{duration:85*u,easing:mm}).finished.then(()=>i()):(ss(s,[{},{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0}],{duration:125*u,easing:mm}).finished.then(()=>i()),(f=lg(s))==null||f.forEach(p=>{ss(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:ud})}))},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?B(Br,Ze({name:"dialog-transition"},r,{css:!1}),n):B(Br,{name:"dialog-transition"},n)}});function lg(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function ug(e,t){const n=eb(e),r=tb(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(g=>parseFloat(g)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=n.left+n.width/2;o==="left"||a==="left"?c-=n.width/2:(o==="right"||a==="right")&&(c+=n.width/2);let l=n.top+n.height/2;o==="top"||a==="top"?l-=n.height/2:(o==="bottom"||a==="bottom")&&(l+=n.height/2);const d=n.width/r.width,u=n.height/r.height,f=Math.max(1,d,u),h=d/f||0,p=u/f||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),y=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:c-(s+r.left),y:l-(i+r.top),sx:h,sy:p,speed:y}}rn("fab-transition","center center","out-in");rn("dialog-bottom-transition");rn("dialog-top-transition");const N4=rn("fade-transition"),D4=rn("scale-transition");rn("scroll-x-transition");rn("scroll-x-reverse-transition");rn("scroll-y-transition");rn("scroll-y-reverse-transition");rn("slide-x-transition");const F4=rn("slide-x-reverse-transition"),$4=rn("slide-y-transition");rn("slide-y-reverse-transition");const aA=mS("expand-transition",gS()),B4=mS("expand-x-transition",gS("",!0)),cA=le({fullscreen:Boolean,scrollable:Boolean,...As(nh({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:oA},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),lA=Fe()({name:"VDialog",props:cA(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=er(e,"modelValue"),{scopeId:i}=th(),o=we();function a(){var l;n("afterEnter"),(e.scrim||e.retainFocus)&&((l=o.value)!=null&&l.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return Se(s,async l=>{var d;l||(await vt(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),tt(()=>{const l=$c.filterProps(e),d=Ze({"aria-haspopup":"dialog"},e.activatorProps),u=Ze({tabindex:-1},e.contentProps);return B($c,Ze({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},l,{modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,"aria-modal":"true",activatorProps:d,contentProps:u,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:c},i),{activator:r.activator,default:function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return B(un,{root:"VDialog"},{default:()=>{var m;return[(m=r.default)==null?void 0:m.call(r,...h)]}})}})}),cS({},o)}}),uA=["dotted","dashed","solid","double"],dA=le({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>uA.includes(e)},...ct(),...nn()},"VDivider"),vS=Fe()({name:"VDivider",props:dA(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{textColorClasses:i,textColorStyles:o}=bi(()=>e.color),a=j(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=me(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=me(e.thickness)),l}),c=ee(()=>{const l=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,d=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&l?me(l):void 0,marginInline:!e.vertical&&l?me(l):void 0,transform:d?`translate${e.vertical?"X":"Y"}(${me(d)})`:void 0}});return tt(()=>{const l=se("hr",{class:Oe([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class]),style:Xe([a.value,o.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?se("div",{class:Oe(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[l,se("div",{class:"v-divider__content",style:Xe(c.value)},[r.default()]),l]):l}),{}}}),fA=Bf("v-spacer","div","VSpacer"),Cd=Symbol.for("vuetify:list");function yS(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=Le(Cd,{filterable:!1,hasPrepend:be(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:be(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return Mt(Cd,n),t}function _S(){return Le(Cd,null)}const rh=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=de(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;if(n!=null)for(const o of Nf(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},bS=e=>{const t=rh(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;if(r!=null){const a=Nf(r);a.length&&(o=t.in(a.slice(0,1),s,i))}return o},out:(r,s,i)=>t.out(r,s,i)}},hA=e=>{const t=rh(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},pA=e=>{const t=bS(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},mA={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},SS={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},gA={open:SS.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},sh=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=de(r),e&&!s){const o=Array.from(i.entries()).reduce((a,c)=>{let[l,d]=c;return d==="on"&&a.push(l),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s,i)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},ES=e=>{const t=sh(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i,o)=>r!=null&&r.length?t.in(r.slice(0,1),s,i,o):new Map,out:(r,s,i)=>t.out(r,s,i)}},vA=e=>{const t=sh(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},yA=e=>{const t=ES(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},wS=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a,disabled:c}=n;r=de(r);const l=new Map(i),d=[r];for(;d.length;){const f=d.shift();c.has(f)||i.set(de(f),s?"on":"off"),o.has(f)&&d.push(...o.get(f))}let u=de(a.get(r));for(;u;){let f=!0,h=!0;for(const p of o.get(u)){const m=de(p);if(!c.has(m)&&(i.get(m)!=="on"&&(f=!1),i.has(m)&&i.get(m)!=="off"&&(h=!1),!f&&!h))break}i.set(u,f?"on":h?"off":"indeterminate"),u=de(a.get(u))}return e&&!s&&Array.from(i.entries()).reduce((h,p)=>{let[m,y]=p;return y==="on"&&h.push(m),h},[]).length===0?l:i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:i,children:r,parents:s,disabled:new Set});return i},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},_A=e=>{const t=wS(e);return{select:t.select,in:t.in,out:(r,s,i)=>{const o=[];for(const[a,c]of r.entries())if(c==="on"){if(i.has(a)){const l=i.get(a);if(r.get(l)==="on")continue}o.push(a)}return o}}},Si=Symbol.for("vuetify:nested"),CS={id:be(),root:{itemsRegistration:we("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:we(new Map),parents:we(new Map),disabled:we(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:we(!1),selectable:we(!1),opened:we(new Set),activated:we(new Set),selected:we(new Map),selectedValues:we([]),getPath:()=>[]}},bA=le({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),SA=(e,t,n)=>{let r=!1;const s=be(new Map),i=be(new Map),o=be(new Set),a=er(e,"opened",e.opened,_=>new Set(Array.isArray(_)?_.map(S=>de(S)):_),_=>[..._.values()]),c=j(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return hA(e.mandatory);case"single-leaf":return pA(e.mandatory);case"independent":return rh(e.mandatory);case"single-independent":default:return bS(e.mandatory)}}),l=j(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return yA(e.mandatory);case"leaf":return vA(e.mandatory);case"independent":return sh(e.mandatory);case"single-independent":return ES(e.mandatory);case"trunk":return _A(e.mandatory);case"classic":default:return wS(e.mandatory)}}),d=j(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return gA;case"single":return mA;case"multiple":default:return SS}}),u=er(e,"activated",e.activated,_=>c.value.in(_,s.value,i.value),_=>c.value.out(_,s.value,i.value)),f=er(e,"selected",e.selected,_=>l.value.in(_,s.value,i.value,o.value),_=>l.value.out(_,s.value,i.value));kn(()=>{r=!0});function h(_){const S=[];let M=de(_);for(;M!==void 0;)S.unshift(M),M=i.value.get(M);return S}const p=mt("nested"),m=new Set,y=jT(()=>{vt(()=>{s.value=new Map(s.value),i.value=new Map(i.value)})},100);Se(()=>[t.value,bt(n)],()=>{e.itemsRegistration==="props"&&g()},{immediate:!0});function g(){const _=new Map,S=new Map,M=new Set,R=bt(n)?k=>de(k.raw):k=>k.value,E=[...t.value];let C=0;for(;C<E.length;){const k=E[C++],A=R(k);if(k.children){const O=[];for(const T of k.children){const P=R(T);_.set(P,A),O.push(P),E.push(T)}S.set(A,O)}k.props.disabled&&M.add(A)}s.value=S,i.value=_,o.value=M}const v={id:be(),root:{opened:a,activatable:ee(()=>e.activatable),selectable:ee(()=>e.selectable),activated:u,selected:f,selectedValues:j(()=>{const _=[];for(const[S,M]of f.value.entries())M==="on"&&_.push(S);return _}),itemsRegistration:ee(()=>e.itemsRegistration),register:(_,S,M,R)=>{if(m.has(_)){h(_).map(String).join(" -> "),h(S).concat(_).map(String).join(" -> ");return}else m.add(_);S&&_!==S&&i.value.set(_,S),M&&o.value.add(_),R&&s.value.set(_,[]),S!=null&&s.value.set(S,[...s.value.get(S)||[],_]),y()},unregister:_=>{if(r)return;m.delete(_),s.value.delete(_),o.value.delete(_);const S=i.value.get(_);if(S){const M=s.value.get(S)??[];s.value.set(S,M.filter(R=>R!==_))}i.value.delete(_),y()},updateDisabled:(_,S)=>{S?o.value.add(_):o.value.delete(_)},open:(_,S,M)=>{p.emit("click:open",{id:_,value:S,path:h(_),event:M});const R=d.value.open({id:_,value:S,opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},openOnSelect:(_,S,M)=>{const R=d.value.select({id:_,value:S,selected:new Map(f.value),opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},select:(_,S,M)=>{p.emit("click:select",{id:_,value:S,path:h(_),event:M});const R=l.value.select({id:_,value:S,selected:new Map(f.value),children:s.value,parents:i.value,disabled:o.value,event:M});R&&(f.value=R),v.root.openOnSelect(_,S,M)},activate:(_,S,M)=>{if(!e.activatable)return v.root.select(_,!0,M);p.emit("click:activate",{id:_,value:S,path:h(_),event:M});const R=c.value.activate({id:_,value:S,activated:new Set(u.value),children:s.value,parents:i.value,event:M});if(R.size!==u.value.size)u.value=R;else{for(const E of R)if(!u.value.has(E)){u.value=R;return}for(const E of u.value)if(!R.has(E)){u.value=R;return}}},children:s,parents:i,disabled:o,getPath:h}};return Mt(Si,v),v.root},TS=(e,t,n)=>{const r=Le(Si,CS),s=Symbol("nested item"),i=j(()=>{const a=de(bt(e));return a!==void 0?a:s}),o={...r,id:i,open:(a,c)=>r.root.open(i.value,a,c),openOnSelect:(a,c)=>r.root.openOnSelect(i.value,a,c),isOpen:j(()=>r.root.opened.value.has(i.value)),parent:j(()=>r.root.parents.value.get(i.value)),activate:(a,c)=>r.root.activate(i.value,a,c),isActivated:j(()=>r.root.activated.value.has(i.value)),select:(a,c)=>r.root.select(i.value,a,c),isSelected:j(()=>r.root.selected.value.get(i.value)==="on"),isIndeterminate:j(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:j(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return ml(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||vt(()=>{r.root.register(i.value,r.id.value,bt(t),n)})}),kn(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(i.value)}),Se(i,(a,c)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(c),vt(()=>{r.root.register(a,r.id.value,bt(t),n)}))}),Se(()=>bt(t),a=>{r.root.updateDisabled(i.value,a)}),n&&Mt(Si,o),o},EA=()=>{const e=Le(Si,CS);Mt(Si,{...e,isGroupActivator:!0})};function wA(){const e=be(!1);return zr(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:ee(()=>e.value?void 0:{transition:"none !important"}),isBooted:hi(e)}}const CA=Ni({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return EA(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),TA=le({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Et,default:"$collapse"},disabled:Boolean,expandIcon:{type:Et,default:"$expand"},rawId:[String,Number],prependIcon:Et,appendIcon:Et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...Pt()},"VListGroup"),dg=Fe()({name:"VListGroup",props:TA(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=TS(()=>e.value,()=>e.disabled,!0),o=j(()=>`v-list-group--id-${String(e.rawId??i.value)}`),a=_S(),{isBooted:c}=wA(),l=Le(Si),d=ee(()=>{var m;return((m=l==null?void 0:l.root)==null?void 0:m.itemsRegistration.value)==="render"});function u(m){var y;["INPUT","TEXTAREA"].includes((y=m.target)==null?void 0:y.tagName)||s(!r.value,m)}const f=j(()=>({onClick:u,class:"v-list-group__header",id:o.value})),h=j(()=>r.value?e.collapseIcon:e.expandIcon),p=j(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return tt(()=>B(e.tag,{class:Oe(["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:Xe(e.style)},{default:()=>[n.activator&&B(un,{defaults:p.value},{default:()=>[B(CA,null,{default:()=>[n.activator({props:f.value,isOpen:r.value})]})]}),B(Qs,{transition:{component:aA},disabled:!c.value},{default:()=>{var m,y;return[d.value?ws(se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(m=n.default)==null?void 0:m.call(n)]),[[Af,r.value]]):r.value&&se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(y=n.default)==null?void 0:y.call(n)])]}})]})),{isOpen:r}}}),kA=le({opacity:[Number,String],...ct(),...Pt()},"VListItemSubtitle"),kS=Fe()({name:"VListItemSubtitle",props:kA(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Oe(["v-list-item-subtitle",e.class]),style:Xe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),IS=Bf("v-list-item-title"),IA=le({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Et,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:yo(),onClickOnce:yo(),...Fi(),...ct(),...Ms(),...Hi(),...oa(),...vr(),...Qf(),...Pt(),...nn(),...Ps({variant:"text"})},"VListItem"),Td=Fe()({name:"VListItem",directives:{vRipple:Wo},props:IA(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=Zf(e,n),o=j(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:c,select:l,isOpen:d,isSelected:u,isIndeterminate:f,isGroupActivator:h,root:p,parent:m,openOnSelect:y,id:g}=TS(o,()=>e.disabled,!1),v=_S(),_=j(()=>{var x;return e.active!==!1&&(e.active||((x=i.isActive)==null?void 0:x.value)||(p.activatable.value?c.value:u.value))}),S=ee(()=>e.link!==!1&&i.isLink.value),M=j(()=>!!v&&(p.selectable.value||p.activatable.value||e.value!=null)),R=j(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||M.value)),E=j(()=>v?S.value?"link":M.value?"option":"listitem":void 0),C=j(()=>{if(M.value)return p.activatable.value?c.value:p.selectable.value?u.value:_.value}),k=ee(()=>e.rounded||e.nav),A=ee(()=>e.color??e.activeColor),O=ee(()=>({color:_.value?A.value??e.baseColor:e.baseColor,variant:e.variant}));Se(()=>{var x;return(x=i.isActive)==null?void 0:x.value},x=>{x&&T()}),ml(()=>{var x;(x=i.isActive)!=null&&x.value&&vt(()=>T())});function T(){m.value!=null&&p.open(m.value,!0),y(!0)}const{themeClasses:P}=mn(e),{borderClasses:N}=$i(e),{colorClasses:z,colorStyles:X,variantClasses:q}=la(O),{densityClasses:D}=Bi(e),{dimensionStyles:re}=Vi(e),{elevationClasses:U}=aa(e),{roundedClasses:ie}=yr(k),ce=ee(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),ue=ee(()=>e.ripple!==void 0&&e.ripple&&(v!=null&&v.filterable)?{keys:["Enter"]}:e.ripple),Ce=j(()=>({isActive:_.value,select:l,isOpen:d.value,isSelected:u.value,isIndeterminate:f.value}));function Ne(x){var W,K;s("click",x),!["INPUT","TEXTAREA"].includes((W=x.target)==null?void 0:W.tagName)&&R.value&&((K=i.navigate)==null||K.call(i,x),!h&&(p.activatable.value?a(!c.value,x):(p.selectable.value||e.value!=null&&!S.value)&&l(!u.value,x)))}function Ve(x){const W=x.target;["INPUT","TEXTAREA"].includes(W.tagName)||(x.key==="Enter"||x.key===" "&&!(v!=null&&v.filterable))&&(x.preventDefault(),x.stopPropagation(),x.target.dispatchEvent(new MouseEvent("click",x)))}return tt(()=>{const x=S.value?"a":e.tag,W=r.title||e.title!=null,K=r.subtitle||e.subtitle!=null,ne=!!(e.appendAvatar||e.appendIcon),ye=!!(ne||r.append),b=!!(e.prependAvatar||e.prependIcon),w=!!(b||r.prepend);return v==null||v.updateHasPrepend(w),e.activeColor&&W_("active-color",["color","base-color"]),ws(B(x,Ze(i.linkProps,{class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":R.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&_.value},P.value,N.value,z.value,D.value,U.value,ce.value,ie.value,q.value,e.class],style:[{"--v-list-prepend-gap":me(e.prependGap)},X.value,re.value,e.style],tabindex:R.value?v?-2:0:void 0,"aria-selected":C.value,role:E.value,onClick:Ne,onKeydown:R.value&&!S.value&&Ve}),{default:()=>{var I;return[ca(R.value||_.value,"v-list-item"),w&&se("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!b,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var L;return[(L=r.prepend)==null?void 0:L.call(r,Ce.value)]}}):se(Qe,null,[e.prependAvatar&&B(Bc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Un,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),se("div",{class:"v-list-item__spacer"},null)]),se("div",{class:"v-list-item__content","data-no-activator":""},[W&&B(IS,{key:"title"},{default:()=>{var L;return[((L=r.title)==null?void 0:L.call(r,{title:e.title}))??bn(e.title)]}}),K&&B(kS,{key:"subtitle"},{default:()=>{var L;return[((L=r.subtitle)==null?void 0:L.call(r,{subtitle:e.subtitle}))??bn(e.subtitle)]}}),(I=r.default)==null?void 0:I.call(r,Ce.value)]),ye&&se("div",{key:"append",class:"v-list-item__append"},[r.append?B(un,{key:"append-defaults",disabled:!ne,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var L;return[(L=r.append)==null?void 0:L.call(r,Ce.value)]}}):se(Qe,null,[e.appendIcon&&B(Un,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Bc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),se("div",{class:"v-list-item__spacer"},null)])]}}),[[Wo,R.value&&ue.value]])}),{activate:a,isActivated:c,isGroupActivator:h,isSelected:u,list:v,select:l,root:p,id:g,link:i}}}),xA=le({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...Pt()},"VListSubheader"),RA=Fe()({name:"VListSubheader",props:xA(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=bi(()=>e.color);return tt(()=>{const i=!!(n.default||e.title);return B(e.tag,{class:Oe(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:Xe([{textColorStyles:s},e.style])},{default:()=>{var o;return[i&&se("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),AA=le({items:Array,returnObject:Boolean},"VListChildren"),xS=Fe()({name:"VListChildren",props:AA(),setup(e,t){let{slots:n}=t;return yS(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var f,h;let{children:o,props:a,type:c,raw:l}=i;if(c==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??B(vS,a,null);if(c==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??B(RA,a,null);const d={subtitle:n.subtitle?p=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...p,item:l})}:void 0,prepend:n.prepend?p=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...p,item:l})}:void 0,append:n.append?p=>{var m;return(m=n.append)==null?void 0:m.call(n,{...p,item:l})}:void 0,title:n.title?p=>{var m;return(m=n.title)==null?void 0:m.call(n,{...p,item:l})}:void 0},u=dg.filterProps(a);return o?B(dg,Ze(u,{value:e.returnObject?l:a==null?void 0:a.value,rawId:a==null?void 0:a.value}),{activator:p=>{let{props:m}=p;const y=Ze(a,m,{value:e.returnObject?l:a.value});return n.header?n.header({props:y}):B(Td,y,d)},default:()=>B(xS,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):B(Td,Ze(a,{value:e.returnObject?l:a.value}),d)}))}}}),MA=le({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),PA=new Set(["item","divider","subheader"]);function ui(e,t){const n=Fn(t,e.itemTitle,t),r=Fn(t,e.itemValue,n),s=Fn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?As(t,["children"]):t:void 0:Fn(t,e.itemProps);let o=Fn(t,e.itemType,"item");PA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(s)?RS(e,s):void 0,raw:t}}ui.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function RS(e,t){const n=Lf(e,ui.neededProps),r=[];for(const s of t)r.push(ui(n,s));return r}function H4(e){const t=j(()=>RS(e,e.items)),n=j(()=>t.value.some(a=>a.value===null)),r=be(new Map),s=be([]);hn(()=>{const a=t.value,c=new Map,l=[];for(let d=0;d<a.length;d++){const u=a[d];if(Ts(u.value)||u.value===null){let f=c.get(u.value);f||(f=[],c.set(u.value,f)),f.push(u)}else l.push(u)}r.value=c,s.value=l});function i(a){const c=r.value,l=t.value,d=s.value,u=n.value,f=e.returnObject,h=!!e.valueComparator,p=e.valueComparator||gs,m=Lf(e,ui.neededProps),y=[];e:for(const g of a){if(!u&&g===null)continue;if(f&&typeof g=="string"){y.push(ui(m,g));continue}const v=c.get(g);if(h||!v){for(const _ of h?l:d)if(p(g,_.value)){y.push(_);continue e}y.push(ui(m,g));continue}y.push(...v)}return y}function o(a){return e.returnObject?a.map(c=>{let{raw:l}=c;return l}):a.map(c=>{let{value:l}=c;return l})}return{items:t,transformIn:i,transformOut:o}}const OA=new Set(["item","divider","subheader"]);function LA(e,t){const n=Ts(t)?t:Fn(t,e.itemTitle),r=Ts(t)?t:Fn(t,e.itemValue,void 0),s=Fn(t,e.itemChildren),i=e.itemProps===!0?As(t,["children"]):Fn(t,e.itemProps);let o=Fn(t,e.itemType,"item");OA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&s?AS(e,s):void 0,raw:t}}function AS(e,t){const n=[];for(const r of t)n.push(LA(e,r));return n}function NA(e){return{items:j(()=>AS(e,e.items))}}const DA=le({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:Et,collapseIcon:Et,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":yo(),"onClick:select":yo(),"onUpdate:opened":yo(),...bA({selectStrategy:"single-leaf",openStrategy:"list"}),...Fi(),...ct(),...Ms(),...Hi(),...oa(),...MA(),...vr(),...Pt(),...nn(),...Ps({variant:"text"})},"VList"),FA=Fe()({name:"VList",props:DA(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=NA(e),{themeClasses:s}=mn(e),{backgroundColorClasses:i,backgroundColorStyles:o}=li(()=>e.bgColor),{borderClasses:a}=$i(e),{densityClasses:c}=Bi(e),{dimensionStyles:l}=Vi(e),{elevationClasses:d}=aa(e),{roundedClasses:u}=yr(e),{children:f,open:h,parents:p,select:m,getPath:y}=SA(e,r,()=>e.returnObject),g=ee(()=>e.lines?`v-list--${e.lines}-line`:void 0),v=ee(()=>e.activeColor),_=ee(()=>e.baseColor),S=ee(()=>e.color),M=ee(()=>e.selectable||e.activatable);yS({filterable:e.filterable}),yl({VListGroup:{activeColor:v,baseColor:_,color:S,expandIcon:ee(()=>e.expandIcon),collapseIcon:ee(()=>e.collapseIcon)},VListItem:{activeClass:ee(()=>e.activeClass),activeColor:v,baseColor:_,color:S,density:ee(()=>e.density),disabled:ee(()=>e.disabled),lines:ee(()=>e.lines),nav:ee(()=>e.nav),slim:ee(()=>e.slim),variant:ee(()=>e.variant)}});const R=be(!1),E=we();function C(N){R.value=!0}function k(N){R.value=!1}function A(N){var z;!R.value&&!(N.relatedTarget&&((z=E.value)!=null&&z.contains(N.relatedTarget)))&&P()}function O(N){const z=N.target;if(!(!E.value||z.tagName==="INPUT"&&["Home","End"].includes(N.key)||z.tagName==="TEXTAREA")){if(N.key==="ArrowDown")P("next");else if(N.key==="ArrowUp")P("prev");else if(N.key==="Home")P("first");else if(N.key==="End")P("last");else return;N.preventDefault()}}function T(N){R.value=!0}function P(N){if(E.value)return Z_(E.value,N)}return tt(()=>{const N=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return B(e.tag,{ref:E,class:Oe(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,c.value,d.value,g.value,u.value,e.class]),style:Xe([{"--v-list-indent":me(N),"--v-list-group-prepend":N?"0px":void 0,"--v-list-prepend-gap":me(e.prependGap)},o.value,l.value,e.style]),tabindex:e.disabled?-1:0,role:M.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:C,onFocusout:k,onFocus:A,onKeydown:O,onMousedown:T},{default:()=>[B(xS,{items:r.value,returnObject:e.returnObject},n)]})}),{open:h,select:m,focus:P,children:f,parents:p,getPath:y}}});let kd=null;const MS={name:"RateLimitModal",data(){return{isVisible:!1,activeRequests:[]}},computed:{hasActiveRequests(){return this.activeRequests.length>0}},watch:{hasActiveRequests(e){this.isVisible=e}},methods:{close(){this.isVisible=!1},show(e,t,n){const r=Date.now()+Math.random().toString(36).substring(2,9),s=Math.max(0,Math.floor((new Date(e)-new Date)/1e3)),i={id:r,resetTime:e,path:t,method:n,remainingSeconds:s};this.activeRequests.push(i),this.startCountdown(r),this.isVisible=!0},startCountdown(e){const t=this.activeRequests.find(r=>r.id===e);if(!t)return;const n=setInterval(()=>{const r=this.activeRequests.findIndex(s=>s.id===e);if(r===-1){clearInterval(n);return}this.activeRequests[r].remainingSeconds--,this.activeRequests[r].remainingSeconds<=0&&(clearInterval(n),this.activeRequests.splice(r,1))},1e3);t.intervalId=n},clearAllCountdowns(){this.activeRequests.forEach(e=>{e.intervalId&&clearInterval(e.intervalId)}),this.activeRequests=[]}},beforeUnmount(){this.clearAllCountdowns()},created(){kd=this}};MS.show=function(e,t,n){kd&&kd.show(e,t,n)};const $A=MS,BA={class:"text-primary font-weight-bold"};function HA(e,t,n,r,s,i){return cn(),$n(lA,{modelValue:e.isVisible,"onUpdate:modelValue":t[0]||(t[0]=o=>e.isVisible=o),"max-width":"500",persistent:""},{default:gt(()=>[B(cg,{class:"rate-limit-modal"},{default:gt(()=>[B(dS,{class:"text-center pa-4 bg-error text-white"},{default:gt(()=>[B(Un,{class:"mr-2",icon:"mdi-clock-alert-outline",size:"large"}),t[1]||(t[1]=co(" 请求频率超限 ",-1))]),_:1}),B(wd,{class:"pa-6"},{default:gt(()=>[t[3]||(t[3]=se("div",{class:"text-body-1 mb-4"},"您的请求过于频繁,请稍后再试。",-1)),e.activeRequests.length>0?(cn(),$n(cg,{key:0,class:"mb-4",flat:""},{default:gt(()=>[B(wd,null,{default:gt(()=>[(cn(!0),A_(Qe,null,M1(e.activeRequests,(o,a)=>(cn(),$n(FA,{key:a,class:"mb-4"},{default:gt(()=>[B(Td,{color:"primary","prepend-icon":"mdi-web"},{default:gt(()=>[B(IS,null,{default:gt(()=>[t[2]||(t[2]=co(" 等待时间: ",-1)),se("span",BA,bn(o.remainingSeconds),1)]),_:2},1024),B(kS,null,{default:gt(()=>[co(bn(o.method)+" "+bn(o.path),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e.index<e.activeRequests.length-1?(cn(),$n(vS,{key:0,class:"my-3"})):td("",!0)]),_:1})]),_:1})):td("",!0),t[4]||(t[4]=se("div",{class:"text-body-2 text-grey"}," 请在等待时间后再次尝试,或减少请求频率以避免限制。 ",-1))]),_:1}),B(uS,{class:"pa-4 pt-0"},{default:gt(()=>[B(fA),B(tS,{color:"primary",variant:"tonal",onClick:e.close},{default:gt(()=>[...t[5]||(t[5]=[co(" 我知道了",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const VA=Hb($A,[["render",HA]]),UA=le({...ct(),...As(tI(),["fullHeight"]),...nn()},"VApp"),WA=Fe()({name:"VApp",props:UA(),setup(e,t){let{slots:n}=t;const r=mn(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=sI({...e,fullHeight:!0}),{rtlClasses:c}=sa();return tt(()=>{var l;return se("div",{ref:a,class:Oe(["v-application",r.themeClasses.value,s.value,c.value,e.class]),style:Xe([e.style])},[se("div",{class:"v-application__wrap"},[(l=n.default)==null?void 0:l.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),jA={__name:"App",setup(e){const t=bb();return zr(()=>{const n=Gf("theme.mode");t.global.name.value=n,window.addEventListener("beforeinstallprompt",r=>{r.preventDefault(),window.deferredPwaPrompt=r,window.dispatchEvent(new Event("pwa-prompt-ready"))})}),(n,r)=>{const s=A1("router-view"),i=lS;return cn(),$n(WA,null,{default:gt(()=>[B(s,null,{default:gt(({Component:o,route:a})=>[B(Br,{mode:"out-in",name:"md3"},{default:gt(()=>[(cn(),$n(u_(o),{key:a.path}))]),_:2},1024)]),_:1}),B(i),B(VA)]),_:1})}}};let _u;const fg=e=>({get:async()=>({visitorId:"unknown",error:(e==null?void 0:e.message)||String(e||""),fallback:!0})}),zA=async()=>{try{const e=await yt(()=>import("./fp.esm-HJFDfcHo.js"),[],import.meta.url);return(e==null?void 0:e.default)||e}catch(e){return console.warn("Fingerprint library blocked or failed to load; using fallback agent.",e),null}},PS=()=>(_u||(_u=(async()=>{const e=await zA();if(!e)return fg(new Error("fingerprint module unavailable"));try{return await e.load()}catch(t){return console.warn("FingerprintJS.load failed, using fallback agent.",t),fg(t)}})()),_u),OS=async()=>{const t=await(await PS()).get();return(t==null?void 0:t.visitorId)||"unknown"},V4=async()=>await(await PS()).get(),ae=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xe=globalThis,ys="10.39.0";function Os(){return Il(xe),xe}function Il(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ys,t[ys]=t[ys]||{}}function Ui(e,t,n=xe){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[ys]=r[ys]||{};return s[e]||(s[e]=t())}const qA=["debug","info","warn","error","log","assert","trace"],GA="Sentry Logger ",Hc={};function _r(e){if(!("console"in xe))return e();const t=xe.console,n={},r=Object.keys(Hc);r.forEach(s=>{const i=Hc[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function KA(){oh().enabled=!0}function YA(){oh().enabled=!1}function LS(){return oh().enabled}function XA(...e){ih("log",...e)}function JA(...e){ih("warn",...e)}function ZA(...e){ih("error",...e)}function ih(e,...t){ae&&LS()&&_r(()=>{xe.console[e](`${GA}[${e}]:`,...t)})}function oh(){return ae?Ui("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const J={enable:KA,disable:YA,isEnabled:LS,log:XA,warn:JA,error:ZA},NS=50,ks="?",hg=/\(error: (.*)\)/,pg=/captureMessage|captureException/;function DS(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
|
||
`);for(let a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const l=hg.test(c)?c.replace(hg,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){i.push(u);break}}if(i.length>=NS+s)break}}return eM(i.slice(s))}}function QA(e){return Array.isArray(e)?DS(...e):e}function eM(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Na(t).function||"")&&t.pop(),t.reverse(),pg.test(Na(t).function||"")&&(t.pop(),pg.test(Na(t).function||"")&&t.pop()),t.slice(0,NS).map(n=>({...n,filename:n.filename||Na(t).filename,function:n.function||ks}))}function Na(e){return e[e.length-1]||{}}const bu="<anonymous>";function lr(e){try{return!e||typeof e!="function"?bu:e.name||bu}catch{return bu}}function mg(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function FS(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const rc={},gg={};function Kr(e,t){rc[e]=rc[e]||[],rc[e].push(t)}function Yr(e,t){if(!gg[e]){gg[e]=!0;try{t()}catch(n){ae&&J.error(`Error while instrumenting ${e}`,n)}}}function dn(e,t){const n=e&&rc[e];if(n)for(const r of n)try{r(t)}catch(s){ae&&J.error(`Error while triggering instrumentation handler.
|
||
Type: ${e}
|
||
Name: ${lr(r)}
|
||
Error:`,s)}}let Su=null;function $S(e){const t="error";Kr(t,e),Yr(t,tM)}function tM(){Su=xe.onerror,xe.onerror=function(e,t,n,r,s){return dn("error",{column:r,error:s,line:n,msg:e,url:t}),Su?Su.apply(this,arguments):!1},xe.onerror.__SENTRY_INSTRUMENTED__=!0}let Eu=null;function BS(e){const t="unhandledrejection";Kr(t,e),Yr(t,nM)}function nM(){Eu=xe.onunhandledrejection,xe.onunhandledrejection=function(e){return dn("unhandledrejection",e),Eu?Eu.apply(this,arguments):!0},xe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const HS=Object.prototype.toString;function xl(e){switch(HS.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ur(e,Error)}}function Wi(e,t){return HS.call(e)===`[object ${t}]`}function VS(e){return Wi(e,"ErrorEvent")}function vg(e){return Wi(e,"DOMError")}function rM(e){return Wi(e,"DOMException")}function tr(e){return Wi(e,"String")}function ah(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ei(e){return e===null||ah(e)||typeof e!="object"&&typeof e!="function"}function jo(e){return Wi(e,"Object")}function Rl(e){return typeof Event<"u"&&ur(e,Event)}function sM(e){return typeof Element<"u"&&ur(e,Element)}function iM(e){return Wi(e,"RegExp")}function ji(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function oM(e){return jo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ur(e,t){try{return e instanceof t}catch{return!1}}function US(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function ch(e){return typeof Request<"u"&&ur(e,Request)}const lh=xe,aM=80;function zt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||aM;for(;n&&i++<r&&(l=cM(n,d),!(l==="html"||i>1&&o+s.length*c+l.length>=u));)s.push(l),o+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function cM(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(lh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t!=null&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s!=null&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&tr(o)){const a=o.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function Ls(){try{return lh.document.location.href}catch{return""}}function WS(e){if(!lh.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Wt(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&jS(s,r);try{e[t]=s}catch{ae&&J.log(`Failed to replace method "${t}" in object`,e)}}function qt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ae&&J.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function jS(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,qt(e,"__sentry_original__",t)}catch{}}function uh(e){return e.__sentry_original__}function zS(e){if(xl(e))return{message:e.message,name:e.name,stack:e.stack,..._g(e)};if(Rl(e)){const t={type:e.type,target:yg(e.target),currentTarget:yg(e.currentTarget),..._g(e)};return typeof CustomEvent<"u"&&ur(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function yg(e){try{return sM(e)?zt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function _g(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function lM(e){const t=Object.keys(zS(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Us;function ua(e){if(Us!==void 0)return Us?Us(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=xe;return t in n&&typeof n[t]=="function"?(Us=n[t],Us(e)):(Us=null,e())}function Lr(){return ua(()=>Math.random())}function da(){return ua(()=>Date.now())}function Id(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function bg(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{US(s)?n.push(FS(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function sc(e,t,n=!1){return tr(e)?iM(t)?t.test(e):tr(t)?n?e===t:e.includes(t):!1:!1}function nr(e,t=[],n=!1){return t.some(r=>sc(e,r,n))}function uM(){const e=xe;return e.crypto||e.msCrypto}let wu;function dM(){return Lr()*16}function tn(e=uM()){try{if(e!=null&&e.randomUUID)return ua(()=>e.randomUUID()).replace(/-/g,"")}catch{}return wu||(wu="10000000100040008000"+1e11),wu.replace(/[018]/g,t=>(t^(dM()&15)>>t/4).toString(16))}function qS(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function as(e){const{message:t,event_id:n}=e;if(t)return t;const r=qS(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function xd(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function wi(e,t){const n=qS(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s==null?void 0:s.data,...t.data};n.mechanism.data=i}}function Sg(e){if(fM(e))return!0;try{qt(e,"__sentry_captured__",!0)}catch{}return!1}function fM(e){try{return e.__sentry_captured__}catch{}}const GS=1e3;function Ns(){return da()/GS}function hM(){const{performance:e}=xe;if(!(e!=null&&e.now)||!e.timeOrigin)return Ns;const t=e.timeOrigin;return()=>(t+ua(()=>e.now()))/GS}let Eg;function lt(){return(Eg??(Eg=hM()))()}let Cu=null;function pM(){var o;const{performance:e}=xe;if(!(e!=null&&e.now))return;const t=3e5,n=ua(()=>e.now()),r=da(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const i=(o=e.timing)==null?void 0:o.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function Gt(){return Cu===null&&(Cu=pM()),Cu}function mM(e){const t=lt(),n={sid:tn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>vM(n)};return e&&Ci(n,e),n}function Ci(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||lt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:tn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function gM(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Ci(e,n)}function vM(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${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}}}function fa(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=fa(r[s],t[s],n-1));return r}function dr(){return tn()}function rr(){return tn().substring(16)}const Rd="_sentrySpan";function Ti(e,t){t?qt(e,Rd,t):delete e[Rd]}function Vc(e){return e[Rd]}const yM=100;class Wn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:dr(),sampleRand:Lr()}}clone(){const t=new Wn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ti(t,Vc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ci(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Wn?n.getScopeData():jo(n)?t:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:l,fingerprint:d=[],propagationContext:u,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ti(this,void 0),this._attachments=[],this.setPropagationContext({traceId:dr(),sampleRand:Lr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var i;const r=typeof n=="number"?n:yM;if(r<=0)return this;const s={timestamp:Ns(),...t,message:t.message?Id(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Vc(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=fa(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||tn();if(!this._client)return ae&&J.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=(r==null?void 0:r.event_id)||tn();if(!this._client)return ae&&J.warn("No client configured on scope - will not capture message!"),s;const i=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||(n==null?void 0:n.event_id)||tn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ae&&J.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function _M(){return Ui("defaultCurrentScope",()=>new Wn)}function bM(){return Ui("defaultIsolationScope",()=>new Wn)}class SM{constructor(t,n){let r;t?r=t:r=new Wn;let s;n?s=n:s=new Wn,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ji(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ki(){const e=Os(),t=Il(e);return t.stack=t.stack||new SM(_M(),bM())}function EM(e){return ki().withScope(e)}function wM(e,t){const n=ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function wg(e){return ki().withScope(()=>e(ki().getIsolationScope()))}function CM(){return{withIsolationScope:wg,withScope:EM,withSetScope:wM,withSetIsolationScope:(e,t)=>wg(t),getCurrentScope:()=>ki().getScope(),getIsolationScope:()=>ki().getIsolationScope()}}function zi(e){const t=Il(e);return t.acs?t.acs:CM()}function Pe(){const e=Os();return zi(e).getCurrentScope()}function Kt(){const e=Os();return zi(e).getIsolationScope()}function KS(){return Ui("globalScope",()=>new Wn)}function Al(...e){const t=Os(),n=zi(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ee(){return Pe().getClient()}function TM(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||rr()};return r&&(i.parent_span_id=r),i}const jt="sentry.source",dh="sentry.sample_rate",YS="sentry.previous_trace_sample_rate",fr="sentry.op",st="sentry.origin",zo="sentry.idle_span_finish_reason",ha="sentry.measurement_unit",pa="sentry.measurement_value",Cg="sentry.custom_span_name",fh="sentry.profile_id",qi="sentry.exclusive_time",kM="sentry.link.type",IM="gen_ai.conversation.id",xM=0,hh=1,ht=2;function RM(e){if(e<400&&e>=100)return{code:hh};if(e>=400&&e<500)switch(e){case 401:return{code:ht,message:"unauthenticated"};case 403:return{code:ht,message:"permission_denied"};case 404:return{code:ht,message:"not_found"};case 409:return{code:ht,message:"already_exists"};case 413:return{code:ht,message:"failed_precondition"};case 429:return{code:ht,message:"resource_exhausted"};case 499:return{code:ht,message:"cancelled"};default:return{code:ht,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ht,message:"unimplemented"};case 503:return{code:ht,message:"unavailable"};case 504:return{code:ht,message:"deadline_exceeded"};default:return{code:ht,message:"internal_error"}}return{code:ht,message:"internal_error"}}function XS(e,t){e.setAttribute("http.response.status_code",t);const n=RM(t);n.message!=="unknown_error"&&e.setStatus(n)}const JS="_sentryScope",ZS="_sentryIsolationScope";function AM(e){try{const t=xe.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function MM(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function PM(e,t,n){e&&(qt(e,ZS,AM(n)),qt(e,JS,t))}function Uc(e){const t=e;return{scope:t[JS],isolationScope:MM(t[ZS])}}const ph="sentry-",OM=/^sentry-/,LM=8192;function QS(e){const t=DM(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(OM)){const o=s.slice(ph.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function NM(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${ph}${r}`]=s),n),{});return FM(t)}function DM(e){if(!(!e||!tr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Tg(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):Tg(e)}function Tg(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function FM(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>LM?(ae&&J.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const $M=/^o(\d+)\./,BM=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function HM(e){return e==="http"||e==="https"}function Gi(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function VM(e){const t=BM.exec(e);if(!t){_r(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",l=a;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return e0({host:i,pass:s,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function e0(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function UM(e){if(!ae)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(J.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?HM(r)?t&&isNaN(parseInt(t,10))?(J.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(J.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(J.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function WM(e){const t=e.match($M);return t==null?void 0:t[1]}function jM(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=WM(n)),r}function zM(e){const t=typeof e=="string"?VM(e):e0(e);if(!(!t||!UM(t)))return t}function Is(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const t0=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function qM(e){if(!e)return;const t=e.match(t0);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function GM(e,t){const n=qM(e),r=QS(t);if(!(n!=null&&n.traceId))return{traceId:dr(),sampleRand:Lr()};const s=KM(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function n0(e=dr(),t=rr(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function r0(e=dr(),t=rr(),n){return`00-${e}-${t}-${n?"01":"00"}`}function KM(e,t){const n=Is(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Is(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Lr()*r:r+Lr()*(1-r):Lr()}const s0=0,mh=1;let kg=!1;function YM(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=Re(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function XM(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Re(e).parent_span_id,i=Uc(e).scope,o=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||rr():t;return{parent_span_id:s,span_id:o,trace_id:n}}function JM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return n0(t,n,r)}function ZM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return r0(t,n,r)}function i0(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===mh,attributes:i,...s}))}function _s(e){return typeof e=="number"?Ig(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ig(e.getTime()):lt()}function Ig(e){return e>9999999999?e/1e3:e}function Re(e){var r;if(eP(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(QM(e)){const{attributes:s,startTime:i,name:o,endTime:a,status:c,links:l}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:s,description:o,parent_span_id:d,start_timestamp:_s(i),timestamp:_s(a)||void 0,status:o0(c),op:s[fr],origin:s[st],links:i0(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function QM(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function eP(e){return typeof e.getSpanJSON=="function"}function Xr(e){const{traceFlags:t}=e.spanContext();return t===mh}function o0(e){if(!(!e||e.code===xM))return e.code===hh?"ok":e.message||"internal_error"}const bs="_sentryChildSpans",Ad="_sentryRootSpan";function a0(e,t){const n=e[Ad]||e;qt(t,Ad,n),e[bs]?e[bs].add(t):qt(e,bs,new Set([t]))}function tP(e,t){e[bs]&&e[bs].delete(t)}function ic(e){const t=new Set;function n(r){if(!t.has(r)&&Xr(r)){t.add(r);const s=r[bs]?Array.from(r[bs]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}function wt(e){return e[Ad]||e}function Tt(){const e=Os(),t=zi(e);return t.getActiveSpan?t.getActiveSpan():Vc(Pe())}function Md(){kg||(_r(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),kg=!0)}let xg=!1;function nP(){if(xg)return;function e(){const t=Tt(),n=t&&wt(t);if(n){const r="internal_error";ae&&J.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ht,message:r})}}e.tag="sentry_tracingErrorCallback",xg=!0,$S(e),BS(e)}function fn(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Ee())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Rg(e){J.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Wc(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(sP(n)){if(sc(e.description,n))return ae&&Rg(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?sc(e.description,n.name):!0,s=n.op?e.op&&sc(e.op,n.op):!0;if(r&&s)return ae&&Rg(e),!0}return!1}function rP(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function sP(e){return typeof e=="string"||e instanceof RegExp}const gh="production",c0="_frozenDsc";function oc(e,t){qt(e,c0,t)}function l0(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||gh,release:n.release,public_key:r,trace_id:e,org_id:jM(t)};return t.emit("createDsc",s),s}function u0(e,t){const n=t.getPropagationContext();return n.dsc||l0(n.traceId,e)}function hr(e){var p;const t=Ee();if(!t)return{};const n=wt(e),r=Re(n),s=r.data,i=n.spanContext().traceState,o=(i==null?void 0:i.get("sentry.sample_rate"))??s[dh]??s[YS];function a(m){return(typeof o=="number"||typeof o=="string")&&(m.sample_rate=`${o}`),m}const c=n[c0];if(c)return a(c);const l=i==null?void 0:i.get("sentry.dsc"),d=l&&QS(l);if(d)return a(d);const u=l0(e.spanContext().traceId,t),f=s[jt],h=r.description;return f!=="url"&&h&&(u.transaction=h),fn()&&(u.sampled=String(Xr(n)),u.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((p=Uc(n).scope)==null?void 0:p.getPropagationContext().sampleRand.toString())),a(u),t.emit("createDsc",u,n),u}class Hr{constructor(t={}){this._traceId=t.traceId||dr(),this._spanId=t.spanId||rr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s0}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function vn(e,t=100,n=1/0){try{return Pd("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function d0(e,t=3,n=100*1024){const r=vn(e,t);return cP(r)>n?d0(e,t-1,n):r}function Pd(e,t,n=1/0,r=1/0,s=lP()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=iP(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return Pd("",h,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let u=0;const f=zS(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(u>=r){d[h]="[MaxProperties ~]";break}const p=f[h];d[h]=Pd(h,p,c-1,r,s),u++}return o(t),d}function iP(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(US(t))return FS(t);if(oM(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${lr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=oP(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function oP(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function aP(e){return~-encodeURI(e).split(/%..|./).length}function cP(e){return aP(JSON.stringify(e))}function lP(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Jr(e,t=[]){return[e,t]}function uP(e,t){const[n,r]=e;return[n,[...r,t]]}function Od(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function dP(e,t){return Od(e,(n,r)=>t.includes(r))}function Ld(e){const t=Il(xe);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function fP(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[Ld(r),i]:r.push(typeof i=="string"?Ld(i):i)}for(const i of n){const[o,a]=i;if(s(`
|
||
${JSON.stringify(o)}
|
||
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(vn(a))}s(c)}}return typeof r=="string"?r:hP(r)}function hP(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function pP(e){return[{type:"span"},e]}function mP(e){const t=typeof e.data=="string"?Ld(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const gP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Ag(e){return gP[e]}function vh(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function f0(e,t,n,r){var i;const s=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gi(r)},...s&&{trace:s}}}function vP(e,t){var r,s,i,o;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((s=e.sdk)==null?void 0:s.packages)||[],...t.packages||[]],settings:(i=e.sdk)!=null&&i.settings||t.settings?{...(o=e.sdk)==null?void 0:o.settings,...t.settings}:void 0},e}function yP(e,t,n,r){const s=vh(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Gi(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Jr(i,[o])}function _P(e,t,n,r){const s=vh(n),i=e.type&&e.type!=="replay_event"?e.type:"event";vP(e,n==null?void 0:n.sdk);const o=f0(e,s,r,t);return delete e.sdkProcessingMetadata,Jr(o,[[{type:i},e]])}function bP(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=hr(e[0]),s=t==null?void 0:t.getDsn(),i=t==null?void 0:t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:Gi(s)}},{beforeSendSpan:a,ignoreSpans:c}=(t==null?void 0:t.getOptions())||{},l=c!=null&&c.length?e.filter(h=>!Wc(Re(h),c)):e,d=e.length-l.length;d&&(t==null||t.recordDroppedEvent("before_send","span",d));const u=a?h=>{const p=Re(h),m=a(p);return m||(Md(),p)}:Re,f=[];for(const h of l){const p=u(h);p&&f.push(pP(p))}return Jr(o,f)}function SP(e){if(!ae)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Re(e),{spanId:s}=e.spanContext(),i=Xr(e),o=wt(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:d,description:u}=Re(o);l.push(`root ID: ${o.spanContext().spanId}`),d&&l.push(`root op: ${d}`),u&&l.push(`root description: ${u}`)}J.log(`${c}
|
||
${l.join(`
|
||
`)}`)}function EP(e){if(!ae)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Re(e),{spanId:r}=e.spanContext(),i=wt(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;J.log(o)}function wP(e,t,n,r=Tt()){const s=r&&wt(r);s&&(ae&&J.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[pa]:t,[ha]:n}))}function Mg(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[ha],i=r[pa];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}const Pg=1e3;class Ml{constructor(t={}){this._traceId=t.traceId||dr(),this._spanId=t.spanId||rr(),this._startTime=t.startTimestamp||lt(),this._links=t.links,this._attributes={},this.setAttributes({[st]:"manual",[fr]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?mh:s0}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=_s(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(jt,"custom"),this}end(t){this._endTime||(this._endTime=_s(t),EP(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[fr],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:o0(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[st],profile_id:this._attributes[fh],exclusive_time:this._attributes[qi],measurements:Mg(this._events),is_segment:this._isStandaloneSpan&&wt(this)===this||void 0,segment_id:this._isStandaloneSpan?wt(this).spanContext().spanId:void 0,links:i0(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){ae&&J.log("[Tracing] Adding an event to span:",t);const s=Og(n)?n:r||lt(),i=Og(n)?{}:n||{},o={name:t,time:_s(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ee();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===wt(this)))return;if(this._isStandaloneSpan){this._sampled?TP(bP([this],t)):(ae&&J.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Uc(this).scope||Pe()).captureEvent(r)}_convertSpanToTransaction(){var d;if(!Lg(Re(this)))return;this._name||(ae&&J.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Uc(this),r=(d=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const i=ic(this).filter(u=>u!==this&&!CP(u)).map(u=>Re(u)).filter(Lg),o=this._attributes[jt];delete this._attributes[Cg],i.forEach(u=>{delete u.data[Cg]});const a={contexts:{trace:YM(this)},spans:i.length>Pg?i.sort((u,f)=>u.start_timestamp-f.start_timestamp).slice(0,Pg):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:hr(this)},request:r,...o&&{transaction_info:{source:o}}},c=Mg(this._events);return c&&Object.keys(c).length&&(ae&&J.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function Og(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Lg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function CP(e){return e instanceof Ml&&e.isStandaloneSpan()}function TP(e){const t=Ee();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function kP(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return IP(s,t,n,r)}function IP(e,t,n,r){return ji(e)?e.then(s=>(n(),r(s),s),s=>{throw t(s),n(),s}):(n(),r(e),e)}function xP(e,t,n){if(!fn(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const i=Is(s);if(i===void 0)return ae&&J.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return ae&&J.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,r];const o=n<i;return o||ae&&J.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const h0="__SENTRY_SUPPRESS_TRACING__";function RP(e,t){const n=_h();if(n.startSpan)return n.startSpan(e,t);const r=m0(e),{forceTransaction:s,parentSpan:i,scope:o}=e,a=o==null?void 0:o.clone();return Al(a,()=>MP(i)(()=>{const l=Pe(),d=g0(l,i),f=e.onlyIfParent&&!d?new Hr:p0({parentSpan:d,spanArguments:r,forceTransaction:s,scope:l});return Ti(l,f),kP(()=>t(f),()=>{const{status:h}=Re(f);f.isRecording()&&(!h||h==="ok")&&f.setStatus({code:ht,message:"internal_error"})},()=>{f.end()})}))}function Vr(e){const t=_h();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=m0(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>Al(e.scope,o):s!==void 0?o=>yh(s,o):o=>o())(()=>{const o=Pe(),a=g0(o,s);return e.onlyIfParent&&!a?new Hr:p0({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}function yh(e,t){const n=_h();return n.withActiveSpan?n.withActiveSpan(e,t):Al(r=>(Ti(r,e||void 0),t(r)))}function p0({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!fn()){const o=new Hr;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...hr(o)};oc(o,a)}return o}const s=Kt();let i;if(e&&!n)i=AP(e,r,t),a0(e,i);else if(e){const o=hr(e),{traceId:a,spanId:c}=e.spanContext(),l=Xr(e);i=Ng({traceId:a,parentSpanId:c,...t},r,l),oc(i,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:l}={...s.getPropagationContext(),...r.getPropagationContext()};i=Ng({traceId:o,parentSpanId:c,...t},r,l),a&&oc(i,a)}return SP(i),PM(i,r,s),i}function m0(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=_s(e.startTime),delete r.startTime,r}return n}function _h(){const e=Os();return zi(e)}function Ng(e,t,n){var p;const r=Ee(),s=(r==null?void 0:r.getOptions())||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r==null||r.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[d,u,f]=t.getScopeData().sdkProcessingMetadata[h0]?[!1]:xP(s,{name:i,parentSampled:a,attributes:c,parentSampleRate:Is((p=l.dsc)==null?void 0:p.sample_rate)},l.sampleRand),h=new Ml({...e,attributes:{[jt]:"custom",[dh]:u!==void 0&&f?u:void 0,...c},sampled:d});return!d&&r&&(ae&&J.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function AP(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[h0]?!1:Xr(e),o=i?new Ml({...n,parentSpanId:r,traceId:s,sampled:i}):new Hr({traceId:s});a0(e,o);const a=Ee();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function g0(e,t){if(t)return t;if(t===null)return;const n=Vc(e);if(!n)return;const r=Ee();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?wt(n):n}function MP(e){return e!==void 0?t=>yh(e,t):t=>t()}const ac={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},PP="heartbeatFailed",OP="idleTimeout",LP="finalTimeout",NP="externalFinish";function v0(e,t={}){const n=new Map;let r=!1,s,i=NP,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=ac.idleTimeout,finalTimeout:l=ac.finalTimeout,childSpanTimeout:d=ac.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:f=!0}=t,h=Ee();if(!h||!fn()){const E=new Hr,C={sample_rate:"0",sampled:"false",...hr(E)};return oc(E,C),E}const p=Pe(),m=Tt(),y=DP(e);y.end=new Proxy(y.end,{apply(E,C,k){if(u&&u(y),C instanceof Hr)return;const[A,...O]=k,T=A||lt(),P=_s(T),N=ic(y).filter(U=>U!==y),z=Re(y);if(!N.length||!f)return R(P),Reflect.apply(E,C,[P,...O]);const X=h.getOptions().ignoreSpans,q=N==null?void 0:N.reduce((U,ie)=>{const ce=Re(ie);return!ce.timestamp||X&&Wc(ce,X)?U:U?Math.max(U,ce.timestamp):ce.timestamp},void 0),D=z.start_timestamp,re=Math.min(D?D+l/1e3:1/0,Math.max(D||-1/0,Math.min(P,q||1/0)));return R(re),Reflect.apply(E,C,[re,...O])}});function g(){s&&(clearTimeout(s),s=void 0)}function v(E){g(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=OP,y.end(E))},c)}function _(E){s=setTimeout(()=>{!r&&o&&(i=PP,y.end(E))},d)}function S(E){g(),n.set(E,!0);const C=lt();_(C+d/1e3)}function M(E){if(n.has(E)&&n.delete(E),n.size===0){const C=lt();v(C+c/1e3)}}function R(E){r=!0,n.clear(),a.forEach(N=>N()),Ti(p,m);const C=Re(y),{start_timestamp:k}=C;if(!k)return;C.data[zo]||y.setAttribute(zo,i);const O=C.status;(!O||O==="unknown")&&y.setStatus({code:hh}),J.log(`[Tracing] Idle span "${C.op}" finished`);const T=ic(y).filter(N=>N!==y);let P=0;T.forEach(N=>{N.isRecording()&&(N.setStatus({code:ht,message:"cancelled"}),N.end(E),ae&&J.log("[Tracing] Cancelling span since span ended early",JSON.stringify(N,void 0,2)));const z=Re(N),{timestamp:X=0,start_timestamp:q=0}=z,D=q<=E,re=(l+c)/1e3,U=X-q<=re;if(ae){const ie=JSON.stringify(N,void 0,2);D?U||J.log("[Tracing] Discarding span since it finished after idle span final timeout",ie):J.log("[Tracing] Discarding span since it happened after idle span was finished",ie)}(!U||!D)&&(tP(y,N),P++)}),P>0&&y.setAttribute("sentry.idle_span_discarded_spans",P)}return a.push(h.on("spanStart",E=>{if(r||E===y||Re(E).timestamp||E instanceof Ml&&E.isStandaloneSpan())return;ic(y).includes(E)&&S(E.spanContext().spanId)})),a.push(h.on("spanEnd",E=>{r||M(E.spanContext().spanId)})),a.push(h.on("idleSpanEnableAutoFinish",E=>{E===y&&(o=!0,v(),n.size&&_())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(y.setStatus({code:ht,message:"deadline_exceeded"}),i=LP,y.end())},l),y}function DP(e){const t=Vr(e);return Ti(Pe(),t),ae&&J.log("[Tracing] Started span is an idle span"),t}const Tu=0,Dg=1,Fg=2;function ma(e){return new qo(t=>{t(e)})}function bh(e){return new qo((t,n)=>{n(e)})}class qo{constructor(t){this._state=Tu,this._handlers=[],this._runExecutor(t)}then(t,n){return new qo((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new qo((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Tu)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Dg&&n[1](this._value),this._state===Fg&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===Tu){if(ji(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Dg,i)},s=i=>{n(Fg,i)};try{t(r,s)}catch(i){s(i)}}}function FP(e,t,n,r=0){try{const s=Nd(t,n,e,r);return ji(s)?s:ma(s)}catch(s){return bh(s)}}function Nd(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return ae&&i===null&&J.log(`Event processor "${s.id||"?"}" dropped event`),ji(i)?i.then(o=>Nd(o,t,n,r+1)):Nd(i,t,n,r+1)}let Gn,$g,Bg,Er;function $P(e){const t=xe._sentryDebugIds,n=xe._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Er&&r.length===$g&&s.length===Bg)return Er;$g=r.length,Bg=s.length,Er={},Gn||(Gn={});const i=(o,a)=>{for(const c of o){const l=a[c],d=Gn==null?void 0:Gn[c];if(d&&Er&&l)Er[d[0]]=l,Gn&&(Gn[c]=[d[0],l]);else if(l){const u=e(c);for(let f=u.length-1;f>=0;f--){const h=u[f],p=h==null?void 0:h.filename;if(p&&Er&&Gn){Er[p]=l,Gn[c]=[p,l];break}}}}};return t&&i(r,t),n&&i(s,n),Er}function BP(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;VP(e,t),r&&jP(e,r),zP(e,n),UP(e,s),WP(e,i)}function Hg(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:h,transactionName:p,span:m}=t;io(e,"extra",n),io(e,"tags",r),io(e,"attributes",s),io(e,"user",i),io(e,"contexts",o),e.sdkProcessingMetadata=fa(e.sdkProcessingMetadata,c,2),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function io(e,t,n){e[t]=fa(e[t],n,1)}function HP(e,t){const n=KS().getScopeData();return e&&Hg(n,e.getScopeData()),t&&Hg(n,t.getScopeData()),n}function VP(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function UP(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function WP(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function jP(e,t){e.contexts={trace:XM(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:hr(t),...e.sdkProcessingMetadata};const n=wt(t),r=Re(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function zP(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function y0(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||tn(),timestamp:t.timestamp||Ns()},l=n.integrations||e.integrations.map(g=>g.name);qP(c,e),YP(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&GP(c,e.stackParser);const d=JP(r,n.captureContext);n.mechanism&&wi(c,n.mechanism);const u=s?s.getEventProcessors():[],f=HP(i,d),h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),BP(c,f);const p=[...u,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ma(c):FP(p,c,n)).then(g=>(g&&KP(g),typeof o=="number"&&o>0?XP(g,o,a):g))}function qP(e,t){var a,c;const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||gh,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o!=null&&o.url&&i&&(o.url=Id(o.url,i)),i&&((c=(a=e.exception)==null?void 0:a.values)==null||c.forEach(l=>{l.value&&(l.value=Id(l.value,i))}))}function GP(e,t){var r,s;const n=$P(t);(s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function KP(e){var r,s;const t={};if((s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function YP(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function XP(e,t,n){var s,i;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))},...e.user&&{user:vn(e.user,t,n)},...e.contexts&&{contexts:vn(e.contexts,t,n)},...e.extra&&{extra:vn(e.extra,t,n)}};return(s=e.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=vn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))),(i=e.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=vn(e.contexts.flags,3,n)),r}function JP(e,t){if(!t)return e;const n=e?e.clone():new Wn;return n.update(t),n}function ZP(e){if(e)return QP(e)?{captureContext:e}:tO(e)?{captureContext:e}:e}function QP(e){return e instanceof Wn||typeof e=="function"}const eO=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tO(e){return Object.keys(e).some(t=>eO.includes(t))}function Pl(e,t){return Pe().captureException(e,ZP(t))}function _0(e,t){return Pe().captureEvent(e,t)}function nO(e,t){Kt().setContext(e,t)}function rO(e,t){Kt().setTag(e,t)}function sO(e){Kt().setUser(e)}function iO(){const e=Ee();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function oO(e){Kt().addEventProcessor(e)}function Vg(e){const t=Kt(),n=Pe(),{userAgent:r}=xe.navigator||{},s=mM({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return(i==null?void 0:i.status)==="ok"&&Ci(i,{status:"exited"}),b0(),t.setSession(s),s}function b0(){const e=Kt(),n=Pe().getSession()||e.getSession();n&&gM(n),S0(),e.setSession()}function S0(){const e=Kt(),t=Ee(),n=e.getSession();n&&t&&t.captureSession(n)}function Ug(e=!1){if(e){b0();return}S0()}const aO="7";function cO(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function lO(e){return`${cO(e)}${e.projectId}/envelope/`}function uO(e,t){const n={sentry_version:aO};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function dO(e,t,n){return t||`${lO(e)}?${uO(e,n)}`}const Wg=[];function fO(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function hO(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return fO(r)}function pO(e,t){const n={};return t.forEach(r=>{r&&E0(e,r,n)}),n}function jg(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function E0(e,t,n){if(n[t.name]){ae&&J.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Wg.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Wg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}ae&&J.log(`Integration installed: ${t.name}`)}function zg(e){const t=Ee();if(!t){ae&&J.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function mO(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function gO(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[mO(e)])}function w0(e,t){const n=t??vO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=gO(n,r._metadata,r.tunnel,e.getDsn());C0().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function vO(e){return C0().get(e)}function C0(){return Ui("clientToLogBufferMap",()=>new WeakMap)}function yO(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function _O(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[yO(e)])}function T0(e,t){const n=t??bO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=_O(n,r._metadata,r.tunnel,e.getDsn());k0().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function bO(e){return k0().get(e)}function k0(){return Ui("clientToMetricBufferMap",()=>new WeakMap)}function I0(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Sh=Symbol.for("SentryBufferFullError");function Eh(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return bh(Sh);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(o){if(!t.size)return ma(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(l=>I0(setTimeout(()=>l(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}const SO=60*1e3;function EO(e,t=da()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?SO:r-t}function wO(e,t){return e[t]||e.all||0}function x0(e,t,n=da()){return wO(e,t)>n}function R0(e,{statusCode:t,headers:n},r=da()){const s={...e},i=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,l,,,d]=a.split(":",5),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[h]=r+f):s[h]=r+f}else o?s.all=r+EO(o,r):t===429&&(s.all=r+60*1e3);return s}const A0=64;function CO(e,t,n=Eh(e.bufferSize||A0)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Od(o,(u,f)=>{const h=Ag(f);x0(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(u)}),a.length===0)return Promise.resolve({});const c=Jr(o[0],a),l=u=>{if(dP(c,["client_report"])){ae&&J.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}Od(c,(f,h)=>{e.recordDroppedEvent(u,Ag(h))})},d=()=>t({body:fP(c)}).then(u=>u.statusCode===413?(ae&&J.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),l("send_error"),u):(ae&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&J.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=R0(r,u),u),u=>{throw l("network_error"),ae&&J.error("Encountered error running transport request:",u),u});return n.add(d).then(u=>u,u=>{if(u===Sh)return ae&&J.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:s}}function TO(e,t,n){const r=[{type:"client_report"},{timestamp:Ns(),discarded_events:e}];return Jr(t?{dsn:t}:{},[r])}function M0(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function kO(e){var c;const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=((c=e.contexts)==null?void 0:c.trace)??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o==null?void 0:o[fh],exclusive_time:o==null?void 0:o[qi],measurements:e.measurements,is_segment:!0}}function IO(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[fh]:e.profile_id},...e.exclusive_time&&{[qi]:e.exclusive_time}}}},measurements:e.measurements}}const qg="Not capturing exception because it's already been captured.",Gg="Discarded session because of missing or non-string release",P0=Symbol.for("SentryInternalError"),O0=Symbol.for("SentryDoNotSendEventError"),xO=5e3;function cc(e){return{message:e,[P0]:!0}}function ku(e){return{message:e,[O0]:!0}}function Kg(e){return!!e&&typeof e=="object"&&P0 in e}function Yg(e){return!!e&&typeof e=="object"&&O0 in e}function Xg(e,t,n,r,s){let i=0,o,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?s(e):a||(a=!0,o=I0(setTimeout(()=>{s(e)},xO)))}),e.on("flush",()=>{s(e)})}class RO{constructor(t){var r,s,i;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Eh(((r=t.transportOptions)==null?void 0:r.bufferSize)??A0),t.dsn?this._dsn=zM(t.dsn):ae&&J.warn("No DSN provided, client will not send events."),this._dsn){const o=dO(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}this._options.enableLogs=this._options.enableLogs??((s=this._options._experiments)==null?void 0:s.enableLogs),this._options.enableLogs&&Xg(this,"afterCaptureLog","flushLogs",OO,w0),(this._options.enableMetrics??((i=this._options._experiments)==null?void 0:i.enableMetrics)??!0)&&Xg(this,"afterCaptureMetric","flushMetrics",PO,T0)}captureException(t,n,r){const s=tn();if(Sg(t))return ae&&J.log(qg),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:tn(),...r},o=ah(t)?t:String(t),a=Ei(t),c=a?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>c.then(l=>this._captureEvent(l,i,s)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=tn();if(n!=null&&n.originalException&&Sg(n.originalException))return ae&&J.log(qg),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Jg(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),l),i.event_id}captureSession(t){this.sendSession(t),Ci(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];E0(this,t,this._integrations),n||jg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=_P(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=uP(r,mP(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=gh}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){ae&&J.warn(Gg);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){ae&&J.warn(Gg);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=yP(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;ae&&J.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return ae&&J.error("Error while sending envelope:",n),{}}return ae&&J.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=pO(this,t),jg(this,t)}_updateSessionFromEvent(t,n){var c,l;let r=n.level==="fatal",s=!1;const i=(c=n.exception)==null?void 0:c.values;if(i){s=!0,r=!1;for(const d of i)if(((l=d.mechanism)==null?void 0:l.handled)===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Ci(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&(o!=null&&o.length)&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),y0(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:TM(r),...a.contexts};const c=u0(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Pe(),s=Kt()){return ae&&Dd(t)&&J.log(`Captured error event \`${M0(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{ae&&(Yg(i)?J.log(i.message):Kg(i)?J.warn(i.message):J.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=L0(t),c=Dd(t),d=`before send for type \`${t.type||"error"}\``,u=typeof o>"u"?void 0:Is(o);if(c&&typeof u=="number"&&Lr()>u)return this.recordDroppedEvent("sample_rate","error"),bh(ku(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=Jg(t.type);return this._prepareEvent(t,n,r,s).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",f),ku("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const m=MO(this,i,h,n);return AO(m,d)}).then(h=>{var y;if(h===null){if(this.recordDroppedEvent("before_send",f),a){const v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw ku(`${d} returned \`null\`, will not send event.`)}const p=r.getSession()||s.getSession();if(c&&p&&this._updateSessionFromEvent(p,h),a){const g=((y=h.sdkProcessingMetadata)==null?void 0:y.spanCountBeforeProcessing)||0,v=h.spans?h.spans.length:0,_=g-v;_>0&&this.recordDroppedEvent("before_send","span",_)}const m=h.transaction_info;if(a&&m&&h.transaction!==t.transaction){const g="custom";h.transaction_info={...m,source:g}}return this.sendEvent(h,n),h}).then(null,h=>{throw Yg(h)||Kg(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),cc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
||
Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Sh&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){ae&&J.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ae&&J.log("No outcomes to send");return}if(!this._dsn){ae&&J.log("No dsn provided, will not send outcomes");return}ae&&J.log("Sending outcomes:",t);const n=TO(t,this._options.tunnel&&Gi(this._dsn));this.sendEnvelope(n)}}function Jg(e){return e==="replay_event"?"replay":e||"error"}function AO(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ji(e))return e.then(r=>{if(!jo(r)&&r!==null)throw cc(n);return r},r=>{throw cc(`${t} rejected with ${r}`)});if(!jo(e)&&e!==null)throw cc(n);return e}function MO(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(Dd(c)&&s)return s(c,r);if(L0(c)){if(o||a){const l=kO(c);if(a!=null&&a.length&&Wc(l,a))return null;if(o){const d=o(l);d?c=fa(n,IO(d)):Md()}if(c.spans){const d=[],u=c.spans;for(const h of u){if(a!=null&&a.length&&Wc(h,a)){rP(u,h);continue}if(o){const p=o(h);p?d.push(p):(Md(),d.push(h))}else d.push(h)}const f=c.spans.length-d.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=d}}if(i){if(c.spans){const l=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(c,r)}}return c}function Dd(e){return e.type===void 0}function L0(e){return e.type==="transaction"}function PO(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+N0(e.attributes)}function OO(e){let t=0;return e.message&&(t+=e.message.length*2),t+N0(e.attributes)}function N0(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Zg(n[0]):Ei(n)?t+=Zg(n):t+=100}),t}function Zg(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function LO(e){return xl(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Qg(e){return LO(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function NO(e,t){t.debug===!0&&(ae?J.enable():_r(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pe().update(t.initialScope);const r=new e(t);return DO(r),r.init(),r}function DO(e){Pe().setClient(e)}const FO="thismessage:/";function wh(e){return"isRelative"in e}function Ch(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?FO:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function $O(e){if(wh(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}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}}function BO(e){return e.split(/[?#]/,1)[0]}function Nr(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const a=e.slice(i+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function HO(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return UO(e,n)||VO(e,r)}function VO(e,t){return t?ev(e)===ev(t):!1}function UO(e,t){const n=Ch(e);return!n||wh(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function ev(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function WO(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function D0(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:ys})),s.version=ys)}function F0(e={}){const t=e.client||Ee();if(!iO()||!t)return{};const n=Os(),r=zi(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||Pe(),i=e.span||Tt(),o=i?JM(i):jO(s),a=i?hr(i):u0(t,s),c=NM(a);if(!t0.test(o))return J.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(d.traceparent=i?ZM(i):zO(s)),d}function jO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return n0(t,r,n)}function zO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return r0(t,r,n)}function qO(e,t,n){let r,s,i;const o=n!=null&&n.maxWait?Math.max(n.maxWait,t):0,a=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function c(){return l(),r=e(),r}function l(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?c():r}function u(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return u.cancel=l,u.flush=d,u}const GO=100;function Ur(e,t){const n=Ee(),r=Kt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=GO}=n.getOptions();if(i<=0)return;const a={timestamp:Ns(),...e},c=s?_r(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let tv;const KO="FunctionToString",nv=new WeakMap,YO=()=>({name:KO,setupOnce(){tv=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=uh(this),n=nv.has(Ee())&&t!==void 0?t:this;return tv.apply(n,e)}}catch{}},setup(e){nv.set(e,!0)}}),XO=YO,JO=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ZO="EventFilters",QO=(e={})=>{let t;return{name:ZO,setup(n){const r=n.getOptions();t=rv(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=rv(e,i)}return tL(n,t)?null:n}}},eL=(e={})=>({...QO(e),name:"InboundFilters"});function rv(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:JO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function tL(e,t){if(e.type){if(e.type==="transaction"&&rL(e,t.ignoreTransactions))return ae&&J.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
||
Event: ${as(e)}`),!0}else{if(nL(e,t.ignoreErrors))return ae&&J.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
||
Event: ${as(e)}`),!0;if(aL(e))return ae&&J.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
||
Event: ${as(e)}`),!0;if(sL(e,t.denyUrls))return ae&&J.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
||
Event: ${as(e)}.
|
||
Url: ${jc(e)}`),!0;if(!iL(e,t.allowUrls))return ae&&J.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
||
Event: ${as(e)}.
|
||
Url: ${jc(e)}`),!0}return!1}function nL(e,t){return t!=null&&t.length?M0(e).some(n=>nr(n,t)):!1}function rL(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?nr(n,t):!1}function sL(e,t){if(!(t!=null&&t.length))return!1;const n=jc(e);return n?nr(n,t):!1}function iL(e,t){if(!(t!=null&&t.length))return!0;const n=jc(e);return n?nr(n,t):!0}function oL(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function jc(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(i=>{var o,a,c;return((o=i.mechanism)==null?void 0:o.parent_id)===void 0&&((c=(a=i.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?oL(s):null}catch{return ae&&J.error(`Cannot extract url for event ${as(e)}`),null}}function aL(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function cL(e,t,n,r,s,i){var a;if(!((a=s.exception)!=null&&a.values)||!i||!ur(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Fd(e,t,r,i.originalException,n,s.exception.values,o,0))}function Fd(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(ur(r[s],Error)){sv(o,a,r);const l=e(t,r[s]),d=c.length;iv(l,s,d,a),c=Fd(e,t,n,r[s],s,[l,...c],l,d)}return $0(r)&&r.errors.forEach((l,d)=>{if(ur(l,Error)){sv(o,a,r);const u=e(t,l),f=c.length;iv(u,`errors[${d}]`,f,a),c=Fd(e,t,n,l,s,[u,...c],u,f)}}),c}function $0(e){return Array.isArray(e.errors)}function sv(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...$0(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function iv(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function lL(e){const t="console";Kr(t,e),Yr(t,uL)}function uL(){"console"in xe&&qA.forEach(function(e){e in xe.console&&Wt(xe.console,e,function(t){return Hc[e]=t,function(...n){dn("console",{args:n,level:e});const s=Hc[e];s==null||s.apply(xe.console,n)}})})}function B0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const dL="Dedupe",fL=()=>{let e;return{name:dL,processEvent(t){if(t.type)return t;try{if(pL(t,e))return ae&&J.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},hL=fL;function pL(e,t){return t?!!(mL(e,t)||gL(e,t)):!1}function mL(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!V0(e,t)||!H0(e,t))}function gL(e,t){const n=ov(t),r=ov(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!V0(e,t)||!H0(e,t))}function H0(e,t){let n=mg(e),r=mg(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function V0(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function ov(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}const vL="ConversationId",yL=()=>({name:vL,setup(e){e.on("spanStart",t=>{const n=Pe().getScopeData(),r=Kt().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(IM,s)})}}),_L=yL;function bL(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=fn()&&t(o);if(e.endTimestamp&&a){const h=e.fetchData.__span;if(!h)return;const p=r[h];p&&(wL(p,e),SL(p,e,s),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:l=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!Tt(),u=a&&d?Vr(TL(o,i,c)):new Hr;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const h=e.args[0],p={...e.args[1]||{}},m=EL(h,p,fn()&&d?u:void 0,l);m&&(e.args[1]=p,p.headers=m)}const f=Ee();if(f){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",u,h)}return u}function SL(e,t,n){var s;const r=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;r==null||r(e,{headers:(s=t.response)==null?void 0:s.headers,error:t.error})}function EL(e,t,n,r){const s=F0({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(ch(e)?e.headers:void 0);if(c)if(CL(c)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",i),r&&a&&!l.get("traceparent")&&l.set("traceparent",a),o){const d=l.get("baggage");d?Da(d)||l.set("baggage",`${d},${o}`):l.set("baggage",o)}return l}else if(Array.isArray(c)){const l=[...c];c.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",i]),r&&a&&!c.find(u=>u[0]==="traceparent")&&l.push(["traceparent",a]);const d=c.find(u=>u[0]==="baggage"&&Da(u[1]));return o&&!d&&l.push(["baggage",o]),l}else{const l="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,u="baggage"in c?c.baggage:void 0,f=u?Array.isArray(u)?[...u]:[u]:[],h=u&&(Array.isArray(u)?u.find(m=>Da(m)):Da(u));o&&!h&&f.push(o);const p={...c,"sentry-trace":l??i,baggage:f.length>0?f.join(","):void 0};return r&&a&&!d&&(p.traceparent=a),p}else return{...s}}function wL(e,t){var n,r;if(t.response){XS(e,t.response.status);const s=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(s){const i=parseInt(s);i>0&&e.setAttribute("http.response_content_length",i)}}else t.error&&e.setStatus({code:ht,message:"internal_error"});e.end()}function Da(e){return e.split(",").some(t=>t.trim().startsWith(ph))}function CL(e){return typeof Headers<"u"&&ur(e,Headers)}function TL(e,t,n){if(e.startsWith("data:")){const i=Nr(e);return{name:`${t} ${i}`,attributes:av(e,void 0,t,n)}}const r=Ch(e),s=r?$O(r):e;return{name:`${t} ${s}`,attributes:av(e,r,t,n)}}function av(e,t,n,r){const s={url:Nr(e),type:"fetch","http.method":n,[st]:r,[fr]:"http.client"};return t&&(wh(t)||(s["http.url"]=Nr(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function kL(e,t={},n=Pe()){const{message:r,name:s,email:i,url:o,source:a,associatedEventId:c,tags:l}=e,d={contexts:{feedback:{contact_email:i,name:s,message:r,url:o,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:l},u=(n==null?void 0:n.getClient())||Ee();return u&&u.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function U0(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Go=xe;function IL(){return"history"in Go&&!!Go.history}function xL(){if(!("fetch"in Go))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function $d(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function RL(){var n;if(typeof EdgeRuntime=="string")return!0;if(!xL())return!1;if($d(Go.fetch))return!0;let e=!1;const t=Go.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=$d(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){ae&&J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function W0(e,t){const n="fetch";Kr(n,e),Yr(n,()=>j0(void 0,t))}function AL(e){const t="fetch-body-resolved";Kr(t,e),Yr(t,()=>j0(PL))}function j0(e,t=!1){t&&!RL()||Wt(xe,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=OL(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:lt()*1e3,virtualError:s,headers:LL(r)};return e||dn("fetch",{...a}),n.apply(xe,r).then(async c=>(e?e(c):dn("fetch",{...a,endTimestamp:lt()*1e3,response:c}),c),c=>{dn("fetch",{...a,endTimestamp:lt()*1e3,error:c}),xl(c)&&c.stack===void 0&&(c.stack=s.stack,qt(c,"framesToPop",1));const l=Ee(),d=(l==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${h})`:qt(c,"__sentry_fetch_url_host__",h)}catch{}throw c})}})}async function ML(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function PL(e){let t;try{t=e.clone()}catch{return}ML(t,()=>{dn("fetch-body-resolved",{endTimestamp:lt()*1e3,response:e})})}function lc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function cv(e){return typeof e=="string"?e:e?lc(e,"url")?e.url:e.toString?e.toString():"":""}function OL(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:cv(n),method:lc(r,"method")?String(r.method).toUpperCase():ch(n)&&lc(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:cv(t),method:lc(t,"method")?String(t.method).toUpperCase():"GET"}}function LL(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ch(t))return new Headers(t.headers)}catch{}}function NL(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function DL(){return"npm"}function FL(){return!NL()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function zc(){return typeof window<"u"&&(!FL()||$L())}function $L(){const e=xe.process;return(e==null?void 0:e.type)==="renderer"}const _n=xe,We=_n.document,lo=_n.navigator,z0="Report a Bug",BL="Cancel",HL="Send Bug Report",VL="Confirm",UL="Report a Bug",WL="your.email@example.org",jL="Email",zL="What's the bug? What did you expect?",qL="Description",GL="Your Name",KL="Name",YL="Thank you for your report!",XL="(required)",JL="Add a screenshot",ZL="Remove screenshot",QL="Highlight",eN="Hide",tN="Remove",nN="widget",rN="api",sN=5e3,iN=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ee();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Pe().setTags(e.tags);const r=kL({source:rN,url:Ls(),...e},t);return new Promise((s,i)=>{const o=setTimeout(()=>i("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,l)=>{if(c.event_id===r)return clearTimeout(o),a(),l!=null&&l.statusCode&&l.statusCode>=200&&l.statusCode<300?s(r):(l==null?void 0:l.statusCode)===403?i("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):i("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},uc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function oN(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(lo.userAgent)||/Macintosh/i.test(lo.userAgent)&&lo.maxTouchPoints&&lo.maxTouchPoints>1||!isSecureContext)}function Fa(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;(n=t.onFormOpen)==null||n.call(t),(r=e.onFormOpen)==null||r.call(e)},onFormClose:()=>{var n,r;(n=t.onFormClose)==null||n.call(t),(r=e.onFormClose)==null||r.call(e)},onSubmitSuccess:(n,r)=>{var s,i;(s=t.onSubmitSuccess)==null||s.call(t,n,r),(i=e.onSubmitSuccess)==null||i.call(e,n,r)},onSubmitError:n=>{var r,s;(r=t.onSubmitError)==null||r.call(t,n),(s=e.onSubmitError)==null||s.call(e,n)},onFormSubmitted:()=>{var n,r;(n=t.onFormSubmitted)==null||n.call(t),(r=e.onFormSubmitted)==null||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function aN(e){const t=We.createElement("style");return t.textContent=`
|
||
.widget__actor {
|
||
position: fixed;
|
||
z-index: var(--z-index);
|
||
margin: var(--page-margin);
|
||
inset: var(--actor-inset);
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 16px;
|
||
|
||
font-family: inherit;
|
||
font-size: var(--font-size);
|
||
font-weight: 600;
|
||
line-height: 1.14em;
|
||
text-decoration: none;
|
||
|
||
background: var(--actor-background, var(--background));
|
||
border-radius: var(--actor-border-radius, 1.7em/50%);
|
||
border: var(--actor-border, var(--border));
|
||
box-shadow: var(--actor-box-shadow, var(--box-shadow));
|
||
color: var(--actor-color, var(--foreground));
|
||
fill: var(--actor-color, var(--foreground));
|
||
cursor: pointer;
|
||
opacity: 1;
|
||
transition: transform 0.2s ease-in-out;
|
||
transform: translate(0, 0) scale(1);
|
||
}
|
||
.widget__actor[aria-hidden="true"] {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
visibility: hidden;
|
||
transform: translate(0, 16px) scale(0.98);
|
||
}
|
||
|
||
.widget__actor:hover {
|
||
background: var(--actor-hover-background, var(--background));
|
||
filter: var(--interactive-filter);
|
||
}
|
||
|
||
.widget__actor svg {
|
||
width: 1.14em;
|
||
height: 1.14em;
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.widget__actor span {
|
||
display: none;
|
||
}
|
||
}
|
||
`,e&&t.setAttribute("nonce",e),t}function Jt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Ws=20,cN="http://www.w3.org/2000/svg";function lN(){const e=a=>_n.document.createElementNS(cN,a),t=Jt(e("svg"),{width:`${Ws}`,height:`${Ws}`,viewBox:`0 0 ${Ws} ${Ws}`,fill:"var(--actor-color, var(--foreground))"}),n=Jt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Jt(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 s=e("defs"),i=Jt(e("clipPath"),{id:"clip0_57_80"}),o=Jt(e("rect"),{width:`${Ws}`,height:`${Ws}`,fill:"white"});return i.appendChild(o),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(o),t}function uN({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=We.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||z0,s.appendChild(lN()),e){const o=We.createElement("span");o.appendChild(We.createTextNode(e)),s.appendChild(o)}const i=aN(r);return{el:s,appendToDom(){n.appendChild(i),n.appendChild(s)},removeFromDom(){s.remove(),i.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const q0="rgba(88, 74, 192, 1)",dN={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:q0,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},lv={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:q0,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function uv(e){return`
|
||
--foreground: ${e.foreground};
|
||
--background: ${e.background};
|
||
--accent-foreground: ${e.accentForeground};
|
||
--accent-background: ${e.accentBackground};
|
||
--success-color: ${e.successColor};
|
||
--error-color: ${e.errorColor};
|
||
--border: ${e.border};
|
||
--box-shadow: ${e.boxShadow};
|
||
--outline: ${e.outline};
|
||
--interactive-filter: ${e.interactiveFilter};
|
||
`}function fN({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=We.createElement("style");return s.textContent=`
|
||
:host {
|
||
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
|
||
--font-size: 14px;
|
||
--z-index: 100000;
|
||
|
||
--page-margin: 16px;
|
||
--inset: auto 0 0 auto;
|
||
--actor-inset: var(--inset);
|
||
|
||
font-family: var(--font-family);
|
||
font-size: var(--font-size);
|
||
|
||
${e!=="system"?`color-scheme: only ${e};`:""}
|
||
|
||
${uv(e==="dark"?{...lv,...t}:{...dN,...n})}
|
||
}
|
||
|
||
${e==="system"?`
|
||
@media (prefers-color-scheme: dark) {
|
||
:host {
|
||
color-scheme: only dark;
|
||
|
||
${uv({...lv,...t})}
|
||
}
|
||
}`:""}
|
||
`,r&&s.setAttribute("nonce",r),s}const hN=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:s="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:l=!0,showName:d=!0,enableScreenshot:u=!0,useSentryUser:f={email:"email",name:"username"},tags:h,styleNonce:p,scriptNonce:m,colorScheme:y="system",themeLight:g={},themeDark:v={},addScreenshotButtonLabel:_=JL,cancelButtonLabel:S=BL,confirmButtonLabel:M=VL,emailLabel:R=jL,emailPlaceholder:E=WL,formTitle:C=UL,isRequiredLabel:k=XL,messageLabel:A=qL,messagePlaceholder:O=zL,nameLabel:T=KL,namePlaceholder:P=GL,removeScreenshotButtonLabel:N=ZL,submitButtonLabel:z=HL,successMessageText:X=YL,triggerLabel:q=z0,triggerAriaLabel:D="",highlightToolText:re=QL,hideToolText:U=eN,removeHighlightText:ie=tN,onFormOpen:ce,onFormClose:ue,onSubmitSuccess:Ce,onSubmitError:Ne,onFormSubmitted:Ve}={})=>{const x={id:s,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:c,showEmail:l,showName:d,enableScreenshot:u,useSentryUser:f,tags:h,styleNonce:p,scriptNonce:m,colorScheme:y,themeDark:v,themeLight:g,triggerLabel:q,triggerAriaLabel:D,cancelButtonLabel:S,submitButtonLabel:z,confirmButtonLabel:M,formTitle:C,emailLabel:R,emailPlaceholder:E,messageLabel:A,messagePlaceholder:O,nameLabel:T,namePlaceholder:P,successMessageText:X,isRequiredLabel:k,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:N,highlightToolText:re,hideToolText:U,removeHighlightText:ie,onFormClose:ue,onFormOpen:ce,onSubmitError:Ne,onSubmitSuccess:Ce,onFormSubmitted:Ve};let W=null,K=[];const ne=I=>{if(!W){const L=We.createElement("div");L.id=String(I.id),We.body.appendChild(L),W=L.attachShadow({mode:"open"}),W.appendChild(fN(I))}return W},ye=async I=>{const L=I.enableScreenshot&&oN();let $,F;try{$=(t?t():await e("feedbackModalIntegration",m))(),zg($)}catch{throw uc&&J.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Y=L?n?n():await e("feedbackScreenshotIntegration",m):void 0;Y&&(F=Y(),zg(F))}catch{uc&&J.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const G=$.createDialog({options:{...I,onFormClose:()=>{var Y;G==null||G.close(),(Y=I.onFormClose)==null||Y.call(I)},onFormSubmitted:()=>{var Y;G==null||G.close(),(Y=I.onFormSubmitted)==null||Y.call(I)}},screenshotIntegration:F,sendFeedback:iN,shadow:ne(I)});return G},b=(I,L={})=>{const $=Fa(x,L),F=typeof I=="string"?We.querySelector(I):typeof I.addEventListener=="function"?I:null;if(!F)throw uc&&J.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let G=null;const Y=async()=>{G||(G=await ye({...$,onFormSubmitted:()=>{var V;G==null||G.removeFromDom(),(V=$.onFormSubmitted)==null||V.call($)}})),G.appendToDom(),G.open()};F.addEventListener("click",Y);const H=()=>{K=K.filter(V=>V!==H),G==null||G.removeFromDom(),G=null,F.removeEventListener("click",Y)};return K.push(H),H},w=(I={})=>{const L=Fa(x,I),$=ne(L),F=uN({triggerLabel:L.triggerLabel,triggerAriaLabel:L.triggerAriaLabel,shadow:$,styleNonce:p});return b(F.el,{...L,onFormOpen(){F.hide()},onFormClose(){F.show()},onFormSubmitted(){F.show()}}),F};return{name:"Feedback",setupOnce(){!zc()||!x.autoInject||(We.readyState==="loading"?We.addEventListener("DOMContentLoaded",()=>w().appendToDom()):w().appendToDom())},attachTo:b,createWidget(I={}){const L=w(Fa(x,I));return L.appendToDom(),L},async createForm(I={}){return ye(Fa(x,I))},remove(){var I;W&&((I=W.parentElement)==null||I.remove(),W=null),K.forEach(L=>L()),K=[]}}};var Ol,ze,G0,cs,dv,K0,Bd,Ko={},Th=[],pN=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kh=Array.isArray;function Pr(e,t){for(var n in t)e[n]=t[n];return e}function Y0(e){var t=e.parentNode;t&&t.removeChild(e)}function ke(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Ol.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return dc(e,o,r,s,null)}function dc(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++G0,__i:-1,__u:0};return s==null&&ze.vnode!=null&&ze.vnode(i),i}function ga(e){return e.children}function fc(e,t){this.props=e,this.context=t}function Ii(e,t){if(t==null)return e.__?Ii(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ii(e):null}function mN(e,t,n){var r,s=e.__v,i=s.__e,o=e.__P;if(o)return(r=Pr({},s)).__v=s.__v+1,ze.vnode&&ze.vnode(r),Ih(o,r,s,e.__n,o.ownerSVGElement!==void 0,32&s.__u?[i]:null,t,i??Ii(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&X0(r),r}function X0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return X0(e)}}function fv(e){(!e.__d&&(e.__d=!0)&&cs.push(e)&&!qc.__r++||dv!==ze.debounceRendering)&&((dv=ze.debounceRendering)||K0)(qc)}function qc(){var e,t,n,r=[],s=[];for(cs.sort(Bd);e=cs.shift();)e.__d&&(n=cs.length,t=mN(e,r,s)||t,n===0||cs.length>n?(Hd(r,t,s),s.length=r.length=0,t=void 0,cs.sort(Bd)):t&&ze.__c&&ze.__c(t,Th));t&&Hd(r,t,s),qc.__r=0}function J0(e,t,n,r,s,i,o,a,c,l,d){var u,f,h,p,m,y=r&&r.__k||Th,g=t.length;for(n.__d=c,gN(n,t,y),c=n.__d,u=0;u<g;u++)(h=n.__k[u])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?Ko:y[h.__i]||Ko,h.__i=u,Ih(e,h,f,s,i,o,a,c,l,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&xh(f.ref,null,h),d.push(h.ref,h.__c||p,h)),m==null&&p!=null&&(m=p),65536&h.__u||f.__k===h.__k?c=Z0(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function gN(e,t,n){var r,s,i,o,a,c=t.length,l=n.length,d=l,u=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?dc(null,s,null,null,s):kh(s)?dc(ga,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?dc(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=vN(s,n,o=r+u,d),s.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a===o+1?u++:a>o?d>c-o?u+=a-o:u--:u=a<o&&a==o-1?a-o:0,a!==r+u&&(s.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Ii(i)),Vd(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ii(i)),Vd(i,i))}function Z0(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Z0(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function vN(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&i===c.type)return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((c=t[o])&&!(131072&c.__u)&&s==c.key&&i===c.type)return o;o--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&i===c.type)return a;a++}}return-1}function hv(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||pN.test(t)?n:n+"px"}function $a(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||hv(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||hv(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?mv:pv,i)):e.removeEventListener(t,i?mv:pv,i);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function pv(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(ze.event?ze.event(e):e)}}function mv(e){if(this.l)return this.l[e.type+!0](ze.event?ze.event(e):e)}function Ih(e,t,n,r,s,i,o,a,c,l){var d,u,f,h,p,m,y,g,v,_,S,M,R,E,C,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=ze.__b)&&d(t);e:if(typeof k=="function")try{if(g=t.props,v=(d=k.contextType)&&r[d.__c],_=d?v?v.props.value:d.__:r,n.__c?y=(u=t.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?t.__c=u=new k(g,_):(t.__c=u=new fc(g,_),u.constructor=k,u.render=_N),v&&v.sub(u),u.props=g,u.state||(u.state={}),u.context=_,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Pr({},u.__s)),Pr(u.__s,k.getDerivedStateFromProps(g,u.__s))),h=u.props,p=u.state,u.__v=t,f)k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k.getDerivedStateFromProps==null&&g!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,_),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,_)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,_),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,p,m)})}if(u.context=_,u.props=g,u.__P=e,u.__e=!1,M=ze.__r,R=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,M&&M(t),d=u.render(u.props,u.state,u.context),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[]}else do u.__d=!1,M&&M(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++R<25);u.state=u.__s,u.getChildContext!=null&&(r=Pr(Pr({},r),u.getChildContext())),f||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(h,p)),J0(e,kh(C=d!=null&&d.type===ga&&d.key==null?d.props.children:d)?C:[C],t,n,r,s,i,o,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&o.push(u),y&&(u.__E=u.__=null)}catch(A){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),ze.__e(A,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=yN(n.__e,t,n,r,s,i,o,c,l);(d=ze.diffed)&&d(t)}function Hd(e,t,n){for(var r=0;r<n.length;r++)xh(n[r],n[++r],n[++r]);ze.__c&&ze.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){ze.__e(i,s.__v)}})}function yN(e,t,n,r,s,i,o,a,c){var l,d,u,f,h,p,m,y=n.props,g=t.props,v=t.type;if(v==="svg"&&(s=!0),i!=null){for(l=0;l<i.length;l++)if((h=i[l])&&"setAttribute"in h==!!v&&(v?h.localName===v:h.nodeType===3)){e=h,i[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(g);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),i=null,a=!1}if(v===null)y===g||a&&e.data===g||(e.data=g);else{if(i=i&&Ol.call(e.childNodes),y=n.props||Ko,!a&&i!=null)for(y={},l=0;l<e.attributes.length;l++)y[(h=e.attributes[l]).name]=h.value;for(l in y)h=y[l],l=="children"||(l=="dangerouslySetInnerHTML"?u=h:l==="key"||l in g||$a(e,l,null,h,s));for(l in g)h=g[l],l=="children"?f=h:l=="dangerouslySetInnerHTML"?d=h:l=="value"?p=h:l=="checked"?m=h:l==="key"||a&&typeof h!="function"||y[l]===h||$a(e,l,h,y[l],s);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),J0(e,kh(f)?f:[f],t,n,r,s&&v!=="foreignObject",i,o,i?i[0]:n.__k&&Ii(n,0),a,c),i!=null)for(l=i.length;l--;)i[l]!=null&&Y0(i[l]);a||(l="value",p!==void 0&&(p!==e[l]||v==="progress"&&!p||v==="option"&&p!==y[l])&&$a(e,l,p,y[l],!1),l="checked",m!==void 0&&m!==e[l]&&$a(e,l,m,y[l],!1))}return e}function xh(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ze.__e(r,n)}}function Vd(e,t,n){var r,s;if(ze.unmount&&ze.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||xh(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ze.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Vd(r[s],t,n||typeof e.type!="function");n||e.__e==null||Y0(e.__e),e.__=e.__e=e.__d=void 0}function _N(e,t,n){return this.constructor(e,n)}function bN(e,t,n){var r,s,i,o;ze.__&&ze.__(e,t),s=(r=!1)?null:t.__k,i=[],o=[],Ih(t,e=t.__k=ke(ga,null,[e]),s||Ko,Ko,t.ownerSVGElement!==void 0,s?null:t.firstChild?Ol.call(t.childNodes):null,i,s?s.__e:t.firstChild,r,o),e.__d=void 0,Hd(i,e,o)}Ol=Th.slice,ze={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},G0=0,fc.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Pr({},this.state),typeof e=="function"&&(e=e(Pr({},n),this.props)),e&&Pr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),fv(this))},fc.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fv(this))},fc.prototype.render=ga,cs=[],K0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bd=function(e,t){return e.__v.__b-t.__v.__b},qc.__r=0;var pr,je,Iu,gv,xi=0,Q0=[],hc=[],nt=ze,vv=nt.__b,yv=nt.__r,_v=nt.diffed,bv=nt.__c,Sv=nt.unmount,Ev=nt.__;function Ds(e,t){nt.__h&&nt.__h(je,e,xi||t),xi=0;var n=je.__H||(je.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:hc}),n.__[e]}function us(e){return xi=1,eE(nE,e)}function eE(e,t,n){var r=Ds(pr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nE(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=je,!je.u)){var s=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,a,c,l);var u=!1;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,c,l))};je.u=!0;var i=je.shouldComponentUpdate,o=je.componentWillUpdate;je.componentWillUpdate=function(a,c,l){if(this.__e){var d=i;i=void 0,s(a,c,l),i=d}o&&o.call(this,a,c,l)},je.shouldComponentUpdate=s}return r.__N||r.__}function SN(e,t){var n=Ds(pr++,3);!nt.__s&&Rh(n.__H,t)&&(n.__=e,n.i=t,je.__H.__h.push(n))}function tE(e,t){var n=Ds(pr++,4);!nt.__s&&Rh(n.__H,t)&&(n.__=e,n.i=t,je.__h.push(n))}function EN(e){return xi=5,va(function(){return{current:e}},[])}function wN(e,t,n){xi=6,tE(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function va(e,t){var n=Ds(pr++,7);return Rh(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function di(e,t){return xi=8,va(function(){return e},t)}function CN(e){var t=je.context[e.__c],n=Ds(pr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(je)),t.props.value):e.__}function TN(e,t){nt.useDebugValue&&nt.useDebugValue(t?t(e):e)}function kN(e){var t=Ds(pr++,10),n=us();return t.__=e,je.componentDidCatch||(je.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function IN(){var e=Ds(pr++,11);if(!e.__){for(var t=je.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function xN(){for(var e;e=Q0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pc),e.__H.__h.forEach(Ud),e.__H.__h=[]}catch(t){e.__H.__h=[],nt.__e(t,e.__v)}}nt.__b=function(e){je=null,vv&&vv(e)},nt.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ev&&Ev(e,t)},nt.__r=function(e){yv&&yv(e),pr=0;var t=(je=e.__c).__H;t&&(Iu===je?(t.__h=[],je.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=hc,n.__N=n.i=void 0})):(t.__h.forEach(pc),t.__h.forEach(Ud),t.__h=[],pr=0)),Iu=je},nt.diffed=function(e){_v&&_v(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Q0.push(t)!==1&&gv===nt.requestAnimationFrame||((gv=nt.requestAnimationFrame)||RN)(xN)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==hc&&(n.__=n.__V),n.i=void 0,n.__V=hc})),Iu=je=null},nt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(pc),n.__h=n.__h.filter(function(r){return!r.__||Ud(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],nt.__e(r,n.__v)}}),bv&&bv(e,t)},nt.unmount=function(e){Sv&&Sv(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{pc(r)}catch(s){t=s}}),n.__H=void 0,t&&nt.__e(t,n.__v))};var wv=typeof requestAnimationFrame=="function";function RN(e){var t,n=function(){clearTimeout(r),wv&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);wv&&(t=requestAnimationFrame(n))}function pc(e){var t=je,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),je=t}function Ud(e){var t=je;e.__c=e.__(),je=t}function Rh(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function nE(e,t){return typeof t=="function"?t(e):t}const AN=Object.defineProperty({__proto__:null,useCallback:di,useContext:CN,useDebugValue:TN,useEffect:SN,useErrorBoundary:kN,useId:IN,useImperativeHandle:wN,useLayoutEffect:tE,useMemo:va,useReducer:eE,useRef:EN,useState:us},Symbol.toStringTag,{value:"Module"}),MN="http://www.w3.org/2000/svg";function PN(){const e=r=>We.createElementNS(MN,r),t=Jt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Jt(e("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"});return t.appendChild(n),t}function ON({options:e}){const t=va(()=>({__html:PN().outerHTML}),[]);return ke("h2",{class:"dialog__header"},ke("span",{class:"dialog__title"},e.formTitle),e.showBranding?ke("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function LN(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function xu(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function NN({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:i,onSubmitError:o,showEmail:a,showName:c,screenshotInput:l}){const{tags:d,addScreenshotButtonLabel:u,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:y,isNameRequired:g,messageLabel:v,messagePlaceholder:_,nameLabel:S,namePlaceholder:M,submitButtonLabel:R,isRequiredLabel:E}=e,[C,k]=us(!1),[A,O]=us(null),[T,P]=us(!1),N=l==null?void 0:l.input,[z,X]=us(null),q=di(U=>{X(U),P(!1)},[]),D=di(U=>{const ie=LN(U,{emailLabel:p,isEmailRequired:y,isNameRequired:g,messageLabel:v,nameLabel:S});return ie.length>0?O(`Please enter in the following required fields: ${ie.join(", ")}`):O(null),ie.length===0},[p,y,g,v,S]),re=di(async U=>{k(!0);try{if(U.preventDefault(),!(U.target instanceof HTMLFormElement))return;const ie=new FormData(U.target),ce=await(l&&T?l.value():void 0),ue={name:xu(ie,"name"),email:xu(ie,"email"),message:xu(ie,"message"),attachments:ce?[ce]:void 0};if(!D(ue))return;try{const Ce=await s({name:ue.name,email:ue.email,message:ue.message,source:nN,tags:d},{attachments:ue.attachments});i(ue,Ce)}catch(Ce){uc&&J.error(Ce),O(Ce),o(Ce)}}finally{k(!1)}},[l&&T,i,o]);return ke("form",{class:"form",onSubmit:re},N&&T?ke(N,{onError:q}):null,ke("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:C},ke("div",{class:"form__top"},A?ke("div",{class:"form__error-container"},A):null,c?ke("label",{for:"name",class:"form__label"},ke(Ru,{label:S,isRequiredLabel:E,isRequired:g}),ke("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:M,required:g,type:"text"})):ke("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?ke("label",{for:"email",class:"form__label"},ke(Ru,{label:p,isRequiredLabel:E,isRequired:y}),ke("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:y,type:"email"})):ke("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ke("label",{for:"message",class:"form__label"},ke(Ru,{label:v,isRequiredLabel:E,isRequired:!0}),ke("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),N?ke("label",{for:"screenshot",class:"form__label"},ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:()=>{X(null),P(U=>!U)}},T?f:u),z?ke("div",{class:"form__error-container"},z.message):null):null),ke("div",{class:"btn-group"},ke("button",{class:"btn btn--primary",disabled:C,type:"submit"},R),ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:r},h))))}function Ru({label:e,isRequired:t,isRequiredLabel:n}){return ke("span",{class:"form__label__text"},e,t&&ke("span",{class:"form__label__text--required"},n))}const Ba=16,Cv=17,DN="http://www.w3.org/2000/svg";function FN(){const e=c=>_n.document.createElementNS(DN,c),t=Jt(e("svg"),{width:`${Ba}`,height:`${Cv}`,viewBox:`0 0 ${Ba} ${Cv}`,fill:"inherit"}),n=Jt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Jt(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"}),s=Jt(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(s,r);const i=e("defs"),o=Jt(e("clipPath"),{id:"clip0_57_156"}),a=Jt(e("rect"),{width:`${Ba}`,height:`${Ba}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}function $N({open:e,onFormSubmitted:t,...n}){const r=n.options,s=va(()=>({__html:FN().outerHTML}),[]),[i,o]=us(null),a=di(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),c=di((l,d)=>{n.onSubmitSuccess(l,d),o(setTimeout(()=>{t(),o(null)},sN))},[t]);return ke(ga,null,i?ke("div",{class:"success__position",onClick:a},ke("div",{class:"success__content"},r.successMessageText,ke("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):ke("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ke("div",{class:"dialog__position"},ke("div",{class:"dialog__content",onClick:l=>{l.stopPropagation()}},ke(ON,{options:r}),ke(NN,{...n,onSubmitSuccess:c})))))}const BN=`
|
||
.dialog {
|
||
position: fixed;
|
||
z-index: var(--z-index);
|
||
margin: 0;
|
||
inset: 0;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0;
|
||
height: 100vh;
|
||
width: 100vw;
|
||
|
||
color: var(--dialog-color, var(--foreground));
|
||
fill: var(--dialog-color, var(--foreground));
|
||
line-height: 1.75em;
|
||
|
||
background-color: rgba(0, 0, 0, 0.05);
|
||
border: none;
|
||
inset: 0;
|
||
opacity: 1;
|
||
transition: opacity 0.2s ease-in-out;
|
||
}
|
||
|
||
.dialog__position {
|
||
position: fixed;
|
||
z-index: var(--z-index);
|
||
inset: var(--dialog-inset);
|
||
padding: var(--page-margin);
|
||
display: flex;
|
||
max-height: calc(100vh - (2 * var(--page-margin)));
|
||
}
|
||
@media (max-width: 600px) {
|
||
.dialog__position {
|
||
inset: var(--page-margin);
|
||
padding: 0;
|
||
}
|
||
}
|
||
|
||
.dialog__position:has(.editor) {
|
||
inset: var(--page-margin);
|
||
padding: 0;
|
||
}
|
||
|
||
.dialog:not([open]) {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
visibility: hidden;
|
||
}
|
||
.dialog:not([open]) .dialog__content {
|
||
transform: translate(0, -16px) scale(0.98);
|
||
}
|
||
|
||
.dialog__content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
padding: var(--dialog-padding, 24px);
|
||
max-width: 100%;
|
||
width: 100%;
|
||
max-height: 100%;
|
||
overflow: auto;
|
||
|
||
background: var(--dialog-background, var(--background));
|
||
border-radius: var(--dialog-border-radius, 20px);
|
||
border: var(--dialog-border, var(--border));
|
||
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
|
||
transform: translate(0, 0) scale(1);
|
||
transition: transform 0.2s ease-in-out;
|
||
}
|
||
|
||
`,HN=`
|
||
.dialog__header {
|
||
display: flex;
|
||
gap: 4px;
|
||
justify-content: space-between;
|
||
font-weight: var(--dialog-header-weight, 600);
|
||
margin: 0;
|
||
}
|
||
.dialog__title {
|
||
align-self: center;
|
||
width: var(--form-width, 272px);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.dialog__title {
|
||
width: auto;
|
||
}
|
||
}
|
||
|
||
.dialog__position:has(.editor) .dialog__title {
|
||
width: auto;
|
||
}
|
||
|
||
|
||
.brand-link {
|
||
display: inline-flex;
|
||
}
|
||
.brand-link:focus-visible {
|
||
outline: var(--outline);
|
||
}
|
||
`,VN=`
|
||
.form {
|
||
display: flex;
|
||
overflow: auto;
|
||
flex-direction: row;
|
||
gap: 16px;
|
||
flex: 1 0;
|
||
}
|
||
|
||
.form fieldset {
|
||
border: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.form__right {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
overflow: auto;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
gap: 20px;
|
||
width: var(--form-width, 100%);
|
||
}
|
||
|
||
.dialog__position:has(.editor) .form__right {
|
||
width: var(--form-width, 272px);
|
||
}
|
||
|
||
.form__top {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.form__error-container {
|
||
color: var(--error-color);
|
||
fill: var(--error-color);
|
||
}
|
||
|
||
.form__label {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
margin: 0px;
|
||
}
|
||
|
||
.form__label__text {
|
||
display: flex;
|
||
gap: 4px;
|
||
align-items: center;
|
||
}
|
||
|
||
.form__label__text--required {
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.form__input {
|
||
font-family: inherit;
|
||
line-height: inherit;
|
||
background: transparent;
|
||
box-sizing: border-box;
|
||
border: var(--input-border, var(--border));
|
||
border-radius: var(--input-border-radius, 6px);
|
||
color: var(--input-color, inherit);
|
||
fill: var(--input-color, inherit);
|
||
font-size: var(--input-font-size, inherit);
|
||
font-weight: var(--input-font-weight, 500);
|
||
padding: 6px 12px;
|
||
}
|
||
|
||
.form__input::placeholder {
|
||
opacity: 0.65;
|
||
color: var(--input-placeholder-color, inherit);
|
||
filter: var(--interactive-filter);
|
||
}
|
||
|
||
.form__input:focus-visible {
|
||
outline: var(--input-focus-outline, var(--outline));
|
||
}
|
||
|
||
.form__input--textarea {
|
||
font-family: inherit;
|
||
resize: vertical;
|
||
}
|
||
|
||
.error {
|
||
color: var(--error-color);
|
||
fill: var(--error-color);
|
||
}
|
||
`,UN=`
|
||
.btn-group {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
|
||
.btn {
|
||
line-height: inherit;
|
||
border: var(--button-border, var(--border));
|
||
border-radius: var(--button-border-radius, 6px);
|
||
cursor: pointer;
|
||
font-family: inherit;
|
||
font-size: var(--button-font-size, inherit);
|
||
font-weight: var(--button-font-weight, 600);
|
||
padding: var(--button-padding, 6px 16px);
|
||
}
|
||
.btn[disabled] {
|
||
opacity: 0.6;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.btn--primary {
|
||
color: var(--button-primary-color, var(--accent-foreground));
|
||
fill: var(--button-primary-color, var(--accent-foreground));
|
||
background: var(--button-primary-background, var(--accent-background));
|
||
border: var(--button-primary-border, var(--border));
|
||
border-radius: var(--button-primary-border-radius, 6px);
|
||
font-weight: var(--button-primary-font-weight, 500);
|
||
}
|
||
.btn--primary:hover {
|
||
color: var(--button-primary-hover-color, var(--accent-foreground));
|
||
fill: var(--button-primary-hover-color, var(--accent-foreground));
|
||
background: var(--button-primary-hover-background, var(--accent-background));
|
||
filter: var(--interactive-filter);
|
||
}
|
||
.btn--primary:focus-visible {
|
||
background: var(--button-primary-hover-background, var(--accent-background));
|
||
filter: var(--interactive-filter);
|
||
outline: var(--button-primary-focus-outline, var(--outline));
|
||
}
|
||
|
||
.btn--default {
|
||
color: var(--button-color, var(--foreground));
|
||
fill: var(--button-color, var(--foreground));
|
||
background: var(--button-background, var(--background));
|
||
border: var(--button-border, var(--border));
|
||
border-radius: var(--button-border-radius, 6px);
|
||
font-weight: var(--button-font-weight, 500);
|
||
}
|
||
.btn--default:hover {
|
||
color: var(--button-color, var(--foreground));
|
||
fill: var(--button-color, var(--foreground));
|
||
background: var(--button-hover-background, var(--background));
|
||
filter: var(--interactive-filter);
|
||
}
|
||
.btn--default:focus-visible {
|
||
background: var(--button-hover-background, var(--background));
|
||
filter: var(--interactive-filter);
|
||
outline: var(--button-focus-outline, var(--outline));
|
||
}
|
||
`,WN=`
|
||
.success__position {
|
||
position: fixed;
|
||
inset: var(--dialog-inset);
|
||
padding: var(--page-margin);
|
||
z-index: var(--z-index);
|
||
}
|
||
.success__content {
|
||
background: var(--success-background, var(--background));
|
||
border: var(--success-border, var(--border));
|
||
border-radius: var(--success-border-radius, 1.7em/50%);
|
||
box-shadow: var(--success-box-shadow, var(--box-shadow));
|
||
font-weight: var(--success-font-weight, 600);
|
||
color: var(--success-color);
|
||
fill: var(--success-color);
|
||
padding: 12px 24px;
|
||
line-height: 1.75em;
|
||
|
||
display: grid;
|
||
align-items: center;
|
||
grid-auto-flow: column;
|
||
gap: 6px;
|
||
cursor: default;
|
||
}
|
||
|
||
.success__icon {
|
||
display: flex;
|
||
}
|
||
`;function jN(e){const t=We.createElement("style");return t.textContent=`
|
||
:host {
|
||
--dialog-inset: var(--inset);
|
||
}
|
||
|
||
${BN}
|
||
${HN}
|
||
${VN}
|
||
${UN}
|
||
${WN}
|
||
`,e&&t.setAttribute("nonce",e),t}function zN(){const e=Pe().getUser(),t=Kt().getUser(),n=KS().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const qN=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,i=e.useSentryUser,o=zN(),a=We.createElement("div"),c=jN(e.styleNonce);let l="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),We.body.style.overflow=l},open(){var h,p;f(!0),(h=e.onFormOpen)==null||h.call(e),(p=Ee())==null||p.emit("openFeedbackWidget"),l=We.body.style.overflow,We.body.style.overflow="hidden"},close(){f(!1),We.body.style.overflow=l}},u=t==null?void 0:t.createInput({h:ke,hooks:AN,dialog:d,options:e}),f=h=>{bN(ke($N,{options:e,screenshotInput:u,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&(o==null?void 0:o[i.name])||""),defaultEmail:String(i&&(o==null?void 0:o[i.email])||""),onFormClose:()=>{var p;f(!1),(p=e.onFormClose)==null||p.call(e)},onSubmit:n,onSubmitSuccess:(p,m)=>{var y;f(!1),(y=e.onSubmitSuccess)==null||y.call(e,p,m)},onSubmitError:p=>{var m;(m=e.onSubmitError)==null||m.call(e,p)},onFormSubmitted:()=>{var p;(p=e.onFormSubmitted)==null||p.call(e)},open:h}),a)};return d}});function GN({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function KN(e){const t=We.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
|
||
.editor {
|
||
display: flex;
|
||
flex-grow: 1;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.editor__image-container {
|
||
justify-items: center;
|
||
padding: 15px;
|
||
position: relative;
|
||
height: 100%;
|
||
border-radius: var(--menu-border-radius, 6px);
|
||
|
||
background-color: ${n};
|
||
background-image: repeating-linear-gradient(
|
||
-145deg,
|
||
transparent,
|
||
transparent 8px,
|
||
${n} 8px,
|
||
${n} 11px
|
||
),
|
||
repeating-linear-gradient(
|
||
-45deg,
|
||
transparent,
|
||
transparent 15px,
|
||
${r} 15px,
|
||
${r} 16px
|
||
);
|
||
}
|
||
|
||
.editor__canvas-container {
|
||
width: 100%;
|
||
height: 100%;
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.editor__canvas-container > * {
|
||
object-fit: contain;
|
||
position: absolute;
|
||
}
|
||
|
||
.editor__tool-container {
|
||
padding-top: 8px;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.editor__tool-bar {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.editor__tool {
|
||
display: flex;
|
||
padding: 8px 12px;
|
||
justify-content: center;
|
||
align-items: center;
|
||
border: var(--button-border, var(--border));
|
||
border-radius: var(--button-border-radius, 6px);
|
||
background: var(--button-background, var(--background));
|
||
color: var(--button-color, var(--foreground));
|
||
}
|
||
|
||
.editor__tool--active {
|
||
background: var(--button-primary-background, var(--accent-background));
|
||
color: var(--button-primary-color, var(--accent-foreground));
|
||
}
|
||
|
||
.editor__rect {
|
||
position: absolute;
|
||
z-index: 2;
|
||
}
|
||
|
||
.editor__rect button {
|
||
opacity: 0;
|
||
position: absolute;
|
||
top: -12px;
|
||
right: -12px;
|
||
cursor: pointer;
|
||
padding: 0;
|
||
z-index: 3;
|
||
border: none;
|
||
background: none;
|
||
}
|
||
|
||
.editor__rect:hover button {
|
||
opacity: 1;
|
||
}
|
||
`,e&&t.setAttribute("nonce",e),t}function YN({h:e}){return function({action:n,setAction:r,options:s}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},s.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},s.hideToolText)))}}function XN({hooks:e}){function t(){const[n,r]=e.useState(_n.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(_n.devicePixelRatio)},i=matchMedia(`(resolution: ${_n.devicePixelRatio}dppx)`);return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:i,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const l=await lo.mediaDevices.getDisplayMedia({video:{width:_n.innerWidth*a,height:_n.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=We.createElement("video");await new Promise((u,f)=>{d.srcObject=l,d.onloadedmetadata=()=>{s(d,a),l.getTracks().forEach(h=>h.stop()),u()},d.play().catch(f)}),i()})().catch(o)},[])}}function JN(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function Rr(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Au(e,t){Rr(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Mu(e,t,n){Rr(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(i=>{JN(i,s,t)})})}function ZN({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const i=XN({hooks:t}),o=YN({h:e}),a=GN({h:e}),c={__html:KN(s.styleNonce).innerText},l=r.el.style,d=({screenshot:u})=>{const[f,h]=t.useState("highlight"),[p,m]=t.useState([]),y=t.useRef(null),g=t.useRef(null),v=t.useRef(null),_=t.useRef(null),[S,M]=t.useState(1),R=t.useMemo(()=>{const T=We.getElementById(s.id);if(!T)return"white";const P=getComputedStyle(T);return P.getPropertyValue("--button-primary-background")||P.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const T=()=>{const P=y.current;P&&(Rr(u.canvas,{alpha:!1},N=>{const z=Math.min(P.clientWidth/N.width,P.clientHeight/N.height);M(z)}),(P.clientHeight===0||P.clientWidth===0)&&setTimeout(T,0))};return T(),_n.addEventListener("resize",T),()=>{_n.removeEventListener("resize",T)}},[u]);const E=t.useCallback((T,P)=>{Rr(T,{alpha:!0},(N,z)=>{z.scale(P,P),N.width=u.canvas.width,N.height=u.canvas.height})},[u]);t.useEffect(()=>{E(g.current,u.dpi),Au(g.current,u.canvas)},[u]),t.useEffect(()=>{E(v.current,u.dpi),Rr(v.current,{alpha:!0},(T,P)=>{P.clearRect(0,0,T.width,T.height)}),Mu(v.current,R,p)},[p,R]),t.useEffect(()=>{E(n,u.dpi),Au(n,u.canvas),Rr(We.createElement("canvas"),{alpha:!0},(T,P)=>{P.scale(u.dpi,u.dpi),T.width=u.canvas.width,T.height=u.canvas.height,Mu(T,R,p),Au(n,T)})},[p,u,R]);const C=T=>{if(!f||!_.current)return;const P=_.current.getBoundingClientRect(),N={type:f,x:T.offsetX/S,y:T.offsetY/S},z=(D,re)=>{const U=(re.clientX-P.x)/S,ie=(re.clientY-P.y)/S;return{type:D.type,x:Math.min(D.x,U),y:Math.min(D.y,ie),w:Math.abs(U-D.x),h:Math.abs(ie-D.y)}},X=D=>{Rr(v.current,{alpha:!0},(re,U)=>{U.clearRect(0,0,re.width,re.height)}),Mu(v.current,R,[...p,z(N,D)])},q=D=>{const re=z(N,D);re.w*S>=1&&re.h*S>=1&&m(U=>[...U,re]),We.removeEventListener("mousemove",X),We.removeEventListener("mouseup",q)};We.addEventListener("mousemove",X),We.addEventListener("mouseup",q)},k=t.useCallback(T=>P=>{P.preventDefault(),P.stopPropagation(),m(N=>{const z=[...N];return z.splice(T,1),z})},[]),A={width:`${u.canvas.width*S}px`,height:`${u.canvas.height*S}px`},O=T=>{T.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:y},e("canvas",{ref:g,id:"background",style:A}),e("canvas",{ref:v,id:"foreground",style:A}),e("div",{ref:_,onMouseDown:C,style:A},p.map((T,P)=>e("div",{key:P,class:"editor__rect",style:{top:`${T.y*S}px`,left:`${T.x*S}px`,width:`${T.w*S}px`,height:`${T.h*S}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:k(P),onMouseDown:O,onMouseUp:O,type:"button"},e(a,null))))))),e(o,{options:s,action:f,setAction:h}))};return function({onError:f}){const[h,p]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((m,y)=>{Rr(We.createElement("canvas"),{alpha:!1},(g,v)=>{v.scale(y,y),g.width=m.videoWidth,g.height=m.videoHeight,v.drawImage(m,0,0,g.width,g.height),p({canvas:g,dpi:y})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(m=>{l.display="block",f(m)},[])}),h?e(d,{screenshot:h}):e("div",null)}}const QN=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=We.createElement("canvas");return{input:ZN({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const i=await new Promise(o=>{s.toBlob(o,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),Ae=xe;let Wd=0;function rE(){return Wd>0}function eD(){Wd++,setTimeout(()=>{Wd--})}function Ri(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(uh(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>Ri(o,t));return e.apply(this,i)}catch(i){throw eD(),Al(o=>{o.addEventProcessor(a=>(t.mechanism&&(xd(a,void 0),wi(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Pl(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}jS(r,e),qt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Ah(){const e=Ls(),{referrer:t}=Ae.document||{},{userAgent:n}=Ae.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const tD=hN({getModalIntegration:()=>qN,getScreenshotIntegration:()=>QN});function Mh(e,t){const n=Ph(e,t),r={type:oD(t),value:aD(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function nD(e,t,n,r){const s=Ee(),i=s==null?void 0:s.getOptions().normalizeDepth,o=fD(t),a={__serialized__:d0(t,i)};if(o)return{exception:{values:[Mh(e,o)]},extra:a};const c={exception:{values:[{type:Rl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:uD(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=Ph(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Pu(e,t){return{exception:{values:[Mh(e,t)]}}}function Ph(e,t){const n=t.stacktrace||t.stack||"",r=sD(t),s=iD(t);try{return e(n,r,s)}catch{}return[]}const rD=/Minified React error #\d+;/i;function sD(e){return e&&rD.test(e.message)?1:0}function iD(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function sE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function oD(e){const t=e==null?void 0:e.name;return!t&&sE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function aD(e){const t=e==null?void 0:e.message;return sE(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Qg(t.error):Qg(e):"No error message"}function cD(e,t,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,i=Oh(e,t,s,r);return wi(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),ma(i)}function lD(e,t,n="info",r,s){const i=(r==null?void 0:r.syntheticException)||void 0,o=jd(e,t,i,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),ma(o)}function Oh(e,t,n,r,s){let i;if(VS(t)&&t.error)return Pu(e,t.error);if(vg(t)||rM(t)){const o=t;if("stack"in t)i=Pu(e,t);else{const a=o.name||(vg(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=jd(e,c,n,r),xd(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return xl(t)?Pu(e,t):jo(t)||Rl(t)?(i=nD(e,t,n,s),wi(i,{synthetic:!0}),i):(i=jd(e,t,n,r),xd(i,`${t}`),wi(i,{synthetic:!0}),i)}function jd(e,t,n,r){const s={};if(r&&n){const i=Ph(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),wi(s,{synthetic:!0})}if(ah(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function uD(e,{isUnhandledRejection:t}){const n=lM(e),r=t?"promise rejection":"exception";return VS(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Rl(e)?`Event \`${dD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function dD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function fD(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class hD extends RO{constructor(t){var d;const n=pD(t),r=Ae.SENTRY_SDK_SOURCE||DL();D0(n,"browser",["browser"],r),(d=n._metadata)!=null&&d.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:a,enableMetrics:c}=this._options,l=c??(a==null?void 0:a.enableMetrics)??!0;Ae.document&&(i||o||l)&&Ae.document.addEventListener("visibilitychange",()=>{Ae.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&w0(this),l&&T0(this))}),s&&this.on("beforeSendSession",WO)}eventFromException(t,n){return cD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return lD(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function pD(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Ae.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const xs=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ge=xe,mD=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ya=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=mD(t.value,n),e(t)))}},_a=(e=!0)=>{var n,r;const t=(r=(n=ge.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ki=()=>{const e=_a();return(e==null?void 0:e.activationStart)??0};function Dr(e,t,n){ge.document&&ge.addEventListener(e,t,n)}function Gc(e,t,n){ge.document&&ge.removeEventListener(e,t,n)}let fi=-1;const iE=new Set,gD=()=>{var e,t;return((e=ge.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=ge.document)!=null&&t.prerendering)?0:1/0},mc=e=>{if(vD(e)&&fi>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of iE)t();isFinite(fi)||(fi=e.type==="visibilitychange"?e.timeStamp:0,Gc("prerenderingchange",mc,!0))}},ba=()=>{var e;if(ge.document&&fi<0){const t=Ki();fi=(ge.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??gD(),Dr("visibilitychange",mc,!0),Dr("pagehide",mc,!0),Dr("prerenderingchange",mc,!0)}return{get firstHiddenTime(){return fi},onHidden(t){iE.add(t)}}};function vD(e){var t;return e.type==="pagehide"||((t=ge.document)==null?void 0:t.visibilityState)==="hidden"}const yD=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Sa=(e,t=-1)=>{var i,o;const n=_a();let r="navigate";return n&&((i=ge.document)!=null&&i.prerendering||Ki()>0?r="prerender":(o=ge.document)!=null&&o.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:yD(),navigationType:r}},Ou=new WeakMap;function Lh(e,t){try{return Ou.get(e)||Ou.set(e,new t),Ou.get(e)}catch{return new t}}class Kc{constructor(){Kc.prototype.__init.call(this),Kc.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var s;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(s=this._onAfterProcessingUnexpectedShift)==null||s.call(this,t)}}const Yi=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Nh=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ll=e=>{var t;(t=ge.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},_D=[1800,3e3],bD=(e,t={})=>{Ll(()=>{const n=ba(),r=Sa("FCP");let s;const o=Yi("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Ki(),0),r.entries.push(c),s(!0)))});o&&(s=ya(e,r,_D,t.reportAllChanges))})},SD=[.1,.25],ED=(e,t={})=>{bD(Nh(()=>{var c;const n=Sa("CLS",0);let r;const s=ba(),i=Lh(t,Kc),o=l=>{for(const d of l)i._processEntry(d);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Yi("layout-shift",o);a&&(r=ya(e,n,SD,t.reportAllChanges),s.onHidden(()=>{o(a.takeRecords()),r(!0)}),(c=ge==null?void 0:ge.setTimeout)==null||c.call(ge,r))}))};let oE=0,Lu=1/0,Ha=0;const wD=e=>{e.forEach(t=>{t.interactionId&&(Lu=Math.min(Lu,t.interactionId),Ha=Math.max(Ha,t.interactionId),oE=Ha?(Ha-Lu)/7+1:0)})};let zd;const aE=()=>zd?oE:performance.interactionCount||0,CD=()=>{"interactionCount"in performance||zd||(zd=Yi("event",wD,{type:"event",buffered:!0,durationThreshold:0}))},Nu=10;let cE=0;const TD=()=>aE()-cE;class Yc{constructor(){Yc.prototype.__init.call(this),Yc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){cE=aE(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(TD()/50));return this._longestInteractionList[t]}_processEntry(t){var s,i;if((s=this._onBeforeProcessingEntry)==null||s.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Nu||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,a)=>a._latency-o._latency),this._longestInteractionList.length>Nu){const o=this._longestInteractionList.splice(Nu);for(const a of o)this._longestInteractionMap.delete(a.id)}(i=this._onAfterProcessingINPCandidate)==null||i.call(this,r)}}}const lE=e=>{var n;const t=ge.requestIdleCallback||ge.setTimeout;((n=ge.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=Nh(e),Dr("visibilitychange",e,{once:!0,capture:!0}),Dr("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Gc("visibilitychange",e,{capture:!0}),Gc("pagehide",e,{capture:!0})}))},kD=[200,500],ID=40,xD=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=ba();Ll(()=>{CD();const r=Sa("INP");let s;const i=Lh(t,Yc),o=c=>{lE(()=>{for(const d of c)i._processEntry(d);const l=i._estimateP98LongestInteraction();l&&l._latency!==r.value&&(r.value=l._latency,r.entries=l.entries,s())})},a=Yi("event",o,{durationThreshold:t.durationThreshold??ID});s=ya(e,r,kD,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),s(!0)}))})};class RD{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const AD=[2500,4e3],MD=(e,t={})=>{Ll(()=>{const n=ba(),r=Sa("LCP");let s;const i=Lh(t,RD),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const l of c)i._processEntry(l),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Ki(),0),r.entries=[l],s())},a=Yi("largest-contentful-paint",o);if(a){s=ya(e,r,AD,t.reportAllChanges);const c=Nh(()=>{o(a.takeRecords()),a.disconnect(),s(!0)}),l=d=>{d.isTrusted&&(lE(c),Gc(d.type,l,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Dr(d,l,{capture:!0})}})},PD=[800,1800],qd=e=>{var t,n;(t=ge.document)!=null&&t.prerendering?Ll(()=>qd(e)):((n=ge.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>qd(e),!0):setTimeout(e)},OD=(e,t={})=>{const n=Sa("TTFB"),r=ya(e,n,PD,t.reportAllChanges);qd(()=>{const s=_a();s&&(n.value=Math.max(s.responseStart-Ki(),0),n.entries=[s],r(!0))})},wo={},Xc={};let uE,dE,fE,hE;function Dh(e,t=!1){return Nl("cls",e,ND,uE,t)}function Fh(e,t=!1){return Nl("lcp",e,DD,dE,t)}function LD(e){return Nl("ttfb",e,FD,fE)}function pE(e){return Nl("inp",e,$D,hE)}function Rs(e,t){return mE(e,t),Xc[e]||(BD(e),Xc[e]=!0),gE(e,t)}function Ea(e,t){const n=wo[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(s){xs&&J.error(`Error while triggering instrumentation handler.
|
||
Type: ${e}
|
||
Name: ${lr(r)}
|
||
Error:`,s)}}function ND(){return ED(e=>{Ea("cls",{metric:e}),uE=e},{reportAllChanges:!0})}function DD(){return MD(e=>{Ea("lcp",{metric:e}),dE=e},{reportAllChanges:!0})}function FD(){return OD(e=>{Ea("ttfb",{metric:e}),fE=e})}function $D(){return xD(e=>{Ea("inp",{metric:e}),hE=e})}function Nl(e,t,n,r,s=!1){mE(e,t);let i;return Xc[e]||(i=n(),Xc[e]=!0),r&&t({metric:r}),gE(e,t,s?i:void 0)}function BD(e){const t={};e==="event"&&(t.durationThreshold=0),Yi(e,n=>{Ea(e,{entries:n})},t)}function mE(e,t){wo[e]=wo[e]||[],wo[e].push(t)}function gE(e,t,n){return()=>{n&&n();const r=wo[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function HD(e){return"duration"in e}const VD=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=ge.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};Dr("visibilitychange",t,{capture:!0,once:!0}),Dr("pagehide",t,{capture:!0,once:!0})};function Du(e){return typeof e=="number"&&isFinite(e)}function Wr(e,t,n,{...r}){const s=Re(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),yh(e,()=>{const i=Vr({startTime:t,...r});return i&&i.end(n),i})}function $h(e){var y;const t=Ee();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l==null?void 0:l.getReplayId(),u=Pe(),f=u.getUser(),h=f!==void 0?f.email||f.id||f.ip_address:void 0;let p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:a,user:h||void 0,profile_id:p||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":(y=ge.navigator)==null?void 0:y.userAgent,"client.address":c?"{{auto}}":void 0,...s};return Vr({name:n,attributes:m,startTime:i,experimental:{standalone:!0}})}function wa(){return ge.addEventListener&&ge.performance}function at(e){return e/1e3}function UD(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function vE(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function yE(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}VD(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c!=null&&c.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function WD(e){let t=0,n;if(!vE("layout-shift"))return;const r=Dh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);yE(e,(s,i)=>{jD(t,n,i,s),r()})}function jD(e,t,n,r){var l;xs&&J.log(`Sending CLS span (${e})`);const s=t?at((Gt()||0)+t.startTime):lt(),i=Pe().getScopeData().transactionName,o=t?zt((l=t.sources[0])==null?void 0:l.node):"Layout shift",a={[st]:"auto.http.browser.cls",[fr]:"ui.webvital.cls",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((d,u)=>{a[`cls.source.${u+1}`]=zt(d.node)});const c=$h({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[ha]:"",[pa]:e}),c.end(s))}function zD(e){let t=0,n;if(!vE("largest-contentful-paint"))return;const r=Fh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);yE(e,(s,i)=>{qD(t,n,i,s),r()})}function qD(e,t,n,r){xs&&J.log(`Sending LCP span (${e})`);const s=at((Gt()||0)+((t==null?void 0:t.startTime)||0)),i=Pe().getScopeData().transactionName,o=t?zt(t.element):"Largest contentful paint",a={[st]:"auto.http.browser.lcp",[fr]:"ui.webvital.lcp",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=zt(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=$h({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[ha]:"millisecond",[pa]:e}),c.end(s))}function on(e){return e&&((Gt()||performance.timeOrigin)+e)/1e3}function _E(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:r,version:s}=UD(e.nextHopProtocol);t["network.protocol.version"]=s,t["network.protocol.name"]=r}return Gt()||(n=wa())!=null&&n.timeOrigin?GD({...t,"http.request.redirect_start":on(e.redirectStart),"http.request.redirect_end":on(e.redirectEnd),"http.request.worker_start":on(e.workerStart),"http.request.fetch_start":on(e.fetchStart),"http.request.domain_lookup_start":on(e.domainLookupStart),"http.request.domain_lookup_end":on(e.domainLookupEnd),"http.request.connect_start":on(e.connectStart),"http.request.secure_connection_start":on(e.secureConnectionStart),"http.request.connection_end":on(e.connectEnd),"http.request.request_start":on(e.requestStart),"http.request.response_start":on(e.responseStart),"http.request.response_end":on(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function GD(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const KD=2147483647;let Tv=0,yn={},Vt,ei;function YD({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=wa();if(r&&Gt()){r.mark&&ge.performance.mark("sentry-tracing-init");const s=t?zD(n):eF(),i=tF(),o=e?WD(n):QD();return()=>{s==null||s(),i(),o==null||o()}}return()=>{}}function XD(){Rs("longtask",({entries:e})=>{const t=Tt();if(!t)return;const{op:n,start_timestamp:r}=Re(t);for(const s of e){const i=at(Gt()+s.startTime),o=at(s.duration);n==="navigation"&&r&&i<r||Wr(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[st]:"auto.ui.browser.metrics"}})}})}function JD(){new PerformanceObserver(t=>{const n=Tt();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=at(Gt()+r.startTime),{start_timestamp:i,op:o}=Re(n);if(o==="navigation"&&i&&s<i)continue;const a=at(r.duration),c={[st]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:d,invokerType:u,sourceURL:f,sourceFunctionName:h,sourceCharPosition:p}=l;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=u,f&&(c["code.filepath"]=f),h&&(c["code.function"]=h),p!==-1&&(c["browser.script.source_char_position"]=p),Wr(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function ZD(){Rs("event",({entries:e})=>{const t=Tt();if(t){for(const n of e)if(n.name==="click"){const r=at(Gt()+n.startTime),s=at(n.duration),i={name:zt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[st]:"auto.ui.browser.metrics"}},o=WS(n.target);o&&(i.attributes["ui.component_name"]=o),Wr(t,r,r+s,i)}}})}function QD(){return Dh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.cls={value:e.value,unit:""},ei=t)},!0)}function eF(){return Fh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.lcp={value:e.value,unit:"millisecond"},Vt=t)},!0)}function tF(){return LD(({metric:e})=>{e.entries[e.entries.length-1]&&(yn.ttfb={value:e.value,unit:"millisecond"})})}function nF(e,t){const n=wa(),r=Gt();if(!(n!=null&&n.getEntries)||!r)return;const s=at(r),i=n.getEntries(),{op:o,start_timestamp:a}=Re(e);i.slice(Tv).forEach(c=>{const l=at(c.startTime),d=at(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+l<a))switch(c.entryType){case"navigation":{oF(e,c,s);break}case"mark":case"paint":case"measure":{sF(e,c,l,d,s,t.ignorePerformanceApiSpans);const u=ba(),f=c.startTime<u.firstHiddenTime;c.name==="first-paint"&&f&&(yn.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&f&&(yn.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{lF(e,c,c.name,l,d,s,t.ignoreResourceSpans);break}}}),Tv=Math.max(i.length-1,0),uF(e),o==="pageload"&&(hF(yn),t.recordClsOnPageloadSpan||delete yn.cls,t.recordLcpOnPageloadSpan||delete yn.lcp,Object.entries(yn).forEach(([c,l])=>{wP(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ki()),dF(e,t)),Vt=void 0,ei=void 0,yn={}}function rF(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function sF(e,t,n,r,s,i){if(rF(t)||["mark","measure"].includes(t.entryType)&&nr(t.name,i))return;const o=_a(!1),a=at(o?o.requestStart:0),c=s+Math.max(n,a),l=s+n,d=l+r,u={[st]:"auto.resource.browser.metrics"};c!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=c),iF(u,t),c<=d&&Wr(e,c,d,{name:t.name,op:t.entryType,attributes:u})}function iF(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Ei(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Ei(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function oF(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Va(e,t,r,n)}),Va(e,t,"secureConnection",n,"TLS/SSL"),Va(e,t,"fetch",n,"cache"),Va(e,t,"domainLookup",n,"DNS"),cF(e,t,n)}function Va(e,t,n,r,s=n){const i=aF(n),o=t[i],a=t[`${n}Start`];!a||!o||Wr(e,r+at(a),r+at(o),{op:`browser.${s}`,name:t.name,attributes:{[st]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function aF(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function cF(e,t,n){const r=n+at(t.requestStart),s=n+at(t.responseEnd),i=n+at(t.responseStart);t.responseEnd&&(Wr(e,r,s,{op:"browser.request",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}),Wr(e,i,s,{op:"browser.response",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}))}function lF(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o!=null&&o.includes(a))return;const c={[st]:"auto.resource.browser.metrics"},l=Ss(n);l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(ge.location.origin),fF(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,..._E(t)},u=i+r,f=u+s;Wr(e,u,f,{name:n.replace(ge.location.origin,""),op:a,attributes:d})}function uF(e){const t=ge.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Du(n.rtt)&&(yn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Du(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Du(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function dF(e,t){Vt&&t.recordLcpOnPageloadSpan&&(Vt.element&&e.setAttribute("lcp.element",zt(Vt.element)),Vt.id&&e.setAttribute("lcp.id",Vt.id),Vt.url&&e.setAttribute("lcp.url",Vt.url.trim().slice(0,200)),Vt.loadTime!=null&&e.setAttribute("lcp.loadTime",Vt.loadTime),Vt.renderTime!=null&&e.setAttribute("lcp.renderTime",Vt.renderTime),e.setAttribute("lcp.size",Vt.size)),ei!=null&&ei.sources&&t.recordClsOnPageloadSpan&&ei.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,zt(n.node)))}function fF(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<KD||typeof i=="string")&&(t[s]=i)})}function hF(e){const t=_a(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function pF(){return wa()&&Gt()?Rs("element",mF):()=>{}}const mF=({entries:e})=>{const t=Tt(),n=t?wt(t):void 0,r=n?Re(n).description:Pe().getScopeData().transactionName;e.forEach(s=>{var h,p;const i=s;if(!i.identifier)return;const o=i.name,a=i.renderTime,c=i.loadTime,[l,d]=c?[at(c),"load-time"]:a?[at(a),"render-time"]:[lt(),"entry-emission"],u=o==="image-paint"?at(Math.max(0,(a??0)-(c??0))):0,f={[st]:"auto.ui.browser.elementtiming",[fr]:"ui.elementtiming",[jt]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":i.id,"element.type":((p=(h=i.element)==null?void 0:h.tagName)==null?void 0:p.toLowerCase())||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":o};RP({name:`element[${i.identifier}]`,attributes:f,startTime:l,onlyIfParent:!0},m=>{m.end(l+u)})})},gF=1e3;let kv,Gd,Kd;function bE(e){const t="dom";Kr(t,e),Yr(t,vF)}function vF(){if(!ge.document)return;const e=dn.bind(null,"dom"),t=Iv(e,!0);ge.document.addEventListener("click",t,!1),ge.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,o;const s=(i=ge[n])==null?void 0:i.prototype;(o=s==null?void 0:s.hasOwnProperty)!=null&&o.call(s,"addEventListener")&&(Wt(s,"addEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[c]=u[c]||{refCount:0};if(!f.handler){const h=Iv(e);f.handler=h,a.call(this,c,h,d)}f.refCount++}catch{}return a.call(this,c,l,d)}}),Wt(s,"removeEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[c];f&&(f.refCount--,f.refCount<=0&&(a.call(this,c,f.handler,d),f.handler=void 0,delete u[c]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,l,d)}}))})}function yF(e){if(e.type!==Gd)return!1;try{if(!e.target||e.target._sentryId!==Kd)return!1}catch{}return!0}function _F(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Iv(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=bF(n);if(_F(n.type,r))return;qt(n,"_sentryCaptured",!0),r&&!r._sentryId&&qt(r,"_sentryId",tn());const s=n.type==="keypress"?"input":n.type;yF(n)||(e({event:n,name:s,global:t}),Gd=n.type,Kd=r?r._sentryId:void 0),clearTimeout(kv),kv=ge.setTimeout(()=>{Kd=void 0,Gd=void 0},gF)}}function bF(e){try{return e.target}catch{return null}}let Ua;function Dl(e){const t="history";Kr(t,e),Yr(t,SF)}function SF(){if(ge.addEventListener("popstate",()=>{const t=ge.location.href,n=Ua;if(Ua=t,n===t)return;dn("history",{from:n,to:t})}),!IL())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Ua,i=EF(String(r));if(Ua=i,s===i)return t.apply(this,n);dn("history",{from:s,to:i})}return t.apply(this,n)}}Wt(ge.history,"pushState",e),Wt(ge.history,"replaceState",e)}function EF(e){try{return new URL(e,ge.location.origin).toString()}catch{return e}}const gc={};function SE(e){const t=gc[e];if(t)return t;let n=ge[e];if($d(n))return gc[e]=n.bind(ge);const r=ge.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i!=null&&i[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){xs&&J.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(gc[e]=n.bind(ge))}function wF(e){gc[e]=void 0}function Ca(...e){return SE("setTimeout")(...e)}const ds="__sentry_xhr_v3__";function EE(e){const t="xhr";Kr(t,e),Yr(t,CF)}function CF(){if(!ge.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=lt()*1e3,o=tr(r[0])?r[0].toUpperCase():void 0,a=TF(r[1]);if(!o||!a)return t.apply(n,r);n[ds]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[ds];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:lt()*1e3,startTimestamp:i,xhr:n,virtualError:s};dn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return c(),l.apply(d,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[f,h]=u,p=d[ds];return p&&tr(f)&&tr(h)&&(p.request_headers[f.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ds];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:lt()*1e3,xhr:n};return dn("xhr",i),t.apply(n,r)}})}function TF(e){if(tr(e))return e;try{return e.toString()}catch{}}const kF=Symbol.for("sentry__originalRequestBody");function wE(e){return new URLSearchParams(e).toString()}function CE(e,t=J){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[wE(e)];if(!e)return[void 0]}catch(n){return xs&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return xs&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function TE(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][kF];return n!==void 0?n:void 0}}function kE(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return xs&&J.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
|
||
`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Fu=[],vc=new Map,js=new Map,IF=60;function xF(){if(wa()&&Gt()){const t=RF();return()=>{t()}}return()=>{}}const Yd={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 RF(){return pE(AF)}const AF=({metric:e})=>{if(e.value==null)return;const t=at(e.value);if(t>IF)return;const n=e.entries.find(p=>p.duration===e.value&&Yd[p.name]);if(!n)return;const{interactionId:r}=n,s=Yd[n.name],i=at(Gt()+n.startTime),o=Tt(),a=o?wt(o):void 0,c=r!=null?vc.get(r):void 0,l=(c==null?void 0:c.span)||a,d=l?Re(l).description:Pe().getScopeData().transactionName,u=(c==null?void 0:c.elementName)||zt(n.target),f={[st]:"auto.http.browser.inp",[fr]:`ui.interaction.${s}`,[qi]:n.duration},h=$h({name:u,transaction:d,attributes:f,startTime:i});h&&(h.addEvent("inp",{[ha]:"millisecond",[pa]:e.value}),h.end(i+t))};function MF(){const e=Object.keys(Yd);zc()&&e.forEach(s=>{ge.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=zt(i),a=Math.round(s.timeStamp);if(js.set(a,o),js.size>50){const c=js.keys().next().value;c!==void 0&&js.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=js.get(i);if(!o)for(let a=-5;a<=5;a++){const c=js.get(i+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=Tt(),o=i&&wt(i);s.forEach(a=>{if(!HD(a))return;const c=a.interactionId;if(c==null||vc.has(c))return;const l=a.target?zt(a.target):n(a);if(Fu.length>10){const d=Fu.shift();vc.delete(d)}Fu.push(c),vc.set(c,{span:o,elementName:l})})};Rs("event",r),Rs("first-input",r)}const PF=40;function OF(e,t=SE("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw wF("fetch"),c}finally{n-=o,r--}}return CO(e,s,Eh(e.bufferSize||PF))}const pn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,LF=30,NF=50;function Xd(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?ks:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const DF=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,FF=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$F=/\((\S*)(?::(\d+))(?::(\d+))\)/,BF=/at (.+?) ?\(data:(.+?),/,HF=e=>{const t=e.match(BF);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=DF.exec(e);if(n){const[,s,i,o]=n;return Xd(s,ks,+i,+o)}const r=FF.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=$F.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,o]=IE(r[1]||ks,r[2]);return Xd(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},VF=[LF,HF],UF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,WF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jF=e=>{const t=UF.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=WF.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||ks;return[s,r]=IE(s,r),Xd(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},zF=[NF,jF],qF=[VF,zF],GF=DS(...qF),IE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ks,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Wa=1024,KF="Breadcrumbs",YF=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:KF,setup(n){t.console&&lL(QF(n)),t.dom&&bE(ZF(n,t.dom)),t.xhr&&EE(e$(n)),t.fetch&&W0(t$(n)),t.history&&Dl(n$(n)),t.sentry&&n.on("beforeSendEvent",JF(n))}}},XF=YF;function JF(e){return function(n){Ee()===e&&Ur({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:as(n)},{event:n})}}function ZF(e,t){return function(r){if(Ee()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Wa&&(pn&&J.warn(`\`dom.maxStringLength\` cannot exceed ${Wa}, but a value of ${a} was configured. Sentry will use ${Wa} instead.`),a=Wa),typeof o=="string"&&(o=[o]);try{const l=r.event,d=r$(l)?l.target:l;s=zt(d,{keyAttrs:o,maxStringLength:a}),i=WS(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),Ur(c,{event:r.event,name:r.name,global:r.global})}}function QF(e){return function(n){if(Ee()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:B0(n.level),message:bg(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${bg(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ur(r,{input:n.args,level:n.level})}}function e$(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ds];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:l}=i,d={method:o,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:U0(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),Ur(f,u)}}function t$(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),Ur(a,o)}else{const i=n.response,o={...n.fetchData,status_code:i==null?void 0:i.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i==null||i.status;const a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:U0(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Ur(c,a)}}}function n$(e){return function(n){if(Ee()!==e)return;let r=n.from,s=n.to;const i=Ss(Ae.location.href);let o=r?Ss(r):void 0;const a=Ss(s);o!=null&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Ur({category:"navigation",data:{from:r,to:s}})}}function r$(e){return!!e&&!!e.target}const s$=["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"],i$="BrowserApiErrors",o$=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:i$,setupOnce(){t.setTimeout&&Wt(Ae,"setTimeout",xv),t.setInterval&&Wt(Ae,"setInterval",xv),t.requestAnimationFrame&&Wt(Ae,"requestAnimationFrame",c$),t.XMLHttpRequest&&"XMLHttpRequest"in Ae&&Wt(XMLHttpRequest.prototype,"send",l$);const n=t.eventTarget;n&&(Array.isArray(n)?n:s$).forEach(s=>u$(s,t))}}},a$=o$;function xv(e){return function(...t){const n=t[0];return t[0]=Ri(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${lr(e)}`}}),e.apply(this,t)}}function c$(e){return function(t){return e.apply(this,[Ri(t,{mechanism:{data:{handler:lr(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function l$(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Wt(n,s,function(i){const o={mechanism:{data:{handler:lr(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=uh(i);return a&&(o.mechanism.data.handler=lr(a)),Ri(i,o)})}),e.apply(this,t)}}function u$(e,t){var s,i;const r=(s=Ae[e])==null?void 0:s.prototype;(i=r==null?void 0:r.hasOwnProperty)!=null&&i.call(r,"addEventListener")&&(Wt(r,"addEventListener",function(o){return function(a,c,l){try{d$(c)&&(c.handleEvent=Ri(c.handleEvent,{mechanism:{data:{handler:lr(c),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&f$(this,a,c),o.apply(this,[a,Ri(c,{mechanism:{data:{handler:lr(c),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),Wt(r,"removeEventListener",function(o){return function(a,c,l){try{const d=c.__sentry_wrapped__;d&&o.call(this,a,d,l)}catch{}return o.call(this,a,c,l)}}))}function d$(e){return typeof e.handleEvent=="function"}function f$(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const h$=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Ae.document>"u"){pn&&J.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Vg({ignoreDuration:!0}),Ug(),t==="route"&&Dl(({from:n,to:r})=>{n!==void 0&&n!==r&&(Vg({ignoreDuration:!0}),Ug())})}}},p$="CultureContext",m$=()=>({name:p$,preprocessEvent(e){var n;const t=v$();t&&(e.contexts={...e.contexts,culture:{...t,...(n=e.contexts)==null?void 0:n.culture}})}}),g$=m$;function v$(){try{const e=Ae.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const y$="GlobalHandlers",_$=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:y$,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(S$(n),Rv("onerror")),t.onunhandledrejection&&(E$(n),Rv("onunhandledrejection"))}}},b$=_$;function S$(e){$S(t=>{const{stackParser:n,attachStacktrace:r}=xE();if(Ee()!==e||rE())return;const{msg:s,url:i,line:o,column:a,error:c}=t,l=T$(Oh(n,c||s,void 0,r,!1),i,o,a);l.level="error",_0(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function E$(e){BS(t=>{const{stackParser:n,attachStacktrace:r}=xE();if(Ee()!==e||rE())return;const s=w$(t),i=Ei(s)?C$(s):Oh(n,s,void 0,r,!0);i.level="error",_0(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function w$(e){if(Ei(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function C$(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function T$(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],l=r,d=n,u=k$(t)??Ls();return c.length===0&&c.push({colno:l,filename:u,function:ks,in_app:!0,lineno:d}),e}function Rv(e){pn&&J.log(`Global Handler attached: ${e}`)}function xE(){const e=Ee();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function k$(e){if(!(!tr(e)||e.length===0))return e.startsWith("data:")?`<${Nr(e,!1)}>`:e}const I$=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Ae.navigator&&!Ae.location&&!Ae.document)return;const t=Ah(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),x$="cause",R$=5,A$="LinkedErrors",M$=(e={})=>{const t=e.limit||R$,n=e.key||x$;return{name:A$,preprocessEvent(r,s,i){const o=i.getOptions();cL(Mh,o.stackParser,n,t,r,s)}}},P$=M$;function O$(){return L$()?(pn&&_r(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function L$(){var i;if(typeof Ae.window>"u")return!1;const e=Ae;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((i=t==null?void 0:t.runtime)!=null&&i.id))return!1;const n=Ls(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Ae===Ae.top&&r.some(o=>n.startsWith(`${o}://`)))}function RE(e){return[eL(),XO(),_L(),a$(),XF(),b$(),P$(),hL(),I$(),g$(),h$()]}function N$(e={}){const t=!e.skipBrowserExtensionCheck&&O$();let n=e.defaultIntegrations==null?RE():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:QA(e.stackParser||GF),integrations:hO({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||OF};return NO(hD,r)}const Ye=xe,Bh="sentryReplaySession",D$="replay_event",Hh="Unable to send Replay",F$=3e5,$$=9e5,B$=5e3,H$=5500,V$=6e4,U$=5e3,W$=3,Av=15e4,ja=5e3,j$=3e3,z$=300,Vh=2e7,q$=4999,G$=5e4,Mv=36e5;var K$=Object.defineProperty,Y$=(e,t,n)=>t in e?K$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pv=(e,t,n)=>Y$(e,typeof t!="symbol"?t+"":t,n),ut=(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",e))(ut||{});function X$(e){return e.nodeType===e.ELEMENT_NODE}function Co(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function To(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function J$(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Z$(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(" ")+";"}function Jc(e){try{const t=e.rules||e.cssRules;return t?J$(Array.from(t,AE).join("")):null}catch{return null}}function Q$(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function AE(e){let t;if(tB(e))try{t=Jc(e.styleSheet)||Z$(e)}catch{}else if(nB(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=Q$(e)),r&&(n=eB(n)),r||s)return n}return t||e.cssText}function eB(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function tB(e){return"styleSheet"in e}function nB(e){return"selectorText"in e}class ME{constructor(){Pv(this,"idNodeMap",new Map),Pv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function rB(){return new ME}function Fl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Yo({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ai(e){return e.toLowerCase()}function Jd(e){return e.toUpperCase()}const Ov="__rrweb_original__";function sB(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=Ov in i?i[Ov]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function Uh(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ai(t):null}function Zc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function PE(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return(s==null?void 0:s[1])??null}const Lv={};function OE(e){const t=Lv[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Lv[e]=r.bind(window)}function Zd(...e){return OE("setTimeout")(...e)}function LE(...e){return OE("clearTimeout")(...e)}function NE(e){try{return e.contentDocument}catch{}}let iB=1;const oB=new RegExp("[^a-z0-9-_:]"),Xo=-2;function Wh(){return iB++}function aB(e){if(e instanceof HTMLFormElement)return"form";const t=Ai(e.tagName);return oB.test(t)?"div":t}function cB(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zs,Nv;const lB=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,uB=/^(?:[a-z+]+:)?\/\//i,dB=/^www\..*/i,fB=/^(data:)([^,]*),(.*)/i;function hB(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Qc(e,t){return(e||"").replace(lB,(n,r,s,i,o,a)=>{const c=s||o||a,l=r||i||"";if(!c)return n;if(uB.test(c)||dB.test(c))return`url(${l}${c}${l})`;if(fB.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${cB(t)+c}${l})`;const d=t.split("/"),u=c.split("/");d.pop();for(const f of u)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${l}${d.join("/")}${l})`})}const pB=/^[^ \t\n\r\u000c]+/,mB=/^[, \t\n\r\u000c]+/;function gB(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(mB),!(n>=t.length);){let i=r(pB);if(i.slice(-1)===",")i=ti(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=ti(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const Dv=new WeakMap;function ti(e,t){return!t||t.trim()===""?t:$l(e,t)}function vB(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function $l(e,t){let n=Dv.get(e);if(n||(n=e.createElement("a"),Dv.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function DE(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return ti(e,r);if(n==="xlink:href"&&r[0]!=="#")return ti(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return ti(e,r);if(n==="srcset")return gB(e,r);if(n==="style"){let a=Qc(r,$l(e));return o&&o.size>0&&(a=hB(a,o)),a}else if(t==="object"&&n==="data")return ti(e,r);return typeof i=="function"?i(n,r,s):r}function FE(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function yB(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function _B(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fs(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fs(e.parentNode,t,n,r+1)}function ni(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(_B(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Mi(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const l=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(i){if(c=fs(o,ni(r,s)),c<0)return!0;a=fs(o,ni(t,n),c>=0?c:1/0)}else{if(a=fs(o,ni(t,n)),a<0)return!1;c=fs(o,ni(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function bB(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=Zd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{LE(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Zd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function SB(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Zd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{LE(i),r=!0,t()})}function EB(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M=!1,ignoreCSSAttributes:R}=t,E=wB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ut.Document,childNodes:[],compatMode:e.compatMode}:{type:ut.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ut.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return TB(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M,rootId:E,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,ignoreCSSAttributes:R});case e.TEXT_NODE:return CB(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:ut.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ut.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function wB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function CB(e,t){var g;const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=u==="STYLE"?!0:void 0,p=u==="SCRIPT"?!0:void 0,m=u==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||(g=e.parentNode.sheet)!=null&&g.cssRules&&(f=Jc(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=Qc(f,$l(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");const y=Mi(e,r,i,s,o,n);if(!h&&!p&&!m&&f&&y&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||y)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),u==="OPTION"&&f){const v=Fl({type:null,tagName:u,maskInputOptions:c});f=Yo({isMasked:Mi(e,r,i,s,o,v),element:e,value:f,maskInputFn:l})}return{type:ut.Text,textContent:f||"",isStyle:h,rootId:d}}function TB(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:u,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:y,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,ignoreCSSAttributes:S}=t,M=yB(e,r,s,i),R=aB(e);let E={};const C=e.attributes.length;for(let A=0;A<C;A++){const O=e.attributes[A];O.name&&!FE(R,O.name,O.value)&&(E[O.name]=DE(n,R,Ai(O.name),O.value,e,c,S))}if(R==="link"&&o){const A=Array.from(n.styleSheets).find(T=>T.href===e.href);let O=null;A&&(O=Jc(A)),O&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=Qc(O,A.href))}if(R==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Jc(e.sheet);A&&(E._cssText=Qc(A,$l(n)))}if(R==="input"||R==="textarea"||R==="select"||R==="option"){const A=e,O=Uh(A),T=Zc(A,Jd(R),O),P=A.checked;if(O!=="submit"&&O!=="button"&&T){const N=Mi(A,y,v,g,_,Fl({type:O,tagName:Jd(R),maskInputOptions:a}));E.value=Yo({isMasked:N,element:A,value:T,maskInputFn:l})}P&&(E.checked=P)}if(R==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),R==="canvas"&&f){if(e.__context==="2d")sB(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;const T=O.toDataURL(d.type,d.quality);A!==T&&(E.rr_dataURL=A)}}if(R==="img"&&u){zs||(zs=n.createElement("canvas"),Nv=zs.getContext("2d"));const A=e,O=A.currentSrc||A.getAttribute("src")||"<unknown-src>",T=A.crossOrigin,P=()=>{A.removeEventListener("load",P);try{zs.width=A.naturalWidth,zs.height=A.naturalHeight,Nv.drawImage(A,0,0),E.rr_dataURL=zs.toDataURL(d.type,d.quality)}catch(N){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P);return}else console.warn(`Cannot inline img src=${O}! Error: ${N}`)}A.crossOrigin==="anonymous"&&(T?E.crossOrigin=T:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P)}if((R==="audio"||R==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),M){const{width:A,height:O}=e.getBoundingClientRect();E={class:E.class,rr_width:`${A}px`,rr_height:`${O}px`}}R==="iframe"&&!h(E.src)&&(!M&&!NE(e)&&(E.rr_src=E.src),delete E.src);let k;try{customElements.get(R)&&(k=!0)}catch{}return{type:ut.Element,tagName:R,attributes:E,childNodes:[],isSVG:vB(e)||void 0,needBlock:M,rootId:m,isCustom:k}}function Ge(e){return e==null?"":e.toLowerCase()}function kB(e,t){if(t.comment&&e.type===ut.Comment)return!0;if(e.type===ut.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&PE(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ri(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_={},inlineImages:S=!1,recordCanvas:M=!1,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C=5e3,onBlockedImageLoad:k,onStylesheetLoad:A,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:N}=t;let{preserveWhiteSpace:z=!0}=t;const X=EB(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:_,inlineImages:S,recordCanvas:M,keepIframeSrcFn:T,newlyAddedElement:P,ignoreCSSAttributes:N});if(!X)return console.warn(e,"not serialized"),null;let q;r.hasNode(e)?q=r.getId(e):kB(X,v)||!z&&X.type===ut.Text&&!X.isStyle&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?q=Xo:q=Wh();const D=Object.assign(X,{id:q});if(r.add(e,D),q===Xo)return null;R&&R(e);let re=!f;if(D.type===ut.Element){re=re&&!D.needBlock;const U=e.shadowRoot;U&&To(U)&&(D.isShadowHost=!0)}if((D.type===ut.Document||D.type===ut.Element)&&re){v.headWhitespace&&D.type===ut.Element&&D.tagName==="head"&&(z=!1);const U={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onBlockedImageLoad:k,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N},ie=e.childNodes?Array.from(e.childNodes):[];for(const ce of ie){const ue=ri(ce,U);ue&&D.childNodes.push(ue)}if(X$(e)&&e.shadowRoot)for(const ce of Array.from(e.shadowRoot.childNodes)){const ue=ri(ce,U);ue&&(To(e.shadowRoot)&&(ue.isShadow=!0),D.childNodes.push(ue))}}if(e.parentNode&&Co(e.parentNode)&&To(e.parentNode)&&(D.isShadow=!0),D.type===ut.Element&&D.tagName==="iframe"&&!D.needBlock&&bB(e,()=>{const U=NE(e);if(U&&E){const ie=ri(U,{doc:U,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});ie&&E(e,ie)}},C),D.type===ut.Element&&D.tagName==="img"&&!e.complete&&D.needBlock){const U=e,ie=()=>{if(U.isConnected&&!U.complete&&k)try{const ce=U.getBoundingClientRect();ce.width>0&&ce.height>0&&k(U,D,ce)}catch{}U.removeEventListener("load",ie)};U.isConnected&&U.addEventListener("load",ie)}return D.type===ut.Element&&D.tagName==="link"&&typeof D.attributes.rel=="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href=="string"&&PE(D.attributes.href)==="css")&&SB(e,()=>{if(A){const U=ri(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});U&&A(e,U)}},O),D.type===ut.Element&&delete D.needBlock,D}function IB(e,t){const{mirror:n=new ME,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:k,stylesheetLoadTimeout:A,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:T=new Set([])}=t||{};return ri(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:p===!0?{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}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:_,inlineImages:f,recordCanvas:h,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:k,stylesheetLoadTimeout:A,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:T})}function Ft(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Xs=`Please stop import mirror directly. Instead of that,\r
|
||
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
||
or you can use record.mirror to access the mirror instance during recording.`;let Fv={map:{},getId(){return console.error(Xs),-1},getNode(){return console.error(Xs),null},removeNodeFromMap(){console.error(Xs)},has(){return console.error(Xs),!1},reset(){console.error(Xs)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Fv=new Proxy(Fv,{get(e,t,n){return t==="map"&&console.error(Xs),Reflect.get(e,t,n)}}));function Jo(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(LB(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=Bl(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function $E(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Bl(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>$E(e,t,i||{},!0)}function jh(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let el=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(el=()=>new Date().getTime());function BE(e){var n,r,s,i,o,a;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((s=t==null?void 0:t.body)==null?void 0:s.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((o=(i=t==null?void 0:t.body)==null?void 0:i.parentElement)==null?void 0:o.scrollTop)||((a=t==null?void 0:t.body)==null?void 0:a.scrollTop)||0}}function HE(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function VE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function UE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Xt(e,t,n,r,s){if(!e)return!1;const i=UE(e);if(!i)return!1;const o=ni(t,n);if(!s){const l=r&&i.matches(r);return o(i)&&!l}const a=fs(i,o);let c=-1;return a<0?!1:(r&&(c=fs(i,ni(null,r))),a>-1&&c<0?!0:a<c)}function xB(e,t){return t.getId(e)!==-1}function $u(e,t){return t.getId(e)===Xo}function WE(e,t){if(Co(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?WE(e.parentNode,t):!0:!0}function Qd(e){return!!e.changedTouches}function RB(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=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function jE(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function zE(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function ef(e){return!!(e!=null&&e.shadowRoot)}class AB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function qE(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function MB(e){let t=e,n;for(;n=qE(t);)t=n;return t}function PB(e){const t=e.ownerDocument;if(!t)return!1;const n=MB(e);return t.contains(n)}function GE(e){const t=e.ownerDocument;return t?t.contains(e)||PB(e):!1}const $v={};function zh(e){const t=$v[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return $v[e]=r.bind(window)}function OB(...e){return zh("requestAnimationFrame")(...e)}function Bl(...e){return zh("setTimeout")(...e)}function LB(...e){return zh("clearTimeout")(...e)}var Te=(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))(Te||{}),_e=(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))(_e||{}),Lt=(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))(Lt||{}),Kn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Kn||{}),Js=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Js||{});function qh(e){try{return e.contentDocument}catch{}}function NB(e){try{return e.contentWindow}catch{}}function Bv(e){return"__ln"in e}class DB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Bv(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Bv(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Hv=(e,t)=>`${e}@${t}`;class FB{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new DB,s=c=>{let l=c,d=Xo;for(;d===Xo;)l=l&&l.nextSibling,d=l&&this.mirror.getId(l);return d},i=c=>{if(!c.parentNode||!GE(c))return;const l=Co(c.parentNode)?this.mirror.getId(qE(c)):this.mirror.getId(c.parentNode),d=s(c);if(l===-1||d===-1)return r.addNode(c);const u=ri(c,{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:f=>{jE(f,this.mirror)&&!Xt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),zE(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),ef(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{Xt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)},onBlockedImageLoad:(f,h,{width:p,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${p}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:l,nextId:d,node:u}),n.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Vv(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!Uv(this.droppedSet,c)&&!Vv(this.removes,c,this.mirror)||Uv(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const l=this.mirror.getId(o.value.parentNode),d=s(o.value);l!==-1&&d!==-1&&(c=o)}if(!c){let l=r.tail;for(;l;){const d=l;if(l=l.previous,d){const u=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(u!==-1){c=d;break}else{const h=d.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const d=JSON.stringify(c.styleDiff),u=JSON.stringify(c._unchangedStyles);d.length<l.style.length&&(d+u).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.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(a))},this.processMutation=t=>{if(!$u(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,UE(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=Uh(n),a=n.tagName;s=Zc(n,a,o);const c=Fl({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),l=Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Yo({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!qh(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!FE(n.tagName,r)&&(i.attributes[r]=DE(this.doc,Ai(n.tagName),Ai(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||l!==o.style.getPropertyPriority(a)?l===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,l]:i._unchangedStyles[a]=[c,l]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=Co(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$u(n,this.mirror)||!xB(n,this.mirror)||(this.addedSet.has(n)?(tf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||WE(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Hv(r,s)]?tf(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Co(t.target)&&To(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if($u(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Hv(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Xt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),ef(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["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","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}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 tf(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>tf(e,r))}function Vv(e,t,n){return e.length===0?!1:$B(e,t,n)}function $B(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function Uv(e,t){return e.size===0?!1:KE(e,t)}function KE(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:KE(e,n):!1}let ko;function BB(e){ko=e}function HB(){ko=void 0}const Me=e=>ko?(...n)=>{try{return e(...n)}catch(r){if(ko&&ko(r)===!0)return()=>{};throw r}}:e,si=[];function Ta(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{}return e&&e.target}function YE(e,t){var o,a;const n=new FB;si.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=(a=(o=window==null?void 0:window.Zone)==null?void 0:o.__symbol__)==null?void 0:a.call(o,"MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(Me(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function VB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Jo(Me(u=>{const f=Date.now()-a;e(o.map(h=>(h.timeOffset-=f,h)),u),o=[],a=null}),i),l=Me(Jo(Me(u=>{const f=Ta(u),{clientX:h,clientY:p}=Qd(u)?u.changedTouches[0]:u;a||(a=el()),o.push({x:h,y:p,id:r.getId(f),timeOffset:el()-a}),c(typeof DragEvent<"u"&&u instanceof DragEvent?_e.Drag:u instanceof MouseEvent?_e.MouseMove:_e.TouchMove)}),s,{trailing:!1})),d=[Ft("mousemove",l,n),Ft("touchmove",l,n),Ft("drag",l,n)];return Me(()=>{d.forEach(u=>u())})}function UB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let l=null;const d=u=>f=>{const h=Ta(f);if(Xt(h,r,s,i,!0))return;let p=null,m=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Kn.Mouse;break;case"touch":p=Kn.Touch;break;case"pen":p=Kn.Pen;break}p===Kn.Touch?Lt[u]===Lt.MouseDown?m="TouchStart":Lt[u]===Lt.MouseUp&&(m="TouchEnd"):Kn.Pen}else Qd(f)&&(p=Kn.Touch);p!==null?(l=p,(m.startsWith("Touch")&&p===Kn.Touch||m.startsWith("Mouse")&&p===Kn.Mouse)&&(p=null)):Lt[u]===Lt.Click&&(p=l,l=null);const y=Qd(f)?f.changedTouches[0]:f;if(!y)return;const g=n.getId(h),{clientX:v,clientY:_}=y;Me(e)({type:Lt[m],id:g,x:v,y:_,...p!==null&&{pointerType:p}})};return Object.keys(Lt).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let f=Ai(u);const h=d(u);if(window.PointerEvent)switch(Lt[u]){case Lt.MouseDown:case Lt.MouseUp:f=f.replace("mouse","pointer");break;case Lt.TouchStart:case Lt.TouchEnd:return}c.push(Ft(f,h,t))}),Me(()=>{c.forEach(u=>u())})}function XE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=Me(Jo(Me(c=>{const l=Ta(c);if(!l||Xt(l,r,s,i,!0))return;const d=n.getId(l);if(l===t&&t.defaultView){const u=BE(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Ft("scroll",a,t)}function WB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Me(Jo(Me(()=>{const i=HE(),o=VE();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return Ft("resize",s,t)}const jB=["INPUT","TEXTAREA","SELECT"],Wv=new WeakMap;function zB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:d,userTriggeredOnInput:u,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(E){let C=Ta(E);const k=E.isTrusted,A=C&&Jd(C.tagName);if(A==="OPTION"&&(C=C.parentElement),!C||!A||jB.indexOf(A)<0||Xt(C,r,s,i,!0))return;const O=C;if(O.classList.contains(o)||a&&O.matches(a))return;const T=Uh(C);let P=Zc(O,A,T),N=!1;const z=Fl({maskInputOptions:c,tagName:A,type:T}),X=Mi(C,f,p,h,m,z);(T==="radio"||T==="checkbox")&&(N=C.checked),P=Yo({isMasked:X,element:C,value:P,maskInputFn:l}),g(C,u?{text:P,isChecked:N,userTriggered:k}:{text:P,isChecked:N});const q=C.name;T==="radio"&&q&&N&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(D=>{if(D!==C){const re=Yo({isMasked:X,element:D,value:Zc(D,A,T),maskInputFn:l});g(D,u?{text:re,isChecked:!N,userTriggered:!1}:{text:re,isChecked:!N})}})}function g(E,C){const k=Wv.get(E);if(!k||k.text!==C.text||k.isChecked!==C.isChecked){Wv.set(E,C);const A=n.getId(E);Me(e)({...C,id:A})}}const _=(d.input==="last"?["change"]:["input","change"]).map(E=>Ft(E,Me(y),t)),S=t.defaultView;if(!S)return()=>{_.forEach(E=>E())};const M=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),R=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return M&&M.set&&_.push(...R.map(E=>$E(E[0],E[1],{set(){Me(y)({target:this,isTrusted:!1})}},!1,S))),Me(()=>{_.forEach(E=>E())})}function tl(e){const t=[];function n(r,s){if(za("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||za("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||za("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||za("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function Ar(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function qB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Me((d,u,f)=>{const[h,p]=f,{id:m,styleId:y}=Ar(u,t,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:h,index:p}]}),d.apply(u,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Me((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),d.apply(u,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Me((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),d.apply(u,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Me((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),d.apply(u,f)})}));const c={};qa("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(qa("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),qa("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),qa("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([d,u])=>{l[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(l[d].insertRule,{apply:Me((f,h,p)=>{const[m,y]=p,{id:g,styleId:v}=Ar(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,adds:[{rule:m,index:[...tl(h),y||0]}]}),f.apply(h,p)})}),u.prototype.deleteRule=new Proxy(l[d].deleteRule,{apply:Me((f,h,p)=>{const[m]=p,{id:y,styleId:g}=Ar(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...tl(h),m]}]}),f.apply(h,p)})})}),Me(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,u])=>{u.prototype.insertRule=l[d].insertRule,u.prototype.deleteRule=l[d].deleteRule})})}function JE({mirror:e,stylesheetManager:t},n){var o,a,c;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(c=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:c.ShadowRoot,i=s!=null&&s.prototype?Object.getOwnPropertyDescriptor(s==null?void 0:s.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var l;return(l=i.get)==null?void 0:l.call(this)},set(l){var u;const d=(u=i.set)==null?void 0:u.call(this,l);if(r!==null&&r!==-1)try{t.adoptStyleSheets(l,r)}catch{}return d}}),Me(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function GB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Me((a,c,l)=>{var m;const[d,u,f]=l;if(n.has(d))return i.apply(c,[d,u,f]);const{id:h,styleId:p}=Ar((m=c.parentRule)==null?void 0:m.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:d,value:u,priority:f},index:tl(c.parentRule)}),a.apply(c,l)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Me((a,c,l)=>{var h;const[d]=l;if(n.has(d))return o.apply(c,[d]);const{id:u,styleId:f}=Ar((h=c.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(u&&u!==-1||f&&f!==-1)&&e({id:u,styleId:f,remove:{property:d},index:tl(c.parentRule)}),a.apply(c,l)})}),Me(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function KB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=Me(l=>Jo(Me(d=>{const u=Ta(d);if(!u||Xt(u,t,n,r,!0))return;const{currentTime:f,volume:h,muted:p,playbackRate:m}=u;e({type:l,id:s.getId(u),currentTime:f,volume:h,muted:p,playbackRate:m})}),i.media||500)),c=[Ft("play",a(Js.Play),o),Ft("pause",a(Js.Pause),o),Ft("seeked",a(Js.Seeked),o),Ft("volumechange",a(Js.VolumeChange),o),Ft("ratechange",a(Js.RateChange),o)];return Me(()=>{c.forEach(l=>l())})}function YB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,l,d){const u=new i(c,l,d);return s.set(u,{family:c,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),u};const o=jh(t.fonts,"add",function(a){return function(c){return Bl(Me(()=>{const l=s.get(c);l&&(e(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),Me(()=>{r.forEach(a=>a())})}function XB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=Me(()=>{const l=t.getSelection();if(!l||a&&(l!=null&&l.isCollapsed))return;a=l.isCollapsed||!1;const d=[],u=l.rangeCount||0;for(let f=0;f<u;f++){const h=l.getRangeAt(f),{startContainer:p,startOffset:m,endContainer:y,endOffset:g}=h;Xt(p,r,s,i,!0)||Xt(y,r,s,i,!0)||d.push({start:n.getId(p),startOffset:m,end:n.getId(y),endOffset:g})}o({ranges:d})});return c(),Ft("selectionchange",c)}function JB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:jh(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function ZB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=YE(e,e.doc));const s=VB(e),i=UB(e),o=XE(e),a=WB(e,{win:n}),c=zB(e),l=KB(e);let d=()=>{},u=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(d=qB(e,{win:n}),u=JE(e,e.doc),f=GB(e,{win:n}),e.collectFonts&&(h=YB(e)));const p=XB(e),m=JB(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return Me(()=>{si.forEach(g=>g.reset()),r==null||r.disconnect(),s(),i(),o(),a(),c(),l(),d(),u(),f(),h(),p(),m(),y.forEach(g=>g())})}function za(e){return typeof window[e]<"u"}function qa(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class nf{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class QB{constructor(){this.crossOriginIframeMirror=new nf(Wh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class e5{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new nf(Wh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var s,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,t);const r=qh(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case Te.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:Te.IncrementalSnapshot,data:{source:_e.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Te.Meta:case Te.Load:case Te.DomContentLoaded:return!1;case Te.Plugin:return n;case Te.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Te.IncrementalSnapshot:switch(n.data.source){case _e.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.Drag:case _e.TouchMove:case _e.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.ViewportResize:return!1;case _e.MediaInteraction:case _e.MouseInteraction:case _e.Scroll:case _e.CanvasMutation:case _e.Input:return this.replaceIds(n.data,t,["id"]),n;case _e.StyleSheetRule:case _e.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case _e.Font:return n;case _e.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case _e.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ut.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class t5{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class n5{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!To(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=YE({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(XE({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Bl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(JE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=qh(t),r=NB(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(jh(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&GE(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var jv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r5=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ga=0;Ga<jv.length;Ga++)r5[jv.charCodeAt(Ga)]=Ga;class zv{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class s5{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new AB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:AE(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class i5{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,OB(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let it,nl;var hy;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((hy=e.contentWindow)==null?void 0:hy.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const gn=rB();function sr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:_,maskTextFn:S,maxCanvasSize:M=null,packFn:R,sampling:E={},dataURLOptions:C={},mousemoveWait:k,recordDOM:A=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:P=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:z=!1,inlineImages:X=!1,plugins:q,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:U,onMutation:ie,getCanvasManager:ce}=e;BB(U);const ue=T?window.parent===window:!0;let Ce=!1;if(!ue)try{window.parent.document&&(Ce=!1)}catch{Ce=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!Ce)return()=>{};k!==void 0&&E.mousemove===void 0&&(E.mousemove=k),gn.reset();const Ne=m===!0?{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}:y!==void 0?y:{},Ve=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};RB();let x,W=0;const K=H=>{for(const V of q||[])V.eventProcessor&&(H=V.eventProcessor(H));return R&&!Ce&&(H=R(H)),H};it=(H,V)=>{var Q;const Z=H;if(Z.timestamp=el(),(Q=si[0])!=null&&Q.isFrozen()&&Z.type!==Te.FullSnapshot&&!(Z.type===Te.IncrementalSnapshot&&Z.data.source===_e.Mutation)&&si.forEach(oe=>oe.unfreeze()),ue)t==null||t(K(Z),V);else if(Ce){const oe={type:"rrweb",event:K(Z),origin:window.location.origin,isCheckout:V};window.parent.postMessage(oe,"*")}if(Z.type===Te.FullSnapshot)x=Z,W=0;else if(Z.type===Te.IncrementalSnapshot){if(Z.data.source===_e.Mutation&&Z.data.isAttachIframe)return;W++;const oe=r&&W>=r,te=n&&x&&Z.timestamp-x.timestamp>n;(oe||te)&&Y(!0)}};const ne=H=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Mutation,...H}})},ye=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.Scroll,...H}}),b=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),w=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.AdoptedStyleSheet,...H}}),I=new s5({mutationCb:ne,adoptedStyleSheetCb:w}),L=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new QB:new e5({mirror:gn,mutationCb:ne,stylesheetManager:I,recordCrossOriginIframes:T,wrappedEmit:it});for(const H of q||[])H.getMirror&&H.getMirror({nodeMirror:gn,crossOriginIframeMirror:L.crossOriginIframeMirror,crossOriginIframeStyleMirror:L.crossOriginIframeStyleMirror});const $=new i5,F=a5(ce,{mirror:gn,win:window,mutationCb:H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),recordCanvas:O,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:M,sampling:E.canvas,dataURLOptions:C,errorHandler:U}),G=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new t5:new n5({mutationCb:ne,scrollCb:ye,bypassOptions:{onMutation:ie,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Ne,dataURLOptions:C,maskAttributeFn:v,maskTextFn:S,maskInputFn:_,recordCanvas:O,inlineImages:X,sampling:E,slimDOMOptions:Ve,iframeManager:L,stylesheetManager:I,canvasManager:F,keepIframeSrcFn:D,processedNodeManager:$,ignoreCSSAttributes:re},mirror:gn}),Y=(H=!1)=>{if(!A)return;it({type:Te.Meta,data:{href:window.location.href,width:VE(),height:HE()}},H),I.reset(),G.init(),si.forEach(Z=>Z.lock());const V=IB(document,{mirror:gn,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Ne,maskAttributeFn:v,maskInputFn:_,maskTextFn:S,slimDOM:Ve,dataURLOptions:C,recordCanvas:O,inlineImages:X,onSerialize:Z=>{jE(Z,gn)&&L.addIframe(Z),zE(Z,gn)&&I.trackLinkElement(Z),ef(Z)&&G.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,Q)=>{L.attachIframe(Z,Q),Z.contentWindow&&F.addWindow(Z.contentWindow),G.observeAttachShadow(Z)},onStylesheetLoad:(Z,Q)=>{I.attachLinkElement(Z,Q)},onBlockedImageLoad:(Z,Q,{width:oe,height:te})=>{ne({adds:[],removes:[],texts:[],attributes:[{id:Q.id,attributes:{style:{width:`${oe}px`,height:`${te}px`}}}]})},keepIframeSrcFn:D,ignoreCSSAttributes:re});if(!V)return console.warn("Failed to snapshot the document");it({type:Te.FullSnapshot,data:{node:V,initialOffset:BE(window)}}),si.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&I.adoptStyleSheets(document.adoptedStyleSheets,gn.getId(document))};nl=Y;try{const H=[],V=Q=>{var oe;return Me(ZB)({onMutation:ie,mutationCb:ne,mousemoveCb:(te,Ie)=>it({type:Te.IncrementalSnapshot,data:{source:Ie,positions:te}}),mouseInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MouseInteraction,...te}}),scrollCb:ye,viewportResizeCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.ViewportResize,...te}}),inputCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Input,...te}}),mediaInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MediaInteraction,...te}}),styleSheetRuleCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleSheetRule,...te}}),styleDeclarationCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleDeclaration,...te}}),canvasMutationCb:b,fontCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Font,...te}}),selectionCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Selection,...te}})},customElementCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.CustomElement,...te}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Ne,inlineStylesheet:p,sampling:E,recordDOM:A,recordCanvas:O,inlineImages:X,userTriggeredOnInput:N,collectFonts:z,doc:Q,maskAttributeFn:v,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:D,blockSelector:i,unblockSelector:o,slimDOMOptions:Ve,dataURLOptions:C,mirror:gn,iframeManager:L,stylesheetManager:I,shadowDomManager:G,processedNodeManager:$,canvasManager:F,ignoreCSSAttributes:re,plugins:((oe=q==null?void 0:q.filter(te=>te.observer))==null?void 0:oe.map(te=>({observer:te.observer,options:te.options,callback:Ie=>it({type:Te.Plugin,data:{plugin:te.name,payload:Ie}})})))||[]},{})};L.addLoadListener(Q=>{try{H.push(V(Q.contentDocument))}catch(oe){console.warn(oe)}});const Z=()=>{Y(),H.push(V(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(H.push(Ft("DOMContentLoaded",()=>{it({type:Te.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Z()})),H.push(Ft("load",()=>{it({type:Te.Load,data:{}}),P==="load"&&Z()},window))),()=>{H.forEach(Q=>Q()),$.destroy(),nl=void 0,HB()}}catch(H){console.warn(H)}}function o5(e){if(!nl)throw new Error("please take full snapshot after start recording");nl(e)}sr.mirror=gn;sr.takeFullSnapshot=o5;function a5(e,t){try{return e?e(t):new zv}catch{return console.warn("Unable to initialize CanvasManager"),new zv}}var qv;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(qv||(qv={}));const c5=3,l5=5;function Gh(e){return e>9999999999?e:e*1e3}function Bu(e){return e>9999999999?e/1e3:e}function ka(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Te.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:vn(t,10,1e3)}}),t.category==="console")))}const u5="button,a";function ZE(e){return e.closest(u5)||e}function QE(e){const t=ew(e);return!t||!(t instanceof Element)?t:ZE(t)}function ew(e){return d5(e)?e.target:e}function d5(e){return typeof e=="object"&&!!e&&"target"in e}let Mr;function f5(e){return Mr||(Mr=[],h5()),Mr.push(e),()=>{const t=Mr?Mr.indexOf(e):-1;t>-1&&Mr.splice(t,1)}}function h5(){Wt(Ye,"open",function(e){return function(...t){if(Mr)try{Mr.forEach(n=>n())}catch{}return e.apply(Ye,t)}})}const p5=new Set([_e.Mutation,_e.StyleSheetRule,_e.StyleDeclaration,_e.AdoptedStyleSheet,_e.CanvasMutation,_e.Selection,_e.MediaInteraction]);function m5(e,t,n){e.handleClick(t,n)}class g5{constructor(t,n,r=ka){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=f5(()=>{this._lastMutation=Gv()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(y5(n,this._ignoreSelector)||!_5(t))return;const r={timestamp:Bu(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Bu(t)}registerScroll(t=Date.now()){this._lastScroll=Bu(t)}registerClick(t){const n=ZE(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Gv();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Ye.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:o||1}};this._addBreadcrumbEvent(n,d);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Ye.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ca(()=>this._checkClicks(),1e3)}}const v5=["A","BUTTON","INPUT"];function y5(e,t){return!!(!v5.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function _5(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Gv(){return Date.now()/1e3}function b5(e,t){try{if(!S5(t))return;const{source:n}=t.data;if(p5.has(n)&&e.registerMutation(t.timestamp),n===_e.Scroll&&e.registerScroll(t.timestamp),E5(t)){const{type:r,id:s}=t.data,i=sr.mirror.getNode(s);i instanceof HTMLElement&&r===Lt.Click&&e.registerClick(i)}}catch{}}function S5(e){return e.type===c5}function E5(e){return e.data.source===_e.MouseInteraction}function Hn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Kh=(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",e))(Kh||{});const w5=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function C5(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(w5.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const T5=e=>t=>{if(!e.isEnabled())return;const n=k5(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&(s!=null&&s.target)&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&m5(e.clickDetector,n,QE(t.event)),ka(e,n)};function tw(e,t){const n=sr.mirror.getId(e),r=n&&sr.mirror.getNode(n),s=r&&sr.mirror.getMeta(r),i=s&&x5(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===Kh.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:C5(i.attributes)}}:{}}}function k5(e){const{target:t,message:n}=I5(e);return Hn({category:`ui.${e.name}`,...tw(t,n)})}function I5(e){const t=e.name==="click";let n,r=null;try{r=t?QE(e.event):ew(e.event),n=zt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function x5(e){return e.type===Kh.Element}function R5(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=A5(t);n&&ka(e,n)}function A5(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||M5(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const l=zt(o,{maxStringLength:200})||"<unknown>",d=tw(o,l);return Hn({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function M5(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const P5={resource:F5,paint:N5,navigation:D5};function Hu(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function O5(e){return e.map(L5).filter(Boolean)}function L5(e){const t=P5[e.entryType];return t?t(e):null}function Pi(e){return((Gt()||Ye.performance.timeOrigin)+e)/1e3}function N5(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=Pi(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function D5(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Pi(h),end:Pi(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:i,redirectCount:f}}}function F5(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Pi(i),end:Pi(s),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function $5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return Yh(e,"largest-contentful-paint",n)}function B5(e){return e.sources!==void 0}function H5(e){const t=[],n=[];for(const r of e.entries)if(B5(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=sr.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Yh(e,"cumulative-layout-shift",n,t)}function V5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Yh(e,"interaction-to-next-paint",n)}function Yh(e,t,n,r){const s=e.value,i=e.rating,o=Pi(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>sr.mirror.getId(a)):void 0,attributions:r}}}function U5(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Rs(s,n))}),r.push(Fh(Hu($5,e)),Dh(Hu(H5,e)),pE(Hu(V5,e))),()=>{r.forEach(s=>s())}}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,W5='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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(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},_=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},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+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(U,C,0),R=U;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[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}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.prototype.flush=function(){j.prototype.flush.call(this)},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(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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(const r of t)n+=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});';function j5(){const e=new Blob([W5]);return URL.createObjectURL(e)}const Kv=["log","warn","error"],yc="[Replay] ";function Vu(e,t="info"){Ur({category:"console",data:{logger:"replay"},level:t,message:`${yc}${e}`},{level:t})}function z5(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return he?(Kv.forEach(r=>{n[r]=(...s)=>{J[r](yc,...s),t&&Vu(s.join(""),B0(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),J.error(yc,r),e?Pl(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Vu(r,"error")},n.infoTick=(...r)=>{J.log(yc,...r),t&&setTimeout(()=>Vu(r[0]),0)}):Kv.forEach(r=>{n[r]=()=>{}}),n}const pe=z5();class Xh extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Vh}.`)}}class nw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Vh)throw new Xh;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Gh(t):null}}class q5{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(he&&pe.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{he&&pe.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){he&&pe.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){he&&pe.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class G5{constructor(t){this._worker=new q5(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Gh(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Vh?Promise.reject(new Xh):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{he&&pe.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class K5{constructor(t){this._fallback=new nw,this._compression=new G5(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){he&&pe.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){he&&pe.exception(i,"Failed to add events when switching buffers.")}}}function Y5({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=X5(t);if(n)return n}return he&&pe.log("Using simple buffer"),new nw}function X5(e){try{const t=e||J5();if(!t)return;he&&pe.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new K5(n)}catch(t){he&&pe.exception(t,"Failed to create compression worker")}}function J5(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?j5():""}function Jh(){try{return"sessionStorage"in Ye&&!!Ye.sessionStorage}catch{return!1}}function Z5(e){Q5(),e.session=void 0}function Q5(){if(Jh())try{Ye.sessionStorage.removeItem(Bh)}catch{}}function rw(e){return e===void 0?!1:Math.random()<e}function Hl(e){if(Jh())try{Ye.sessionStorage.setItem(Bh,JSON.stringify(e))}catch{}}function sw(e){const t=Date.now(),n=e.id||tn(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a,dirty:c}}function e2(e,t){return rw(e)?"session":t?"buffer":!1}function Yv({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=e2(e,t),i=sw({sampled:s,previousSessionId:r});return n&&Hl(i),i}function t2(){if(!Jh())return null;try{const e=Ye.sessionStorage.getItem(Bh);if(!e)return null;const t=JSON.parse(e);return he&&pe.infoTick("Loading existing session"),sw(t)}catch{return null}}function rf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function iw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return rf(e.started,t,r)||rf(e.lastActivity,n,r)}function ow(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!iw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Uu({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&t2();return s?ow(s,{sessionIdleExpire:e,maxReplayDuration:t})?(he&&pe.infoTick("Session in sessionStorage is expired, creating new one..."),Yv(r,{previousSessionId:s.id})):s:(he&&pe.infoTick("Creating new session"),Yv(r,{previousSessionId:n}))}function n2(e){return e.type===Te.Custom}function Zh(e,t,n){return cw(e,t)?(aw(e,t,n),!0):!1}function r2(e,t,n){return cw(e,t)?aw(e,t,n):Promise.resolve(null)}async function aw(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=s2(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof Xh,a=o?"addEventSizeExceeded":"addEvent",c=Ee();if(c){const l=o?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(l,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function cw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Gh(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(he&&pe.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function s2(e,t){try{if(typeof t=="function"&&n2(e))return t(e)}catch(n){return he&&pe.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Qh(e){return!e.type}function sf(e){return e.type==="transaction"}function i2(e){return e.type==="replay_event"}function Xv(e){return e.type==="feedback"}function o2(e){return(t,n)=>{if(!e.isEnabled()||!Qh(t)&&!sf(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(sf(t)){a2(e,t);return}c2(e,t)}}}function a2(e,t){var r,s;const n=e.getContext();(s=(r=t.contexts)==null?void 0:r.trace)!=null&&s.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function c2(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Ca(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function l2(e){return t=>{!e.isEnabled()||!Qh(t)||u2(e,t)}}function u2(e,t){var r,s,i;const n=(i=(s=(r=t.exception)==null?void 0:r.values)==null?void 0:s[0])==null?void 0:i.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const o=Hn({category:"replay.hydrate-error",data:{url:Ls()}});ka(e,o)}}function d2(e){const t=Ee();t&&t.on("beforeAddBreadcrumb",n=>f2(e,n))}function f2(e,t){if(!e.isEnabled()||!lw(t))return;const n=h2(t);n&&ka(e,n)}function h2(e){return!lw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?p2(e):Hn(e)}function p2(e){var s;const t=(s=e.data)==null?void 0:s.arguments;if(!Array.isArray(t)||t.length===0)return Hn(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>ja?(n=!0,`${i.slice(0,ja)}…`):i;if(typeof i=="object")try{const o=vn(i,7);return JSON.stringify(o).length>ja?(n=!0,`${JSON.stringify(o,null,2).slice(0,ja)}…`):o}catch{}return i});return Hn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function lw(e){return!!e.category}function m2(e,t){var n,r,s;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((s=t.originalException)!=null&&s.__rrweb__)}function uw(){const e=Pe().getPropagationContext().dsc;e&&delete e.replay_id;const t=Tt();if(t){const n=hr(t);delete n.replay_id}}function g2(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function v2(e,t){return e.recordingMode!=="buffer"||t.message===Hh||!t.exception||t.type?!1:rw(e.getOptions().errorSampleRate)}function y2(e){return Object.assign((t,n)=>{var o;if(!e.isEnabled()||e.isPaused())return t;if(i2(t))return delete t.breadcrumbs,t;if(!Qh(t)&&!sf(t)&&!Xv(t))return t;if(!e.checkAndHandleExpiredSession())return uw(),t;if(Xv(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),g2(e,t),t;if(m2(t,n)&&!e.getOptions()._experiments.captureExceptions)return he&&pe.log("Ignoring error from rrweb internals",t),null;const s=v2(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&((o=e.session)==null?void 0:o.sampled)==="buffer"){const a=e.session;a.dirty=!0,e.getOptions().stickySession&&Hl(a)}return t},{id:"Replay"})}function Vl(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:Te.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function _2(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function b2(e){return t=>{if(!e.isEnabled())return;const n=_2(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Vl(e,[n]),!1)))}}function S2(e,t){return he&&e.getOptions()._experiments.traceInternals?!1:HO(t,Ee())}function dw(e,t){e.isEnabled()&&t!==null&&(S2(e,t.name)||e.addUpdate(()=>(Vl(e,[t]),!0)))}function Ul(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=wE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function fw(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function rl(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 hw(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Zo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Fr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=E2(n);return r.body=s,i!=null&&i.length&&(r._meta={warnings:i}),r}function of(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function E2(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Av,n=w2(e);if(t){const r=e.slice(0,Av);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function w2(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function sl(e,t){const n=C2(e);return nr(n,t)}function C2(e,t=Ye.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ye.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}async function T2(e,t,n){try{const r=await I2(e,t,n),s=hw("resource.fetch",r);dw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture fetch breadcrumb")}}function k2(e,t){const{input:n,response:r}=t,s=n?TE(n):void 0,i=Ul(s),o=r?fw(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function I2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:l,response_body_size:d}=e.data,u=sl(o,n.networkDetailAllowUrls)&&!sl(o,n.networkDetailDenyUrls),f=u?x2(n,t.input,l):Zo(l),h=await R2(u,n,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:h}}function x2({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?P2(n,t):{};if(!e)return Fr(s,r,void 0);const i=TE(n),[o,a]=CE(i,pe),c=Fr(s,r,o);return a?rl(c,a):c}async function R2(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Zo(s);const i=r?pw(r.headers,n):{};if(!r||!t&&s!==void 0)return Fr(i,s,void 0);const[o,a]=await M2(r),c=A2(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?rl(c,a):c}function A2(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e!=null&&e.length&&n===void 0?Ul(e):n;return r?t?Fr(s,i,e):Fr(s,i,void 0):Zo(i)}catch(i){return he&&pe.exception(i,"Failed to serialize response body"),Fr(s,n,void 0)}}async function M2(e){const t=O2(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await L2(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(he&&pe.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(he&&pe.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function pw(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function P2(e,t){return e.length===1&&typeof e[0]!="string"?Jv(e[0],t):e.length===2?Jv(e[1],t):{}}function Jv(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?pw(n,t):Array.isArray(n)?{}:of(n,t):{}}function O2(e){try{return e.clone()}catch(t){he&&pe.exception(t,"Failed to clone response body")}}function L2(e){return new Promise((t,n)=>{const r=Ca(()=>n(new Error("Timeout while trying to read response body")),500);N2(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function N2(e){return await e.text()}async function D2(e,t,n){try{const r=$2(e,t,n),s=hw("resource.xhr",r);dw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture xhr breadcrumb")}}function F2(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Ul(r),i=n.getResponseHeader("content-length")?fw(n.getResponseHeader("content-length")):V2(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function $2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:l,status_code:d=0,request_body_size:u,response_body_size:f}=e.data;if(!c)return null;if(!a||!sl(c,n.networkDetailAllowUrls)||sl(c,n.networkDetailDenyUrls)){const R=Zo(u),E=Zo(f);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:R,response:E}}const h=a[ds],p=h?of(h.request_headers,n.networkRequestHeaders):{},m=of(kE(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?CE(o,pe):[void 0],[v,_]=n.networkCaptureBodies?B2(a):[void 0],S=Fr(p,u,y),M=Fr(m,f,v);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:g?rl(S,g):S,response:_?rl(M,_):M}}function B2(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return H2(e.response,e.responseType)}catch(n){t.push(n)}return he&&pe.warn("Failed to get xhr response body",...t),[void 0]}function H2(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return he&&pe.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&pe.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function V2(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ul(n)}catch{return}}function U2(e){const t=Ee();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,l)=>W2(a,c,l))}catch{}}function W2(e,t,n){if(t.data)try{j2(t)&&q2(n)&&(F2(t,n),D2(t,n,e)),z2(t)&&G2(n)&&(k2(t,n),T2(t,n,e))}catch(r){he&&pe.exception(r,"Error when enriching network breadcrumb")}}function j2(e){return e.category==="xhr"}function z2(e){return e.category==="fetch"}function q2(e){return e==null?void 0:e.xhr}function G2(e){return e==null?void 0:e.response}function K2(e){const t=Ee();bE(T5(e)),Dl(b2(e)),d2(e),U2(e);const n=y2(e);oO(n),t&&(t.on("beforeSendEvent",l2(e)),t.on("afterSendEvent",o2(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{var o;const i=e.getSessionId();s!=null&&s.includeReplay&&e.isEnabled()&&i&&((o=r.contexts)!=null&&o.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Y2(e){try{return Promise.all(Vl(e,[X2(Ye.performance.memory)]))}catch{return[]}}function X2(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function J2(e,t,n){return qO(e,t,{...n,setTimeoutImpl:Ca})}const an=xe.navigator;function Z2(){return/iPhone|iPad|iPod/i.test((an==null?void 0:an.userAgent)??"")||/Macintosh/i.test((an==null?void 0:an.userAgent)??"")&&(an!=null&&an.maxTouchPoints)&&(an==null?void 0:an.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function Q2(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){he&&pe.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&b5(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Zh(e,n,s))return!0;if(!s)return!1;const i=e.session;if(t3(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(he&&pe.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&Hl(i))}return i!=null&&i.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function e3(e){const t=e.getOptions();return{type:Te.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?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function t3(e,t){!t||!e.session||e.session.segmentId!==0||Zh(e,e3(e),!1)}function n3(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function r3(e,t,n,r){return Jr(f0(e,vh(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function s3({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
||
`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function i3({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await y0(e.getOptions(),r,i,t,e,Kt());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l,settings:d}=(a==null?void 0:a.sdk)||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:d},o}async function o3({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=s3({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:d}=r,u=Ee(),f=Pe(),h=u==null?void 0:u.getTransport(),p=u==null?void 0:u.getDsn();if(!u||!h||!p||!i.sampled)return Promise.resolve({});const m={type:D$,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},y=await i3({scope:f,client:u,replayId:t,event:m});if(!y)return u.recordDroppedEvent("event_processor","replay"),he&&pe.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const g=r3(y,o,p,u.getOptions().tunnel);let v;try{v=await h.send(g)}catch(S){const M=new Error(Hh);try{M.cause=S}catch{}throw M}const _=R0({},v);if(x0(_,"replay"))throw new ep(_);if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new mw(v.statusCode);return v}class mw extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ep extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class Zv extends Error{constructor(){super("Session is too long, not sending replay")}}async function gw(e,t={count:0,interval:U$}){const{recordingData:n,onError:r}=e;if(n.length)try{return await o3(e),!0}catch(s){if(s instanceof mw||s instanceof ep)throw s;if(nO("Replays",{_retryCount:t.count}),r&&r(s),t.count>=W$){const i=new Error(`${Hh} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Ca(async()=>{try{await gw(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const vw="__THROTTLED",a3="__SKIPPED";function c3(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const d=o;return o=!0,d?a3:vw}o=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class l3{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:F$,sessionIdleExpire:$$},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=J2(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=c3((o,a)=>r2(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(j$,r),timeout:r,scrollTimeout:z$,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new g5(this,i)),he){const o=t._experiments;pe.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{Ye.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=Hn({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=Hn({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{R5(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){he&&pe.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){he&&pe.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",he&&pe.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){he&&pe.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Uu({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in buffer mode");const t=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=sr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:V$}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Q2(this),...Z2(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{he&&pe.log(`Stopping Replay${n?` triggered by ${n}`:""}`),uw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,Z5(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),he&&pe.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),he&&pe.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();he&&pe.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){if(this._lastActivity&&rf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ye.location.pathname}${Ye.location.hash}${Ye.location.search}`,n=`${Ye.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===vw){const s=Hn({category:"replay.throttled"});this.addUpdate(()=>!Zh(this,{type:l5,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Tt(),n=t&&wt(t),s=(n&&Re(n).data||{})[jt];if(!(!n||!s||!["route","custom"].includes(s)))return Re(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Y5({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return ow(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ye.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ye.addEventListener("blur",this._handleWindowBlur),Ye.addEventListener("focus",this._handleWindowFocus),Ye.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(K2(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=U5(this)}_removeListeners(){try{Ye.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ye.removeEventListener("blur",this._handleWindowBlur),Ye.removeEventListener("focus",this._handleWindowFocus),Ye.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||iw(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){he&&pe.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=O5(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Vl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={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(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){he&&pe.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await Y2(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Zv;const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await gw({replayId:t,recordingData:o,segmentId:i,eventContext:s,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const s=Ee();if(s){let i;r instanceof ep?i="ratelimit_backoff":r instanceof Zv?i="invalid":i="send_error",s.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){he&&pe.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){he&&pe.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&he&&pe.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hl(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(a=>{const c=n3(a.target),l=n.join(",");return c==null?void 0:c.matches(l)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const a=Hn({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function oo(e,t){return[...e,...t].join(",")}function u3({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=oo(e,[".sentry-mask","[data-sentry-mask]"]),a=oo(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:oo(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:oo(r,[]),ignoreSelector:oo(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function d3({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Qv='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',f3=["content-length","content-type","accept"],h3=Symbol.for("sentry__originalRequestBody");let ey=!1,ty=!1;function p3(){if(typeof Request>"u"||ty)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return(r==null?void 0:r.body)!=null&&(s[h3]=r.body),s};t.prototype=e.prototype,xe.Request=t,ty=!0}catch{}}const m3=e=>new g3(e);class g3{constructor({flushMinDelay:t=B$,flushMaxDelay:n=H$,minReplayDuration:r=q$,maxReplayDuration:s=Mv,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:_=[],networkResponseHeaders:S=[],mask:M=[],maskAttributes:R=["title","placeholder","aria-label"],unmask:E=[],block:C=[],unblock:k=[],ignore:A=[],maskFn:O,beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z=!1}={}){this.name="Replay";const X=u3({mask:M,unmask:E,block:C,unblock:k,ignore:A});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(q,D,re)=>d3({maskAttributes:R,maskAllText:l,privacyOptions:X,key:q,value:D,el:re}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:q=>{try{q.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,G$),maxReplayDuration:Math.min(s,Mv),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:y,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:ny(_),networkResponseHeaders:ny(S),beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Qv}`:Qv,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&zc())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ey}set _isInitialized(t){ey=t}afterAllSetup(t){!zc()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&p3(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=v3(this._initialOptions,t);this._replay=new l3({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function v3(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Is(n.replaysSessionSampleRate),i=Is(n.replaysOnErrorSampleRate);return s==null&&i==null&&_r(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function ny(e){return[...f3,...e.map(t=>t.toLowerCase())]}function y3(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function yw(e){try{return new URL(e,Ae.location.origin).href}catch{return}}function _3(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function _w(e){try{return new Headers(e)}catch{return}}const ry=new WeakMap,Wu=new Map,bw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function b3(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:l}={...bw,...t},d=typeof i=="function"?i:p=>!0,u=p=>S3(p,a),f={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const y=Wu.get(m.span_id);y&&(m.timestamp=y/1e3,Wu.delete(m.span_id))}}),p)),s&&AL(p=>{if(p.response){const m=ry.get(p.response);m&&p.endTimestamp&&Wu.set(m,p.endTimestamp)}}),W0(p=>{const m=bL(p,d,u,f,{propagateTraceparent:h,onRequestSpanEnd:l});if(p.response&&p.fetchData.__span&&ry.set(p.response,p.fetchData.__span),m){const y=yw(p.fetchData.url),g=y?Ss(y).host:void 0;m.setAttributes({"http.url":y?Nr(y):void 0,"server.address":g}),o&&sy(m),c==null||c(m,{headers:p.headers})}})),r&&EE(p=>{var y;const m=E3(p,d,u,f,h,l);m&&(o&&sy(m),c==null||c(m,{headers:_w((y=p.xhr.__sentry_xhr_v3__)==null?void 0:y.request_headers)}))})}function sy(e){const{url:t}=Re(e).data;if(!t||typeof t!="string")return;const n=Rs("resource",({entries:r})=>{r.forEach(s=>{_3(s)&&s.name.endsWith(t)&&(e.setAttributes(_E(s)),setTimeout(n))})})}function S3(e,t){const n=Ls();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?nr(r.toString(),t)||i&&nr(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?nr(e,t):r}}function E3(e,t,n,r,s,i){const o=e.xhr,a=o==null?void 0:o[ds];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:l}=a,d=fn()&&t(c);if(e.endTimestamp&&d){const g=o.__sentry_xhr_span_id__;if(!g)return;const v=r[g];v&&a.status_code!==void 0&&(XS(v,a.status_code),v.end(),i==null||i(v,{headers:_w(kE(o)),error:e.error}),delete r[g]);return}const u=yw(c),f=Ss(u||c),h=Nr(BO(c)),p=!!Tt(),m=d&&p?Vr({name:`${l} ${h}`,attributes:{url:Nr(c),type:"xhr","http.method":l,"http.url":u?Nr(u):void 0,"server.address":f==null?void 0:f.host,[st]:"auto.http.browser",[fr]:"http.client",...(f==null?void 0:f.search)&&{"http.query":f==null?void 0:f.search},...(f==null?void 0:f.hash)&&{"http.fragment":f==null?void 0:f.hash}}}):new Hr;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(c)&&w3(o,fn()&&p?m:void 0,s);const y=Ee();return y&&y.emit("beforeOutgoingRequestSpan",m,e),m}function w3(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=F0({span:t,propagateTraceparent:n});r&&C3(e,r,s,i)}function C3(e,t,n,r){var i;const s=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(s!=null&&s["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(s!=null&&s.traceparent)&&e.setRequestHeader("traceparent",r),n){const o=s==null?void 0:s.baggage;(!o||!y3(o))&&e.setRequestHeader("baggage",n)}}catch{}}function T3(){Ae.document?Ae.document.addEventListener("visibilitychange",()=>{const e=Tt();if(!e)return;const t=wt(e);if(Ae.document.hidden&&t){const n="cancelled",{op:r,status:s}=Re(t);pn&&J.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ht,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):pn&&J.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const k3=3600,Sw="sentry_previous_trace",I3="sentry.previous_trace";function x3(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?M3():void 0;e.on("spanStart",o=>{if(wt(o)!==o)return;const a=Pe().getPropagationContext();s=R3(s,o,a),r&&A3(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=Pe(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(af(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=af(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[YS]:s.sampleRate}})}function R3(e,t,n){const r=Re(t);function s(){var a,c;try{return Number((a=n.dsc)==null?void 0:a.sample_rate)??Number((c=r.data)==null?void 0:c[dh])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=k3&&(pn&&J.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[kM]:"previous_trace"}}),t.setAttribute(I3,`${o.traceId}-${o.spanId}-${af(o)?1:0}`)),i)}function A3(e){try{Ae.sessionStorage.setItem(Sw,JSON.stringify(e))}catch(t){pn&&J.warn("Could not store previous trace in sessionStorage",t)}}function M3(){var e;try{const t=(e=Ae.sessionStorage)==null?void 0:e.getItem(Sw);return JSON.parse(t)}catch{return}}function af(e){return e.traceFlags===1}const P3="BrowserTracing",O3={...ac,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...bw},iy=(e={})=>{const t={name:void 0,source:void 0},n=Ae.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:u,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:p,traceFetch:m,traceXHR:y,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:v,enableHTTPTimings:_,ignoreResourceSpans:S,ignorePerformanceApiSpans:M,instrumentPageLoad:R,instrumentNavigation:E,detectRedirects:C,linkPreviousTrace:k,consistentTraceSampling:A,enableReportPageLoaded:O,onRequestSpanStart:T,onRequestSpanEnd:P}={...O3,...e};let N,z,X;function q(D,re,U=!0){const ie=re.op==="pageload",ce=re.name,ue=d?d(re):re,Ce=ue.attributes||{};if(ce!==ue.name&&(Ce[jt]="custom",ue.attributes=Ce),!U){const x=Ns();Vr({...ue,startTime:x}).end(x);return}t.name=ue.name,t.source=Ce[jt];const Ne=v0(ue,{idleTimeout:u,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:ie,beforeSpanEnd:x=>{N==null||N(),nF(x,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:M}),cy(D,void 0);const W=Pe(),K=W.getPropagationContext();W.setPropagationContext({...K,traceId:Ne.spanContext().traceId,sampled:Xr(Ne),dsc:hr(x)}),ie&&(X=void 0)},trimIdleSpanEndTimestamp:!O});ie&&O&&(X=Ne),cy(D,Ne);function Ve(){n&&["interactive","complete"].includes(n.readyState)&&D.emit("idleSpanEnableAutoFinish",Ne)}ie&&!O&&n&&(n.addEventListener("readystatechange",()=>{Ve()}),Ve())}return{name:P3,setup(D){if(nP(),N=YD({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:l||!1,client:D}),r&&xF(),s&&pF(),o&&xe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?JD():i&&XD(),a&&ZD(),C&&n){const U=()=>{z=lt()};addEventListener("click",U,{capture:!0}),addEventListener("keydown",U,{capture:!0,passive:!0})}function re(){const U=Qo(D);U&&!Re(U).timestamp&&(pn&&J.log(`[Tracing] Finishing current active span with op: ${Re(U).op}`),U.setAttribute(zo,"cancelled"),U.end())}D.on("startNavigationSpan",(U,ie)=>{if(Ee()!==D)return;if(ie!=null&&ie.isRedirect){pn&&J.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),q(D,{op:"navigation.redirect",...U},!1);return}z=void 0,re(),Kt().setPropagationContext({traceId:dr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:rr()});const ce=Pe();ce.setPropagationContext({traceId:dr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:rr()}),ce.setSDKProcessingMetadata({normalizedRequest:void 0}),q(D,{op:"navigation",...U,parentSpan:null,forceTransaction:!0})}),D.on("startPageLoadSpan",(U,ie={})=>{if(Ee()!==D)return;re();const ce=ie.sentryTrace||oy("sentry-trace")||ay("sentry-trace"),ue=ie.baggage||oy("baggage")||ay("baggage"),Ce=GM(ce,ue),Ne=Pe();Ne.setPropagationContext(Ce),fn()||(Ne.getPropagationContext().propagationSpanId=rr()),Ne.setSDKProcessingMetadata({normalizedRequest:Ah()}),q(D,{op:"pageload",...U})}),D.on("endPageloadSpan",()=>{O&&X&&(X.setAttribute(zo,"reportPageLoaded"),X.end())})},afterAllSetup(D){let re=Ls();if(k!=="off"&&x3(D,{linkPreviousTrace:k,consistentTraceSampling:A}),Ae.location){if(R){const U=Gt();L3(D,{name:Ae.location.pathname,startTime:U?U/1e3:void 0,attributes:{[jt]:"url",[st]:"auto.pageload.browser"}})}E&&Dl(({to:U,from:ie})=>{if(ie===void 0&&(re==null?void 0:re.indexOf(U))!==-1){re=void 0;return}re=void 0;const ce=Ch(U),ue=Qo(D),Ce=ue&&C&&D3(ue,z);Ew(D,{name:(ce==null?void 0:ce.pathname)||Ae.location.pathname,attributes:{[jt]:"url",[st]:"auto.navigation.browser"}},{url:U,isRedirect:Ce})})}p&&T3(),a&&N3(D,u,f,h,t),r&&MF(),b3(D,{traceFetch:m,traceXHR:y,trackFetchStreamPerformance:g,tracePropagationTargets:D.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:_,onRequestSpanStart:T,onRequestSpanEnd:P})}}};function L3(e,t,n){e.emit("startPageLoadSpan",t,n),Pe().setTransactionName(t.name);const r=Qo(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Ew(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=Pe();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...Ah(),url:r}}),Qo(e)}function oy(e){const t=Ae.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function ay(e){var r,s,i;const t=(s=(r=Ae.performance)==null?void 0:r.getEntriesByType)==null?void 0:s.call(r,"navigation")[0],n=(i=t==null?void 0:t.serverTiming)==null?void 0:i.find(o=>o.name===e);return n==null?void 0:n.description}function N3(e,t,n,r,s){const i=Ae.document;let o;const a=()=>{const c="ui.action.click",l=Qo(e);if(l){const d=Re(l).op;if(["navigation","pageload"].includes(d)){pn&&J.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(zo,"interactionInterrupted"),o.end(),o=void 0),!s.name){pn&&J.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=v0({name:s.name,op:c,attributes:{[jt]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const ww="_sentry_idleSpan";function Qo(e){return e[ww]}function cy(e,t){qt(e,ww,t)}const ly=1.5;function D3(e,t){const n=Re(e),r=Ns(),s=n.start_timestamp;return!(r-s>ly||t&&r-t<=ly)}const Cw=["activate","mount"],Tw=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,F3=/(?:^|[-_])(\w)/g,$3=e=>e.replace(F3,t=>t.toUpperCase()).replace(/[-_]/g,""),B3="<Root>",ju="<Anonymous>",H3=(e,t)=>e.repeat(t),Io=(e,t)=>{if(!e)return ju;if(e.$root===e)return B3;if(!e.$options)return ju;const n=e.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${$3(r)}>`:ju)+(s&&t!==!1?` at ${s}`:"")},V3=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return`
|
||
|
||
found in
|
||
|
||
${t.map((s,i)=>`${(i===0?"---> ":H3(" ",5+i*2))+(Array.isArray(s)?`${Io(s[0])}... (${s[1]} recursive calls)`:Io(s))}`).join(`
|
||
`)}`}return`
|
||
|
||
(found in ${Io(e)})`},U3=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,s,i)=>{var l;const o=Io(s,!1),a=s?V3(s):"",c={componentName:o,lifecycleHook:i,trace:a};if((t==null?void 0:t.attachProps)!==!1&&s&&((l=s.$options)!=null&&l.propsData?c.propsData=s.$options.propsData:s.$props&&(c.propsData=s.$props)),setTimeout(()=>{Pl(r,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,s,i);else throw r}},uy="ui.vue",W3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function zu(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{var r;(r=e.$root)!=null&&r.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function j3(e,t){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(s=>n(t)===n(s))}const z3=(e={})=>{const t=(e.hooks||[]).concat(Cw).filter((s,i,o)=>o.indexOf(s)===i),n={},r=e.timeout||2e3;for(const s of t){const i=W3[s];if(!i){Tw&&J.warn(`Unknown hook: ${s}`);continue}for(const o of i)n[o]=function(){var f;const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Vr({name:"Application Render",op:`${uy}.render`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0}),zu(this,lt(),r));const c=Io(this,!1);if(!(a||(Array.isArray(e.trackComponents)?j3(e.trackComponents,c):e.trackComponents))){zu(this,lt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=o===i[0],u=((f=this.$root)==null?void 0:f.$_sentryRootComponentSpan)||Tt();if(d){if(u){const h=this.$_sentryComponentSpans[s];h&&h.end(),this.$_sentryComponentSpans[s]=Vr({name:`Vue ${c}`,op:`${uy}.${s}`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0})}}else{const h=this.$_sentryComponentSpans[s];if(!h)return;h.end(),zu(this,lt(),r)}}}return n},q3=xe,G3={Vue:q3.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:Cw,timeout:2e3,trackComponents:!1}},K3="Vue",Y3=(e={})=>({name:K3,setup(t){const n={...G3,...t.getOptions(),...e};if(!n.Vue&&!n.app){_r(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(s=>dy(s,n)):n.Vue&&dy(n.Vue,n)}}),dy=(e,t)=>{var n;Tw&&((n=e._instance)==null?void 0:n.isMounted)===!0&&_r(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&U3(e,t),fn(t)&&e.mixin(z3(t.tracingOptions))};function X3(e={}){const t={defaultIntegrations:[...RE(),Y3()],...e};return D0(t,"vue"),N$(t)}function J3(e,t,n){let r=!1;e.onError(s=>Pl(s,{mechanism:{handled:!1}})),e.beforeEach((s,i,o)=>{const a=r?void 0:Z3(),c={};for(const u of Object.keys(s.params))c[`url.path.parameter.${u}`]=s.params[u],c[`params.${u}`]=s.params[u];for(const u of Object.keys(s.query)){const f=s.query[u];f&&(c[`query.${u}`]=f)}let l=s.path,d="url";if(s.name&&t.routeLabel!=="path")l=s.name.toString(),d="custom";else if(s.matched.length>0){const u=s.matched.length-1;l=s.matched[u].path,d="route"}Pe().setTransactionName(l),t.instrumentPageLoad&&a&&(Re(a).data[jt]!=="custom"&&(a.updateName(l),a.setAttribute(jt,d)),a.setAttributes({...c,[st]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!a&&n({name:l,op:"navigation",attributes:{...c,[st]:"auto.navigation.vue",[jt]:d}}),o&&o()})}function Z3(){const e=Tt(),t=e&&wt(e);return t&&Re(t).op==="pageload"?t:void 0}function Q3(e={}){if(!e.router)return iy(e);const t=iy({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),J3(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{Ew(o,c)})}}}const e4=Tb(),Xi=YC(jA);let is=null;X3({app:Xi,dsn:"https://c7f4eeab1055a53941738c36868bc2df@report.houlang.cloud/4",sendDefaultPii:!0,integrations:[Q3({router:wl}),m3({maskAllText:!1,blockAllMedia:!1}),is=tD({autoInject:!1,colorScheme:"system",showBranding:!1,showName:!0,showEmail:!0,isNameRequired:!1,isEmailRequired:!1,useSentryUser:{name:"username",email:"email"},themeDark:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"},themeLight:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"}})],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https?:\/\/cs\.(houlang\.cloud|houlangs\.com)/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,enableLogs:!0,beforeSend(e){return e}});OS().then(e=>{sO({id:e,username:e}),rO("fingerprint",e),console.log("Sentry 用户标识已设置:",e)}).catch(e=>{console.warn("设置 Sentry 用户标识失败:",e)});window.openSentryFeedback=()=>{try{if(!is)return console.warn("Sentry Feedback integration 未初始化"),!1;if(typeof is.createWidget=="function"){const e=is.createWidget();if(e&&typeof e.open=="function")return e.open(),console.log("Sentry Feedback 对话框已打开"),!0}return typeof is.openDialog=="function"?(is.openDialog(),console.log("Sentry Feedback 对话框已打开"),!0):(console.warn("无法找到打开 Feedback 的方法"),console.log("可用方法:",Object.keys(is)),!1)}catch(e){return console.error("打开 Sentry Feedback 时出错:",e),!1}};window.startSentryReplay=()=>{try{const e=Ee();if(!e)return console.warn("Sentry 客户端未初始化"),!1;const n=(e.getOptions().integrations||[]).find(r=>r&&r.name==="Replay");return n&&typeof n.start=="function"?(n.start(),console.log("Sentry Replay 已手动启动"),!0):(console.warn("无法找到 Sentry Replay integration"),!1)}catch(e){return console.error("启动 Sentry Replay 时出错:",e),!1}};Sx(Xi);Xi.use(Ys);Xi.use(e4);Xi.component("GlobalMessage",lS);Xi.mount("#app");document.readyState==="complete"?fy():window.addEventListener("load",fy,{once:!0});async function fy(){try{const e=(await yt(async()=>{const{default:r}=await import("./index-ghQi_28l.js");return{default:r}},[],import.meta.url)).default;e.init("rhp8uqoc3l");const n=await OS();console.log("Visitor ID:",n),e.identify(n),e.setTag("fingerprintjs",n)}catch(e){console.warn("Clarity 加载或标识设置失败:",e)}}try{const e=()=>{document.body.classList.add("app-loaded");const t=document.getElementById("app-loader");t&&setTimeout(()=>t.remove(),220)};document.readyState==="complete"||document.readyState==="interactive"?e():window.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}export{kn as $,bn as A,L4 as B,A_ as C,td as D,Ze as E,Qe as F,M1 as G,lA as H,ws as I,Af as J,vS as K,Bc as L,uS as M,i4 as N,s4 as O,FA as P,Td as Q,Ym as R,Wo as S,Mf as T,$4 as U,WA as V,F4 as W,Wk as X,YR as Y,zr as Z,Hb as _,wA as a,Qs as a$,IS as a0,kS as a1,we as a2,j as a3,pt as a4,Ex as a5,wx as a6,x4 as a7,A4 as a8,R4 as a9,As as aA,bi as aB,li as aC,ss as aD,ud as aE,uR as aF,Bi as aG,th as aH,yl as aI,me as aJ,Ms as aK,Lf as aL,od as aM,t4 as aN,Bf as aO,OS as aP,V4 as aQ,H4 as aR,et as aS,m4 as aT,RA as aU,oT as aV,un as aW,v4 as aX,gs as aY,iT as aZ,Et as a_,Kx as aa,gr as ab,xx as ac,yt as ad,Se as ae,n4 as af,zb as ag,Ut as ah,tA as ai,VR as aj,Tr as ak,og as al,pS as am,$c as an,P4 as ao,M4 as ap,ek as aq,er as ar,Nf as as,u4 as at,cS as au,ee as av,vt as aw,h4 as ax,f4 as ay,be as az,tt as b,o4 as b$,yo as b0,E4 as b1,S4 as b2,hn as b3,G_ as b4,ag as b5,ad as b6,sa as b7,N4 as b8,Hk as b9,tR as bA,AR as bB,I4 as bC,hi as bD,em as bE,RR as bF,k4 as bG,C4 as bH,Fi as bI,fl as bJ,Ys as bK,ui as bL,l4 as bM,y4 as bN,Le as bO,OR as bP,PR as bQ,Bx as bR,$x as bS,Mt as bT,Hx as bU,Fx as bV,Y_ as bW,c4 as bX,mt as bY,b4 as bZ,Oi as b_,Ct as ba,d4 as bb,cr as bc,aA as bd,yr as be,bb as bf,Yf as bg,Xp as bh,iS as bi,nn as bj,vr as bk,kl as bl,n_ as bm,nh as bn,mn as bo,aa as bp,oa as bq,Br as br,kx as bs,Rx as bt,Ax as bu,TR as bv,CR as bw,rT as bx,Di as by,$i as bz,B as c,Ts as c0,id as c1,p4 as c2,Gb as c3,Zx as c4,qb as c5,bt as c6,de as c7,Fn as c8,Sf as c9,r4 as cA,T4 as cB,Tl as cC,Zf as cD,B4 as cE,Qf as cF,Gr as cG,bf as cH,ml as cI,tb as cJ,$r as cK,O4 as cL,VT as ca,Lo as cb,T1 as cc,jf as cd,a4 as ce,Ps as cf,Cl as cg,Jf as ch,Xf as ci,wR as cj,i_ as ck,sT as cl,_o as cm,oA as cn,Z_ as co,g4 as cp,_4 as cq,MA as cr,VA as cs,a_ as ct,la as cu,ca as cv,qr as cw,w4 as cx,j_ as cy,D4 as cz,Oe as d,Vi as e,Hi as f,Fe as g,ct as h,se as i,$n as j,Gf as k,cg as l,Pt as m,Xe as n,cn as o,le as p,dS as q,A1 as r,Tx as s,Un as t,nI as u,co as v,gt as w,fA as x,tS as y,wd as z};
|