Files
yourpart3/frontend/public/assets/index-C2z2YL6l.js
Torsten Schulz (local) e168adeb51 feat(match3): Erweiterung der Match3-Admin-Funktionalitäten und -Modelle
- Implementierung neuer Endpunkte für die Verwaltung von Match3-Kampagnen, Levels, Objectives und Tile-Typen im Admin-Bereich.
- Anpassung der Admin-Services zur Unterstützung von Benutzerberechtigungen und Fehlerbehandlung.
- Einführung von neuen Modellen und Assoziationen für Match3-Levels und Tile-Typen in der Datenbank.
- Verbesserung der Internationalisierung für Match3-spezifische Texte in Deutsch und Englisch.
- Aktualisierung der Frontend-Routen und -Komponenten zur Verwaltung von Match3-Inhalten.
2025-08-23 06:00:29 +02:00

380 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();/**
* @vue/shared v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function sp(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const Lt={},Ao=[],Fi=()=>{},tD=()=>!1,Ld=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ap=e=>e.startsWith("onUpdate:"),$n=Object.assign,op=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nD=Object.prototype.hasOwnProperty,vt=(e,t)=>nD.call(e,t),qe=Array.isArray,xo=e=>Ou(e)==="[object Map]",el=e=>Ou(e)==="[object Set]",Fy=e=>Ou(e)==="[object Date]",Qe=e=>typeof e=="function",Jt=e=>typeof e=="string",Sr=e=>typeof e=="symbol",At=e=>e!==null&&typeof e=="object",PS=e=>(At(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),OS=Object.prototype.toString,Ou=e=>OS.call(e),iD=e=>Ou(e).slice(8,-1),MS=e=>Ou(e)==="[object Object]",lp=e=>Jt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nl=sp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rD=/-(\w)/g,Ii=Nd(e=>e.replace(rD,(t,n)=>n?n.toUpperCase():"")),sD=/\B([A-Z])/g,zs=Nd(e=>e.replace(sD,"-$1").toLowerCase()),Ar=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),uh=Nd(e=>e?`on${Ar(e)}`:""),Ns=(e,t)=>!Object.is(e,t),$c=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$S=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},ed=e=>{const t=parseFloat(e);return isNaN(t)?e:t},aD=e=>{const t=Jt(e)?Number(e):NaN;return isNaN(t)?e:t};let By;const VS=()=>By||(By=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ft(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=Jt(i)?cD(i):ft(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(Jt(e)||At(e))return e}const oD=/;(?![^(]*\))/g,lD=/:([^]+)/,uD=/\/\*[^]*?\*\//g;function cD(e){const t={};return e.replace(uD,"").split(oD).forEach(n=>{if(n){const i=n.split(lD);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Dt(e){let t="";if(Jt(e))t=e;else if(qe(e))for(let n=0;n<e.length;n++){const i=Dt(e[n]);i&&(t+=i+" ")}else if(At(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const dD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fD=sp(dD);function LS(e){return!!e||e===""}function hD(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Aa(e[i],t[i]);return n}function Aa(e,t){if(e===t)return!0;let n=Fy(e),i=Fy(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Sr(e),i=Sr(t),n||i)return e===t;if(n=qe(e),i=qe(t),n||i)return n&&i?hD(e,t):!1;if(n=At(e),i=At(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const a in e){const o=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(o&&!l||!o&&l||!Aa(e[a],t[a]))return!1}}return String(e)===String(t)}function up(e,t){return e.findIndex(n=>Aa(n,t))}const NS=e=>!!(e&&e.__v_isRef===!0),p=e=>Jt(e)?e:e==null?"":qe(e)||At(e)&&(e.toString===OS||!Qe(e.toString))?NS(e)?p(e.value):JSON.stringify(e,RS,2):String(e),RS=(e,t)=>NS(t)?RS(e,t.value):xo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[ch(i,s)+" =>"]=r,n),{})}:el(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ch(n))}:Sr(t)?ch(t):At(t)&&!qe(t)&&!MS(t)?String(t):t,ch=(e,t="")=>{var n;return Sr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let wi;class FS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=wi,!t&&wi&&(this.index=(wi.scopes||(wi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=wi;try{return wi=this,t()}finally{wi=n}}}on(){wi=this}off(){wi=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Mu(e){return new FS(e)}function mD(e,t=wi){t&&t.active&&t.effects.push(e)}function gD(){return wi}function qn(e){wi&&wi.cleanups.push(e)}let pa;class cp{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,mD(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Us();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(pD(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ws()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xs,n=pa;try{return xs=!0,pa=this,this._runnings++,zy(this),this.fn()}finally{Uy(this),this._runnings--,pa=n,xs=t}}stop(){this.active&&(zy(this),Uy(this),this.onStop&&this.onStop(),this.active=!1)}}function pD(e){return e.value}function zy(e){e._trackId++,e._depsLength=0}function Uy(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)BS(e.deps[t],e);e.deps.length=e._depsLength}}function BS(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let xs=!0,pm=0;const zS=[];function Us(){zS.push(xs),xs=!1}function Ws(){const e=zS.pop();xs=e===void 0?!0:e}function dp(){pm++}function fp(){for(pm--;!pm&&vm.length;)vm.shift()()}function US(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&BS(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const vm=[];function WS(e,t,n){dp();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&vm.push(i.scheduler)))}fp()}const HS=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},td=new WeakMap,va=Symbol(""),ym=Symbol("");function mi(e,t,n){if(xs&&pa){let i=td.get(e);i||td.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=HS(()=>i.delete(n))),US(pa,r)}}function qr(e,t,n,i,r,s){const a=td.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&qe(e)){const l=Number(i);a.forEach((u,c)=>{(c==="length"||!Sr(c)&&c>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":qe(e)?lp(n)&&o.push(a.get("length")):(o.push(a.get(va)),xo(e)&&o.push(a.get(ym)));break;case"delete":qe(e)||(o.push(a.get(va)),xo(e)&&o.push(a.get(ym)));break;case"set":xo(e)&&o.push(a.get(va));break}dp();for(const l of o)l&&WS(l,4);fp()}function vD(e,t){const n=td.get(e);return n&&n.get(t)}const yD=sp("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Sr)),Wy=bD();function bD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ke(this);for(let s=0,a=this.length;s<a;s++)mi(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(Ke)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Us(),dp();const i=Ke(this)[t].apply(this,n);return fp(),Ws(),i}}),e}function kD(e){Sr(e)||(e=String(e));const t=Ke(this);return mi(t,"has",e),t.hasOwnProperty(e)}class GS{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?MD:JS:s?YS:KS).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const a=qe(t);if(!r){if(a&&vt(Wy,n))return Reflect.get(Wy,n,i);if(n==="hasOwnProperty")return kD}const o=Reflect.get(t,n,i);return(Sr(n)?jS.has(n):yD(n))||(r||mi(t,"get",n),s)?o:Ut(o)?a&&lp(n)?o:o.value:At(o)?r?$u(o):dn(o):o}}class qS extends GS{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const l=xa(s);if(!Vo(i)&&!xa(i)&&(s=Ke(s),i=Ke(i)),!qe(t)&&Ut(s)&&!Ut(i))return l?!1:(s.value=i,!0)}const a=qe(t)&&lp(n)?Number(n)<t.length:vt(t,n),o=Reflect.set(t,n,i,r);return t===Ke(r)&&(a?Ns(i,s)&&qr(t,"set",n,i):qr(t,"add",n,i)),o}deleteProperty(t,n){const i=vt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&i&&qr(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!Sr(n)||!jS.has(n))&&mi(t,"has",n),i}ownKeys(t){return mi(t,"iterate",qe(t)?"length":va),Reflect.ownKeys(t)}}class wD extends GS{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const SD=new qS,_D=new wD,CD=new qS(!0);const hp=e=>e,Rd=e=>Reflect.getPrototypeOf(e);function sc(e,t,n=!1,i=!1){e=e.__v_raw;const r=Ke(e),s=Ke(t);n||(Ns(t,s)&&mi(r,"get",t),mi(r,"get",s));const{has:a}=Rd(r),o=i?hp:n?vp:Jl;if(a.call(r,t))return o(e.get(t));if(a.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function ac(e,t=!1){const n=this.__v_raw,i=Ke(n),r=Ke(e);return t||(Ns(e,r)&&mi(i,"has",e),mi(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function oc(e,t=!1){return e=e.__v_raw,!t&&mi(Ke(e),"iterate",va),Reflect.get(e,"size",e)}function Hy(e,t=!1){!t&&!Vo(e)&&!xa(e)&&(e=Ke(e));const n=Ke(this);return Rd(n).has.call(n,e)||(n.add(e),qr(n,"add",e,e)),this}function jy(e,t,n=!1){!n&&!Vo(t)&&!xa(t)&&(t=Ke(t));const i=Ke(this),{has:r,get:s}=Rd(i);let a=r.call(i,e);a||(e=Ke(e),a=r.call(i,e));const o=s.call(i,e);return i.set(e,t),a?Ns(t,o)&&qr(i,"set",e,t):qr(i,"add",e,t),this}function Gy(e){const t=Ke(this),{has:n,get:i}=Rd(t);let r=n.call(t,e);r||(e=Ke(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&qr(t,"delete",e,void 0),s}function qy(){const e=Ke(this),t=e.size!==0,n=e.clear();return t&&qr(e,"clear",void 0,void 0),n}function lc(e,t){return function(i,r){const s=this,a=s.__v_raw,o=Ke(a),l=t?hp:e?vp:Jl;return!e&&mi(o,"iterate",va),a.forEach((u,c)=>i.call(r,l(u),l(c),s))}}function uc(e,t,n){return function(...i){const r=this.__v_raw,s=Ke(r),a=xo(s),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...i),c=n?hp:t?vp:Jl;return!t&&mi(s,"iterate",l?ym:va),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:o?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function TD(){const e={get(s){return sc(this,s)},get size(){return oc(this)},has:ac,add:Hy,set:jy,delete:Gy,clear:qy,forEach:lc(!1,!1)},t={get(s){return sc(this,s,!1,!0)},get size(){return oc(this)},has:ac,add(s){return Hy.call(this,s,!0)},set(s,a){return jy.call(this,s,a,!0)},delete:Gy,clear:qy,forEach:lc(!1,!0)},n={get(s){return sc(this,s,!0)},get size(){return oc(this,!0)},has(s){return ac.call(this,s,!0)},add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear"),forEach:lc(!0,!1)},i={get(s){return sc(this,s,!0,!0)},get size(){return oc(this,!0)},has(s){return ac.call(this,s,!0)},add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear"),forEach:lc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=uc(s,!1,!1),n[s]=uc(s,!0,!1),t[s]=uc(s,!1,!0),i[s]=uc(s,!0,!0)}),[e,n,t,i]}const[ED,ID,AD,xD]=TD();function mp(e,t){const n=t?e?xD:AD:e?ID:ED;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(vt(n,r)&&r in i?n:i,r,s)}const DD={get:mp(!1,!1)},PD={get:mp(!1,!0)},OD={get:mp(!0,!1)};const KS=new WeakMap,YS=new WeakMap,JS=new WeakMap,MD=new WeakMap;function $D(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function VD(e){return e.__v_skip||!Object.isExtensible(e)?0:$D(iD(e))}function dn(e){return xa(e)?e:gp(e,!1,SD,DD,KS)}function XS(e){return gp(e,!1,CD,PD,YS)}function $u(e){return gp(e,!0,_D,OD,JS)}function gp(e,t,n,i,r){if(!At(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const a=VD(e);if(a===0)return e;const o=new Proxy(e,a===2?i:n);return r.set(e,o),o}function Rl(e){return xa(e)?Rl(e.__v_raw):!!(e&&e.__v_isReactive)}function xa(e){return!!(e&&e.__v_isReadonly)}function Vo(e){return!!(e&&e.__v_isShallow)}function ZS(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function pp(e){return Object.isExtensible(e)&&$S(e,"__v_skip",!0),e}const Jl=e=>At(e)?dn(e):e,vp=e=>At(e)?$u(e):e;class QS{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cp(()=>t(this._value),()=>Fl(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=Ke(this);return(!t._cacheable||t.effect.dirty)&&Ns(t._value,t._value=t.effect.run())&&Fl(t,4),yp(t),t.effect._dirtyLevel>=2&&Fl(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function LD(e,t,n=!1){let i,r;const s=Qe(e);return s?(i=e,r=Fi):(i=e.get,r=e.set),new QS(i,r,s||!r,n)}function yp(e){var t;xs&&pa&&(e=Ke(e),US(pa,(t=e.dep)!=null?t:e.dep=HS(()=>e.dep=void 0,e instanceof QS?e:void 0)))}function Fl(e,t=4,n,i){e=Ke(e);const r=e.dep;r&&WS(r,t)}function Ut(e){return!!(e&&e.__v_isRef===!0)}function ke(e){return e0(e,!1)}function Ae(e){return e0(e,!0)}function e0(e,t){return Ut(e)?e:new ND(e,t)}class ND{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ke(t),this._value=n?t:Jl(t)}get value(){return yp(this),this._value}set value(t){const n=this.__v_isShallow||Vo(t)||xa(t);t=n?t:Ke(t),Ns(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Jl(t),Fl(this,4))}}function qt(e){return Ut(e)?e.value:e}const RD={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function t0(e){return Rl(e)?e:new Proxy(e,RD)}class FD{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>yp(this),()=>Fl(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function BD(e){return new FD(e)}function Ha(e){const t=qe(e)?new Array(e.length):{};for(const n in e)t[n]=n0(e,n);return t}class zD{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vD(Ke(this._object),this._key)}}class UD{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function se(e,t,n){return Ut(e)?e:Qe(e)?new UD(e):At(e)&&arguments.length>1?n0(e,t,n):ke(e)}function n0(e,t,n){const i=e[t];return Ut(i)?i:new zD(e,t,n)}/**
* @vue/runtime-core v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ds(e,t,n,i){try{return i?e(...i):e()}catch(r){Fd(r,t,n)}}function Ui(e,t,n,i){if(Qe(e)){const r=Ds(e,t,n,i);return r&&PS(r)&&r.catch(s=>{Fd(s,t,n)}),r}if(qe(e)){const r=[];for(let s=0;s<e.length;s++)r.push(Ui(e[s],t,n,i));return r}}function Fd(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const a=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,a,o)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){Us(),Ds(l,null,10,[e,a,o]),Ws();return}}WD(e,n,r,i)}function WD(e,t,n,i=!0){console.error(e)}let Xl=!1,bm=!1;const Un=[];let yr=0;const Do=[];let vs=null,sa=0;const i0=Promise.resolve();let bp=null;function ct(e){const t=bp||i0;return e?t.then(this?e.bind(this):e):t}function HD(e){let t=yr+1,n=Un.length;for(;t<n;){const i=t+n>>>1,r=Un[i],s=Zl(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function kp(e){(!Un.length||!Un.includes(e,Xl&&e.allowRecurse?yr+1:yr))&&(e.id==null?Un.push(e):Un.splice(HD(e.id),0,e),r0())}function r0(){!Xl&&!bm&&(bm=!0,bp=i0.then(a0))}function jD(e){const t=Un.indexOf(e);t>yr&&Un.splice(t,1)}function GD(e){qe(e)?Do.push(...e):(!vs||!vs.includes(e,e.allowRecurse?sa+1:sa))&&Do.push(e),r0()}function Ky(e,t,n=Xl?yr+1:0){for(;n<Un.length;n++){const i=Un[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Un.splice(n,1),n--,i()}}}function s0(e){if(Do.length){const t=[...new Set(Do)].sort((n,i)=>Zl(n)-Zl(i));if(Do.length=0,vs){vs.push(...t);return}for(vs=t,sa=0;sa<vs.length;sa++){const n=vs[sa];n.active!==!1&&n()}vs=null,sa=0}}const Zl=e=>e.id==null?1/0:e.id,qD=(e,t)=>{const n=Zl(e)-Zl(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function a0(e){bm=!1,Xl=!0,Un.sort(qD);try{for(yr=0;yr<Un.length;yr++){const t=Un[yr];t&&t.active!==!1&&Ds(t,t.i,t.i?15:14)}}finally{yr=0,Un.length=0,s0(),Xl=!1,bp=null,(Un.length||Do.length)&&a0()}}let yn=null,Bd=null;function nd(e){const t=yn;return yn=e,Bd=e&&e.type.__scopeId||null,t}function Cn(e){Bd=e}function Tn(){Bd=null}function ze(e,t=yn,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&ob(-1);const s=nd(t);let a;try{a=e(...r)}finally{nd(s),i._d&&ob(1)}return a};return i._n=!0,i._c=!0,i._d=!0,i}function ie(e,t){if(yn===null)return e;const n=qd(yn),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,a,o,l=Lt]=t[r];s&&(Qe(s)&&(s={mounted:s,updated:s}),s.deep&&_s(a),i.push({dir:s,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Qs(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];s&&(o.oldValue=s[a].value);let l=o.dir[i];l&&(Us(),Ui(l,n,8,[e.el,o,e,t]),Ws())}}const ys=Symbol("_leaveCb"),cc=Symbol("_enterCb");function o0(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return En(()=>{e.isMounted=!0}),an(()=>{e.isUnmounting=!0}),e}const $i=[Function,Array],l0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$i,onEnter:$i,onAfterEnter:$i,onEnterCancelled:$i,onBeforeLeave:$i,onLeave:$i,onAfterLeave:$i,onLeaveCancelled:$i,onBeforeAppear:$i,onAppear:$i,onAfterAppear:$i,onAppearCancelled:$i},u0=e=>{const t=e.subTree;return t.component?u0(t.component):t},KD={name:"BaseTransition",props:l0,setup(e,{slots:t}){const n=Xr(),i=o0();return()=>{const r=t.default&&wp(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const h of r)if(h.type!==Qn){s=h;break}}const a=Ke(e),{mode:o}=a;if(i.isLeaving)return dh(s);const l=Yy(s);if(!l)return dh(s);let u=Ql(l,a,i,n,h=>u=h);Lo(l,u);const c=n.subTree,f=c&&Yy(c);if(f&&f.type!==Qn&&!aa(l,f)&&u0(n).type!==Qn){const h=Ql(f,a,i,n);if(Lo(f,h),o==="out-in"&&l.type!==Qn)return i.isLeaving=!0,h.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},dh(s);o==="in-out"&&l.type!==Qn&&(h.delayLeave=(m,g,y)=>{const b=c0(i,f);b[String(f.key)]=f,m[ys]=()=>{g(),m[ys]=void 0,delete u.delayedLeave},u.delayedLeave=y})}return s}}},YD=KD;function c0(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Ql(e,t,n,i,r){const{appear:s,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:y,onBeforeAppear:b,onAppear:k,onAfterAppear:w,onAppearCancelled:E}=t,I=String(e.key),D=c0(n,e),x=(C,$)=>{C&&Ui(C,i,9,$)},P=(C,$)=>{const O=$[1];x(C,$),qe(C)?C.every(M=>M.length<=1)&&O():C.length<=1&&O()},A={mode:a,persisted:o,beforeEnter(C){let $=l;if(!n.isMounted)if(s)$=b||l;else return;C[ys]&&C[ys](!0);const O=D[I];O&&aa(e,O)&&O.el[ys]&&O.el[ys](),x($,[C])},enter(C){let $=u,O=c,M=f;if(!n.isMounted)if(s)$=k||u,O=w||c,M=E||f;else return;let F=!1;const z=C[cc]=re=>{F||(F=!0,re?x(M,[C]):x(O,[C]),A.delayedLeave&&A.delayedLeave(),C[cc]=void 0)};$?P($,[C,z]):z()},leave(C,$){const O=String(e.key);if(C[cc]&&C[cc](!0),n.isUnmounting)return $();x(h,[C]);let M=!1;const F=C[ys]=z=>{M||(M=!0,$(),z?x(y,[C]):x(g,[C]),C[ys]=void 0,D[O]===e&&delete D[O])};D[O]=e,m?P(m,[C,F]):F()},clone(C){const $=Ql(C,t,n,i,r);return r&&r($),$}};return A}function dh(e){if(zd(e))return e=Jr(e),e.children=null,e}function Yy(e){if(!zd(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Qe(n.default))return n.default()}}function Lo(e,t){e.shapeFlag&6&&e.component?Lo(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 wp(e,t=!1,n){let i=[],r=0;for(let s=0;s<e.length;s++){let a=e[s];const o=n==null?a.key:String(n)+String(a.key!=null?a.key:s);a.type===U?(a.patchFlag&128&&r++,i=i.concat(wp(a.children,t,o))):(t||a.type!==Qn)&&i.push(o!=null?Jr(a,{key:o}):a)}if(r>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function ja(e,t){return Qe(e)?$n({name:e.name},t,{setup:e}):e}const Bl=e=>!!e.type.__asyncLoader,zd=e=>e.type.__isKeepAlive;function d0(e,t){f0(e,"a",t)}function Sp(e,t){f0(e,"da",t)}function f0(e,t,n=Mn){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ud(t,i,n),n){let r=n.parent;for(;r&&r.parent;)zd(r.parent.vnode)&&JD(i,t,n,r),r=r.parent}}function JD(e,t,n,i){const r=Ud(t,e,i,!0);Hd(()=>{op(i[t],r)},n)}function Ud(e,t,n=Mn,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Us();const o=Vu(n),l=Ui(t,n,e,a);return o(),Ws(),l});return i?r.unshift(s):r.push(s),s}}const ns=e=>(t,n=Mn)=>{(!Gd||e==="sp")&&Ud(e,(...i)=>t(...i),n)},Wd=ns("bm"),En=ns("m"),h0=ns("bu"),_p=ns("u"),an=ns("bum"),Hd=ns("um"),XD=ns("sp"),ZD=ns("rtg"),QD=ns("rtc");function eP(e,t=Mn){Ud("ec",e,t)}const Cp="components",tP="directives";function be(e,t){return Tp(Cp,e,!0,t)||e}const m0=Symbol.for("v-ndc");function g0(e){return Jt(e)?Tp(Cp,e,!1)||e:e||m0}function Ai(e){return Tp(tP,e)}function Tp(e,t,n=!0,i=!1){const r=yn||Mn;if(r){const s=r.type;if(e===Cp){const o=jP(s,!1);if(o&&(o===t||o===Ii(t)||o===Ar(Ii(t))))return s}const a=Jy(r[e]||s[e],t)||Jy(r.appContext[e],t);return!a&&i?s:a}}function Jy(e,t){return e&&(e[t]||e[Ii(t)]||e[Ar(Ii(t))])}function we(e,t,n,i){let r;const s=n;if(qe(e)||Jt(e)){r=new Array(e.length);for(let a=0,o=e.length;a<o;a++)r[a]=t(e[a],a,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,s)}else if(At(e))if(e[Symbol.iterator])r=Array.from(e,(a,o)=>t(a,o,void 0,s));else{const a=Object.keys(e);r=new Array(a.length);for(let o=0,l=a.length;o<l;o++){const u=a[o];r[o]=t(e[u],u,o,s)}}else r=[];return r}function xn(e,t,n={},i,r){if(yn.isCE||yn.parent&&Bl(yn.parent)&&yn.parent.isCE)return t!=="default"&&(n.name=t),v("slot",n,i&&i());let s=e[t];s&&s._c&&(s._d=!1),S();const a=s&&p0(s(n)),o=He(U,{key:(n.key||a&&a.key||`_${t}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),s&&s._c&&(s._d=!0),o}function p0(e){return e.some(t=>tu(t)?!(t.type===Qn||t.type===U&&!p0(t.children)):!0)?e:null}const km=e=>e?N0(e)?qd(e):km(e.parent):null,zl=$n(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=>km(e.parent),$root:e=>km(e.root),$emit:e=>e.emit,$options:e=>y0(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kp(e.update)}),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>EP.bind(e)}),fh=(e,t)=>e!==Lt&&!e.__isScriptSetup&&vt(e,t),nP={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:a,type:o,appContext:l}=e;let u;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(fh(i,t))return a[t]=1,i[t];if(r!==Lt&&vt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&vt(u,t))return a[t]=3,s[t];if(n!==Lt&&vt(n,t))return a[t]=4,n[t];wm&&(a[t]=0)}}const c=zl[t];let f,h;if(c)return t==="$attrs"&&mi(e.attrs,"get",""),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==Lt&&vt(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,vt(h,t))return h[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return fh(r,t)?(r[t]=n,!0):i!==Lt&&vt(i,t)?(i[t]=n,!0):vt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},a){let o;return!!n[a]||e!==Lt&&vt(e,a)||fh(t,a)||(o=s[0])&&vt(o,a)||vt(i,a)||vt(zl,a)||vt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:vt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Xy(e){return qe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wm=!0;function iP(e){const t=y0(e),n=e.proxy,i=e.ctx;wm=!1,t.beforeCreate&&Zy(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:k,beforeUnmount:w,destroyed:E,unmounted:I,render:D,renderTracked:x,renderTriggered:P,errorCaptured:A,serverPrefetch:C,expose:$,inheritAttrs:O,components:M,directives:F,filters:z}=t;if(u&&rP(u,i,null),a)for(const ve in a){const ye=a[ve];Qe(ye)&&(i[ve]=ye.bind(n))}if(r){const ve=r.call(n,n);At(ve)&&(e.data=dn(ve))}if(wm=!0,s)for(const ve in s){const ye=s[ve],Z=Qe(ye)?ye.bind(n,n):Qe(ye.get)?ye.get.bind(n,n):Fi,J=!Qe(ye)&&Qe(ye.set)?ye.set.bind(n):Fi,K=T({get:Z,set:J});Object.defineProperty(i,ve,{enumerable:!0,configurable:!0,get:()=>K.value,set:me=>K.value=me})}if(o)for(const ve in o)v0(o[ve],i,n,ve);if(l){const ve=Qe(l)?l.call(n):l;Reflect.ownKeys(ve).forEach(ye=>{kt(ye,ve[ye])})}c&&Zy(c,e,"c");function le(ve,ye){qe(ye)?ye.forEach(Z=>ve(Z.bind(n))):ye&&ve(ye.bind(n))}if(le(Wd,f),le(En,h),le(h0,m),le(_p,g),le(d0,y),le(Sp,b),le(eP,A),le(QD,x),le(ZD,P),le(an,w),le(Hd,I),le(XD,C),qe($))if($.length){const ve=e.exposed||(e.exposed={});$.forEach(ye=>{Object.defineProperty(ve,ye,{get:()=>n[ye],set:Z=>n[ye]=Z})})}else e.exposed||(e.exposed={});D&&e.render===Fi&&(e.render=D),O!=null&&(e.inheritAttrs=O),M&&(e.components=M),F&&(e.directives=F)}function rP(e,t,n=Fi){qe(e)&&(e=Sm(e));for(const i in e){const r=e[i];let s;At(r)?"default"in r?s=Ze(r.from||i,r.default,!0):s=Ze(r.from||i):s=Ze(r),Ut(s)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[i]=s}}function Zy(e,t,n){Ui(qe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function v0(e,t,n,i){const r=i.includes(".")?M0(n,i):()=>n[i];if(Jt(e)){const s=t[e];Qe(s)&&Ie(r,s)}else if(Qe(e))Ie(r,e.bind(n));else if(At(e))if(qe(e))e.forEach(s=>v0(s,t,n,i));else{const s=Qe(e.handler)?e.handler.bind(n):t[e.handler];Qe(s)&&Ie(r,s,e)}}function y0(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let l;return o?l=o:!r.length&&!n&&!i?l=t:(l={},r.length&&r.forEach(u=>id(l,u,a,!0)),id(l,t,a)),At(t)&&s.set(t,l),l}function id(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&id(e,s,n,!0),r&&r.forEach(a=>id(e,a,n,!0));for(const a in t)if(!(i&&a==="expose")){const o=sP[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const sP={data:Qy,props:eb,emits:eb,methods:Pl,computed:Pl,beforeCreate:Xn,created:Xn,beforeMount:Xn,mounted:Xn,beforeUpdate:Xn,updated:Xn,beforeDestroy:Xn,beforeUnmount:Xn,destroyed:Xn,unmounted:Xn,activated:Xn,deactivated:Xn,errorCaptured:Xn,serverPrefetch:Xn,components:Pl,directives:Pl,watch:oP,provide:Qy,inject:aP};function Qy(e,t){return t?e?function(){return $n(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function aP(e,t){return Pl(Sm(e),Sm(t))}function Sm(e){if(qe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xn(e,t){return e?[...new Set([].concat(e,t))]:t}function Pl(e,t){return e?$n(Object.create(null),e,t):t}function eb(e,t){return e?qe(e)&&qe(t)?[...new Set([...e,...t])]:$n(Object.create(null),Xy(e),Xy(t??{})):t}function oP(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const i in t)n[i]=Xn(e[i],t[i]);return n}function b0(){return{app:null,config:{isNativeTag:tD,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 lP=0;function uP(e,t){return function(i,r=null){Qe(i)||(i=$n({},i)),r!=null&&!At(r)&&(r=null);const s=b0(),a=new WeakSet;let o=!1;const l=s.app={_uid:lP++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:qP,get config(){return s.config},set config(u){},use(u,...c){return a.has(u)||(u&&Qe(u.install)?(a.add(u),u.install(l,...c)):Qe(u)&&(a.add(u),u(l,...c))),l},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),l},component(u,c){return c?(s.components[u]=c,l):s.components[u]},directive(u,c){return c?(s.directives[u]=c,l):s.directives[u]},mount(u,c,f){if(!o){const h=v(i,r);return h.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(h,u,f),o=!0,l._container=u,u.__vue_app__=l,qd(h.component)}},unmount(){o&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return s.provides[u]=c,l},runWithContext(u){const c=Po;Po=l;try{return u()}finally{Po=c}}};return l}}let Po=null;function kt(e,t){if(Mn){let n=Mn.provides;const i=Mn.parent&&Mn.parent.provides;i===n&&(n=Mn.provides=Object.create(i)),n[e]=t}}function Ze(e,t,n=!1){const i=Mn||yn;if(i||Po){const r=Po?Po._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Qe(t)?t.call(i&&i.proxy):t}}const k0={},w0=()=>Object.create(k0),S0=e=>Object.getPrototypeOf(e)===k0;function cP(e,t,n,i=!1){const r={},s=w0();e.propsDefaults=Object.create(null),_0(e,t,r,s);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=i?r:XS(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function dP(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:a}}=e,o=Ke(r),[l]=e.propsOptions;let u=!1;if((i||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(jd(e.emitsOptions,h))continue;const m=t[h];if(l)if(vt(s,h))m!==s[h]&&(s[h]=m,u=!0);else{const g=Ii(h);r[g]=_m(l,o,g,m,e,!1)}else m!==s[h]&&(s[h]=m,u=!0)}}}else{_0(e,t,r,s)&&(u=!0);let c;for(const f in o)(!t||!vt(t,f)&&((c=zs(f))===f||!vt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=_m(l,o,f,void 0,e,!0)):delete r[f]);if(s!==o)for(const f in s)(!t||!vt(t,f))&&(delete s[f],u=!0)}u&&qr(e.attrs,"set","")}function _0(e,t,n,i){const[r,s]=e.propsOptions;let a=!1,o;if(t)for(let l in t){if(Nl(l))continue;const u=t[l];let c;r&&vt(r,c=Ii(l))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:jd(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,a=!0)}if(s){const l=Ke(n),u=o||Lt;for(let c=0;c<s.length;c++){const f=s[c];n[f]=_m(r,l,f,u[f],e,!vt(u,f))}}return a}function _m(e,t,n,i,r,s){const a=e[n];if(a!=null){const o=vt(a,"default");if(o&&i===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Qe(l)){const{propsDefaults:u}=r;if(n in u)i=u[n];else{const c=Vu(r);i=u[n]=l.call(null,t),c()}}else i=l}a[0]&&(s&&!o?i=!1:a[1]&&(i===""||i===zs(n))&&(i=!0))}return i}const fP=new WeakMap;function C0(e,t,n=!1){const i=n?fP:t.propsCache,r=i.get(e);if(r)return r;const s=e.props,a={},o=[];let l=!1;if(!Qe(e)){const c=f=>{l=!0;const[h,m]=C0(f,t,!0);$n(a,h),m&&o.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return At(e)&&i.set(e,Ao),Ao;if(qe(s))for(let c=0;c<s.length;c++){const f=Ii(s[c]);tb(f)&&(a[f]=Lt)}else if(s)for(const c in s){const f=Ii(c);if(tb(f)){const h=s[c],m=a[f]=qe(h)||Qe(h)?{type:h}:$n({},h),g=m.type;let y=!1,b=!0;if(qe(g))for(let k=0;k<g.length;++k){const w=g[k],E=Qe(w)&&w.name;if(E==="Boolean"){y=!0;break}else E==="String"&&(b=!1)}else y=Qe(g)&&g.name==="Boolean";m[0]=y,m[1]=b,(y||vt(m,"default"))&&o.push(f)}}const u=[a,o];return At(e)&&i.set(e,u),u}function tb(e){return e[0]!=="$"&&!Nl(e)}const T0=e=>e[0]==="_"||e==="$stable",Ep=e=>qe(e)?e.map(vr):[vr(e)],hP=(e,t,n)=>{if(t._n)return t;const i=ze((...r)=>Ep(t(...r)),n);return i._c=!1,i},E0=(e,t,n)=>{const i=e._ctx;for(const r in e){if(T0(r))continue;const s=e[r];if(Qe(s))t[r]=hP(r,s,i);else if(s!=null){const a=Ep(s);t[r]=()=>a}}},I0=(e,t)=>{const n=Ep(t);e.slots.default=()=>n},A0=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},mP=(e,t,n)=>{const i=e.slots=w0();if(e.vnode.shapeFlag&32){const r=t._;r?(A0(i,t,n),n&&$S(i,"_",r,!0)):E0(t,i)}else t&&I0(e,t)},gP=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,a=Lt;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:A0(r,t,n):(s=!t.$stable,E0(t,r)),a=t}else t&&(I0(e,t),a={default:1});if(s)for(const o in r)!T0(o)&&a[o]==null&&delete r[o]};function Cm(e,t,n,i,r=!1){if(qe(e)){e.forEach((h,m)=>Cm(h,t&&(qe(t)?t[m]:t),n,i,r));return}if(Bl(i)&&!r)return;const s=i.shapeFlag&4?qd(i.component):i.el,a=r?null:s,{i:o,r:l}=e,u=t&&t.r,c=o.refs===Lt?o.refs={}:o.refs,f=o.setupState;if(u!=null&&u!==l&&(Jt(u)?(c[u]=null,vt(f,u)&&(f[u]=null)):Ut(u)&&(u.value=null)),Qe(l))Ds(l,o,12,[a,c]);else{const h=Jt(l),m=Ut(l);if(h||m){const g=()=>{if(e.f){const y=h?vt(f,l)?f[l]:c[l]:l.value;r?qe(y)&&op(y,s):qe(y)?y.includes(s)||y.push(s):h?(c[l]=[s],vt(f,l)&&(f[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else h?(c[l]=a,vt(f,l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(g.id=-1,ui(g,n)):g()}}}const x0=Symbol("_vte"),pP=e=>e.__isTeleport,Ul=e=>e&&(e.disabled||e.disabled===""),nb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ib=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tm=(e,t)=>{const n=e&&e.to;return Jt(n)?t?t(n):null:n},vP={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,s,a,o,l,u){const{mc:c,pc:f,pbc:h,o:{insert:m,querySelector:g,createText:y,createComment:b}}=u,k=Ul(t.props);let{shapeFlag:w,children:E,dynamicChildren:I}=t;if(e==null){const D=t.el=y(""),x=t.anchor=y("");m(D,n,i),m(x,n,i);const P=t.target=Tm(t.props,g),A=P0(P,t,y,m);P&&(a==="svg"||nb(P)?a="svg":(a==="mathml"||ib(P))&&(a="mathml"));const C=($,O)=>{w&16&&c(E,$,O,r,s,a,o,l)};k?C(n,x):P&&C(P,A)}else{t.el=e.el,t.targetStart=e.targetStart;const D=t.anchor=e.anchor,x=t.target=e.target,P=t.targetAnchor=e.targetAnchor,A=Ul(e.props),C=A?n:x,$=A?D:P;if(a==="svg"||nb(x)?a="svg":(a==="mathml"||ib(x))&&(a="mathml"),I?(h(e.dynamicChildren,I,C,r,s,a,o),Ip(e,t,!0)):l||f(e,t,C,$,r,s,a,o,!1),k)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):dc(t,n,D,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=Tm(t.props,g);O&&dc(t,O,null,u,0)}else A&&dc(t,x,P,u,1)}D0(t)},remove(e,t,n,{um:i,o:{remove:r}},s){const{shapeFlag:a,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;if(f&&(r(u),r(c)),s&&r(l),a&16){const m=s||!Ul(h);for(let g=0;g<o.length;g++){const y=o[g];i(y,t,n,m,!!y.dynamicChildren)}}},move:dc,hydrate:yP};function dc(e,t,n,{o:{insert:i},m:r},s=2){s===0&&i(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:u,props:c}=e,f=s===2;if(f&&i(a,t,n),(!f||Ul(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,n,2);f&&i(o,t,n)}function yP(e,t,n,i,r,s,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:u,createText:c}},f){const h=t.target=Tm(t.props,l);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Ul(t.props))t.anchor=f(a(e),t,o(e),n,i,r,s),t.targetStart=m,t.targetAnchor=m&&a(m);else{t.anchor=a(e);let g=m;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}g=a(g)}t.targetAnchor||P0(h,t,c,u),f(m&&a(m),t,h,n,i,r,s)}D0(t)}return t.anchor&&a(t.anchor)}const bP=vP;function D0(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function P0(e,t,n,i){const r=t.targetStart=n(""),s=t.targetAnchor=n("");return r[x0]=s,e&&(i(r,e),i(s,e)),s}const ui=$P;function kP(e){return wP(e)}function wP(e,t){const n=VS();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:m=Fi,insertStaticContent:g}=e,y=(N,V,B,Y=null,Q=null,ee=null,L=void 0,R=null,W=!!V.dynamicChildren)=>{if(N===V)return;N&&!aa(N,V)&&(Y=q(N),me(N,Q,ee,!0),N=null),V.patchFlag===-2&&(W=!1,V.dynamicChildren=null);const{type:ne,ref:Ce,shapeFlag:Te}=V;switch(ne){case tl:b(N,V,B,Y);break;case Qn:k(N,V,B,Y);break;case mh:N==null&&w(V,B,Y,L);break;case U:M(N,V,B,Y,Q,ee,L,R,W);break;default:Te&1?D(N,V,B,Y,Q,ee,L,R,W):Te&6?F(N,V,B,Y,Q,ee,L,R,W):(Te&64||Te&128)&&ne.process(N,V,B,Y,Q,ee,L,R,W,_e)}Ce!=null&&Q&&Cm(Ce,N&&N.ref,ee,V||N,!V)},b=(N,V,B,Y)=>{if(N==null)i(V.el=o(V.children),B,Y);else{const Q=V.el=N.el;V.children!==N.children&&u(Q,V.children)}},k=(N,V,B,Y)=>{N==null?i(V.el=l(V.children||""),B,Y):V.el=N.el},w=(N,V,B,Y)=>{[N.el,N.anchor]=g(N.children,V,B,Y,N.el,N.anchor)},E=({el:N,anchor:V},B,Y)=>{let Q;for(;N&&N!==V;)Q=h(N),i(N,B,Y),N=Q;i(V,B,Y)},I=({el:N,anchor:V})=>{let B;for(;N&&N!==V;)B=h(N),r(N),N=B;r(V)},D=(N,V,B,Y,Q,ee,L,R,W)=>{V.type==="svg"?L="svg":V.type==="math"&&(L="mathml"),N==null?x(V,B,Y,Q,ee,L,R,W):C(N,V,Q,ee,L,R,W)},x=(N,V,B,Y,Q,ee,L,R)=>{let W,ne;const{props:Ce,shapeFlag:Te,transition:H,dirs:ue}=N;if(W=N.el=a(N.type,ee,Ce&&Ce.is,Ce),Te&8?c(W,N.children):Te&16&&A(N.children,W,null,Y,Q,hh(N,ee),L,R),ue&&Qs(N,null,Y,"created"),P(W,N,N.scopeId,L,Y),Ce){for(const Je in Ce)Je!=="value"&&!Nl(Je)&&s(W,Je,null,Ce[Je],ee,Y);"value"in Ce&&s(W,"value",null,Ce.value,ee),(ne=Ce.onVnodeBeforeMount)&&hr(ne,Y,N)}ue&&Qs(N,null,Y,"beforeMount");const Ne=SP(Q,H);Ne&&H.beforeEnter(W),i(W,V,B),((ne=Ce&&Ce.onVnodeMounted)||Ne||ue)&&ui(()=>{ne&&hr(ne,Y,N),Ne&&H.enter(W),ue&&Qs(N,null,Y,"mounted")},Q)},P=(N,V,B,Y,Q)=>{if(B&&m(N,B),Y)for(let ee=0;ee<Y.length;ee++)m(N,Y[ee]);if(Q){let ee=Q.subTree;if(V===ee){const L=Q.vnode;P(N,L,L.scopeId,L.slotScopeIds,Q.parent)}}},A=(N,V,B,Y,Q,ee,L,R,W=0)=>{for(let ne=W;ne<N.length;ne++){const Ce=N[ne]=R?bs(N[ne]):vr(N[ne]);y(null,Ce,V,B,Y,Q,ee,L,R)}},C=(N,V,B,Y,Q,ee,L)=>{const R=V.el=N.el;let{patchFlag:W,dynamicChildren:ne,dirs:Ce}=V;W|=N.patchFlag&16;const Te=N.props||Lt,H=V.props||Lt;let ue;if(B&&ea(B,!1),(ue=H.onVnodeBeforeUpdate)&&hr(ue,B,V,N),Ce&&Qs(V,N,B,"beforeUpdate"),B&&ea(B,!0),(Te.innerHTML&&H.innerHTML==null||Te.textContent&&H.textContent==null)&&c(R,""),ne?$(N.dynamicChildren,ne,R,B,Y,hh(V,Q),ee):L||ye(N,V,R,null,B,Y,hh(V,Q),ee,!1),W>0){if(W&16)O(R,Te,H,B,Q);else if(W&2&&Te.class!==H.class&&s(R,"class",null,H.class,Q),W&4&&s(R,"style",Te.style,H.style,Q),W&8){const Ne=V.dynamicProps;for(let Je=0;Je<Ne.length;Je++){const rt=Ne[Je],zt=Te[rt],jt=H[rt];(jt!==zt||rt==="value")&&s(R,rt,zt,jt,Q,B)}}W&1&&N.children!==V.children&&c(R,V.children)}else!L&&ne==null&&O(R,Te,H,B,Q);((ue=H.onVnodeUpdated)||Ce)&&ui(()=>{ue&&hr(ue,B,V,N),Ce&&Qs(V,N,B,"updated")},Y)},$=(N,V,B,Y,Q,ee,L)=>{for(let R=0;R<V.length;R++){const W=N[R],ne=V[R],Ce=W.el&&(W.type===U||!aa(W,ne)||W.shapeFlag&70)?f(W.el):B;y(W,ne,Ce,null,Y,Q,ee,L,!0)}},O=(N,V,B,Y,Q)=>{if(V!==B){if(V!==Lt)for(const ee in V)!Nl(ee)&&!(ee in B)&&s(N,ee,V[ee],null,Q,Y);for(const ee in B){if(Nl(ee))continue;const L=B[ee],R=V[ee];L!==R&&ee!=="value"&&s(N,ee,R,L,Q,Y)}"value"in B&&s(N,"value",V.value,B.value,Q)}},M=(N,V,B,Y,Q,ee,L,R,W)=>{const ne=V.el=N?N.el:o(""),Ce=V.anchor=N?N.anchor:o("");let{patchFlag:Te,dynamicChildren:H,slotScopeIds:ue}=V;ue&&(R=R?R.concat(ue):ue),N==null?(i(ne,B,Y),i(Ce,B,Y),A(V.children||[],B,Ce,Q,ee,L,R,W)):Te>0&&Te&64&&H&&N.dynamicChildren?($(N.dynamicChildren,H,B,Q,ee,L,R),(V.key!=null||Q&&V===Q.subTree)&&Ip(N,V,!0)):ye(N,V,B,Ce,Q,ee,L,R,W)},F=(N,V,B,Y,Q,ee,L,R,W)=>{V.slotScopeIds=R,N==null?V.shapeFlag&512?Q.ctx.activate(V,B,Y,L,W):z(V,B,Y,Q,ee,L,W):re(N,V,W)},z=(N,V,B,Y,Q,ee,L)=>{const R=N.component=BP(N,Y,Q);if(zd(N)&&(R.ctx.renderer=_e),zP(R,!1,L),R.asyncDep){if(Q&&Q.registerDep(R,le,L),!N.el){const W=R.subTree=v(Qn);k(null,W,V,B)}}else le(R,N,V,B,Q,ee,L)},re=(N,V,B)=>{const Y=V.component=N.component;if(PP(N,V,B))if(Y.asyncDep&&!Y.asyncResolved){ve(Y,V,B);return}else Y.next=V,jD(Y.update),Y.effect.dirty=!0,Y.update();else V.el=N.el,Y.vnode=V},le=(N,V,B,Y,Q,ee,L)=>{const R=()=>{if(N.isMounted){let{next:Ce,bu:Te,u:H,parent:ue,vnode:Ne}=N;{const Zi=O0(N);if(Zi){Ce&&(Ce.el=Ne.el,ve(N,Ce,L)),Zi.asyncDep.then(()=>{N.isUnmounted||R()});return}}let Je=Ce,rt;ea(N,!1),Ce?(Ce.el=Ne.el,ve(N,Ce,L)):Ce=Ne,Te&&$c(Te),(rt=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&hr(rt,ue,Ce,Ne),ea(N,!0);const zt=sb(N),jt=N.subTree;N.subTree=zt,y(jt,zt,f(jt.el),q(jt),N,Q,ee),Ce.el=zt.el,Je===null&&OP(N,zt.el),H&&ui(H,Q),(rt=Ce.props&&Ce.props.onVnodeUpdated)&&ui(()=>hr(rt,ue,Ce,Ne),Q)}else{let Ce;const{el:Te,props:H}=V,{bm:ue,m:Ne,parent:Je}=N,rt=Bl(V);ea(N,!1),ue&&$c(ue),!rt&&(Ce=H&&H.onVnodeBeforeMount)&&hr(Ce,Je,V),ea(N,!0);{const zt=N.subTree=sb(N);y(null,zt,B,Y,N,Q,ee),V.el=zt.el}if(Ne&&ui(Ne,Q),!rt&&(Ce=H&&H.onVnodeMounted)){const zt=V;ui(()=>hr(Ce,Je,zt),Q)}(V.shapeFlag&256||Je&&Bl(Je.vnode)&&Je.vnode.shapeFlag&256)&&N.a&&ui(N.a,Q),N.isMounted=!0,V=B=Y=null}},W=N.effect=new cp(R,Fi,()=>kp(ne),N.scope),ne=N.update=()=>{W.dirty&&W.run()};ne.i=N,ne.id=N.uid,ea(N,!0),ne()},ve=(N,V,B)=>{V.component=N;const Y=N.vnode.props;N.vnode=V,N.next=null,dP(N,V.props,Y,B),gP(N,V.children,B),Us(),Ky(N),Ws()},ye=(N,V,B,Y,Q,ee,L,R,W=!1)=>{const ne=N&&N.children,Ce=N?N.shapeFlag:0,Te=V.children,{patchFlag:H,shapeFlag:ue}=V;if(H>0){if(H&128){J(ne,Te,B,Y,Q,ee,L,R,W);return}else if(H&256){Z(ne,Te,B,Y,Q,ee,L,R,W);return}}ue&8?(Ce&16&&oe(ne,Q,ee),Te!==ne&&c(B,Te)):Ce&16?ue&16?J(ne,Te,B,Y,Q,ee,L,R,W):oe(ne,Q,ee,!0):(Ce&8&&c(B,""),ue&16&&A(Te,B,Y,Q,ee,L,R,W))},Z=(N,V,B,Y,Q,ee,L,R,W)=>{N=N||Ao,V=V||Ao;const ne=N.length,Ce=V.length,Te=Math.min(ne,Ce);let H;for(H=0;H<Te;H++){const ue=V[H]=W?bs(V[H]):vr(V[H]);y(N[H],ue,B,null,Q,ee,L,R,W)}ne>Ce?oe(N,Q,ee,!0,!1,Te):A(V,B,Y,Q,ee,L,R,W,Te)},J=(N,V,B,Y,Q,ee,L,R,W)=>{let ne=0;const Ce=V.length;let Te=N.length-1,H=Ce-1;for(;ne<=Te&&ne<=H;){const ue=N[ne],Ne=V[ne]=W?bs(V[ne]):vr(V[ne]);if(aa(ue,Ne))y(ue,Ne,B,null,Q,ee,L,R,W);else break;ne++}for(;ne<=Te&&ne<=H;){const ue=N[Te],Ne=V[H]=W?bs(V[H]):vr(V[H]);if(aa(ue,Ne))y(ue,Ne,B,null,Q,ee,L,R,W);else break;Te--,H--}if(ne>Te){if(ne<=H){const ue=H+1,Ne=ue<Ce?V[ue].el:Y;for(;ne<=H;)y(null,V[ne]=W?bs(V[ne]):vr(V[ne]),B,Ne,Q,ee,L,R,W),ne++}}else if(ne>H)for(;ne<=Te;)me(N[ne],Q,ee,!0),ne++;else{const ue=ne,Ne=ne,Je=new Map;for(ne=Ne;ne<=H;ne++){const tn=V[ne]=W?bs(V[ne]):vr(V[ne]);tn.key!=null&&Je.set(tn.key,ne)}let rt,zt=0;const jt=H-Ne+1;let Zi=!1,us=0;const dr=new Array(jt);for(ne=0;ne<jt;ne++)dr[ne]=0;for(ne=ue;ne<=Te;ne++){const tn=N[ne];if(zt>=jt){me(tn,Q,ee,!0);continue}let oi;if(tn.key!=null)oi=Je.get(tn.key);else for(rt=Ne;rt<=H;rt++)if(dr[rt-Ne]===0&&aa(tn,V[rt])){oi=rt;break}oi===void 0?me(tn,Q,ee,!0):(dr[oi-Ne]=ne+1,oi>=us?us=oi:Zi=!0,y(tn,V[oi],B,null,Q,ee,L,R,W),zt++)}const Mi=Zi?_P(dr):Ao;for(rt=Mi.length-1,ne=jt-1;ne>=0;ne--){const tn=Ne+ne,oi=V[tn],oo=tn+1<Ce?V[tn+1].el:Y;dr[ne]===0?y(null,oi,B,oo,Q,ee,L,R,W):Zi&&(rt<0||ne!==Mi[rt]?K(oi,B,oo,2):rt--)}}},K=(N,V,B,Y,Q=null)=>{const{el:ee,type:L,transition:R,children:W,shapeFlag:ne}=N;if(ne&6){K(N.component.subTree,V,B,Y);return}if(ne&128){N.suspense.move(V,B,Y);return}if(ne&64){L.move(N,V,B,_e);return}if(L===U){i(ee,V,B);for(let Te=0;Te<W.length;Te++)K(W[Te],V,B,Y);i(N.anchor,V,B);return}if(L===mh){E(N,V,B);return}if(Y!==2&&ne&1&&R)if(Y===0)R.beforeEnter(ee),i(ee,V,B),ui(()=>R.enter(ee),Q);else{const{leave:Te,delayLeave:H,afterLeave:ue}=R,Ne=()=>i(ee,V,B),Je=()=>{Te(ee,()=>{Ne(),ue&&ue()})};H?H(ee,Ne,Je):Je()}else i(ee,V,B)},me=(N,V,B,Y=!1,Q=!1)=>{const{type:ee,props:L,ref:R,children:W,dynamicChildren:ne,shapeFlag:Ce,patchFlag:Te,dirs:H,cacheIndex:ue}=N;if(Te===-2&&(Q=!1),R!=null&&Cm(R,null,B,N,!0),ue!=null&&(V.renderCache[ue]=void 0),Ce&256){V.ctx.deactivate(N);return}const Ne=Ce&1&&H,Je=!Bl(N);let rt;if(Je&&(rt=L&&L.onVnodeBeforeUnmount)&&hr(rt,V,N),Ce&6)$e(N.component,B,Y);else{if(Ce&128){N.suspense.unmount(B,Y);return}Ne&&Qs(N,null,V,"beforeUnmount"),Ce&64?N.type.remove(N,V,B,_e,Y):ne&&!ne.hasOnce&&(ee!==U||Te>0&&Te&64)?oe(ne,V,B,!1,!0):(ee===U&&Te&384||!Q&&Ce&16)&&oe(W,V,B),Y&&xe(N)}(Je&&(rt=L&&L.onVnodeUnmounted)||Ne)&&ui(()=>{rt&&hr(rt,V,N),Ne&&Qs(N,null,V,"unmounted")},B)},xe=N=>{const{type:V,el:B,anchor:Y,transition:Q}=N;if(V===U){Me(B,Y);return}if(V===mh){I(N);return}const ee=()=>{r(B),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(N.shapeFlag&1&&Q&&!Q.persisted){const{leave:L,delayLeave:R}=Q,W=()=>L(B,ee);R?R(N.el,ee,W):W()}else ee()},Me=(N,V)=>{let B;for(;N!==V;)B=h(N),r(N),N=B;r(V)},$e=(N,V,B)=>{const{bum:Y,scope:Q,update:ee,subTree:L,um:R,m:W,a:ne}=N;rb(W),rb(ne),Y&&$c(Y),Q.stop(),ee&&(ee.active=!1,me(L,N,V,B)),R&&ui(R,V),ui(()=>{N.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},oe=(N,V,B,Y=!1,Q=!1,ee=0)=>{for(let L=ee;L<N.length;L++)me(N[L],V,B,Y,Q)},q=N=>{if(N.shapeFlag&6)return q(N.component.subTree);if(N.shapeFlag&128)return N.suspense.next();const V=h(N.anchor||N.el),B=V&&V[x0];return B?h(B):V};let de=!1;const Se=(N,V,B)=>{N==null?V._vnode&&me(V._vnode,null,null,!0):y(V._vnode||null,N,V,null,null,null,B),V._vnode=N,de||(de=!0,Ky(),s0(),de=!1)},_e={p:y,um:me,m:K,r:xe,mt:z,mc:A,pc:ye,pbc:$,n:q,o:e};return{render:Se,hydrate:void 0,createApp:uP(Se)}}function hh({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 ea({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function SP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ip(e,t,n=!1){const i=e.children,r=t.children;if(qe(i)&&qe(r))for(let s=0;s<i.length;s++){const a=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=bs(r[s]),o.el=a.el),!n&&o.patchFlag!==-2&&Ip(a,o)),o.type===tl&&(o.el=a.el)}}function _P(e){const t=e.slice(),n=[0];let i,r,s,a,o;const l=e.length;for(i=0;i<l;i++){const u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(s=0,a=n.length-1;s<a;)o=s+a>>1,e[n[o]]<u?s=o+1:a=o;u<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}function O0(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:O0(t)}function rb(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const CP=Symbol.for("v-scx"),TP=()=>Ze(CP);function Wt(e,t){return Ap(e,null,t)}const fc={};function Ie(e,t,n){return Ap(e,t,n)}function Ap(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:a,onTrigger:o}=Lt){if(t&&s){const x=t;t=(...P)=>{x(...P),D()}}const l=Mn,u=x=>i===!0?x:_s(x,i===!1?1:void 0);let c,f=!1,h=!1;if(Ut(e)?(c=()=>e.value,f=Vo(e)):Rl(e)?(c=()=>u(e),f=!0):qe(e)?(h=!0,f=e.some(x=>Rl(x)||Vo(x)),c=()=>e.map(x=>{if(Ut(x))return x.value;if(Rl(x))return u(x);if(Qe(x))return Ds(x,l,2)})):Qe(e)?t?c=()=>Ds(e,l,2):c=()=>(m&&m(),Ui(e,l,3,[g])):c=Fi,t&&i){const x=c;c=()=>_s(x())}let m,g=x=>{m=E.onStop=()=>{Ds(x,l,4),m=E.onStop=void 0}},y;if(Gd)if(g=Fi,t?n&&Ui(t,l,3,[c(),h?[]:void 0,g]):c(),r==="sync"){const x=TP();y=x.__watcherHandles||(x.__watcherHandles=[])}else return Fi;let b=h?new Array(e.length).fill(fc):fc;const k=()=>{if(!(!E.active||!E.dirty))if(t){const x=E.run();(i||f||(h?x.some((P,A)=>Ns(P,b[A])):Ns(x,b)))&&(m&&m(),Ui(t,l,3,[x,b===fc?void 0:h&&b[0]===fc?[]:b,g]),b=x)}else E.run()};k.allowRecurse=!!t;let w;r==="sync"?w=k:r==="post"?w=()=>ui(k,l&&l.suspense):(k.pre=!0,l&&(k.id=l.uid),w=()=>kp(k));const E=new cp(c,Fi,w),I=gD(),D=()=>{E.stop(),I&&op(I.effects,E)};return t?n?k():b=E.run():r==="post"?ui(E.run.bind(E),l&&l.suspense):E.run(),y&&y.push(D),D}function EP(e,t,n){const i=this.proxy,r=Jt(e)?e.includes(".")?M0(i,e):()=>i[e]:e.bind(i,i);let s;Qe(t)?s=t:(s=t.handler,n=t);const a=Vu(this),o=Ap(r,s.bind(i),n);return a(),o}function M0(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function _s(e,t=1/0,n){if(t<=0||!At(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ut(e))_s(e.value,t,n);else if(qe(e))for(let i=0;i<e.length;i++)_s(e[i],t,n);else if(el(e)||xo(e))e.forEach(i=>{_s(i,t,n)});else if(MS(e)){for(const i in e)_s(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&_s(e[i],t,n)}return e}const IP=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ii(t)}Modifiers`]||e[`${zs(t)}Modifiers`];function AP(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Lt;let r=n;const s=t.startsWith("update:"),a=s&&IP(i,t.slice(7));a&&(a.trim&&(r=n.map(c=>Jt(c)?c.trim():c)),a.number&&(r=n.map(ed)));let o,l=i[o=uh(t)]||i[o=uh(Ii(t))];!l&&s&&(l=i[o=uh(zs(t))]),l&&Ui(l,e,6,r);const u=i[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ui(u,e,6,r)}}function $0(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let a={},o=!1;if(!Qe(e)){const l=u=>{const c=$0(u,t,!0);c&&(o=!0,$n(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!o?(At(e)&&i.set(e,null),null):(qe(s)?s.forEach(l=>a[l]=null):$n(a,s),At(e)&&i.set(e,a),a)}function jd(e,t){return!e||!Ld(t)?!1:(t=t.slice(2).replace(/Once$/,""),vt(e,t[0].toLowerCase()+t.slice(1))||vt(e,zs(t))||vt(e,t))}function sb(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:a,attrs:o,emit:l,render:u,renderCache:c,props:f,data:h,setupState:m,ctx:g,inheritAttrs:y}=e,b=nd(e);let k,w;try{if(n.shapeFlag&4){const I=r||i,D=I;k=vr(u.call(D,I,c,f,m,h,g)),w=o}else{const I=t;k=vr(I.length>1?I(f,{attrs:o,slots:a,emit:l}):I(f,null)),w=t.props?o:xP(o)}}catch(I){Wl.length=0,Fd(I,e,1),k=v(Qn)}let E=k;if(w&&y!==!1){const I=Object.keys(w),{shapeFlag:D}=E;I.length&&D&7&&(s&&I.some(ap)&&(w=DP(w,s)),E=Jr(E,w,!1,!0))}return n.dirs&&(E=Jr(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),k=E,nd(b),k}const xP=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ld(n))&&((t||(t={}))[n]=e[n]);return t},DP=(e,t)=>{const n={};for(const i in e)(!ap(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function PP(e,t,n){const{props:i,children:r,component:s}=e,{props:a,children:o,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?ab(i,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==i[h]&&!jd(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===a?!1:i?a?ab(i,a,u):!0:!!a;return!1}function ab(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!jd(n,s))return!0}return!1}function OP({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const MP=e=>e.__isSuspense;function $P(e,t){t&&t.pendingBranch?qe(e)?t.effects.push(...e):t.effects.push(e):GD(e)}const U=Symbol.for("v-fgt"),tl=Symbol.for("v-txt"),Qn=Symbol.for("v-cmt"),mh=Symbol.for("v-stc"),Wl=[];let Ci=null;function S(e=!1){Wl.push(Ci=e?null:[])}function VP(){Wl.pop(),Ci=Wl[Wl.length-1]||null}let eu=1;function ob(e){eu+=e,e<0&&Ci&&(Ci.hasOnce=!0)}function V0(e){return e.dynamicChildren=eu>0?Ci||Ao:null,VP(),eu>0&&Ci&&Ci.push(e),e}function _(e,t,n,i,r,s){return V0(d(e,t,n,i,r,s,!0))}function He(e,t,n,i,r){return V0(v(e,t,n,i,r,!0))}function tu(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}const L0=({key:e})=>e??null,Vc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Jt(e)||Ut(e)||Qe(e)?{i:yn,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,i=0,r=null,s=e===U?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&L0(t),ref:t&&Vc(t),scopeId:Bd,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:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:yn};return o?(xp(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Jt(n)?8:16),eu>0&&!a&&Ci&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ci.push(l),l}const v=LP;function LP(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===m0)&&(e=Qn),tu(e)){const o=Jr(e,t,!0);return n&&xp(o,n),eu>0&&!s&&Ci&&(o.shapeFlag&6?Ci[Ci.indexOf(e)]=o:Ci.push(o)),o.patchFlag=-2,o}if(GP(e)&&(e=e.__vccOpts),t){t=NP(t);let{class:o,style:l}=t;o&&!Jt(o)&&(t.class=Dt(o)),At(l)&&(ZS(l)&&!qe(l)&&(l=$n({},l)),t.style=ft(l))}const a=Jt(e)?1:MP(e)?128:pP(e)?64:At(e)?4:Qe(e)?2:0;return d(e,t,n,i,r,a,s,!0)}function NP(e){return e?ZS(e)||S0(e)?$n({},e):e:null}function Jr(e,t,n=!1,i=!1){const{props:r,ref:s,patchFlag:a,children:o,transition:l}=e,u=t?fe(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&L0(u),ref:t&&t.ref?n&&s?qe(s)?s.concat(Vc(t)):[s,Vc(t)]:Vc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jr(e.ssContent),ssFallback:e.ssFallback&&Jr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Lo(c,l.clone(c)),c}function ge(e=" ",t=0){return v(tl,null,e,t)}function te(e="",t=!1){return t?(S(),He(Qn,null,e)):v(Qn,null,e)}function vr(e){return e==null||typeof e=="boolean"?v(Qn):qe(e)?v(U,null,e.slice()):typeof e=="object"?bs(e):v(tl,null,String(e))}function bs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jr(e)}function xp(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(qe(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),xp(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!S0(t)?t._ctx=yn:r===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:yn},n=32):(t=String(t),i&64?(n=16,t=[ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function fe(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Dt([t.class,i.class]));else if(r==="style")t.style=ft([t.style,i.style]);else if(Ld(r)){const s=t[r],a=i[r];a&&s!==a&&!(qe(s)&&s.includes(a))&&(t[r]=s?[].concat(s,a):a)}else r!==""&&(t[r]=i[r])}return t}function hr(e,t,n,i=null){Ui(e,t,7,[n,i])}const RP=b0();let FP=0;function BP(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||RP,s={uid:FP++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new FS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:C0(i,r),emitsOptions:$0(i,r),emit:null,emitted:null,propsDefaults:Lt,inheritAttrs:i.inheritAttrs,ctx:Lt,data:Lt,props:Lt,attrs:Lt,slots:Lt,refs:Lt,setupState:Lt,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=AP.bind(null,s),e.ce&&e.ce(s),s}let Mn=null;const Xr=()=>Mn||yn;let rd,Em;{const e=VS(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(a=>a(s)):r[0](s)}};rd=t("__VUE_INSTANCE_SETTERS__",n=>Mn=n),Em=t("__VUE_SSR_SETTERS__",n=>Gd=n)}const Vu=e=>{const t=Mn;return rd(e),e.scope.on(),()=>{e.scope.off(),rd(t)}},lb=()=>{Mn&&Mn.scope.off(),rd(null)};function N0(e){return e.vnode.shapeFlag&4}let Gd=!1;function zP(e,t=!1,n=!1){t&&Em(t);const{props:i,children:r}=e.vnode,s=N0(e);cP(e,i,s,t),mP(e,r,n);const a=s?UP(e,t):void 0;return t&&Em(!1),a}function UP(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nP);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?HP(e):null,s=Vu(e);Us();const a=Ds(i,e,0,[e.props,r]);if(Ws(),s(),PS(a)){if(a.then(lb,lb),t)return a.then(o=>{ub(e,o)}).catch(o=>{Fd(o,e,0)});e.asyncDep=a}else ub(e,a)}else R0(e)}function ub(e,t,n){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:At(t)&&(e.setupState=t0(t)),R0(e)}function R0(e,t,n){const i=e.type;e.render||(e.render=i.render||Fi);{const r=Vu(e);Us();try{iP(e)}finally{Ws(),r()}}}const WP={get(e,t){return mi(e,"get",""),e[t]}};function HP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,WP),slots:e.slots,emit:e.emit,expose:t}}function qd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(t0(pp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zl)return zl[n](e)},has(t,n){return n in t||n in zl}})):e.proxy}function jP(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function GP(e){return Qe(e)&&"__vccOpts"in e}const T=(e,t)=>LD(e,t,Gd);function pi(e,t,n){const i=arguments.length;return i===2?At(t)&&!qe(t)?tu(t)?v(e,null,[t]):v(e,t):v(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&tu(n)&&(n=[n]),v(e,t,n))}const qP="3.4.38";/**
* @vue/runtime-dom v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const KP="http://www.w3.org/2000/svg",YP="http://www.w3.org/1998/Math/MathML",zr=typeof document<"u"?document:null,cb=zr&&zr.createElement("template"),JP={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t==="svg"?zr.createElementNS(KP,e):t==="mathml"?zr.createElementNS(YP,e):n?zr.createElement(e,{is:n}):zr.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>zr.createTextNode(e),createComment:e=>zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const a=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{cb.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=cb.content;if(i==="svg"||i==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ds="transition",pl="animation",No=Symbol("_vtc"),ji=(e,{slots:t})=>pi(YD,B0(e),t);ji.displayName="Transition";const F0={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},XP=ji.props=$n({},l0,F0),ta=(e,t=[])=>{qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},db=e=>e?qe(e)?e.some(t=>t.length>1):e.length>1:!1;function B0(e){const t={};for(const M in e)M in F0||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=a,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=ZP(r),y=g&&g[0],b=g&&g[1],{onBeforeEnter:k,onEnter:w,onEnterCancelled:E,onLeave:I,onLeaveCancelled:D,onBeforeAppear:x=k,onAppear:P=w,onAppearCancelled:A=E}=t,C=(M,F,z)=>{gs(M,F?c:o),gs(M,F?u:a),z&&z()},$=(M,F)=>{M._isLeaving=!1,gs(M,f),gs(M,m),gs(M,h),F&&F()},O=M=>(F,z)=>{const re=M?P:w,le=()=>C(F,M,z);ta(re,[F,le]),fb(()=>{gs(F,M?l:s),Fr(F,M?c:o),db(re)||hb(F,i,y,le)})};return $n(t,{onBeforeEnter(M){ta(k,[M]),Fr(M,s),Fr(M,a)},onBeforeAppear(M){ta(x,[M]),Fr(M,l),Fr(M,u)},onEnter:O(!1),onAppear:O(!0),onLeave(M,F){M._isLeaving=!0;const z=()=>$(M,F);Fr(M,f),Fr(M,h),U0(),fb(()=>{M._isLeaving&&(gs(M,f),Fr(M,m),db(I)||hb(M,i,b,z))}),ta(I,[M,z])},onEnterCancelled(M){C(M,!1),ta(E,[M])},onAppearCancelled(M){C(M,!0),ta(A,[M])},onLeaveCancelled(M){$(M),ta(D,[M])}})}function ZP(e){if(e==null)return null;if(At(e))return[gh(e.enter),gh(e.leave)];{const t=gh(e);return[t,t]}}function gh(e){return aD(e)}function Fr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[No]||(e[No]=new Set)).add(t)}function gs(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[No];n&&(n.delete(t),n.size||(e[No]=void 0))}function fb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let QP=0;function hb(e,t,n,i){const r=e._endId=++QP,s=()=>{r===e._endId&&i()};if(n)return setTimeout(s,n);const{type:a,timeout:o,propCount:l}=z0(e,t);if(!a)return i();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),s()},h=m=>{m.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,h)}function z0(e,t){const n=window.getComputedStyle(e),i=g=>(n[g]||"").split(", "),r=i(`${ds}Delay`),s=i(`${ds}Duration`),a=mb(r,s),o=i(`${pl}Delay`),l=i(`${pl}Duration`),u=mb(o,l);let c=null,f=0,h=0;t===ds?a>0&&(c=ds,f=a,h=s.length):t===pl?u>0&&(c=pl,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?ds:pl:null,h=c?c===ds?s.length:l.length:0);const m=c===ds&&/\b(transform|all)(,|$)/.test(i(`${ds}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:m}}function mb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>gb(n)+gb(e[i])))}function gb(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function U0(){return document.body.offsetHeight}function eO(e,t,n){const i=e[No];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sd=Symbol("_vod"),W0=Symbol("_vsh"),vn={beforeMount(e,{value:t},{transition:n}){e[sd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),vl(e,!0),i.enter(e)):i.leave(e,()=>{vl(e,!1)}):vl(e,t))},beforeUnmount(e,{value:t}){vl(e,t)}};function vl(e,t){e.style.display=t?e[sd]:"none",e[W0]=!t}const tO=Symbol(""),nO=/(^|;)\s*display\s*:/;function iO(e,t,n){const i=e.style,r=Jt(n);let s=!1;if(n&&!r){if(t)if(Jt(t))for(const a of t.split(";")){const o=a.slice(0,a.indexOf(":")).trim();n[o]==null&&Lc(i,o,"")}else for(const a in t)n[a]==null&&Lc(i,a,"");for(const a in n)a==="display"&&(s=!0),Lc(i,a,n[a])}else if(r){if(t!==n){const a=i[tO];a&&(n+=";"+a),i.cssText=n,s=nO.test(n)}}else t&&e.removeAttribute("style");sd in e&&(e[sd]=s?i.display:"",e[W0]&&(i.display="none"))}const pb=/\s*!important$/;function Lc(e,t,n){if(qe(n))n.forEach(i=>Lc(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=rO(e,t);pb.test(n)?e.setProperty(zs(i),n.replace(pb,""),"important"):e[i]=n}}const vb=["Webkit","Moz","ms"],ph={};function rO(e,t){const n=ph[t];if(n)return n;let i=Ii(t);if(i!=="filter"&&i in e)return ph[t]=i;i=Ar(i);for(let r=0;r<vb.length;r++){const s=vb[r]+i;if(s in e)return ph[t]=s}return t}const yb="http://www.w3.org/1999/xlink";function bb(e,t,n,i,r,s=fD(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(yb,t.slice(6,t.length)):e.setAttributeNS(yb,t,n):n==null||s&&!LS(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Sr(n)?String(n):n)}function sO(e,t,n,i){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?"":String(n);(a!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=LS(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Wr(e,t,n,i){e.addEventListener(t,n,i)}function aO(e,t,n,i){e.removeEventListener(t,n,i)}const kb=Symbol("_vei");function oO(e,t,n,i,r=null){const s=e[kb]||(e[kb]={}),a=s[t];if(i&&a)a.value=i;else{const[o,l]=lO(t);if(i){const u=s[t]=dO(i,r);Wr(e,o,u,l)}else a&&(aO(e,o,a,l),s[t]=void 0)}}const wb=/(?:Once|Passive|Capture)$/;function lO(e){let t;if(wb.test(e)){t={};let i;for(;i=e.match(wb);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):zs(e.slice(2)),t]}let vh=0;const uO=Promise.resolve(),cO=()=>vh||(uO.then(()=>vh=0),vh=Date.now());function dO(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ui(fO(i,n.value),t,5,[i])};return n.value=e,n.attached=cO(),n}function fO(e,t){if(qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Sb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hO=(e,t,n,i,r,s)=>{const a=r==="svg";t==="class"?eO(e,i,a):t==="style"?iO(e,n,i):Ld(t)?ap(t)||oO(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mO(e,t,i,a))?(sO(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bb(e,t,i,a,s,t!=="value")):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),bb(e,t,i,a))};function mO(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sb(t)&&Qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Sb(t)&&Jt(n)?!1:t in e}const H0=new WeakMap,j0=new WeakMap,ad=Symbol("_moveCb"),_b=Symbol("_enterCb"),G0={name:"TransitionGroup",props:$n({},XP,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xr(),i=o0();let r,s;return _p(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!bO(r[0].el,n.vnode.el,a))return;r.forEach(pO),r.forEach(vO);const o=r.filter(yO);U0(),o.forEach(l=>{const u=l.el,c=u.style;Fr(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[ad]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[ad]=null,gs(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=Ke(e),o=B0(a);let l=a.tag||U;if(r=[],s)for(let u=0;u<s.length;u++){const c=s[u];c.el&&c.el instanceof Element&&(r.push(c),Lo(c,Ql(c,o,i,n)),H0.set(c,c.el.getBoundingClientRect()))}s=t.default?wp(t.default()):[];for(let u=0;u<s.length;u++){const c=s[u];c.key!=null&&Lo(c,Ql(c,o,i,n))}return v(l,null,s)}}},gO=e=>delete e.mode;G0.props;const Dp=G0;function pO(e){const t=e.el;t[ad]&&t[ad](),t[_b]&&t[_b]()}function vO(e){j0.set(e,e.el.getBoundingClientRect())}function yO(e){const t=H0.get(e),n=j0.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${i}px,${r}px)`,s.transitionDuration="0s",e}}function bO(e,t,n){const i=e.cloneNode(),r=e[No];r&&r.forEach(o=>{o.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(i);const{hasTransform:a}=z0(i);return s.removeChild(i),a}const Rs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qe(t)?n=>$c(t,n):t};function kO(e){e.target.composing=!0}function Cb(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wi=Symbol("_assign"),Le={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Wi]=Rs(r);const s=i||r.props&&r.props.type==="number";Wr(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=ed(o)),e[Wi](o)}),n&&Wr(e,"change",()=>{e.value=e.value.trim()}),t||(Wr(e,"compositionstart",kO),Wr(e,"compositionend",Cb),Wr(e,"change",Cb))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:r,number:s}},a){if(e[Wi]=Rs(a),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?ed(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||r&&e.value.trim()===l)||(e.value=l))}},Nt={deep:!0,created(e,t,n){e[Wi]=Rs(n),Wr(e,"change",()=>{const i=e._modelValue,r=Ro(e),s=e.checked,a=e[Wi];if(qe(i)){const o=up(i,r),l=o!==-1;if(s&&!l)a(i.concat(r));else if(!s&&l){const u=[...i];u.splice(o,1),a(u)}}else if(el(i)){const o=new Set(i);s?o.add(r):o.delete(r),a(o)}else a(q0(e,s))})},mounted:Tb,beforeUpdate(e,t,n){e[Wi]=Rs(n),Tb(e,t,n)}};function Tb(e,{value:t,oldValue:n},i){e._modelValue=t,qe(t)?e.checked=up(t,i.props.value)>-1:el(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Aa(t,q0(e,!0)))}const Eb={created(e,{value:t},n){e.checked=Aa(t,n.props.value),e[Wi]=Rs(n),Wr(e,"change",()=>{e[Wi](Ro(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Wi]=Rs(i),t!==n&&(e.checked=Aa(t,i.props.value))}},Et={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=el(t);Wr(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?ed(Ro(a)):Ro(a));e[Wi](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,ct(()=>{e._assigning=!1})}),e[Wi]=Rs(i)},mounted(e,{value:t,modifiers:{number:n}}){Ib(e,t)},beforeUpdate(e,t,n){e[Wi]=Rs(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ib(e,t)}};function Ib(e,t,n){const i=e.multiple,r=qe(t);if(!(i&&!r&&!el(t))){for(let s=0,a=e.options.length;s<a;s++){const o=e.options[s],l=Ro(o);if(i)if(r){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=up(t,l)>-1}else o.selected=t.has(l);else if(Aa(Ro(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ro(e){return"_value"in e?e._value:e.value}function q0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wO=["ctrl","shift","alt","meta"],SO={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)=>wO.some(n=>e[`${n}Key`]&&!t.includes(n))},ut=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(r,...s)=>{for(let a=0;a<t.length;a++){const o=SO[t[a]];if(o&&o(r,t))return}return e(r,...s)})},_O={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ci=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=r=>{if(!("key"in r))return;const s=zs(r.key);if(t.some(a=>a===s||_O[a]===s))return e(r)})},CO=$n({patchProp:hO},JP);let Ab;function K0(){return Ab||(Ab=kP(CO))}const Y0=(...e)=>{K0().render(...e)},TO=(...e)=>{const t=K0().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=IO(i);if(!r)return;const s=t._component;!Qe(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,EO(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function EO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function IO(e){return Jt(e)?document.querySelector(e):e}function AO(){return J0().__VUE_DEVTOOLS_GLOBAL_HOOK__}function J0(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const xO=typeof Proxy=="function",DO="devtools-plugin:setup",PO="plugin:settings:set";let co,Im;function OO(){var e;return co!==void 0||(typeof window<"u"&&window.performance?(co=!0,Im=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(co=!0,Im=globalThis.perf_hooks.performance):co=!1),co}function MO(){return OO()?Im.now():Date.now()}class $O{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const i={};if(t.settings)for(const a in t.settings){const o=t.settings[a];i[a]=o.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},i);try{const a=localStorage.getItem(r),o=JSON.parse(a);Object.assign(s,o)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch{}s=a},now(){return MO()}},n&&n.on(PO,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...l)=>{this.onQueue.push({method:o,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...l)=>(this.targetQueue.push({method:o,args:l,resolve:()=>{}}),this.fallbacks[o](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:o,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function VO(e,t){const n=e,i=J0(),r=AO(),s=xO&&n.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(DO,e,t);else{const a=s?new $O(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var LO="store";function nl(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function X0(e){return e!==null&&typeof e=="object"}function NO(e){return e&&typeof e.then=="function"}function RO(e,t){return function(){return e(t)}}function Z0(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function Q0(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Kd(e,n,[],e._modules.root,!0),Pp(e,n,t)}function Pp(e,t,n){var i=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,a={},o={},l=Mu(!0);l.run(function(){nl(s,function(u,c){a[c]=RO(u,e),o[c]=T(function(){return a[c]()}),Object.defineProperty(e.getters,c,{get:function(){return o[c].value},enumerable:!0})})}),e._state=dn({data:t}),e._scope=l,e.strict&&WO(e),i&&n&&e._withCommit(function(){i.data=null}),r&&r.stop()}function Kd(e,t,n,i,r){var s=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!s&&!r){var o=Op(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){o[l]=i.state})}var u=i.context=FO(e,a,n);i.forEachMutation(function(c,f){var h=a+f;BO(e,h,c,u)}),i.forEachAction(function(c,f){var h=c.root?f:a+f,m=c.handler||c;zO(e,h,m,u)}),i.forEachGetter(function(c,f){var h=a+f;UO(e,h,c,u)}),i.forEachChild(function(c,f){Kd(e,t,n.concat(f),c,r)})}function FO(e,t,n){var i=t==="",r={dispatch:i?e.dispatch:function(s,a,o){var l=od(s,a,o),u=l.payload,c=l.options,f=l.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,u)},commit:i?e.commit:function(s,a,o){var l=od(s,a,o),u=l.payload,c=l.options,f=l.type;(!c||!c.root)&&(f=t+f),e.commit(f,u,c)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return e_(e,t)}},state:{get:function(){return Op(e.state,n)}}}),r}function e_(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,i)===t){var s=r.slice(i);Object.defineProperty(n,s,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function BO(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(a){n.call(e,i.state,a)})}function zO(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(a){var o=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},a);return NO(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):o})}function UO(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(s){return n(i.state,i.getters,s.state,s.getters)})}function WO(e){Ie(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Op(e,t){return t.reduce(function(n,i){return n[i]},e)}function od(e,t,n){return X0(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var HO="vuex bindings",xb="vuex:mutations",yh="vuex:actions",fo="vuex",jO=0;function GO(e,t){VO({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[HO]},function(n){n.addTimelineLayer({id:xb,label:"Vuex Mutations",color:Db}),n.addTimelineLayer({id:yh,label:"Vuex Actions",color:Db}),n.addInspector({id:fo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(i){if(i.app===e&&i.inspectorId===fo)if(i.filter){var r=[];r_(r,t._modules.root,i.filter,""),i.rootNodes=r}else i.rootNodes=[i_(t._modules.root,"")]}),n.on.getInspectorState(function(i){if(i.app===e&&i.inspectorId===fo){var r=i.nodeId;e_(t,r),i.state=YO(XO(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(i){if(i.app===e&&i.inspectorId===fo){var r=i.nodeId,s=i.path;r!=="root"&&(s=r.split("/").filter(Boolean).concat(s)),t._withCommit(function(){i.set(t._state.data,s,i.state.value)})}}),t.subscribe(function(i,r){var s={};i.payload&&(s.payload=i.payload),s.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(fo),n.sendInspectorState(fo),n.addTimelineEvent({layerId:xb,event:{time:Date.now(),title:i.type,data:s}})}),t.subscribeAction({before:function(i,r){var s={};i.payload&&(s.payload=i.payload),i._id=jO++,i._time=Date.now(),s.state=r,n.addTimelineEvent({layerId:yh,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:s}})},after:function(i,r){var s={},a=Date.now()-i._time;s.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},i.payload&&(s.payload=i.payload),s.state=r,n.addTimelineEvent({layerId:yh,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:s}})}})})}var Db=8702998,qO=6710886,KO=16777215,t_={label:"namespaced",textColor:KO,backgroundColor:qO};function n_(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function i_(e,t){return{id:t||"root",label:n_(t),tags:e.namespaced?[t_]:[],children:Object.keys(e._children).map(function(n){return i_(e._children[n],t+n+"/")})}}function r_(e,t,n,i){i.includes(n)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[t_]:[]}),Object.keys(t._children).forEach(function(r){r_(e,t._children[r],n,i+r+"/")})}function YO(e,t,n){t=n==="root"?t:t[n];var i=Object.keys(t),r={state:Object.keys(e.state).map(function(a){return{key:a,editable:!0,value:e.state[a]}})};if(i.length){var s=JO(t);r.getters=Object.keys(s).map(function(a){return{key:a.endsWith("/")?n_(a):a,editable:!1,value:Am(function(){return s[a]})}})}return r}function JO(e){var t={};return Object.keys(e).forEach(function(n){var i=n.split("/");if(i.length>1){var r=t,s=i.pop();i.forEach(function(a){r[a]||(r[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),r=r[a]._custom.value}),r[s]=Am(function(){return e[n]})}else t[n]=Am(function(){return e[n]})}),t}function XO(e,t){var n=t.split("/").filter(function(i){return i});return n.reduce(function(i,r,s){var a=i[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return s===n.length-1?a:a._children},t==="root"?e:e.root._children)}function Am(e){try{return e()}catch(t){return t}}var ar=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=(typeof i=="function"?i():i)||{}},s_={namespaced:{configurable:!0}};s_.namespaced.get=function(){return!!this._rawModule.namespaced};ar.prototype.addChild=function(t,n){this._children[t]=n};ar.prototype.removeChild=function(t){delete this._children[t]};ar.prototype.getChild=function(t){return this._children[t]};ar.prototype.hasChild=function(t){return t in this._children};ar.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ar.prototype.forEachChild=function(t){nl(this._children,t)};ar.prototype.forEachGetter=function(t){this._rawModule.getters&&nl(this._rawModule.getters,t)};ar.prototype.forEachAction=function(t){this._rawModule.actions&&nl(this._rawModule.actions,t)};ar.prototype.forEachMutation=function(t){this._rawModule.mutations&&nl(this._rawModule.mutations,t)};Object.defineProperties(ar.prototype,s_);var Ga=function(t){this.register([],t,!1)};Ga.prototype.get=function(t){return t.reduce(function(n,i){return n.getChild(i)},this.root)};Ga.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(i,r){return n=n.getChild(r),i+(n.namespaced?r+"/":"")},"")};Ga.prototype.update=function(t){a_([],this.root,t)};Ga.prototype.register=function(t,n,i){var r=this;i===void 0&&(i=!0);var s=new ar(n,i);if(t.length===0)this.root=s;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],s)}n.modules&&nl(n.modules,function(o,l){r.register(t.concat(l),o,i)})};Ga.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),i=t[t.length-1],r=n.getChild(i);r&&r.runtime&&n.removeChild(i)};Ga.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),i=t[t.length-1];return n?n.hasChild(i):!1};function a_(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return;a_(e.concat(i),t.getChild(i),n.modules[i])}}function ZO(e){return new vi(e)}var vi=function(t){var n=this;t===void 0&&(t={});var i=t.plugins;i===void 0&&(i=[]);var r=t.strict;r===void 0&&(r=!1);var s=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ga(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var a=this,o=this,l=o.dispatch,u=o.commit;this.dispatch=function(h,m){return l.call(a,h,m)},this.commit=function(h,m,g){return u.call(a,h,m,g)},this.strict=r;var c=this._modules.root.state;Kd(this,c,[],this._modules.root),Pp(this,c),i.forEach(function(f){return f(n)})},Mp={state:{configurable:!0}};vi.prototype.install=function(t,n){t.provide(n||LO,this),t.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&GO(t,this)};Mp.state.get=function(){return this._state.data};Mp.state.set=function(e){};vi.prototype.commit=function(t,n,i){var r=this,s=od(t,n,i),a=s.type,o=s.payload,l={type:a,payload:o},u=this._mutations[a];u&&(this._withCommit(function(){u.forEach(function(f){f(o)})}),this._subscribers.slice().forEach(function(c){return c(l,r.state)}))};vi.prototype.dispatch=function(t,n){var i=this,r=od(t,n),s=r.type,a=r.payload,o={type:s,payload:a},l=this._actions[s];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(o,i.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(a)})):l[0](a);return new Promise(function(c,f){u.then(function(h){try{i._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(o,i.state)})}catch{}c(h)},function(h){try{i._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(o,i.state,h)})}catch{}f(h)})})}};vi.prototype.subscribe=function(t,n){return Z0(t,this._subscribers,n)};vi.prototype.subscribeAction=function(t,n){var i=typeof t=="function"?{before:t}:t;return Z0(i,this._actionSubscribers,n)};vi.prototype.watch=function(t,n,i){var r=this;return Ie(function(){return t(r.state,r.getters)},n,Object.assign({},i))};vi.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};vi.prototype.registerModule=function(t,n,i){i===void 0&&(i={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Kd(this,this.state,t,this._modules.get(t),i.preserveState),Pp(this,this.state)};vi.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var i=Op(n.state,t.slice(0,-1));delete i[t[t.length-1]]}),Q0(this)};vi.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};vi.prototype.hotUpdate=function(t){this._modules.update(t),Q0(this,!0)};vi.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(vi.prototype,Mp);var or=Vp(function(e,t){var n={};return $p(t).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){var o=this.$store.state,l=this.$store.getters;if(e){var u=Lp(this.$store,"mapState",e);if(!u)return;o=u.context.state,l=u.context.getters}return typeof s=="function"?s.call(this,o,l):o[s]},n[r].vuex=!0}),n}),Rn=Vp(function(e,t){var n={};return $p(t).forEach(function(i){var r=i.key,s=i.val;s=e+s,n[r]=function(){if(!(e&&!Lp(this.$store,"mapGetters",e)))return this.$store.getters[s]},n[r].vuex=!0}),n}),il=Vp(function(e,t){var n={};return $p(t).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var u=this.$store.dispatch;if(e){var c=Lp(this.$store,"mapActions",e);if(!c)return;u=c.context.dispatch}return typeof s=="function"?s.apply(this,[u].concat(o)):u.apply(this.$store,[s].concat(o))}}),n});function $p(e){return QO(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function QO(e){return Array.isArray(e)||X0(e)}function Vp(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Lp(e,t,n){var i=e._modulesNamespaceMap[n];return i}const eM="/images/logos/logo.png",Oe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},tM={name:"AppHeader"},o_=e=>(Cn("data-v-32848333"),e=e(),Tn(),e),nM=o_(()=>d("div",{class:"logo"},[d("img",{src:eM})],-1)),iM=o_(()=>d("div",{class:"advertisement"},"Advertisement",-1)),rM=[nM,iM];function sM(e,t,n,i,r,s){return S(),_("header",null,rM)}const aM=Oe(tM,[["render",sM],["__scopeId","data-v-32848333"]]);function l_(e,t){return function(){return e.apply(t,arguments)}}const{toString:oM}=Object.prototype,{getPrototypeOf:Np}=Object,{iterator:Yd,toStringTag:u_}=Symbol,Jd=(e=>t=>{const n=oM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lr=e=>(e=e.toLowerCase(),t=>Jd(t)===e),Xd=e=>t=>typeof t===e,{isArray:rl}=Array,nu=Xd("undefined");function lM(e){return e!==null&&!nu(e)&&e.constructor!==null&&!nu(e.constructor)&&di(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const c_=lr("ArrayBuffer");function uM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&c_(e.buffer),t}const cM=Xd("string"),di=Xd("function"),d_=Xd("number"),Zd=e=>e!==null&&typeof e=="object",dM=e=>e===!0||e===!1,Nc=e=>{if(Jd(e)!=="object")return!1;const t=Np(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(u_ in e)&&!(Yd in e)},fM=lr("Date"),hM=lr("File"),mM=lr("Blob"),gM=lr("FileList"),pM=e=>Zd(e)&&di(e.pipe),vM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||di(e.append)&&((t=Jd(e))==="formdata"||t==="object"&&di(e.toString)&&e.toString()==="[object FormData]"))},yM=lr("URLSearchParams"),[bM,kM,wM,SM]=["ReadableStream","Request","Response","Headers"].map(lr),_M=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),rl(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let o;for(i=0;i<a;i++)o=s[i],t.call(null,e[o],o,e)}}function f_(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,h_=e=>!nu(e)&&e!==ua;function xm(){const{caseless:e}=h_(this)&&this||{},t={},n=(i,r)=>{const s=e&&f_(t,r)||r;Nc(t[s])&&Nc(i)?t[s]=xm(t[s],i):Nc(i)?t[s]=xm({},i):rl(i)?t[s]=i.slice():t[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Lu(arguments[i],n);return t}const CM=(e,t,n,{allOwnKeys:i}={})=>(Lu(t,(r,s)=>{n&&di(r)?e[s]=l_(r,n):e[s]=r},{allOwnKeys:i}),e),TM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),EM=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},IM=(e,t,n,i)=>{let r,s,a;const o={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!i||i(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=n!==!1&&Np(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},AM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},xM=e=>{if(!e)return null;if(rl(e))return e;let t=e.length;if(!d_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},DM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Np(Uint8Array)),PM=(e,t)=>{const i=(e&&e[Yd]).call(e);let r;for(;(r=i.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},OM=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},MM=lr("HTMLFormElement"),$M=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),Pb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VM=lr("RegExp"),m_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Lu(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(i[s]=a||r)}),Object.defineProperties(e,i)},LM=e=>{m_(e,(t,n)=>{if(di(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(di(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NM=(e,t)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return rl(e)?i(e):i(String(e).split(t)),n},RM=()=>{},FM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BM(e){return!!(e&&di(e.append)&&e[u_]==="FormData"&&e[Yd])}const zM=e=>{const t=new Array(10),n=(i,r)=>{if(Zd(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const s=rl(i)?[]:{};return Lu(i,(a,o)=>{const l=n(a,r+1);!nu(l)&&(s[o]=l)}),t[r]=void 0,s}}return i};return n(e,0)},UM=lr("AsyncFunction"),WM=e=>e&&(Zd(e)||di(e))&&di(e.then)&&di(e.catch),g_=((e,t)=>e?setImmediate:t?((n,i)=>(ua.addEventListener("message",({source:r,data:s})=>{r===ua&&s===n&&i.length&&i.shift()()},!1),r=>{i.push(r),ua.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",di(ua.postMessage)),HM=typeof queueMicrotask<"u"?queueMicrotask.bind(ua):typeof process<"u"&&process.nextTick||g_,jM=e=>e!=null&&di(e[Yd]),ce={isArray:rl,isArrayBuffer:c_,isBuffer:lM,isFormData:vM,isArrayBufferView:uM,isString:cM,isNumber:d_,isBoolean:dM,isObject:Zd,isPlainObject:Nc,isReadableStream:bM,isRequest:kM,isResponse:wM,isHeaders:SM,isUndefined:nu,isDate:fM,isFile:hM,isBlob:mM,isRegExp:VM,isFunction:di,isStream:pM,isURLSearchParams:yM,isTypedArray:DM,isFileList:gM,forEach:Lu,merge:xm,extend:CM,trim:_M,stripBOM:TM,inherits:EM,toFlatObject:IM,kindOf:Jd,kindOfTest:lr,endsWith:AM,toArray:xM,forEachEntry:PM,matchAll:OM,isHTMLForm:MM,hasOwnProperty:Pb,hasOwnProp:Pb,reduceDescriptors:m_,freezeMethods:LM,toObjectSet:NM,toCamelCase:$M,noop:RM,toFiniteNumber:FM,findKey:f_,global:ua,isContextDefined:h_,isSpecCompliantForm:BM,toJSONObject:zM,isAsyncFn:UM,isThenable:WM,setImmediate:g_,asap:HM,isIterable:jM};function nt(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}ce.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const p_=nt.prototype,v_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{v_[e]={value:e}});Object.defineProperties(nt,v_);Object.defineProperty(p_,"isAxiosError",{value:!0});nt.from=(e,t,n,i,r,s)=>{const a=Object.create(p_);return ce.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),nt.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const GM=null;function Dm(e){return ce.isPlainObject(e)||ce.isArray(e)}function y_(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function Ob(e,t,n){return e?e.concat(t).map(function(r,s){return r=y_(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function qM(e){return ce.isArray(e)&&!e.some(Dm)}const KM=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function Qd(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!ce.isUndefined(b[y])});const i=n.metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(ce.isDate(g))return g.toISOString();if(ce.isBoolean(g))return g.toString();if(!l&&ce.isBlob(g))throw new nt("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(g)||ce.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,y,b){let k=g;if(g&&!b&&typeof g=="object"){if(ce.endsWith(y,"{}"))y=i?y:y.slice(0,-2),g=JSON.stringify(g);else if(ce.isArray(g)&&qM(g)||(ce.isFileList(g)||ce.endsWith(y,"[]"))&&(k=ce.toArray(g)))return y=y_(y),k.forEach(function(E,I){!(ce.isUndefined(E)||E===null)&&t.append(a===!0?Ob([y],I,s):a===null?y:y+"[]",u(E))}),!1}return Dm(g)?!0:(t.append(Ob(b,y,s),u(g)),!1)}const f=[],h=Object.assign(KM,{defaultVisitor:c,convertValue:u,isVisitable:Dm});function m(g,y){if(!ce.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),ce.forEach(g,function(k,w){(!(ce.isUndefined(k)||k===null)&&r.call(t,k,ce.isString(w)?w.trim():w,y,h))===!0&&m(k,y?y.concat(w):[w])}),f.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Mb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Rp(e,t){this._pairs=[],e&&Qd(e,this,t)}const b_=Rp.prototype;b_.append=function(t,n){this._pairs.push([t,n])};b_.toString=function(t){const n=t?function(i){return t.call(this,i,Mb)}:Mb;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function YM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function k_(e,t,n){if(!t)return e;const i=n&&n.encode||YM;ce.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(r?s=r(t,n):s=ce.isURLSearchParams(t)?t.toString():new Rp(t,n).toString(i),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class $b{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(i){i!==null&&t(i)})}}const w_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JM=typeof URLSearchParams<"u"?URLSearchParams:Rp,XM=typeof FormData<"u"?FormData:null,ZM=typeof Blob<"u"?Blob:null,QM={isBrowser:!0,classes:{URLSearchParams:JM,FormData:XM,Blob:ZM},protocols:["http","https","file","blob","url","data"]},Fp=typeof window<"u"&&typeof document<"u",Pm=typeof navigator=="object"&&navigator||void 0,e$=Fp&&(!Pm||["ReactNative","NativeScript","NS"].indexOf(Pm.product)<0),t$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n$=Fp&&window.location.href||"http://localhost",i$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fp,hasStandardBrowserEnv:e$,hasStandardBrowserWebWorkerEnv:t$,navigator:Pm,origin:n$},Symbol.toStringTag,{value:"Module"})),Wn={...i$,...QM};function r$(e,t){return Qd(e,new Wn.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return Wn.isNode&&ce.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function s$(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function a$(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}function S_(e){function t(n,i,r,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&ce.isArray(r)?r.length:a,l?(ce.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i,!o):((!r[a]||!ce.isObject(r[a]))&&(r[a]=[]),t(n,i,r[a],s)&&ce.isArray(r[a])&&(r[a]=a$(r[a])),!o)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(i,r)=>{t(s$(i),r,n,0)}),n}return null}function o$(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Nu={transitional:w_,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,s=ce.isObject(t);if(s&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return r?JSON.stringify(S_(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return r$(t,this.formSerializer).toString();if((o=ce.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qd(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),o$(t)):t}],transformResponse:[function(t){const n=this.transitional||Nu.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(i&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?nt.from(o,nt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wn.classes.FormData,Blob:Wn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{Nu.headers[e]={}});const l$=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),u$=e=>{const t={};let n,i,r;return e&&e.split(`
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),i=a.substring(r+1).trim(),!(!n||t[n]&&l$[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Vb=Symbol("internals");function yl(e){return e&&String(e).trim().toLowerCase()}function Rc(e){return e===!1||e==null?e:ce.isArray(e)?e.map(Rc):String(e)}function c$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const d$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bh(e,t,n,i,r){if(ce.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!ce.isString(t)){if(ce.isString(i))return t.indexOf(i)!==-1;if(ce.isRegExp(i))return i.test(t)}}function f$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function h$(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,s,a){return this[i].call(this,t,r,s,a)},configurable:!0})})}let fi=class{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function s(o,l,u){const c=yl(l);if(!c)throw new Error("header name must be a non-empty string");const f=ce.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=Rc(o))}const a=(o,l)=>ce.forEach(o,(u,c)=>s(u,c,l));if(ce.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ce.isString(t)&&(t=t.trim())&&!d$(t))a(u$(t),n);else if(ce.isObject(t)&&ce.isIterable(t)){let o={},l,u;for(const c of t){if(!ce.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?ce.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(o,n)}else t!=null&&s(n,t,i);return this}get(t,n){if(t=yl(t),t){const i=ce.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return c$(r);if(ce.isFunction(n))return n.call(this,r,i);if(ce.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=yl(t),t){const i=ce.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||bh(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function s(a){if(a=yl(a),a){const o=ce.findKey(i,a);o&&(!n||bh(i,i[o],o,n))&&(delete i[o],r=!0)}}return ce.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!t||bh(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,i={};return ce.forEach(this,(r,s)=>{const a=ce.findKey(i,s);if(a){n[a]=Rc(r),delete n[s];return}const o=t?f$(s):String(s).trim();o!==s&&delete n[s],n[o]=Rc(r),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ce.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&ce.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[Vb]=this[Vb]={accessors:{}}).accessors,r=this.prototype;function s(a){const o=yl(a);i[o]||(h$(r,a),i[o]=!0)}return ce.isArray(t)?t.forEach(s):s(t),this}};fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(fi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ce.freezeMethods(fi);function kh(e,t){const n=this||Nu,i=t||n,r=fi.from(i.headers);let s=i.data;return ce.forEach(e,function(o){s=o.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function __(e){return!!(e&&e.__CANCEL__)}function sl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(sl,nt,{__CANCEL__:!0});function C_(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function m$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function g$(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=i[s];a||(a=u),n[r]=l,i[r]=u;let f=s,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(h*1e3/m):void 0}}function p$(e,t){let n=0,i=1e3/t,r,s;const a=(u,c=Date.now())=>{n=c,r=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=i?a(u,c):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},i-f)))},()=>r&&a(r)]}const ld=(e,t,n=3)=>{let i=0;const r=g$(50,250);return p$(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-i,u=r(l),c=a<=o;i=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},Lb=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Nb=e=>(...t)=>ce.asap(()=>e(...t)),v$=Wn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Wn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,y$=Wn.hasStandardBrowserEnv?{write(e,t,n,i,r,s){const a=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ce.isString(i)&&a.push("path="+i),ce.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function T_(e,t,n){let i=!b$(t);return e&&(i||n==!1)?k$(e,t):t}const Rb=e=>e instanceof fi?{...e}:e;function Da(e,t){t=t||{};const n={};function i(u,c,f,h){return ce.isPlainObject(u)&&ce.isPlainObject(c)?ce.merge.call({caseless:h},u,c):ce.isPlainObject(c)?ce.merge({},c):ce.isArray(c)?c.slice():c}function r(u,c,f,h){if(ce.isUndefined(c)){if(!ce.isUndefined(u))return i(void 0,u,f,h)}else return i(u,c,f,h)}function s(u,c){if(!ce.isUndefined(c))return i(void 0,c)}function a(u,c){if(ce.isUndefined(c)){if(!ce.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,f){if(f in t)return i(u,c);if(f in e)return i(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,f)=>r(Rb(u),Rb(c),f,!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||r,h=f(e[c],t[c],c);ce.isUndefined(h)&&f!==o||(n[c]=h)}),n}const E_=e=>{const t=Da({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:o}=t;t.headers=a=fi.from(a),t.url=k_(T_(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(ce.isFormData(n)){if(Wn.hasStandardBrowserEnv||Wn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Wn.hasStandardBrowserEnv&&(i&&ce.isFunction(i)&&(i=i(t)),i||i!==!1&&v$(t.url))){const u=r&&s&&y$.read(s);u&&a.set(r,u)}return t},w$=typeof XMLHttpRequest<"u",S$=w$&&function(e){return new Promise(function(n,i){const r=E_(e);let s=r.data;const a=fi.from(r.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=r,c,f,h,m,g;function y(){m&&m(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function k(){if(!b)return;const E=fi.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),D={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:E,config:e,request:b};C_(function(P){n(P),y()},function(P){i(P),y()},D),b=null}"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(k)},b.onabort=function(){b&&(i(new nt("Request aborted",nt.ECONNABORTED,e,b)),b=null)},b.onerror=function(){i(new nt("Network Error",nt.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let I=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const D=r.transitional||w_;r.timeoutErrorMessage&&(I=r.timeoutErrorMessage),i(new nt(I,D.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&ce.forEach(a.toJSON(),function(I,D){b.setRequestHeader(D,I)}),ce.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),o&&o!=="json"&&(b.responseType=r.responseType),u&&([h,g]=ld(u,!0),b.addEventListener("progress",h)),l&&b.upload&&([f,m]=ld(l),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(c=E=>{b&&(i(!E||E.type?new sl(null,e,b):E),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const w=m$(r.url);if(w&&Wn.protocols.indexOf(w)===-1){i(new nt("Unsupported protocol "+w+":",nt.ERR_BAD_REQUEST,e));return}b.send(s||null)})},_$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,r;const s=function(u){if(!r){r=!0,o();const c=u instanceof Error?u:this.reason;i.abort(c instanceof nt?c:new sl(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,s(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=i;return l.unsubscribe=()=>ce.asap(o),l}},C$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,r;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},T$=async function*(e,t){for await(const n of E$(e))yield*C$(n,t)},E$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Fb=(e,t,n,i)=>{const r=T$(e,t);let s=0,a,o=l=>{a||(a=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await r.next();if(u){o(),l.close();return}let f=c.byteLength;if(n){let h=s+=f;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),r.return()}},{highWaterMark:2})},ef=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",I_=ef&&typeof ReadableStream=="function",I$=ef&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),A_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},A$=I_&&A_(()=>{let e=!1;const t=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Bb=64*1024,Om=I_&&A_(()=>ce.isReadableStream(new Response("").body)),ud={stream:Om&&(e=>e.body)};ef&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ud[t]&&(ud[t]=ce.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,i)})})})(new Response);const x$=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(Wn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await I$(e)).byteLength},D$=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n??x$(t)},P$=ef&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=E_(e);u=u?(u+"").toLowerCase():"text";let m=_$([r,s&&s.toAbortSignal()],a),g;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(l&&A$&&n!=="get"&&n!=="head"&&(b=await D$(c,i))!==0){let D=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(ce.isFormData(i)&&(x=D.headers.get("content-type"))&&c.setContentType(x),D.body){const[P,A]=Lb(b,ld(Nb(l)));i=Fb(D.body,Bb,P,A)}}ce.isString(f)||(f=f?"include":"omit");const k="credentials"in Request.prototype;g=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:k?f:void 0});let w=await fetch(g,h);const E=Om&&(u==="stream"||u==="response");if(Om&&(o||E&&y)){const D={};["status","statusText","headers"].forEach(C=>{D[C]=w[C]});const x=ce.toFiniteNumber(w.headers.get("content-length")),[P,A]=o&&Lb(x,ld(Nb(o),!0))||[];w=new Response(Fb(w.body,Bb,P,()=>{A&&A(),y&&y()}),D)}u=u||"text";let I=await ud[ce.findKey(ud,u)||"text"](w,e);return!E&&y&&y(),await new Promise((D,x)=>{C_(D,x,{data:I,headers:fi.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(k){throw y&&y(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,g),{cause:k.cause||k}):nt.from(k,k&&k.code,e,g)}}),Mm={http:GM,xhr:S$,fetch:P$};ce.forEach(Mm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zb=e=>`- ${e}`,O$=e=>ce.isFunction(e)||e===null||e===!1,x_={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let s=0;s<t;s++){n=e[s];let a;if(i=n,!O$(n)&&(i=Mm[(a=String(n)).toLowerCase()],i===void 0))throw new nt(`Unknown adapter '${a}'`);if(i)break;r[a||"#"+s]=i}if(!i){const s=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
`+s.map(zb).join(`
`):" "+zb(s[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i},adapters:Mm};function wh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sl(null,e)}function Ub(e){return wh(e),e.headers=fi.from(e.headers),e.data=kh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),x_.getAdapter(e.adapter||Nu.adapter)(e).then(function(i){return wh(e),i.data=kh.call(e,e.transformResponse,i),i.headers=fi.from(i.headers),i},function(i){return __(i)||(wh(e),i&&i.response&&(i.response.data=kh.call(e,e.transformResponse,i.response),i.response.headers=fi.from(i.response.headers))),Promise.reject(i)})}const D_="1.10.0",tf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tf[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Wb={};tf.transitional=function(t,n,i){function r(s,a){return"[Axios v"+D_+"] Transitional option '"+s+"'"+a+(i?". "+i:"")}return(s,a,o)=>{if(t===!1)throw new nt(r(a," has been removed"+(n?" in "+n:"")),nt.ERR_DEPRECATED);return n&&!Wb[a]&&(Wb[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,o):!0}};tf.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function M$(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],a=t[s];if(a){const o=e[s],l=o===void 0||a(o,s,e);if(l!==!0)throw new nt("option "+s+" must be "+l,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+s,nt.ERR_BAD_OPTION)}}const Fc={assertOptions:M$,validators:tf},mr=Fc.validators;let ya=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $b,response:new $b}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Da(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&Fc.assertOptions(i,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),r!=null&&(ce.isFunction(r)?n.paramsSerializer={serialize:r}:Fc.assertOptions(r,{encode:mr.function,serialize:mr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fc.assertOptions(n,{baseUrl:mr.spelling("baseURL"),withXsrfToken:mr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&ce.merge(s.common,s[n.method]);s&&ce.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=fi.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,h;if(!l){const g=[Ub.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,u),h=g.length,c=Promise.resolve(n);f<h;)c=c.then(g[f++],g[f++]);return c}h=o.length;let m=n;for(f=0;f<h;){const g=o[f++],y=o[f++];try{m=g(m)}catch(b){y.call(this,b);break}}try{c=Ub.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Da(this.defaults,t);const n=T_(t.baseURL,t.url,t.allowAbsoluteUrls);return k_(n,t.params,t.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(t){ya.prototype[t]=function(n,i){return this.request(Da(i||{},{method:t,url:n,data:(i||{}).data}))}});ce.forEach(["post","put","patch"],function(t){function n(i){return function(s,a,o){return this.request(Da(o||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ya.prototype[t]=n(),ya.prototype[t+"Form"]=n(!0)});let $$=class P_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(o=>{i.subscribe(o),s=o}).then(r);return a.cancel=function(){i.unsubscribe(s)},a},t(function(s,a,o){i.reason||(i.reason=new sl(s,a,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new P_(function(r){t=r}),cancel:t}}};function V$(e){return function(n){return e.apply(null,n)}}function L$(e){return ce.isObject(e)&&e.isAxiosError===!0}const $m={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($m).forEach(([e,t])=>{$m[t]=e});function O_(e){const t=new ya(e),n=l_(ya.prototype.request,t);return ce.extend(n,ya.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return O_(Da(e,r))},n}const Tt=O_(Nu);Tt.Axios=ya;Tt.CanceledError=sl;Tt.CancelToken=$$;Tt.isCancel=__;Tt.VERSION=D_;Tt.toFormData=Qd;Tt.AxiosError=nt;Tt.Cancel=Tt.CanceledError;Tt.all=function(t){return Promise.all(t)};Tt.spread=V$;Tt.isAxiosError=L$;Tt.mergeConfig=Da;Tt.AxiosHeaders=fi;Tt.formToJSON=e=>S_(ce.isHTMLForm(e)?new FormData(e):e);Tt.getAdapter=x_.getAdapter;Tt.HttpStatusCode=$m;Tt.default=Tt;const{Axios:dge,AxiosError:fge,CanceledError:hge,isCancel:mge,CancelToken:gge,VERSION:pge,all:vge,Cancel:yge,isAxiosError:bge,spread:kge,toFormData:wge,AxiosHeaders:Sge,HttpStatusCode:_ge,formToJSON:Cge,getAdapter:Tge,mergeConfig:Ege}=Tt,N$={openDialogs:[]},R$={openDialogs:e=>e.openDialogs};let Sh=!1;const F$={addOpenDialog(e,t){e.openDialogs.find(n=>n.dialog.name===t.dialog.name)||e.openDialogs.push(t),e.openDialogs.forEach(n=>{n.dialog.setActiveState(!1)}),t.dialog.setActiveState(!0)},removeOpenDialog(e,t){e.openDialogs=e.openDialogs.filter(i=>i.dialog.name!==t);let n=!1;e.openDialogs.forEach(i=>{!i.dialog.isMinimized()&&!n&&(i.dialog.setActiveState(!0),n=!0)})},toggleDialogMinimize(e,t){if(Sh)return;Sh=!0;const n=e.openDialogs.find(i=>i.dialog.name===t);n&&n.dialog.toggleMinimize(),Sh=!1},updateDialogTitle(e,{name:t,newTitle:n,isTitleTranslated:i}){const r=e.openDialogs.findIndex(s=>s.dialog.name===t);if(r!==-1){const s={...e.openDialogs[r],dialog:{...e.openDialogs[r].dialog,localTitle:n,isTitleTranslated:i}};e.openDialogs.splice(r,1,s)}}},B$={addOpenDialog({commit:e},t){e("addOpenDialog",t)},removeOpenDialog({commit:e},t){e("removeOpenDialog",t)},toggleDialogMinimize({commit:e},t){e("toggleDialogMinimize",t)},updateDialogTitle({commit:e},{name:t,newTitle:n,isTitleTranslated:i}){e("updateDialogTitle",{name:t,newTitle:n,isTitleTranslated:i})}},z$={namespaced:!0,state:N$,getters:R$,mutations:F$,actions:B$},U$=async()=>{try{const e=Ti.getters.user?Ti.getters.user.id:null;if(!e)throw new Error("User ID not found");return(await X.get("/api/navigation/"+e)).data}catch{return[]}};/*!
* vue-router v4.4.5
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const ko=typeof document<"u";function M_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function W$(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&M_(e.default)}const _t=Object.assign;function _h(e,t){const n={};for(const i in t){const r=t[i];n[i]=ir(r)?r.map(e):e(r)}return n}const Hl=()=>{},ir=Array.isArray,$_=/#/g,H$=/&/g,j$=/\//g,G$=/=/g,q$=/\?/g,V_=/\+/g,K$=/%5B/g,Y$=/%5D/g,L_=/%5E/g,J$=/%60/g,N_=/%7B/g,X$=/%7C/g,R_=/%7D/g,Z$=/%20/g;function Bp(e){return encodeURI(""+e).replace(X$,"|").replace(K$,"[").replace(Y$,"]")}function Q$(e){return Bp(e).replace(N_,"{").replace(R_,"}").replace(L_,"^")}function Vm(e){return Bp(e).replace(V_,"%2B").replace(Z$,"+").replace($_,"%23").replace(H$,"%26").replace(J$,"`").replace(N_,"{").replace(R_,"}").replace(L_,"^")}function eV(e){return Vm(e).replace(G$,"%3D")}function tV(e){return Bp(e).replace($_,"%23").replace(q$,"%3F")}function nV(e){return e==null?"":tV(e).replace(j$,"%2F")}function iu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const iV=/\/$/,rV=e=>e.replace(iV,"");function Ch(e,t,n="/"){let i,r={},s="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(i=t.slice(0,l),s=t.slice(l+1,o>-1?o:t.length),r=e(s)),o>-1&&(i=i||t.slice(0,o),a=t.slice(o,t.length)),i=lV(i??t,n),{fullPath:i+(s&&"?")+s+a,path:i,query:r,hash:iu(a)}}function sV(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function aV(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Fo(t.matched[i],n.matched[r])&&F_(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function F_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!oV(e[n],t[n]))return!1;return!0}function oV(e,t){return ir(e)?jb(e,t):ir(t)?jb(t,e):e===t}function jb(e,t){return ir(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function lV(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=n.length-1,a,o;for(a=0;a<i.length;a++)if(o=i[a],o!==".")if(o==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+i.slice(a).join("/")}const fs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ru;(function(e){e.pop="pop",e.push="push"})(ru||(ru={}));var jl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jl||(jl={}));function uV(e){if(!e)if(ko){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rV(e)}const cV=/^[^#]+#/;function dV(e,t){return e.replace(cV,"#")+t}function fV(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const nf=()=>({left:window.scrollX,top:window.scrollY});function hV(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=fV(r,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 Gb(e,t){return(history.state?history.state.position-t:-1)+e}const Lm=new Map;function mV(e,t){Lm.set(e,t)}function gV(e){const t=Lm.get(e);return Lm.delete(e),t}let pV=()=>location.protocol+"//"+location.host;function B_(e,t){const{pathname:n,search:i,hash:r}=t,s=e.indexOf("#");if(s>-1){let o=r.includes(e.slice(s))?e.slice(s).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Hb(l,"")}return Hb(n,e)+i+r}function vV(e,t,n,i){let r=[],s=[],a=null;const o=({state:h})=>{const m=B_(e,location),g=n.value,y=t.value;let b=0;if(h){if(n.value=m,t.value=h,a&&a===g){a=null;return}b=y?h.position-y.position:0}else i(m);r.forEach(k=>{k(n.value,g,{delta:b,type:ru.pop,direction:b?b>0?jl.forward:jl.back:jl.unknown})})};function l(){a=n.value}function u(h){r.push(h);const m=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return s.push(m),m}function c(){const{history:h}=window;h.state&&h.replaceState(_t({},h.state,{scroll:nf()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function qb(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?nf():null}}function yV(e){const{history:t,location:n}=window,i={value:B_(e,n)},r={value:t.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:pV()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(m){console.error(m),n[c?"replace":"assign"](h)}}function a(l,u){const c=_t({},t.state,qb(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});s(l,c,!0),i.value=l}function o(l,u){const c=_t({},r.value,t.state,{forward:l,scroll:nf()});s(c.current,c,!0);const f=_t({},qb(i.value,l,null),{position:c.position+1},u);s(l,f,!1),i.value=l}return{location:i,state:r,push:o,replace:a}}function bV(e){e=uV(e);const t=yV(e),n=vV(e,t.state,t.location,t.replace);function i(s,a=!0){a||n.pauseListeners(),history.go(s)}const r=_t({location:"",base:e,go:i,createHref:dV.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kV(e){return typeof e=="string"||e&&typeof e=="object"}function z_(e){return typeof e=="string"||typeof e=="symbol"}const U_=Symbol("");var Kb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Kb||(Kb={}));function Bo(e,t){return _t(new Error,{type:e,[U_]:!0},t)}function Lr(e,t){return e instanceof Error&&U_ in e&&(t==null||!!(e.type&t))}const Yb="[^/]+?",wV={sensitive:!1,strict:!1,start:!0,end:!0},SV=/[.+*?^${}()[\]/\\]/g;function _V(e,t){const n=_t({},wV,t),i=[];let r=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let m=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(SV,"\\$&"),m+=40;else if(h.type===1){const{value:g,repeatable:y,optional:b,regexp:k}=h;s.push({name:g,repeatable:y,optional:b});const w=k||Yb;if(w!==Yb){m+=10;try{new RegExp(`(${w})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${g}" (${w}): `+I.message)}}let E=y?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;f||(E=b&&u.length<2?`(?:/${E})`:"/"+E),b&&(E+="?"),r+=E,m+=20,b&&(m+=-8),y&&(m+=-20),w===".*"&&(m+=-50)}c.push(m)}i.push(c)}if(n.strict&&n.end){const u=i.length-1;i[u][i[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");function o(u){const c=u.match(a),f={};if(!c)return null;for(let h=1;h<c.length;h++){const m=c[h]||"",g=s[h-1];f[g.name]=m&&g.repeatable?m.split("/"):m}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const m of h)if(m.type===0)c+=m.value;else if(m.type===1){const{value:g,repeatable:y,optional:b}=m,k=g in u?u[g]:"";if(ir(k)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const w=ir(k)?k.join("/"):k;if(!w)if(b)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);c+=w}}return c||"/"}return{re:a,score:i,keys:s,parse:o,stringify:l}}function CV(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function W_(e,t){let n=0;const i=e.score,r=t.score;for(;n<i.length&&n<r.length;){const s=CV(i[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-i.length)===1){if(Jb(i))return 1;if(Jb(r))return-1}return r.length-i.length}function Jb(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const TV={type:0,value:""},EV=/[a-zA-Z0-9_]/;function IV(e){if(!e)return[[]];if(e==="/")return[[TV]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,i=n;const r=[];let s;function a(){s&&r.push(s),s=[]}let o=0,l,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):h();break;case 4:h(),n=i;break;case 1:l==="("?n=2:EV.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),r}function AV(e,t,n){const i=_V(IV(e.path),n),r=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xV(e,t){const n=[],i=new Map;t=ek({strict:!1,end:!0,sensitive:!1},t);function r(f){return i.get(f)}function s(f,h,m){const g=!m,y=Zb(f);y.aliasOf=m&&m.record;const b=ek(t,f),k=[y];if("alias"in f){const I=typeof f.alias=="string"?[f.alias]:f.alias;for(const D of I)k.push(Zb(_t({},y,{components:m?m.record.components:y.components,path:D,aliasOf:m?m.record:y})))}let w,E;for(const I of k){const{path:D}=I;if(h&&D[0]!=="/"){const x=h.record.path,P=x[x.length-1]==="/"?"":"/";I.path=h.record.path+(D&&P+D)}if(w=AV(I,h,b),m?m.alias.push(w):(E=E||w,E!==w&&E.alias.push(w),g&&f.name&&!Qb(w)&&a(f.name)),H_(w)&&l(w),y.children){const x=y.children;for(let P=0;P<x.length;P++)s(x[P],w,m&&m.children[P])}m=m||w}return E?()=>{a(E)}:Hl}function a(f){if(z_(f)){const h=i.get(f);h&&(i.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function o(){return n}function l(f){const h=OV(f,n);n.splice(h,0,f),f.record.name&&!Qb(f)&&i.set(f.record.name,f)}function u(f,h){let m,g={},y,b;if("name"in f&&f.name){if(m=i.get(f.name),!m)throw Bo(1,{location:f});b=m.record.name,g=_t(Xb(h.params,m.keys.filter(E=>!E.optional).concat(m.parent?m.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&Xb(f.params,m.keys.map(E=>E.name))),y=m.stringify(g)}else if(f.path!=null)y=f.path,m=n.find(E=>E.re.test(y)),m&&(g=m.parse(y),b=m.record.name);else{if(m=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!m)throw Bo(1,{location:f,currentLocation:h});b=m.record.name,g=_t({},h.params,f.params),y=m.stringify(g)}const k=[];let w=m;for(;w;)k.unshift(w.record),w=w.parent;return{name:b,path:y,params:g,matched:k,meta:PV(k)}}e.forEach(f=>s(f));function c(){n.length=0,i.clear()}return{addRoute:s,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function Xb(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Zb(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:DV(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 DV(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Qb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function PV(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function ek(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function OV(e,t){let n=0,i=t.length;for(;n!==i;){const s=n+i>>1;W_(e,t[s])<0?i=s:n=s+1}const r=MV(e);return r&&(i=t.lastIndexOf(r,i-1)),i}function MV(e){let t=e;for(;t=t.parent;)if(H_(t)&&W_(e,t)===0)return t}function H_({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function $V(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(V_," "),a=s.indexOf("="),o=iu(a<0?s:s.slice(0,a)),l=a<0?null:iu(s.slice(a+1));if(o in t){let u=t[o];ir(u)||(u=t[o]=[u]),u.push(l)}else t[o]=l}return t}function tk(e){let t="";for(let n in e){const i=e[n];if(n=eV(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(ir(i)?i.map(s=>s&&Vm(s)):[i&&Vm(i)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function VV(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=ir(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}const LV=Symbol(""),nk=Symbol(""),zp=Symbol(""),j_=Symbol(""),Nm=Symbol("");function bl(){let e=[];function t(i){return e.push(i),()=>{const r=e.indexOf(i);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ks(e,t,n,i,r,s=a=>a()){const a=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((o,l)=>{const u=h=>{h===!1?l(Bo(4,{from:n,to:t})):h instanceof Error?l(h):kV(h)?l(Bo(2,{from:t,to:h})):(a&&i.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),o())},c=s(()=>e.call(i&&i.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function Th(e,t,n,i,r=s=>s()){const s=[];for(const a of e)for(const o in a.components){let l=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(M_(l)){const c=(l.__vccOpts||l)[t];c&&s.push(ks(c,n,i,a,o,r))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${a.path}"`);const f=W$(c)?c.default:c;a.mods[o]=c,a.components[o]=f;const m=(f.__vccOpts||f)[t];return m&&ks(m,n,i,a,o,r)()}))}}return s}function ik(e){const t=Ze(zp),n=Ze(j_),i=T(()=>{const l=qt(e.to);return t.resolve(l)}),r=T(()=>{const{matched:l}=i.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(Fo.bind(null,c));if(h>-1)return h;const m=rk(l[u-2]);return u>1&&rk(c)===m&&f[f.length-1].path!==m?f.findIndex(Fo.bind(null,l[u-2])):h}),s=T(()=>r.value>-1&&BV(n.params,i.value.params)),a=T(()=>r.value>-1&&r.value===n.matched.length-1&&F_(n.params,i.value.params));function o(l={}){return FV(l)?t[qt(e.replace)?"replace":"push"](qt(e.to)).catch(Hl):Promise.resolve()}return{route:i,href:T(()=>i.value.href),isActive:s,isExactActive:a,navigate:o}}const NV=ja({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"}},useLink:ik,setup(e,{slots:t}){const n=dn(ik(e)),{options:i}=Ze(zp),r=T(()=>({[sk(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[sk(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:pi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),RV=NV;function FV(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 BV(e,t){for(const n in t){const i=t[n],r=e[n];if(typeof i=="string"){if(i!==r)return!1}else if(!ir(r)||r.length!==i.length||i.some((s,a)=>s!==r[a]))return!1}return!0}function rk(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sk=(e,t,n)=>e??t??n,zV=ja({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Ze(Nm),r=T(()=>e.route||i.value),s=Ze(nk,0),a=T(()=>{let u=qt(s);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),o=T(()=>r.value.matched[a.value]);kt(nk,T(()=>a.value+1)),kt(LV,o),kt(Nm,r);const l=ke();return Ie(()=>[l.value,o.value,e.name],([u,c,f],[h,m,g])=>{c&&(c.instances[f]=u,m&&m!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),u&&c&&(!m||!Fo(c,m)||!h)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=o.value,h=f&&f.components[c];if(!h)return ak(n.default,{Component:h,route:u});const m=f.props[c],g=m?m===!0?u.params:typeof m=="function"?m(u):m:null,b=pi(h,_t({},g,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ak(n.default,{Component:b,route:u})||b}}});function ak(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const UV=zV;function WV(e){const t=xV(e.routes,e),n=e.parseQuery||$V,i=e.stringifyQuery||tk,r=e.history,s=bl(),a=bl(),o=bl(),l=Ae(fs);let u=fs;ko&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=_h.bind(null,q=>""+q),f=_h.bind(null,nV),h=_h.bind(null,iu);function m(q,de){let Se,_e;return z_(q)?(Se=t.getRecordMatcher(q),_e=de):_e=q,t.addRoute(_e,Se)}function g(q){const de=t.getRecordMatcher(q);de&&t.removeRoute(de)}function y(){return t.getRoutes().map(q=>q.record)}function b(q){return!!t.getRecordMatcher(q)}function k(q,de){if(de=_t({},de||l.value),typeof q=="string"){const B=Ch(n,q,de.path),Y=t.resolve({path:B.path},de),Q=r.createHref(B.fullPath);return _t(B,Y,{params:h(Y.params),hash:iu(B.hash),redirectedFrom:void 0,href:Q})}let Se;if(q.path!=null)Se=_t({},q,{path:Ch(n,q.path,de.path).path});else{const B=_t({},q.params);for(const Y in B)B[Y]==null&&delete B[Y];Se=_t({},q,{params:f(B)}),de.params=f(de.params)}const _e=t.resolve(Se,de),pe=q.hash||"";_e.params=c(h(_e.params));const N=sV(i,_t({},q,{hash:Q$(pe),path:_e.path})),V=r.createHref(N);return _t({fullPath:N,hash:pe,query:i===tk?VV(q.query):q.query||{}},_e,{redirectedFrom:void 0,href:V})}function w(q){return typeof q=="string"?Ch(n,q,l.value.path):_t({},q)}function E(q,de){if(u!==q)return Bo(8,{from:de,to:q})}function I(q){return P(q)}function D(q){return I(_t(w(q),{replace:!0}))}function x(q){const de=q.matched[q.matched.length-1];if(de&&de.redirect){const{redirect:Se}=de;let _e=typeof Se=="function"?Se(q):Se;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=w(_e):{path:_e},_e.params={}),_t({query:q.query,hash:q.hash,params:_e.path!=null?{}:q.params},_e)}}function P(q,de){const Se=u=k(q),_e=l.value,pe=q.state,N=q.force,V=q.replace===!0,B=x(Se);if(B)return P(_t(w(B),{state:typeof B=="object"?_t({},pe,B.state):pe,force:N,replace:V}),de||Se);const Y=Se;Y.redirectedFrom=de;let Q;return!N&&aV(i,_e,Se)&&(Q=Bo(16,{to:Y,from:_e}),K(_e,_e,!0,!1)),(Q?Promise.resolve(Q):$(Y,_e)).catch(ee=>Lr(ee)?Lr(ee,2)?ee:J(ee):ye(ee,Y,_e)).then(ee=>{if(ee){if(Lr(ee,2))return P(_t({replace:V},w(ee.to),{state:typeof ee.to=="object"?_t({},pe,ee.to.state):pe,force:N}),de||Y)}else ee=M(Y,_e,!0,V,pe);return O(Y,_e,ee),ee})}function A(q,de){const Se=E(q,de);return Se?Promise.reject(Se):Promise.resolve()}function C(q){const de=Me.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(q):q()}function $(q,de){let Se;const[_e,pe,N]=HV(q,de);Se=Th(_e.reverse(),"beforeRouteLeave",q,de);for(const B of _e)B.leaveGuards.forEach(Y=>{Se.push(ks(Y,q,de))});const V=A.bind(null,q,de);return Se.push(V),oe(Se).then(()=>{Se=[];for(const B of s.list())Se.push(ks(B,q,de));return Se.push(V),oe(Se)}).then(()=>{Se=Th(pe,"beforeRouteUpdate",q,de);for(const B of pe)B.updateGuards.forEach(Y=>{Se.push(ks(Y,q,de))});return Se.push(V),oe(Se)}).then(()=>{Se=[];for(const B of N)if(B.beforeEnter)if(ir(B.beforeEnter))for(const Y of B.beforeEnter)Se.push(ks(Y,q,de));else Se.push(ks(B.beforeEnter,q,de));return Se.push(V),oe(Se)}).then(()=>(q.matched.forEach(B=>B.enterCallbacks={}),Se=Th(N,"beforeRouteEnter",q,de,C),Se.push(V),oe(Se))).then(()=>{Se=[];for(const B of a.list())Se.push(ks(B,q,de));return Se.push(V),oe(Se)}).catch(B=>Lr(B,8)?B:Promise.reject(B))}function O(q,de,Se){o.list().forEach(_e=>C(()=>_e(q,de,Se)))}function M(q,de,Se,_e,pe){const N=E(q,de);if(N)return N;const V=de===fs,B=ko?history.state:{};Se&&(_e||V?r.replace(q.fullPath,_t({scroll:V&&B&&B.scroll},pe)):r.push(q.fullPath,pe)),l.value=q,K(q,de,Se,V),J()}let F;function z(){F||(F=r.listen((q,de,Se)=>{if(!$e.listening)return;const _e=k(q),pe=x(_e);if(pe){P(_t(pe,{replace:!0}),_e).catch(Hl);return}u=_e;const N=l.value;ko&&mV(Gb(N.fullPath,Se.delta),nf()),$(_e,N).catch(V=>Lr(V,12)?V:Lr(V,2)?(P(V.to,_e).then(B=>{Lr(B,20)&&!Se.delta&&Se.type===ru.pop&&r.go(-1,!1)}).catch(Hl),Promise.reject()):(Se.delta&&r.go(-Se.delta,!1),ye(V,_e,N))).then(V=>{V=V||M(_e,N,!1),V&&(Se.delta&&!Lr(V,8)?r.go(-Se.delta,!1):Se.type===ru.pop&&Lr(V,20)&&r.go(-1,!1)),O(_e,N,V)}).catch(Hl)}))}let re=bl(),le=bl(),ve;function ye(q,de,Se){J(q);const _e=le.list();return _e.length?_e.forEach(pe=>pe(q,de,Se)):console.error(q),Promise.reject(q)}function Z(){return ve&&l.value!==fs?Promise.resolve():new Promise((q,de)=>{re.add([q,de])})}function J(q){return ve||(ve=!q,z(),re.list().forEach(([de,Se])=>q?Se(q):de()),re.reset()),q}function K(q,de,Se,_e){const{scrollBehavior:pe}=e;if(!ko||!pe)return Promise.resolve();const N=!Se&&gV(Gb(q.fullPath,0))||(_e||!Se)&&history.state&&history.state.scroll||null;return ct().then(()=>pe(q,de,N)).then(V=>V&&hV(V)).catch(V=>ye(V,q,de))}const me=q=>r.go(q);let xe;const Me=new Set,$e={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:y,resolve:k,options:e,push:I,replace:D,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:s.add,beforeResolve:a.add,afterEach:o.add,onError:le.add,isReady:Z,install(q){const de=this;q.component("RouterLink",RV),q.component("RouterView",UV),q.config.globalProperties.$router=de,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(l)}),ko&&!xe&&l.value===fs&&(xe=!0,I(r.location).catch(pe=>{}));const Se={};for(const pe in fs)Object.defineProperty(Se,pe,{get:()=>l.value[pe],enumerable:!0});q.provide(zp,de),q.provide(j_,XS(Se)),q.provide(Nm,l);const _e=q.unmount;Me.add(q),q.unmount=function(){Me.delete(q),Me.size<1&&(u=fs,F&&F(),F=null,l.value=fs,xe=!1,ve=!1),_e()}}};function oe(q){return q.reduce((de,Se)=>de.then(()=>C(Se)),Promise.resolve())}return $e}function HV(e,t){const n=[],i=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const o=t.matched[a];o&&(e.matched.find(u=>Fo(u,o))?i.push(o):n.push(o));const l=e.matched[a];l&&(t.matched.find(u=>Fo(u,l))||r.push(l))}return[n,i,r]}const jV={name:"DialogWidget",props:{icon:{type:String,default:null},title:{type:String,required:!0},showClose:{type:Boolean,default:!1},buttons:{type:Array,default:()=>[{text:"Ok",action:"close"}]},modal:{type:Boolean,default:!0},width:{type:String,default:"70%"},height:{type:String,default:"60%"},name:{type:String,required:!0},isTitleTranslated:{type:Boolean,default:!1},display:{type:String,default:"block"}},data(){return{visible:!1,minimized:!1,dialogTop:"50%",dialogLeft:"50%",isDragging:!1,dragOffsetX:0,dragOffsetY:0,localTitle:this.title,localIsTitleTranslated:this.isTitleTranslated,isActive:!1}},computed:{dialogWidth(){return this.width||"70%"},dialogHeight(){return this.height||"60%"}},watch:{visible(e){e||(this.minimized=!1)},title(e){this.updateTitle(e)}},methods:{open(){this.visible=!0,this.modal===!1&&this.$store.dispatch("dialogs/addOpenDialog",{status:"open",dialog:this})},close(){this.visible=!1,this.$store.dispatch("dialogs/removeOpenDialog",this.name)},buttonClick(e){typeof e=="function"?e():(this.$emit(e),e==="close"&&this.close())},handleOverlayClick(){this.modal||this.close()},minimize(){this.minimized=!0},toggleMinimize(){this.minimized=!this.minimized,this.$store.dispatch("dialogs/toggleDialogMinimize",this.name)},isMinimized(){return this.minimized},startDragging(e){this.isDragging=!0;const t=this.$refs.dialog;this.dragOffsetX=e.clientX-t.offsetLeft,this.dragOffsetY=e.clientY-t.offsetTop,document.addEventListener("mousemove",this.onDrag),document.addEventListener("mouseup",this.stopDragging)},onDrag(e){this.isDragging&&(this.dialogLeft=`${e.clientX-this.dragOffsetX}px`,this.dialogTop=`${e.clientY-this.dragOffsetY}px`)},stopDragging(){this.isDragging=!1,document.removeEventListener("mousemove",this.onDrag),document.removeEventListener("mouseup",this.stopDragging)},updateTitle(e,t){this.localTitle=e,this.localIsTitleTranslated=t,this.$store.dispatch("dialogs/updateDialogTitle",{name:this.name,newTitle:e,isTitleTranslated:this.localIsTitleTranslated})},setActiveState(e){this.isActive=e}}},GV={key:0,class:"dialog-icon"},qV=["src"],KV={class:"dialog-title"},YV={class:"dialog-footer"},JV=["onClick"];function XV(e,t,n,i,r,s){return r.visible?(S(),_("div",{key:0,class:Dt(["dialog-overlay",{"non-modal":!n.modal,"is-active":r.isActive}]),onClick:t[3]||(t[3]=ut((...a)=>s.handleOverlayClick&&s.handleOverlayClick(...a),["self"]))},[r.minimized?te("",!0):(S(),_("div",{key:0,class:Dt(["dialog",{minimized:r.minimized}]),style:ft({width:s.dialogWidth,height:s.dialogHeight,top:r.dialogTop,left:r.dialogLeft,position:"absolute"}),ref:"dialog"},[d("div",{class:"dialog-header",onMousedown:t[2]||(t[2]=(...a)=>s.startDragging&&s.startDragging(...a))},[n.icon?(S(),_("span",GV,[d("img",{src:"/images/icons/"+n.icon,alt:"Icon"},null,8,qV)])):te("",!0),d("span",KV,p(r.localIsTitleTranslated?e.$t(r.localTitle):r.localTitle),1),n.modal?te("",!0):(S(),_("span",{key:1,class:"dialog-minimize",onClick:t[0]||(t[0]=(...a)=>s.minimize&&s.minimize(...a))},"_")),n.showClose?(S(),_("span",{key:2,class:"dialog-close",onClick:t[1]||(t[1]=(...a)=>s.close&&s.close(...a))},"✖")):te("",!0)],32),d("div",{class:"dialog-body",style:ft({"--dialog-display":n.display})},[xn(e.$slots,"default",{},void 0,!0)],4),d("div",YV,[(S(!0),_(U,null,we(n.buttons,a=>(S(),_("button",{key:a.text,onClick:o=>s.buttonClick(a.action),class:"dialog-button"},p(n.isTitleTranslated?e.$t(a.text):a.text),9,JV))),128))])],6))],2)):te("",!0)}const hn=Oe(jV,[["render",XV],["__scopeId","data-v-3c818aad"]]);/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:G_,setPrototypeOf:ok,isFrozen:ZV,getPrototypeOf:QV,getOwnPropertyDescriptor:eL}=Object;let{freeze:ti,seal:Gi,create:q_}=Object,{apply:Rm,construct:Fm}=typeof Reflect<"u"&&Reflect;ti||(ti=function(t){return t});Gi||(Gi=function(t){return t});Rm||(Rm=function(t,n,i){return t.apply(n,i)});Fm||(Fm=function(t,n){return new t(...n)});const hc=ni(Array.prototype.forEach),tL=ni(Array.prototype.lastIndexOf),lk=ni(Array.prototype.pop),kl=ni(Array.prototype.push),nL=ni(Array.prototype.splice),Bc=ni(String.prototype.toLowerCase),Eh=ni(String.prototype.toString),uk=ni(String.prototype.match),wl=ni(String.prototype.replace),iL=ni(String.prototype.indexOf),rL=ni(String.prototype.trim),Qi=ni(Object.prototype.hasOwnProperty),Jn=ni(RegExp.prototype.test),Sl=sL(TypeError);function ni(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Rm(e,t,i)}}function sL(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Fm(e,n)}}function lt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bc;ok&&ok(e,null);let i=t.length;for(;i--;){let r=t[i];if(typeof r=="string"){const s=n(r);s!==r&&(ZV(t)||(t[i]=s),r=s)}e[r]=!0}return e}function aL(e){for(let t=0;t<e.length;t++)Qi(e,t)||(e[t]=null);return e}function Br(e){const t=q_(null);for(const[n,i]of G_(e))Qi(e,n)&&(Array.isArray(i)?t[n]=aL(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=Br(i):t[n]=i);return t}function _l(e,t){for(;e!==null;){const i=eL(e,t);if(i){if(i.get)return ni(i.get);if(typeof i.value=="function")return ni(i.value)}e=QV(e)}function n(){return null}return n}const ck=ti(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ih=ti(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ah=ti(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),oL=ti(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xh=ti(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),lL=ti(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dk=ti(["#text"]),fk=ti(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dh=ti(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hk=ti(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mc=ti(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uL=Gi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cL=Gi(/<%[\w\W]*|[\w\W]*%>/gm),dL=Gi(/\$\{[\w\W]*/gm),fL=Gi(/^data-[\-\w.\u00B7-\uFFFF]+$/),hL=Gi(/^aria-[\-\w]+$/),K_=Gi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mL=Gi(/^(?:\w+script|data):/i),gL=Gi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y_=Gi(/^html$/i),pL=Gi(/^[a-z][.\w]*(-[.\w]+)+$/i);var mk=Object.freeze({__proto__:null,ARIA_ATTR:hL,ATTR_WHITESPACE:gL,CUSTOM_ELEMENT:pL,DATA_ATTR:fL,DOCTYPE_NAME:Y_,ERB_EXPR:cL,IS_ALLOWED_URI:K_,IS_SCRIPT_OR_DATA:mL,MUSTACHE_EXPR:uL,TMPLIT_EXPR:dL});const Cl={element:1,text:3,progressingInstruction:7,comment:8,document:9},vL=function(){return typeof window>"u"?null:window},yL=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},gk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function J_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vL();const t=Ge=>J_(Ge);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==Cl.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const i=n,r=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=e,g=l.prototype,y=_l(g,"cloneNode"),b=_l(g,"remove"),k=_l(g,"nextSibling"),w=_l(g,"childNodes"),E=_l(g,"parentNode");if(typeof a=="function"){const Ge=n.createElement("template");Ge.content&&Ge.content.ownerDocument&&(n=Ge.content.ownerDocument)}let I,D="";const{implementation:x,createNodeIterator:P,createDocumentFragment:A,getElementsByTagName:C}=n,{importNode:$}=i;let O=gk();t.isSupported=typeof G_=="function"&&typeof E=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:F,TMPLIT_EXPR:z,DATA_ATTR:re,ARIA_ATTR:le,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Z}=mk;let{IS_ALLOWED_URI:J}=mk,K=null;const me=lt({},[...ck,...Ih,...Ah,...xh,...dk]);let xe=null;const Me=lt({},[...fk,...Dh,...hk,...mc]);let $e=Object.seal(q_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,q=null,de=!0,Se=!0,_e=!1,pe=!0,N=!1,V=!0,B=!1,Y=!1,Q=!1,ee=!1,L=!1,R=!1,W=!0,ne=!1;const Ce="user-content-";let Te=!0,H=!1,ue={},Ne=null;const Je=lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rt=null;const zt=lt({},["audio","video","img","source","image","track"]);let jt=null;const Zi=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),us="http://www.w3.org/1998/Math/MathML",dr="http://www.w3.org/2000/svg",Mi="http://www.w3.org/1999/xhtml";let tn=Mi,oi=!1,oo=null;const Kx=lt({},[us,dr,Mi],Eh);let ic=lt({},["mi","mo","mn","ms","mtext"]),rc=lt({},["annotation-xml"]);const Yx=lt({},["title","style","font","a","script"]);let ml=null;const Jx=["application/xhtml+xml","text/html"],Xx="text/html";let gn=null,lo=null;const Zx=n.createElement("form"),Iy=function(G){return G instanceof RegExp||G instanceof Function},ah=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(lo&&lo===G)){if((!G||typeof G!="object")&&(G={}),G=Br(G),ml=Jx.indexOf(G.PARSER_MEDIA_TYPE)===-1?Xx:G.PARSER_MEDIA_TYPE,gn=ml==="application/xhtml+xml"?Eh:Bc,K=Qi(G,"ALLOWED_TAGS")?lt({},G.ALLOWED_TAGS,gn):me,xe=Qi(G,"ALLOWED_ATTR")?lt({},G.ALLOWED_ATTR,gn):Me,oo=Qi(G,"ALLOWED_NAMESPACES")?lt({},G.ALLOWED_NAMESPACES,Eh):Kx,jt=Qi(G,"ADD_URI_SAFE_ATTR")?lt(Br(Zi),G.ADD_URI_SAFE_ATTR,gn):Zi,rt=Qi(G,"ADD_DATA_URI_TAGS")?lt(Br(zt),G.ADD_DATA_URI_TAGS,gn):zt,Ne=Qi(G,"FORBID_CONTENTS")?lt({},G.FORBID_CONTENTS,gn):Je,oe=Qi(G,"FORBID_TAGS")?lt({},G.FORBID_TAGS,gn):Br({}),q=Qi(G,"FORBID_ATTR")?lt({},G.FORBID_ATTR,gn):Br({}),ue=Qi(G,"USE_PROFILES")?G.USE_PROFILES:!1,de=G.ALLOW_ARIA_ATTR!==!1,Se=G.ALLOW_DATA_ATTR!==!1,_e=G.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=G.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=G.SAFE_FOR_TEMPLATES||!1,V=G.SAFE_FOR_XML!==!1,B=G.WHOLE_DOCUMENT||!1,ee=G.RETURN_DOM||!1,L=G.RETURN_DOM_FRAGMENT||!1,R=G.RETURN_TRUSTED_TYPE||!1,Q=G.FORCE_BODY||!1,W=G.SANITIZE_DOM!==!1,ne=G.SANITIZE_NAMED_PROPS||!1,Te=G.KEEP_CONTENT!==!1,H=G.IN_PLACE||!1,J=G.ALLOWED_URI_REGEXP||K_,tn=G.NAMESPACE||Mi,ic=G.MATHML_TEXT_INTEGRATION_POINTS||ic,rc=G.HTML_INTEGRATION_POINTS||rc,$e=G.CUSTOM_ELEMENT_HANDLING||{},G.CUSTOM_ELEMENT_HANDLING&&Iy(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($e.tagNameCheck=G.CUSTOM_ELEMENT_HANDLING.tagNameCheck),G.CUSTOM_ELEMENT_HANDLING&&Iy(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($e.attributeNameCheck=G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),G.CUSTOM_ELEMENT_HANDLING&&typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(Se=!1),L&&(ee=!0),ue&&(K=lt({},dk),xe=[],ue.html===!0&&(lt(K,ck),lt(xe,fk)),ue.svg===!0&&(lt(K,Ih),lt(xe,Dh),lt(xe,mc)),ue.svgFilters===!0&&(lt(K,Ah),lt(xe,Dh),lt(xe,mc)),ue.mathMl===!0&&(lt(K,xh),lt(xe,hk),lt(xe,mc))),G.ADD_TAGS&&(K===me&&(K=Br(K)),lt(K,G.ADD_TAGS,gn)),G.ADD_ATTR&&(xe===Me&&(xe=Br(xe)),lt(xe,G.ADD_ATTR,gn)),G.ADD_URI_SAFE_ATTR&&lt(jt,G.ADD_URI_SAFE_ATTR,gn),G.FORBID_CONTENTS&&(Ne===Je&&(Ne=Br(Ne)),lt(Ne,G.FORBID_CONTENTS,gn)),Te&&(K["#text"]=!0),B&&lt(K,["html","head","body"]),K.table&&(lt(K,["tbody"]),delete oe.tbody),G.TRUSTED_TYPES_POLICY){if(typeof G.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof G.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=G.TRUSTED_TYPES_POLICY,D=I.createHTML("")}else I===void 0&&(I=yL(m,r)),I!==null&&typeof D=="string"&&(D=I.createHTML(""));ti&&ti(G),lo=G}},Ay=lt({},[...Ih,...Ah,...oL]),xy=lt({},[...xh,...lL]),Qx=function(G){let De=E(G);(!De||!De.tagName)&&(De={namespaceURI:tn,tagName:"template"});const We=Bc(G.tagName),Vt=Bc(De.tagName);return oo[G.namespaceURI]?G.namespaceURI===dr?De.namespaceURI===Mi?We==="svg":De.namespaceURI===us?We==="svg"&&(Vt==="annotation-xml"||ic[Vt]):!!Ay[We]:G.namespaceURI===us?De.namespaceURI===Mi?We==="math":De.namespaceURI===dr?We==="math"&&rc[Vt]:!!xy[We]:G.namespaceURI===Mi?De.namespaceURI===dr&&!rc[Vt]||De.namespaceURI===us&&!ic[Vt]?!1:!xy[We]&&(Yx[We]||!Ay[We]):!!(ml==="application/xhtml+xml"&&oo[G.namespaceURI]):!1},fr=function(G){kl(t.removed,{element:G});try{E(G).removeChild(G)}catch{b(G)}},uo=function(G,De){try{kl(t.removed,{attribute:De.getAttributeNode(G),from:De})}catch{kl(t.removed,{attribute:null,from:De})}if(De.removeAttribute(G),G==="is")if(ee||L)try{fr(De)}catch{}else try{De.setAttribute(G,"")}catch{}},Dy=function(G){let De=null,We=null;if(Q)G="<remove></remove>"+G;else{const un=uk(G,/^[\r\n\t ]+/);We=un&&un[0]}ml==="application/xhtml+xml"&&tn===Mi&&(G='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+G+"</body></html>");const Vt=I?I.createHTML(G):G;if(tn===Mi)try{De=new h().parseFromString(Vt,ml)}catch{}if(!De||!De.documentElement){De=x.createDocument(tn,"template",null);try{De.documentElement.innerHTML=oi?D:Vt}catch{}}const Fn=De.body||De.documentElement;return G&&We&&Fn.insertBefore(n.createTextNode(We),Fn.childNodes[0]||null),tn===Mi?C.call(De,B?"html":"body")[0]:B?De.documentElement:Fn},Py=function(G){return P.call(G.ownerDocument||G,G,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},oh=function(G){return G instanceof f&&(typeof G.nodeName!="string"||typeof G.textContent!="string"||typeof G.removeChild!="function"||!(G.attributes instanceof c)||typeof G.removeAttribute!="function"||typeof G.setAttribute!="function"||typeof G.namespaceURI!="string"||typeof G.insertBefore!="function"||typeof G.hasChildNodes!="function")},Oy=function(G){return typeof o=="function"&&G instanceof o};function $r(Ge,G,De){hc(Ge,We=>{We.call(t,G,De,lo)})}const My=function(G){let De=null;if($r(O.beforeSanitizeElements,G,null),oh(G))return fr(G),!0;const We=gn(G.nodeName);if($r(O.uponSanitizeElement,G,{tagName:We,allowedTags:K}),V&&G.hasChildNodes()&&!Oy(G.firstElementChild)&&Jn(/<[/\w!]/g,G.innerHTML)&&Jn(/<[/\w!]/g,G.textContent)||G.nodeType===Cl.progressingInstruction||V&&G.nodeType===Cl.comment&&Jn(/<[/\w]/g,G.data))return fr(G),!0;if(!K[We]||oe[We]){if(!oe[We]&&Vy(We)&&($e.tagNameCheck instanceof RegExp&&Jn($e.tagNameCheck,We)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(We)))return!1;if(Te&&!Ne[We]){const Vt=E(G)||G.parentNode,Fn=w(G)||G.childNodes;if(Fn&&Vt){const un=Fn.length;for(let li=un-1;li>=0;--li){const Vr=y(Fn[li],!0);Vr.__removalCount=(G.__removalCount||0)+1,Vt.insertBefore(Vr,k(G))}}}return fr(G),!0}return G instanceof l&&!Qx(G)||(We==="noscript"||We==="noembed"||We==="noframes")&&Jn(/<\/no(script|embed|frames)/i,G.innerHTML)?(fr(G),!0):(N&&G.nodeType===Cl.text&&(De=G.textContent,hc([M,F,z],Vt=>{De=wl(De,Vt," ")}),G.textContent!==De&&(kl(t.removed,{element:G.cloneNode()}),G.textContent=De)),$r(O.afterSanitizeElements,G,null),!1)},$y=function(G,De,We){if(W&&(De==="id"||De==="name")&&(We in n||We in Zx))return!1;if(!(Se&&!q[De]&&Jn(re,De))){if(!(de&&Jn(le,De))){if(!xe[De]||q[De]){if(!(Vy(G)&&($e.tagNameCheck instanceof RegExp&&Jn($e.tagNameCheck,G)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(G))&&($e.attributeNameCheck instanceof RegExp&&Jn($e.attributeNameCheck,De)||$e.attributeNameCheck instanceof Function&&$e.attributeNameCheck(De))||De==="is"&&$e.allowCustomizedBuiltInElements&&($e.tagNameCheck instanceof RegExp&&Jn($e.tagNameCheck,We)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(We))))return!1}else if(!jt[De]){if(!Jn(J,wl(We,ye,""))){if(!((De==="src"||De==="xlink:href"||De==="href")&&G!=="script"&&iL(We,"data:")===0&&rt[G])){if(!(_e&&!Jn(ve,wl(We,ye,"")))){if(We)return!1}}}}}}return!0},Vy=function(G){return G!=="annotation-xml"&&uk(G,Z)},Ly=function(G){$r(O.beforeSanitizeAttributes,G,null);const{attributes:De}=G;if(!De||oh(G))return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let Vt=De.length;for(;Vt--;){const Fn=De[Vt],{name:un,namespaceURI:li,value:Vr}=Fn,gl=gn(un),lh=Vr;let Bn=un==="value"?lh:rL(lh);if(We.attrName=gl,We.attrValue=Bn,We.keepAttr=!0,We.forceKeepAttr=void 0,$r(O.uponSanitizeAttribute,G,We),Bn=We.attrValue,ne&&(gl==="id"||gl==="name")&&(uo(un,G),Bn=Ce+Bn),V&&Jn(/((--!?|])>)|<\/(style|title)/i,Bn)){uo(un,G);continue}if(We.forceKeepAttr)continue;if(!We.keepAttr){uo(un,G);continue}if(!pe&&Jn(/\/>/i,Bn)){uo(un,G);continue}N&&hc([M,F,z],Ry=>{Bn=wl(Bn,Ry," ")});const Ny=gn(G.nodeName);if(!$y(Ny,gl,Bn)){uo(un,G);continue}if(I&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!li)switch(m.getAttributeType(Ny,gl)){case"TrustedHTML":{Bn=I.createHTML(Bn);break}case"TrustedScriptURL":{Bn=I.createScriptURL(Bn);break}}if(Bn!==lh)try{li?G.setAttributeNS(li,un,Bn):G.setAttribute(un,Bn),oh(G)?fr(G):lk(t.removed)}catch{uo(un,G)}}$r(O.afterSanitizeAttributes,G,null)},eD=function Ge(G){let De=null;const We=Py(G);for($r(O.beforeSanitizeShadowDOM,G,null);De=We.nextNode();)$r(O.uponSanitizeShadowNode,De,null),My(De),Ly(De),De.content instanceof s&&Ge(De.content);$r(O.afterSanitizeShadowDOM,G,null)};return t.sanitize=function(Ge){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=null,We=null,Vt=null,Fn=null;if(oi=!Ge,oi&&(Ge="<!-->"),typeof Ge!="string"&&!Oy(Ge))if(typeof Ge.toString=="function"){if(Ge=Ge.toString(),typeof Ge!="string")throw Sl("dirty is not a string, aborting")}else throw Sl("toString is not a function");if(!t.isSupported)return Ge;if(Y||ah(G),t.removed=[],typeof Ge=="string"&&(H=!1),H){if(Ge.nodeName){const Vr=gn(Ge.nodeName);if(!K[Vr]||oe[Vr])throw Sl("root node is forbidden and cannot be sanitized in-place")}}else if(Ge instanceof o)De=Dy("<!---->"),We=De.ownerDocument.importNode(Ge,!0),We.nodeType===Cl.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?De=We:De.appendChild(We);else{if(!ee&&!N&&!B&&Ge.indexOf("<")===-1)return I&&R?I.createHTML(Ge):Ge;if(De=Dy(Ge),!De)return ee?null:R?D:""}De&&Q&&fr(De.firstChild);const un=Py(H?Ge:De);for(;Vt=un.nextNode();)My(Vt),Ly(Vt),Vt.content instanceof s&&eD(Vt.content);if(H)return Ge;if(ee){if(L)for(Fn=A.call(De.ownerDocument);De.firstChild;)Fn.appendChild(De.firstChild);else Fn=De;return(xe.shadowroot||xe.shadowrootmode)&&(Fn=$.call(i,Fn,!0)),Fn}let li=B?De.outerHTML:De.innerHTML;return B&&K["!doctype"]&&De.ownerDocument&&De.ownerDocument.doctype&&De.ownerDocument.doctype.name&&Jn(Y_,De.ownerDocument.doctype.name)&&(li="<!DOCTYPE "+De.ownerDocument.doctype.name+`>
`+li),N&&hc([M,F,z],Vr=>{li=wl(li,Vr," ")}),I&&R?I.createHTML(li):li},t.setConfig=function(){let Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ah(Ge),Y=!0},t.clearConfig=function(){lo=null,Y=!1},t.isValidAttribute=function(Ge,G,De){lo||ah({});const We=gn(Ge),Vt=gn(G);return $y(We,Vt,De)},t.addHook=function(Ge,G){typeof G=="function"&&kl(O[Ge],G)},t.removeHook=function(Ge,G){if(G!==void 0){const De=tL(O[Ge],G);return De===-1?void 0:nL(O[Ge],De,1)[0]}return lk(O[Ge])},t.removeHooks=function(Ge){O[Ge]=[]},t.removeAllHooks=function(){O=gk()},t}var qa=J_();const bL="/images/icons/friendsadd16.png",kL="/images/icons/enter16.png",wL="/images/icons/dice16.png",SL={name:"RandomChatDialog",components:{DialogWidget:hn},computed:{...Rn(["isLoggedIn","user"]),buttons(){return[{text:"chat.randomchat.close"}]}},data(){return{chatIsRunning:!1,age:18,gender:"f",agefromsearch:18,agetosearch:150,searchmale:!0,searchfemale:!0,camonlysearch:!1,showcam:!1,autosearch:!1,inputtext:"",searching:!1,userId:null,searchInterval:null,messages:[],partner:null,messagesInterval:null}},methods:{async open(){var e,t;if(this.user&&Array.isArray(this.user.param)){const n=(e=this.user.param.find(r=>r.name==="birthdate"))==null?void 0:e.value;if(n){const r=new Date(n),s=Math.floor((Date.now()-r.getTime())/(365.25*24*60*60*1e3));this.age=s}const i=(t=this.user.param.find(r=>r.name==="gender"))==null?void 0:t.value;i!=null&&(this.gender=i==="1"?"m":"f")}this.$refs.dialog.open()},async registerUser(){try{const e=await Tt.post("/api/chat/register",{gender:this.gender,age:this.age});this.userId=e.data.id}catch(e){console.error("Error registering user:",e)}},async closeDialog(){this.searchInterval&&(clearInterval(this.searchInterval),this.searchInterval=null),this.messagesInterval&&(clearInterval(this.messagesInterval),this.messagesInterval=null);try{this.userId&&(await Tt.post("/api/chat/exit",{id:this.userId}),await this.removeUserFromChat())}catch{}this.chatIsRunning=!1,this.partner=null,this.messages=[],this.$refs.dialog.close()},async startRandomChat(){this.chatIsRunning=!0,await this.registerUser(),await this.startSearch()},async startSearch(){this.searching=!0,await this.findMatch(),this.messages.push({type:"system",tr:"chat.randomchat.waitingForMatch"}),this.searchInterval=setInterval(this.findMatch,500)},async findMatch(){try{const e=await Tt.post("/api/chat/findMatch",{genders:this.getSearchGenders(),age:{min:this.agefromsearch,max:this.agetosearch},id:this.userId});if(e.data.status==="matched"){this.searching=!1,clearInterval(this.searchInterval);const t=this.$t("chat.randomchat.chatpartner").replace("<gender>",this.$t(`chat.randomchat.partnergender${e.data.user.gender}`)).replace("<age>",e.data.user.age);this.messages=[{type:"system",text:t}],this.partner=e.data.user,this.messagesInterval=setInterval(this.getNewMessages,250)}else this.autosearch&&!this.searchInterval&&(this.searchInterval=setInterval(this.findMatch,500))}catch(e){console.error("Error finding match:",e)}},getSearchGenders(){const e=[];return this.searchmale&&e.push("m"),this.searchfemale&&e.push("f"),e},async sendMessage(){if(!this.inputtext.trim())return;const e=await Tt.post("/api/chat/sendMessage",{from:this.userId,to:this.partner.id,text:this.inputtext});this.messages.push({type:"self",text:e.data.text}),this.inputtext=""},async getNewMessages(){if(!this.partner)return;const e=await Tt.post("/api/chat/getMessages",{to:this.userId,from:this.partner.id}),t=e.data.filter(i=>!i.activity);e.data.filter(i=>i.activity).forEach(i=>{i.activity==="otheruserleft"&&(this.partner=null,this.messages.push({type:"system",tr:"chat.randomchat.userleftchat"}))}),this.messages.push(...t)},async removeUserFromChat(){try{await Tt.post("/api/chat/remove",{id:this.userId})}catch(e){console.error("Error removing user from chat:",e)}},async nextUser(){await Tt.post("/api/chat/leave",{id:this.userId}),this.partner=null,this.messages.push({type:"system",tr:"chat.randomchat.selfstopped"}),this.autosearch&&(this.searchInterval=setInterval(this.findMatch,500),this.messages.push({type:"system",tr:"chat.randomchat.waitingForMatch"}))},renderMessage(e){if(e.type==="system")return`<span class="rc-system">${e.tr?this.$t(e.tr):e.text}</span>`;const t=e.type==="self"?"rc-self":"rc-partner",n=e.type==="self"?this.$t("chat.randomchat.self"):this.$t("chat.randomchat.partner");return`<span class="${t}">${n}: </span>${e.text}`}}},_L=e=>(Cn("data-v-504d573d"),e=e(),Tn(),e),CL={key:0,class:"randomchat"},TL={class:"headline"},EL={class:"multiselect"},IL=["tooltip"],AL={class:"output"},xL=["innerHTML"],DL={class:"inputline"},PL=_L(()=>d("img",{src:wL},null,-1)),OL={key:1},ML={value:"f"},$L={value:"m"};function VL(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"chat.randomchat.title",icon:"dice24.png","show-close":!0,buttons:s.buttons,modal:!1,isTitleTranslated:!0,onClose:s.closeDialog,name:"RandomChat"},{default:ze(()=>[r.chatIsRunning?(S(),_("div",CL,[d("div",TL,[ge(p(e.$t("chat.randomchat.agerange"))+" ",1),ie(d("input",{type:"number","onUpdate:modelValue":t[0]||(t[0]=o=>r.agefromsearch=o),min:"18",max:"150",size:"5"},null,512),[[Le,r.agefromsearch]]),ge(" - "),ie(d("input",{type:"number","onUpdate:modelValue":t[1]||(t[1]=o=>r.agetosearch=o),min:"18",max:"150",size:"5"},null,512),[[Le,r.agetosearch]]),d("span",EL,[ge(p(e.$t("chat.randomchat.gendersearch"))+" ",1),d("div",null,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=o=>r.searchmale=o)},null,512),[[Nt,r.searchmale]]),ge(p(e.$t("chat.randomchat.gender.male")),1)]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>r.searchfemale=o)},null,512),[[Nt,r.searchfemale]]),ge(p(e.$t("chat.randomchat.gender.female")),1)])])]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=o=>r.camonlysearch=o)},null,512),[[Nt,r.camonlysearch]]),ge(p(e.$t("chat.randomchat.camonly")),1)]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[5]||(t[5]=o=>r.showcam=o)},null,512),[[Nt,r.showcam]]),ge(p(e.$t("chat.randomchat.showcam")),1)]),e.isLoggedIn?(S(),_("img",{key:0,src:bL,tooltip:e.$t("chat.randomchat.addfriend")},null,8,IL)):te("",!0),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[6]||(t[6]=o=>r.autosearch=o)},null,512),[[Nt,r.autosearch]]),ge(p(e.$t("chat.randomchat.autosearch")),1)]),r.partner!=null?(S(),_("button",{key:1,onClick:t[7]||(t[7]=(...o)=>s.nextUser&&s.nextUser(...o))},p(e.$t("chat.randomchat.jumptonext")),1)):te("",!0),r.partner==null&&!r.searching?(S(),_("button",{key:2,onClick:t[8]||(t[8]=(...o)=>s.startSearch&&s.startSearch(...o))},p(e.$t("chat.randomchat.startsearch")),1)):te("",!0)]),d("div",AL,[(S(!0),_(U,null,we(r.messages,o=>(S(),_("div",{innerHTML:s.renderMessage(o)},null,8,xL))),256))]),d("div",DL,[d("label",null,[ge(p(e.$t("chat.randomchat.input"))+"  ",1),ie(d("input",{type:"text","onUpdate:modelValue":t[9]||(t[9]=o=>r.inputtext=o),onKeyup:t[10]||(t[10]=ci((...o)=>s.sendMessage&&s.sendMessage(...o),["enter"]))},null,544),[[Le,r.inputtext]])]),d("img",{src:kL,onClick:t[11]||(t[11]=(...o)=>s.sendMessage&&s.sendMessage(...o))}),PL])])):(S(),_("div",OL,[d("div",null,[d("label",null,[ge(p(e.$t("chat.randomchat.age"))+" ",1),ie(d("input",{type:"number","onUpdate:modelValue":t[12]||(t[12]=o=>r.age=o),min:"18",max:"150",value:"18"},null,512),[[Le,r.age]])])]),d("div",null,[d("label",null,[ge(p(e.$t("chat.randomchat.gender.title"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[13]||(t[13]=o=>r.gender=o)},[d("option",ML,p(e.$t("chat.randomchat.gender.female")),1),d("option",$L,p(e.$t("chat.randomchat.gender.male")),1)],512),[[Et,r.gender]])])]),d("div",null,[d("button",{onClick:t[14]||(t[14]=o=>s.startRandomChat())},p(e.$t("chat.randomchat.start")),1)])]))]),_:1},8,["buttons","onClose"])}const Up=Oe(SL,[["render",VL],["__scopeId","data-v-504d573d"]]),LL={name:"SelectDropdownWidget",props:{labelTr:{type:String,required:!0},value:{type:String,required:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10},list:{type:Array,required:!0},allowNone:{type:Boolean,required:!1,default:!1},noneValue:{type:String,required:!1,default:""}},methods:{updateValue(e){this.$emit("input",e)}}},NL=["title","value"],RL=["value"],FL=["value"];function BL(e,t,n,i,r,s){return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),d("select",{title:e.$t(n.tooltipTr),value:n.value,onChange:t[0]||(t[0]=a=>s.updateValue(a.target.value))},[n.allowNone?(S(),_("option",{key:0,value:n.noneValue},p(e.$t("none")),9,RL)):te("",!0),(S(!0),_(U,null,we(n.list,a=>(S(),_("option",{key:a.value,value:a.value},p(a.captionTr?e.$t(a.captionTr):a.caption),9,FL))),128))],40,NL)])}const X_=Oe(LL,[["render",BL],["__scopeId","data-v-d9503a06"]]),zL={name:"RegisterDialog",components:{DialogWidget:hn,SelectDropdownWidget:X_},data(){return{email:"",username:"",password:"",repeatPassword:"",language:null,languages:[],buttons:[{text:"register.close",action:"close"},{text:"register.register",action:"register",disabled:!this.canRegister}]}},computed:{canRegister(){return this.password&&this.repeatPassword&&this.password===this.repeatPassword}},watch:{canRegister(e){this.buttons[1].disabled=!e}},async created(){await this.getLanguages(),await this.getBrowserLanguage()},methods:{...il(["login"]),async getBrowserLanguage(){const e=navigator.language||navigator.languages[0];let t="";e.startsWith("de")?t="de":t="en";const n=await X.post("/api/settings/getparamvalueid",{paramValue:t});this.language=n.data.paramValueId},open(){this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()},async register(){if(!this.canRegister){this.$root.$refs.errrorDialog.open("tr:register.passwordMismatch");return}try{const e=await X.post("/api/auth/register",{email:this.email,username:this.username,password:this.password,language:this.language});e.status===201?(this.login(e.data),this.$refs.dialog.close(),this.$router.push("/activate")):this.$root.$refs.errrorDialog.open("tr:register.failure")}catch(e){e.response&&e.response.status===409?this.$root.$refs.errrorDialog.open("tr:register."+e.response.data.error):(console.error("Error registering user:",e),this.$root.$refs.errrorDialog.open("tr:register."+e.response.data.error))}},async getLanguages(){try{const e=await X.post("/api/settings/getparamvalues",{type:"language"});this.languages=e.data.map(t=>({value:t.id,captionTr:`settings.personal.language.${t.name}`}))}catch(e){console.error("Error loading languages:",e)}}}},UL={class:"form-content"};function WL(e,t,n,i,r,s){const a=be("SelectDropdownWidget"),o=be("DialogWidget");return S(),He(o,{ref:"dialog",title:"register.title","show-close":!0,buttons:r.buttons,modal:!0,onClose:s.closeDialog,onRegister:s.register,width:"35em",height:"33em",name:"RegisterDialog",isTitleTranslated:!0},{default:ze(()=>[d("div",UL,[d("div",null,[d("label",null,[ge(p(e.$t("register.email")),1),ie(d("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=l=>r.email=l)},null,512),[[Le,r.email]])])]),d("div",null,[d("label",null,[ge(p(e.$t("register.username")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=l=>r.username=l)},null,512),[[Le,r.username]])])]),d("div",null,[d("label",null,[ge(p(e.$t("register.password")),1),ie(d("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=l=>r.password=l)},null,512),[[Le,r.password]])])]),d("div",null,[d("label",null,[ge(p(e.$t("register.repeatPassword")),1),ie(d("input",{type:"password","onUpdate:modelValue":t[3]||(t[3]=l=>r.repeatPassword=l)},null,512),[[Le,r.repeatPassword]])])]),v(a,{labelTr:"settings.personal.label.language","v-model":r.language,tooltipTr:"settings.personal.tooltip.language",list:r.languages,value:r.language},null,8,["v-model","list","value"])])]),_:1},8,["buttons","onClose","onRegister"])}const HL=Oe(zL,[["render",WL],["__scopeId","data-v-49c8418d"]]),jL={name:"PasswordResetDialog",components:{DialogWidget:hn},data(){return{email:"",buttons:[{text:"passwordReset.reset",action:"reset"}]}},methods:{open(){this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()},async resetPassword(){try{await X.post("/api/users/requestPasswordReset",{email:this.email}),this.$refs.dialog.close(),alert(this.$t("passwordReset.success"))}catch(e){console.error("Error resetting password:",e),alert(this.$t("passwordReset.failure"))}}}};function GL(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"passwordReset.title",isTitleTranslated:!0,"show-close":!0,buttons:r.buttons,onClose:s.closeDialog,onReset:s.resetPassword,name:"PasswordReset"},{default:ze(()=>[d("div",null,[d("label",null,[ge(p(e.$t("passwordReset.email"))+" ",1),ie(d("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=o=>r.email=o),required:""},null,512),[[Le,r.email]])])])]),_:1},8,["buttons","onClose","onReset"])}const qL=Oe(jL,[["render",GL]]),KL="/images/mascot/mascot_male.png",YL="/images/mascot/mascot_female.png",JL={name:"HomeNoLoginView",data(){return{username:"",password:""}},components:{RandomChatDialog:Up,RegisterDialog:HL,PasswordResetDialog:qL},methods:{...il(["login"]),openRandomChat(){const e=this.$refs.randomChatDialog;e&&typeof e.open=="function"&&e.open()},openRegisterDialog(){const e=this.$refs.registerDialog;e&&typeof e.open=="function"&&e.open()},openPasswordResetDialog(){const e=this.$refs.passwordResetDialog;e&&typeof e.open=="function"&&e.open()},focusPassword(){this.$refs.passwordInput.focus()},async doLogin(){try{const e=await X.post("/api/auth/login",{username:this.username,password:this.password});this.login(e.data)}catch(e){this.$root.$refs.errorDialog.open(`tr:error.${e.response.data.error}`)}}}},Wp=e=>(Cn("data-v-7e97b9e7"),e=e(),Tn(),e),XL={class:"home-structure"},ZL=Wp(()=>d("div",{class:"mascot"},[d("img",{src:KL})],-1)),QL={class:"actions"},eN=["placeholder","title"],tN=["placeholder","title"],nN=Wp(()=>d("div",null,[d("label",null,[d("input",{type:"checkbox"}),d("span",null,"Eingeloggt bleiben")])],-1)),iN=Wp(()=>d("div",{class:"mascot"},[d("img",{src:YL})],-1));function rN(e,t,n,i,r,s){const a=be("RandomChatDialog"),o=be("RegisterDialog"),l=be("PasswordResetDialog");return S(),_("div",XL,[ZL,d("div",QL,[d("div",null,[d("h2",null,p(e.$t("home.nologin.welcome")),1),d("p",null,p(e.$t("home.nologin.description")),1),d("h2",null,p(e.$t("home.nologin.randomchat")),1),d("button",{onClick:t[0]||(t[0]=(...u)=>s.openRandomChat&&s.openRandomChat(...u))},p(e.$t("home.nologin.startrandomchat")),1)]),d("div",null,[d("div",null,[d("div",null,[ie(d("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.username=u),size:"20",type:"text",placeholder:e.$t("home.nologin.login.name"),title:e.$t("home.nologin.login.namedescription"),onKeydown:t[2]||(t[2]=ci((...u)=>s.focusPassword&&s.focusPassword(...u),["enter"]))},null,40,eN),[[Le,r.username]])]),d("div",null,[ie(d("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>r.password=u),size:"20",type:"password",placeholder:e.$t("home.nologin.login.password"),title:e.$t("home.nologin.login.passworddescription"),onKeydown:t[4]||(t[4]=ci((...u)=>s.doLogin&&s.doLogin(...u),["enter"])),ref:"passwordInput"},null,40,tN),[[Le,r.password]])]),nN]),d("div",null,[d("button",{type:"button",onClick:t[5]||(t[5]=(...u)=>s.doLogin&&s.doLogin(...u))},"Einloggen")]),d("div",null,[d("span",{onClick:t[6]||(t[6]=(...u)=>s.openPasswordResetDialog&&s.openPasswordResetDialog(...u)),class:"link"},p(e.$t("home.nologin.login.lostpassword")),1),ge(" | "),d("span",{id:"o1p5iry1",onClick:t[7]||(t[7]=(...u)=>s.openRegisterDialog&&s.openRegisterDialog(...u)),class:"link"},p(e.$t("home.nologin.login.register")),1)])])]),iN,v(a,{ref:"randomChatDialog"},null,512),v(o,{ref:"registerDialog"},null,512),v(l,{ref:"passwordResetDialog"},null,512)])}const sN=Oe(JL,[["render",rN],["__scopeId","data-v-7e97b9e7"]]),aN={name:"HomeLoggedInView",methods:{...il(["logout"]),handleLogout(){this.logout()}}},oN=d("h1",null,"Welcome to Home (Logged In)",-1),lN=d("p",null,"Here are your exclusive features.",-1);function uN(e,t,n,i,r,s){return S(),_("div",null,[oN,lN,d("button",{onClick:t[0]||(t[0]=(...a)=>s.handleLogout&&s.handleLogout(...a))},"Logout")])}const cN=Oe(aN,[["render",uN]]),dN={name:"HomeView",components:{HomeNoLoginView:sN,HomeLoggedInView:cN},computed:{...Rn(["isLoggedIn"]),currentView(){return this.isLoggedIn?"HomeLoggedInView":"HomeNoLoginView"}}};function fN(e,t,n,i,r,s){return S(),He(g0(s.currentView))}const hN=Oe(dN,[["render",fN]]),mN={name:"ActivateView",data(){return{token:this.$route.query.token||""}},computed:{...Rn(["user"])},methods:{async activateAccount(){try{(await X.post("/api/auth/activate",{token:this.token})).status===200&&(this.user.active=!0,this.$router.push("/settings/personal"))}catch(e){console.error("Error activating account:",e),this.$root.$refs.errorDialog.open(this.$t("activate.failure"))}}}},gN={class:"activate-container"},pN={key:0},vN={type:"submit"};function yN(e,t,n,i,r,s){return S(),_("div",gN,[d("h1",null,p(e.$t("activate.title")),1),e.user?(S(),_("p",pN,p(e.$t("activate.message",{username:e.user.username})),1)):te("",!0),d("form",{onSubmit:t[1]||(t[1]=ut((...a)=>s.activateAccount&&s.activateAccount(...a),["prevent"]))},[d("div",null,[d("label",null,p(e.$t("activate.token")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>r.token=a),required:""},null,512),[[Le,r.token]])]),d("div",null,[d("button",vN,p(e.$t("activate.submit")),1)])],32)])}const bN=Oe(mN,[["render",yN],["__scopeId","data-v-fd52f8fc"]]),kN=[{path:"/activate",name:"Activate page",component:bN}],wN=async e=>(await X.get(`/api/friendships?acceptedOnly=${e}`)).data,SN=async e=>{await X.post("/api/friendships/end",{friendUserId:e})},_N=async e=>{await X.post("/api/friendships/accept",{friendUserId:e})},CN=async e=>{await X.post("/api/friendships/reject",{friendUserId:e})},TN=async e=>{await X.post("/api/friendships/withdraw",{friendUserId:e})},EN={name:"FriendsView",data(){return{activeTab:0,headers:[{text:this.$t("friends.headers.name"),value:"name"},{text:this.$t("friends.headers.age"),value:"age"},{text:this.$t("friends.headers.gender"),value:"gender"},{text:this.$t("friends.headers.actions"),value:"actions",sortable:!1}],tabs:[{name:"existingFriends",label:"friends.tabs.existing",data:[],pagination:{page:1,itemsPerPage:10}},{name:"pendingFriends",label:"friends.tabs.pending",data:[],pagination:{page:1,itemsPerPage:10}},{name:"requestedFriends",label:"friends.tabs.requested",data:[],pagination:{page:1,itemsPerPage:10}},{name:"rejectedFriends",label:"friends.tabs.rejected",data:[],pagination:{page:1,itemsPerPage:10}}]}},computed:{...Rn(["socket","user"])},methods:{async fetchFriendships(){try{const e=await wN(!1);this.distributeFriendships(e)}catch(e){console.error("Error fetching friendships:",e)}},distributeFriendships(e){this.tabs.forEach(t=>t.data=[]),e.forEach(t=>{if(t.accepted)this.tabs.find(n=>n.name==="existingFriends").data.push(t);else if(t.denied){const n=t.initiatorId===this.$store.state.user.hashedId?"requestedFriends":"rejectedFriends";this.tabs.find(i=>i.name===n).data.push(t)}else if(t.withdrawn)this.tabs.find(n=>n.name==="requestedFriends").data.push(t);else{const n=t.isInitiator?"requestedFriends":"pendingFriends";this.tabs.find(i=>i.name===n).data.push(t)}})},selectTab(e){this.activeTab=e},paginatedData(e,t){const n=(t-1)*10,i=n+10;return e.slice(n,i)},async endFriendship(e){try{await SN(e),this.fetchFriendships()}catch(t){console.error("Error ending friendship:",t)}},async acceptFriendship(e){try{await _N(e),this.fetchFriendships()}catch(t){console.error("Error accepting friendship:",t)}},async rejectFriendship(e){try{await CN(e),this.fetchFriendships()}catch(t){console.error("Error rejecting friendship:",t)}},async withdrawRequest(e){try{await TN(e),this.fetchFriendships()}catch(t){console.error("Error withdrawing request:",t)}},setupSocketListener(){this.socket?(console.log("Setting up friendshipChanged listener"),this.socket.on("friendshipChanged",e=>{console.log("Friendship changed:",e),this.fetchFriendships()})):console.error("Socket not initialized")}},mounted(){this.fetchFriendships(),this.setupSocketListener()},beforeUnmount(){this.socket&&this.socket.off("friendshipChanged")}},IN={class:"tabs-container"},AN=["onClick"];function xN(e,t,n,i,r,s){const a=be("v-btn"),o=be("v-data-table"),l=be("v-pagination");return S(),_("div",null,[d("h2",null,p(e.$t("friends.title")),1),d("div",IN,[(S(!0),_(U,null,we(r.tabs,(u,c)=>(S(),_("div",{class:Dt(["tab",{active:r.activeTab===c}]),key:u.name,onClick:f=>s.selectTab(c)},p(e.$t(u.label)),11,AN))),128))]),(S(!0),_(U,null,we(r.tabs,(u,c)=>ie((S(),_("div",{key:u.name},[v(o,{items:s.paginatedData(u.data,u.pagination.page),headers:r.headers,"items-per-page":u.pagination.itemsPerPage,class:"elevation-1"},{body:ze(({items:f})=>[(S(!0),_(U,null,we(f,(h,m)=>(S(),_("tr",{key:m},[d("td",{class:Dt("font-color-gender-"+h.user.gender.toLowerCase().replace(" ",""))},p(h.user.username),3),d("td",null,p(h.user.age),1),d("td",null,p(e.$t(`gender.${h.user.gender}`)),1),d("td",null,[u.name==="existingFriends"?(S(),He(a,{key:0,color:"error",onClick:g=>s.endFriendship(h.user.hashedId)},{default:ze(()=>[ge(p(e.$t("friends.actions.end")),1)]),_:2},1032,["onClick"])):te("",!0),u.name==="pendingFriends"?(S(),_(U,{key:1},[v(a,{color:"success",onClick:g=>s.acceptFriendship(h.user.hashedId)},{default:ze(()=>[ge(p(e.$t("friends.actions.accept")),1)]),_:2},1032,["onClick"]),v(a,{color:"error",onClick:g=>s.rejectFriendship(h.user.hashedId)},{default:ze(()=>[ge(p(e.$t("friends.actions.reject")),1)]),_:2},1032,["onClick"])],64)):te("",!0),u.name==="requestedFriends"?(S(),He(a,{key:2,color:"warning",onClick:g=>s.withdrawRequest(h.user.hashedId)},{default:ze(()=>[ge(p(e.$t("friends.actions.withdraw")),1)]),_:2},1032,["onClick"])):te("",!0),u.name==="rejectedFriends"?(S(),He(a,{key:3,color:"success",onClick:g=>s.acceptFriendship(h.user.hashedId)},{default:ze(()=>[ge(p(e.$t("friends.actions.accept")),1)]),_:2},1032,["onClick"])):te("",!0)])]))),128))]),_:2},1032,["items","headers","items-per-page"]),v(l,{modelValue:u.pagination.page,"onUpdate:modelValue":f=>u.pagination.page=f,length:Math.ceil(u.data.length/u.pagination.itemsPerPage),"total-visible":5,class:"mt-4"},null,8,["modelValue","onUpdate:modelValue","length"])])),[[vn,r.activeTab===c]])),128))])}const DN=Oe(EN,[["render",xN],["__scopeId","data-v-c8150eb8"]]);function Ph(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function PN(e){return(...t)=>!e(...t)}function ON(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function Z_(e,t,n,i){return t?e.filter(r=>ON(i(r,n),t)).sort((r,s)=>i(r,n).length-i(s,n).length):e}function MN(e){return e.filter(t=>!t.$isLabel)}function Oh(e,t){return n=>n.reduce((i,r)=>r[e]&&r[e].length?(i.push({$groupLabel:r[t],$isLabel:!0}),i.concat(r[e])):i,[])}function $N(e,t,n,i,r){return s=>s.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=Z_(a[n],e,t,r);return o.length?{[i]:a[i],[n]:o}:[]})}const pk=(...e)=>t=>e.reduce((n,i)=>i(n),t);var VN={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Ph(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):Z_(n,t,this.label,this.customLabel):n=this.groupValues?Oh(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(PN(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return pk($N(t,n,this.groupValues,this.groupLabel,this.customLabel),Oh(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return pk(Oh(this.groupValues,this.groupLabel),MN)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Ph(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Ph(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(r=>r[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(r=>n.indexOf(this.trackBy?r[this.trackBy]:r)===-1);this.$emit("update:modelValue",i)}else{let n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},LN={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},is={name:"vue-multiselect",mixins:[VN,LN],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const NN={ref:"tags",class:"multiselect__tags"},RN={class:"multiselect__tags-wrap"},FN={class:"multiselect__spinner"},BN={key:0},zN={class:"multiselect__option"},UN={class:"multiselect__option"},WN=ge("No elements found. Consider changing the search query."),HN={class:"multiselect__option"},jN=ge("List is empty.");function GN(e,t,n,i,r,s){return S(),He("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=ci(ut(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=ci(ut(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=ci(ut(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=ci(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[xn(e.$slots,"caret",{toggle:e.toggle},()=>[v("div",{onMousedown:t[1]||(t[1]=ut(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),xn(e.$slots,"clear",{search:e.search}),v("div",NN,[xn(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[ie(v("div",RN,[(S(!0),He(U,null,we(s.visibleValues,(a,o)=>xn(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(S(),He("span",{class:"multiselect__tag",key:o},[v("span",{textContent:p(e.getOptionLabel(a))},null,8,["textContent"]),v("i",{tabindex:"1",onKeypress:ci(ut(l=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:ut(l=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[vn,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?xn(e.$slots,"limit",{key:0},()=>[v("strong",{class:"multiselect__strong",textContent:p(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):te("v-if",!0)]),v(ji,{name:"multiselect__loading"},{default:ze(()=>[xn(e.$slots,"loading",{},()=>[ie(v("div",FN,null,512),[[vn,n.loading]])])]),_:3}),e.searchable?(S(),He("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:n.required,style:s.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=ut(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=ut(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=ci(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=ci(ut(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=ci(ut(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=ci(ut(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=ci(ut(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-controls"])):te("v-if",!0),s.isSingleLabelVisible?(S(),He("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=ut((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[xn(e.$slots,"singleLabel",{option:s.singleValue},()=>[ge(p(e.currentOptionLabel),1)])],32)):te("v-if",!0),s.isPlaceholderVisible?(S(),He("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=ut((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[xn(e.$slots,"placeholder",{},()=>[ge(p(e.placeholder),1)])],32)):te("v-if",!0)],512),v(ji,{name:"multiselect"},{default:ze(()=>[ie(v("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=ut(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[v("ul",{class:"multiselect__content",style:s.contentStyle,role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[xn(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(S(),He("li",BN,[v("span",zN,[xn(e.$slots,"maxElements",{},()=>[ge("Maximum of "+p(e.max)+" options selected. First remove a selected option to select another.",1)])])])):te("v-if",!0),!e.max||e.internalValue.length<e.max?(S(!0),He(U,{key:1},we(e.filteredOptions,(a,o)=>(S(),He("li",{class:"multiselect__element",key:o,"aria-selected":e.isSelected(a),id:e.id+"-"+o,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?te("v-if",!0):(S(),He("span",{key:0,class:[e.optionHighlight(o,a),"multiselect__option"],onClick:ut(l=>e.select(a),["stop"]),onMouseenter:ut(l=>e.pointerSet(o),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[xn(e.$slots,"option",{option:a,search:e.search,index:o},()=>[v("span",null,p(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(S(),He("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:[e.groupHighlight(o,a),"multiselect__option"],onMouseenter:ut(l=>e.groupSelect&&e.pointerSet(o),["self"]),onMousedown:ut(l=>e.selectGroup(a),["prevent"])},[xn(e.$slots,"option",{option:a,search:e.search,index:o},()=>[v("span",null,p(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):te("v-if",!0)],8,["aria-selected","id","role"]))),128)):te("v-if",!0),ie(v("li",null,[v("span",UN,[xn(e.$slots,"noResult",{search:e.search},()=>[WN])])],512),[[vn,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),ie(v("li",null,[v("span",HN,[xn(e.$slots,"noOptions",{},()=>[jN])])],512),[[vn,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),xn(e.$slots,"afterList")],12,["id","aria-multiselectable"])],36),[[vn,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}is.render=GN;const qN={components:{Multiselect:is},data(){return{searchCriteria:{username:"",ageFrom:14,ageTo:150,gender:[]},genderOptions:[],searchResults:[]}},async mounted(){await this.loadGenderOptions()},methods:{async loadGenderOptions(){try{const e=await X.post("/api/settings/getparamvalues",{type:"gender"});this.genderOptions=e.data.map(t=>({name:t.name,value:t.value}))}catch(e){console.error("Fehler beim Laden der Geschlechtsoptionen:",e)}},async performSearch(){const e={username:this.searchCriteria.username,ageFrom:this.searchCriteria.ageFrom,ageTo:this.searchCriteria.ageTo,gender:this.searchCriteria.gender.map(t=>t.value)};try{const t=await X.post("/api/socialnetwork/usersearch",e);this.searchResults=t.data}catch(t){console.error("Fehler bei der Suche:",t)}},openUserProfile(e){this.$root.$refs.userProfileDialog.userId=e,this.$root.$refs.userProfileDialog.open()}}},KN={class:"search-view"},YN={class:"form-group"},JN={for:"username"},XN=["placeholder"],ZN={class:"form-group"},QN={for:"ageFrom"},eR=["placeholder"],tR={for:"ageTo"},nR=["placeholder"],iR={class:"form-group"},rR={for:"gender"},sR={class:"form-group"},aR={type:"submit",class:"search-button"},oR={key:0,class:"search-results"},lR=["onClick"],uR={key:1,class:"no-results"};function cR(e,t,n,i,r,s){const a=be("multiselect");return S(),_("div",KN,[d("h2",null,p(e.$t("socialnetwork.usersearch.title")),1),d("form",{onSubmit:t[4]||(t[4]=ut((...o)=>s.performSearch&&s.performSearch(...o),["prevent"]))},[d("div",YN,[d("label",JN,p(e.$t("socialnetwork.usersearch.username"))+":",1),ie(d("input",{type:"text",id:"username","onUpdate:modelValue":t[0]||(t[0]=o=>r.searchCriteria.username=o),placeholder:e.$t("socialnetwork.usersearch.username")},null,8,XN),[[Le,r.searchCriteria.username]])]),d("div",ZN,[d("label",QN,p(e.$t("socialnetwork.usersearch.age_from"))+":",1),ie(d("input",{type:"number",id:"ageFrom","onUpdate:modelValue":t[1]||(t[1]=o=>r.searchCriteria.ageFrom=o),min:14,max:150,placeholder:e.$t("socialnetwork.usersearch.age_from"),class:"age-input"},null,8,eR),[[Le,r.searchCriteria.ageFrom]]),d("label",tR,p(e.$t("socialnetwork.usersearch.age_to"))+":",1),ie(d("input",{type:"number",id:"ageTo","onUpdate:modelValue":t[2]||(t[2]=o=>r.searchCriteria.ageTo=o),min:14,max:150,placeholder:e.$t("socialnetwork.usersearch.age_to"),class:"age-input"},null,8,nR),[[Le,r.searchCriteria.ageTo]])]),d("div",iR,[d("label",rR,p(e.$t("socialnetwork.usersearch.gender"))+":",1),v(a,{modelValue:r.searchCriteria.gender,"onUpdate:modelValue":t[3]||(t[3]=o=>r.searchCriteria.gender=o),options:r.genderOptions,multiple:!0,"close-on-select":!1,placeholder:e.$t("socialnetwork.usersearch.gender"),label:"name","track-by":"name"},null,8,["modelValue","options","placeholder"])]),d("div",sR,[d("button",aR,p(e.$t("socialnetwork.usersearch.search_button")),1)])],32),r.searchResults.length?(S(),_("div",oR,[d("h3",null,p(e.$t("socialnetwork.usersearch.results_title")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("socialnetwork.usersearch.result.nick")),1),d("th",null,p(e.$t("socialnetwork.usersearch.result.gender")),1),d("th",null,p(e.$t("socialnetwork.usersearch.result.age")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.searchResults,o=>(S(),_("tr",{key:o.id},[d("td",null,[d("span",{onClick:ut(l=>s.openUserProfile(o.id),["prevent"]),class:Dt("clickable g-"+o.gender)},p(o.username),11,lR)]),d("td",null,p(o.gender),1),d("td",null,p(o.age),1)]))),128))])])])):(S(),_("div",uR,p(e.$t("socialnetwork.usersearch.no_results")),1))])}const dR=Oe(qN,[["render",cR],["__scopeId","data-v-f1817eee"]]),fR={props:{folder:Object,isLastItem:{type:Boolean,default:!1},depth:{type:Number,default:0},parentsWithChildren:{type:Array,default:()=>[]},noActionItems:{type:Boolean,default:!1},selectedFolder:Object},methods:{selectFolder(){this.$emit("select-folder",this.folder)},forwardSelectFolderEvent(e){this.$emit("select-folder",e)},showPipe(e){return this.parentsWithChildren[e-1]},getNewParentsWithChildrenList(e){const t=[...this.parentsWithChildren];return t.push(e<this.folder.children.length-1),t}}},hR={class:"folder-item"},mR={key:0,class:"action-items"},gR={key:0,class:"marker filler tee"},pR={key:1,class:"marker filler"},vR={key:1,class:"end-marker marker"},yR={key:2,class:"marker tee"},bR={class:"folder-name-text"};function kR(e,t,n,i,r,s){var o;const a=be("folder-item",!0);return S(),_("div",hR,[d("div",{onClick:t[2]||(t[2]=(...l)=>s.selectFolder&&s.selectFolder(...l)),class:Dt(["folder-name",{selected:n.folder.id===((o=n.selectedFolder)==null?void 0:o.id)}])},[n.noActionItems?te("",!0):(S(),_("span",mR,[d("span",{onClick:t[0]||(t[0]=l=>e.$emit("edit-folder",n.folder)),class:"icon edit-icon",title:"Edit folder"},"✎"),d("span",{onClick:t[1]||(t[1]=l=>e.$emit("delete-folder",n.folder)),class:"icon delete-icon",title:"Delete folder"},"✖")])),(S(!0),_(U,null,we(n.depth,l=>(S(),_(U,null,[s.showPipe(l)?(S(),_("span",gR,"|")):(S(),_("span",pR," "))],64))),256)),n.isLastItem?(S(),_("span",vR,"⌞")):(S(),_("span",yR,"├")),d("span",bR," "+p(n.folder.name),1)],2),n.folder.children&&n.folder.children.length?(S(!0),_(U,{key:0},we(n.folder.children,(l,u)=>(S(),He(a,{key:l.id,folder:l,"selected-folder":n.selectedFolder,onSelectFolder:s.forwardSelectFolderEvent,onEditFolder:t[3]||(t[3]=c=>e.$emit("edit-folder",c)),onDeleteFolder:t[4]||(t[4]=c=>e.$emit("delete-folder",c)),depth:n.depth+1,isLastItem:u===n.folder.children.length-1,parentsWithChildren:s.getNewParentsWithChildrenList(u),noActionItems:n.noActionItems},null,8,["folder","selected-folder","onSelectFolder","depth","isLastItem","parentsWithChildren","noActionItems"]))),128)):te("",!0)])}const Q_=Oe(fR,[["render",kR],["__scopeId","data-v-2d63fa2f"]]);function wR(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(r){r(n)}),(i=e.get("*"))&&i.slice().map(function(r){r(t,n)})}}}const Bm=wR(),SR={components:{FolderItem:Q_,Multiselect:is},data(){return{folders:{children:[]},images:[],selectedFolder:null,imageTitle:"",fileToUpload:null,isUploadVisible:!1,visibilityOptions:[],selectedVisibilities:[],imagePreview:null}},async mounted(){await this.loadFolders(),await this.loadImageVisibilities(),this.folders&&this.selectFolder(this.folders),Bm.on("folderCreated",this.loadFolders)},beforeUnmount(){Bm.off("folderCreated",this.loadFolders)},methods:{async loadFolders(){try{const e=await X.get("/api/socialnetwork/folders");this.folders=e.data}catch(e){console.error("Error loading folders:",e)}},async loadImageVisibilities(){try{const e=await X.get("/api/socialnetwork/imagevisibilities");this.visibilityOptions=e.data}catch(e){console.error("Error loading visibility options:",e)}},async selectFolder(e){this.selectedFolder=e,await this.loadImages(e.id)},async loadImages(e){try{const t=await X.get(`/api/socialnetwork/folder/${e}`);this.images=t.data.map(n=>({...n,placeholder:'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3C/svg%3E',url:null})),await this.fetchImages()}catch(t){console.error("Error loading images:",t)}},async fetchImages(){this.images.forEach(e=>{this.fetchImage(e)})},openCreateFolderDialog(){const e=this.selectedFolder||{id:null,name:this.$t("socialnetwork.gallery.root_folder")};Object.assign(this.$root.$refs.createFolderDialog,{parentFolder:e,folderId:0}),this.$root.$refs.createFolderDialog.open()},async handleFolderCreated(){await this.loadFolders()},onFileChange(e){this.fileToUpload=e.target.files[0];const t=new FileReader;t.onload=n=>{this.imagePreview=n.target.result},t.readAsDataURL(this.fileToUpload)},async handleUpload(){if(!this.fileToUpload)return;const e=new FormData;e.append("image",this.fileToUpload),e.append("folderId",this.selectedFolder.id),e.append("title",this.imageTitle),e.append("visibility",JSON.stringify(this.selectedVisibilities.map(t=>t.id)));try{await X.post("/api/socialnetwork/images",e,{headers:{"Content-Type":"multipart/form-data"}}),this.loadImages(this.selectedFolder.id),this.imageTitle="",this.fileToUpload=null,this.imagePreview=null,this.selectedVisibilities=[]}catch(t){console.error("Error uploading image:",t)}},async fetchImage(e){const t=localStorage.getItem("userid");try{const n=await X.get(`/api/socialnetwork/image/${e.hash}`,{headers:{userid:t},responseType:"blob"});e.url=URL.createObjectURL(n.data)}catch(n){console.error("Error fetching image:",n)}},toggleUploadSection(){this.isUploadVisible=!this.isUploadVisible},openImageDialog(e){this.$root.$refs.editImageDialog.open(e)},async saveImage(e){try{const t=await X.put(`/api/socialnetwork/images/${e.id}`,{title:e.title,visibilities:e.visibilities});this.images=t.data.map(n=>({...n,placeholder:'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3C/svg%3E',url:null})),await this.fetchImages()}catch(t){console.error("Error saving image:",t)}},openEditFolderDialog(e){const t=e.parent||{id:null,name:this.$t("socialnetwork.gallery.root_folder")};Object.assign(this.$root.$refs.createFolderDialog,{parentFolder:t,folderId:e.id}),this.$root.$refs.createFolderDialog.open(e)},async deleteFolder(e){const t=e.name;if(await this.$root.$refs.chooseDialog.open({title:this.$t("socialnetwork.gallery.delete_folder_confirmation_title"),message:this.$t("socialnetwork.gallery.delete_folder_confirmation_message").replace("%%folderName%%",t)})){const i=e.id===this.selectFolder.id;try{await X.delete(`/api/socialnetwork/folders/${e.id}`),await this.loadFolders()}catch(r){console.error("Fehler beim Löschen des Ordners:",r)}i&&(this.selectFolder=this.folders[0])}}}},_R={class:"gallery-view"},CR={class:"sidebar"},TR={class:"tree"},ER={class:"content"},IR={class:"upload-section"},AR={class:"icon-upload-toggle"},xR={key:0,class:"upload-content"},DR={class:"form-group"},PR={for:"imageTitle"},OR=["placeholder"],MR={class:"form-group"},$R={for:"imageFile"},VR={key:0,class:"image-preview"},LR=["src"],NR={class:"form-group"},RR={for:"visibility"},FR={key:0},BR={key:0,class:"multiselect__tag"},zR=["onClick"],UR={type:"submit",class:"upload-button"},WR={class:"image-list"},HR={key:0},jR=["onClick"],GR=["src"],qR={key:1};function KR(e,t,n,i,r,s){const a=be("folder-item"),o=be("multiselect");return S(),_(U,null,[d("h2",null,p(e.$t("socialnetwork.gallery.title")),1),d("div",_R,[d("div",CR,[d("h3",null,p(e.$t("socialnetwork.gallery.folders")),1),d("ul",TR,[(S(!0),_(U,null,we([r.folders],l=>(S(),He(a,{key:l.id,folder:l,"selected-folder":r.selectedFolder,onSelectFolder:s.selectFolder,isLastItem:!0,depth:0,parentsWithChildren:[!1],onEditFolder:s.openEditFolderDialog,onDeleteFolder:s.deleteFolder},null,8,["folder","selected-folder","onSelectFolder","onEditFolder","onDeleteFolder"]))),128))]),d("button",{onClick:t[0]||(t[0]=(...l)=>s.openCreateFolderDialog&&s.openCreateFolderDialog(...l))},p(e.$t("socialnetwork.gallery.create_folder")),1)]),d("div",ER,[d("div",IR,[d("div",{class:"upload-header",onClick:t[1]||(t[1]=(...l)=>s.toggleUploadSection&&s.toggleUploadSection(...l))},[d("span",null,[d("i",AR,p(r.isUploadVisible?"▲":"▼"),1)]),d("h3",null,p(e.$t("socialnetwork.gallery.upload.title")),1)]),r.isUploadVisible?(S(),_("div",xR,[d("form",{onSubmit:t[5]||(t[5]=ut((...l)=>s.handleUpload&&s.handleUpload(...l),["prevent"]))},[d("div",DR,[d("label",PR,p(e.$t("socialnetwork.gallery.upload.image_title")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=l=>r.imageTitle=l),placeholder:e.$t("socialnetwork.gallery.upload.image_title")},null,8,OR),[[Le,r.imageTitle]])]),d("div",MR,[d("label",$R,p(e.$t("socialnetwork.gallery.upload.image_file")),1),d("input",{type:"file",onChange:t[3]||(t[3]=(...l)=>s.onFileChange&&s.onFileChange(...l)),accept:"image/*",required:""},null,32),r.imagePreview?(S(),_("div",VR,[d("img",{src:r.imagePreview,alt:"Image Preview",style:{"max-width":"150px","max-height":"150px"}},null,8,LR)])):te("",!0)]),d("div",NR,[d("label",RR,p(e.$t("socialnetwork.gallery.upload.visibility")),1),v(o,{modelValue:r.selectedVisibilities,"onUpdate:modelValue":t[4]||(t[4]=l=>r.selectedVisibilities=l),options:r.visibilityOptions,multiple:!0,"close-on-select":!1,label:"description",placeholder:e.$t("socialnetwork.gallery.upload.selectvisibility"),"track-by":"value"},{option:ze(({option:l})=>[l&&l.description?(S(),_("span",FR,p(e.$t(`socialnetwork.gallery.visibility.${l.description}`)),1)):te("",!0)]),tag:ze(({option:l,remove:u})=>[l&&l.description?(S(),_("span",BR,[ge(p(e.$t(`socialnetwork.gallery.visibility.${l.description}`))+" ",1),d("span",{onClick:c=>u(l)},"×",8,zR)])):te("",!0)]),_:1},8,["modelValue","options","placeholder"])]),d("button",UR,p(e.$t("socialnetwork.gallery.upload.upload_button")),1)],32)])):te("",!0)]),d("div",WR,[d("h3",null,p(e.$t("socialnetwork.gallery.images")),1),r.images.length>0?(S(),_("ul",HR,[(S(!0),_(U,null,we(r.images,l=>(S(),_("li",{key:l.id,onClick:u=>s.openImageDialog(l)},[d("img",{src:l.url||l.placeholder,alt:"Loading..."},null,8,GR),d("p",null,p(l.title),1)],8,jR))),128))])):(S(),_("span",qR,p(e.$t("socialnetwork.gallery.noimages")),1))])])])],64)}const YR=Oe(SR,[["render",KR],["__scopeId","data-v-9aaaacbe"]]),JR={name:"GuestbookView",data(){return{guestbookEntries:[],currentPage:1,totalPages:1}},computed:{...Rn(["user"])},methods:{...il("socialnetwork",["fetchUserProfile"]),openProfile(e){this.$router.push({name:"profile",params:{username:e}})},async loadGuestbookEntries(e){try{const t=await X.get(`/api/socialnetwork/guestbook/entries/${this.user.username}/${e}`);this.guestbookEntries=t.data.entries,this.currentPage=e,this.totalPages=t.data.totalPages,this.guestbookEntries.forEach(n=>{n.withImage&&this.fetchGuestbookImage(this.user.username,n)})}catch(t){console.error("Fehler beim Laden der Gästebucheinträge:",t)}},async fetchGuestbookImage(e,t){try{const n=await X.get(`/api/socialnetwork/guestbook/image/${this.user.username}/${t.id}`,{responseType:"blob"});t.image={url:URL.createObjectURL(n.data)}}catch(n){console.error("Error fetching image:",n)}},sanitizedContent(e){return qa.sanitize(e.contentHtml)}},mounted(){this.loadGuestbookEntries(1)}},XR={key:0},ZR={key:1,class:"guestbook-entries"},QR=["src"],eF=["innerHTML"],tF={class:"entry-info"},nF={class:"entry-timestamp"},iF={class:"entry-user"},rF=["onClick"],sF={class:"pagination"};function aF(e,t,n,i,r,s){return S(),_(U,null,[d("h2",null,p(e.$t("socialnetwork.guestbook.title")),1),d("div",null,[r.guestbookEntries.length===0?(S(),_("div",XR,p(e.$t("socialnetwork.profile.guestbook.noEntries")),1)):(S(),_("div",ZR,[(S(!0),_(U,null,we(r.guestbookEntries,a=>(S(),_("div",{key:a.id,class:"guestbook-entry"},[a.image?(S(),_("img",{key:0,src:a.image.url,alt:"Entry Image",style:{"max-width":"400px","max-height":"400px"}},null,8,QR)):te("",!0),d("p",{innerHTML:s.sanitizedContent(a)},null,8,eF),d("div",tF,[d("span",nF,p(new Date(a.createdAt).toLocaleString()),1),d("span",iF,[d("span",{onClick:o=>s.openProfile(a.senderUsername)},p(a.sender),9,rF)])])]))),128))])),d("div",sF,[r.currentPage!==1?(S(),_("button",{key:0,onClick:t[0]||(t[0]=a=>s.loadGuestbookEntries(r.currentPage-1))},p(e.$t("socialnetwork.guestbook.prevPage")),1)):te("",!0),d("span",null,p(e.$t("socialnetwork.guestbook.page"))+" "+p(r.currentPage)+" / "+p(r.totalPages),1),r.currentPage<r.totalPages?(S(),_("button",{key:1,onClick:t[1]||(t[1]=a=>s.loadGuestbookEntries(r.currentPage+1))},p(e.$t("socialnetwork.guestbook.nextPage")),1)):te("",!0)])])],64)}const oF=Oe(JR,[["render",aF],["__scopeId","data-v-69544278"]]),lF={name:"ChooseDialog",components:{DialogWidget:hn},data(){return{title:"Bestätigung",message:"Sind Sie sicher?",icon:null,resolve:null,dialogButtons:[]}},methods:{open(e={}){return this.title=e.title||"Bestätigung",this.message=e.message||"Sind Sie sicher?",this.icon=e.icon||null,this.dialogButtons=[{text:this.$t("yes"),action:this.confirmYes},{text:this.$t("no"),action:this.confirmNo}],new Promise(t=>{this.resolve=t,this.$refs.dialog.open()})},close(){this.$refs.dialog.close()},confirmYes(){console.log("ja"),this.resolve(!0),this.close()},confirmNo(){console.log("nein"),this.resolve(!1),this.close()}}},uF={class:"dialog-body"};function cF(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:r.title,icon:r.icon,"show-close":!0,buttons:r.dialogButtons,modal:!0,isTitleTranslated:!1,width:"30em",height:"15em",name:"ChooseDialog"},{default:ze(()=>[d("div",uF,[d("p",null,p(r.message),1)])]),_:1},8,["title","icon","buttons"])}const rf=Oe(lF,[["render",cF],["__scopeId","data-v-86ba3c2b"]]),dF={name:"DiaryView",components:{ChooseDialog:rf},data(){return{diaryEntries:[],newEntryText:"",currentPage:1,totalPages:1,isEditing:!1,editingEntryId:null}},computed:{...Rn(["user"])},methods:{sanitizedText(e){return qa.sanitize(e.text)},async loadDiaryEntries(e){try{console.log(e);const t=await X.get(`/api/socialnetwork/diary/${e}`);this.diaryEntries=t.data.entries,this.currentPage=e,this.totalPages=t.data.totalPages}catch(t){console.error("Error loading diary entries:",t)}},async saveEntry(){if(this.newEntryText)try{this.isEditing?(await X.put(`/api/socialnetwork/diary/${this.editingEntryId}`,{text:this.newEntryText}),this.isEditing=!1,this.editingEntryId=null):await X.post("/api/socialnetwork/diary",{text:this.newEntryText,userId:this.user.id}),this.newEntryText="",this.loadDiaryEntries(this.currentPage)}catch(e){console.error("Error saving entry:",e)}},editEntry(e){this.isEditing=!0,this.newEntryText=e.text,this.editingEntryId=e.id},cancelEdit(){this.isEditing=!1,this.newEntryText="",this.editingEntryId=null},async confirmDeleteEntry(e){await this.$refs.chooseDialog.open({title:this.$t("socialnetwork.diary.confirmDeleteTitle"),message:this.$t("socialnetwork.diary.confirmDeleteMessage")})&&this.deleteEntry(e)},async deleteEntry(e){try{await X.delete(`/api/socialnetwork/diary/${e}`),this.loadDiaryEntries(this.currentPage)}catch(t){console.error("Error deleting entry:",t)}}},mounted(){this.loadDiaryEntries(1)}},fF={class:"new-entry-section"},hF={class:"form-actions"},mF={key:0},gF={key:1,class:"diary-entries"},pF=["innerHTML"],vF={class:"entry-info"},yF={class:"entry-timestamp"},bF={class:"entry-actions"},kF=["onClick","title"],wF=["onClick","title"],SF={class:"pagination"};function _F(e,t,n,i,r,s){const a=be("ChooseDialog");return S(),_(U,null,[d("h2",null,p(e.$t("socialnetwork.diary.title")),1),d("div",fF,[d("h3",null,p(r.isEditing?e.$t("socialnetwork.diary.editEntry"):e.$t("socialnetwork.diary.newEntry")),1),ie(d("textarea",{"onUpdate:modelValue":t[0]||(t[0]=o=>r.newEntryText=o),placeholder:"Write your diary entry..."},null,512),[[Le,r.newEntryText]]),d("div",hF,[d("button",{onClick:t[1]||(t[1]=(...o)=>s.saveEntry&&s.saveEntry(...o))},p(r.isEditing?e.$t("socialnetwork.diary.update"):e.$t("socialnetwork.diary.save")),1),r.isEditing?(S(),_("button",{key:0,onClick:t[2]||(t[2]=(...o)=>s.cancelEdit&&s.cancelEdit(...o))},p(e.$t("socialnetwork.diary.cancel")),1)):te("",!0)])]),r.diaryEntries.length===0?(S(),_("div",mF,p(e.$t("socialnetwork.diary.noEntries")),1)):(S(),_("div",gF,[(S(!0),_(U,null,we(r.diaryEntries,o=>(S(),_("div",{key:o.id,class:"diary-entry"},[d("p",{innerHTML:s.sanitizedText(o)},null,8,pF),d("div",vF,[d("span",yF,p(new Date(o.createdAt).toLocaleString()),1),d("span",bF,[d("span",{onClick:l=>s.editEntry(o),class:"button",title:e.$t("socialnetwork.diary.edit")},"✎",8,kF),d("span",{onClick:l=>s.deleteEntry(o.id),class:"button",title:e.$t("socialnetwork.diary.delete")},"✖",8,wF)])])]))),128))])),d("div",SF,[r.currentPage!==1?(S(),_("button",{key:0,onClick:t[3]||(t[3]=o=>s.loadDiaryEntries(r.currentPage-1))},p(e.$t("socialnetwork.diary.prevPage")),1)):te("",!0),d("span",null,p(e.$t("socialnetwork.diary.page"))+" "+p(r.currentPage)+" / "+p(r.totalPages),1),r.currentPage<r.totalPages?(S(),_("button",{key:1,onClick:t[4]||(t[4]=o=>s.loadDiaryEntries(r.currentPage+1))},p(e.$t("socialnetwork.diary.nextPage")),1)):te("",!0)]),v(a,{ref:"chooseDialog"},null,512)],64)}const CF=Oe(dF,[["render",_F],["__scopeId","data-v-74ea53ea"]]);function Dn(e){this.content=e}Dn.prototype={constructor:Dn,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,r=i.find(e),s=i.content.slice();return r==-1?s.push(n||e,t):(s[r+1]=t,n&&(s[r]=n)),new Dn(s)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Dn(n)},addToStart:function(e,t){return new Dn([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Dn(n)},addBefore:function(e,t,n){var i=this.remove(t),r=i.content.slice(),s=i.find(e);return r.splice(s==-1?r.length:s,0,t,n),new Dn(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Dn.from(e),e.size?new Dn(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Dn.from(e),e.size?new Dn(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Dn.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Dn.from=function(e){if(e instanceof Dn)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Dn(t)};function eC(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(i),s=t.child(i);if(r==s){n+=r.nodeSize;continue}if(!r.sameMarkup(s))return n;if(r.isText&&r.text!=s.text){for(let a=0;r.text[a]==s.text[a];a++)n++;return n}if(r.content.size||s.content.size){let a=eC(r.content,s.content,n+1);if(a!=null)return a}n+=r.nodeSize}}function tC(e,t,n,i){for(let r=e.childCount,s=t.childCount;;){if(r==0||s==0)return r==s?null:{a:n,b:i};let a=e.child(--r),o=t.child(--s),l=a.nodeSize;if(a==o){n-=l,i-=l;continue}if(!a.sameMarkup(o))return{a:n,b:i};if(a.isText&&a.text!=o.text){let u=0,c=Math.min(a.text.length,o.text.length);for(;u<c&&a.text[a.text.length-u-1]==o.text[o.text.length-u-1];)u++,n--,i--;return{a:n,b:i}}if(a.content.size||o.content.size){let u=tC(a.content,o.content,n-1,i-1);if(u)return u}n-=l,i-=l}}class Ee{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;i<t.length;i++)this.size+=t[i].nodeSize}nodesBetween(t,n,i,r=0,s){for(let a=0,o=0;o<n;a++){let l=this.content[a],u=o+l.nodeSize;if(u>t&&i(l,r+o,s||null,a)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),i,r+c)}o=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,r){let s="",a=!0;return this.nodesBetween(t,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(t,l)-l,n-l):o.isLeaf?r?typeof r=="function"?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&i&&(a?a=!1:s+=i),s+=u},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,r=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(r[r.length-1]=n.withText(n.text+i.text),s=1);s<t.content.length;s++)r.push(t.content[s]);return new Ee(r,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let i=[],r=0;if(n>t)for(let s=0,a=0;a<n;s++){let o=this.content[s],l=a+o.nodeSize;l>t&&((a<t||l>n)&&(o.isText?o=o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o=o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),i.push(o),r+=o.nodeSize),a=l}return new Ee(i,r)}cutByIndex(t,n){return t==n?Ee.empty:t==0&&n==this.content.length?this:new Ee(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let r=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return r[t]=n,new Ee(r,s)}addToStart(t){return new Ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,i=0;n<this.content.length;n++){let r=this.content[n];t(r,i,n),i+=r.nodeSize}}findDiffStart(t,n=0){return eC(this,t,n)}findDiffEnd(t,n=this.size,i=t.size){return tC(this,t,n,i)}findIndex(t,n=-1){if(t==0)return gc(0,t);if(t==this.size)return gc(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=this.child(i),a=r+s.nodeSize;if(a>=t)return a==t||n>0?gc(i+1,a):gc(i,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Ee.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ee(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Ee.empty;let n,i=0;for(let r=0;r<t.length;r++){let s=t[r];i+=s.nodeSize,r&&s.isText&&t[r-1].sameMarkup(s)?(n||(n=t.slice(0,r)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new Ee(n||t,i)}static from(t){if(!t)return Ee.empty;if(t instanceof Ee)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new Ee([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ee.empty=new Ee([],0);const Mh={index:0,offset:0};function gc(e,t){return Mh.index=e,Mh.offset=t,Mh}function cd(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!cd(e[i],t[i]))return!1}else{for(let i in e)if(!(i in t)||!cd(e[i],t[i]))return!1;for(let i in t)if(!(i in e))return!1}return!0}let xt=class zm{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,i=!1;for(let r=0;r<t.length;r++){let s=t[r];if(this.eq(s))return t;if(this.type.excludes(s.type))n||(n=t.slice(0,r));else{if(s.type.excludes(this.type))return t;!i&&s.type.rank>this.type.rank&&(n||(n=t.slice(0,r)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&cd(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=t.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=i.create(n.attrs);return i.checkAttrs(r.attrs),r}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].eq(n[i]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return zm.none;if(t instanceof zm)return[t];let n=t.slice();return n.sort((i,r)=>i.type.rank-r.type.rank),n}};xt.none=[];class dd extends Error{}class Re{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=iC(this.content,t+this.openStart,n);return i&&new Re(i,this.openStart,this.openEnd)}removeBetween(t,n){return new Re(nC(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Re.empty;let i=n.openStart||0,r=n.openEnd||0;if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Re(Ee.fromJSON(t,n.content),i,r)}static maxOpen(t,n=!0){let i=0,r=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)r++;return new Re(t,i,r)}}Re.empty=new Re(Ee.empty,0,0);function nC(e,t,n){let{index:i,offset:r}=e.findIndex(t),s=e.maybeChild(i),{index:a,offset:o}=e.findIndex(n);if(r==t||s.isText){if(o!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(nC(s.content,t-r-1,n-r-1)))}function iC(e,t,n,i){let{index:r,offset:s}=e.findIndex(t),a=e.maybeChild(r);if(s==t||a.isText)return e.cut(0,t).append(n).append(e.cut(t));let o=iC(a.content,t-s-1,n);return o&&e.replaceChild(r,a.copy(o))}function TF(e,t,n){if(n.openStart>e.depth)throw new dd("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new dd("Inconsistent open depths");return rC(e,t,n,0)}function rC(e,t,n,i){let r=e.index(i),s=e.node(i);if(r==t.index(i)&&i<e.depth-n.openStart){let a=rC(e,t,n,i+1);return s.copy(s.content.replaceChild(r,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==i&&t.depth==i){let a=e.parent,o=a.content;return ka(a,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}else{let{start:a,end:o}=EF(n,e);return ka(s,aC(e,a,o,t,i))}else return ka(s,fd(e,t,i))}function sC(e,t){if(!t.type.compatibleContent(e.type))throw new dd("Cannot join "+t.type.name+" onto "+e.type.name)}function Um(e,t,n){let i=e.node(n);return sC(i,t.node(n)),i}function ba(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Gl(e,t,n,i){let r=(t||e).node(n),s=0,a=t?t.index(n):r.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(ba(e.nodeAfter,i),s++));for(let o=s;o<a;o++)ba(r.child(o),i);t&&t.depth==n&&t.textOffset&&ba(t.nodeBefore,i)}function ka(e,t){return e.type.checkContent(t),e.copy(t)}function aC(e,t,n,i,r){let s=e.depth>r&&Um(e,t,r+1),a=i.depth>r&&Um(n,i,r+1),o=[];return Gl(null,e,r,o),s&&a&&t.index(r)==n.index(r)?(sC(s,a),ba(ka(s,aC(e,t,n,i,r+1)),o)):(s&&ba(ka(s,fd(e,t,r+1)),o),Gl(t,n,r,o),a&&ba(ka(a,fd(n,i,r+1)),o)),Gl(i,null,r,o),new Ee(o)}function fd(e,t,n){let i=[];if(Gl(null,e,n,i),e.depth>n){let r=Um(e,t,n+1);ba(ka(r,fd(e,t,n+1)),i)}return Gl(t,null,n,i),new Ee(i)}function EF(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)r=t.node(s).copy(Ee.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class su{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(n);return i?t.child(n).cut(i):r}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let s=0;s<t;s++)r+=i.child(s).nodeSize;return r}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return xt.none;if(this.textOffset)return t.child(n).marks;let i=t.maybeChild(n-1),r=t.maybeChild(n);if(!i){let o=i;i=r,r=o}let s=i.marks;for(var a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!r||!s[a].isInSet(r.marks))&&(s=s[a--].removeFromSet(s));return s}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,r=t.parent.maybeChild(t.index());for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);i>=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new hd(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],r=0,s=n;for(let a=t;;){let{index:o,offset:l}=a.content.findIndex(s),u=s-l;if(i.push(a,o,r+l),!u||(a=a.child(o),a.isText))break;s=u-1,r+=l+1}return new su(n,i,s)}static resolveCached(t,n){let i=vk.get(t);if(i)for(let s=0;s<i.elts.length;s++){let a=i.elts[s];if(a.pos==n)return a}else vk.set(t,i=new IF);let r=i.elts[i.i]=su.resolve(t,n);return i.i=(i.i+1)%AF,r}}class IF{constructor(){this.elts=[],this.i=0}}const AF=12,vk=new WeakMap;class hd{constructor(t,n,i){this.$from=t,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xF=Object.create(null);let Ps=class Wm{constructor(t,n,i,r=xt.none){this.type=t,this.attrs=n,this.marks=r,this.content=i||Ee.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,i,r=0){this.content.nodesBetween(t,n,i,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,i,r){return this.content.textBetween(t,n,i,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,i){return this.type==t&&cd(this.attrs,n||t.defaultAttrs||xF)&&xt.sameSet(this.marks,i||xt.none)}copy(t=null){return t==this.content?this:new Wm(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new Wm(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,i=!1){if(t==n)return Re.empty;let r=this.resolve(t),s=this.resolve(n),a=i?0:r.sharedDepth(n),o=r.start(a),u=r.node(a).content.cut(r.pos-o,s.pos-o);return new Re(u,r.depth-a,s.depth-a)}replace(t,n,i){return TF(this.resolve(t),this.resolve(n),i)}nodeAt(t){for(let n=this;;){let{index:i,offset:r}=n.content.findIndex(t);if(n=n.maybeChild(i),!n)return null;if(r==t||n.isText)return n;t-=r+1}}childAfter(t){let{index:n,offset:i}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(t);if(i<t)return{node:this.content.child(n),index:n,offset:i};let r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}}resolve(t){return su.resolveCached(this,t)}resolveNoCache(t){return su.resolve(this,t)}rangeHasMark(t,n,i){let r=!1;return n>t&&this.nodesBetween(t,n,s=>(i.isInSet(s.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),oC(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=Ee.empty,r=0,s=i.childCount){let a=this.contentMatchAt(t).matchFragment(i,r,s),o=a&&a.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=r;l<s;l++)if(!this.type.allowsMarks(i.child(l).marks))return!1;return!0}canReplaceWith(t,n,i,r){if(r&&!this.type.allowsMarks(r))return!1;let s=this.contentMatchAt(t).matchType(i),a=s&&s.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=xt.none;for(let n=0;n<this.marks.length;n++){let i=this.marks[n];i.type.checkAttrs(i.attrs),t=i.addToSet(t)}if(!xt.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let r=Ee.fromJSON(t,n.content),s=t.nodeType(n.type).create(n.attrs,r,i);return s.type.checkAttrs(s.attrs),s}};Ps.prototype.text=void 0;class md extends Ps{constructor(t,n,i,r){if(super(t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oC(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new md(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new md(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function oC(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Pa{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new DF(t,n);if(i.next==null)return Pa.empty;let r=lC(i);i.next&&i.err("Unexpected trailing text");let s=NF(LF(r));return RF(s,i),s}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,i=t.childCount){let r=this;for(let s=n;r&&s<i;s++)r=r.matchType(t.child(s).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let i=0;i<t.next.length;i++)if(this.next[n].type==t.next[i].type)return!0;return!1}fillBefore(t,n=!1,i=0){let r=[this];function s(a,o){let l=a.matchFragment(t,i);if(l&&(!n||l.validEnd))return Ee.from(o.map(u=>u.createAndFill()));for(let u=0;u<a.next.length;u++){let{type:c,next:f}=a.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(f)==-1){r.push(f);let h=s(f,o.concat(c));if(h)return h}}return null}return s(this,[])}findWrapping(t){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==t)return this.wrapCache[i+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let r=i.shift(),s=r.match;if(s.matchType(t)){let a=[];for(let o=r;o.type;o=o.via)a.push(o.type);return a.reverse()}for(let a=0;a<s.next.length;a++){let{type:o,next:l}=s.next[a];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!r.type||l.validEnd)&&(i.push({match:o.contentMatch,type:o,via:r}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let r=0;r<i.next.length;r++)t.indexOf(i.next[r].next)==-1&&n(i.next[r].next)}return n(this),t.map((i,r)=>{let s=r+(i.validEnd?"*":" ")+" ";for(let a=0;a<i.next.length;a++)s+=(a?", ":"")+i.next[a].type.name+"->"+t.indexOf(i.next[a].next);return s}).join(`
`)}}Pa.empty=new Pa(!0);class DF{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function lC(e){let t=[];do t.push(PF(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function PF(e){let t=[];do t.push(OF(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function OF(e){let t=VF(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=MF(e,t);else break;return t}function yk(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function MF(e,t){let n=yk(e),i=n;return e.eat(",")&&(e.next!="}"?i=yk(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function $F(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let r=[];for(let s in n){let a=n[s];a.isInGroup(t)&&r.push(a)}return r.length==0&&e.err("No node type or group '"+t+"' found"),r}function VF(e){if(e.eat("(")){let t=lC(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=$F(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function LF(e){let t=[[]];return r(s(e,0),n()),t;function n(){return t.push([])-1}function i(a,o,l){let u={term:l,to:o};return t[a].push(u),u}function r(a,o){a.forEach(l=>l.to=o)}function s(a,o){if(a.type=="choice")return a.exprs.reduce((l,u)=>l.concat(s(u,o)),[]);if(a.type=="seq")for(let l=0;;l++){let u=s(a.exprs[l],o);if(l==a.exprs.length-1)return u;r(u,o=n())}else if(a.type=="star"){let l=n();return i(o,l),r(s(a.expr,l),l),[i(l)]}else if(a.type=="plus"){let l=n();return r(s(a.expr,o),l),r(s(a.expr,l),l),[i(l)]}else{if(a.type=="opt")return[i(o)].concat(s(a.expr,o));if(a.type=="range"){let l=o;for(let u=0;u<a.min;u++){let c=n();r(s(a.expr,l),c),l=c}if(a.max==-1)r(s(a.expr,l),l);else for(let u=a.min;u<a.max;u++){let c=n();i(l,c),r(s(a.expr,l),c),l=c}return[i(l)]}else{if(a.type=="name")return[i(o,void 0,a.value)];throw new Error("Unknown expr type")}}}}function uC(e,t){return t-e}function bk(e,t){let n=[];return i(t),n.sort(uC);function i(r){let s=e[r];if(s.length==1&&!s[0].term)return i(s[0].to);n.push(r);for(let a=0;a<s.length;a++){let{term:o,to:l}=s[a];!o&&n.indexOf(l)==-1&&i(l)}}}function NF(e){let t=Object.create(null);return n(bk(e,0));function n(i){let r=[];i.forEach(a=>{e[a].forEach(({term:o,to:l})=>{if(!o)return;let u;for(let c=0;c<r.length;c++)r[c][0]==o&&(u=r[c][1]);bk(e,l).forEach(c=>{u||r.push([o,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=t[i.join(",")]=new Pa(i.indexOf(e.length-1)>-1);for(let a=0;a<r.length;a++){let o=r[a][1].sort(uC);s.next.push({type:r[a][0],next:t[o.join(",")]||n(o)})}return s}}function RF(e,t){for(let n=0,i=[e];n<i.length;n++){let r=i[n],s=!r.validEnd,a=[];for(let o=0;o<r.next.length;o++){let{type:l,next:u}=r.next[o];a.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),i.indexOf(u)==-1&&i.push(u)}s&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cC(e){let t=Object.create(null);for(let n in e){let i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function dC(e,t){let n=Object.create(null);for(let i in e){let r=t&&t[i];if(r===void 0){let s=e[i];if(s.hasDefault)r=s.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=r}return n}function fC(e,t,n,i){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in e){let s=e[r];s.validate&&s.validate(t[r])}}function hC(e,t){let n=Object.create(null);if(t)for(let i in t)n[i]=new BF(e,i,t[i]);return n}let kk=class mC{constructor(t,n,i){this.name=t,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=hC(t,i.attrs),this.defaultAttrs=cC(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Pa.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:dC(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ps(this,this.computeAttrs(t),Ee.from(n),xt.setFrom(i))}createChecked(t=null,n,i){return n=Ee.from(n),this.checkContent(n),new Ps(this,this.computeAttrs(t),n,xt.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=Ee.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let r=this.contentMatch.matchFragment(n),s=r&&r.fillBefore(Ee.empty,!0);return s?new Ps(this,t,n.append(s),xt.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i<t.childCount;i++)if(!this.allowsMarks(t.child(i).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){fC(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let i=0;i<t.length;i++)this.allowsMarkType(t[i].type)?n&&n.push(t[i]):n||(n=t.slice(0,i));return n?n.length?n:xt.none:t}static compile(t,n){let i=Object.create(null);t.forEach((s,a)=>i[s]=new mC(s,n,a));let r=n.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function FF(e,t,n){let i=n.split("|");return r=>{let s=r===null?"null":typeof r;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${s}`)}}class BF{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?FF(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class sf{constructor(t,n,i,r){this.name=t,this.rank=n,this.schema=i,this.spec=r,this.attrs=hC(t,r.attrs),this.excluded=null;let s=cC(this.attrs);this.instance=s?new xt(this,s):null}create(t=null){return!t&&this.instance?this.instance:new xt(this,dC(this.attrs,t))}static compile(t,n){let i=Object.create(null),r=0;return t.forEach((s,a)=>i[s]=new sf(s,r++,n,a)),i}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){fC(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class gC{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in t)n[r]=t[r];n.nodes=Dn.from(t.nodes),n.marks=Dn.from(t.marks||{}),this.nodes=kk.compile(this.spec.nodes,this),this.marks=sf.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let s=this.nodes[r],a=s.spec.content||"",o=s.spec.marks;if(s.contentMatch=i[a]||(i[a]=Pa.parse(a,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=o=="_"?null:o?wk(this,o.split(" ")):o==""||!s.inlineContent?[]:null}for(let r in this.marks){let s=this.marks[r],a=s.spec.excludes;s.excluded=a==null?[s]:a==""?[]:wk(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,r){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof kk){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,r)}text(t,n){let i=this.nodes.text;return new md(i,i.defaultAttrs,t,xt.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return Ps.fromJSON(this,t)}markFromJSON(t){return xt.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function wk(e,t){let n=[];for(let i=0;i<t.length;i++){let r=t[i],s=e.marks[r],a=s;if(s)n.push(s);else for(let o in e.marks){let l=e.marks[o];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function zF(e){return e.tag!=null}function UF(e){return e.style!=null}class Os{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(r=>{if(zF(r))this.tags.push(r);else if(UF(r)){let s=/[^=]*/.exec(r.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let s=t.nodes[r.node];return s.contentMatch.matchType(s)})}parse(t,n={}){let i=new _k(this,n,!1);return i.addAll(t,xt.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new _k(this,n,!0);return i.addAll(t,xt.none,n.from,n.to),Re.maxOpen(i.finish())}matchTag(t,n,i){for(let r=i?this.tags.indexOf(i)+1:0;r<this.tags.length;r++){let s=this.tags[r];if(jF(t,s.tag)&&(s.namespace===void 0||t.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let a=s.getAttrs(t);if(a===!1)continue;s.attrs=a||void 0}return s}}}matchStyle(t,n,i,r){for(let s=r?this.styles.indexOf(r)+1:0;s<this.styles.length;s++){let a=this.styles[s],o=a.style;if(!(o.indexOf(t)!=0||a.context&&!i.matchesContext(a.context)||o.length>t.length&&(o.charCodeAt(t.length)!=61||o.slice(t.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let n=[];function i(r){let s=r.priority==null?50:r.priority,a=0;for(;a<n.length;a++){let o=n[a];if((o.priority==null?50:o.priority)<s)break}n.splice(a,0,r)}for(let r in t.marks){let s=t.marks[r].spec.parseDOM;s&&s.forEach(a=>{i(a=Ck(a)),a.mark||a.ignore||a.clearMark||(a.mark=r)})}for(let r in t.nodes){let s=t.nodes[r].spec.parseDOM;s&&s.forEach(a=>{i(a=Ck(a)),a.node||a.ignore||a.mark||(a.node=r)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Os(t,Os.schemaRules(t)))}}const pC={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},WF={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},vC={ol:!0,ul:!0},au=1,Hm=2,ql=4;function Sk(e,t,n){return t!=null?(t?au:0)|(t==="full"?Hm:0):e&&e.whitespace=="pre"?au|Hm:n&~ql}class pc{constructor(t,n,i,r,s,a){this.type=t,this.attrs=n,this.marks=i,this.solid=r,this.options=a,this.content=[],this.activeMarks=xt.none,this.match=s||(a&ql?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ee.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,r;return(r=i.findWrapping(t.type))?(this.match=i,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&au)){let i=this.content[this.content.length-1],r;if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-r[0].length))}}let n=Ee.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!pC.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class _k{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let r=n.topNode,s,a=Sk(null,n.preserveWhitespace,0)|(i?ql:0);r?s=new pc(r.type,r.attrs,xt.none,!0,n.topMatch||r.type.contentMatch,a):i?s=new pc(null,null,xt.none,!0,null,a):s=new pc(t.schema.topNodeType,null,xt.none,!0,null,a),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,r=this.top,s=r.options&Hm?"full":this.localPreserveWS||(r.options&au)>0;if(s==="full"||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(s)s!=="full"?i=i.replace(/\r?\n|\r/g," "):i=i.replace(/\r\n?/g,`
`);else if(i=i.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(i)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],o=t.previousSibling;(!a||o&&o.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(i=i.slice(1))}i&&this.insertNode(this.parser.schema.text(i),n,!/\S/.test(i)),this.findInText(t)}else this.findInside(t)}addElement(t,n,i){let r=this.localPreserveWS,s=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),o;vC.hasOwnProperty(a)&&this.parser.normalizeLists&&HF(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,i));e:if(l?l.ignore:WF.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let u,c=this.needsBlock;if(pC.hasOwnProperty(a))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),u=!0,s.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let f=l&&l.skip?n:this.readStyles(t,n);f&&this.addAll(t,f),u&&this.sync(s),this.needsBlock=c}else{let u=this.readStyles(t,n);u&&this.addElementByRule(t,l,u,l.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let i=t.style;if(i&&i.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let s=this.parser.matchedStyles[r],a=i.getPropertyValue(s);if(a)for(let o=void 0;;){let l=this.parser.matchStyle(s,a,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(t,n,i,r){let s,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let l=this.enter(a,n.attrs||null,i,n.preserveWhitespace);l&&(s=!0,i=l)}else{let l=this.parser.schema.marks[n.mark];i=i.concat(l.create(n.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(t);else if(r)this.addElement(t,i,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,i,!1));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,i),this.findAround(t,l,!1)}s&&this.sync(o)&&this.open--}addAll(t,n,i,r){let s=i||0;for(let a=i?t.childNodes[i]:t.firstChild,o=r==null?null:t.childNodes[r];a!=o;a=a.nextSibling,++s)this.findAtPoint(t,s),this.addDOM(a,n);this.findAtPoint(t,s)}findPlace(t,n,i){let r,s;for(let a=this.open,o=0;a>=0;a--){let l=this.nodes[a],u=l.findWrapping(t);if(u&&(!r||r.length>u.length+o)&&(r=u,s=l,!u.length))break;if(l.solid){if(i)break;o+=2}}if(!r)return null;this.sync(s);for(let a=0;a<r.length;a++)n=this.enterInner(r[a],null,n,!1);return n}insertNode(t,n,i){if(t.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let r=this.findPlace(t,n,i);if(r){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(t.type));let a=xt.none;for(let o of r.concat(t.marks))(s.type?s.type.allowsMarkType(o.type):Tk(o.type,t.type))&&(a=o.addToSet(a));return s.content.push(t.mark(a)),!0}return!1}enter(t,n,i,r){let s=this.findPlace(t.create(n),i,!1);return s&&(s=this.enterInner(t,n,i,!0,r)),s}enterInner(t,n,i,r=!1,s){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let o=Sk(t,s,a.options);a.options&ql&&a.content.length==0&&(o|=ql);let l=xt.none;return i=i.filter(u=>(a.type?a.type.allowsMarkType(u.type):Tk(u.type,t))?(l=u.addToSet(l),!1):!0),this.nodes.push(new pc(t,n,l,r,null,o)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=au)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==t&&this.find[i].offset==n&&(this.find[i].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,i){if(t!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&t.nodeType==1&&t.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(i?2:4)&&(this.find[r].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,r=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(r?0:1),a=(o,l)=>{for(;o>=0;o--){let u=n[o];if(u==""){if(o==n.length-1||o==0)continue;for(;l>=s;l--)if(a(o-1,l))return!0;return!1}else{let c=l>0||l==0&&r?this.nodes[l].type:i&&l>=s?i.node(l-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function HF(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&vC.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function jF(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ck(e){let t={};for(let n in e)t[n]=e[n];return t}function Tk(e,t){let n=t.schema.nodes;for(let i in n){let r=n[i];if(!r.allowsMarkType(e))continue;let s=[],a=o=>{s.push(o);for(let l=0;l<o.edgeCount;l++){let{type:u,next:c}=o.edge(l);if(u==t||s.indexOf(c)<0&&a(c))return!0}};if(a(r.contentMatch))return!0}}class Ka{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},i){i||(i=$h(n).createDocumentFragment());let r=i,s=[];return t.forEach(a=>{if(s.length||a.marks.length){let o=0,l=0;for(;o<s.length&&l<a.marks.length;){let u=a.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(s[o][0])||u.type.spec.spanning===!1)break;o++,l++}for(;o<s.length;)r=s.pop()[1];for(;l<a.marks.length;){let u=a.marks[l++],c=this.serializeMark(u,a.isInline,n);c&&(s.push([u,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(this.serializeNodeInner(a,n))}),i}serializeNodeInner(t,n){let{dom:i,contentDOM:r}=zc($h(n),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,r)}return i}serializeNode(t,n={}){let i=this.serializeNodeInner(t,n);for(let r=t.marks.length-1;r>=0;r--){let s=this.serializeMark(t.marks[r],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,n,i={}){let r=this.marks[t.type.name];return r&&zc($h(i),r(t,n),null,t.attrs)}static renderSpec(t,n,i=null,r){return zc(t,n,i,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ka(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=Ek(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return Ek(t.marks)}}function Ek(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function $h(e){return e.document||window.document}const Ik=new WeakMap;function GF(e){let t=Ik.get(e);return t===void 0&&Ik.set(e,t=qF(e)),t}function qF(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let r=0;r<i.length;r++)n(i[r]);else for(let r in i)n(i[r])}return n(e),t}function zc(e,t,n,i){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let r=t[0],s;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(i&&(s=GF(i))&&s.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=r.indexOf(" ");a>0&&(n=r.slice(0,a),r=r.slice(a+1));let o,l=n?e.createElementNS(n,r):e.createElement(r),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let f in u)if(u[f]!=null){let h=f.indexOf(" ");h>0?l.setAttributeNS(f.slice(0,h),f.slice(h+1),u[f]):l.setAttribute(f,u[f])}}for(let f=c;f<t.length;f++){let h=t[f];if(h===0){if(f<t.length-1||f>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:m,contentDOM:g}=zc(e,h,n,i);if(l.appendChild(m),g){if(o)throw new RangeError("Multiple content holes");o=g}}}return{dom:l,contentDOM:o}}const yC=65535,bC=Math.pow(2,16);function KF(e,t){return e+t*bC}function Ak(e){return e&yC}function YF(e){return(e-(e&yC))/bC}const kC=1,wC=2,Uc=4,SC=8;class jm{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&SC)>0}get deletedBefore(){return(this.delInfo&(kC|Uc))>0}get deletedAfter(){return(this.delInfo&(wC|Uc))>0}get deletedAcross(){return(this.delInfo&Uc)>0}}class Si{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Si.empty)return Si.empty}recover(t){let n=0,i=Ak(t);if(!this.inverted)for(let r=0;r<i;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[i*3]+n+YF(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,i){let r=0,s=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>t)break;let u=this.ranges[o+s],c=this.ranges[o+a],f=l+u;if(t<=f){let h=u?t==l?-1:t==f?1:n:n,m=l+r+(h<0?0:c);if(i)return m;let g=t==(n<0?l:f)?null:KF(o/3,t-l),y=t==l?wC:t==f?kC:Uc;return(n<0?t!=l:t!=f)&&(y|=SC),new jm(m,y,g)}r+=c-u}return i?t+r:new jm(t+r,0,null)}touches(t,n){let i=0,r=Ak(n),s=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?i:0);if(l>t)break;let u=this.ranges[o+s],c=l+u;if(t<=c&&o==r*3)return!0;i+=this.ranges[o+a]-u}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,s=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?s:0),l=a+(this.inverted?0:s),u=this.ranges[r+n],c=this.ranges[r+i];t(o,o+u,l,l+c),s+=c-u}}invert(){return new Si(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?Si.empty:new Si(t<0?[0,-t,0]:[0,0,t])}}Si.empty=new Si([]);class ou{constructor(t,n,i=0,r=t?t.length:0){this.mirror=n,this.from=i,this.to=r,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new ou(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,i=this._maps.length;n<t._maps.length;n++){let r=t.getMirror(n);this.appendMap(t._maps[n],r!=null&&r<n?i+r:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,i=this._maps.length+t._maps.length;n>=0;n--){let r=t.getMirror(n);this.appendMap(t._maps[n].invert(),r!=null&&r>n?i-r-1:void 0)}}invert(){let t=new ou;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let i=this.from;i<this.to;i++)t=this._maps[i].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,i){let r=0;for(let s=this.from;s<this.to;s++){let a=this._maps[s],o=a.mapResult(t,n);if(o.recover!=null){let l=this.getMirror(s);if(l!=null&&l>s&&l<this.to){s=l,t=this._maps[l].recover(o.recover);continue}}r|=o.delInfo,t=o.pos}return i?t:new jm(t,r,null)}}const Vh=Object.create(null);class Kn{getMap(){return Si.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let i=Vh[n.stepType];if(!i)throw new RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in Vh)throw new RangeError("Duplicate use of step JSON ID "+t);return Vh[t]=n,n.prototype.jsonID=t,n}}class rn{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new rn(t,null)}static fail(t){return new rn(null,t)}static fromReplace(t,n,i,r){try{return rn.ok(t.replace(n,i,r))}catch(s){if(s instanceof dd)return rn.fail(s.message);throw s}}}function Hp(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let s=e.child(r);s.content.size&&(s=s.copy(Hp(s.content,t,s))),s.isInline&&(s=t(s,n,r)),i.push(s)}return Ee.fromArray(i)}class Es extends Kn{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=t.resolve(this.from),r=i.node(i.sharedDepth(this.to)),s=new Re(Hp(n.content,(a,o)=>!a.isAtom||!o.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),r),n.openStart,n.openEnd);return rn.fromReplace(t,this.from,this.to,s)}invert(){return new br(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Es(n.pos,i.pos,this.mark)}merge(t){return t instanceof Es&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Es(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Es(n.from,n.to,t.markFromJSON(n.mark))}}Kn.jsonID("addMark",Es);class br extends Kn{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new Re(Hp(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),n.openStart,n.openEnd);return rn.fromReplace(t,this.from,this.to,i)}invert(){return new Es(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new br(n.pos,i.pos,this.mark)}merge(t){return t instanceof br&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new br(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new br(n.from,n.to,t.markFromJSON(n.mark))}}Kn.jsonID("removeMark",br);class Is extends Kn{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return rn.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return rn.fromReplace(t,this.pos,this.pos+1,new Re(Ee.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(i))return new Is(this.pos,n.marks[r]);return new Is(this.pos,this.mark)}}return new Oa(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Is(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Is(n.pos,t.markFromJSON(n.mark))}}Kn.jsonID("addNodeMark",Is);class Oa extends Kn{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return rn.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return rn.fromReplace(t,this.pos,this.pos+1,new Re(Ee.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Is(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Oa(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Oa(n.pos,t.markFromJSON(n.mark))}}Kn.jsonID("removeNodeMark",Oa);class pn extends Kn{constructor(t,n,i,r=!1){super(),this.from=t,this.to=n,this.slice=i,this.structure=r}apply(t){return this.structure&&Gm(t,this.from,this.to)?rn.fail("Structure replace would overwrite content"):rn.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Si([this.from,this.to-this.from,this.slice.size])}invert(t){return new pn(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deletedAcross&&i.deletedAcross?null:new pn(n.pos,Math.max(n.pos,i.pos),this.slice,this.structure)}merge(t){if(!(t instanceof pn)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Re.empty:new Re(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new pn(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Re.empty:new Re(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new pn(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new pn(n.from,n.to,Re.fromJSON(t,n.slice),!!n.structure)}}Kn.jsonID("replace",pn);class bn extends Kn{constructor(t,n,i,r,s,a,o=!1){super(),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=s,this.insert=a,this.structure=o}apply(t){if(this.structure&&(Gm(t,this.from,this.gapFrom)||Gm(t,this.gapTo,this.to)))return rn.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return rn.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?rn.fromReplace(t,this.from,this.to,i):rn.fail("Content does not fit in gap")}getMap(){return new Si([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new bn(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),s=this.to==this.gapTo?i.pos:t.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||r<n.pos||s>i.pos?null:new bn(n.pos,i.pos,r,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new bn(n.from,n.to,n.gapFrom,n.gapTo,Re.fromJSON(t,n.slice),n.insert,!!n.structure)}}Kn.jsonID("replaceAround",bn);function Gm(e,t,n){let i=e.resolve(t),r=n-t,s=i.depth;for(;r>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,r--;if(r>0){let a=i.node(s).maybeChild(i.indexAfter(s));for(;r>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,r--}}return!1}function JF(e,t,n,i){let r=[],s=[],a,o;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let f=l.marks;if(!i.isInSet(f)&&c.type.allowsMarkType(i.type)){let h=Math.max(u,t),m=Math.min(u+l.nodeSize,n),g=i.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(g)||(a&&a.to==h&&a.mark.eq(f[y])?a.to=m:r.push(a=new br(h,m,f[y])));o&&o.to==h?o.to=m:s.push(o=new Es(h,m,i))}}),r.forEach(l=>e.step(l)),s.forEach(l=>e.step(l))}function XF(e,t,n,i){let r=[],s=0;e.doc.nodesBetween(t,n,(a,o)=>{if(!a.isInline)return;s++;let l=null;if(i instanceof sf){let u=a.marks,c;for(;c=i.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else i?i.isInSet(a.marks)&&(l=[i]):l=a.marks;if(l&&l.length){let u=Math.min(o+a.nodeSize,n);for(let c=0;c<l.length;c++){let f=l[c],h;for(let m=0;m<r.length;m++){let g=r[m];g.step==s-1&&f.eq(r[m].style)&&(h=g)}h?(h.to=u,h.step=s):r.push({style:f,from:Math.max(o,t),to:u,step:s})}}}),r.forEach(a=>e.step(new br(a.from,a.to,a.style)))}function jp(e,t,n,i=n.contentMatch,r=!0){let s=e.doc.nodeAt(t),a=[],o=t+1;for(let l=0;l<s.childCount;l++){let u=s.child(l),c=o+u.nodeSize,f=i.matchType(u.type);if(!f)a.push(new pn(o,c,Re.empty));else{i=f;for(let h=0;h<u.marks.length;h++)n.allowsMarkType(u.marks[h].type)||e.step(new br(o,c,u.marks[h]));if(r&&u.isText&&n.whitespace!="pre"){let h,m=/\r?\n|\r/g,g;for(;h=m.exec(u.text);)g||(g=new Re(Ee.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),a.push(new pn(o+h.index,o+h.index+h[0].length,g))}}o=c}if(!i.validEnd){let l=i.fillBefore(Ee.empty,!0);e.replace(o,o,new Re(l,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function ZF(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function al(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let i=e.depth;;--i){let r=e.$from.node(i),s=e.$from.index(i),a=e.$to.indexAfter(i);if(i<e.depth&&r.canReplace(s,a,n))return i;if(i==0||r.type.spec.isolating||!ZF(r,s,a))break}return null}function QF(e,t,n){let{$from:i,$to:r,depth:s}=t,a=i.before(s+1),o=r.after(s+1),l=a,u=o,c=Ee.empty,f=0;for(let g=s,y=!1;g>n;g--)y||i.index(g)>0?(y=!0,c=Ee.from(i.node(g).copy(c)),f++):l--;let h=Ee.empty,m=0;for(let g=s,y=!1;g>n;g--)y||r.after(g+1)<r.end(g)?(y=!0,h=Ee.from(r.node(g).copy(h)),m++):u++;e.step(new bn(l,u,a,o,new Re(c.append(h),f,m),c.size-f,!0))}function Gp(e,t,n=null,i=e){let r=eB(e,t),s=r&&tB(i,t);return s?r.map(xk).concat({type:t,attrs:n}).concat(s.map(xk)):null}function xk(e){return{type:e,attrs:null}}function eB(e,t){let{parent:n,startIndex:i,endIndex:r}=e,s=n.contentMatchAt(i).findWrapping(t);if(!s)return null;let a=s.length?s[0]:t;return n.canReplaceWith(i,r,a)?s:null}function tB(e,t){let{parent:n,startIndex:i,endIndex:r}=e,s=n.child(i),a=t.contentMatch.findWrapping(s.type);if(!a)return null;let l=(a.length?a[a.length-1]:t).contentMatch;for(let u=i;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:a}function nB(e,t,n){let i=Ee.empty;for(let a=n.length-1;a>=0;a--){if(i.size){let o=n[a].type.contentMatch.matchFragment(i);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=Ee.from(n[a].type.create(n[a].attrs,i))}let r=t.start,s=t.end;e.step(new bn(r,s,r,s,new Re(i,0,0),n.length,!0))}function iB(e,t,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(a,o)=>{let l=typeof r=="function"?r(a):r;if(a.isTextblock&&!a.hasMarkup(i,l)&&rB(e.doc,e.mapping.slice(s).map(o),i)){let u=null;if(i.schema.linebreakReplacement){let m=i.whitespace=="pre",g=!!i.contentMatch.matchType(i.schema.linebreakReplacement);m&&!g?u=!1:!m&&g&&(u=!0)}u===!1&&CC(e,a,o,s),jp(e,e.mapping.slice(s).map(o,1),i,void 0,u===null);let c=e.mapping.slice(s),f=c.map(o,1),h=c.map(o+a.nodeSize,1);return e.step(new bn(f,h,f+1,h-1,new Re(Ee.from(i.create(l,null,a.marks)),0,0),1,!0)),u===!0&&_C(e,a,o,s),!1}})}function _C(e,t,n,i){t.forEach((r,s)=>{if(r.isText){let a,o=/\r?\n|\r/g;for(;a=o.exec(r.text);){let l=e.mapping.slice(i).map(n+1+s+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function CC(e,t,n,i){t.forEach((r,s)=>{if(r.type==r.type.schema.linebreakReplacement){let a=e.mapping.slice(i).map(n+1+s);e.replaceWith(a,a+1,t.type.schema.text(`
`))}})}function rB(e,t,n){let i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}function sB(e,t,n,i,r){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,r||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new bn(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new Re(Ee.from(a),0,0),1,!0))}function Kr(e,t,n=1,i){let r=e.resolve(t),s=r.depth-n,a=i&&i[i.length-1]||r.parent;if(s<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!a.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,c=n-2;u>s;u--,c--){let f=r.node(u),h=r.index(u);if(f.type.spec.isolating)return!1;let m=f.content.cutByIndex(h,f.childCount),g=i&&i[c+1];g&&(m=m.replaceChild(0,g.type.create(g.attrs)));let y=i&&i[c]||f;if(!f.canReplace(h+1,f.childCount)||!y.type.validContent(m))return!1}let o=r.indexAfter(s),l=i&&i[0];return r.node(s).canReplaceWith(o,o,l?l.type:r.node(s+1).type)}function aB(e,t,n=1,i){let r=e.doc.resolve(t),s=Ee.empty,a=Ee.empty;for(let o=r.depth,l=r.depth-n,u=n-1;o>l;o--,u--){s=Ee.from(r.node(o).copy(s));let c=i&&i[u];a=Ee.from(c?c.type.create(c.attrs,a):r.node(o).copy(a))}e.step(new pn(t,t,new Re(s.append(a),n,n),!0))}function Hs(e,t){let n=e.resolve(t),i=n.index();return TC(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function oB(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let r=0;r<t.childCount;r++){let s=t.child(r),a=s.type==i?e.type.schema.nodes.text:s.type;if(n=n.matchType(a),!n||!e.type.allowsMarks(s.marks))return!1}return n.validEnd}function TC(e,t){return!!(e&&t&&!e.isLeaf&&oB(e,t))}function af(e,t,n=-1){let i=e.resolve(t);for(let r=i.depth;;r--){let s,a,o=i.index(r);if(r==i.depth?(s=i.nodeBefore,a=i.nodeAfter):n>0?(s=i.node(r+1),o++,a=i.node(r).maybeChild(o)):(s=i.node(r).maybeChild(o-1),a=i.node(r+1)),s&&!s.isTextblock&&TC(s,a)&&i.node(r).canReplace(o,o+1))return t;if(r==0)break;t=n<0?i.before(r):i.after(r)}}function lB(e,t,n){let i=null,{linebreakReplacement:r}=e.doc.type.schema,s=e.doc.resolve(t-n),a=s.node().type;if(r&&a.inlineContent){let c=a.whitespace=="pre",f=!!a.contentMatch.matchType(r);c&&!f?i=!1:!c&&f&&(i=!0)}let o=e.steps.length;if(i===!1){let c=e.doc.resolve(t+n);CC(e,c.node(),c.before(),o)}a.inlineContent&&jp(e,t+n-1,a,s.node().contentMatchAt(s.index()),i==null);let l=e.mapping.slice(o),u=l.map(t-n);if(e.step(new pn(u,l.map(t+n,-1),Re.empty,!0)),i===!0){let c=e.doc.resolve(u);_C(e,c.node(),c.before(),e.steps.length)}return e}function uB(e,t,n){let i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(i.parentOffset==0)for(let r=i.depth-1;r>=0;r--){let s=i.index(r);if(i.node(r).canReplaceWith(s,s,n))return i.before(r+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let s=i.indexAfter(r);if(i.node(r).canReplaceWith(s,s,n))return i.after(r+1);if(s<i.node(r).childCount)return null}return null}function EC(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let s=0;s<n.openStart;s++)r=r.firstChild.content;for(let s=1;s<=(n.openStart==0&&n.size?2:1);s++)for(let a=i.depth;a>=0;a--){let o=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,l=i.index(a)+(o>0?1:0),u=i.node(a),c=!1;if(s==1)c=u.canReplace(l,l,r);else{let f=u.contentMatchAt(l).findWrapping(r.firstChild.type);c=f&&u.canReplaceWith(l,l,f[0])}if(c)return o==0?i.pos:o<0?i.before(a+1):i.after(a+1)}return null}function of(e,t,n=t,i=Re.empty){if(t==n&&!i.size)return null;let r=e.resolve(t),s=e.resolve(n);return IC(r,s,i)?new pn(t,n,i):new cB(r,s,i).fit()}function IC(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class cB{constructor(t,n,i){this.$from=t,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=Ee.empty;for(let r=0;r<=t.depth;r++){let s=t.node(r);this.frontier.push({type:s.type,match:s.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=Ee.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let s=this.placed,a=i.depth,o=r.depth;for(;a&&o&&s.childCount==1;)s=s.firstChild.content,a--,o--;let l=new Re(s,a,o);return t>-1?new bn(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new pn(i.pos,r.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,r=this.unplaced.openEnd;i<t;i++){let s=n.firstChild;if(n.childCount>1&&(r=0),s.type.spec.isolating&&r<=i){t=i;break}n=s.content}for(let n=1;n<=2;n++)for(let i=n==1?t:this.unplaced.openStart;i>=0;i--){let r,s=null;i?(s=Lh(this.unplaced.content,i-1).firstChild,r=s.content):r=this.unplaced.content;let a=r.firstChild;for(let o=this.depth;o>=0;o--){let{type:l,match:u}=this.frontier[o],c,f=null;if(n==1&&(a?u.matchType(a.type)||(f=u.fillBefore(Ee.from(a),!1)):s&&l.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:o,parent:s,inject:f};if(n==2&&a&&(c=u.findWrapping(a.type)))return{sliceDepth:i,frontierDepth:o,parent:s,wrap:c};if(s&&u.matchType(s.type))break}}}openMore(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=Lh(t,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Re(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=Lh(t,n);if(r.childCount<=1&&n>0){let s=t.size-n<=n+r.size;this.unplaced=new Re(Ol(t,n-1,1),n-1,s?n-1:i)}else this.unplaced=new Re(Ol(t,n,1),n,i)}placeNodes({sliceDepth:t,frontierDepth:n,parent:i,inject:r,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let y=0;y<s.length;y++)this.openFrontierNode(s[y]);let a=this.unplaced,o=i?i.content:a.content,l=a.openStart-t,u=0,c=[],{match:f,type:h}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)c.push(r.child(y));f=f.matchFragment(r)}let m=o.size+t-(a.content.size-a.openEnd);for(;u<o.childCount;){let y=o.child(u),b=f.matchType(y.type);if(!b)break;u++,(u>1||l==0||y.content.size)&&(f=b,c.push(AC(y.mark(h.allowedMarks(y.marks)),u==1?l:0,u==o.childCount?m:-1)))}let g=u==o.childCount;g||(m=-1),this.placed=Ml(this.placed,n,Ee.from(c)),this.frontier[n].match=f,g&&m<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,b=o;y<m;y++){let k=b.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),b=k.content}this.unplaced=g?t==0?Re.empty:new Re(Ol(a.content,t-1,1),t-1,m<0?a.openEnd:t-1):new Re(Ol(a.content,t,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!Nh(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:i}=this.$to,r=this.$to.after(i);for(;i>1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:i,type:r}=this.frontier[n],s=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),a=Nh(t,n,r,i,s);if(a){for(let o=n-1;o>=0;o--){let{match:l,type:u}=this.frontier[o],c=Nh(t,o,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:a,move:s?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ml(this.placed,n.depth,n.fit)),t=n.move;for(let i=n.depth+1;i<=t.depth;i++){let r=t.node(i),s=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,s)}return t}openFrontierNode(t,n=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=Ml(this.placed,this.depth,Ee.from(t.create(n,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ee.empty,!0);n.childCount&&(this.placed=Ml(this.placed,this.frontier.length,n))}}function Ol(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Ol(e.firstChild.content,t-1,n)))}function Ml(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Ml(e.lastChild.content,t-1,n)))}function Lh(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function AC(e,t,n){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,AC(i.firstChild,t-1,i.childCount==1?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(Ee.empty,!0)))),e.copy(i)}function Nh(e,t,n,i,r){let s=e.node(t),a=r?e.indexAfter(t):e.index(t);if(a==s.childCount&&!n.compatibleContent(s.type))return null;let o=i.fillBefore(s.content,!0,a);return o&&!dB(n,s.content,a)?o:null}function dB(e,t,n){for(let i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}function fB(e){return e.spec.defining||e.spec.definingForContent}function hB(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),s=e.doc.resolve(n);if(IC(r,s,i))return e.step(new pn(t,n,i));let a=DC(r,e.doc.resolve(n));a[a.length-1]==0&&a.pop();let o=-(r.depth+1);a.unshift(o);for(let h=r.depth,m=r.pos-1;h>0;h--,m--){let g=r.node(h).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;a.indexOf(h)>-1?o=h:r.before(h)==m&&a.splice(1,0,-h)}let l=a.indexOf(o),u=[],c=i.openStart;for(let h=i.content,m=0;;m++){let g=h.firstChild;if(u.push(g),m==i.openStart)break;h=g.content}for(let h=c-1;h>=0;h--){let m=u[h],g=fB(m.type);if(g&&!m.sameMarkup(r.node(Math.abs(o)-1)))c=h;else if(g||!m.type.isTextblock)break}for(let h=i.openStart;h>=0;h--){let m=(h+c+1)%(i.openStart+1),g=u[m];if(g)for(let y=0;y<a.length;y++){let b=a[(y+l)%a.length],k=!0;b<0&&(k=!1,b=-b);let w=r.node(b-1),E=r.index(b-1);if(w.canReplaceWith(E,E,g.type,g.marks))return e.replace(r.before(b),k?s.after(b):n,new Re(xC(i.content,0,i.openStart,m),m,i.openEnd))}}let f=e.steps.length;for(let h=a.length-1;h>=0&&(e.replace(t,n,i),!(e.steps.length>f));h--){let m=a[h];m<0||(t=r.before(m),n=s.after(m))}}function xC(e,t,n,i,r){if(t<n){let s=e.firstChild;e=e.replaceChild(0,s.copy(xC(s.content,t+1,n,i,s)))}if(t>i){let s=r.contentMatchAt(0),a=s.fillBefore(e).append(e);e=a.append(s.matchFragment(a).fillBefore(Ee.empty,!0))}return e}function mB(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=uB(e.doc,t,i.type);r!=null&&(t=n=r)}e.replaceRange(t,n,new Re(Ee.from(i),0,0))}function gB(e,t,n){let i=e.doc.resolve(t),r=e.doc.resolve(n),s=DC(i,r);for(let a=0;a<s.length;a++){let o=s[a],l=a==s.length-1;if(l&&o==0||i.node(o).type.contentMatch.validEnd)return e.delete(i.start(o),r.end(o));if(o>0&&(l||i.node(o-1).canReplace(i.index(o-1),r.indexAfter(o-1))))return e.delete(i.before(o),r.after(o))}for(let a=1;a<=i.depth&&a<=r.depth;a++)if(t-i.start(a)==i.depth-a&&n>i.end(a)&&r.end(a)-n!=r.depth-a&&i.start(a-1)==r.start(a-1)&&i.node(a-1).canReplace(i.index(a-1),r.index(a-1)))return e.delete(i.before(a),n);e.delete(t,n)}function DC(e,t){let n=[],i=Math.min(e.depth,t.depth);for(let r=i;r>=0;r--){let s=e.start(r);if(s<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(s==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==s-1)&&n.push(r)}return n}class Oo extends Kn{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return rn.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let r=n.type.create(i,null,n.marks);return rn.fromReplace(t,this.pos,this.pos+1,new Re(Ee.from(r),0,n.isLeaf?0:1))}getMap(){return Si.empty}invert(t){return new Oo(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Oo(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Oo(n.pos,n.attr,n.value)}}Kn.jsonID("attr",Oo);class lu extends Kn{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return rn.ok(i)}getMap(){return Si.empty}invert(t){return new lu(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new lu(n.attr,n.value)}}Kn.jsonID("docAttr",lu);let zo=class extends Error{};zo=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};zo.prototype=Object.create(Error.prototype);zo.prototype.constructor=zo;zo.prototype.name="TransformError";class pB{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new ou}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new zo(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,i=Re.empty){let r=of(this.doc,t,n,i);return r&&this.step(r),this}replaceWith(t,n,i){return this.replace(t,n,new Re(Ee.from(i),0,0))}delete(t,n){return this.replace(t,n,Re.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,i){return hB(this,t,n,i),this}replaceRangeWith(t,n,i){return mB(this,t,n,i),this}deleteRange(t,n){return gB(this,t,n),this}lift(t,n){return QF(this,t,n),this}join(t,n=1){return lB(this,t,n),this}wrap(t,n){return nB(this,t,n),this}setBlockType(t,n=t,i,r=null){return iB(this,t,n,i,r),this}setNodeMarkup(t,n,i=null,r){return sB(this,t,n,i,r),this}setNodeAttribute(t,n,i){return this.step(new Oo(t,n,i)),this}setDocAttribute(t,n){return this.step(new lu(t,n)),this}addNodeMark(t,n){return this.step(new Is(t,n)),this}removeNodeMark(t,n){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(n instanceof xt)n.isInSet(i.marks)&&this.step(new Oa(t,n));else{let r=i.marks,s,a=[];for(;s=n.isInSet(r);)a.push(new Oa(t,s)),r=s.removeFromSet(r);for(let o=a.length-1;o>=0;o--)this.step(a[o])}return this}split(t,n=1,i){return aB(this,t,n,i),this}addMark(t,n,i){return JF(this,t,n,i),this}removeMark(t,n,i){return XF(this,t,n,i),this}clearIncompatible(t,n,i){return jp(this,t,n,i),this}}const Rh=Object.create(null);class it{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new vB(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Re.empty){let i=n.content.lastChild,r=null;for(let o=0;o<n.openEnd;o++)r=i,i=i.lastChild;let s=t.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:l,$to:u}=a[o],c=t.mapping.slice(s);t.replaceRange(c.map(l.pos),c.map(u.pos),o?Re.empty:n),o==0&&Ok(t,s,(i?i.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(t,n){let i=t.steps.length,r=this.ranges;for(let s=0;s<r.length;s++){let{$from:a,$to:o}=r[s],l=t.mapping.slice(i),u=l.map(a.pos),c=l.map(o.pos);s?t.deleteRange(u,c):(t.replaceRangeWith(u,c,n),Ok(t,i,n.isInline?-1:1))}}static findFrom(t,n,i=!1){let r=t.parent.inlineContent?new et(t):wo(t.node(0),t.parent,t.pos,t.index(),n,i);if(r)return r;for(let s=t.depth-1;s>=0;s--){let a=n<0?wo(t.node(0),t.node(s),t.before(s+1),t.index(s),n,i):wo(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,n,i);if(a)return a}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Ei(t.node(0))}static atStart(t){return wo(t,t,0,0,1)||new Ei(t)}static atEnd(t){return wo(t,t,t.content.size,t.childCount,-1)||new Ei(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=Rh[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in Rh)throw new RangeError("Duplicate use of selection JSON ID "+t);return Rh[t]=n,n.prototype.jsonID=t,n}getBookmark(){return et.between(this.$anchor,this.$head).getBookmark()}}it.prototype.visible=!0;class vB{constructor(t,n){this.$from=t,this.$to=n}}let Dk=!1;function Pk(e){!Dk&&!e.parent.inlineContent&&(Dk=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class et extends it{constructor(t,n=t){Pk(t),Pk(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return it.near(i);let r=t.resolve(n.map(this.anchor));return new et(r.parent.inlineContent?r:i,i)}replace(t,n=Re.empty){if(super.replace(t,n),n==Re.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof et&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new lf(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new et(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let r=t.resolve(n);return new this(r,i==n?r:t.resolve(i))}static between(t,n,i){let r=t.pos-n.pos;if((!i||r)&&(i=r>=0?1:-1),!n.parent.inlineContent){let s=it.findFrom(n,i,!0)||it.findFrom(n,-i,!0);if(s)n=s.$head;else return it.near(n,i)}return t.parent.inlineContent||(r==0?t=n:(t=(it.findFrom(t,-i,!0)||it.findFrom(t,i,!0)).$anchor,t.pos<n.pos!=r<0&&(t=n))),new et(t,n)}}it.jsonID("text",et);class lf{constructor(t,n){this.anchor=t,this.head=n}map(t){return new lf(t.map(this.anchor),t.map(this.head))}resolve(t){return et.between(t.resolve(this.anchor),t.resolve(this.head))}}class Ye extends it{constructor(t){let n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);super(t,i),this.node=n}map(t,n){let{deleted:i,pos:r}=n.mapResult(this.anchor),s=t.resolve(r);return i?it.near(s):new Ye(s)}content(){return new Re(Ee.from(this.node),0,0)}eq(t){return t instanceof Ye&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new qp(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ye(t.resolve(n.anchor))}static create(t,n){return new Ye(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}Ye.prototype.visible=!1;it.jsonID("node",Ye);class qp{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:i}=t.mapResult(this.anchor);return n?new lf(i,i):new qp(i)}resolve(t){let n=t.resolve(this.anchor),i=n.nodeAfter;return i&&Ye.isSelectable(i)?new Ye(n):it.near(n)}}class Ei extends it{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Re.empty){if(n==Re.empty){t.delete(0,t.doc.content.size);let i=it.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new Ei(t)}map(t){return new Ei(t)}eq(t){return t instanceof Ei}getBookmark(){return yB}}it.jsonID("all",Ei);const yB={map(){return this},resolve(e){return new Ei(e)}};function wo(e,t,n,i,r,s=!1){if(t.inlineContent)return et.create(e,n);for(let a=i-(r>0?0:1);r>0?a<t.childCount:a>=0;a+=r){let o=t.child(a);if(o.isAtom){if(!s&&Ye.isSelectable(o))return Ye.create(e,n-(r<0?o.nodeSize:0))}else{let l=wo(e,o,n+r,r<0?o.childCount:0,r,s);if(l)return l}n+=o.nodeSize*r}return null}function Ok(e,t,n){let i=e.steps.length-1;if(i<t)return;let r=e.steps[i];if(!(r instanceof pn||r instanceof bn))return;let s=e.mapping.maps[i],a;s.forEach((o,l,u,c)=>{a==null&&(a=c)}),e.setSelection(it.near(e.doc.resolve(a),n))}const Mk=1,vc=2,$k=4;class bB extends pB{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Mk)&~vc,this.storedMarks=null,this}get selectionSet(){return(this.updated&Mk)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=vc,this}ensureMarks(t){return xt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&vc)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~vc,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let i=this.selection;return n&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||xt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,i){let r=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(i==null&&(i=n),i=i??n,!t)return this.deleteRange(n,i);let s=this.storedMarks;if(!s){let a=this.doc.resolve(n);s=i==n?a.marks():a.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,r.text(t,s)),this.selection.empty||this.setSelection(it.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=$k,this}get scrolledIntoView(){return(this.updated&$k)>0}}function Vk(e,t){return!t||!e?e:e.bind(t)}class $l{constructor(t,n,i){this.name=t,this.init=Vk(n.init,i),this.apply=Vk(n.apply,i)}}const kB=[new $l("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new $l("selection",{init(e,t){return e.selection||it.atStart(t.doc)},apply(e){return e.selection}}),new $l("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new $l("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class Fh{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=kB.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new $l(i.key,i.spec.state,i))})}}class Co{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let i=0;i<this.config.plugins.length;i++)if(i!=n){let r=this.config.plugins[i];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],i=this.applyInner(t),r=null;for(;;){let s=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let l=r?r[a].n:0,u=r?r[a].state:this,c=l<n.length&&o.spec.appendTransaction.call(o,l?n.slice(l):n,u,i);if(c&&i.filterTransaction(c,a)){if(c.setMeta("appendedTransaction",t),!r){r=[];for(let f=0;f<this.config.plugins.length;f++)r.push(f<a?{state:i,n:n.length}:{state:this,n:0})}n.push(c),i=i.applyInner(c),s=!0}r&&(r[a]={state:i,n:n.length})}}if(!s)return{state:i,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Co(this.config),i=this.config.fields;for(let r=0;r<i.length;r++){let s=i[r];n[s.name]=s.apply(t,this[s.name],this,n)}return n}get tr(){return new bB(this)}static create(t){let n=new Fh(t.doc?t.doc.type.schema:t.schema,t.plugins),i=new Co(n);for(let r=0;r<n.fields.length;r++)i[n.fields[r].name]=n.fields[r].init(t,i);return i}reconfigure(t){let n=new Fh(this.schema,t.plugins),i=n.fields,r=new Co(n);for(let s=0;s<i.length;s++){let a=i[s].name;r[a]=this.hasOwnProperty(a)?this[a]:i[s].init(t,r)}return r}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(i=>i.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],s=r.spec.state;s&&s.toJSON&&(n[i]=s.toJSON.call(r,this[r.key]))}return n}static fromJSON(t,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new Fh(t.schema,t.plugins),s=new Co(r);return r.fields.forEach(a=>{if(a.name=="doc")s.doc=Ps.fromJSON(t.schema,n.doc);else if(a.name=="selection")s.selection=it.fromJSON(s.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let o in i){let l=i[o],u=l.spec.state;if(l.key==a.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,o)){s[a.name]=u.fromJSON.call(l,t,n[o],s);return}}s[a.name]=a.init(t,s)}}),s}}function PC(e,t,n){for(let i in e){let r=e[i];r instanceof Function?r=r.bind(t):i=="handleDOMEvents"&&(r=PC(r,t,{})),n[i]=r}return n}class yi{constructor(t){this.spec=t,this.props={},t.props&&PC(t.props,this,this.props),this.key=t.key?t.key.key:OC("plugin")}getState(t){return t[this.key]}}const Bh=Object.create(null);function OC(e){return e in Bh?e+"$"+ ++Bh[e]:(Bh[e]=0,e+"$")}class xr{constructor(t="key"){this.key=OC(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Pn=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Uo=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let qm=null;const Ur=function(e,t,n){let i=qm||(qm=document.createRange());return i.setEnd(e,n??e.nodeValue.length),i.setStart(e,t||0),i},wB=function(){qm=null},Ma=function(e,t,n,i){return n&&(Lk(e,t,n,i,-1)||Lk(e,t,n,i,1))},SB=/^(img|br|input|textarea|hr)$/i;function Lk(e,t,n,i,r){for(var s;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Ri(e))){let a=e.parentNode;if(!a||a.nodeType!=1||Ru(e)||SB.test(e.nodeName)||e.contentEditable=="false")return!1;t=Pn(e)+(r<0?0:1),e=a}else if(e.nodeType==1){let a=e.childNodes[t+(r<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((s=a.pmViewDesc)===null||s===void 0)&&s.ignoreForSelection)t+=r;else return!1;else e=a,t=r<0?Ri(e):0}else return!1}}function Ri(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function _B(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Ri(e)}else if(e.parentNode&&!Ru(e))t=Pn(e),e=e.parentNode;else return null}}function CB(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Ru(e))t=Pn(e)+1,e=e.parentNode;else return null}}function TB(e,t,n){for(let i=t==0,r=t==Ri(e);i||r;){if(e==n)return!0;let s=Pn(e);if(e=e.parentNode,!e)return!1;i=i&&s==0,r=r&&s==Ri(e)}}function Ru(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const uf=function(e){return e.focusNode&&Ma(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function oa(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function EB(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function IB(e,t,n){if(e.caretPositionFromPoint)try{let i=e.caretPositionFromPoint(t,n);if(i)return{node:i.offsetNode,offset:Math.min(Ri(i.offsetNode),i.offset)}}catch{}if(e.caretRangeFromPoint){let i=e.caretRangeFromPoint(t,n);if(i)return{node:i.startContainer,offset:Math.min(Ri(i.startContainer),i.startOffset)}}}const _r=typeof navigator<"u"?navigator:null,Nk=typeof document<"u"?document:null,js=_r&&_r.userAgent||"",Km=/Edge\/(\d+)/.exec(js),MC=/MSIE \d/.exec(js),Ym=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(js),hi=!!(MC||Ym||Km),Ms=MC?document.documentMode:Ym?+Ym[1]:Km?+Km[1]:0,rr=!hi&&/gecko\/(\d+)/i.test(js);rr&&+(/Firefox\/(\d+)/.exec(js)||[0,0])[1];const Jm=!hi&&/Chrome\/(\d+)/.exec(js),Hn=!!Jm,$C=Jm?+Jm[1]:0,ii=!hi&&!!_r&&/Apple Computer/.test(_r.vendor),Wo=ii&&(/Mobile\/\w+/.test(js)||!!_r&&_r.maxTouchPoints>2),Vi=Wo||(_r?/Mac/.test(_r.platform):!1),AB=_r?/Win/.test(_r.platform):!1,Hr=/Android \d/.test(js),Fu=!!Nk&&"webkitFontSmoothing"in Nk.documentElement.style,xB=Fu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function DB(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Nr(e,t){return typeof e=="number"?e:e[t]}function PB(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Rk(e,t,n){let i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,s=e.dom.ownerDocument;for(let a=n||e.dom;a;){if(a.nodeType!=1){a=Uo(a);continue}let o=a,l=o==s.body,u=l?DB(s):PB(o),c=0,f=0;if(t.top<u.top+Nr(i,"top")?f=-(u.top-t.top+Nr(r,"top")):t.bottom>u.bottom-Nr(i,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Nr(r,"top")-u.top:t.bottom-u.bottom+Nr(r,"bottom")),t.left<u.left+Nr(i,"left")?c=-(u.left-t.left+Nr(r,"left")):t.right>u.right-Nr(i,"right")&&(c=t.right-u.right+Nr(r,"right")),c||f)if(l)s.defaultView.scrollBy(c,f);else{let m=o.scrollLeft,g=o.scrollTop;f&&(o.scrollTop+=f),c&&(o.scrollLeft+=c);let y=o.scrollLeft-m,b=o.scrollTop-g;t={left:t.left-y,top:t.top-b,right:t.right-y,bottom:t.bottom-b}}let h=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(h))break;a=h=="absolute"?a.offsetParent:Uo(a)}}function OB(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),i,r;for(let s=(t.left+t.right)/2,a=n+1;a<Math.min(innerHeight,t.bottom);a+=5){let o=e.root.elementFromPoint(s,a);if(!o||o==e.dom||!e.dom.contains(o))continue;let l=o.getBoundingClientRect();if(l.top>=n-20){i=o,r=l.top;break}}return{refDOM:i,refTop:r,stack:VC(e.dom)}}function VC(e){let t=[],n=e.ownerDocument;for(let i=e;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=Uo(i));return t}function MB({refDOM:e,refTop:t,stack:n}){let i=e?e.getBoundingClientRect().top:0;LC(n,i==0?0:i-t)}function LC(e,t){for(let n=0;n<e.length;n++){let{dom:i,top:r,left:s}=e[n];i.scrollTop!=r+t&&(i.scrollTop=r+t),i.scrollLeft!=s&&(i.scrollLeft=s)}}let ho=null;function $B(e){if(e.setActive)return e.setActive();if(ho)return e.focus(ho);let t=VC(e);e.focus(ho==null?{get preventScroll(){return ho={preventScroll:!0},!0}}:void 0),ho||(ho=!1,LC(t,0))}function NC(e,t){let n,i=2e8,r,s=0,a=t.top,o=t.top,l,u;for(let c=e.firstChild,f=0;c;c=c.nextSibling,f++){let h;if(c.nodeType==1)h=c.getClientRects();else if(c.nodeType==3)h=Ur(c).getClientRects();else continue;for(let m=0;m<h.length;m++){let g=h[m];if(g.top<=a&&g.bottom>=o){a=Math.max(g.bottom,a),o=Math.min(g.top,o);let y=g.left>t.left?g.left-t.left:g.right<t.left?t.left-g.right:0;if(y<i){n=c,i=y,r=y&&n.nodeType==3?{left:g.right<t.left?g.right:g.left,top:t.top}:t,c.nodeType==1&&y&&(s=f+(t.left>=(g.left+g.right)/2?1:0));continue}}else g.top>t.top&&!l&&g.left<=t.left&&g.right>=t.left&&(l=c,u={left:Math.max(g.left,Math.min(g.right,t.left)),top:g.top});!n&&(t.left>=g.right&&t.top>=g.top||t.left>=g.left&&t.top>=g.bottom)&&(s=f+1)}}return!n&&l&&(n=l,r=u,i=0),n&&n.nodeType==3?VB(n,r):!n||i&&n.nodeType==1?{node:e,offset:s}:NC(n,r)}function VB(e,t){let n=e.nodeValue.length,i=document.createRange();for(let r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);let s=ps(i,1);if(s.top!=s.bottom&&Kp(t,s))return{node:e,offset:r+(t.left>=(s.left+s.right)/2?1:0)}}return{node:e,offset:0}}function Kp(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function LB(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function NB(e,t,n){let{node:i,offset:r}=NC(t,n),s=-1;if(i.nodeType==1&&!i.firstChild){let a=i.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(i,r,s)}function RB(e,t,n,i){let r=-1;for(let s=t,a=!1;s!=e.dom;){let o=e.docView.nearestDesc(s,!0),l;if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)&&((l=o.dom.getBoundingClientRect()).width||l.height)&&(o.node.isBlock&&o.parent&&(!a&&l.left>i.left||l.top>i.top?r=o.posBefore:(!a&&l.right<i.left||l.bottom<i.top)&&(r=o.posAfter),a=!0),!o.contentDOM&&r<0&&!o.node.isText))return(o.node.isBlock?i.top<(l.top+l.bottom)/2:i.left<(l.left+l.right)/2)?o.posBefore:o.posAfter;s=o.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,-1)}function RC(e,t,n){let i=e.childNodes.length;if(i&&n.top<n.bottom)for(let r=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),s=r;;){let a=e.childNodes[s];if(a.nodeType==1){let o=a.getClientRects();for(let l=0;l<o.length;l++){let u=o[l];if(Kp(t,u))return RC(a,t,u)}}if((s=(s+1)%i)==r)break}return e}function FB(e,t){let n=e.dom.ownerDocument,i,r=0,s=IB(n,t.left,t.top);s&&({node:i,offset:r}=s);let a=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),o;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let u=e.dom.getBoundingClientRect();if(!Kp(t,u)||(a=RC(e.dom,t,u),!a))return null}if(ii)for(let u=a;i&&u;u=Uo(u))u.draggable&&(i=void 0);if(a=LB(a,t),i){if(rr&&i.nodeType==1&&(r=Math.min(r,i.childNodes.length),r<i.childNodes.length)){let c=i.childNodes[r],f;c.nodeName=="IMG"&&(f=c.getBoundingClientRect()).right<=t.left&&f.bottom>t.top&&r++}let u;Fu&&r&&i.nodeType==1&&(u=i.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&r--,i==e.dom&&r==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:(r==0||i.nodeType!=1||i.childNodes[r-1].nodeName!="BR")&&(o=RB(e,i,r,t))}o==null&&(o=NB(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function Fk(e){return e.top<e.bottom||e.left<e.right}function ps(e,t){let n=e.getClientRects();if(n.length){let i=n[t<0?0:n.length-1];if(Fk(i))return i}return Array.prototype.find.call(n,Fk)||e.getBoundingClientRect()}const BB=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function FC(e,t,n){let{node:i,offset:r,atom:s}=e.docView.domFromPos(t,n<0?-1:1),a=Fu||rr;if(i.nodeType==3)if(a&&(BB.test(i.nodeValue)||(n<0?!r:r==i.nodeValue.length))){let l=ps(Ur(i,r,r),n);if(rr&&r&&/\s/.test(i.nodeValue[r-1])&&r<i.nodeValue.length){let u=ps(Ur(i,r-1,r-1),-1);if(u.top==l.top){let c=ps(Ur(i,r,r+1),-1);if(c.top!=l.top)return Tl(c,c.left<u.left)}}return l}else{let l=r,u=r,c=n<0?1:-1;return n<0&&!r?(u++,c=-1):n>=0&&r==i.nodeValue.length?(l--,c=1):n<0?l--:u++,Tl(ps(Ur(i,l,u),c),c<0)}if(!e.state.doc.resolve(t-(s||0)).parent.inlineContent){if(s==null&&r&&(n<0||r==Ri(i))){let l=i.childNodes[r-1];if(l.nodeType==1)return zh(l.getBoundingClientRect(),!1)}if(s==null&&r<Ri(i)){let l=i.childNodes[r];if(l.nodeType==1)return zh(l.getBoundingClientRect(),!0)}return zh(i.getBoundingClientRect(),n>=0)}if(s==null&&r&&(n<0||r==Ri(i))){let l=i.childNodes[r-1],u=l.nodeType==3?Ur(l,Ri(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Tl(ps(u,1),!1)}if(s==null&&r<Ri(i)){let l=i.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Ur(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return Tl(ps(u,-1),!0)}return Tl(ps(i.nodeType==3?Ur(i):i,-n),n>=0)}function Tl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function zh(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function BC(e,t,n){let i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}function zB(e,t,n){let i=t.selection,r=n=="up"?i.$from:i.$to;return BC(e,t,()=>{let{node:s}=e.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let o=e.docView.nearestDesc(s,!0);if(!o)break;if(o.node.isBlock){s=o.contentDOM||o.dom;break}s=o.dom.parentNode}let a=FC(e,r.pos,1);for(let o=s.firstChild;o;o=o.nextSibling){let l;if(o.nodeType==1)l=o.getClientRects();else if(o.nodeType==3)l=Ur(o,0,o.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const UB=/[\u0590-\u08ac]/;function WB(e,t,n){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,s=!r,a=r==i.parent.content.size,o=e.domSelection();return o?!UB.test(i.parent.textContent)||!o.modify?n=="left"||n=="backward"?s:a:BC(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:f}=e.domSelectionRange(),h=o.caretBidiLevel;o.modify("move",n,"character");let m=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:g,focusOffset:y}=e.domSelectionRange(),b=g&&!m.contains(g.nodeType==1?g:g.parentNode)||l==g&&u==y;try{o.collapse(c,f),l&&(l!=c||u!=f)&&o.extend&&o.extend(l,u)}catch{}return h!=null&&(o.caretBidiLevel=h),b}):i.pos==i.start()||i.pos==i.end()}let Bk=null,zk=null,Uk=!1;function HB(e,t,n){return Bk==t&&zk==n?Uk:(Bk=t,zk=n,Uk=n=="up"||n=="down"?zB(e,t,n):WB(e,t,n))}const Hi=0,Wk=1,ca=2,Cr=3;class Bu{constructor(t,n,i,r){this.parent=t,this.children=n,this.dom=i,this.contentDOM=r,this.dirty=Hi,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,i=this.posAtStart;;n++){let r=this.children[n];if(r==t)return i;i+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,i){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(i<0){let s,a;if(t==this.contentDOM)s=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.previousSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(a)+a.size:this.posAtStart}else{let s,a;if(t==this.contentDOM)s=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;s=t.nextSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(a):this.posAtEnd}let r;if(t==this.dom&&this.contentDOM)r=n>Pn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=t;;s=s.parentNode){if(s==this.dom){r=!1;break}if(s.previousSibling)break}if(r==null&&n==t.childNodes.length)for(let s=t;;s=s.parentNode){if(s==this.dom){r=!0;break}if(s.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let i=!0,r=t;r;r=r.parentNode){let s=this.getDesc(r),a;if(s&&(!n||s.node))if(i&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))i=!1;else return s}}getDesc(t){let n=t.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(t,n,i){for(let r=t;r;r=r.parentNode){let s=this.getDesc(r);if(s)return s.localPosFromDOM(t,n,i)}return-1}descAt(t){for(let n=0,i=0;n<this.children.length;n++){let r=this.children[n],s=i+r.size;if(i==t&&s!=i){for(;!r.border&&r.children.length;)for(let a=0;a<r.children.length;a++){let o=r.children[a];if(o.size){r=o;break}}return r}if(t<s)return r.descAt(t-i-r.border);i=s}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let i=0,r=0;for(let s=0;i<this.children.length;i++){let a=this.children[i],o=s+a.size;if(o>t||a instanceof UC){r=t-s;break}s=o}if(r)return this.children[i].domFromPos(r-this.children[i].border,n);for(let s;i&&!(s=this.children[i-1]).size&&s instanceof zC&&s.side>=0;i--);if(n<=0){let s,a=!0;for(;s=i?this.children[i-1]:null,!(!s||s.dom.parentNode==this.contentDOM);i--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?Pn(s.dom)+1:0}}else{let s,a=!0;for(;s=i<this.children.length?this.children[i]:null,!(!s||s.dom.parentNode==this.contentDOM);i++,a=!1);return s&&a&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?Pn(s.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,i=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,s=-1;for(let a=i,o=0;;o++){let l=this.children[o],u=a+l.size;if(r==-1&&t<=u){let c=a+l.border;if(t>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let f=o;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=Pn(h.dom)+1;break}t-=h.size}r==-1&&(r=0)}if(r>-1&&(u>n||o==this.children.length-1)){n=u;for(let c=o+1;c<this.children.length;c++){let f=this.children[c];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){s=Pn(f.dom);break}n+=f.size}s==-1&&(s=this.contentDOM.childNodes.length);break}a=u}return{node:this.contentDOM,from:t,to:n,fromOffset:r,toOffset:s}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:i}=this.domFromPos(t,0);if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[i]}setSelection(t,n,i,r=!1){let s=Math.min(t,n),a=Math.max(t,n);for(let m=0,g=0;m<this.children.length;m++){let y=this.children[m],b=g+y.size;if(s>g&&a<b)return y.setSelection(t-g-y.border,n-g-y.border,i,r);g=b}let o=this.domFromPos(t,t?-1:1),l=n==t?o:this.domFromPos(n,n?-1:1),u=i.root.getSelection(),c=i.domSelectionRange(),f=!1;if((rr||ii)&&t==n){let{node:m,offset:g}=o;if(m.nodeType==3){if(f=!!(g&&m.nodeValue[g-1]==`
`),f&&g==m.nodeValue.length)for(let y=m,b;y;y=y.parentNode){if(b=y.nextSibling){b.nodeName=="BR"&&(o=l={node:b.parentNode,offset:Pn(b)+1});break}let k=y.pmViewDesc;if(k&&k.node&&k.node.isBlock)break}}else{let y=m.childNodes[g-1];f=y&&(y.nodeName=="BR"||y.contentEditable=="false")}}if(rr&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let m=c.focusNode.childNodes[c.focusOffset];m&&m.contentEditable=="false"&&(r=!0)}if(!(r||f&&ii)&&Ma(o.node,o.offset,c.anchorNode,c.anchorOffset)&&Ma(l.node,l.offset,c.focusNode,c.focusOffset))return;let h=!1;if((u.extend||t==n)&&!f){u.collapse(o.node,o.offset);try{t!=n&&u.extend(l.node,l.offset),h=!0}catch{}}if(!h){if(t>n){let g=o;o=l,l=g}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(o.node,o.offset),u.removeAllRanges(),u.addRange(m)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let i=0,r=0;r<this.children.length;r++){let s=this.children[r],a=i+s.size;if(i==a?t<=a&&n>=i:t<a&&n>i){let o=i+s.border,l=a-s.border;if(t>=o&&n<=l){this.dirty=t==i||n==a?ca:Wk,t==o&&n==l&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Cr:s.markDirty(t-o,n-o);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?ca:Cr}i=a}this.dirty=ca}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let i=t==1?ca:Wk;n.dirty<i&&(n.dirty=i)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class zC extends Bu{constructor(t,n,i,r){let s,a=n.type.toDOM;if(typeof a=="function"&&(a=a(i,()=>{if(!s)return r;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let o=document.createElement("span");o.appendChild(a),a=o}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(t){return this.dirty==Hi&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class jB extends Bu{constructor(t,n,i,r){super(t,[],n,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class $a extends Bu{constructor(t,n,i,r,s){super(t,[],i,r),this.mark=n,this.spec=s}static create(t,n,i,r){let s=r.nodeViews[n.type.name],a=s&&s(n,r,i);return(!a||!a.dom)&&(a=Ka.renderSpec(document,n.type.spec.toDOM(n,i),null,n.attrs)),new $a(t,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&Cr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Cr&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Hi){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=Hi}}slice(t,n,i){let r=$a.create(this.parent,this.mark,!0,i),s=this.children,a=this.size;n<a&&(s=Zm(s,n,a,i)),t>0&&(s=Zm(s,0,t,i));for(let o=0;o<s.length;o++)s[o].parent=r;return r.children=s,r}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class $s extends Bu{constructor(t,n,i,r,s,a,o,l,u){super(t,[],s,a),this.node=n,this.outerDeco=i,this.innerDeco=r,this.nodeDOM=o}static create(t,n,i,r,s,a){let o=s.nodeViews[n.type.name],l,u=o&&o(n,s,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},i,r),c=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:f}=Ka.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=jC(c,i,n),u?l=new GB(t,n,i,r,c,f||null,h,u,s,a+1):n.isText?new cf(t,n,i,r,c,h,s):new $s(t,n,i,r,c,f||null,h,s,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let i=this.children[n];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Ee.empty)}return t}matchesNode(t,n,i){return this.dirty==Hi&&t.eq(this.node)&&gd(n,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let i=this.node.inlineContent,r=n,s=t.composing?this.localCompositionInfo(t,n):null,a=s&&s.pos>-1?s:null,o=s&&s.pos<0,l=new KB(this,a&&a.node,t);XB(this.node,this.innerDeco,(u,c,f)=>{u.spec.marks?l.syncToMarks(u.spec.marks,i,t):u.type.side>=0&&!f&&l.syncToMarks(c==this.node.childCount?xt.none:this.node.child(c).marks,i,t),l.placeWidget(u,t,r)},(u,c,f,h)=>{l.syncToMarks(u.marks,i,t);let m;l.findNodeMatch(u,c,f,h)||o&&t.state.selection.from>r&&t.state.selection.to<r+u.nodeSize&&(m=l.findIndexWithChild(s.node))>-1&&l.updateNodeAt(u,c,f,m,t)||l.updateNextNode(u,c,f,t,h,r)||l.addNode(u,c,f,t,r),r+=u.nodeSize}),l.syncToMarks([],i,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ca)&&(a&&this.protectLocalComposition(t,a),WC(this.contentDOM,this.children,t),Wo&&ZB(this.dom))}localCompositionInfo(t,n){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof et)||i<n||r>n+this.node.content.size)return null;let s=t.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,o=QB(this.node.content,a,i-n,r-n);return o<0?null:{node:s,pos:o,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:i,text:r}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new jB(this,s,n,r);t.input.compositionNodes.push(a),this.children=Zm(this.children,i,i+r.length,t,a)}update(t,n,i,r){return this.dirty==Cr||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,i,r),!0)}updateInner(t,n,i,r){this.updateOuterDeco(n),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Hi}updateOuterDeco(t){if(gd(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=HC(this.dom,this.nodeDOM,Xm(this.outerDeco,this.node,n),Xm(t,this.node,n)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Hk(e,t,n,i,r){jC(i,t,e);let s=new $s(void 0,e,t,n,i,i,i,r,0);return s.contentDOM&&s.updateChildren(r,0),s}class cf extends $s{constructor(t,n,i,r,s,a,o){super(t,n,i,r,s,null,a,o,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,i,r){return this.dirty==Cr||this.dirty!=Hi&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Hi||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=Hi,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,i)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,i){let r=this.node.cut(t,n),s=document.createTextNode(r.text);return new cf(this.parent,r,this.outerDeco,this.innerDeco,s,s,i)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Cr)}get domAtom(){return!1}isText(t){return this.node.text==t}}class UC extends Bu{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Hi&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class GB extends $s{constructor(t,n,i,r,s,a,o,l,u,c){super(t,n,i,r,s,a,o,u,c),this.spec=l}update(t,n,i,r){if(this.dirty==Cr)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let s=this.spec.update(t,n,i);return s&&this.updateInner(t,n,i,r),s}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i.root):super.setSelection(t,n,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function WC(e,t,n){let i=e.firstChild,r=!1;for(let s=0;s<t.length;s++){let a=t[s],o=a.dom;if(o.parentNode==e){for(;o!=i;)i=jk(i),r=!0;i=i.nextSibling}else r=!0,e.insertBefore(o,i);if(a instanceof $a){let l=i?i.previousSibling:e.lastChild;WC(a.contentDOM,a.children,n),i=l?l.nextSibling:e.firstChild}}for(;i;)i=jk(i),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const Kl=function(e){e&&(this.nodeName=e)};Kl.prototype=Object.create(null);const da=[new Kl];function Xm(e,t,n){if(e.length==0)return da;let i=n?da[0]:new Kl,r=[i];for(let s=0;s<e.length;s++){let a=e[s].type.attrs;if(a){a.nodeName&&r.push(i=new Kl(a.nodeName));for(let o in a){let l=a[o];l!=null&&(n&&r.length==1&&r.push(i=new Kl(t.isInline?"span":"div")),o=="class"?i.class=(i.class?i.class+" ":"")+l:o=="style"?i.style=(i.style?i.style+";":"")+l:o!="nodeName"&&(i[o]=l))}}}return r}function HC(e,t,n,i){if(n==da&&i==da)return t;let r=t;for(let s=0;s<i.length;s++){let a=i[s],o=n[s];if(s){let l;o&&o.nodeName==a.nodeName&&r!=e&&(l=r.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(r),o=da[0]),r=l}qB(r,o||da[0],a)}return r}function qB(e,t,n){for(let i in t)i!="class"&&i!="style"&&i!="nodeName"&&!(i in n)&&e.removeAttribute(i);for(let i in n)i!="class"&&i!="style"&&i!="nodeName"&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){let i=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<i.length;s++)r.indexOf(i[s])==-1&&e.classList.remove(i[s]);for(let s=0;s<r.length;s++)i.indexOf(r[s])==-1&&e.classList.add(r[s]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let i=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=i.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function jC(e,t,n){return HC(e,e,da,Xm(t,n,e.nodeType!=1))}function gd(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function jk(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class KB{constructor(t,n,i){this.lock=n,this.view=i,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=YB(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let i=t;i<n;i++)this.top.children[i].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,i){let r=0,s=this.stack.length>>1,a=Math.min(s,t.length);for(;r<a&&(r==s-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&t[r].type.spec.spanning!==!1;)r++;for(;r<s;)this.destroyRest(),this.top.dirty=Hi,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let o=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let u=this.top.children[l];if(u.matchesMark(t[s])&&!this.isLocked(u.dom)){o=l;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let l=$a.create(this.top,t[s],n,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,i,r){let s=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,i))s=this.top.children.indexOf(a,this.index);else for(let o=this.index,l=Math.min(this.top.children.length,o+5);o<l;o++){let u=this.top.children[o];if(u.matchesNode(t,n,i)&&!this.preMatch.matched.has(u)){s=o;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(t,n,i,r,s){let a=this.top.children[r];return a.dirty==Cr&&a.dom==a.contentDOM&&(a.dirty=ca),a.update(t,n,i,s)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let i=t.pmViewDesc;if(i){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==i)return r}return-1}t=n}}updateNextNode(t,n,i,r,s,a){for(let o=this.index;o<this.top.children.length;o++){let l=this.top.children[o];if(l instanceof $s){let u=this.preMatch.matched.get(l);if(u!=null&&u!=s)return!1;let c=l.dom,f,h=this.isLocked(c)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=Cr&&gd(n,l.outerDeco));if(!h&&l.update(t,n,i,r))return this.destroyBetween(this.index,o),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(l,t,n,i,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=ca,f.updateChildren(r,a+1),f.dirty=Hi),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,i,r,s,a){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!gd(i,t.outerDeco)||!r.eq(t.innerDeco))return null;let o=$s.create(this.top,n,i,r,s,a);if(o.contentDOM){o.children=t.children,t.children=[];for(let l of o.children)l.parent=o}return t.destroy(),o}addNode(t,n,i,r,s){let a=$s.create(this.top,t,n,i,r,s);a.contentDOM&&a.updateChildren(r,s+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,n,i){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(t)&&(t==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let s=new zC(this.top,t,n,i);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof $a;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof cf)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((ii||Hn)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let i=document.createElement(t);t=="IMG"&&(i.className="ProseMirror-separator",i.alt=""),t=="BR"&&(i.className="ProseMirror-trailingBreak");let r=new UC(this.top,[],i,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function YB(e,t){let n=t,i=n.children.length,r=e.childCount,s=new Map,a=[];e:for(;r>0;){let o;for(;;)if(i){let u=n.children[i-1];if(u instanceof $a)n=u,i=u.children.length;else{o=u,i--;break}}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}let l=o.node;if(l){if(l!=e.child(r-1))break;--r,s.set(o,r),a.push(o)}}return{index:r,matched:s,matches:a.reverse()}}function JB(e,t){return e.type.side-t.type.side}function XB(e,t,n,i){let r=t.locals(e),s=0;if(r.length==0){for(let u=0;u<e.childCount;u++){let c=e.child(u);i(c,r,t.forChild(s,c),u),s+=c.nodeSize}return}let a=0,o=[],l=null;for(let u=0;;){let c,f;for(;a<r.length&&r[a].to==s;){let b=r[a++];b.widget&&(c?(f||(f=[c])).push(b):c=b)}if(c)if(f){f.sort(JB);for(let b=0;b<f.length;b++)n(f[b],u,!!l)}else n(c,u,!!l);let h,m;if(l)m=-1,h=l,l=null;else if(u<e.childCount)m=u,h=e.child(u++);else break;for(let b=0;b<o.length;b++)o[b].to<=s&&o.splice(b--,1);for(;a<r.length&&r[a].from<=s&&r[a].to>s;)o.push(r[a++]);let g=s+h.nodeSize;if(h.isText){let b=g;a<r.length&&r[a].from<b&&(b=r[a].from);for(let k=0;k<o.length;k++)o[k].to<b&&(b=o[k].to);b<g&&(l=h.cut(b-s),h=h.cut(0,b-s),g=b,m=-1)}else for(;a<r.length&&r[a].to<g;)a++;let y=h.isInline&&!h.isLeaf?o.filter(b=>!b.inline):o.slice();i(h,y,t.forChild(s,h),m),s=g}}function ZB(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function QB(e,t,n,i){for(let r=0,s=0;r<e.childCount&&s<=i;){let a=e.child(r++),o=s;if(s+=a.nodeSize,!a.isText)continue;let l=a.text;for(;r<e.childCount;){let u=e.child(r++);if(s+=u.nodeSize,!u.isText)break;l+=u.text}if(s>=n){if(s>=i&&l.slice(i-t.length-o,i-o)==t)return i-t.length;let u=o<i?l.lastIndexOf(t,i-o-1):-1;if(u>=0&&u+t.length+o>=n)return o+u;if(n==i&&l.length>=i+t.length-o&&l.slice(i-o,i-o+t.length)==t)return i}}return-1}function Zm(e,t,n,i,r){let s=[];for(let a=0,o=0;a<e.length;a++){let l=e[a],u=o,c=o+=l.size;u>=n||c<=t?s.push(l):(u<t&&s.push(l.slice(0,t-u,i)),r&&(s.push(r),r=void 0),c>n&&s.push(l.slice(n-u,l.size,i)))}return s}function Yp(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),s=r&&r.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let o=i.resolve(a),l,u;if(uf(n)){for(l=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&Ye.isSelectable(f)&&r.parent&&!(f.isInline&&TB(n.focusNode,n.focusOffset,r.dom))){let h=r.posBefore;u=new Ye(a==h?o:i.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let f=a,h=a;for(let m=0;m<n.rangeCount;m++){let g=n.getRangeAt(m);f=Math.min(f,e.docView.posFromDOM(g.startContainer,g.startOffset,1)),h=Math.max(h,e.docView.posFromDOM(g.endContainer,g.endOffset,-1))}if(f<0)return null;[l,a]=h==e.state.selection.anchor?[h,f]:[f,h],o=i.resolve(a)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=i.resolve(l);if(!u){let f=t=="pointer"||e.state.selection.head<o.pos&&!s?1:-1;u=Jp(e,c,o,f)}return u}function GC(e){return e.editable?e.hasFocus():KC(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Yr(e,t=!1){let n=e.state.selection;if(qC(e,n),!!GC(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Hn){let i=e.domSelectionRange(),r=e.domObserver.currentSelection;if(i.anchorNode&&r.anchorNode&&Ma(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)t2(e);else{let{anchor:i,head:r}=n,s,a;Gk&&!(n instanceof et)&&(n.$from.parent.inlineContent||(s=qk(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=qk(e,n.to))),e.docView.setSelection(i,r,e,t),Gk&&(s&&Kk(s),a&&Kk(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&e2(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Gk=ii||Hn&&$C<63;function qk(e,t){let{node:n,offset:i}=e.docView.domFromPos(t,0),r=i<n.childNodes.length?n.childNodes[i]:null,s=i?n.childNodes[i-1]:null;if(ii&&r&&r.contentEditable=="false")return Uh(r);if((!r||r.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(r)return Uh(r);if(s)return Uh(s)}}function Uh(e){return e.contentEditable="true",ii&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Kk(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function e2(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=i||n.anchorOffset!=r)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!GC(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function t2(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let i=e.cursorWrapper.dom,r=i.nodeName=="IMG";r?n.setStart(i.parentNode,Pn(i)+1):n.setStart(i,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&hi&&Ms<=11&&(i.disabled=!0,i.disabled=!1)}function qC(e,t){if(t instanceof Ye){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Yk(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Yk(e)}function Yk(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Jp(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||et.between(t,n,i)}function Jk(e){return e.editable&&!e.hasFocus()?!1:KC(e)}function KC(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function n2(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Ma(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Qm(e,t){let{$anchor:n,$head:i}=e.selection,r=t>0?n.max(i):n.min(i),s=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return s&&it.findFrom(s,t)}function ws(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Xk(e,t,n){let i=e.state.selection;if(i instanceof et)if(n.indexOf("s")>-1){let{$head:r}=i,s=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let a=e.state.doc.resolve(r.pos+s.nodeSize*(t<0?-1:1));return ws(e,new et(i.$anchor,a))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let r=Qm(e.state,t);return r&&r instanceof Ye?ws(e,r):!1}else if(!(Vi&&n.indexOf("m")>-1)){let r=i.$head,s=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,a;if(!s||s.isText)return!1;let o=t<0?r.pos-s.nodeSize:r.pos;return s.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?Ye.isSelectable(s)?ws(e,new Ye(t<0?e.state.doc.resolve(r.pos-s.nodeSize):r)):Fu?ws(e,new et(e.state.doc.resolve(t<0?o:o+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof Ye&&i.node.isInline)return ws(e,new et(t>0?i.$to:i.$from));{let r=Qm(e.state,t);return r?ws(e,r):!1}}}function pd(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Yl(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function mo(e,t){return t<0?i2(e):r2(e)}function i2(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r,s,a=!1;for(rr&&n.nodeType==1&&i<pd(n)&&Yl(n.childNodes[i],-1)&&(a=!0);;)if(i>0){if(n.nodeType!=1)break;{let o=n.childNodes[i-1];if(Yl(o,-1))r=n,s=--i;else if(o.nodeType==3)n=o,i=n.nodeValue.length;else break}}else{if(YC(n))break;{let o=n.previousSibling;for(;o&&Yl(o,-1);)r=n.parentNode,s=Pn(o),o=o.previousSibling;if(o)n=o,i=pd(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}a?eg(e,n,i):r&&eg(e,r,s)}function r2(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r=pd(n),s,a;for(;;)if(i<r){if(n.nodeType!=1)break;let o=n.childNodes[i];if(Yl(o,1))s=n,a=++i;else break}else{if(YC(n))break;{let o=n.nextSibling;for(;o&&Yl(o,1);)s=o.parentNode,a=Pn(o)+1,o=o.nextSibling;if(o)n=o,i=0,r=pd(n);else{if(n=n.parentNode,n==e.dom)break;i=r=0}}}s&&eg(e,s,a)}function YC(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function s2(e,t){for(;e&&t==e.childNodes.length&&!Ru(e);)t=Pn(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function a2(e,t){for(;e&&!t&&!Ru(e);)t=Pn(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function eg(e,t,n){if(t.nodeType!=3){let s,a;(a=s2(t,n))?(t=a,n=0):(s=a2(t,n))&&(t=s,n=s.nodeValue.length)}let i=e.domSelection();if(!i)return;if(uf(i)){let s=document.createRange();s.setEnd(t,n),s.setStart(t,n),i.removeAllRanges(),i.addRange(s)}else i.extend&&i.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout(()=>{e.state==r&&Yr(e)},50)}function Zk(e,t){let n=e.state.doc.resolve(t);if(!(Hn||AB)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let s=e.coordsAtPos(t-1),a=(s.top+s.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(s.left-r.left)>1)return s.left<r.left?"ltr":"rtl"}if(t<n.end()){let s=e.coordsAtPos(t+1),a=(s.top+s.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(s.left-r.left)>1)return s.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Qk(e,t,n){let i=e.state.selection;if(i instanceof et&&!i.empty||n.indexOf("s")>-1||Vi&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Qm(e.state,t);if(a&&a instanceof Ye)return ws(e,a)}if(!r.parent.inlineContent){let a=t<0?r:s,o=i instanceof Ei?it.near(a,t):it.findFrom(a,t);return o?ws(e,o):!1}return!1}function ew(e,t){if(!(e.state.selection instanceof et))return!0;let{$head:n,$anchor:i,empty:r}=e.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=e.state.tr;return t<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),e.dispatch(a),!0}return!1}function tw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function o2(e){if(!ii||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;tw(e,i,"true"),setTimeout(()=>tw(e,i,"false"),20)}return!1}function l2(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function u2(e,t){let n=t.keyCode,i=l2(t);if(n==8||Vi&&n==72&&i=="c")return ew(e,-1)||mo(e,-1);if(n==46&&!t.shiftKey||Vi&&n==68&&i=="c")return ew(e,1)||mo(e,1);if(n==13||n==27)return!0;if(n==37||Vi&&n==66&&i=="c"){let r=n==37?Zk(e,e.state.selection.from)=="ltr"?-1:1:-1;return Xk(e,r,i)||mo(e,r)}else if(n==39||Vi&&n==70&&i=="c"){let r=n==39?Zk(e,e.state.selection.from)=="ltr"?1:-1:1;return Xk(e,r,i)||mo(e,r)}else{if(n==38||Vi&&n==80&&i=="c")return Qk(e,-1,i)||mo(e,-1);if(n==40||Vi&&n==78&&i=="c")return o2(e)||Qk(e,1,i)||mo(e,1);if(i==(Vi?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Xp(e,t){e.someProp("transformCopied",m=>{t=m(t,e)});let n=[],{content:i,openStart:r,openEnd:s}=t;for(;r>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){r--,s--;let m=i.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),i=m.content}let a=e.someProp("clipboardSerializer")||Ka.fromSchema(e.state.schema),o=tT(),l=o.createElement("div");l.appendChild(a.serializeFragment(i,{document:o}));let u=l.firstChild,c,f=0;for(;u&&u.nodeType==1&&(c=eT[u.nodeName.toLowerCase()]);){for(let m=c.length-1;m>=0;m--){let g=o.createElement(c[m]);for(;l.firstChild;)g.appendChild(l.firstChild);l.appendChild(g),f++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${s}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",m=>m(t,e))||t.content.textBetween(0,t.content.size,`
`);return{dom:l,text:h,slice:t}}function JC(e,t,n,i,r){let s=r.parent.type.spec.code,a,o;if(!n&&!t)return null;let l=t&&(i||s||!n);if(l){if(e.someProp("transformPastedText",h=>{t=h(t,s||i,e)}),s)return t?new Re(Ee.from(e.state.schema.text(t.replace(/\r\n?/g,`
`))),0,0):Re.empty;let f=e.someProp("clipboardTextParser",h=>h(t,r,i,e));if(f)o=f;else{let h=r.marks(),{schema:m}=e.state,g=Ka.fromSchema(m);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(y=>{let b=a.appendChild(document.createElement("p"));y&&b.appendChild(g.serializeNode(m.text(y,h)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=h2(n),Fu&&m2(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[3];f>0;f--){let h=a.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;a=h}if(o||(o=(e.someProp("clipboardParser")||e.someProp("domParser")||Os.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:r,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!c2.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)o=g2(nw(o,+c[1],+c[2]),c[4]);else if(o=Re.maxOpen(d2(o.content,r),!0),o.openStart||o.openEnd){let f=0,h=0;for(let m=o.content.firstChild;f<o.openStart&&!m.type.spec.isolating;f++,m=m.firstChild);for(let m=o.content.lastChild;h<o.openEnd&&!m.type.spec.isolating;h++,m=m.lastChild);o=nw(o,f,h)}return e.someProp("transformPasted",f=>{o=f(o,e)}),o}const c2=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function d2(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),s,a=[];if(e.forEach(o=>{if(!a)return;let l=r.findWrapping(o.type),u;if(!l)return a=null;if(u=a.length&&s.length&&ZC(l,s,o,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=QC(a[a.length-1],s.length));let c=XC(o,l);a.push(c),r=r.matchType(c.type),s=l}}),a)return Ee.from(a)}return e}function XC(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,Ee.from(e));return e}function ZC(e,t,n,i,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let s=ZC(e,t,n,i.lastChild,r+1);if(s)return i.copy(i.content.replaceChild(i.childCount-1,s));if(i.contentMatchAt(i.childCount).matchType(r==e.length-1?n.type:e[r+1]))return i.copy(i.content.append(Ee.from(XC(n,e,r+1))))}}function QC(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,QC(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(Ee.empty,!0);return e.copy(n.append(i))}function tg(e,t,n,i,r,s){let a=t<0?e.firstChild:e.lastChild,o=a.content;return e.childCount>1&&(s=0),r<i-1&&(o=tg(o,t,n,i,r+1,s)),r>=n&&(o=t<0?a.contentMatchAt(0).fillBefore(o,s<=r).append(o):o.append(a.contentMatchAt(a.childCount).fillBefore(Ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(o))}function nw(e,t,n){return t<e.openStart&&(e=new Re(tg(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Re(tg(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const eT={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let iw=null;function tT(){return iw||(iw=document.implementation.createHTMLDocument("title"))}let Wh=null;function f2(e){let t=window.trustedTypes;return t?(Wh||(Wh=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Wh.createHTML(e)):e}function h2(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=tT().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),r;if((r=i&&eT[i[1].toLowerCase()])&&(e=r.map(s=>"<"+s+">").join("")+e+r.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=f2(e),r)for(let s=0;s<r.length;s++)n=n.querySelector(r[s])||n;return n}function m2(e){let t=e.querySelectorAll(Hn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let i=t[n];i.childNodes.length==1&&i.textContent==" "&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}function g2(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,i;try{i=JSON.parse(t)}catch{return e}let{content:r,openStart:s,openEnd:a}=e;for(let o=i.length-2;o>=0;o-=2){let l=n.nodes[i[o]];if(!l||l.hasRequiredAttrs())break;r=Ee.from(l.create(i[o+1],r)),s++,a++}return new Re(r,s,a)}const ri={},si={},p2={touchstart:!0,touchmove:!0};class v2{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function y2(e){for(let t in ri){let n=ri[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=i=>{k2(e,i)&&!Zp(e,i)&&(e.editable||!(i.type in si))&&n(e,i)},p2[t]?{passive:!0}:void 0)}ii&&e.dom.addEventListener("input",()=>null),ng(e)}function As(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function b2(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ng(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=i=>Zp(e,i))})}function Zp(e,t){return e.someProp("handleDOMEvents",n=>{let i=n[t.type];return i?i(e,t)||t.defaultPrevented:!1})}function k2(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function w2(e,t){!Zp(e,t)&&ri[t.type]&&(e.editable||!(t.type in si))&&ri[t.type](e,t)}si.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!iT(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Hr&&Hn&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Wo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",r=>r(e,oa(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||u2(e,n)?n.preventDefault():As(e,"key")};si.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};si.keypress=(e,t)=>{let n=t;if(iT(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Vi&&n.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof et)||!i.$from.sameParent(i.$to)){let r=String.fromCharCode(n.charCode),s=()=>e.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!e.someProp("handleTextInput",a=>a(e,i.$from.pos,i.$to.pos,r,s))&&e.dispatch(s()),n.preventDefault()}};function df(e){return{left:e.clientX,top:e.clientY}}function S2(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}function Qp(e,t,n,i,r){if(i==-1)return!1;let s=e.state.doc.resolve(i);for(let a=s.depth+1;a>0;a--)if(e.someProp(t,o=>a>s.depth?o(e,n,s.nodeAfter,s.before(a),r,!0):o(e,n,s.node(a),s.before(a),r,!1)))return!0;return!1}function Mo(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let i=e.state.tr.setSelection(t);i.setMeta("pointer",!0),e.dispatch(i)}function _2(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return i&&i.isAtom&&Ye.isSelectable(i)?(Mo(e,new Ye(n)),!0):!1}function C2(e,t){if(t==-1)return!1;let n=e.state.selection,i,r;n instanceof Ye&&(i=n.node);let s=e.state.doc.resolve(t);for(let a=s.depth+1;a>0;a--){let o=a>s.depth?s.nodeAfter:s.node(a);if(Ye.isSelectable(o)){i&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?r=s.before(n.$from.depth):r=s.before(a);break}}return r!=null?(Mo(e,Ye.create(e.state.doc,r)),!0):!1}function T2(e,t,n,i,r){return Qp(e,"handleClickOn",t,n,i)||e.someProp("handleClick",s=>s(e,t,i))||(r?C2(e,n):_2(e,n))}function E2(e,t,n,i){return Qp(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",r=>r(e,t,i))}function I2(e,t,n,i){return Qp(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||A2(e,n,i)}function A2(e,t,n){if(n.button!=0)return!1;let i=e.state.doc;if(t==-1)return i.inlineContent?(Mo(e,et.create(i,0,i.content.size)),!0):!1;let r=i.resolve(t);for(let s=r.depth+1;s>0;s--){let a=s>r.depth?r.nodeAfter:r.node(s),o=r.before(s);if(a.inlineContent)Mo(e,et.create(i,o+1,o+1+a.content.size));else if(Ye.isSelectable(a))Mo(e,Ye.create(i,o));else continue;return!0}}function ev(e){return vd(e)}const nT=Vi?"metaKey":"ctrlKey";ri.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=ev(e),r=Date.now(),s="singleClick";r-e.input.lastClick.time<500&&S2(n,e.input.lastClick)&&!n[nT]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:s,button:n.button};let a=e.posAtCoords(df(n));a&&(s=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new x2(e,a,n,!!i)):(s=="doubleClick"?E2:I2)(e,a.pos,a.inside,n)?n.preventDefault():As(e,"pointer"))};class x2{constructor(t,n,i,r){this.view=t,this.pos=n,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[nT],this.allowDefault=i.shiftKey;let s,a;if(n.inside>-1)s=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);s=c.parent,a=c.depth?c.before():0}const o=r?null:i.target,l=o?t.docView.nearestDesc(o,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(i.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||u instanceof Ye&&u.from<=a&&u.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&rr&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),As(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Yr(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(df(t))),this.updateAllowDefault(t),this.allowDefault||!n?As(this.view,"pointer"):T2(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||ii&&this.mightDrag&&!this.mightDrag.node.isAtom||Hn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Mo(this.view,it.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):As(this.view,"pointer")}move(t){this.updateAllowDefault(t),As(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}ri.touchstart=e=>{e.input.lastTouch=Date.now(),ev(e),As(e,"pointer")};ri.touchmove=e=>{e.input.lastTouch=Date.now(),As(e,"pointer")};ri.contextmenu=e=>ev(e);function iT(e,t){return e.composing?!0:ii&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const D2=Hr?5e3:-1;si.compositionstart=si.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof et&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),vd(e,!0),e.markCursor=null;else if(vd(e,!t.selection.empty),rr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let r=i.focusNode,s=i.focusOffset;r&&r.nodeType==1&&s!=0;){let a=s<0?r.lastChild:r.childNodes[s-1];if(!a)break;if(a.nodeType==3){let o=e.domSelection();o&&o.collapse(a,a.nodeValue.length);break}else r=a,s=-1}}e.input.composing=!0}rT(e,D2)};si.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,rT(e,20))};function rT(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>vd(e),t))}function sT(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=O2());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function P2(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=_B(t.focusNode,t.focusOffset),i=CB(t.focusNode,t.focusOffset);if(n&&i&&n!=i){let r=i.pmViewDesc,s=e.domObserver.lastChangedTextNode;if(n==s||i==s)return s;if(!r||!r.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return i}}return n||i}function O2(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function vd(e,t=!1){if(!(Hr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),sT(e),t||e.docView&&e.docView.dirty){let n=Yp(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function M2(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const uu=hi&&Ms<15||Wo&&xB<604;ri.copy=si.cut=(e,t)=>{let n=t,i=e.state.selection,r=n.type=="cut";if(i.empty)return;let s=uu?null:n.clipboardData,a=i.content(),{dom:o,text:l}=Xp(e,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",o.innerHTML),s.setData("text/plain",l)):M2(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function $2(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function V2(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let r=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?cu(e,i.value,null,r,t):cu(e,i.textContent,i.innerHTML,r,t)},50)}function cu(e,t,n,i,r){let s=JC(e,t,n,i,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,r,s||Re.empty)))return!0;if(!s)return!1;let a=$2(s),o=a?e.state.tr.replaceSelectionWith(a,i):e.state.tr.replaceSelection(s);return e.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function aT(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}si.paste=(e,t)=>{let n=t;if(e.composing&&!Hr)return;let i=uu?null:n.clipboardData,r=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&cu(e,aT(i),i.getData("text/html"),r,n)?n.preventDefault():V2(e,n)};class oT{constructor(t,n,i){this.slice=t,this.move=n,this.node=i}}const L2=Vi?"altKey":"ctrlKey";function lT(e,t){let n=e.someProp("dragCopies",i=>!i(t));return n??!t[L2]}ri.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=e.state.selection,s=r.empty?null:e.posAtCoords(df(n)),a;if(!(s&&s.pos>=r.from&&s.pos<=(r instanceof Ye?r.to-1:r.to))){if(i&&i.mightDrag)a=Ye.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=e.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(a=Ye.create(e.state.doc,f.posBefore))}}let o=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=Xp(e,o);(!n.dataTransfer.files.length||!Hn||$C>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(uu?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",uu||n.dataTransfer.setData("text/plain",u),e.dragging=new oT(c,lT(e,n),a)};ri.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};si.dragover=si.dragenter=(e,t)=>t.preventDefault();si.drop=(e,t)=>{let n=t,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(df(n));if(!r)return;let s=e.state.doc.resolve(r.pos),a=i&&i.slice;a?e.someProp("transformPasted",g=>{a=g(a,e)}):a=JC(e,aT(n.dataTransfer),uu?null:n.dataTransfer.getData("text/html"),!1,s);let o=!!(i&&lT(e,n));if(e.someProp("handleDrop",g=>g(e,n,a||Re.empty,o))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?EC(e.state.doc,s.pos,a):s.pos;l==null&&(l=s.pos);let u=e.state.tr;if(o){let{node:g}=i;g?g.replace(u):u.deleteSelection()}let c=u.mapping.map(l),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,h=u.doc;if(f?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(h))return;let m=u.doc.resolve(c);if(f&&Ye.isSelectable(a.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Ye(m));else{let g=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,b,k,w)=>g=w),u.setSelection(Jp(e,m,u.doc.resolve(g)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};ri.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Yr(e)},20))};ri.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};ri.beforeinput=(e,t)=>{if(Hn&&Hr&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:i}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=i||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",s=>s(e,oa(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in si)ri[e]=si[e];function du(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class yd{constructor(t,n){this.toDOM=t,this.spec=n||wa,this.side=this.spec.side||0}map(t,n,i,r){let{pos:s,deleted:a}=t.mapResult(n.from+r,this.side<0?-1:1);return a?null:new Bi(s-i,s-i,this)}valid(){return!0}eq(t){return this==t||t instanceof yd&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&du(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Vs{constructor(t,n){this.attrs=t,this.spec=n||wa}map(t,n,i,r){let s=t.map(n.from+r,this.spec.inclusiveStart?-1:1)-i,a=t.map(n.to+r,this.spec.inclusiveEnd?1:-1)-i;return s>=a?null:new Bi(s,a,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Vs&&du(this.attrs,t.attrs)&&du(this.spec,t.spec)}static is(t){return t.type instanceof Vs}destroy(){}}class tv{constructor(t,n){this.attrs=t,this.spec=n||wa}map(t,n,i,r){let s=t.mapResult(n.from+r,1);if(s.deleted)return null;let a=t.mapResult(n.to+r,-1);return a.deleted||a.pos<=s.pos?null:new Bi(s.pos-i,a.pos-i,this)}valid(t,n){let{index:i,offset:r}=t.content.findIndex(n.from),s;return r==n.from&&!(s=t.child(i)).isText&&r+s.nodeSize==n.to}eq(t){return this==t||t instanceof tv&&du(this.attrs,t.attrs)&&du(this.spec,t.spec)}destroy(){}}class Bi{constructor(t,n,i){this.from=t,this.to=n,this.type=i}copy(t,n){return new Bi(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,i){return this.type.map(t,this,n,i)}static widget(t,n,i){return new Bi(t,t,new yd(n,i))}static inline(t,n,i,r){return new Bi(t,n,new Vs(i,r))}static node(t,n,i,r){return new Bi(t,n,new tv(i,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Vs}get widget(){return this.type instanceof yd}}const So=[],wa={};class cn{constructor(t,n){this.local=t.length?t:So,this.children=n.length?n:So}static create(t,n){return n.length?bd(n,t,0,wa):zn}find(t,n,i){let r=[];return this.findInner(t??0,n??1e9,r,0,i),r}findInner(t,n,i,r,s){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=n&&o.to>=t&&(!s||s(o.spec))&&i.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>t){let o=this.children[a]+1;this.children[a+2].findInner(t-o,n-o,i,r+o,s)}}map(t,n,i){return this==zn||t.maps.length==0?this:this.mapInner(t,n,0,0,i||wa)}mapInner(t,n,i,r,s){let a;for(let o=0;o<this.local.length;o++){let l=this.local[o].map(t,i,r);l&&l.type.valid(n,l)?(a||(a=[])).push(l):s.onRemove&&s.onRemove(this.local[o].spec)}return this.children.length?N2(this.children,a||[],t,n,i,r,s):a?new cn(a.sort(Sa),So):zn}add(t,n){return n.length?this==zn?cn.create(t,n):this.addInner(t,n,0):this}addInner(t,n,i){let r,s=0;t.forEach((o,l)=>{let u=l+i,c;if(c=cT(n,o,u)){for(r||(r=this.children.slice());s<r.length&&r[s]<l;)s+=3;r[s]==l?r[s+2]=r[s+2].addInner(o,c,u+1):r.splice(s,0,l,l+o.nodeSize,bd(c,o,u+1,wa)),s+=3}});let a=uT(s?dT(n):n,-i);for(let o=0;o<a.length;o++)a[o].type.valid(t,a[o])||a.splice(o--,1);return new cn(a.length?this.local.concat(a).sort(Sa):this.local,r||this.children)}remove(t){return t.length==0||this==zn?this:this.removeInner(t,0)}removeInner(t,n){let i=this.children,r=this.local;for(let s=0;s<i.length;s+=3){let a,o=i[s]+n,l=i[s+1]+n;for(let c=0,f;c<t.length;c++)(f=t[c])&&f.from>o&&f.to<l&&(t[c]=null,(a||(a=[])).push(f));if(!a)continue;i==this.children&&(i=this.children.slice());let u=i[s+2].removeInner(a,o+1);u!=zn?i[s+2]=u:(i.splice(s,3),s-=3)}if(r.length){for(let s=0,a;s<t.length;s++)if(a=t[s])for(let o=0;o<r.length;o++)r[o].eq(a,n)&&(r==this.local&&(r=this.local.slice()),r.splice(o--,1))}return i==this.children&&r==this.local?this:r.length||i.length?new cn(r,i):zn}forChild(t,n){if(this==zn)return this;if(n.isLeaf)return cn.empty;let i,r;for(let o=0;o<this.children.length;o+=3)if(this.children[o]>=t){this.children[o]==t&&(i=this.children[o+2]);break}let s=t+1,a=s+n.content.size;for(let o=0;o<this.local.length;o++){let l=this.local[o];if(l.from<a&&l.to>s&&l.type instanceof Vs){let u=Math.max(s,l.from)-s,c=Math.min(a,l.to)-s;u<c&&(r||(r=[])).push(l.copy(u,c))}}if(r){let o=new cn(r.sort(Sa),So);return i?new Cs([o,i]):o}return i||zn}eq(t){if(this==t)return!0;if(!(t instanceof cn)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return nv(this.localsInner(t))}localsInner(t){if(this==zn)return So;if(t.inlineContent||!this.local.some(Vs.is))return this.local;let n=[];for(let i=0;i<this.local.length;i++)this.local[i].type instanceof Vs||n.push(this.local[i]);return n}forEachSet(t){t(this)}}cn.empty=new cn([],[]);cn.removeOverlap=nv;const zn=cn.empty;class Cs{constructor(t){this.members=t}map(t,n){const i=this.members.map(r=>r.map(t,n,wa));return Cs.from(i)}forChild(t,n){if(n.isLeaf)return cn.empty;let i=[];for(let r=0;r<this.members.length;r++){let s=this.members[r].forChild(t,n);s!=zn&&(s instanceof Cs?i=i.concat(s.members):i.push(s))}return Cs.from(i)}eq(t){if(!(t instanceof Cs)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,i=!0;for(let r=0;r<this.members.length;r++){let s=this.members[r].localsInner(t);if(s.length)if(!n)n=s;else{i&&(n=n.slice(),i=!1);for(let a=0;a<s.length;a++)n.push(s[a])}}return n?nv(i?n:n.sort(Sa)):So}static from(t){switch(t.length){case 0:return zn;case 1:return t[0];default:return new Cs(t.every(n=>n instanceof cn)?t:t.reduce((n,i)=>n.concat(i instanceof cn?i:i.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function N2(e,t,n,i,r,s,a){let o=e.slice();for(let u=0,c=s;u<n.maps.length;u++){let f=0;n.maps[u].forEach((h,m,g,y)=>{let b=y-g-(m-h);for(let k=0;k<o.length;k+=3){let w=o[k+1];if(w<0||h>w+c-f)continue;let E=o[k]+c-f;m>=E?o[k+1]=h<=E?-2:-1:h>=c&&b&&(o[k]+=b,o[k+1]+=b)}f+=b}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<o.length;u+=3)if(o[u+1]<0){if(o[u+1]==-2){l=!0,o[u+1]=-1;continue}let c=n.map(e[u]+s),f=c-r;if(f<0||f>=i.content.size){l=!0;continue}let h=n.map(e[u+1]+s,-1),m=h-r,{index:g,offset:y}=i.content.findIndex(f),b=i.maybeChild(g);if(b&&y==f&&y+b.nodeSize==m){let k=o[u+2].mapInner(n,b,c+1,e[u]+s+1,a);k!=zn?(o[u]=f,o[u+1]=m,o[u+2]=k):(o[u+1]=-2,l=!0)}else l=!0}if(l){let u=R2(o,e,t,n,r,s,a),c=bd(u,i,0,a);t=c.local;for(let f=0;f<o.length;f+=3)o[f+1]<0&&(o.splice(f,3),f-=3);for(let f=0,h=0;f<c.children.length;f+=3){let m=c.children[f];for(;h<o.length&&o[h]<m;)h+=3;o.splice(h,0,c.children[f],c.children[f+1],c.children[f+2])}}return new cn(t.sort(Sa),o)}function uT(e,t){if(!t||!e.length)return e;let n=[];for(let i=0;i<e.length;i++){let r=e[i];n.push(new Bi(r.from+t,r.to+t,r.type))}return n}function R2(e,t,n,i,r,s,a){function o(l,u){for(let c=0;c<l.local.length;c++){let f=l.local[c].map(i,r,u);f?n.push(f):a.onRemove&&a.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)o(l.children[c+2],l.children[c]+u+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&o(e[l+2],t[l]+s+1);return n}function cT(e,t,n){if(t.isLeaf)return null;let i=n+t.nodeSize,r=null;for(let s=0,a;s<e.length;s++)(a=e[s])&&a.from>n&&a.to<i&&((r||(r=[])).push(a),e[s]=null);return r}function dT(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function bd(e,t,n,i){let r=[],s=!1;t.forEach((o,l)=>{let u=cT(e,o,l+n);if(u){s=!0;let c=bd(u,o,n+l+1,i);c!=zn&&r.push(l,l+o.nodeSize,c)}});let a=uT(s?dT(e):e,-n).sort(Sa);for(let o=0;o<a.length;o++)a[o].type.valid(t,a[o])||(i.onRemove&&i.onRemove(a[o].spec),a.splice(o--,1));return a.length||r.length?new cn(a,r):zn}function Sa(e,t){return e.from-t.from||e.to-t.to}function nv(e){let t=e;for(let n=0;n<t.length-1;n++){let i=t[n];if(i.from!=i.to)for(let r=n+1;r<t.length;r++){let s=t[r];if(s.from==i.from){s.to!=i.to&&(t==e&&(t=e.slice()),t[r]=s.copy(s.from,i.to),rw(t,r+1,s.copy(i.to,s.to)));continue}else{s.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,s.from),rw(t,r,i.copy(s.from,i.to)));break}}}return t}function rw(e,t,n){for(;t<e.length&&Sa(n,e[t])>0;)t++;e.splice(t,0,n)}function Hh(e){let t=[];return e.someProp("decorations",n=>{let i=n(e.state);i&&i!=zn&&t.push(i)}),e.cursorWrapper&&t.push(cn.create(e.state.doc,[e.cursorWrapper.deco])),Cs.from(t)}const F2={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},B2=hi&&Ms<=11;class z2{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class U2{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new z2,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r<i.length;r++)this.queue.push(i[r]);hi&&Ms<=11&&i.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),B2&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,F2)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Jk(this.view)){if(this.suppressingSelectionUpdates)return Yr(this.view);if(hi&&Ms<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Ma(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,i;for(let s=t.focusNode;s;s=Uo(s))n.add(s);for(let s=t.anchorNode;s;s=Uo(s))if(n.has(s)){i=s;break}let r=i&&this.view.docView.nearestDesc(i);if(r&&r.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&Jk(t)&&!this.ignoreSelectionChange(i),s=-1,a=-1,o=!1,l=[];if(t.editable)for(let c=0;c<n.length;c++){let f=this.registerMutation(n[c],l);f&&(s=s<0?f.from:Math.min(f.from,s),a=a<0?f.to:Math.max(f.to,a),f.typeOver&&(o=!0))}if(rr&&l.length){let c=l.filter(f=>f.nodeName=="BR");if(c.length==2){let[f,h]=c;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of c){let m=h.parentNode;m&&m.nodeName=="LI"&&(!f||j2(t,f)!=m)&&h.remove()}}}let u=null;s<0&&r&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&uf(i)&&(u=Yp(t))&&u.eq(it.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Yr(t),this.currentSelection.set(i),t.scrollToSelection()):(s>-1||r)&&(s>-1&&(t.docView.markDirty(s,a),W2(t)),this.handleDOMChange(s,a,o,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||Yr(t),this.currentSelection.set(i))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(i==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;c<t.addedNodes.length;c++){let f=t.addedNodes[c];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(i.contentDOM&&i.contentDOM!=i.dom&&!i.contentDOM.contains(t.target))return{from:i.posBefore,to:i.posAfter};let r=t.previousSibling,s=t.nextSibling;if(hi&&Ms<=11&&t.addedNodes.length)for(let c=0;c<t.addedNodes.length;c++){let{previousSibling:f,nextSibling:h}=t.addedNodes[c];(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(r=f),(!h||Array.prototype.indexOf.call(t.addedNodes,h)<0)&&(s=h)}let a=r&&r.parentNode==t.target?Pn(r)+1:0,o=i.localPosFromDOM(t.target,a,-1),l=s&&s.parentNode==t.target?Pn(s):t.target.childNodes.length,u=i.localPosFromDOM(t.target,l,1);return{from:o,to:u}}else return t.type=="attributes"?{from:i.posAtStart-i.border,to:i.posAtEnd+i.border}:(this.lastChangedTextNode=t.target,{from:i.posAtStart,to:i.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let sw=new WeakMap,aw=!1;function W2(e){if(!sw.has(e)&&(sw.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=rr,aw)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),aw=!0}}function ow(e,t){let n=t.startContainer,i=t.startOffset,r=t.endContainer,s=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return Ma(a.node,a.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}function H2(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return ow(e,r)}let n;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",i,!0),n?ow(e,n):null}function j2(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let i=e.docView.nearestDesc(n,!0);if(i&&i.node.isBlock)return n}return null}function G2(e,t,n){let{node:i,fromOffset:r,toOffset:s,from:a,to:o}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,c=l.anchorNode;if(c&&e.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],uf(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Hn&&e.input.lastKeyCode===8)for(let b=s;b>r;b--){let k=i.childNodes[b-1],w=k.pmViewDesc;if(k.nodeName=="BR"&&!w){s=b;break}if(!w||w.size)break}let f=e.state.doc,h=e.someProp("domParser")||Os.fromSchema(e.state.schema),m=f.resolve(a),g=null,y=h.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:r,to:s,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:q2,context:m});if(u&&u[0].pos!=null){let b=u[0].pos,k=u[1]&&u[1].pos;k==null&&(k=b),g={anchor:b+a,head:k+a}}return{doc:y,sel:g,from:a,to:o}}function q2(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(ii&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||ii&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const K2=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Y2(e,t,n,i,r){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,C=Yp(e,A);if(C&&!e.state.selection.eq(C)){if(Hn&&Hr&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",O=>O(e,oa(13,"Enter"))))return;let $=e.state.tr.setSelection(C);A=="pointer"?$.setMeta("pointer",!0):A=="key"&&$.scrollIntoView(),s&&$.setMeta("composition",s),e.dispatch($)}return}let a=e.state.doc.resolve(t),o=a.sharedDepth(n);t=a.before(o+1),n=e.state.doc.resolve(n).after(o+1);let l=e.state.selection,u=G2(e,t,n),c=e.state.doc,f=c.slice(u.from,u.to),h,m;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(h=e.state.selection.to,m="end"):(h=e.state.selection.from,m="start"),e.input.lastKeyCode=null;let g=Z2(f.content,u.doc.content,u.from,h,m);if(g&&e.input.domChangeCount++,(Wo&&e.input.lastIOSEnter>Date.now()-225||Hr)&&r.some(A=>A.nodeType==1&&!K2.test(A.nodeName))&&(!g||g.endA>=g.endB)&&e.someProp("handleKeyDown",A=>A(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!g)if(i&&l instanceof et&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))g={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let A=lw(e,e.state.doc,u.sel);if(A&&!A.eq(e.state.selection)){let C=e.state.tr.setSelection(A);s&&C.setMeta("composition",s),e.dispatch(C)}}return}e.state.selection.from<e.state.selection.to&&g.start==g.endB&&e.state.selection instanceof et&&(g.start>e.state.selection.from&&g.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?g.start=e.state.selection.from:g.endA<e.state.selection.to&&g.endA>=e.state.selection.to-2&&e.state.selection.to<=u.to&&(g.endB+=e.state.selection.to-g.endA,g.endA=e.state.selection.to)),hi&&Ms<=11&&g.endB==g.start+1&&g.endA==g.start&&g.start>u.from&&u.doc.textBetween(g.start-u.from-1,g.start-u.from+1)=="  "&&(g.start--,g.endA--,g.endB--);let y=u.doc.resolveNoCache(g.start-u.from),b=u.doc.resolveNoCache(g.endB-u.from),k=c.resolve(g.start),w=y.sameParent(b)&&y.parent.inlineContent&&k.end()>=g.endA,E;if((Wo&&e.input.lastIOSEnter>Date.now()-225&&(!w||r.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&(!y.sameParent(b)||!y.parent.inlineContent)&&!/\S/.test(u.doc.textBetween(y.pos,b.pos,"",""))&&(E=it.findFrom(u.doc.resolve(y.pos+1),1,!0))&&E.head>y.pos)&&e.someProp("handleKeyDown",A=>A(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>g.start&&X2(c,g.start,g.endA,y,b)&&e.someProp("handleKeyDown",A=>A(e,oa(8,"Backspace")))){Hr&&Hn&&e.domObserver.suppressSelectionUpdates();return}Hn&&g.endB==g.start&&(e.input.lastChromeDelete=Date.now()),Hr&&!w&&y.start()!=b.start()&&b.parentOffset==0&&y.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==g.endA&&(g.endB-=2,b=u.doc.resolveNoCache(g.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,oa(13,"Enter"))})},20));let I=g.start,D=g.endA,x=A=>{let C=A||e.state.tr.replace(I,D,u.doc.slice(g.start-u.from,g.endB-u.from));if(u.sel){let $=lw(e,C.doc,u.sel);$&&!(Hn&&e.composing&&$.empty&&(g.start!=g.endB||e.input.lastChromeDelete<Date.now()-100)&&($.head==I||$.head==C.mapping.map(D)-1)||hi&&$.empty&&$.head==I)&&C.setSelection($)}return s&&C.setMeta("composition",s),C.scrollIntoView()},P;if(w){if(y.pos==b.pos){hi&&Ms<=11&&y.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Yr(e),20));let A=x(e.state.tr.delete(I,D)),C=c.resolve(g.start).marksAcross(c.resolve(g.endA));C&&A.ensureMarks(C),e.dispatch(A)}else if(g.endA==g.endB&&(P=J2(y.parent.content.cut(y.parentOffset,b.parentOffset),k.parent.content.cut(k.parentOffset,g.endA-k.start())))){let A=x(e.state.tr);P.type=="add"?A.addMark(I,D,P.mark):A.removeMark(I,D,P.mark),e.dispatch(A)}else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){let A=y.parent.textBetween(y.parentOffset,b.parentOffset),C=()=>x(e.state.tr.insertText(A,I,D));e.someProp("handleTextInput",$=>$(e,I,D,A,C))||e.dispatch(C())}}else e.dispatch(x())}function lw(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Jp(e,t.resolve(n.anchor),t.resolve(n.head))}function J2(e,t){let n=e.firstChild.marks,i=t.firstChild.marks,r=n,s=i,a,o,l;for(let c=0;c<i.length;c++)r=i[c].removeFromSet(r);for(let c=0;c<n.length;c++)s=n[c].removeFromSet(s);if(r.length==1&&s.length==0)o=r[0],a="add",l=c=>c.mark(o.addToSet(c.marks));else if(r.length==0&&s.length==1)o=s[0],a="remove",l=c=>c.mark(o.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<t.childCount;c++)u.push(l(t.child(c)));if(Ee.from(u).eq(e))return{mark:o,type:a}}function X2(e,t,n,i,r){if(n-t<=r.pos-i.pos||jh(i,!0,!1)<r.pos)return!1;let s=e.resolve(t);if(!i.parent.isTextblock){let o=s.nodeAfter;return o!=null&&n==t+o.nodeSize}if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let a=e.resolve(jh(s,!0,!0));return!a.parent.isTextblock||a.pos>n||jh(a,!0,!1)<n?!1:i.parent.content.cut(i.parentOffset).eq(a.parent.content)}function jh(e,t,n){let i=e.depth,r=t?e.end():e.pos;for(;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n){let s=e.node(i).maybeChild(e.indexAfter(i));for(;s&&!s.isLeaf;)s=s.firstChild,r++}return r}function Z2(e,t,n,i,r){let s=e.findDiffStart(t,n);if(s==null)return null;let{a,b:o}=e.findDiffEnd(t,n+e.size,n+t.size);if(r=="end"){let l=Math.max(0,s-Math.min(a,o));i-=a+l-s}if(a<s&&e.size<t.size){let l=i<=s&&i>=a?s-i:0;s-=l,s&&s<t.size&&uw(t.textBetween(s-1,s+1))&&(s+=l?1:-1),o=s+(o-a),a=s}else if(o<s){let l=i<=s&&i>=o?s-i:0;s-=l,s&&s<e.size&&uw(e.textBetween(s-1,s+1))&&(s+=l?1:-1),a=s+(a-o),o=s}return{start:s,endA:a,endB:o}}function uw(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class fT{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new v2,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(mw),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=fw(this),dw(this),this.nodeViews=hw(this),this.docView=Hk(this.state.doc,cw(this),Hh(this),this.dom,this),this.domObserver=new U2(this,(i,r,s,a)=>Y2(this,i,r,s,a)),this.domObserver.start(),y2(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ng(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(mw),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let i in this._props)n[i]=this._props[i];n.state=this.state;for(let i in t)n[i]=t[i];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var i;let r=this.state,s=!1,a=!1;t.storedMarks&&this.composing&&(sT(this),a=!0),this.state=t;let o=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let m=hw(this);ez(m,this.nodeViews)&&(this.nodeViews=m,s=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&ng(this),this.editable=fw(this),dw(this);let l=Hh(this),u=cw(this),c=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",f=s||!this.docView.matchesNode(t.doc,u,l);(f||!t.selection.eq(r.selection))&&(a=!0);let h=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&OB(this);if(a){this.domObserver.stop();let m=f&&(hi||Hn)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&Q2(r.selection,t.selection);if(f){let g=Hn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=P2(this)),(s||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Hk(t.doc,u,l,this.dom,this)),g&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&n2(this))?Yr(this,m):(qC(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((i=this.dragging)===null||i===void 0)&&i.node&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&MB(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ye){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Rk(this,n.getBoundingClientRect(),t)}else Rk(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let i=this.state.plugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let i=this.pluginViews[n];i.update&&i.update(this,t)}}updateDraggedNode(t,n){let i=t.node,r=-1;if(this.state.doc.nodeAt(i.from)==i.node)r=i.from;else{let s=i.from+(this.state.doc.content.size-n.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==i.node&&(r=s)}this.dragging=new oT(t.slice,t.move,r<0?void 0:Ye.create(this.state.doc,r))}someProp(t,n){let i=this._props&&this._props[t],r;if(i!=null&&(r=n?n(i):i))return r;for(let a=0;a<this.directPlugins.length;a++){let o=this.directPlugins[a].props[t];if(o!=null&&(r=n?n(o):o))return r}let s=this.state.plugins;if(s)for(let a=0;a<s.length;a++){let o=s[a].props[t];if(o!=null&&(r=n?n(o):o))return r}}hasFocus(){if(hi){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&$B(this.dom),Yr(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return FB(this,t)}coordsAtPos(t,n=1){return FC(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,i=-1){let r=this.docView.posFromDOM(t,n,i);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,n){return HB(this,n||this.state,t)}pasteHTML(t,n){return cu(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return cu(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return Xp(this,t)}destroy(){this.docView&&(b2(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Hh(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,wB())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return w2(this,t)}domSelectionRange(){let t=this.domSelection();return t?ii&&this.root.nodeType===11&&EB(this.dom.ownerDocument)==this.dom&&H2(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}fT.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function cw(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let i in n)i=="class"?t.class+=" "+n[i]:i=="style"?t.style=(t.style?t.style+";":"")+n[i]:!t[i]&&i!="contenteditable"&&i!="nodeName"&&(t[i]=String(n[i]))}),t.translate||(t.translate="no"),[Bi.node(0,e.state.doc.content.size,t)]}function dw(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Bi.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function fw(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Q2(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function hw(e){let t=Object.create(null);function n(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ez(e,t){let n=0,i=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let r in t)i++;return n!=i}function mw(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Fs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},kd={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},tz=typeof navigator<"u"&&/Mac/.test(navigator.platform),nz=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var On=0;On<10;On++)Fs[48+On]=Fs[96+On]=String(On);for(var On=1;On<=24;On++)Fs[On+111]="F"+On;for(var On=65;On<=90;On++)Fs[On]=String.fromCharCode(On+32),kd[On]=String.fromCharCode(On);for(var Gh in Fs)kd.hasOwnProperty(Gh)||(kd[Gh]=Fs[Gh]);function iz(e){var t=tz&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||nz&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?kd:Fs)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const rz=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),sz=typeof navigator<"u"&&/Win/.test(navigator.platform);function az(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let i,r,s,a;for(let o=0;o<t.length-1;o++){let l=t[o];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))i=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))s=!0;else if(/^mod$/i.test(l))rz?a=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return i&&(n="Alt-"+n),r&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function oz(e){let t=Object.create(null);for(let n in e)t[az(n)]=e[n];return t}function qh(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function lz(e){return new yi({props:{handleKeyDown:hT(e)}})}function hT(e){let t=oz(e);return function(n,i){let r=iz(i),s,a=t[qh(r,i)];if(a&&a(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(i.shiftKey){let o=t[qh(r,i,!1)];if(o&&o(n.state,n.dispatch,n))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(sz&&i.ctrlKey&&i.altKey)&&(s=Fs[i.keyCode])&&s!=r){let o=t[qh(s,i)];if(o&&o(n.state,n.dispatch,n))return!0}}return!1}}const iv=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function mT(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const gT=(e,t,n)=>{let i=mT(e,n);if(!i)return!1;let r=rv(i);if(!r){let a=i.blockRange(),o=a&&al(a);return o==null?!1:(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)}let s=r.nodeBefore;if(CT(e,r,t,-1))return!0;if(i.parent.content.size==0&&(Ho(s,"end")||Ye.isSelectable(s)))for(let a=i.depth;;a--){let o=of(e.doc,i.before(a),i.after(a),Re.empty);if(o&&o.slice.size<o.to-o.from){if(t){let l=e.tr.step(o);l.setSelection(Ho(s,"end")?it.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):Ye.create(l.doc,r.pos-s.nodeSize)),t(l.scrollIntoView())}return!0}if(a==1||i.node(a-1).childCount>1)break}return s.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos-s.nodeSize,r.pos).scrollIntoView()),!0):!1},uz=(e,t,n)=>{let i=mT(e,n);if(!i)return!1;let r=rv(i);return r?pT(e,r,t):!1},cz=(e,t,n)=>{let i=yT(e,n);if(!i)return!1;let r=sv(i);return r?pT(e,r,t):!1};function pT(e,t,n){let i=t.nodeBefore,r=i,s=t.pos-1;for(;!r.isTextblock;s--){if(r.type.spec.isolating)return!1;let c=r.lastChild;if(!c)return!1;r=c}let a=t.nodeAfter,o=a,l=t.pos+1;for(;!o.isTextblock;l++){if(o.type.spec.isolating)return!1;let c=o.firstChild;if(!c)return!1;o=c}let u=of(e.doc,s,l,Re.empty);if(!u||u.from!=s||u instanceof pn&&u.slice.size>=l-s)return!1;if(n){let c=e.tr.step(u);c.setSelection(et.create(c.doc,s)),n(c.scrollIntoView())}return!0}function Ho(e,t,n=!1){for(let i=e;i;i=t=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&i.childCount!=1)return!1}return!1}const vT=(e,t,n)=>{let{$head:i,empty:r}=e.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=rv(i)}let a=s&&s.nodeBefore;return!a||!Ye.isSelectable(a)?!1:(t&&t(e.tr.setSelection(Ye.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function rv(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function yT(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const bT=(e,t,n)=>{let i=yT(e,n);if(!i)return!1;let r=sv(i);if(!r)return!1;let s=r.nodeAfter;if(CT(e,r,t,1))return!0;if(i.parent.content.size==0&&(Ho(s,"start")||Ye.isSelectable(s))){let a=of(e.doc,i.before(),i.after(),Re.empty);if(a&&a.slice.size<a.to-a.from){if(t){let o=e.tr.step(a);o.setSelection(Ho(s,"start")?it.findFrom(o.doc.resolve(o.mapping.map(r.pos)),1):Ye.create(o.doc,o.mapping.map(r.pos))),t(o.scrollIntoView())}return!0}}return s.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos,r.pos+s.nodeSize).scrollIntoView()),!0):!1},kT=(e,t,n)=>{let{$head:i,empty:r}=e.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;s=sv(i)}let a=s&&s.nodeAfter;return!a||!Ye.isSelectable(a)?!1:(t&&t(e.tr.setSelection(Ye.create(e.doc,s.pos)).scrollIntoView()),!0)};function sv(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const dz=(e,t)=>{let n=e.selection,i=n instanceof Ye,r;if(i){if(n.node.isTextblock||!Hs(e.doc,n.from))return!1;r=n.from}else if(r=af(e.doc,n.from,-1),r==null)return!1;if(t){let s=e.tr.join(r);i&&s.setSelection(Ye.create(s.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),t(s.scrollIntoView())}return!0},fz=(e,t)=>{let n=e.selection,i;if(n instanceof Ye){if(n.node.isTextblock||!Hs(e.doc,n.to))return!1;i=n.to}else if(i=af(e.doc,n.to,1),i==null)return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},hz=(e,t)=>{let{$from:n,$to:i}=e.selection,r=n.blockRange(i),s=r&&al(r);return s==null?!1:(t&&t(e.tr.lift(r,s).scrollIntoView()),!0)},wT=(e,t)=>{let{$head:n,$anchor:i}=e.selection;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(t&&t(e.tr.insertText(`
`).scrollIntoView()),!0)};function av(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const mz=(e,t)=>{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),s=n.indexAfter(-1),a=av(r.contentMatchAt(s));if(!a||!r.canReplaceWith(s,s,a))return!1;if(t){let o=n.after(),l=e.tr.replaceWith(o,o,a.createAndFill());l.setSelection(it.near(l.doc.resolve(o),1)),t(l.scrollIntoView())}return!0},ST=(e,t)=>{let n=e.selection,{$from:i,$to:r}=n;if(n instanceof Ei||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=av(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let a=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,o=e.tr.insert(a,s.createAndFill());o.setSelection(et.create(o.doc,a+1)),t(o.scrollIntoView())}return!0},_T=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(Kr(e.doc,s))return t&&t(e.tr.split(s).scrollIntoView()),!0}let i=n.blockRange(),r=i&&al(i);return r==null?!1:(t&&t(e.tr.lift(i,r).scrollIntoView()),!0)};function gz(e){return(t,n)=>{let{$from:i,$to:r}=t.selection;if(t.selection instanceof Ye&&t.selection.node.isBlock)return!i.parentOffset||!Kr(t.doc,i.pos)?!1:(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.depth)return!1;let s=[],a,o,l=!1,u=!1;for(let m=i.depth;;m--)if(i.node(m).isBlock){l=i.end(m)==i.pos+(i.depth-m),u=i.start(m)==i.pos-(i.depth-m),o=av(i.node(m-1).contentMatchAt(i.indexAfter(m-1))),s.unshift(l&&o?{type:o}:null),a=m;break}else{if(m==1)return!1;s.unshift(null)}let c=t.tr;(t.selection instanceof et||t.selection instanceof Ei)&&c.deleteSelection();let f=c.mapping.map(i.pos),h=Kr(c.doc,f,s.length,s);if(h||(s[0]=o?{type:o}:null,h=Kr(c.doc,f,s.length,s)),!h)return!1;if(c.split(f,s.length,s),!l&&u&&i.node(a).type!=o){let m=c.mapping.map(i.before(a)),g=c.doc.resolve(m);o&&i.node(a-1).canReplaceWith(g.index(),g.index()+1,o)&&c.setNodeMarkup(c.mapping.map(i.before(a)),o)}return n&&n(c.scrollIntoView()),!0}}const pz=gz(),vz=(e,t)=>{let{$from:n,to:i}=e.selection,r,s=n.sharedDepth(i);return s==0?!1:(r=n.before(s),t&&t(e.tr.setSelection(Ye.create(e.doc,r))),!0)};function yz(e,t,n){let i=t.nodeBefore,r=t.nodeAfter,s=t.index();return!i||!r||!i.type.compatibleContent(r.type)?!1:!i.content.size&&t.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(s,s+1)||!(r.isTextblock||Hs(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function CT(e,t,n,i){let r=t.nodeBefore,s=t.nodeAfter,a,o,l=r.type.spec.isolating||s.type.spec.isolating;if(!l&&yz(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(a=(o=r.contentMatchAt(r.childCount)).findWrapping(s.type))&&o.matchType(a[0]||s.type).validEnd){if(n){let m=t.pos+s.nodeSize,g=Ee.empty;for(let k=a.length-1;k>=0;k--)g=Ee.from(a[k].create(null,g));g=Ee.from(r.copy(g));let y=e.tr.step(new bn(t.pos-1,m,t.pos,m,new Re(g,1,0),a.length,!0)),b=y.doc.resolve(m+2*a.length);b.nodeAfter&&b.nodeAfter.type==r.type&&Hs(y.doc,b.pos)&&y.join(b.pos),n(y.scrollIntoView())}return!0}let c=s.type.spec.isolating||i>0&&l?null:it.findFrom(t,1),f=c&&c.$from.blockRange(c.$to),h=f&&al(f);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(f,h).scrollIntoView()),!0;if(u&&Ho(s,"start",!0)&&Ho(r,"end")){let m=r,g=[];for(;g.push(m),!m.isTextblock;)m=m.lastChild;let y=s,b=1;for(;!y.isTextblock;y=y.firstChild)b++;if(m.canReplace(m.childCount,m.childCount,y.content)){if(n){let k=Ee.empty;for(let E=g.length-1;E>=0;E--)k=Ee.from(g[E].copy(k));let w=e.tr.step(new bn(t.pos-g.length,t.pos+s.nodeSize,t.pos+b,t.pos+s.nodeSize-b,new Re(k,g.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function TT(e){return function(t,n){let i=t.selection,r=e<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return r.node(s).isTextblock?(n&&n(t.tr.setSelection(et.create(t.doc,e<0?r.start(s):r.end(s)))),!0):!1}}const bz=TT(-1),kz=TT(1);function wz(e,t=null){return function(n,i){let{$from:r,$to:s}=n.selection,a=r.blockRange(s),o=a&&Gp(a,e,t);return o?(i&&i(n.tr.wrap(a,o).scrollIntoView()),!0):!1}}function gw(e,t=null){return function(n,i){let r=!1;for(let s=0;s<n.selection.ranges.length&&!r;s++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[s];n.doc.nodesBetween(a,o,(l,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)r=!0;else{let c=n.doc.resolve(u),f=c.index();r=c.parent.canReplaceWith(f,f+1,e)}})}if(!r)return!1;if(i){let s=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[a];s.setBlockType(o,l,e,t)}i(s.scrollIntoView())}return!0}}function ov(...e){return function(t,n,i){for(let r=0;r<e.length;r++)if(e[r](t,n,i))return!0;return!1}}ov(iv,gT,vT);ov(iv,bT,kT);ov(wT,ST,_T,pz);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function Sz(e,t=null){return function(n,i){let{$from:r,$to:s}=n.selection,a=r.blockRange(s);if(!a)return!1;let o=i?n.tr:null;return _z(o,a,e,t)?(i&&i(o.scrollIntoView()),!0):!1}}function _z(e,t,n,i=null){let r=!1,s=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=a.resolve(t.start-2);s=new hd(l,l,t.depth),t.endIndex<t.parent.childCount&&(t=new hd(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),r=!0}let o=Gp(s,n,i,t);return o?(e&&Cz(e,t,o,r,n),!0):!1}function Cz(e,t,n,i,r){let s=Ee.empty;for(let c=n.length-1;c>=0;c--)s=Ee.from(n[c].type.create(n[c].attrs,s));e.step(new bn(t.start-(i?2:0),t.end,t.start,t.end,new Re(s,0,0),n.length,!0));let a=0;for(let c=0;c<n.length;c++)n[c].type==r&&(a=c+1);let o=n.length-a,l=t.start+n.length-(i?2:0),u=t.parent;for(let c=t.startIndex,f=t.endIndex,h=!0;c<f;c++,h=!1)!h&&Kr(e.doc,l,o)&&(e.split(l,o),l+=2*o),l+=u.child(c).nodeSize;return e}function Tz(e){return function(t,n){let{$from:i,$to:r}=t.selection,s=i.blockRange(r,a=>a.childCount>0&&a.firstChild.type==e);return s?n?i.node(s.depth-1).type==e?Ez(t,n,e,s):Iz(t,n,s):!0:!1}}function Ez(e,t,n,i){let r=e.tr,s=i.end,a=i.$to.end(i.depth);s<a&&(r.step(new bn(s-1,a,s,a,new Re(Ee.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new hd(r.doc.resolve(i.$from.pos),r.doc.resolve(a),i.depth));const o=al(i);if(o==null)return!1;r.lift(i,o);let l=r.doc.resolve(r.mapping.map(s,-1)-1);return Hs(r.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&r.join(l.pos),t(r.scrollIntoView()),!0}function Iz(e,t,n){let i=e.tr,r=n.parent;for(let m=n.end,g=n.endIndex-1,y=n.startIndex;g>y;g--)m-=r.child(g).nodeSize,i.delete(m-1,m+1);let s=i.doc.resolve(n.start),a=s.nodeAfter;if(i.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let o=n.startIndex==0,l=n.endIndex==r.childCount,u=s.node(-1),c=s.index(-1);if(!u.canReplace(c+(o?0:1),c+1,a.content.append(l?Ee.empty:Ee.from(r))))return!1;let f=s.pos,h=f+a.nodeSize;return i.step(new bn(f-(o?1:0),h+(l?1:0),f+1,h-1,new Re((o?Ee.empty:Ee.from(r.copy(Ee.empty))).append(l?Ee.empty:Ee.from(r.copy(Ee.empty))),o?0:1,l?0:1),o?0:1)),t(i.scrollIntoView()),!0}function Az(e){return function(t,n){let{$from:i,$to:r}=t.selection,s=i.blockRange(r,u=>u.childCount>0&&u.firstChild.type==e);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let o=s.parent,l=o.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==o.type,c=Ee.from(u?e.create():null),f=new Re(Ee.from(e.create(null,Ee.from(o.type.create(null,c)))),u?3:1,0),h=s.start,m=s.end;n(t.tr.step(new bn(h-(u?3:1),m,h,m,f,1,!0)).scrollIntoView())}return!0}}function ff(e){const{state:t,transaction:n}=e;let{selection:i}=n,{doc:r}=n,{storedMarks:s}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return s},get selection(){return i},get doc(){return r},get tr(){return i=n.selection,r=n.doc,s=n.storedMarks,n}}}class hf{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:i}=this,{view:r}=n,{tr:s}=i,a=this.buildProps(s);return Object.fromEntries(Object.entries(t).map(([o,l])=>[o,(...c)=>{const f=l(...c)(a);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(s),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:i,editor:r,state:s}=this,{view:a}=r,o=[],l=!!t,u=t||s.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),o.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(i).map(([h,m])=>[h,(...y)=>{const b=this.buildProps(u,n),k=m(...y)(b);return o.push(k),f}])),run:c};return f}createCan(t){const{rawCommands:n,state:i}=this,r=!1,s=t||i.tr,a=this.buildProps(s,r);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(s,r)}}buildProps(t,n=!0){const{rawCommands:i,editor:r,state:s}=this,{view:a}=r,o={tr:t,editor:r,view:a,state:ff({state:s,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([l,u])=>[l,(...c)=>u(...c)(o)]))}};return o}}class xz{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,n)),this}off(t,n){const i=this.callbacks[t];return i&&(n?this.callbacks[t]=i.filter(r=>r!==n):delete this.callbacks[t]),this}once(t,n){const i=(...r)=>{this.off(t,i),n.apply(this,r)};return this.on(t,i)}removeAllListeners(){this.callbacks={}}}function Ue(e,t,n){return e.config[t]===void 0&&e.parent?Ue(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Ue(e.parent,t,n):null}):e.config[t]}function mf(e){const t=e.filter(r=>r.type==="extension"),n=e.filter(r=>r.type==="node"),i=e.filter(r=>r.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:i}}function ET(e){const t=[],{nodeExtensions:n,markExtensions:i}=mf(e),r=[...n,...i],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const o={name:a.name,options:a.options,storage:a.storage,extensions:r},l=Ue(a,"addGlobalAttributes",o);if(!l)return;l().forEach(c=>{c.types.forEach(f=>{Object.entries(c.attributes).forEach(([h,m])=>{t.push({type:f,name:h,attribute:{...s,...m}})})})})}),r.forEach(a=>{const o={name:a.name,options:a.options,storage:a.storage},l=Ue(a,"addAttributes",o);if(!l)return;const u=l();Object.entries(u).forEach(([c,f])=>{const h={...s,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,t.push({type:a.name,name:c,attribute:h})})}),t}function Sn(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function _n(...e){return e.filter(t=>!!t).reduce((t,n)=>{const i={...t};return Object.entries(n).forEach(([r,s])=>{if(!i[r]){i[r]=s;return}if(r==="class"){const o=s?String(s).split(" "):[],l=i[r]?i[r].split(" "):[],u=o.filter(c=>!l.includes(c));i[r]=[...l,...u].join(" ")}else if(r==="style"){const o=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],l=i[r]?i[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[f,h]=c.split(":").map(m=>m.trim());u.set(f,h)}),o.forEach(c=>{const[f,h]=c.split(":").map(m=>m.trim());u.set(f,h)}),i[r]=Array.from(u.entries()).map(([c,f])=>`${c}: ${f}`).join("; ")}else i[r]=s}),i},{})}function ig(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,i)=>_n(n,i),{})}function IT(e){return typeof e=="function"}function st(e,t=void 0,...n){return IT(e)?t?e.bind(t)(...n):e(...n):e}function Dz(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Pz(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function pw(e,t){return"style"in e?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(i===!1)return!1;const r=t.reduce((s,a)=>{const o=a.attribute.parseHTML?a.attribute.parseHTML(n):Pz(n.getAttribute(a.name));return o==null?s:{...s,[a.name]:o}},{});return{...i,...r}}}}function vw(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Dz(n)?!1:n!=null))}function Oz(e,t){var n;const i=ET(e),{nodeExtensions:r,markExtensions:s}=mf(e),a=(n=r.find(u=>Ue(u,"topNode")))===null||n===void 0?void 0:n.name,o=Object.fromEntries(r.map(u=>{const c=i.filter(k=>k.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((k,w)=>{const E=Ue(w,"extendNodeSchema",f);return{...k,...E?E(u):{}}},{}),m=vw({...h,content:st(Ue(u,"content",f)),marks:st(Ue(u,"marks",f)),group:st(Ue(u,"group",f)),inline:st(Ue(u,"inline",f)),atom:st(Ue(u,"atom",f)),selectable:st(Ue(u,"selectable",f)),draggable:st(Ue(u,"draggable",f)),code:st(Ue(u,"code",f)),whitespace:st(Ue(u,"whitespace",f)),linebreakReplacement:st(Ue(u,"linebreakReplacement",f)),defining:st(Ue(u,"defining",f)),isolating:st(Ue(u,"isolating",f)),attrs:Object.fromEntries(c.map(k=>{var w;return[k.name,{default:(w=k==null?void 0:k.attribute)===null||w===void 0?void 0:w.default}]}))}),g=st(Ue(u,"parseHTML",f));g&&(m.parseDOM=g.map(k=>pw(k,c)));const y=Ue(u,"renderHTML",f);y&&(m.toDOM=k=>y({node:k,HTMLAttributes:ig(k,c)}));const b=Ue(u,"renderText",f);return b&&(m.toText=b),[u.name,m]})),l=Object.fromEntries(s.map(u=>{const c=i.filter(b=>b.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((b,k)=>{const w=Ue(k,"extendMarkSchema",f);return{...b,...w?w(u):{}}},{}),m=vw({...h,inclusive:st(Ue(u,"inclusive",f)),excludes:st(Ue(u,"excludes",f)),group:st(Ue(u,"group",f)),spanning:st(Ue(u,"spanning",f)),code:st(Ue(u,"code",f)),attrs:Object.fromEntries(c.map(b=>{var k;return[b.name,{default:(k=b==null?void 0:b.attribute)===null||k===void 0?void 0:k.default}]}))}),g=st(Ue(u,"parseHTML",f));g&&(m.parseDOM=g.map(b=>pw(b,c)));const y=Ue(u,"renderHTML",f);return y&&(m.toDOM=b=>y({mark:b,HTMLAttributes:ig(b,c)})),[u.name,m]}));return new gC({topNode:a,nodes:o,marks:l})}function Kh(e,t){return t.nodes[e]||t.marks[e]||null}function yw(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function lv(e,t){const n=Ka.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const Mz=(e,t=500)=>{let n="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-t),i,(r,s,a,o)=>{var l,u;const c=((u=(l=r.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:r,pos:s,parent:a,index:o}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,i-s))}),n};function uv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class gf{constructor(t){this.find=t.find,this.handler=t.handler}}const $z=(e,t)=>{if(uv(t))return t.exec(e);const n=t(e);if(!n)return null;const i=[n.text];return i.index=n.index,i.input=e,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(n.replaceWith)),i};function yc(e){var t;const{editor:n,from:i,to:r,text:s,rules:a,plugin:o}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(i);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let c=!1;const f=Mz(u)+s;return a.forEach(h=>{if(c)return;const m=$z(f,h.find);if(!m)return;const g=l.state.tr,y=ff({state:l.state,transaction:g}),b={from:i-(m[0].length-s.length),to:r},{commands:k,chain:w,can:E}=new hf({editor:n,state:y});h.handler({state:y,range:b,match:m,commands:k,chain:w,can:E})===null||!g.steps.length||(g.setMeta(o,{transform:g,from:i,to:r,text:s}),l.dispatch(g),c=!0)}),c}function Vz(e){const{editor:t,rules:n}=e,i=new yi({state:{init(){return null},apply(r,s,a){const o=r.getMeta(i);if(o)return o;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:c}=l;typeof c=="string"?c=c:c=lv(Ee.from(c),a.schema);const{from:f}=l,h=f+c.length;yc({editor:t,from:f,to:h,text:c,rules:n,plugin:i})}),r.selectionSet||r.docChanged?null:s}},props:{handleTextInput(r,s,a,o){return yc({editor:t,from:s,to:a,text:o,rules:n,plugin:i})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:s}=r.state.selection;s&&yc({editor:t,from:s.pos,to:s.pos,text:"",rules:n,plugin:i})}),!1)},handleKeyDown(r,s){if(s.key!=="Enter")return!1;const{$cursor:a}=r.state.selection;return a?yc({editor:t,from:a.pos,to:a.pos,text:`
`,rules:n,plugin:i}):!1}},isInputRules:!0});return i}function Lz(e){return Object.prototype.toString.call(e).slice(8,-1)}function bc(e){return Lz(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function pf(e,t){const n={...e};return bc(e)&&bc(t)&&Object.keys(t).forEach(i=>{bc(t[i])&&bc(e[i])?n[i]=pf(e[i],t[i]):n[i]=t[i]}),n}class Tr{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=st(Ue(this,"addOptions",{name:this.name}))),this.storage=st(Ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Tr(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>pf(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Tr(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=st(Ue(n,"addOptions",{name:n.name})),n.storage=st(Ue(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const a=r.marks();if(!!!a.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=a.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&i.removeStoredMark(l),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}function Nz(e){return typeof e=="number"}class Rz{constructor(t){this.find=t.find,this.handler=t.handler}}const Fz=(e,t,n)=>{if(uv(t))return[...e.matchAll(t)];const i=t(e,n);return i?i.map(r=>{const s=[r.text];return s.index=r.index,s.input=e,s.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(r.replaceWith)),s}):[]};function Bz(e){const{editor:t,state:n,from:i,to:r,rule:s,pasteEvent:a,dropEvent:o}=e,{commands:l,chain:u,can:c}=new hf({editor:t,state:n}),f=[];return n.doc.nodesBetween(i,r,(m,g)=>{if(!m.isTextblock||m.type.spec.code)return;const y=Math.max(i,g),b=Math.min(r,g+m.content.size),k=m.textBetween(y-g,b-g,void 0,"");Fz(k,s.find,a).forEach(E=>{if(E.index===void 0)return;const I=y+E.index+1,D=I+E[0].length,x={from:n.tr.mapping.map(I),to:n.tr.mapping.map(D)},P=s.handler({state:n,range:x,match:E,commands:l,chain:u,can:c,pasteEvent:a,dropEvent:o});f.push(P)})}),f.every(m=>m!==null)}let kc=null;const zz=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function Uz(e){const{editor:t,rules:n}=e;let i=null,r=!1,s=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,o;try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}const l=({state:c,from:f,to:h,rule:m,pasteEvt:g})=>{const y=c.tr,b=ff({state:c,transaction:y});if(!(!Bz({editor:t,state:b,from:Math.max(f-1,0),to:h.b-1,rule:m,pasteEvent:g,dropEvent:o})||!y.steps.length)){try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y}};return n.map(c=>new yi({view(f){const h=g=>{var y;i=!((y=f.dom.parentElement)===null||y===void 0)&&y.contains(g.target)?f.dom.parentElement:null,i&&(kc=t)},m=()=>{kc&&(kc=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",m),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",m)}}},props:{handleDOMEvents:{drop:(f,h)=>{if(s=i===f.dom.parentElement,o=h,!s){const m=kc;m&&setTimeout(()=>{const g=m.state.selection;g&&m.commands.deleteRange({from:g.from,to:g.to})},10)}return!1},paste:(f,h)=>{var m;const g=(m=h.clipboardData)===null||m===void 0?void 0:m.getData("text/html");return a=h,r=!!(g!=null&&g.includes("data-pm-slice")),!1}}},appendTransaction:(f,h,m)=>{const g=f[0],y=g.getMeta("uiEvent")==="paste"&&!r,b=g.getMeta("uiEvent")==="drop"&&!s,k=g.getMeta("applyPasteRules"),w=!!k;if(!y&&!b&&!w)return;if(w){let{text:D}=k;typeof D=="string"?D=D:D=lv(Ee.from(D),m.schema);const{from:x}=k,P=x+D.length,A=zz(D);return l({rule:c,state:m,from:x,to:{b:P},pasteEvt:A})}const E=h.doc.content.findDiffStart(m.doc.content),I=h.doc.content.findDiffEnd(m.doc.content);if(!(!Nz(E)||!I||E===I.b))return l({rule:c,state:m,from:E,to:I,pasteEvt:a})}}))}function Wz(e){const t=e.filter((n,i)=>e.indexOf(n)!==i);return Array.from(new Set(t))}class To{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=To.resolve(t),this.schema=Oz(this.extensions,n),this.setupExtensions()}static resolve(t){const n=To.sort(To.flatten(t)),i=Wz(n.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const i={name:n.name,options:n.options,storage:n.storage},r=Ue(n,"addExtensions",i);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(t){return t.sort((i,r)=>{const s=Ue(i,"priority")||100,a=Ue(r,"priority")||100;return s>a?-1:s<a?1:0})}get commands(){return this.extensions.reduce((t,n)=>{const i={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Kh(n.name,this.schema)},r=Ue(n,"addCommands",i);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,n=To.sort([...this.extensions].reverse()),i=[],r=[],s=n.map(a=>{const o={name:a.name,options:a.options,storage:a.storage,editor:t,type:Kh(a.name,this.schema)},l=[],u=Ue(a,"addKeyboardShortcuts",o);let c={};if(a.type==="mark"&&Ue(a,"exitable",o)&&(c.ArrowRight=()=>Tr.handleExit({editor:t,mark:a})),u){const y=Object.fromEntries(Object.entries(u()).map(([b,k])=>[b,()=>k({editor:t})]));c={...c,...y}}const f=lz(c);l.push(f);const h=Ue(a,"addInputRules",o);yw(a,t.options.enableInputRules)&&h&&i.push(...h());const m=Ue(a,"addPasteRules",o);yw(a,t.options.enablePasteRules)&&m&&r.push(...m());const g=Ue(a,"addProseMirrorPlugins",o);if(g){const y=g();l.push(...y)}return l}).flat();return[Vz({editor:t,rules:i}),...Uz({editor:t,rules:r}),...s]}get attributes(){return ET(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=mf(this.extensions);return Object.fromEntries(n.filter(i=>!!Ue(i,"addNodeView")).map(i=>{const r=this.attributes.filter(l=>l.type===i.name),s={name:i.name,options:i.options,storage:i.storage,editor:t,type:Sn(i.name,this.schema)},a=Ue(i,"addNodeView",s);if(!a)return[];const o=(l,u,c,f,h)=>{const m=ig(l,r);return a()({node:l,view:u,getPos:c,decorations:f,innerDecorations:h,editor:t,extension:i,HTMLAttributes:m})};return[i.name,o]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const i={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Kh(t.name,this.schema)};t.type==="mark"&&(!((n=st(Ue(t,"keepOnSplit",i)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const r=Ue(t,"onBeforeCreate",i),s=Ue(t,"onCreate",i),a=Ue(t,"onUpdate",i),o=Ue(t,"onSelectionUpdate",i),l=Ue(t,"onTransaction",i),u=Ue(t,"onFocus",i),c=Ue(t,"onBlur",i),f=Ue(t,"onDestroy",i);r&&this.editor.on("beforeCreate",r),s&&this.editor.on("create",s),a&&this.editor.on("update",a),o&&this.editor.on("selectionUpdate",o),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),f&&this.editor.on("destroy",f)})}}class Vn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=st(Ue(this,"addOptions",{name:this.name}))),this.storage=st(Ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Vn(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>pf(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Vn({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=st(Ue(n,"addOptions",{name:n.name})),n.storage=st(Ue(n,"addStorage",{name:n.name,options:n.options})),n}}function AT(e,t,n){const{from:i,to:r}=t,{blockSeparator:s=`
`,textSerializers:a={}}=n||{};let o="";return e.nodesBetween(i,r,(l,u,c,f)=>{var h;l.isBlock&&u>i&&(o+=s);const m=a==null?void 0:a[l.type.name];if(m)return c&&(o+=m({node:l,pos:u,parent:c,index:f,range:t})),!1;l.isText&&(o+=(h=l==null?void 0:l.text)===null||h===void 0?void 0:h.slice(Math.max(i,u)-u,r-u))}),o}function xT(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const Hz=Vn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new yi({key:new xr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:i,selection:r}=t,{ranges:s}=r,a=Math.min(...s.map(c=>c.$from.pos)),o=Math.max(...s.map(c=>c.$to.pos)),l=xT(n);return AT(i,{from:a,to:o},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),jz=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Gz=(e=!1)=>({commands:t})=>t.setContent("",e),qz=()=>({state:e,tr:t,dispatch:n})=>{const{selection:i}=t,{ranges:r}=i;return n&&r.forEach(({$from:s,$to:a})=>{e.doc.nodesBetween(s.pos,a.pos,(o,l)=>{if(o.type.isText)return;const{doc:u,mapping:c}=t,f=u.resolve(c.map(l)),h=u.resolve(c.map(l+o.nodeSize)),m=f.blockRange(h);if(!m)return;const g=al(m);if(o.type.isTextblock){const{defaultType:y}=f.parent.contentMatchAt(f.index());t.setNodeMarkup(m.start,y)}(g||g===0)&&t.lift(m,g)})}),!0},Kz=e=>t=>e(t),Yz=()=>({state:e,dispatch:t})=>ST(e,t),Jz=(e,t)=>({editor:n,tr:i})=>{const{state:r}=n,s=r.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const a=i.mapping.map(t);return i.insert(a,s.content),i.setSelection(new et(i.doc.resolve(a-1))),!0},Xz=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,i=n.$anchor.node();if(i.content.size>0)return!1;const r=e.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===i.type){if(t){const o=r.before(s),l=r.after(s);e.delete(o,l).scrollIntoView()}return!0}return!1},Zz=e=>({tr:t,state:n,dispatch:i})=>{const r=Sn(e,n.schema),s=t.selection.$anchor;for(let a=s.depth;a>0;a-=1)if(s.node(a).type===r){if(i){const l=s.before(a),u=s.after(a);t.delete(l,u).scrollIntoView()}return!0}return!1},Qz=e=>({tr:t,dispatch:n})=>{const{from:i,to:r}=e;return n&&t.delete(i,r),!0},e3=()=>({state:e,dispatch:t})=>iv(e,t),t3=()=>({commands:e})=>e.keyboardShortcut("Enter"),n3=()=>({state:e,dispatch:t})=>mz(e,t);function wd(e,t,n={strict:!0}){const i=Object.keys(t);return i.length?i.every(r=>n.strict?t[r]===e[r]:uv(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function DT(e,t,n={}){return e.find(i=>i.type===t&&wd(Object.fromEntries(Object.keys(n).map(r=>[r,i.attrs[r]])),n))}function bw(e,t,n={}){return!!DT(e,t,n)}function cv(e,t,n){var i;if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(c=>c.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(c=>c.type===t)||(n=n||((i=r.node.marks[0])===null||i===void 0?void 0:i.attrs),!DT([...r.node.marks],t,n)))return;let a=r.index,o=e.start()+r.offset,l=a+1,u=o+r.node.nodeSize;for(;a>0&&bw([...e.parent.child(a-1).marks],t,n);)a-=1,o-=e.parent.child(a).nodeSize;for(;l<e.parent.childCount&&bw([...e.parent.child(l).marks],t,n);)u+=e.parent.child(l).nodeSize,l+=1;return{from:o,to:u}}function Gs(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const i3=(e,t={})=>({tr:n,state:i,dispatch:r})=>{const s=Gs(e,i.schema),{doc:a,selection:o}=n,{$from:l,from:u,to:c}=o;if(r){const f=cv(l,s,t);if(f&&f.from<=u&&f.to>=c){const h=et.create(a,f.from,f.to);n.setSelection(h)}}return!0},r3=e=>t=>{const n=typeof e=="function"?e(t):e;for(let i=0;i<n.length;i+=1)if(n[i](t))return!0;return!1};function PT(e){return e instanceof et}function fa(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function OT(e,t=null){if(!t)return null;const n=it.atStart(e),i=it.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return i;const r=n.from,s=i.to;return t==="all"?et.create(e,fa(0,r,s),fa(e.content.size,r,s)):et.create(e,fa(t,r,s),fa(t,r,s))}function s3(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function dv(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const a3=(e=null,t={})=>({editor:n,view:i,tr:r,dispatch:s})=>{t={scrollIntoView:!0,...t};const a=()=>{(dv()||s3())&&i.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(i.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(i.hasFocus()&&e===null||e===!1)return!0;if(s&&e===null&&!PT(n.state.selection))return a(),!0;const o=OT(r.doc,e)||n.state.selection,l=n.state.selection.eq(o);return s&&(l||r.setSelection(o),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),a()),!0},o3=(e,t)=>n=>e.every((i,r)=>t(i,{...n,index:r})),l3=(e,t)=>({tr:n,commands:i})=>i.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),MT=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const i=t[n];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&MT(i)}return e};function wc(e){const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return MT(n)}function fu(e,t,n){if(e instanceof Ps||e instanceof Ee)return e;n={slice:!0,parseOptions:{},...n};const i=typeof e=="object"&&e!==null,r=typeof e=="string";if(i)try{if(Array.isArray(e)&&e.length>0)return Ee.fromArray(e.map(o=>t.nodeFromJSON(o)));const a=t.nodeFromJSON(e);return n.errorOnInvalidContent&&a.check(),a}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",s),fu("",t,n)}if(r){if(n.errorOnInvalidContent){let a=!1,o="";const l=new gC({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(a=!0,o=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Os.fromSchema(l).parseSlice(wc(e),n.parseOptions):Os.fromSchema(l).parse(wc(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const s=Os.fromSchema(t);return n.slice?s.parseSlice(wc(e),n.parseOptions).content:s.parse(wc(e),n.parseOptions)}return fu("",t,n)}function u3(e,t,n){const i=e.steps.length-1;if(i<t)return;const r=e.steps[i];if(!(r instanceof pn||r instanceof bn))return;const s=e.mapping.maps[i];let a=0;s.forEach((o,l,u,c)=>{a===0&&(a=c)}),e.setSelection(it.near(e.doc.resolve(a),n))}const c3=e=>!("type"in e),d3=(e,t,n)=>({tr:i,dispatch:r,editor:s})=>{var a;if(r){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let o;const l=b=>{s.emit("contentError",{editor:s,error:b,disableCollaboration:()=>{s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!s.options.enableContentCheck&&s.options.emitContentError)try{fu(t,s.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(b){l(b)}try{o=fu(t,s.schema,{parseOptions:u,errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:s.options.enableContentCheck})}catch(b){return l(b),!1}let{from:c,to:f}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},h=!0,m=!0;if((c3(o)?o:[o]).forEach(b=>{b.check(),h=h?b.isText&&b.marks.length===0:!1,m=m?b.isBlock:!1}),c===f&&m){const{parent:b}=i.doc.resolve(c);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(c-=1,f+=1)}let y;if(h){if(Array.isArray(t))y=t.map(b=>b.text||"").join("");else if(t instanceof Ee){let b="";t.forEach(k=>{k.text&&(b+=k.text)}),y=b}else typeof t=="object"&&t&&t.text?y=t.text:y=t;i.insertText(y,c,f)}else y=o,i.replaceWith(c,f,y);n.updateSelection&&u3(i,i.steps.length-1,-1),n.applyInputRules&&i.setMeta("applyInputRules",{from:c,text:y}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:c,text:y})}return!0},f3=()=>({state:e,dispatch:t})=>dz(e,t),h3=()=>({state:e,dispatch:t})=>fz(e,t),m3=()=>({state:e,dispatch:t})=>gT(e,t),g3=()=>({state:e,dispatch:t})=>bT(e,t),p3=()=>({state:e,dispatch:t,tr:n})=>{try{const i=af(e.doc,e.selection.$from.pos,-1);return i==null?!1:(n.join(i,2),t&&t(n),!0)}catch{return!1}},v3=()=>({state:e,dispatch:t,tr:n})=>{try{const i=af(e.doc,e.selection.$from.pos,1);return i==null?!1:(n.join(i,2),t&&t(n),!0)}catch{return!1}},y3=()=>({state:e,dispatch:t})=>uz(e,t),b3=()=>({state:e,dispatch:t})=>cz(e,t);function $T(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function k3(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let i,r,s,a;for(let o=0;o<t.length-1;o+=1){const l=t[o];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))i=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))s=!0;else if(/^mod$/i.test(l))dv()||$T()?a=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return i&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),a&&(n=`Meta-${n}`),s&&(n=`Shift-${n}`),n}const w3=e=>({editor:t,view:n,tr:i,dispatch:r})=>{const s=k3(e).split(/-(?!$)/),a=s.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),o=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,o))});return l==null||l.steps.forEach(u=>{const c=u.map(i.mapping);c&&r&&i.maybeStep(c)}),!0};function hu(e,t,n={}){const{from:i,to:r,empty:s}=e.selection,a=t?Sn(t,e.schema):null,o=[];e.doc.nodesBetween(i,r,(f,h)=>{if(f.isText)return;const m=Math.max(i,h),g=Math.min(r,h+f.nodeSize);o.push({node:f,from:m,to:g})});const l=r-i,u=o.filter(f=>a?a.name===f.node.type.name:!0).filter(f=>wd(f.node.attrs,n,{strict:!1}));return s?!!u.length:u.reduce((f,h)=>f+h.to-h.from,0)>=l}const S3=(e,t={})=>({state:n,dispatch:i})=>{const r=Sn(e,n.schema);return hu(n,r,t)?hz(n,i):!1},_3=()=>({state:e,dispatch:t})=>_T(e,t),C3=e=>({state:t,dispatch:n})=>{const i=Sn(e,t.schema);return Tz(i)(t,n)},T3=()=>({state:e,dispatch:t})=>wT(e,t);function vf(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function kw(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((i,r)=>(n.includes(r)||(i[r]=e[r]),i),{})}const E3=(e,t)=>({tr:n,state:i,dispatch:r})=>{let s=null,a=null;const o=vf(typeof e=="string"?e:e.name,i.schema);return o?(o==="node"&&(s=Sn(e,i.schema)),o==="mark"&&(a=Gs(e,i.schema)),r&&n.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{s&&s===u.type&&n.setNodeMarkup(c,void 0,kw(u.attrs,t)),a&&u.marks.length&&u.marks.forEach(f=>{a===f.type&&n.addMark(c,c+u.nodeSize,a.create(kw(f.attrs,t)))})})}),!0):!1},I3=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),A3=()=>({tr:e,dispatch:t})=>{if(t){const n=new Ei(e.doc);e.setSelection(n)}return!0},x3=()=>({state:e,dispatch:t})=>vT(e,t),D3=()=>({state:e,dispatch:t})=>kT(e,t),P3=()=>({state:e,dispatch:t})=>vz(e,t),O3=()=>({state:e,dispatch:t})=>kz(e,t),M3=()=>({state:e,dispatch:t})=>bz(e,t);function rg(e,t,n={},i={}){return fu(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:i.errorOnInvalidContent})}const $3=(e,t=!1,n={},i={})=>({editor:r,tr:s,dispatch:a,commands:o})=>{var l,u;const{doc:c}=s;if(n.preserveWhitespace!=="full"){const f=rg(e,r.schema,n,{errorOnInvalidContent:(l=i.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return a&&s.replaceWith(0,c.content.size,f).setMeta("preventUpdate",!t),!0}return a&&s.setMeta("preventUpdate",!t),o.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=i.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function VT(e,t){const n=Gs(t,e.schema),{from:i,to:r,empty:s}=e.selection,a=[];s?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,r,l=>{a.push(...l.marks)});const o=a.find(l=>l.type.name===n.name);return o?{...o.attrs}:{}}function V3(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function L3(e,t){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(t(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}function fv(e){return t=>L3(t.$from,e)}function N3(e,t){const n={from:0,to:e.content.size};return AT(e,n,t)}function R3(e,t){const n=Sn(t,e.schema),{from:i,to:r}=e.selection,s=[];e.doc.nodesBetween(i,r,o=>{s.push(o)});const a=s.reverse().find(o=>o.type.name===n.name);return a?{...a.attrs}:{}}function F3(e,t){const n=vf(typeof t=="string"?t:t.name,e.schema);return n==="node"?R3(e,t):n==="mark"?VT(e,t):{}}function LT(e,t,n){const i=[];return e===t?n.resolve(e).marks().forEach(r=>{const s=n.resolve(e),a=cv(s,r.type);a&&i.push({mark:r,...a})}):n.nodesBetween(e,t,(r,s)=>{!r||(r==null?void 0:r.nodeSize)===void 0||i.push(...r.marks.map(a=>({from:s,to:s+r.nodeSize,mark:a})))}),i}function Wc(e,t,n){return Object.fromEntries(Object.entries(n).filter(([i])=>{const r=e.find(s=>s.type===t&&s.name===i);return r?r.attribute.keepOnSplit:!1}))}function sg(e,t,n={}){const{empty:i,ranges:r}=e.selection,s=t?Gs(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(f=>s?s.name===f.type.name:!0).find(f=>wd(f.attrs,n,{strict:!1}));let a=0;const o=[];if(r.forEach(({$from:f,$to:h})=>{const m=f.pos,g=h.pos;e.doc.nodesBetween(m,g,(y,b)=>{if(!y.isText&&!y.marks.length)return;const k=Math.max(m,b),w=Math.min(g,b+y.nodeSize),E=w-k;a+=E,o.push(...y.marks.map(I=>({mark:I,from:k,to:w})))})}),a===0)return!1;const l=o.filter(f=>s?s.name===f.mark.type.name:!0).filter(f=>wd(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),u=o.filter(f=>s?f.mark.type!==s&&f.mark.type.excludes(s):!0).reduce((f,h)=>f+h.to-h.from,0);return(l>0?l+u:l)>=a}function B3(e,t,n={}){if(!t)return hu(e,null,n)||sg(e,null,n);const i=vf(t,e.schema);return i==="node"?hu(e,t,n):i==="mark"?sg(e,t,n):!1}function ww(e,t){const{nodeExtensions:n}=mf(t),i=n.find(a=>a.name===e);if(!i)return!1;const r={name:i.name,options:i.options,storage:i.storage},s=st(Ue(i,"group",r));return typeof s!="string"?!1:s.split(" ").includes("list")}function hv(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var i;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((i=e.text)!==null&&i!==void 0?i:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(s=>{r!==!1&&(hv(s,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function z3(e){return e instanceof Ye}function U3(e,t,n){var i;const{selection:r}=t;let s=null;if(PT(r)&&(s=r.$cursor),s){const o=(i=e.storedMarks)!==null&&i!==void 0?i:s.marks();return!!n.isInSet(o)||!o.some(l=>l.type.excludes(n))}const{ranges:a}=r;return a.some(({$from:o,$to:l})=>{let u=o.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(o.pos,l.pos,(c,f,h)=>{if(u)return!1;if(c.isInline){const m=!h||h.type.allowsMarkType(n),g=!!n.isInSet(c.marks)||!c.marks.some(y=>y.type.excludes(n));u=m&&g}return!u}),u})}const W3=(e,t={})=>({tr:n,state:i,dispatch:r})=>{const{selection:s}=n,{empty:a,ranges:o}=s,l=Gs(e,i.schema);if(r)if(a){const u=VT(i,l);n.addStoredMark(l.create({...u,...t}))}else o.forEach(u=>{const c=u.$from.pos,f=u.$to.pos;i.doc.nodesBetween(c,f,(h,m)=>{const g=Math.max(m,c),y=Math.min(m+h.nodeSize,f);h.marks.find(k=>k.type===l)?h.marks.forEach(k=>{l===k.type&&n.addMark(g,y,l.create({...k.attrs,...t}))}):n.addMark(g,y,l.create(t))})});return U3(i,n,l)},H3=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),j3=(e,t={})=>({state:n,dispatch:i,chain:r})=>{const s=Sn(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),s.isTextblock?r().command(({commands:o})=>gw(s,{...a,...t})(n)?!0:o.clearNodes()).command(({state:o})=>gw(s,{...a,...t})(o,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},G3=e=>({tr:t,dispatch:n})=>{if(n){const{doc:i}=t,r=fa(e,0,i.content.size),s=Ye.create(i,r);t.setSelection(s)}return!0},q3=e=>({tr:t,dispatch:n})=>{if(n){const{doc:i}=t,{from:r,to:s}=typeof e=="number"?{from:e,to:e}:e,a=et.atStart(i).from,o=et.atEnd(i).to,l=fa(r,a,o),u=fa(s,a,o),c=et.create(i,l,u);t.setSelection(c)}return!0},K3=e=>({state:t,dispatch:n})=>{const i=Sn(e,t.schema);return Az(i)(t,n)};function Sw(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const i=n.filter(r=>t==null?void 0:t.includes(r.type.name));e.tr.ensureMarks(i)}}const Y3=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:i,editor:r})=>{const{selection:s,doc:a}=t,{$from:o,$to:l}=s,u=r.extensionManager.attributes,c=Wc(u,o.node().type.name,o.node().attrs);if(s instanceof Ye&&s.node.isBlock)return!o.parentOffset||!Kr(a,o.pos)?!1:(i&&(e&&Sw(n,r.extensionManager.splittableMarks),t.split(o.pos).scrollIntoView()),!0);if(!o.parent.isBlock)return!1;const f=l.parentOffset===l.parent.content.size,h=o.depth===0?void 0:V3(o.node(-1).contentMatchAt(o.indexAfter(-1)));let m=f&&h?[{type:h,attrs:c}]:void 0,g=Kr(t.doc,t.mapping.map(o.pos),1,m);if(!m&&!g&&Kr(t.doc,t.mapping.map(o.pos),1,h?[{type:h}]:void 0)&&(g=!0,m=h?[{type:h,attrs:c}]:void 0),i){if(g&&(s instanceof et&&t.deleteSelection(),t.split(t.mapping.map(o.pos),1,m),h&&!f&&!o.parentOffset&&o.parent.type!==h)){const y=t.mapping.map(o.before()),b=t.doc.resolve(y);o.node(-1).canReplaceWith(b.index(),b.index()+1,h)&&t.setNodeMarkup(t.mapping.map(o.before()),h)}e&&Sw(n,r.extensionManager.splittableMarks),t.scrollIntoView()}return g},J3=(e,t={})=>({tr:n,state:i,dispatch:r,editor:s})=>{var a;const o=Sn(e,i.schema),{$from:l,$to:u}=i.selection,c=i.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const f=l.node(-1);if(f.type!==o)return!1;const h=s.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==o||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let k=Ee.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let A=l.depth-w;A>=l.depth-3;A-=1)k=Ee.from(l.node(A).copy(k));const E=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,I={...Wc(h,l.node().type.name,l.node().attrs),...t},D=((a=o.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(I))||void 0;k=k.append(Ee.from(o.createAndFill(null,D)||void 0));const x=l.before(l.depth-(w-1));n.replace(x,l.after(-E),new Re(k,4-w,0));let P=-1;n.doc.nodesBetween(x,n.doc.content.size,(A,C)=>{if(P>-1)return!1;A.isTextblock&&A.content.size===0&&(P=C+1)}),P>-1&&n.setSelection(et.near(n.doc.resolve(P))),n.scrollIntoView()}return!0}const m=u.pos===l.end()?f.contentMatchAt(0).defaultType:null,g={...Wc(h,f.type.name,f.attrs),...t},y={...Wc(h,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);const b=m?[{type:o,attrs:g},{type:m,attrs:y}]:[{type:o,attrs:g}];if(!Kr(n.doc,l.pos,2))return!1;if(r){const{selection:k,storedMarks:w}=i,{splittableMarks:E}=s.extensionManager,I=w||k.$to.parentOffset&&k.$from.marks();if(n.split(l.pos,2,b).scrollIntoView(),!I||!r)return!0;const D=I.filter(x=>E.includes(x.type.name));n.ensureMarks(D)}return!0},Yh=(e,t)=>{const n=fv(a=>a.type===t)(e.selection);if(!n)return!0;const i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(i===void 0)return!0;const r=e.doc.nodeAt(i);return n.node.type===(r==null?void 0:r.type)&&Hs(e.doc,n.pos)&&e.join(n.pos),!0},Jh=(e,t)=>{const n=fv(a=>a.type===t)(e.selection);if(!n)return!0;const i=e.doc.resolve(n.start).after(n.depth);if(i===void 0)return!0;const r=e.doc.nodeAt(i);return n.node.type===(r==null?void 0:r.type)&&Hs(e.doc,i)&&e.join(i),!0},X3=(e,t,n,i={})=>({editor:r,tr:s,state:a,dispatch:o,chain:l,commands:u,can:c})=>{const{extensions:f,splittableMarks:h}=r.extensionManager,m=Sn(e,a.schema),g=Sn(t,a.schema),{selection:y,storedMarks:b}=a,{$from:k,$to:w}=y,E=k.blockRange(w),I=b||y.$to.parentOffset&&y.$from.marks();if(!E)return!1;const D=fv(x=>ww(x.type.name,f))(y);if(E.depth>=1&&D&&E.depth-D.depth<=1){if(D.node.type===m)return u.liftListItem(g);if(ww(D.node.type.name,f)&&m.validContent(D.node.content)&&o)return l().command(()=>(s.setNodeMarkup(D.pos,m),!0)).command(()=>Yh(s,m)).command(()=>Jh(s,m)).run()}return!n||!I||!o?l().command(()=>c().wrapInList(m,i)?!0:u.clearNodes()).wrapInList(m,i).command(()=>Yh(s,m)).command(()=>Jh(s,m)).run():l().command(()=>{const x=c().wrapInList(m,i),P=I.filter(A=>h.includes(A.type.name));return s.ensureMarks(P),x?!0:u.clearNodes()}).wrapInList(m,i).command(()=>Yh(s,m)).command(()=>Jh(s,m)).run()},Z3=(e,t={},n={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:s=!1}=n,a=Gs(e,i.schema);return sg(i,a,t)?r.unsetMark(a,{extendEmptyMarkRange:s}):r.setMark(a,t)},Q3=(e,t,n={})=>({state:i,commands:r})=>{const s=Sn(e,i.schema),a=Sn(t,i.schema),o=hu(i,s,n);let l;return i.selection.$anchor.sameParent(i.selection.$head)&&(l=i.selection.$anchor.parent.attrs),o?r.setNode(a,l):r.setNode(s,{...l,...n})},eU=(e,t={})=>({state:n,commands:i})=>{const r=Sn(e,n.schema);return hu(n,r,t)?i.lift(r):i.wrapIn(r,t)},tU=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let i=0;i<n.length;i+=1){const r=n[i];let s;if(r.spec.isInputRules&&(s=r.getState(e))){if(t){const a=e.tr,o=s.transform;for(let l=o.steps.length-1;l>=0;l-=1)a.step(o.steps[l].invert(o.docs[l]));if(s.text){const l=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,e.schema.text(s.text,l))}else a.delete(s.from,s.to)}return!0}}return!1},nU=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:i,ranges:r}=n;return i||t&&r.forEach(s=>{e.removeMark(s.$from.pos,s.$to.pos)}),!0},iU=(e,t={})=>({tr:n,state:i,dispatch:r})=>{var s;const{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,l=Gs(e,i.schema),{$from:u,empty:c,ranges:f}=o;if(!r)return!0;if(c&&a){let{from:h,to:m}=o;const g=(s=u.marks().find(b=>b.type===l))===null||s===void 0?void 0:s.attrs,y=cv(u,l,g);y&&(h=y.from,m=y.to),n.removeMark(h,m,l)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,l)});return n.removeStoredMark(l),!0},rU=(e,t={})=>({tr:n,state:i,dispatch:r})=>{let s=null,a=null;const o=vf(typeof e=="string"?e:e.name,i.schema);return o?(o==="node"&&(s=Sn(e,i.schema)),o==="mark"&&(a=Gs(e,i.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;let f,h,m,g;n.selection.empty?i.doc.nodesBetween(u,c,(y,b)=>{s&&s===y.type&&(m=Math.max(b,u),g=Math.min(b+y.nodeSize,c),f=b,h=y)}):i.doc.nodesBetween(u,c,(y,b)=>{b<u&&s&&s===y.type&&(m=Math.max(b,u),g=Math.min(b+y.nodeSize,c),f=b,h=y),b>=u&&b<=c&&(s&&s===y.type&&n.setNodeMarkup(b,void 0,{...y.attrs,...t}),a&&y.marks.length&&y.marks.forEach(k=>{if(a===k.type){const w=Math.max(b,u),E=Math.min(b+y.nodeSize,c);n.addMark(w,E,a.create({...k.attrs,...t}))}}))}),h&&(f!==void 0&&n.setNodeMarkup(f,void 0,{...h.attrs,...t}),a&&h.marks.length&&h.marks.forEach(y=>{a===y.type&&n.addMark(m,g,a.create({...y.attrs,...t}))}))}),!0):!1},sU=(e,t={})=>({state:n,dispatch:i})=>{const r=Sn(e,n.schema);return wz(r,t)(n,i)},aU=(e,t={})=>({state:n,dispatch:i})=>{const r=Sn(e,n.schema);return Sz(r,t)(n,i)};var oU=Object.freeze({__proto__:null,blur:jz,clearContent:Gz,clearNodes:qz,command:Kz,createParagraphNear:Yz,cut:Jz,deleteCurrentNode:Xz,deleteNode:Zz,deleteRange:Qz,deleteSelection:e3,enter:t3,exitCode:n3,extendMarkRange:i3,first:r3,focus:a3,forEach:o3,insertContent:l3,insertContentAt:d3,joinBackward:m3,joinDown:h3,joinForward:g3,joinItemBackward:p3,joinItemForward:v3,joinTextblockBackward:y3,joinTextblockForward:b3,joinUp:f3,keyboardShortcut:w3,lift:S3,liftEmptyBlock:_3,liftListItem:C3,newlineInCode:T3,resetAttributes:E3,scrollIntoView:I3,selectAll:A3,selectNodeBackward:x3,selectNodeForward:D3,selectParentNode:P3,selectTextblockEnd:O3,selectTextblockStart:M3,setContent:$3,setMark:W3,setMeta:H3,setNode:j3,setNodeSelection:G3,setTextSelection:q3,sinkListItem:K3,splitBlock:Y3,splitListItem:J3,toggleList:X3,toggleMark:Z3,toggleNode:Q3,toggleWrap:eU,undoInputRule:tU,unsetAllMarks:nU,unsetMark:iU,updateAttributes:rU,wrapIn:sU,wrapInList:aU});const lU=Vn.create({name:"commands",addCommands(){return{...oU}}}),uU=Vn.create({name:"drop",addProseMirrorPlugins(){return[new yi({key:new xr("tiptapDrop"),props:{handleDrop:(e,t,n,i)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:i})}}})]}}),cU=Vn.create({name:"editable",addProseMirrorPlugins(){return[new yi({key:new xr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),dU=new xr("focusEvents"),fU=Vn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new yi({key:dU,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,n)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),hU=Vn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:o})=>{const{selection:l,doc:u}=o,{empty:c,$anchor:f}=l,{pos:h,parent:m}=f,g=f.parent.isTextblock&&h>0?o.doc.resolve(h-1):f,y=g.parent.type.spec.isolating,b=f.pos-f.parentOffset,k=y&&g.parent.childCount===1?b===f.pos:it.atStart(u).from===h;return!c||!m.type.isTextblock||m.textContent.length||!k||k&&f.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},s={...i,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return dv()||$T()?s:r},addProseMirrorPlugins(){return[new yi({key:new xr("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(y=>y.getMeta("composition")))return;const i=e.some(y=>y.docChanged)&&!t.doc.eq(n.doc),r=e.some(y=>y.getMeta("preventClearDocument"));if(!i||r)return;const{empty:s,from:a,to:o}=t.selection,l=it.atStart(t.doc).from,u=it.atEnd(t.doc).to;if(s||!(a===l&&o===u)||!hv(n.doc))return;const h=n.tr,m=ff({state:n,transaction:h}),{commands:g}=new hf({editor:this.editor,state:m});if(g.clearNodes(),!!h.steps.length)return h}})]}}),mU=Vn.create({name:"paste",addProseMirrorPlugins(){return[new yi({key:new xr("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),gU=Vn.create({name:"tabindex",addProseMirrorPlugins(){return[new yi({key:new xr("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class la{get name(){return this.node.type.name}constructor(t,n,i=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=i,this.resolvedPos=t,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,i=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You cant set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,i=this.to-1}this.editor.commands.insertContentAt({from:n,to:i},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new la(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new la(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new la(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,i)=>{const r=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,a=this.pos+i+(s?0:1),o=this.resolvedPos.doc.resolve(a);if(!r&&o.depth<=this.depth)return;const l=new la(o,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),t.push(new la(o,this.editor,r,r?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let i=null,r=this.parent;for(;r&&!i;){if(r.node.type.name===t)if(Object.keys(n).length>0){const s=r.node.attrs,a=Object.keys(n);for(let o=0;o<a.length;o+=1){const l=a[o];if(s[l]!==n[l])break}}else i=r;r=r.parent}return i}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},i=!1){let r=[];if(!this.children||this.children.length===0)return r;const s=Object.keys(n);return this.children.forEach(a=>{i&&r.length>0||(a.node.type.name===t&&s.every(l=>n[l]===a.node.attrs[l])&&r.push(a),!(i&&r.length>0)&&(r=r.concat(a.querySelectorAll(t,n,i))))}),r}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const pU=`.ProseMirror {
position: relative;
}
.ProseMirror {
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}
.ProseMirror [contenteditable="false"] {
white-space: normal;
}
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
white-space: pre-wrap;
}
.ProseMirror pre {
white-space: pre-wrap;
}
img.ProseMirror-separator {
display: inline !important;
border: none !important;
margin: 0 !important;
width: 0 !important;
height: 0 !important;
}
.ProseMirror-gapcursor {
display: none;
pointer-events: none;
position: absolute;
margin: 0;
}
.ProseMirror-gapcursor:after {
content: "";
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}
@keyframes ProseMirror-cursor-blink {
to {
visibility: hidden;
}
}
.ProseMirror-hideselection *::selection {
background: transparent;
}
.ProseMirror-hideselection *::-moz-selection {
background: transparent;
}
.ProseMirror-hideselection * {
caret-color: transparent;
}
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
}
.tippy-box[data-animation=fade][data-state=hidden] {
opacity: 0
}`;function vU(e,t,n){const i=document.querySelector("style[data-tiptap-style]");if(i!==null)return i;const r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.setAttribute("data-tiptap-style",""),r.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(r),r}let yU=class extends xz{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:i,moved:r})=>this.options.onDrop(n,i,r)),this.on("paste",({event:n,slice:i})=>this.options.onPaste(n,i)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=vU(pU,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const i=IT(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let i=n;if([].concat(t).forEach(s=>{const a=typeof s=="string"?`${s}$`:s.key;i=i.filter(o=>!o.key.startsWith(a))}),n.length===i.length)return;const r=this.state.reconfigure({plugins:i});return this.view.updateState(r),r}createExtensionManager(){var t,n;const r=[...this.options.enableCoreExtensions?[cU,Hz.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),lU,fU,hU,gU,uU,mU].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new To(r,this)}createCommandManager(){this.commandManager=new hf({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let n;try{n=rg(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(a){if(!(a instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(a.message))throw a;this.emit("contentError",{editor:this,error:a,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(o=>o.name!=="collaboration"),this.createExtensionManager()}}),n=rg(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const i=OT(n,this.options.autofocus);this.view=new fT(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(t=this.options.editorProps)===null||t===void 0?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Co.create({doc:n,selection:i||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const s=this.view.dom;s.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(a=>{var o;return(o=this.capturedTransaction)===null||o===void 0?void 0:o.step(a)});return}const n=this.state.apply(t),i=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),s=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),s&&this.emit("blur",{editor:this,event:s.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return F3(this.state,t)}isActive(t,n){const i=typeof t=="string"?t:null,r=typeof t=="string"?n:t;return B3(this.state,i,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return lv(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=`
`,textSerializers:i={}}=t||{};return N3(this.state.doc,{blockSeparator:n,textSerializers:{...xT(this.schema),...i}})}get isEmpty(){return hv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,n){var i;return((i=this.$doc)===null||i===void 0?void 0:i.querySelector(t,n))||null}$nodes(t,n){var i;return((i=this.$doc)===null||i===void 0?void 0:i.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t);return new la(n,this)}get $doc(){return this.$pos(0)}};function jo(e){return new gf({find:e.find,handler:({state:t,range:n,match:i})=>{const r=st(e.getAttributes,void 0,i);if(r===!1||r===null)return null;const{tr:s}=t,a=i[i.length-1],o=i[0];if(a){const l=o.search(/\S/),u=n.from+o.indexOf(a),c=u+a.length;if(LT(n.from,n.to,t.doc).filter(m=>m.mark.type.excluded.find(y=>y===e.type&&y!==m.mark.type)).filter(m=>m.to>u).length)return null;c<n.to&&s.delete(c,n.to),u>n.from&&s.delete(n.from+l,u);const h=n.from+l+a.length;s.addMark(n.from+l,h,e.type.create(r||{})),s.removeStoredMark(e.type)}}})}function NT(e){return new gf({find:e.find,handler:({state:t,range:n,match:i})=>{const r=st(e.getAttributes,void 0,i)||{},{tr:s}=t,a=n.from;let o=n.to;const l=e.type.create(r);if(i[1]){const u=i[0].lastIndexOf(i[1]);let c=a+u;c>o?c=o:o=c+i[1].length;const f=i[0][i[0].length-1];s.insertText(f,a+i[0].length-1),s.replaceWith(c,o,l)}else if(i[0]){const u=e.type.isInline?a:a-1;s.insert(u,e.type.create(r)).delete(s.mapping.map(a),s.mapping.map(o))}s.scrollIntoView()}})}function ag(e){return new gf({find:e.find,handler:({state:t,range:n,match:i})=>{const r=t.doc.resolve(n.from),s=st(e.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,s)}})}function mu(e){return new gf({find:e.find,handler:({state:t,range:n,match:i,chain:r})=>{const s=st(e.getAttributes,void 0,i)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&Gp(l,e.type,s);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const{selection:f,storedMarks:h}=t,{splittableMarks:m}=e.editor.extensionManager,g=h||f.$to.parentOffset&&f.$from.marks();if(g){const y=g.filter(b=>m.includes(b.type.name));a.ensureMarks(y)}}if(e.keepAttributes){const f=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(f,s).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Hs(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(i,c))&&a.join(n.from-1)}})}let Ki=class og{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=st(Ue(this,"addOptions",{name:this.name}))),this.storage=st(Ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new og(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>pf(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new og(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=st(Ue(n,"addOptions",{name:n.name})),n.storage=st(Ue(n,"addStorage",{name:n.name,options:n.options})),n}};function Go(e){return new Rz({find:e.find,handler:({state:t,range:n,match:i,pasteEvent:r})=>{const s=st(e.getAttributes,void 0,i,r);if(s===!1||s===null)return null;const{tr:a}=t,o=i[i.length-1],l=i[0];let u=n.to;if(o){const c=l.search(/\S/),f=n.from+l.indexOf(o),h=f+o.length;if(LT(n.from,n.to,t.doc).filter(g=>g.mark.type.excluded.find(b=>b===e.type&&b!==g.mark.type)).filter(g=>g.to>f).length)return null;h<n.to&&a.delete(h,n.to),f>n.from&&a.delete(n.from+c,f),u=n.from+c+o.length,a.addMark(n.from+c,u,e.type.create(s||{})),a.removeStoredMark(e.type)}}})}function _w(e){return BD((t,n)=>({get(){return t(),e},set(i){e=i,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class zu extends yU{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=_w(this.view.state),this.reactiveExtensionStorage=_w(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),pp(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const i=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=i),i}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const Uu=ja({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=ke(),n=Xr();return Wt(()=>{const i=e.editor;i&&i.options.element&&t.value&&ct(()=>{if(!t.value||!i.options.element.firstChild)return;const r=qt(t.value);t.value.append(...i.options.element.childNodes),i.contentComponent=n.ctx._,n&&(i.appContext={...n.appContext,provides:n.provides}),i.setOptions({element:r}),i.createNodeViews()})}),an(()=>{const i=e.editor;i&&(i.contentComponent=null,i.appContext=null)}),{rootEl:t}},render(){return pi("div",{ref:e=>{this.rootEl=e}})}}),bU=/^\s*>\s$/,kU=Ki.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[mu({find:bU,type:this.type})]}}),wU=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,SU=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,_U=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,CU=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,TU=Tr.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[jo({find:wU,type:this.type}),jo({find:_U,type:this.type})]},addPasteRules(){return[Go({find:SU,type:this.type}),Go({find:CU,type:this.type})]}}),EU="listItem",Cw="textStyle",Tw=/^\s*([-+*])\s$/,IU=Ki.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(EU,this.editor.getAttributes(Cw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=mu({find:Tw,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mu({find:Tw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cw),editor:this.editor})),[e]}}),AU=/(^|[^`])`([^`]+)`(?!`)/,xU=/(^|[^`])`([^`]+)`(?!`)/g,DU=Tr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[jo({find:AU,type:this.type})]},addPasteRules(){return[Go({find:xU,type:this.type})]}}),PU=/^```([a-z]+)?[\s\n]$/,OU=/^~~~([a-z]+)?[\s\n]$/,MU=Ki.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,s=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",_n(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;const s=i.parentOffset===i.parent.nodeSize-2,a=i.parent.textContent.endsWith(`
`);return!s||!a?!1:e.chain().command(({tr:o})=>(o.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:i}=t,{$from:r,empty:s}=n;if(!s||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const o=r.after();return o===void 0?!1:i.nodeAt(o)?e.commands.command(({tr:u})=>(u.setSelection(it.near(i.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[ag({find:PU,type:this.type,getAttributes:e=>({language:e[1]})}),ag({find:OU,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new yi({key:new xr("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),r=i?JSON.parse(i):void 0,s=r==null?void 0:r.mode;if(!n||!s)return!1;const{tr:a,schema:o}=e.state,l=o.text(n.replace(/\r\n?/g,`
`));return a.replaceSelectionWith(this.type.create({language:s},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(et.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),$U=Ki.create({name:"doc",topNode:!0,content:"block+"});function VU(e={}){return new yi({view(t){return new LU(t,e)}})}class LU{constructor(t,n){var i;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=n.width)!==null&&i!==void 0?i:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let s=a=>{this[r](a)};return t.dom.addEventListener(r,s),{name:r,handler:s}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,i,r=this.editorView.dom,s=r.getBoundingClientRect(),a=s.width/r.offsetWidth,o=s.height/r.offsetHeight;if(n){let f=t.nodeBefore,h=t.nodeAfter;if(f||h){let m=this.editorView.nodeDOM(this.cursorPos-(f?f.nodeSize:0));if(m){let g=m.getBoundingClientRect(),y=f?g.bottom:g.top;f&&h&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let b=this.width/2*o;i={left:g.left,right:g.right,top:y-b,bottom:y+b}}}}if(!i){let f=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*a;i={left:f.left-h,right:f.left+h,top:f.top,bottom:f.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let f=l.getBoundingClientRect(),h=f.width/l.offsetWidth,m=f.height/l.offsetHeight;u=f.left-l.scrollLeft*h,c=f.top-l.scrollTop*m}this.element.style.left=(i.left-u)/a+"px",this.element.style.top=(i.top-c)/o+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/o+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=i&&i.type.spec.disableDropCursor,s=typeof r=="function"?r(this.editorView,n,t):r;if(n&&!s){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=EC(this.editorView.state.doc,a,this.editorView.dragging.slice);o!=null&&(a=o)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const NU=Vn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[VU(this.options)]}});class Gt extends it{constructor(t){super(t,t)}map(t,n){let i=t.resolve(n.map(this.head));return Gt.valid(i)?new Gt(i):it.near(i)}content(){return Re.empty}eq(t){return t instanceof Gt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Gt(t.resolve(n.pos))}getBookmark(){return new mv(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!RU(t)||!FU(t))return!1;let i=n.type.spec.allowGapCursor;if(i!=null)return i;let r=n.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,i=!1){e:for(;;){if(!i&&Gt.valid(t))return t;let r=t.pos,s=null;for(let a=t.depth;;a--){let o=t.node(a);if(n>0?t.indexAfter(a)<o.childCount:t.index(a)>0){s=o.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;r+=n;let l=t.doc.resolve(r);if(Gt.valid(l))return l}for(;;){let a=n>0?s.firstChild:s.lastChild;if(!a){if(s.isAtom&&!s.isText&&!Ye.isSelectable(s)){t=t.doc.resolve(r+s.nodeSize*n),i=!1;continue e}break}s=a,r+=n;let o=t.doc.resolve(r);if(Gt.valid(o))return o}return null}}}Gt.prototype.visible=!1;Gt.findFrom=Gt.findGapCursorFrom;it.jsonID("gapcursor",Gt);class mv{constructor(t){this.pos=t}map(t){return new mv(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Gt.valid(n)?new Gt(n):it.near(n)}}function RU(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),i=e.node(t);if(n==0){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function FU(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),i=e.node(t);if(n==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function BU(){return new yi({props:{decorations:HU,createSelectionBetween(e,t,n){return t.pos==n.pos&&Gt.valid(n)?new Gt(n):null},handleClick:UU,handleKeyDown:zU,handleDOMEvents:{beforeinput:WU}}})}const zU=hT({ArrowLeft:Sc("horiz",-1),ArrowRight:Sc("horiz",1),ArrowUp:Sc("vert",-1),ArrowDown:Sc("vert",1)});function Sc(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(i,r,s){let a=i.selection,o=t>0?a.$to:a.$from,l=a.empty;if(a instanceof et){if(!s.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=i.doc.resolve(t>0?o.after():o.before())}let u=Gt.findGapCursorFrom(o,t,l);return u?(r&&r(i.tr.setSelection(new Gt(u))),!0):!1}}function UU(e,t,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(t);if(!Gt.valid(i))return!1;let r=e.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&Ye.isSelectable(e.state.doc.nodeAt(r.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Gt(i))),!0)}function WU(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Gt))return!1;let{$from:n}=e.state.selection,i=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let r=Ee.empty;for(let a=i.length-1;a>=0;a--)r=Ee.from(i[a].createAndFill(null,r));let s=e.state.tr.replace(n.pos,n.pos,new Re(r,0,0));return s.setSelection(et.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function HU(e){if(!(e.selection instanceof Gt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",cn.create(e.doc,[Bi.widget(e.selection.head,t,{key:"gapcursor"})])}const jU=Vn.create({name:"gapCursor",addProseMirrorPlugins(){return[BU()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=st(Ue(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),GU=Ki.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",_n(this.options.HTMLAttributes,e)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:i})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:r,storedMarks:s}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:o}=i.extensionManager,l=s||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&a){const f=l.filter(h=>o.includes(h.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),qU=Ki.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,_n(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>ag({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var Sd=200,kn=function(){};kn.prototype.append=function(t){return t.length?(t=kn.from(t),!this.length&&t||t.length<Sd&&this.leafAppend(t)||this.length<Sd&&t.leafPrepend(this)||this.appendInner(t)):this};kn.prototype.prepend=function(t){return t.length?kn.from(t).append(this):this};kn.prototype.appendInner=function(t){return new KU(this,t)};kn.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?kn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};kn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};kn.prototype.forEach=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length),n<=i?this.forEachInner(t,n,i,0):this.forEachInvertedInner(t,n,i,0)};kn.prototype.map=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length);var r=[];return this.forEach(function(s,a){return r.push(t(s,a))},n,i),r};kn.from=function(t){return t instanceof kn?t:t&&t.length?new RT(t):kn.empty};var RT=function(e){function t(i){e.call(this),this.values=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,s){return r==0&&s==this.length?this:new t(this.values.slice(r,s))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,s,a,o){for(var l=s;l<a;l++)if(r(this.values[l],o+l)===!1)return!1},t.prototype.forEachInvertedInner=function(r,s,a,o){for(var l=s-1;l>=a;l--)if(r(this.values[l],o+l)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=Sd)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=Sd)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(kn);kn.empty=new RT([]);var KU=function(e){function t(n,i){e.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return i<this.left.length?this.left.get(i):this.right.get(i-this.left.length)},t.prototype.forEachInner=function(i,r,s,a){var o=this.left.length;if(r<o&&this.left.forEachInner(i,r,Math.min(s,o),a)===!1||s>o&&this.right.forEachInner(i,Math.max(r-o,0),Math.min(this.length,s)-o,a+o)===!1)return!1},t.prototype.forEachInvertedInner=function(i,r,s,a){var o=this.left.length;if(r>o&&this.right.forEachInvertedInner(i,r-o,Math.max(s,o)-o,a+o)===!1||s<o&&this.left.forEachInvertedInner(i,Math.min(r,o),s,a)===!1)return!1},t.prototype.sliceInner=function(i,r){if(i==0&&r==this.length)return this;var s=this.left.length;return r<=s?this.left.slice(i,r):i>=s?this.right.slice(i-s,r-s):this.left.slice(i,s).append(this.right.slice(0,r-s))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(kn);const YU=500;class tr{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let r,s;n&&(r=this.remapping(i,this.items.length),s=r.maps.length);let a=t.tr,o,l,u=[],c=[];return this.items.forEach((f,h)=>{if(!f.step){r||(r=this.remapping(i,h+1),s=r.maps.length),s--,c.push(f);return}if(r){c.push(new pr(f.map));let m=f.step.map(r.slice(s)),g;m&&a.maybeStep(m).doc&&(g=a.mapping.maps[a.mapping.maps.length-1],u.push(new pr(g,void 0,void 0,u.length+c.length))),s--,g&&r.appendMap(g,s)}else a.maybeStep(f.step);if(f.selection)return o=r?f.selection.map(r.slice(s)):f.selection,l=new tr(this.items.slice(0,i).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:o}}addTransform(t,n,i,r){let s=[],a=this.eventCount,o=this.items,l=!r&&o.length?o.get(o.length-1):null;for(let c=0;c<t.steps.length;c++){let f=t.steps[c].invert(t.docs[c]),h=new pr(t.mapping.maps[c],f,n),m;(m=l&&l.merge(h))&&(h=m,c?s.pop():o=o.slice(0,o.length-1)),s.push(h),n&&(a++,n=void 0),r||(l=h)}let u=a-i.depth;return u>XU&&(o=JU(o,u),a-=u),new tr(o.append(s),a)}remapping(t,n){let i=new ou;return this.items.forEach((r,s)=>{let a=r.mirrorOffset!=null&&s-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0;i.appendMap(r.map,a)},t,n),i}addMaps(t){return this.eventCount==0?this:new tr(this.items.append(t.map(n=>new pr(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-n),s=t.mapping,a=t.steps.length,o=this.eventCount;this.items.forEach(h=>{h.selection&&o--},r);let l=n;this.items.forEach(h=>{let m=s.getMirror(--l);if(m==null)return;a=Math.min(a,m);let g=s.maps[m];if(h.step){let y=t.steps[m].invert(t.docs[m]),b=h.selection&&h.selection.map(s.slice(l+1,m));b&&o++,i.push(new pr(g,y,b))}else i.push(new pr(g))},r);let u=[];for(let h=n;h<a;h++)u.push(new pr(s.maps[h]));let c=this.items.slice(0,r).append(u).append(i),f=new tr(c,o);return f.emptyItemCount()>YU&&(f=f.compress(this.items.length-i.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),i=n.maps.length,r=[],s=0;return this.items.forEach((a,o)=>{if(o>=t)r.push(a),a.selection&&s++;else if(a.step){let l=a.step.map(n.slice(i)),u=l&&l.getMap();if(i--,u&&n.appendMap(u,i),l){let c=a.selection&&a.selection.map(n.slice(i));c&&s++;let f=new pr(u.invert(),l,c),h,m=r.length-1;(h=r.length&&r[m].merge(f))?r[m]=h:r.push(f)}}else a.map&&i--},this.items.length,0),new tr(kn.from(r.reverse()),s)}}tr.empty=new tr(kn.empty,0);function JU(e,t){let n;return e.forEach((i,r)=>{if(i.selection&&t--==0)return n=r,!1}),e.slice(n)}class pr{constructor(t,n,i,r){this.map=t,this.step=n,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new pr(n.getMap().invert(),n,this.selection)}}}class Ss{constructor(t,n,i,r,s){this.done=t,this.undone=n,this.prevRanges=i,this.prevTime=r,this.prevComposition=s}}const XU=20;function ZU(e,t,n,i){let r=n.getMeta(_a),s;if(r)return r.historyState;n.getMeta(tW)&&(e=new Ss(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(_a))return a.getMeta(_a).redo?new Ss(e.done.addTransform(n,void 0,i,Hc(t)),e.undone,Ew(n.mapping.maps),e.prevTime,e.prevComposition):new Ss(e.done,e.undone.addTransform(n,void 0,i,Hc(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-i.newGroupDelay||!QU(n,e.prevRanges)),u=a?Xh(e.prevRanges,n.mapping):Ew(n.mapping.maps);return new Ss(e.done.addTransform(n,l?t.selection.getBookmark():void 0,i,Hc(t)),tr.empty,u,n.time,o??e.prevComposition)}else return(s=n.getMeta("rebased"))?new Ss(e.done.rebased(n,s),e.undone.rebased(n,s),Xh(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Ss(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Xh(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function QU(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((i,r)=>{for(let s=0;s<t.length;s+=2)i<=t[s+1]&&r>=t[s]&&(n=!0)}),n}function Ew(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((i,r,s,a)=>t.push(s,a));return t}function Xh(e,t){if(!e)return null;let n=[];for(let i=0;i<e.length;i+=2){let r=t.map(e[i],1),s=t.map(e[i+1],-1);r<=s&&n.push(r,s)}return n}function eW(e,t,n){let i=Hc(t),r=_a.get(t).spec.config,s=(n?e.undone:e.done).popEvent(t,i);if(!s)return null;let a=s.selection.resolve(s.transform.doc),o=(n?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),r,i),l=new Ss(n?o:s.remaining,n?s.remaining:o,null,0,-1);return s.transform.setSelection(a).setMeta(_a,{redo:n,historyState:l})}let Zh=!1,Iw=null;function Hc(e){let t=e.plugins;if(Iw!=t){Zh=!1,Iw=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){Zh=!0;break}}return Zh}const _a=new xr("history"),tW=new xr("closeHistory");function nW(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new yi({key:_a,state:{init(){return new Ss(tr.empty,tr.empty,null,0,-1)},apply(t,n,i){return ZU(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let i=n.inputType,r=i=="historyUndo"?BT:i=="historyRedo"?zT:null;return r?(n.preventDefault(),r(t.state,t.dispatch)):!1}}}})}function FT(e,t){return(n,i)=>{let r=_a.getState(n);if(!r||(e?r.undone:r.done).eventCount==0)return!1;if(i){let s=eW(r,n,e);s&&i(t?s.scrollIntoView():s)}return!0}}const BT=FT(!1,!0),zT=FT(!0,!0),iW=Vn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>BT(e,t),redo:()=>({state:e,dispatch:t})=>zT(e,t)}},addProseMirrorPlugins(){return[nW(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),rW=Ki.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",_n(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{selection:n}=t,{$from:i,$to:r}=n,s=e();return i.parentOffset===0?s.insertContentAt({from:Math.max(i.pos-1,0),to:r.pos},{type:this.name}):z3(n)?s.insertContentAt(r.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:a,dispatch:o})=>{var l;if(o){const{$to:u}=a.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?a.setSelection(et.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(Ye.create(a.doc,u.pos)):a.setSelection(et.create(a.doc,u.pos));else{const f=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();f&&(a.insert(c,f),a.setSelection(et.create(a.doc,c+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[NT({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),sW=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,aW=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,oW=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,lW=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,uW=Tr.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[jo({find:sW,type:this.type}),jo({find:oW,type:this.type})]},addPasteRules(){return[Go({find:aW,type:this.type}),Go({find:lW,type:this.type})]}}),cW=Ki.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",_n(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),dW="listItem",Aw="textStyle",xw=/^(\d+)\.\s$/,fW=Ki.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",_n(this.options.HTMLAttributes,n),0]:["ol",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(dW,this.editor.getAttributes(Aw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=mu({find:xw,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mu({find:xw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(Aw)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),hW=Ki.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),mW=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,gW=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,pW=Tr.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[jo({find:mW,type:this.type})]},addPasteRules(){return[Go({find:gW,type:this.type})]}}),vW=Ki.create({name:"text",group:"inline"}),Wu=Vn.create({name:"starterKit",addExtensions(){const e=[];return this.options.bold!==!1&&e.push(TU.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(kU.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(IU.configure(this.options.bulletList)),this.options.code!==!1&&e.push(DU.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(MU.configure(this.options.codeBlock)),this.options.document!==!1&&e.push($U.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(NU.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(jU.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(GU.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(qU.configure(this.options.heading)),this.options.history!==!1&&e.push(iW.configure(this.options.history)),this.options.horizontalRule!==!1&&e.push(rW.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(uW.configure(this.options.italic)),this.options.listItem!==!1&&e.push(cW.configure(this.options.listItem)),this.options.orderedList!==!1&&e.push(fW.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(hW.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(pW.configure(this.options.strike)),this.options.text!==!1&&e.push(vW.configure(this.options.text)),e}}),yW={name:"ForumView",components:{EditorContent:Uu},data(){return{forumName:"",page:1,numberOfItems:0,titles:[],inCreation:!1,newTitle:"",editor:null}},computed:{forumId(){return this.$route.params.id},totalPages(){return Math.ceil(this.numberOfItems/25)}},watch:{forumId:{handler(){this.page=1,this.loadForum()},immediate:!0},page(e,t){e!==t&&this.loadForum()}},async mounted(){this.editor=new zu({extensions:[Wu],content:"",editable:!0,editorProps:{attributes:{class:"pm-root"}}})},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{async loadForum(){try{const{data:e}=await X.get(`/api/forum/${this.forumId}/${this.page}`);this.forumName=e.name,this.titles=e.titles,this.numberOfItems=e.totalTopics}catch(e){console.error("Fehler beim Laden des Forums",e)}},createNewTopic(){this.inCreation=!this.inCreation,this.inCreation&&this.editor&&(this.editor.commands.setContent(""),this.$nextTick(()=>{var e;return(e=this.editor)==null?void 0:e.commands.focus("end")}))},async saveNewTopic(){const e=this.editor?this.editor.getHTML():"";if(!(!this.newTitle.trim()||!e.trim()))try{const{data:t}=await X.post("/api/forum/topic",{forumId:this.forumId,title:this.newTitle,content:e});this.forumName=t.name,this.titles=t.titles,this.numberOfItems=t.totalTopics,this.page=t.page,this.inCreation=!1,this.newTitle=""}catch(t){console.error("Fehler beim Erstellen des Themas",t)}},goToPage(e){e>=1&&e<=this.totalPages&&(this.page=e)},openProfile(e){this.$root.$refs.userProfileDialog.userId=e,this.$root.$refs.userProfileDialog.open()},openTopic(e){this.$router.push(`/socialnetwork/forumtopic/${e}`)}}},bW=e=>(Cn("data-v-f35f5f7b"),e=e(),Tn(),e),kW={class:"creationtoggler"},wW={key:0},SW={class:"newtitle"},_W={class:"editor-container"},CW={key:1},TW=bW(()=>d("table",null,null,-1)),EW={class:"pagination"},IW=["disabled"],AW=["disabled"],xW={key:2};function DW(e,t,n,i,r,s){const a=be("EditorContent");return S(),_(U,null,[d("h2",null,p(e.$t("socialnetwork.forum.title"))+" "+p(r.forumName),1),d("div",kW,[d("button",{onClick:t[0]||(t[0]=(...o)=>s.createNewTopic&&s.createNewTopic(...o))},p(e.$t(r.inCreation?"socialnetwork.forum.hideNewTopic":"socialnetwork.forum.showNewTopic")),1)]),r.inCreation?(S(),_("div",wW,[d("div",null,[d("label",SW,[ge(p(e.$t("socialnetwork.forum.topic"))+" ",1),ie(d("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=o=>r.newTitle=o)},null,512),[[Le,r.newTitle]])])]),d("div",_W,[r.editor?(S(),He(a,{key:0,editor:r.editor,class:"editor"},null,8,["editor"])):te("",!0)]),d("button",{onClick:t[2]||(t[2]=(...o)=>s.saveNewTopic&&s.saveNewTopic(...o))},p(e.$t("socialnetwork.forum.createNewTopic")),1)])):r.titles.length>0?(S(),_("div",CW,[TW,d("div",EW,[d("button",{onClick:t[3]||(t[3]=o=>s.goToPage(r.page-1)),disabled:r.page<=1},"",8,IW),d("span",null,p(r.page)+" / "+p(s.totalPages),1),d("button",{onClick:t[4]||(t[4]=o=>s.goToPage(r.page+1)),disabled:r.page>=s.totalPages},"",8,AW)])])):(S(),_("div",xW,p(e.$t("socialnetwork.forum.noTitles")),1))],64)}const PW=Oe(yW,[["render",DW],["__scopeId","data-v-f35f5f7b"]]),OW={name:"ForumTopicView",components:{EditorContent:Uu},data(){return{forumTopicId:"",forumTopic:null,forumName:null,forumId:0,messages:[],editor:null}},mounted(){this.forumTopicId=this.$route.params.id,this.loadForumTopic(),this.editor=new zu({extensions:[Wu],content:"",editable:!0,editorProps:{attributes:{class:"pm-root"}}})},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{async loadForumTopic(){try{const e=await X.get(`/api/forum/topic/${this.forumTopicId}`);this.setContent(e.data)}catch(e){console.error(e)}},setContent(e){this.forumTopic=e.title,this.forumName=e.forum.name,this.forumId=e.forum.id,this.messages=e.messages},async openProfile(e){this.$root.$refs.userProfileDialog.userId=e,this.$root.$refs.userProfileDialog.open()},async saveNewMessage(){const e=this.editor?this.editor.getHTML():"";if(e.trim())try{const t=`/api/forum/topic/${this.forumTopicId}/message`,n=await X.post(t,{content:e});this.editor.commands.clearContent(),this.setContent(n.data)}catch(t){console.error(t)}},openForum(){this.$router.push(`/socialnetwork/forum/${this.forumId}`)},sanitizedMessage(e){return qa.sanitize(e.text)}}},MW={key:0},$W={class:"messages"},VW=["innerHTML"],LW={class:"footer"},NW=["onClick"],RW={class:"editor-container"};function FW(e,t,n,i,r,s){const a=be("EditorContent");return S(),_(U,null,[d("h2",{class:"link",onClick:t[0]||(t[0]=o=>s.openForum())},p(e.$t("socialnetwork.forum.title"))+" "+p(r.forumName),1),r.forumTopic?(S(),_("h3",MW,p(r.forumTopic),1)):te("",!0),d("ul",$W,[(S(!0),_(U,null,we(r.messages,o=>(S(),_("li",{key:o.id},[d("div",{innerHTML:s.sanitizedMessage(o)},null,8,VW),d("div",LW,[d("span",{class:"link",onClick:l=>s.openProfile(o.lastMessageUser.hashedId)},p(o.lastMessageUser.username),9,NW),d("span",null,p(new Date(o.createdAt).toLocaleString()),1)])]))),128))]),d("div",RW,[r.editor?(S(),He(a,{key:0,editor:r.editor,class:"editor"},null,8,["editor"])):te("",!0)]),d("button",{onClick:t[1]||(t[1]=(...o)=>s.saveNewMessage&&s.saveNewMessage(...o))},p(e.$t("socialnetwork.forum.createNewMesssage")),1)],64)}const BW=Oe(OW,[["render",FW],["__scopeId","data-v-e4ddc61b"]]),zW=[{path:"/friends",name:"Friends",component:DN,meta:{requiresAuth:!0}},{path:"/socialnetwork/guestbook",name:"Guestbook",component:oF,meta:{requiresAuth:!0}},{path:"/socialnetwork/search",name:"Search users",component:dR,meta:{requiresAuth:!0}},{path:"/socialnetwork/gallery",name:"Gallery",component:YR,meta:{requiresAuth:!0}},{path:"/socialnetwork/forum/:id",name:"Forum",component:PW,meta:{requiresAuth:!0}},{path:"/socialnetwork/forumtopic/:id",name:"ForumTopic",component:BW,meta:{requiresAuth:!0}},{path:"/socialnetwork/diary",name:"Diary",component:CF,meta:{requiresAuth:!0}}],UW={name:"InputStringWidget",props:{labelTr:{type:String,required:!0},value:{type:String,required:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10},regex:{type:String,required:!1,default:null}},methods:{validateAndUpdate(e){this.regex?new RegExp(this.regex).test(e)&&this.updateValue(e):this.updateValue(e)},updateValue(e){this.$emit("input",e)}}},WW=["value","placeholder","title"];function HW(e,t,n,i,r,s){return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),d("input",{type:"text",value:n.value,placeholder:e.$t(n.labelTr),title:e.$t(n.tooltipTr),onChange:t[0]||(t[0]=a=>s.validateAndUpdate(a.target.value))},null,40,WW)])}const jW=Oe(UW,[["render",HW],["__scopeId","data-v-07c697f5"]]),GW={name:"DateInputWidget",props:{labelTr:{type:String,required:!0},value:{type:String,required:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10}},data(){return{internalValue:this.value}},watch:{value(e){this.internalValue=e}},computed:{...Rn(["language"])},methods:{updateValue(e){this.internalValue=e,this.$emit("input",e)}}},qW=["placeholder","title"];function KW(e,t,n,i,r,s){return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),ie(d("input",{type:"date","onUpdate:modelValue":t[0]||(t[0]=a=>r.internalValue=a),placeholder:e.$t(n.labelTr),title:e.$t(n.tooltipTr),onChange:t[1]||(t[1]=a=>s.updateValue(a.target.value))},null,40,qW),[[Le,r.internalValue]])])}const YW=Oe(GW,[["render",KW],["__scopeId","data-v-82a822d3"]]),JW={name:"InputNumberWidget",props:{labelTr:{type:String,required:!0},value:{type:Number,required:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10},min:{type:Number,required:!1},max:{type:Number,required:!1}},methods:{updateValue(e){console.log("changed to ",e),this.$emit("input",parseInt(e))}}},XW=["value","title","min","max"];function ZW(e,t,n,i,r,s){return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),d("input",{type:"number",value:n.value,title:e.$t(n.tooltipTr),min:n.min,max:n.max,onChange:t[0]||(t[0]=a=>s.updateValue(a.target.value))},null,40,XW)])}const QW=Oe(JW,[["render",ZW],["__scopeId","data-v-59ba3245"]]),eH={name:"FloatInputWidget",props:{labelTr:{type:String,required:!0},value:{type:Number,required:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10},decimals:{type:Number,required:!1,default:2},postfix:{type:String,required:!1,default:""}},computed:{formattedValue(){return this.value!=null?this.value.toFixed(this.decimals):""},step(){return Math.pow(10,-this.decimals)}},methods:{updateValue(e){this.$emit("input",parseFloat(e).toFixed(this.decimals))}}},tH=["value","placeholder","title","step"],nH={key:0};function iH(e,t,n,i,r,s){return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),d("input",{type:"number",value:s.formattedValue,placeholder:e.$t(n.labelTr),title:e.$t(n.tooltipTr),onChange:t[0]||(t[0]=a=>s.updateValue(a.target.value)),step:s.step},null,40,tH),n.postfix?(S(),_("span",nH,p(n.postfix),1)):te("",!0)])}const rH=Oe(eH,[["render",iH],["__scopeId","data-v-dd0a4891"]]),sH={name:"CheckboxWidget",props:{labelTr:{type:String,required:!0},value:{type:Boolean,required:!1,default:!1},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10}},methods:{updateValue(e){this.$emit("input",e||!1)}}},aH=["checked","title"];function oH(e,t,n,i,r,s){return S(),_("label",null,[d("input",{type:"checkbox",checked:n.value,onChange:t[0]||(t[0]=a=>s.updateValue(a.target.checked)),title:e.$t(n.tooltipTr)},null,40,aH),d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5)])}const lH=Oe(sH,[["render",oH],["__scopeId","data-v-ce64f4d6"]]),uH={name:"MultiselectWidget",components:{Multiselect:is},props:{labelTr:{type:String,required:!0},value:{type:String,required:!1,default:"[]"},tooltipTr:{type:String,required:!0},width:{type:Number,required:!1,default:10},list:{type:Array,required:!0,default:()=>[]}},data(){return{internalValues:this.stringToArray(this.value),selectedOptions:this.getOptionsFromIds(this.stringToArray(this.value))}},computed:{validList(){return this.validatedList()}},watch:{value(e){const t=this.stringToArray(e);this.internalValues=t,this.selectedOptions=this.getOptionsFromIds(t)},selectedOptions(e){this.internalValues=e.map(t=>t.value),this.updateValue()}},methods:{stringToArray(e){try{return JSON.parse(e).filter(n=>n!=null)}catch{return console.error("Invalid JSON string in value:",e),[]}},updateValue(){const e=JSON.stringify(this.internalValues);this.$emit("input",e)},getTranslation(e){return e.captionTr?this.$t(e.captionTr):e.caption},findOption(e){return this.validatedList().find(t=>t.value===e)},getOptionsFromIds(e){return e.map(t=>this.findOption(t)).filter(t=>t)},validatedList(){return!this.list||!Array.isArray(this.list)?[]:this.list.filter(e=>e&&e.value!==null&&e.value!==void 0&&(e.captionTr||e.caption))}}},cH={key:0},dH={key:0,class:"multiselect__tag"},fH=["onClick"],hH={key:1};function mH(e,t,n,i,r,s){const a=be("Multiselect");return S(),_("label",null,[d("span",{style:ft({width:n.width+"em"})},p(e.$t(n.labelTr)),5),v(a,{modelValue:r.selectedOptions,"onUpdate:modelValue":t[0]||(t[0]=o=>r.selectedOptions=o),options:s.validList,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("select_option"),"track-by":"value"},{option:ze(({option:o})=>[o&&o.value?(S(),_("span",cH,p(s.getTranslation(o)),1)):te("",!0)]),tag:ze(({option:o,remove:l})=>[o&&o.captionTr?(S(),_("span",dH,[ge(p(e.$t(o.captionTr))+" ",1),d("span",{onClick:u=>l(o)},"×",8,fH)])):(S(),_("span",hH,"@e"))]),_:1},8,["modelValue","options","placeholder"])])}const gH=Oe(uH,[["render",mH],["__scopeId","data-v-cbdc1c1b"]]),pH={name:"SettingsWidget",components:{InputStringWidget:jW,DateInputWidget:YW,SelectDropdownWidget:X_,InputNumberWidget:QW,FloatInputWidget:rH,CheckboxWidget:lH,MultiselectWidget:gH},props:{settingsType:{type:String,required:!0}},data:{settings:[],possibleVisibilities:[]},computed:{...Rn(["user"])},async mounted(){await this.fetchSettings()},methods:{async fetchSettings(){if(this.user&&this.user.id)try{const e=await X.get("/api/settings/visibilities");this.possibleVisibilities=e.data;const t=this.user.id,n=await X.post("/api/settings/filter",{userid:t,type:this.settingsType});this.settings=n.data}catch{this.settings=[]}},getSettingOptions(e,t){return t.map(n=>({value:n.id,captionTr:`settings.personal.${e}.${n.value}`}))},async handleInput(e,t){if(!["object","array"].includes(typeof t))try{const n=this.user.id;await X.post("/api/settings/update",{userid:n,settingId:e,value:t}),this.fetchSettings()}catch(n){console.error("Error updating setting:",n)}},languagesList(){return[{value:"en",captionTr:"settings.personal.languages.en"},{value:"de",captionTr:"settings.personal.languages.de"}]},convertToInt(e){const t=parseInt(e,10);return isNaN(t)?0:t},convertToFloat(e){const t=parseFloat(e);return isNaN(t)?0:t},convertToBool(e){return e==="true"||e===!0},async handleVisibilityChange(e,t){try{await X.post("/api/settings/update-visibility",{userParamTypeId:e,visibilityId:t})}catch(n){console.error("Error updating visibility:",n)}}},data(){return{settings:[]}}},vH={class:"settings-widget"},yH={key:7},bH={key:8},kH=["onUpdate:modelValue","onChange"],wH=["value"];function SH(e,t,n,i,r,s){const a=be("InputStringWidget"),o=be("DateInputWidget"),l=be("SelectDropdownWidget"),u=be("InputNumberWidget"),c=be("FloatInputWidget"),f=be("CheckboxWidget"),h=be("MultiselectWidget");return S(),_("div",vH,[d("table",null,[(S(!0),_(U,null,we(r.settings,m=>(S(),_("tr",{key:m.id},[d("td",null,[m.datatype=="string"?(S(),He(a,{key:0,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:m.value,list:s.languagesList(),onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","list","onInput"])):m.datatype=="date"?(S(),He(o,{key:1,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:m.value,onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","onInput"])):m.datatype=="singleselect"?(S(),He(l,{key:2,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:m.value,list:s.getSettingOptions(m.name,m.options),onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","list","onInput"])):m.datatype=="int"?(S(),He(u,{key:3,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:s.convertToInt(m.value),min:"0",max:"200",onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","onInput"])):m.datatype=="float"?(S(),He(c,{key:4,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:s.convertToFloat(m.value),onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","onInput"])):m.datatype=="bool"?(S(),He(f,{key:5,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:s.convertToBool(m.value),onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","onInput"])):m.datatype=="multiselect"?(S(),He(h,{key:6,labelTr:`settings.personal.label.${m.name}`,tooltipTr:`settings.personal.tooltip.${m.name}`,value:m.value,list:s.getSettingOptions(m.name,m.options),onInput:g=>s.handleInput(m.id,g)},null,8,["labelTr","tooltipTr","value","list","onInput"])):(S(),_("div",yH,p(m),1)),m.unit?(S(),_("span",bH," "+p(m.unit),1)):te("",!0)]),d("td",null,[ie(d("select",{"onUpdate:modelValue":g=>m.visibility.id=g,onChange:g=>s.handleVisibilityChange(m.id,m.visibility.id)},[(S(!0),_(U,null,we(e.possibleVisibilities,g=>(S(),_("option",{key:g.id,value:g.id},p(e.$t(`settings.visibility.${g.description}`)),9,wH))),128))],40,kH),[[Et,m.visibility.id]])])]))),128))])])}const yf=Oe(pH,[["render",SH],["__scopeId","data-v-38a8f73c"]]),_H={name:"PersonalSettingsView",components:{SettingsWidget:yf}};function CH(e,t,n,i,r,s){const a=be("SettingsWidget");return S(),_("div",null,[d("h2",null,p(e.$t("settings.personal.title")),1),v(a,{settingsType:"personal"})])}const TH=Oe(_H,[["render",CH]]),EH={name:"ViewSettingsView",components:{SettingsWidget:yf}};function IH(e,t,n,i,r,s){const a=be("SettingsWidget");return S(),_("div",null,[d("h2",null,p(e.$t("settings.view.title")),1),v(a,{settingsType:"view"})])}const AH=Oe(EH,[["render",IH]]),xH={name:"FlirtSettingsView",components:{SettingsWidget:yf}};function DH(e,t,n,i,r,s){const a=be("SettingsWidget");return S(),_("div",null,[d("h2",null,p(e.$t("settings.flirt.title")),1),v(a,{settingsType:"flirt"})])}const PH=Oe(xH,[["render",DH]]),OH={name:"SexualitySettingsView",components:{SettingsWidget:yf}};function MH(e,t,n,i,r,s){const a=be("SettingsWidget");return S(),_("div",null,[d("h2",null,p(e.$t("settings.sexuality.title")),1),v(a,{settingsType:"sexuality"})])}const $H=Oe(OH,[["render",MH]]),VH={name:"AccountSettingsView",components:{},computed:{...Rn(["user"])},data(){return{username:"",email:"",newpassword:"",newpasswordretype:"",showInSearch:!1,oldpassword:""}},methods:{},async mounted(){const e=await X.post("/api/settings/account",{userId:this.user.id});console.log(e.data),this.username=e.data.username,this.showInSearch=e.data.showinsearch,this.email=e.data.email,console.log(this.showInSearch)}},LH=["placeholder"],NH=["placeholder"],RH=["placeholder"],FH=["placeholder"],BH=["placeholder"];function zH(e,t,n,i,r,s){return S(),_("div",null,[d("h2",null,p(e.$t("settings.account.title")),1),d("div",null,[d("label",null,[d("span",null,p(e.$t("settings.account.username")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>r.username=a),placeholder:e.$t("settings.account.username")},null,8,LH),[[Le,r.username]])])]),d("div",null,[d("label",null,[d("span",null,p(e.$t("settings.account.email")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=a=>r.email=a),placeholder:e.$t("settings.account.email")},null,8,NH),[[Le,r.email]])])]),d("div",null,[d("label",null,[d("span",null,p(e.$t("settings.account.newpassword")),1),ie(d("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>r.newpassword=a),placeholder:e.$t("settings.account.newpassword")},null,8,RH),[[Le,r.newpassword]])])]),d("div",null,[d("label",null,[d("span",null,p(e.$t("settings.account.newpasswordretype")),1),ie(d("input",{type:"password","onUpdate:modelValue":t[3]||(t[3]=a=>r.newpasswordretype=a),placeholder:e.$t("settings.account.newpasswordretype")},null,8,FH),[[Le,r.newpasswordretype]])])]),d("div",null,[d("label",null,[d("span",null,p(e.$t("settings.account.oldpassword")),1),ie(d("input",{type:"password","onUpdate:modelValue":t[4]||(t[4]=a=>r.oldpassword=a),placeholder:e.$t("settings.account.oldpassword")},null,8,BH),[[Le,r.oldpassword]])])]),d("div",null,[d("button",{onClick:t[5]||(t[5]=(...a)=>e.changeAccount&&e.changeAccount(...a))},p(e.$t("settings.account.changeaction")),1)]),d("div",null,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[6]||(t[6]=a=>r.showInSearch=a)},null,512),[[Nt,r.showInSearch]]),ge(" "+p(e.$t("settings.account.showinsearch")),1)])])])}const UH=Oe(VH,[["render",zH],["__scopeId","data-v-f62d24e8"]]),WH={name:"MessageboxWidget",props:{type:{type:String,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"200px"},message:{type:String,default:""}},data(){return{visible:!1,minimized:!1}},computed:{dialogWidth(){return this.width||"70%"},dialogHeight(){return this.height||"60%"}},watch:{visible(e){e||(this.minimized=!1)}},methods:{open(){this.visible=!0,this.modal===!1&&this.$store.dispatch("dialogs/addOpenDialog",{status:"open",dialog:this})},close(){this.visible=!1,this.$store.dispatch("dialogs/removeOpenDialog",this.name)},getHeadLine(){switch(this.type){case"error":return this.$t("error-title");case"warning":return this.$t("warning-title");case"info":return this.$t("info-title");default:return this.$t("info-title")}}},mounted(){this.$store.subscribe(e=>{e.type==="dialogs/toggleDialogMinimize"&&e.payload===this.name&&(this.minimized=!this.minimized)})}},HH={key:0,class:Dt(["dialog-overlay",{"non-modal":!1}])},jH={class:"dialog-header"},GH={class:"dialog-title"},qH={class:"dialog-body"},KH={class:"dialog-footer"};function YH(e,t,n,i,r,s){return r.visible?(S(),_("div",HH,[d("div",{class:Dt(["dialog",{minimized:r.minimized}]),style:ft({width:s.dialogWidth,height:s.dialogHeight})},[d("div",jH,[d("span",GH,p(s.getHeadLine()),1),d("span",{class:"dialog-close",onClick:t[0]||(t[0]=(...a)=>s.close&&s.close(...a))},"✖")]),d("div",qH,p(n.message),1),d("div",KH,[d("button",{onClick:t[1]||(t[1]=a=>s.close()),class:"dialog-button"},"Ok")])],6)])):te("",!0)}const UT=Oe(WH,[["render",YH],["__scopeId","data-v-143b6149"]]),JH={name:"InterestsView",components:{MessageboxWidget:UT},computed:{...Rn(["user","language"])},async mounted(){await this.loadUserInterests()},data(){return{possibleInterests:[],userInterests:[],filteredInterests:[],newInterest:"",messageboxType:"info",messageboxMessage:""}},methods:{async loadUserInterests(){const e=await X.get("/api/settings/getpossibleinterests");this.possibleInterests=e.data;const t=await X.get("/api/settings/getuserinterests");this.userInterests=t.data},newInterestKeyupHandler(){const e=this.newInterest.toLowerCase();this.filteredInterests=[],!(e.length<2)&&(this.filteredInterests=this.possibleInterests.filter(t=>t.name.toLowerCase().includes(e)?!0:t.interest_translations&&t.interest_translations.length>0?t.interest_translations.some(n=>n.translation.toLowerCase().includes(e)):!1))},getInterestTranslation(e){if(e.interest_translations&&e.interest_translations.length>0){let t=e.interest_translations.filter(n=>n.user_param_value.value===this.language);return t.length===0&&(t=e.interest_translations.filter(n=>n.user_param_value.value==="en"),t.length===0&&(t=e.interest_translations.filter(n=>n.user_param_value.value==="de"))),t.length>0?t[0].translation:e.name}return e.name},async addInterest(e){if(!this.userInterests.includes(e))try{await X.post("/api/settings/setinterest",{interestid:e.id}),await this.loadUserInterests(),this.newInterest="",this.filteredInterests=[]}catch{this.messageboxType="error",this.messageboxMessage=$t("settings.interests.errorsetinterest"),this.$refs.messageboxWidget.open()}},async addInterestByText(){if(this.newInterest.length>0){const e=this.possibleInterests.filter(t=>this.getInterestTranslation(t)===this.newInterest);if(e.length===1){this.addInterest(e[0]);return}try{await X.post("/api/settings/addinterest",{name:this.newInterest}),this.messageboxType="info",this.messageboxMessage=this.$t("settings.interests.added")}catch{this.messageboxType="error",this.messageboxMessage=this.$t("settings.interests.adderror")}this.$refs.messageboxWidget.open()}},async removeInterest(e){await X.get("/api/settings/removeinterest/"+e.id),await this.loadUserInterests()}}},XH={class:"interest"},ZH=["onClick"],QH={class:"new-interest"},e5={key:0,class:"new-interest-proposals"},t5=["onClick"];function n5(e,t,n,i,r,s){const a=be("MessageboxWidget");return S(),_(U,null,[d("div",null,[d("h2",null,p(e.$t("settings.interests.title")),1),d("div",null,[(S(!0),_(U,null,we(this.userInterests,(o,l)=>(S(),_("span",XH,[ge(p(l>0?", ":"")+p(s.getInterestTranslation(o.user_interest_type)),1),d("span",{class:"link remove",onClick:u=>s.removeInterest(o)},"-",8,ZH)]))),256))])]),d("div",QH,[ge(p(e.$t("settings.interests.new"))+" ",1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>r.newInterest=o),onKeyup:t[1]||(t[1]=(...o)=>s.newInterestKeyupHandler&&s.newInterestKeyupHandler(...o))},null,544),[[Le,r.newInterest]]),d("button",{onClick:t[2]||(t[2]=(...o)=>s.addInterestByText&&s.addInterestByText(...o))},p(e.$t("settings.interests.add")),1),r.filteredInterests.length>0?(S(),_("div",e5,[d("ul",null,[(S(!0),_(U,null,we(r.filteredInterests,o=>(S(),_("li",{onClick:l=>s.addInterest(o),class:"link"},p(s.getInterestTranslation(o)),9,t5))),256))])])):te("",!0)]),v(a,{type:r.messageboxType,message:r.messageboxMessage,ref:"messageboxWidget"},null,8,["type","message"])],64)}const i5=Oe(JH,[["render",n5],["__scopeId","data-v-3cbcebb4"]]),r5=[{path:"/settings/personal",name:"Personal settings",component:TH,meta:{requiresAuth:!0}},{path:"/settings/view",name:"View settings",component:AH,meta:{requiresAuth:!0}},{path:"/settings/sexuality",name:"Sexuality settings",component:$H,meta:{requiresAuth:!0}},{path:"/settings/flirt",name:"Flirt settings",component:PH,meta:{requiresAuth:!0}},{path:"/settings/account",name:"Account settings",component:UH,meta:{requiresAuth:!0}},{path:"/settings/interests",name:"Interests",component:i5,meta:{requiresAuth:!0}}],s5={name:"AdminInterestsView",data(){return{openInterests:[],languages:[]}},components:{MessageboxWidget:UT},computed:{...Rn(["user","language"])},async mounted(){await this.loadOpenInterests(),await this.getLanguages()},methods:{async loadOpenInterests(){try{const e=await X.get("/api/admin/interests/open");this.openInterests=e.data}catch(e){console.error(e)}},async changeItem(e){try{const t={id:e.id,active:e.allowed||!1,adult:e.adultOnly||!1};await X.post("/api/admin/interest",t)}catch(t){console.error(t)}},async changeTranslation(e,t,n){try{e.translations||(e.translations={}),e.translations[t.value]=n;const i={id:e.id,translations:{[t.value]:n}};await X.post("/api/admin/interest/translation",i)}catch(i){console.error(i)}},async deleteInterest(e){try{await X.delete(`/api/admin/interest/${e}`),this.openInterests=this.openInterests.filter(t=>t.id!==e)}catch(t){console.error(t)}},async getLanguages(){try{const e=await X.post("/api/settings/getparamvalues",{type:"language"});this.languages=e.data.map(t=>({value:t.id,captionTr:`settings.personal.language.${t.name}`}))}catch(e){console.error("Error loading languages:",e)}},getTranslationValue(e,t){return e.translations&&e.translations[t.value]||""}}},a5=d("th",null,null,-1),o5=["onUpdate:modelValue","onChange"],l5=["onUpdate:modelValue","onChange"],u5=["value","onChange"],c5=["onClick"];function d5(e,t,n,i,r,s){return S(),_("div",null,[d("h2",null,p(e.$t("admin.interests.title")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("admin.interests.newinterests.name")),1),d("th",null,p(e.$t("admin.interests.newinterests.status")),1),d("th",null,p(e.$t("admin.interests.newinterests.adultonly")),1),d("th",null,p(e.$t("admin.interests.newinterests.translations")),1),a5])]),d("tbody",null,[(S(!0),_(U,null,we(r.openInterests,a=>(S(),_("tr",{key:a.id},[d("td",null,p(a.name),1),d("td",null,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":o=>a.allowed=o,onChange:o=>s.changeItem(a)},null,40,o5),[[Nt,a.allowed]]),ge(" "+p(e.$t("admin.interests.newinterests.isactive")),1)])]),d("td",null,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":o=>a.adultOnly=o,onChange:o=>s.changeItem(a)},null,40,l5),[[Nt,a.adultOnly]]),ge(" "+p(e.$t("admin.interests.newinterests.isadult")),1)])]),d("td",null,[(S(!0),_(U,null,we(r.languages,o=>(S(),_("div",{key:o.id},[d("label",null,[ge(p(e.$t(o.captionTr))+" ",1),d("input",{type:"text",value:s.getTranslationValue(a,o),onChange:l=>s.changeTranslation(a,o,l.target.value)},null,40,u5)])]))),128))]),d("td",null,[d("button",{onClick:o=>s.deleteInterest(a.id)},p(e.$t("admin.interests.newinterests.delete")),9,c5)])]))),128))])])])}const f5=Oe(s5,[["render",d5]]);function ur(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Va(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const WT=6048e5,h5=864e5;let m5={};function bf(){return m5}function gu(e,t){var o,l,u,c;const n=bf(),i=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,r=ur(e),s=r.getDay(),a=(s<i?7:0)+s-i;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function _d(e){return gu(e,{weekStartsOn:1})}function HT(e){const t=ur(e),n=t.getFullYear(),i=Va(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const r=_d(i),s=Va(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const a=_d(s);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Dw(e){const t=ur(e);return t.setHours(0,0,0,0),t}function Pw(e){const t=ur(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function g5(e,t){const n=Dw(e),i=Dw(t),r=+n-Pw(n),s=+i-Pw(i);return Math.round((r-s)/h5)}function p5(e){const t=HT(e),n=Va(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),_d(n)}function v5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function y5(e){if(!v5(e)&&typeof e!="number")return!1;const t=ur(e);return!isNaN(Number(t))}function b5(e){const t=ur(e),n=Va(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const k5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},w5=(e,t,n)=>{let i;const r=k5[e];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Qh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const S5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},C5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},T5={date:Qh({formats:S5,defaultWidth:"full"}),time:Qh({formats:_5,defaultWidth:"full"}),dateTime:Qh({formats:C5,defaultWidth:"full"})},E5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},I5=(e,t,n,i)=>E5[e];function El(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return r[s]}}const A5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},x5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},D5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},P5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},M5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$5=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},V5={ordinalNumber:$5,era:El({values:A5,defaultWidth:"wide"}),quarter:El({values:x5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:El({values:D5,defaultWidth:"wide"}),day:El({values:P5,defaultWidth:"wide"}),dayPeriod:El({values:O5,defaultWidth:"wide",formattingValues:M5,defaultFormattingWidth:"wide"})};function Il(e){return(t,n={})=>{const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(r);if(!s)return null;const a=s[0],o=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?N5(o,f=>f.test(a)):L5(o,f=>f.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function L5(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function N5(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function R5(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const r=i[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=t.slice(r.length);return{value:a,rest:o}}}const F5=/^(\d+)(th|st|nd|rd)?/i,B5=/\d+/i,z5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},U5={any:[/^b/i,/^(a|c)/i]},W5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},H5={any:[/1/i,/2/i,/3/i,/4/i]},j5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},G5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},q5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},K5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Y5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},J5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},X5={ordinalNumber:R5({matchPattern:F5,parsePattern:B5,valueCallback:e=>parseInt(e,10)}),era:Il({matchPatterns:z5,defaultMatchWidth:"wide",parsePatterns:U5,defaultParseWidth:"any"}),quarter:Il({matchPatterns:W5,defaultMatchWidth:"wide",parsePatterns:H5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Il({matchPatterns:j5,defaultMatchWidth:"wide",parsePatterns:G5,defaultParseWidth:"any"}),day:Il({matchPatterns:q5,defaultMatchWidth:"wide",parsePatterns:K5,defaultParseWidth:"any"}),dayPeriod:Il({matchPatterns:Y5,defaultMatchWidth:"any",parsePatterns:J5,defaultParseWidth:"any"})},Z5={code:"en-US",formatDistance:w5,formatLong:T5,formatRelative:I5,localize:V5,match:X5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q5(e){const t=ur(e);return g5(t,b5(t))+1}function e4(e){const t=ur(e),n=+_d(t)-+p5(t);return Math.round(n/WT)+1}function jT(e,t){var c,f,h,m;const n=ur(e),i=n.getFullYear(),r=bf(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,a=Va(e,0);a.setFullYear(i+1,0,s),a.setHours(0,0,0,0);const o=gu(a,t),l=Va(e,0);l.setFullYear(i,0,s),l.setHours(0,0,0,0);const u=gu(l,t);return n.getTime()>=o.getTime()?i+1:n.getTime()>=u.getTime()?i:i-1}function t4(e,t){var o,l,u,c;const n=bf(),i=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,r=jT(e,t),s=Va(e,0);return s.setFullYear(r,0,i),s.setHours(0,0,0,0),gu(s,t)}function n4(e,t){const n=ur(e),i=+gu(n,t)-+t4(n,t);return Math.round(i/WT)+1}function St(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const hs={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return St(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):St(n+1,2)},d(e,t){return St(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return St(e.getHours()%12||12,t.length)},H(e,t){return St(e.getHours(),t.length)},m(e,t){return St(e.getMinutes(),t.length)},s(e,t){return St(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),r=Math.trunc(i*Math.pow(10,n-3));return St(r,t.length)}},go={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ow={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return hs.y(e,t)},Y:function(e,t,n,i){const r=jT(e,i),s=r>0?r:1-r;if(t==="YY"){const a=s%100;return St(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):St(s,t.length)},R:function(e,t){const n=HT(e);return St(n,t.length)},u:function(e,t){const n=e.getFullYear();return St(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return St(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return St(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return hs.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return St(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=n4(e,i);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):St(r,t.length)},I:function(e,t,n){const i=e4(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):St(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):hs.d(e,t)},D:function(e,t,n){const i=Q5(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):St(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return St(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return St(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return St(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(i===12?r=go.noon:i===0?r=go.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(i>=17?r=go.evening:i>=12?r=go.afternoon:i>=4?r=go.morning:r=go.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return hs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):hs.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):St(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):hs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):hs.s(e,t)},S:function(e,t){return hs.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return $w(i);case"XXXX":case"XX":return ra(i);case"XXXXX":case"XXX":default:return ra(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return $w(i);case"xxxx":case"xx":return ra(i);case"xxxxx":case"xxx":default:return ra(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mw(i,":");case"OOOO":default:return"GMT"+ra(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mw(i,":");case"zzzz":default:return"GMT"+ra(i,":")}},t:function(e,t,n){const i=Math.trunc(e.getTime()/1e3);return St(i,t.length)},T:function(e,t,n){const i=e.getTime();return St(i,t.length)}};function Mw(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),s=i%60;return s===0?n+String(r):n+String(r)+t+St(s,2)}function $w(e,t){return e%60===0?(e>0?"-":"+")+St(Math.abs(e)/60,2):ra(e,t)}function ra(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),r=St(Math.trunc(i/60),2),s=St(i%60,2);return n+r+t+s}const Vw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},GT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},i4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return Vw(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Vw(i,t)).replace("{{time}}",GT(r,t))},r4={p:GT,P:i4},s4=/^D+$/,a4=/^Y+$/,o4=["D","DD","YY","YYYY"];function l4(e){return s4.test(e)}function u4(e){return a4.test(e)}function c4(e,t,n){const i=d4(e,t,n);if(console.warn(i),o4.includes(e))throw new RangeError(i)}function d4(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const f4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,h4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m4=/^'([^]*?)'?$/,g4=/''/g,p4=/[a-zA-Z]/;function v4(e,t,n){var c,f,h,m;const i=bf(),r=i.locale??Z5,s=i.firstWeekContainsDate??((f=(c=i.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,a=i.weekStartsOn??((m=(h=i.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,o=ur(e);if(!y5(o))throw new RangeError("Invalid time value");let l=t.match(h4).map(g=>{const y=g[0];if(y==="p"||y==="P"){const b=r4[y];return b(g,r.formatLong)}return g}).join("").match(f4).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const y=g[0];if(y==="'")return{isToken:!1,value:y4(g)};if(Ow[y])return{isToken:!0,value:g};if(y.match(p4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:g}});r.localize.preprocessor&&(l=r.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:r};return l.map(g=>{if(!g.isToken)return g.value;const y=g.value;(u4(y)||l4(y))&&c4(y,t,String(e));const b=Ow[y[0]];return b(o,y,r.localize,u)}).join("")}function y4(e){const t=e.match(m4);return t?t[1].replace(g4,"'"):e}/*!
* shared v10.0.7
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const Cd=typeof window<"u",qs=(e,t=!1)=>t?Symbol.for(e):Symbol(e),b4=(e,t,n)=>k4({l:e,k:t,s:n}),k4=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Xt=e=>typeof e=="number"&&isFinite(e),w4=e=>gv(e)==="[object Date]",qo=e=>gv(e)==="[object RegExp]",kf=e=>at(e)&&Object.keys(e).length===0,fn=Object.assign,S4=Object.create,It=(e=null)=>S4(e);let Lw;const ha=()=>Lw||(Lw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:It());function Nw(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const _4=Object.prototype.hasOwnProperty;function nr(e,t){return _4.call(e,t)}const Kt=Array.isArray,Ot=e=>typeof e=="function",Fe=e=>typeof e=="string",yt=e=>typeof e=="boolean",bt=e=>e!==null&&typeof e=="object",C4=e=>bt(e)&&Ot(e.then)&&Ot(e.catch),qT=Object.prototype.toString,gv=e=>qT.call(e),at=e=>gv(e)==="[object Object]",T4=e=>e==null?"":Kt(e)||at(e)&&e.toString===qT?JSON.stringify(e,null,2):String(e);function pv(e,t=""){return e.reduce((n,i,r)=>r===0?n+i:n+t+i,"")}function E4(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const _c=e=>!bt(e)||Kt(e);function jc(e,t){if(_c(e)||_c(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:i,des:r}=n.pop();Object.keys(i).forEach(s=>{s!=="__proto__"&&(bt(i[s])&&!bt(r[s])&&(r[s]=Array.isArray(i[s])?[]:It()),_c(r[s])||_c(i[s])?r[s]=i[s]:n.push({src:i[s],des:r[s]}))})}}/*!
* message-compiler v10.0.7
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function I4(e,t,n){return{line:e,column:t,offset:n}}function lg(e,t,n){return{start:e,end:t}}const Ct={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},A4=17;function wf(e,t,n={}){const{domain:i,messages:r,args:s}=n,a=e,o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=i,o}function x4(e){throw e}const Rr=" ",D4="\r",Zn=`
`,P4="\u2028",O4="\u2029";function M4(e){const t=e;let n=0,i=1,r=1,s=0;const a=P=>t[P]===D4&&t[P+1]===Zn,o=P=>t[P]===Zn,l=P=>t[P]===O4,u=P=>t[P]===P4,c=P=>a(P)||o(P)||l(P)||u(P),f=()=>n,h=()=>i,m=()=>r,g=()=>s,y=P=>a(P)||l(P)||u(P)?Zn:t[P],b=()=>y(n),k=()=>y(n+s);function w(){return s=0,c(n)&&(i++,r=0),a(n)&&n++,n++,r++,t[n]}function E(){return a(n+s)&&s++,s++,t[n+s]}function I(){n=0,i=1,r=1,s=0}function D(P=0){s=P}function x(){const P=n+s;for(;P!==n;)w();s=0}return{index:f,line:h,column:m,peekOffset:g,charAt:y,currentChar:b,currentPeek:k,next:w,peek:E,reset:I,resetPeek:D,skipToPeek:x}}const ms=void 0,$4=".",Rw="'",V4="tokenizer";function L4(e,t={}){const n=t.location!==!1,i=M4(e),r=()=>i.index(),s=()=>I4(i.line(),i.column(),i.index()),a=s(),o=r(),l={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(L,R,W,...ne){const Ce=u();if(R.column+=W,R.offset+=W,c){const Te=n?lg(Ce.startLoc,R):null,H=wf(L,Te,{domain:V4,args:ne});c(H)}}function h(L,R,W){L.endLoc=s(),L.currentType=R;const ne={type:R};return n&&(ne.loc=lg(L.startLoc,L.endLoc)),W!=null&&(ne.value=W),ne}const m=L=>h(L,13);function g(L,R){return L.currentChar()===R?(L.next(),R):(f(Ct.EXPECTED_TOKEN,s(),0,R),"")}function y(L){let R="";for(;L.currentPeek()===Rr||L.currentPeek()===Zn;)R+=L.currentPeek(),L.peek();return R}function b(L){const R=y(L);return L.skipToPeek(),R}function k(L){if(L===ms)return!1;const R=L.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R===95}function w(L){if(L===ms)return!1;const R=L.charCodeAt(0);return R>=48&&R<=57}function E(L,R){const{currentType:W}=R;if(W!==2)return!1;y(L);const ne=k(L.currentPeek());return L.resetPeek(),ne}function I(L,R){const{currentType:W}=R;if(W!==2)return!1;y(L);const ne=L.currentPeek()==="-"?L.peek():L.currentPeek(),Ce=w(ne);return L.resetPeek(),Ce}function D(L,R){const{currentType:W}=R;if(W!==2)return!1;y(L);const ne=L.currentPeek()===Rw;return L.resetPeek(),ne}function x(L,R){const{currentType:W}=R;if(W!==7)return!1;y(L);const ne=L.currentPeek()===".";return L.resetPeek(),ne}function P(L,R){const{currentType:W}=R;if(W!==8)return!1;y(L);const ne=k(L.currentPeek());return L.resetPeek(),ne}function A(L,R){const{currentType:W}=R;if(!(W===7||W===11))return!1;y(L);const ne=L.currentPeek()===":";return L.resetPeek(),ne}function C(L,R){const{currentType:W}=R;if(W!==9)return!1;const ne=()=>{const Te=L.currentPeek();return Te==="{"?k(L.peek()):Te==="@"||Te==="|"||Te===":"||Te==="."||Te===Rr||!Te?!1:Te===Zn?(L.peek(),ne()):O(L,!1)},Ce=ne();return L.resetPeek(),Ce}function $(L){y(L);const R=L.currentPeek()==="|";return L.resetPeek(),R}function O(L,R=!0){const W=(Ce=!1,Te="")=>{const H=L.currentPeek();return H==="{"||H==="@"||!H?Ce:H==="|"?!(Te===Rr||Te===Zn):H===Rr?(L.peek(),W(!0,Rr)):H===Zn?(L.peek(),W(!0,Zn)):!0},ne=W();return R&&L.resetPeek(),ne}function M(L,R){const W=L.currentChar();return W===ms?ms:R(W)?(L.next(),W):null}function F(L){const R=L.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36}function z(L){return M(L,F)}function re(L){const R=L.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===95||R===36||R===45}function le(L){return M(L,re)}function ve(L){const R=L.charCodeAt(0);return R>=48&&R<=57}function ye(L){return M(L,ve)}function Z(L){const R=L.charCodeAt(0);return R>=48&&R<=57||R>=65&&R<=70||R>=97&&R<=102}function J(L){return M(L,Z)}function K(L){let R="",W="";for(;R=ye(L);)W+=R;return W}function me(L){let R="";for(;;){const W=L.currentChar();if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===Rr||W===Zn)if(O(L))R+=W,L.next();else{if($(L))break;R+=W,L.next()}else R+=W,L.next()}return R}function xe(L){b(L);let R="",W="";for(;R=le(L);)W+=R;return L.currentChar()===ms&&f(Ct.UNTERMINATED_CLOSING_BRACE,s(),0),W}function Me(L){b(L);let R="";return L.currentChar()==="-"?(L.next(),R+=`-${K(L)}`):R+=K(L),L.currentChar()===ms&&f(Ct.UNTERMINATED_CLOSING_BRACE,s(),0),R}function $e(L){return L!==Rw&&L!==Zn}function oe(L){b(L),g(L,"'");let R="",W="";for(;R=M(L,$e);)R==="\\"?W+=q(L):W+=R;const ne=L.currentChar();return ne===Zn||ne===ms?(f(Ct.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ne===Zn&&(L.next(),g(L,"'")),W):(g(L,"'"),W)}function q(L){const R=L.currentChar();switch(R){case"\\":case"'":return L.next(),`\\${R}`;case"u":return de(L,R,4);case"U":return de(L,R,6);default:return f(Ct.UNKNOWN_ESCAPE_SEQUENCE,s(),0,R),""}}function de(L,R,W){g(L,R);let ne="";for(let Ce=0;Ce<W;Ce++){const Te=J(L);if(!Te){f(Ct.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${R}${ne}${L.currentChar()}`);break}ne+=Te}return`\\${R}${ne}`}function Se(L){return L!=="{"&&L!=="}"&&L!==Rr&&L!==Zn}function _e(L){b(L);let R="",W="";for(;R=M(L,Se);)W+=R;return W}function pe(L){let R="",W="";for(;R=z(L);)W+=R;return W}function N(L){const R=W=>{const ne=L.currentChar();return ne==="{"||ne==="@"||ne==="|"||ne==="("||ne===")"||!ne||ne===Rr?W:(W+=ne,L.next(),R(W))};return R("")}function V(L){b(L);const R=g(L,"|");return b(L),R}function B(L,R){let W=null;switch(L.currentChar()){case"{":return R.braceNest>=1&&f(Ct.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),L.next(),W=h(R,2,"{"),b(L),R.braceNest++,W;case"}":return R.braceNest>0&&R.currentType===2&&f(Ct.EMPTY_PLACEHOLDER,s(),0),L.next(),W=h(R,3,"}"),R.braceNest--,R.braceNest>0&&b(L),R.inLinked&&R.braceNest===0&&(R.inLinked=!1),W;case"@":return R.braceNest>0&&f(Ct.UNTERMINATED_CLOSING_BRACE,s(),0),W=Y(L,R)||m(R),R.braceNest=0,W;default:{let Ce=!0,Te=!0,H=!0;if($(L))return R.braceNest>0&&f(Ct.UNTERMINATED_CLOSING_BRACE,s(),0),W=h(R,1,V(L)),R.braceNest=0,R.inLinked=!1,W;if(R.braceNest>0&&(R.currentType===4||R.currentType===5||R.currentType===6))return f(Ct.UNTERMINATED_CLOSING_BRACE,s(),0),R.braceNest=0,Q(L,R);if(Ce=E(L,R))return W=h(R,4,xe(L)),b(L),W;if(Te=I(L,R))return W=h(R,5,Me(L)),b(L),W;if(H=D(L,R))return W=h(R,6,oe(L)),b(L),W;if(!Ce&&!Te&&!H)return W=h(R,12,_e(L)),f(Ct.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,W.value),b(L),W;break}}return W}function Y(L,R){const{currentType:W}=R;let ne=null;const Ce=L.currentChar();switch((W===7||W===8||W===11||W===9)&&(Ce===Zn||Ce===Rr)&&f(Ct.INVALID_LINKED_FORMAT,s(),0),Ce){case"@":return L.next(),ne=h(R,7,"@"),R.inLinked=!0,ne;case".":return b(L),L.next(),h(R,8,".");case":":return b(L),L.next(),h(R,9,":");default:return $(L)?(ne=h(R,1,V(L)),R.braceNest=0,R.inLinked=!1,ne):x(L,R)||A(L,R)?(b(L),Y(L,R)):P(L,R)?(b(L),h(R,11,pe(L))):C(L,R)?(b(L),Ce==="{"?B(L,R)||ne:h(R,10,N(L))):(W===7&&f(Ct.INVALID_LINKED_FORMAT,s(),0),R.braceNest=0,R.inLinked=!1,Q(L,R))}}function Q(L,R){let W={type:13};if(R.braceNest>0)return B(L,R)||m(R);if(R.inLinked)return Y(L,R)||m(R);switch(L.currentChar()){case"{":return B(L,R)||m(R);case"}":return f(Ct.UNBALANCED_CLOSING_BRACE,s(),0),L.next(),h(R,3,"}");case"@":return Y(L,R)||m(R);default:{if($(L))return W=h(R,1,V(L)),R.braceNest=0,R.inLinked=!1,W;if(O(L))return h(R,0,me(L));break}}return W}function ee(){const{currentType:L,offset:R,startLoc:W,endLoc:ne}=l;return l.lastType=L,l.lastOffset=R,l.lastStartLoc=W,l.lastEndLoc=ne,l.offset=r(),l.startLoc=s(),i.currentChar()===ms?h(l,13):Q(i,l)}return{nextToken:ee,currentOffset:r,currentPosition:s,context:u}}const N4="parser",R4=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function F4(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"<22>"}}}function B4(e={}){const t=e.location!==!1,{onError:n}=e;function i(k,w,E,I,...D){const x=k.currentPosition();if(x.offset+=I,x.column+=I,n){const P=t?lg(E,x):null,A=wf(w,P,{domain:N4,args:D});n(A)}}function r(k,w,E){const I={type:k};return t&&(I.start=w,I.end=w,I.loc={start:E,end:E}),I}function s(k,w,E,I){t&&(k.end=w,k.loc&&(k.loc.end=E))}function a(k,w){const E=k.context(),I=r(3,E.offset,E.startLoc);return I.value=w,s(I,k.currentOffset(),k.currentPosition()),I}function o(k,w){const E=k.context(),{lastOffset:I,lastStartLoc:D}=E,x=r(5,I,D);return x.index=parseInt(w,10),k.nextToken(),s(x,k.currentOffset(),k.currentPosition()),x}function l(k,w){const E=k.context(),{lastOffset:I,lastStartLoc:D}=E,x=r(4,I,D);return x.key=w,k.nextToken(),s(x,k.currentOffset(),k.currentPosition()),x}function u(k,w){const E=k.context(),{lastOffset:I,lastStartLoc:D}=E,x=r(9,I,D);return x.value=w.replace(R4,F4),k.nextToken(),s(x,k.currentOffset(),k.currentPosition()),x}function c(k){const w=k.nextToken(),E=k.context(),{lastOffset:I,lastStartLoc:D}=E,x=r(8,I,D);return w.type!==11?(i(k,Ct.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),x.value="",s(x,I,D),{nextConsumeToken:w,node:x}):(w.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,gr(w)),x.value=w.value||"",s(x,k.currentOffset(),k.currentPosition()),{node:x})}function f(k,w){const E=k.context(),I=r(7,E.offset,E.startLoc);return I.value=w,s(I,k.currentOffset(),k.currentPosition()),I}function h(k){const w=k.context(),E=r(6,w.offset,w.startLoc);let I=k.nextToken();if(I.type===8){const D=c(k);E.modifier=D.node,I=D.nextConsumeToken||k.nextToken()}switch(I.type!==9&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(I)),I=k.nextToken(),I.type===2&&(I=k.nextToken()),I.type){case 10:I.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(I)),E.key=f(k,I.value||"");break;case 4:I.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(I)),E.key=l(k,I.value||"");break;case 5:I.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(I)),E.key=o(k,I.value||"");break;case 6:I.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(I)),E.key=u(k,I.value||"");break;default:{i(k,Ct.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const D=k.context(),x=r(7,D.offset,D.startLoc);return x.value="",s(x,D.offset,D.startLoc),E.key=x,s(E,D.offset,D.startLoc),{nextConsumeToken:I,node:E}}}return s(E,k.currentOffset(),k.currentPosition()),{node:E}}function m(k){const w=k.context(),E=w.currentType===1?k.currentOffset():w.offset,I=w.currentType===1?w.endLoc:w.startLoc,D=r(2,E,I);D.items=[];let x=null;do{const C=x||k.nextToken();switch(x=null,C.type){case 0:C.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(C)),D.items.push(a(k,C.value||""));break;case 5:C.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(C)),D.items.push(o(k,C.value||""));break;case 4:C.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(C)),D.items.push(l(k,C.value||""));break;case 6:C.value==null&&i(k,Ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,gr(C)),D.items.push(u(k,C.value||""));break;case 7:{const $=h(k);D.items.push($.node),x=$.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const P=w.currentType===1?w.lastOffset:k.currentOffset(),A=w.currentType===1?w.lastEndLoc:k.currentPosition();return s(D,P,A),D}function g(k,w,E,I){const D=k.context();let x=I.items.length===0;const P=r(1,w,E);P.cases=[],P.cases.push(I);do{const A=m(k);x||(x=A.items.length===0),P.cases.push(A)}while(D.currentType!==13);return x&&i(k,Ct.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),s(P,k.currentOffset(),k.currentPosition()),P}function y(k){const w=k.context(),{offset:E,startLoc:I}=w,D=m(k);return w.currentType===13?D:g(k,E,I,D)}function b(k){const w=L4(k,fn({},e)),E=w.context(),I=r(0,E.offset,E.startLoc);return t&&I.loc&&(I.loc.source=k),I.body=y(w),e.onCacheKey&&(I.cacheKey=e.onCacheKey(k)),E.currentType!==13&&i(w,Ct.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,k[E.offset]||""),s(I,w.currentOffset(),w.currentPosition()),I}return{parse:b}}function gr(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function z4(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Fw(e,t){for(let n=0;n<e.length;n++)vv(e[n],t)}function vv(e,t){switch(e.type){case 1:Fw(e.cases,t),t.helper("plural");break;case 2:Fw(e.items,t);break;case 6:{vv(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function U4(e,t={}){const n=z4(e);n.helper("normalize"),e.body&&vv(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function W4(e){const t=e.body;return t.type===2?Bw(t):t.cases.forEach(n=>Bw(n)),e}function Bw(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(!(i.type===3||i.type===9)||i.value==null)break;t.push(i.value)}if(t.length===e.items.length){e.static=pv(t);for(let n=0;n<e.items.length;n++){const i=e.items[n];(i.type===3||i.type===9)&&delete i.value}}}}function _o(e){switch(e.t=e.type,e.type){case 0:{const t=e;_o(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let i=0;i<n.length;i++)_o(n[i]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let i=0;i<n.length;i++)_o(n[i]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;_o(t.key),t.k=t.key,delete t.key,t.modifier&&(_o(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function H4(e,t){const{filename:n,breakLineCode:i,needIndent:r}=t,s=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const o=()=>a;function l(y,b){a.code+=y}function u(y,b=!0){const k=b?i:"";l(r?k+" ".repeat(y):k)}function c(y=!0){const b=++a.indentLevel;y&&u(b)}function f(y=!0){const b=--a.indentLevel;y&&u(b)}function h(){u(a.indentLevel)}return{context:o,push:l,indent:c,deindent:f,newline:h,helper:y=>`_${y}`,needIndent:()=>a.needIndent}}function j4(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ko(e,t.key),t.modifier?(e.push(", "),Ko(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function G4(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let s=0;s<r&&(Ko(e,t.items[s]),s!==r-1);s++)e.push(", ");e.deindent(i()),e.push("])")}function q4(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let s=0;s<r&&(Ko(e,t.cases[s]),s!==r-1);s++)e.push(", ");e.deindent(i()),e.push("])")}}function K4(e,t){t.body?Ko(e,t.body):e.push("null")}function Ko(e,t){const{helper:n}=e;switch(t.type){case 0:K4(e,t);break;case 1:q4(e,t);break;case 2:G4(e,t);break;case 6:j4(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Y4=(e,t={})=>{const n=Fe(t.mode)?t.mode:"normal",i=Fe(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
`,s=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],o=H4(e,{filename:i,breakLineCode:r,needIndent:s});o.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(s),a.length>0&&(o.push(`const { ${pv(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),o.newline()),o.push("return "),Ko(o,e),o.deindent(s),o.push("}"),delete e.helpers;const{code:l,map:u}=o.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function J4(e,t={}){const n=fn({},t),i=!!n.jit,r=!!n.minify,s=n.optimize==null?!0:n.optimize,o=B4(n).parse(e);return i?(s&&W4(o),r&&_o(o),{ast:o,code:""}):(U4(o,n),Y4(o,n))}/*!
* core-base v10.0.7
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function X4(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function wr(e){return bt(e)&&yv(e)===0&&(nr(e,"b")||nr(e,"body"))}const KT=["b","body"];function Z4(e){return Ks(e,KT)}const YT=["c","cases"];function Q4(e){return Ks(e,YT,[])}const JT=["s","static"];function e8(e){return Ks(e,JT)}const XT=["i","items"];function t8(e){return Ks(e,XT,[])}const ZT=["t","type"];function yv(e){return Ks(e,ZT)}const QT=["v","value"];function Cc(e,t){const n=Ks(e,QT);if(n!=null)return n;throw pu(t)}const eE=["m","modifier"];function n8(e){return Ks(e,eE)}const tE=["k","key"];function i8(e){const t=Ks(e,tE);if(t)return t;throw pu(6)}function Ks(e,t,n){for(let i=0;i<t.length;i++){const r=t[i];if(nr(e,r)&&e[r]!=null)return e[r]}return n}const nE=[...KT,...YT,...JT,...XT,...tE,...eE,...QT,...ZT];function pu(e){return new Error(`unhandled node type: ${e}`)}function em(e){return n=>r8(n,e)}function r8(e,t){const n=Z4(t);if(n==null)throw pu(0);if(yv(n)===1){const s=Q4(n);return e.plural(s.reduce((a,o)=>[...a,zw(e,o)],[]))}else return zw(e,n)}function zw(e,t){const n=e8(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const i=t8(t).reduce((r,s)=>[...r,ug(e,s)],[]);return e.normalize(i)}}function ug(e,t){const n=yv(t);switch(n){case 3:return Cc(t,n);case 9:return Cc(t,n);case 4:{const i=t;if(nr(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(nr(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw pu(n)}case 5:{const i=t;if(nr(i,"i")&&Xt(i.i))return e.interpolate(e.list(i.i));if(nr(i,"index")&&Xt(i.index))return e.interpolate(e.list(i.index));throw pu(n)}case 6:{const i=t,r=n8(i),s=i8(i);return e.linked(ug(e,s),r?ug(e,r):void 0,e.type)}case 7:return Cc(t,n);case 8:return Cc(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const s8=e=>e;let Tc=It();function a8(e,t={}){let n=!1;const i=t.onError||x4;return t.onError=r=>{n=!0,i(r)},{...J4(e,t),detectError:n}}function o8(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fe(e)){yt(t.warnHtmlMessage)&&t.warnHtmlMessage;const i=(t.onCacheKey||s8)(e),r=Tc[i];if(r)return r;const{ast:s,detectError:a}=a8(e,{...t,location:!1,jit:!0}),o=em(s);return a?o:Tc[i]=o}else{const n=e.cacheKey;if(n){const i=Tc[n];return i||(Tc[n]=em(e))}else return em(e)}}let vu=null;function l8(e){vu=e}function u8(e,t,n){vu&&vu.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const c8=d8("function:translate");function d8(e){return t=>vu&&vu.emit(e,t)}const jr={INVALID_ARGUMENT:A4,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},f8=24;function Gr(e){return wf(e,null,void 0)}function bv(e,t){return t.locale!=null?Uw(t.locale):Uw(e.locale)}let tm;function Uw(e){if(Fe(e))return e;if(Ot(e)){if(e.resolvedOnce&&tm!=null)return tm;if(e.constructor.name==="Function"){const t=e();if(C4(t))throw Gr(jr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return tm=t}else throw Gr(jr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gr(jr.NOT_SUPPORT_LOCALE_TYPE)}function h8(e,t,n){return[...new Set([n,...Kt(t)?t:bt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function iE(e,t,n){const i=Fe(n)?n:yu,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(i);if(!s){s=[];let a=[n];for(;Kt(a);)a=Ww(s,a,t);const o=Kt(t)||!at(t)?t:t.default?t.default:null;a=Fe(o)?[o]:o,Kt(a)&&Ww(s,a,!1),r.__localeChainCache.set(i,s)}return s}function Ww(e,t,n){let i=!0;for(let r=0;r<t.length&&yt(i);r++){const s=t[r];Fe(s)&&(i=m8(e,t[r],n))}return i}function m8(e,t,n){let i;const r=t.split("-");do{const s=r.join("-");i=g8(e,s,n),r.splice(-1,1)}while(r.length&&i===!0);return i}function g8(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Kt(n)||at(n))&&n[r]&&(i=n[r])}return i}const Ys=[];Ys[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ys[1]={w:[1],".":[2],"[":[4],o:[7]};Ys[2]={w:[2],i:[3,0],0:[3,0]};Ys[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ys[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ys[5]={"'":[4,0],o:8,l:[5,0]};Ys[6]={'"':[4,0],o:8,l:[6,0]};const p8=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function v8(e){return p8.test(e)}function y8(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function b8(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function k8(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:v8(t)?y8(t):"*"+t}function w8(e){const t=[];let n=-1,i=0,r=0,s,a,o,l,u,c,f;const h=[];h[0]=()=>{a===void 0?a=o:a+=o},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,i=4,h[0]();else{if(r=0,a===void 0||(a=k8(a),a===!1))return!1;h[1]()}};function m(){const g=e[n+1];if(i===5&&g==="'"||i===6&&g==='"')return n++,o="\\"+g,h[0](),!0}for(;i!==null;)if(n++,s=e[n],!(s==="\\"&&m())){if(l=b8(s),f=Ys[i],u=f[l]||f.l||8,u===8||(i=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(o=s,c()===!1))))return;if(i===7)return t}}const Hw=new Map;function S8(e,t){return bt(e)?e[t]:null}function _8(e,t){if(!bt(e))return null;let n=Hw.get(t);if(n||(n=w8(t),n&&Hw.set(t,n)),!n)return null;const i=n.length;let r=e,s=0;for(;s<i;){const a=n[s];if(nE.includes(a)&&wr(r))return null;const o=r[a];if(o===void 0||Ot(r))return null;r=o,s++}return r}const C8="10.0.7",Sf=-1,yu="en-US",jw="",Gw=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function T8(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&bt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&bt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?Gw(e):t==="vnode"&&bt(e)&&"__v_isVNode"in e?Gw(e.children):e}}let rE;function E8(e){rE=e}let sE;function I8(e){sE=e}let aE;function A8(e){aE=e}let oE=null;const x8=e=>{oE=e},D8=()=>oE;let lE=null;const qw=e=>{lE=e},P8=()=>lE;let Kw=0;function O8(e={}){const t=Ot(e.onWarn)?e.onWarn:E4,n=Fe(e.version)?e.version:C8,i=Fe(e.locale)||Ot(e.locale)?e.locale:yu,r=Ot(i)?yu:i,s=Kt(e.fallbackLocale)||at(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=at(e.messages)?e.messages:nm(r),o=at(e.datetimeFormats)?e.datetimeFormats:nm(r),l=at(e.numberFormats)?e.numberFormats:nm(r),u=fn(It(),e.modifiers,T8()),c=e.pluralRules||It(),f=Ot(e.missing)?e.missing:null,h=yt(e.missingWarn)||qo(e.missingWarn)?e.missingWarn:!0,m=yt(e.fallbackWarn)||qo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,y=!!e.unresolving,b=Ot(e.postTranslation)?e.postTranslation:null,k=at(e.processor)?e.processor:null,w=yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,I=Ot(e.messageCompiler)?e.messageCompiler:rE,D=Ot(e.messageResolver)?e.messageResolver:sE||S8,x=Ot(e.localeFallbacker)?e.localeFallbacker:aE||h8,P=bt(e.fallbackContext)?e.fallbackContext:void 0,A=e,C=bt(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,$=bt(A.__numberFormatters)?A.__numberFormatters:new Map,O=bt(A.__meta)?A.__meta:{};Kw++;const M={version:n,cid:Kw,locale:i,fallbackLocale:s,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:y,postTranslation:b,processor:k,warnHtmlMessage:w,escapeParameter:E,messageCompiler:I,messageResolver:D,localeFallbacker:x,fallbackContext:P,onWarn:t,__meta:O};return M.datetimeFormats=o,M.numberFormats=l,M.__datetimeFormatters=C,M.__numberFormatters=$,__INTLIFY_PROD_DEVTOOLS__&&u8(M,n,O),M}const nm=e=>({[e]:It()});function kv(e,t,n,i,r){const{missing:s,onWarn:a}=e;if(s!==null){const o=s(e,n,t,r);return Fe(o)?o:t}else return t}function Al(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function M8(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function $8(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let i=n+1;i<t.length;i++)if(M8(e,t[i]))return!0;return!1}function Yw(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:o}=e,[l,u,c,f]=cg(...t),h=yt(c.missingWarn)?c.missingWarn:e.missingWarn;yt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,g=bv(e,c),y=a(e,r,g);if(!Fe(l)||l==="")return new Intl.DateTimeFormat(g,f).format(u);let b={},k,w=null;const E="datetime format";for(let x=0;x<y.length&&(k=y[x],b=n[k]||{},w=b[l],!at(w));x++)kv(e,l,k,h,E);if(!at(w)||!Fe(k))return i?Sf:l;let I=`${k}__${l}`;kf(f)||(I=`${I}__${JSON.stringify(f)}`);let D=o.get(I);return D||(D=new Intl.DateTimeFormat(k,fn({},w,f)),o.set(I,D)),m?D.formatToParts(u):D.format(u)}const uE=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cg(...e){const[t,n,i,r]=e,s=It();let a=It(),o;if(Fe(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Gr(jr.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(u);try{o.toISOString()}catch{throw Gr(jr.INVALID_ISO_DATE_ARGUMENT)}}else if(w4(t)){if(isNaN(t.getTime()))throw Gr(jr.INVALID_DATE_ARGUMENT);o=t}else if(Xt(t))o=t;else throw Gr(jr.INVALID_ARGUMENT);return Fe(n)?s.key=n:at(n)&&Object.keys(n).forEach(l=>{uE.includes(l)?a[l]=n[l]:s[l]=n[l]}),Fe(i)?s.locale=i:at(i)&&(a=i),at(r)&&(a=r),[s.key||"",o,s,a]}function Jw(e,t,n){const i=e;for(const r in n){const s=`${t}__${r}`;i.__datetimeFormatters.has(s)&&i.__datetimeFormatters.delete(s)}}function Xw(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:o}=e,[l,u,c,f]=dg(...t),h=yt(c.missingWarn)?c.missingWarn:e.missingWarn;yt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,g=bv(e,c),y=a(e,r,g);if(!Fe(l)||l==="")return new Intl.NumberFormat(g,f).format(u);let b={},k,w=null;const E="number format";for(let x=0;x<y.length&&(k=y[x],b=n[k]||{},w=b[l],!at(w));x++)kv(e,l,k,h,E);if(!at(w)||!Fe(k))return i?Sf:l;let I=`${k}__${l}`;kf(f)||(I=`${I}__${JSON.stringify(f)}`);let D=o.get(I);return D||(D=new Intl.NumberFormat(k,fn({},w,f)),o.set(I,D)),m?D.formatToParts(u):D.format(u)}const cE=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dg(...e){const[t,n,i,r]=e,s=It();let a=It();if(!Xt(t))throw Gr(jr.INVALID_ARGUMENT);const o=t;return Fe(n)?s.key=n:at(n)&&Object.keys(n).forEach(l=>{cE.includes(l)?a[l]=n[l]:s[l]=n[l]}),Fe(i)?s.locale=i:at(i)&&(a=i),at(r)&&(a=r),[s.key||"",o,s,a]}function Zw(e,t,n){const i=e;for(const r in n){const s=`${t}__${r}`;i.__numberFormatters.has(s)&&i.__numberFormatters.delete(s)}}const V8=e=>e,L8=e=>"",N8="text",R8=e=>e.length===0?"":pv(e),F8=T4;function Qw(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function B8(e){const t=Xt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Xt(e.named.count)||Xt(e.named.n))?Xt(e.named.count)?e.named.count:Xt(e.named.n)?e.named.n:t:t}function z8(e,t){t.count||(t.count=e),t.n||(t.n=e)}function U8(e={}){const t=e.locale,n=B8(e),i=bt(e.pluralRules)&&Fe(t)&&Ot(e.pluralRules[t])?e.pluralRules[t]:Qw,r=bt(e.pluralRules)&&Fe(t)&&Ot(e.pluralRules[t])?Qw:void 0,s=k=>k[i(n,k.length,r)],a=e.list||[],o=k=>a[k],l=e.named||It();Xt(e.pluralIndex)&&z8(n,l);const u=k=>l[k];function c(k,w){const E=Ot(e.messages)?e.messages(k,!!w):bt(e.messages)?e.messages[k]:!1;return E||(e.parent?e.parent.message(k):L8)}const f=k=>e.modifiers?e.modifiers[k]:V8,h=at(e.processor)&&Ot(e.processor.normalize)?e.processor.normalize:R8,m=at(e.processor)&&Ot(e.processor.interpolate)?e.processor.interpolate:F8,g=at(e.processor)&&Fe(e.processor.type)?e.processor.type:N8,b={list:o,named:u,plural:s,linked:(k,...w)=>{const[E,I]=w;let D="text",x="";w.length===1?bt(E)?(x=E.modifier||x,D=E.type||D):Fe(E)&&(x=E||x):w.length===2&&(Fe(E)&&(x=E||x),Fe(I)&&(D=I||D));const P=c(k,!0)(b),A=D==="vnode"&&Kt(P)&&x?P[0]:P;return x?f(x)(A,D):A},message:c,type:g,interpolate:m,normalize:h,values:fn(It(),a,l)};return b}const e1=()=>"",Li=e=>Ot(e);function t1(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:s,fallbackLocale:a,messages:o}=e,[l,u]=fg(...t),c=yt(u.missingWarn)?u.missingWarn:e.missingWarn,f=yt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=yt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,g=Fe(u.default)||yt(u.default)?yt(u.default)?s?l:()=>l:u.default:n?s?l:()=>l:null,y=n||g!=null&&(Fe(g)||Ot(g)),b=bv(e,u);h&&W8(u);let[k,w,E]=m?[l,b,o[b]||It()]:dE(e,l,b,a,f,c),I=k,D=l;if(!m&&!(Fe(I)||wr(I)||Li(I))&&y&&(I=g,D=I),!m&&(!(Fe(I)||wr(I)||Li(I))||!Fe(w)))return r?Sf:l;let x=!1;const P=()=>{x=!0},A=Li(I)?I:fE(e,l,w,I,D,P);if(x)return I;const C=G8(e,w,E,u),$=U8(C),O=H8(e,A,$),M=i?i(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:Fe(l)?l:Li(I)?I.key:"",locale:w||(Li(I)?I.locale:""),format:Fe(I)?I:Li(I)?I.source:"",message:M};F.meta=fn({},e.__meta,D8()||{}),c8(F)}return M}function W8(e){Kt(e.list)?e.list=e.list.map(t=>Fe(t)?Nw(t):t):bt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=Nw(e.named[t]))})}function dE(e,t,n,i,r,s){const{messages:a,onWarn:o,messageResolver:l,localeFallbacker:u}=e,c=u(e,i,n);let f=It(),h,m=null;const g="translate";for(let y=0;y<c.length&&(h=c[y],f=a[h]||It(),(m=l(f,t))===null&&(m=f[t]),!(Fe(m)||wr(m)||Li(m)));y++)if(!$8(h,c)){const b=kv(e,t,h,s,g);b!==t&&(m=b)}return[m,h,f]}function fE(e,t,n,i,r,s){const{messageCompiler:a,warnHtmlMessage:o}=e;if(Li(i)){const u=i;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=()=>i;return u.locale=n,u.key=t,u}const l=a(i,j8(e,n,r,i,o,s));return l.locale=n,l.key=t,l.source=i,l}function H8(e,t,n){return t(n)}function fg(...e){const[t,n,i]=e,r=It();if(!Fe(t)&&!Xt(t)&&!Li(t)&&!wr(t))throw Gr(jr.INVALID_ARGUMENT);const s=Xt(t)?String(t):(Li(t),t);return Xt(n)?r.plural=n:Fe(n)?r.default=n:at(n)&&!kf(n)?r.named=n:Kt(n)&&(r.list=n),Xt(i)?r.plural=i:Fe(i)?r.default=i:at(i)&&fn(r,i),[s,r]}function j8(e,t,n,i,r,s){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw s&&s(a),a},onCacheKey:a=>b4(t,n,a)}}function G8(e,t,n,i){const{modifiers:r,pluralRules:s,messageResolver:a,fallbackLocale:o,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:r,pluralRules:s,messages:(m,g)=>{let y=a(n,m);if(y==null&&(c||g)){const[,,b]=dE(c||e,m,t,o,l,u);y=a(b,m)}if(Fe(y)||wr(y)){let b=!1;const w=fE(e,m,t,y,m,()=>{b=!0});return b?e1:w}else return Li(y)?y:e1}};return e.processor&&(h.processor=e.processor),i.list&&(h.list=i.list),i.named&&(h.named=i.named),Xt(i.plural)&&(h.pluralIndex=i.plural),h}X4();/*!
* vue-i18n v10.0.7
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const q8="10.0.7";function K8(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ha().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ha().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1)}const ai={UNEXPECTED_RETURN_TYPE:f8,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function gi(e,...t){return wf(e,null,void 0)}const hg=qs("__translateVNode"),mg=qs("__datetimeParts"),gg=qs("__numberParts"),hE=qs("__setPluralRules"),mE=qs("__injectWithOption"),pg=qs("__dispose");function bu(e){if(!bt(e)||wr(e))return e;for(const t in e)if(nr(e,t))if(!t.includes("."))bt(e[t])&&bu(e[t]);else{const n=t.split("."),i=n.length-1;let r=e,s=!1;for(let a=0;a<i;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=It()),!bt(r[n[a]])){s=!0;break}r=r[n[a]]}if(s||(wr(r)?nE.includes(n[i])||delete e[t]:(r[n[i]]=e[t],delete e[t])),!wr(r)){const a=r[n[i]];bt(a)&&bu(a)}}return e}function wv(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:s}=t,a=at(n)?n:Kt(i)?It():{[e]:It()};if(Kt(i)&&i.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:u}=o;l?(a[l]=a[l]||It(),jc(u,a[l])):jc(u,a)}else Fe(o)&&jc(JSON.parse(o),a)}),r==null&&s)for(const o in a)nr(a,o)&&bu(a[o]);return a}function gE(e){return e.type}function pE(e,t,n){let i=bt(t.messages)?t.messages:It();"__i18nGlobal"in n&&(i=wv(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(bt(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(bt(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function n1(e){return v(tl,null,e,0)}const i1="__INTLIFY_META__",r1=()=>[],Y8=()=>!1;let s1=0;function a1(e){return(t,n,i,r)=>e(n,i,Xr()||void 0,r)}const J8=()=>{const e=Xr();let t=null;return e&&(t=gE(e)[i1])?{[i1]:t}:null};function Sv(e={}){const{__root:t,__injectWithOption:n}=e,i=t===void 0,r=e.flatJson,s=Cd?ke:Ae;let a=yt(e.inheritLocale)?e.inheritLocale:!0;const o=s(t&&a?t.locale.value:Fe(e.locale)?e.locale:yu),l=s(t&&a?t.fallbackLocale.value:Fe(e.fallbackLocale)||Kt(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),u=s(wv(o.value,e)),c=s(at(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),f=s(at(e.numberFormats)?e.numberFormats:{[o.value]:{}});let h=t?t.missingWarn:yt(e.missingWarn)||qo(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:yt(e.fallbackWarn)||qo(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:yt(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,b=Ot(e.missing)?e.missing:null,k=Ot(e.missing)?a1(e.missing):null,w=Ot(e.postTranslation)?e.postTranslation:null,E=t?t.warnHtmlMessage:yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const D=t?t.modifiers:at(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,P;P=(()=>{i&&qw(null);const H={version:q8,locale:o.value,fallbackLocale:l.value,messages:u.value,modifiers:D,pluralRules:x,missing:k===null?void 0:k,missingWarn:h,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:E,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};H.datetimeFormats=c.value,H.numberFormats=f.value,H.__datetimeFormatters=at(P)?P.__datetimeFormatters:void 0,H.__numberFormatters=at(P)?P.__numberFormatters:void 0;const ue=O8(H);return i&&qw(ue),ue})(),Al(P,o.value,l.value);function C(){return[o.value,l.value,u.value,c.value,f.value]}const $=T({get:()=>o.value,set:H=>{o.value=H,P.locale=o.value}}),O=T({get:()=>l.value,set:H=>{l.value=H,P.fallbackLocale=l.value,Al(P,o.value,H)}}),M=T(()=>u.value),F=T(()=>c.value),z=T(()=>f.value);function re(){return Ot(w)?w:null}function le(H){w=H,P.postTranslation=H}function ve(){return b}function ye(H){H!==null&&(k=a1(H)),b=H,P.missing=k}const Z=(H,ue,Ne,Je,rt,zt)=>{C();let jt;try{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=t?P8():void 0),jt=H(P)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=void 0)}if(Ne!=="translate exists"&&Xt(jt)&&jt===Sf||Ne==="translate exists"&&!jt){const[Zi,us]=ue();return t&&g?Je(t):rt(Zi)}else{if(zt(jt))return jt;throw gi(ai.UNEXPECTED_RETURN_TYPE)}};function J(...H){return Z(ue=>Reflect.apply(t1,null,[ue,...H]),()=>fg(...H),"translate",ue=>Reflect.apply(ue.t,ue,[...H]),ue=>ue,ue=>Fe(ue))}function K(...H){const[ue,Ne,Je]=H;if(Je&&!bt(Je))throw gi(ai.INVALID_ARGUMENT);return J(ue,Ne,fn({resolvedMessage:!0},Je||{}))}function me(...H){return Z(ue=>Reflect.apply(Yw,null,[ue,...H]),()=>cg(...H),"datetime format",ue=>Reflect.apply(ue.d,ue,[...H]),()=>jw,ue=>Fe(ue))}function xe(...H){return Z(ue=>Reflect.apply(Xw,null,[ue,...H]),()=>dg(...H),"number format",ue=>Reflect.apply(ue.n,ue,[...H]),()=>jw,ue=>Fe(ue))}function Me(H){return H.map(ue=>Fe(ue)||Xt(ue)||yt(ue)?n1(String(ue)):ue)}const oe={normalize:Me,interpolate:H=>H,type:"vnode"};function q(...H){return Z(ue=>{let Ne;const Je=ue;try{Je.processor=oe,Ne=Reflect.apply(t1,null,[Je,...H])}finally{Je.processor=null}return Ne},()=>fg(...H),"translate",ue=>ue[hg](...H),ue=>[n1(ue)],ue=>Kt(ue))}function de(...H){return Z(ue=>Reflect.apply(Xw,null,[ue,...H]),()=>dg(...H),"number format",ue=>ue[gg](...H),r1,ue=>Fe(ue)||Kt(ue))}function Se(...H){return Z(ue=>Reflect.apply(Yw,null,[ue,...H]),()=>cg(...H),"datetime format",ue=>ue[mg](...H),r1,ue=>Fe(ue)||Kt(ue))}function _e(H){x=H,P.pluralRules=x}function pe(H,ue){return Z(()=>{if(!H)return!1;const Ne=Fe(ue)?ue:o.value,Je=B(Ne),rt=P.messageResolver(Je,H);return wr(rt)||Li(rt)||Fe(rt)},()=>[H],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[H,ue]),Y8,Ne=>yt(Ne))}function N(H){let ue=null;const Ne=iE(P,l.value,o.value);for(let Je=0;Je<Ne.length;Je++){const rt=u.value[Ne[Je]]||{},zt=P.messageResolver(rt,H);if(zt!=null){ue=zt;break}}return ue}function V(H){const ue=N(H);return ue??(t?t.tm(H)||{}:{})}function B(H){return u.value[H]||{}}function Y(H,ue){if(r){const Ne={[H]:ue};for(const Je in Ne)nr(Ne,Je)&&bu(Ne[Je]);ue=Ne[H]}u.value[H]=ue,P.messages=u.value}function Q(H,ue){u.value[H]=u.value[H]||{};const Ne={[H]:ue};if(r)for(const Je in Ne)nr(Ne,Je)&&bu(Ne[Je]);ue=Ne[H],jc(ue,u.value[H]),P.messages=u.value}function ee(H){return c.value[H]||{}}function L(H,ue){c.value[H]=ue,P.datetimeFormats=c.value,Jw(P,H,ue)}function R(H,ue){c.value[H]=fn(c.value[H]||{},ue),P.datetimeFormats=c.value,Jw(P,H,ue)}function W(H){return f.value[H]||{}}function ne(H,ue){f.value[H]=ue,P.numberFormats=f.value,Zw(P,H,ue)}function Ce(H,ue){f.value[H]=fn(f.value[H]||{},ue),P.numberFormats=f.value,Zw(P,H,ue)}s1++,t&&Cd&&(Ie(t.locale,H=>{a&&(o.value=H,P.locale=H,Al(P,o.value,l.value))}),Ie(t.fallbackLocale,H=>{a&&(l.value=H,P.fallbackLocale=H,Al(P,o.value,l.value))}));const Te={id:s1,locale:$,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(H){a=H,H&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,Al(P,o.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:M,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return i},get missingWarn(){return h},set missingWarn(H){h=H,P.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(H){m=H,P.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(H){g=H},get fallbackFormat(){return y},set fallbackFormat(H){y=H,P.fallbackFormat=y},get warnHtmlMessage(){return E},set warnHtmlMessage(H){E=H,P.warnHtmlMessage=H},get escapeParameter(){return I},set escapeParameter(H){I=H,P.escapeParameter=H},t:J,getLocaleMessage:B,setLocaleMessage:Y,mergeLocaleMessage:Q,getPostTranslationHandler:re,setPostTranslationHandler:le,getMissingHandler:ve,setMissingHandler:ye,[hE]:_e};return Te.datetimeFormats=F,Te.numberFormats=z,Te.rt=K,Te.te=pe,Te.tm=V,Te.d=me,Te.n=xe,Te.getDateTimeFormat=ee,Te.setDateTimeFormat=L,Te.mergeDateTimeFormat=R,Te.getNumberFormat=W,Te.setNumberFormat=ne,Te.mergeNumberFormat=Ce,Te[mE]=n,Te[hg]=q,Te[mg]=Se,Te[gg]=de,Te}function X8(e){const t=Fe(e.locale)?e.locale:yu,n=Fe(e.fallbackLocale)||Kt(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=Ot(e.missing)?e.missing:void 0,r=yt(e.silentTranslationWarn)||qo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=yt(e.silentFallbackWarn)||qo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=yt(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,l=at(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Ot(e.postTranslation)?e.postTranslation:void 0,f=Fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,m=yt(e.sync)?e.sync:!0;let g=e.messages;if(at(e.sharedMessages)){const D=e.sharedMessages;g=Object.keys(D).reduce((P,A)=>{const C=P[A]||(P[A]={});return fn(C,D[A]),P},g||{})}const{__i18n:y,__root:b,__injectWithOption:k}=e,w=e.datetimeFormats,E=e.numberFormats,I=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:I,datetimeFormats:w,numberFormats:E,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:a,fallbackFormat:o,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,__i18n:y,__root:b,__injectWithOption:k}}function vg(e={}){const t=Sv(X8(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return yt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=yt(r)?!r:r},get silentFallbackWarn(){return yt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=yt(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},tc(...r){const[s,a,o]=r,l={plural:1};let u=null,c=null;if(!Fe(s))throw gi(ai.INVALID_ARGUMENT);const f=s;return Fe(a)?l.locale=a:Xt(a)?l.plural=a:Kt(a)?u=a:at(a)&&(c=a),Fe(o)?l.locale=o:Kt(o)?u=o:at(o)&&(c=o),Reflect.apply(t.t,t,[f,u||c||{},l])},te(r,s){return t.te(r,s)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,s){t.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){t.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,s){t.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){t.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,s){t.setNumberFormat(r,s)},mergeNumberFormat(r,s){t.mergeNumberFormat(r,s)}};return i.__extender=n,i}function Z8(e,t,n){return{beforeCreate(){const i=Xr();if(!i)throw gi(ai.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=t,this===this.$root)this.$i18n=o1(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=vg(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=o1(e,r);else{this.$i18n=vg({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&pE(t,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=Xr();if(!i)throw gi(ai.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(i),delete this.$i18n}}}function o1(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[hE](t.pluralizationRules||e.pluralizationRules);const n=wv(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const _v={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Q8({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===U?r.children:[r]],[]):t.reduce((n,i)=>{const r=e[i];return r&&(n[i]=r()),n},It())}function vE(){return U}const ej=ja({name:"i18n-t",props:fn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Xt(e)||!isNaN(e)}},_v),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||_f({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),a=It();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Fe(e.plural)?+e.plural:e.plural);const o=Q8(t,s),l=r[hg](e.keypath,o,a),u=fn(It(),i),c=Fe(e.tag)||bt(e.tag)?e.tag:vE();return pi(c,u,l)}}}),l1=ej;function tj(e){return Kt(e)&&!Fe(e[0])}function yE(e,t,n,i){const{slots:r,attrs:s}=t;return()=>{const a={part:!0};let o=It();e.locale&&(a.locale=e.locale),Fe(e.format)?a.key=e.format:bt(e.format)&&(Fe(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((h,m)=>n.includes(m)?fn(It(),h,{[m]:e.format[m]}):h,It()));const l=i(e.value,a,o);let u=[a.key];Kt(l)?u=l.map((h,m)=>{const g=r[h.type],y=g?g({[h.type]:h.value,index:m,parts:l}):[h.value];return tj(y)&&(y[0].key=`${h.type}-${m}`),y}):Fe(l)&&(u=[l]);const c=fn(It(),s),f=Fe(e.tag)||bt(e.tag)?e.tag:vE();return pi(f,c,u)}}const nj=ja({name:"i18n-n",props:fn({value:{type:Number,required:!0},format:{type:[String,Object]}},_v),setup(e,t){const n=e.i18n||_f({useScope:e.scope,__useComponent:!0});return yE(e,t,cE,(...i)=>n[gg](...i))}}),u1=nj,ij=ja({name:"i18n-d",props:fn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},_v),setup(e,t){const n=e.i18n||_f({useScope:e.scope,__useComponent:!0});return yE(e,t,uE,(...i)=>n[mg](...i))}}),c1=ij;function rj(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function sj(e){const t=a=>{const{instance:o,value:l}=a;if(!o||!o.$)throw gi(ai.UNEXPECTED_ERROR);const u=rj(e,o.$),c=d1(l);return[Reflect.apply(u.t,u,[...f1(c)]),u]};return{created:(a,o)=>{const[l,u]=t(o);Cd&&e.global===u&&(a.__i18nWatcher=Ie(u.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{Cd&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const l=a.__composer,u=d1(o);a.textContent=Reflect.apply(l.t,l,[...f1(u)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function d1(e){if(Fe(e))return{path:e};if(at(e)){if(!("path"in e))throw gi(ai.REQUIRED_VALUE,"path");return e}else throw gi(ai.INVALID_VALUE)}function f1(e){const{path:t,locale:n,args:i,choice:r,plural:s}=e,a={},o=i||{};return Fe(n)&&(a.locale=n),Xt(r)&&(a.plural=r),Xt(s)&&(a.plural=s),[t,o,a]}function aj(e,t,...n){const i=at(n[0])?n[0]:{};(yt(i.globalInstall)?i.globalInstall:!0)&&([l1.name,"I18nT"].forEach(s=>e.component(s,l1)),[u1.name,"I18nN"].forEach(s=>e.component(s,u1)),[c1.name,"I18nD"].forEach(s=>e.component(s,c1))),e.directive("t",sj(t))}const oj=qs("global-vue-i18n");function lj(e={},t){const n=__VUE_I18N_LEGACY_API__&&yt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=yt(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,a]=uj(e,n),o=qs("");function l(h){return r.get(h)||null}function u(h,m){r.set(h,m)}function c(h){r.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(h,...m){if(h.__VUE_I18N_SYMBOL__=o,h.provide(h.__VUE_I18N_SYMBOL__,f),at(m[0])){const b=m[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let g=null;!n&&i&&(g=vj(h,f.global)),__VUE_I18N_FULL_INSTALL__&&aj(h,f,...m),__VUE_I18N_LEGACY_API__&&n&&h.mixin(Z8(a,a.__composer,f));const y=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),y()}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function _f(e={}){const t=Xr();if(t==null)throw gi(ai.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw gi(ai.NOT_INSTALLED);const n=cj(t),i=fj(n),r=gE(t),s=dj(e,r);if(s==="global")return pE(i,e,r),i;if(s==="parent"){let l=hj(n,t,e.__useComponent);return l==null&&(l=i),l}const a=n;let o=a.__getInstance(t);if(o==null){const l=fn({},e);"__i18n"in r&&(l.__i18n=r.__i18n),i&&(l.__root=i),o=Sv(l),a.__composerExtend&&(o[pg]=a.__composerExtend(o)),gj(a,t,o),a.__setInstance(t,o)}return o}function uj(e,t,n){const i=Mu(),r=__VUE_I18N_LEGACY_API__&&t?i.run(()=>vg(e)):i.run(()=>Sv(e));if(r==null)throw gi(ai.UNEXPECTED_ERROR);return[i,r]}function cj(e){const t=Ze(e.isCE?oj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw gi(e.isCE?ai.NOT_INSTALLED_WITH_PROVIDE:ai.UNEXPECTED_ERROR);return t}function dj(e,t){return kf(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fj(e){return e.mode==="composition"?e.global:e.global.__composer}function hj(e,t,n=!1){let i=null;const r=t.root;let s=mj(t,n);for(;s!=null;){const a=e;if(e.mode==="composition")i=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(s);o!=null&&(i=o.__composer,n&&i&&!i[mE]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function mj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gj(e,t,n){En(()=>{},t),Hd(()=>{const i=n;e.__deleteInstance(t);const r=i[pg];r&&(r(),delete i[pg])},t)}const pj=["locale","fallbackLocale","availableLocales"],h1=["t","rt","d","n","tm","te"];function vj(e,t){const n=Object.create(null);return pj.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw gi(ai.UNEXPECTED_ERROR);const a=Ut(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,h1.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw gi(ai.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,h1.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}K8();E8(o8);I8(_8);A8(iE);if(__INTLIFY_PROD_DEVTOOLS__){const e=ha();e.__INTLIFY__=!0,l8(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function yj(e){const{t}=_f(),n=t("general.datetimelong","yyyy-MM-dd HH:mm:ss"),i=new Date(e);return v4(i,n)}const bj={name:"AdminContactsView",data(){return{contacts:[]}},mounted(){this.getContacts()},methods:{formatDateTimeLong:yj,async getContacts(){try{const e=await X.get("/api/admin/opencontacts");this.contacts=e.data}catch(e){this.$root.$refs.errorDialog.open(`tr:error.${e.response.data.error}`)}},async openRequest(e){this.$root.$refs.answerContactDialog.open(e)},async finishRequest(e){await X.get("/api/admin/opencontacts/finish/${contact.id}")}}},kj=["onClick"],wj=["onClick"];function Sj(e,t,n,i,r,s){return S(),_("div",null,[d("h2",null,p(e.$t("admin.contacts.title")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("admin.contacts.date")),1),d("th",null,p(e.$t("admin.contacts.from")),1),d("th",null,p(e.$t("admin.contacts.actions")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.contacts,a=>(S(),_("tr",null,[d("td",null,p(s.formatDateTimeLong(a.createdAt)),1),d("td",null,p(a.email),1),d("td",null,[d("button",{onClick:o=>s.openRequest(a)},p(e.$t("admin.contacts.open")),9,kj),d("button",{onClick:o=>s.finishRequest(a)},p(e.$t("admin.contacts.finished")),9,wj)])]))),256))])])])}const _j=Oe(bj,[["render",Sj]]),Cj={name:"RoomDialog",components:{DialogWidget:hn},props:{modelValue:Boolean,room:Object},data(){return{dialog:null,localRoom:this.room?{...this.room}:{title:"",isPublic:!0},roomTypes:[],genderRestrictions:[],userRights:[],showGenderRestriction:!!(this.room&&this.room.genderRestrictionId),showMinAge:!!(this.room&&this.room.minAge),showMaxAge:!!(this.room&&this.room.maxAge),showPassword:!!(this.room&&this.room.password),showRequiredUserRight:!!(this.room&&this.room.requiredUserRightId),buttons:[{text:"Ok",action:()=>this.save()},{text:"Cancel",action:()=>this.closeDialog()}]}},watch:{room:{handler(e){this.localRoom=e?{...e}:{title:"",isPublic:!0},this.showGenderRestriction=!!(e&&e.genderRestrictionId),this.showMinAge=!!(e&&e.minAge),this.showMaxAge=!!(e&&e.maxAge),this.showPassword=!!(e&&e.password),this.showRequiredUserRight=!!(e&&e.requiredUserRightId)},immediate:!0}},mounted(){this.dialog=this.$refs.dialog,this.fetchRoomTypes(),this.fetchGenderRestrictions(),this.fetchUserRights()},methods:{async fetchRoomTypes(){const e=await X.get("/api/admin/chat/room-types");this.roomTypes=e.data},async fetchGenderRestrictions(){const e=await X.get("/api/admin/chat/gender-restrictions");this.genderRestrictions=e.data},async fetchUserRights(){const e=await X.get("/api/admin/chat/user-rights");this.userRights=e.data},async open(e){await Promise.all([this.fetchRoomTypes(),this.fetchGenderRestrictions(),this.fetchUserRights()]),this.localRoom=e?{...e}:{title:"",isPublic:!0},this.dialog.open()},closeDialog(){this.dialog.close()},save(){this.$emit("save",this.localRoom),this.closeDialog()}}},Tj=["value"],Ej={key:0},Ij=["value"],Aj={key:1},xj={key:2},Dj={key:3},Pj={key:4},Oj=["value"];function Mj(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:e.$t(n.room&&n.room.id?"admin.chatrooms.edit":"admin.chatrooms.create"),"show-close":!0,buttons:r.buttons,name:"RoomDialog",modal:!0,isTitleTranslated:!0,onClose:s.closeDialog},{default:ze(()=>[d("form",{class:"dialog-form",onSubmit:t[14]||(t[14]=ut((...o)=>s.save&&s.save(...o),["prevent"]))},[d("label",null,[ge(p(e.$t("admin.chatrooms.roomName"))+" ",1),ie(d("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>r.localRoom.title=o),required:""},null,512),[[Le,r.localRoom.title]])]),d("label",null,[ge(p(e.$t("admin.chatrooms.type"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.localRoom.roomTypeId=o),required:""},[(S(!0),_(U,null,we(r.roomTypes,o=>(S(),_("option",{key:o.id,value:o.id},p(e.$t(`admin.chatrooms.roomtype.${o.tr}`)),9,Tj))),128))],512),[[Et,r.localRoom.roomTypeId]])]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=o=>r.localRoom.isPublic=o)},null,512),[[Nt,r.localRoom.isPublic]]),ge(" "+p(e.$t("admin.chatrooms.isPublic")),1)]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>r.showGenderRestriction=o)},null,512),[[Nt,r.showGenderRestriction]]),ge(" "+p(e.$t("admin.chatrooms.genderRestriction.show")),1)]),r.showGenderRestriction?(S(),_("label",Ej,[ge(p(e.$t("admin.chatrooms.genderRestriction.label"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[4]||(t[4]=o=>r.localRoom.genderRestrictionId=o)},[(S(!0),_(U,null,we(r.genderRestrictions,o=>(S(),_("option",{key:o.id,value:o.id},p(e.$t(`gender.${o.value}`)),9,Ij))),128))],512),[[Et,r.localRoom.genderRestrictionId]])])):te("",!0),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[5]||(t[5]=o=>r.showMinAge=o)},null,512),[[Nt,r.showMinAge]]),ge(" "+p(e.$t("admin.chatrooms.minAge.show")),1)]),r.showMinAge?(S(),_("label",Aj,[ge(p(e.$t("admin.chatrooms.minAge.label"))+" ",1),ie(d("input",{"onUpdate:modelValue":t[6]||(t[6]=o=>r.localRoom.minAge=o),type:"number"},null,512),[[Le,r.localRoom.minAge,void 0,{number:!0}]])])):te("",!0),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[7]||(t[7]=o=>r.showMaxAge=o)},null,512),[[Nt,r.showMaxAge]]),ge(" "+p(e.$t("admin.chatrooms.maxAge.show")),1)]),r.showMaxAge?(S(),_("label",xj,[ge(p(e.$t("admin.chatrooms.maxAge.label"))+" ",1),ie(d("input",{"onUpdate:modelValue":t[8]||(t[8]=o=>r.localRoom.maxAge=o),type:"number"},null,512),[[Le,r.localRoom.maxAge,void 0,{number:!0}]])])):te("",!0),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[9]||(t[9]=o=>r.showPassword=o)},null,512),[[Nt,r.showPassword]]),ge(" "+p(e.$t("admin.chatrooms.password.show")),1)]),r.showPassword?(S(),_("label",Dj,[ge(p(e.$t("admin.chatrooms.password.label"))+" ",1),ie(d("input",{"onUpdate:modelValue":t[10]||(t[10]=o=>r.localRoom.password=o),type:"password"},null,512),[[Le,r.localRoom.password]])])):te("",!0),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[11]||(t[11]=o=>r.localRoom.friendsOfOwnerOnly=o)},null,512),[[Nt,r.localRoom.friendsOfOwnerOnly]]),ge(" "+p(e.$t("admin.chatrooms.friendsOfOwnerOnly")),1)]),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=o=>r.showRequiredUserRight=o)},null,512),[[Nt,r.showRequiredUserRight]]),ge(" "+p(e.$t("admin.chatrooms.requiredUserRight.show")),1)]),r.showRequiredUserRight?(S(),_("label",Pj,[ge(p(e.$t("admin.chatrooms.requiredUserRight.label"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[13]||(t[13]=o=>r.localRoom.requiredUserRightId=o)},[(S(!0),_(U,null,we(r.userRights,o=>(S(),_("option",{key:o.id,value:o.id},p(e.$t(`admin.chatrooms.rights.${o.tr}`)),9,Oj))),128))],512),[[Et,r.localRoom.requiredUserRightId]])])):te("",!0)],32)]),_:1},8,["title","buttons","onClose"])}const $j=Oe(Cj,[["render",Mj],["__scopeId","data-v-29d7d208"]]),Vj={name:"RoomsView",components:{RoomDialog:$j,ChooseDialog:rf},data(){return{rooms:[],selectedRoom:null}},mounted(){this.fetchRooms()},methods:{openCreateDialog(){this.selectedRoom=null,this.$refs.roomDialog.open()},editRoom(e){this.selectedRoom={...e},this.$refs.roomDialog.open(this.selectedRoom)},async deleteRoom(e){!e.id||!await this.$refs.chooseDialog.open({title:this.$t("common.confirm"),message:this.$t("admin.chatrooms.confirmDelete")})||(await X.delete(`/api/admin/chat/rooms/${e.id}`),this.fetchRooms())},async fetchRooms(){const e=await X.get("/api/admin/chat/rooms");this.rooms=e.data},async saveRoom(e){const{id:t,ownerId:n,passwordHash:i,roomType:r,genderRestriction:s,...a}=e;e.id?await X.put(`/api/admin/chat/rooms/${e.id}`,a):await X.post("/api/admin/chat/rooms",a),this.fetchRooms()}}},Lj={class:"admin-chat-rooms"},Nj={class:"rooms-table"},Rj=["onClick"],Fj=["onClick"];function Bj(e,t,n,i,r,s){const a=be("RoomDialog"),o=be("ChooseDialog");return S(),_("div",Lj,[d("h2",null,p(e.$t("admin.chatrooms.title")),1),d("button",{class:"create-btn",onClick:t[0]||(t[0]=(...l)=>s.openCreateDialog&&s.openCreateDialog(...l))},p(e.$t("admin.chatrooms.create")),1),d("table",Nj,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("admin.chatrooms.roomName")),1),d("th",null,p(e.$t("admin.chatrooms.type")),1),d("th",null,p(e.$t("admin.chatrooms.isPublic")),1),d("th",null,p(e.$t("admin.chatrooms.actions")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.rooms,l=>(S(),_("tr",{key:l.id},[d("td",null,p(l.title),1),d("td",null,p(l.roomTypeTr||l.roomTypeId),1),d("td",null,p(l.isPublic?e.$t("common.yes"):e.$t("common.no")),1),d("td",null,[d("button",{onClick:u=>s.editRoom(l)},p(e.$t("common.edit")),9,Rj),d("button",{onClick:u=>s.deleteRoom(l)},p(e.$t("common.delete")),9,Fj)])]))),128))])]),v(a,{ref:"roomDialog",room:r.selectedRoom,onSave:s.saveRoom},null,8,["room","onSave"]),v(o,{ref:"chooseDialog"},null,512)])}const zj=Oe(Vj,[["render",Bj],["__scopeId","data-v-51e9d880"]]),Uj={name:"ForumsAdminView",components:{ChooseDialog:rf,Multiselect:is},data(){return{forums:[],newForum:{name:"",permissions:[]},permissionsOptions:[{value:"all",label:this.$t("forum.permissions.all")},{value:"admin",label:this.$t("forum.permissions.admin")},{value:"teammember",label:this.$t("forum.permissions.teammember")},{value:"user",label:this.$t("forum.permissions.user")},{value:"age",label:this.$t("forum.permissions.age")}],inEdit:!1}},methods:{async loadForums(){try{const e=await X.get("/api/forum");this.forums=e.data}catch(e){console.error("Error loading forums:",e)}},async submitNewForum(){try{await X.post("/api/forum",{name:this.newForum.name,permissions:this.newForum.permissions}),this.newForum.name="",this.newForum.permissions=[],this.loadForums()}catch(e){console.error("Error creating forum:",e)}},editForum(e){this.inEdit=!0,this.newForum.name=e.name,this.newForum.permissions=e.permissions},toggleToNewForum(){this.inEdit=!1,this.newForum.name="",this.newForum.permissions=""},async deleteForum(e){try{await X.delete(`/api/forum/${e.id}`),this.loadForums()}catch(t){console.error("Error deleting forum:",t)}},async confirmDelete(e){await this.$refs.confirmDialog.open({title:this.$t("admin.forum.confirmDeleteTitle"),message:this.$t("admin.forum.confirmDeleteMessage",{forumName:e.name})})&&this.deleteForum(e)}},mounted(){this.loadForums()}},Wj={class:"forums-admin"},Hj={class:"forum-list"},jj={class:"forum-info"},Gj=["onClick"],qj=["onClick"],Kj={class:"create-forum"},Yj={key:0},Jj={key:1},Xj={for:"name"},Zj={for:"permissions"},Qj={type:"submit",class:"btn btn-primary"};function e6(e,t,n,i,r,s){const a=be("multiselect"),o=be("choose-dialog");return S(),_("div",Wj,[d("h2",null,p(e.$t("admin.forum.title")),1),d("div",Hj,[d("h3",null,p(e.$t("admin.forum.currentForums")),1),d("ul",null,[(S(!0),_(U,null,we(r.forums,l=>(S(),_("li",{key:l.id,class:"forum-item"},[d("div",jj,[d("strong",null,p(l.name),1),d("button",{onClick:u=>s.editForum(l),class:"btn btn-sm"},p(e.$t("admin.forum.edit")),9,Gj),d("button",{onClick:u=>s.confirmDelete(l),class:"btn btn-sm btn-danger"},p(e.$t("admin.forum.delete")),9,qj)])]))),128))])]),d("div",Kj,[r.inEdit?(S(),_("h3",Jj,p(e.$t("admin.forum.editForum")),1)):(S(),_("h3",Yj,p(e.$t("admin.forum.createForum")),1)),r.inEdit?(S(),_("button",{key:2,onClick:t[0]||(t[0]=(...l)=>s.toggleToNewForum&&s.toggleToNewForum(...l))},p(e.$t("admin.forum.toggleToNewForum")),1)):te("",!0),d("form",{onSubmit:t[3]||(t[3]=ut((...l)=>s.submitNewForum&&s.submitNewForum(...l),["prevent"]))},[d("div",null,[d("label",Xj,p(e.$t("admin.forum.forumName")),1),ie(d("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>r.newForum.name=l),id:"name",type:"text",required:""},null,512),[[Le,r.newForum.name]])]),d("div",null,[d("label",Zj,p(e.$t("admin.forum.permissions.label")),1),v(a,{modelValue:r.newForum.permissions,"onUpdate:modelValue":t[2]||(t[2]=l=>r.newForum.permissions=l),options:r.permissionsOptions,multiple:!0,"close-on-select":!1,"clear-on-select":!1,"preserve-search":!0,placeholder:e.$t("admin.forum.selectPermissions"),label:"label","track-by":"value"},{option:ze(l=>[ge(p(e.$t(`admin.${l.option.label}`)),1)]),tag:ze(l=>[d("span",null,p(e.$t(`admin.${l.option.label}`)),1)]),_:1},8,["modelValue","options","placeholder"])]),d("button",Qj,p(e.$t("admin.forum.create")),1)],32)]),v(o,{ref:"confirmDialog"},null,512)])}const t6=Oe(Uj,[["render",e6],["__scopeId","data-v-b5739d43"]]),n6={name:"AdminFalukantEditUserView",data(){return{user:{username:"",characterName:""},users:[],editableUser:null,age:null,originalAge:null,originalUser:null,titles:[]}},computed:{...or("falukant",["user"])},async mounted(){const e=await X.get("/api/falukant/nobility/titels");this.titles=e.data},methods:{async searchUser(){const e=await X.post("/api/admin/falukant/searchuser",{userName:this.user.username,characterName:this.user.characterName});this.users=e.data},async selectUser(e){const t=await X.get(`/api/admin/falukant/getuser/${e.id}`);this.editableUser=t.data,this.originalUser=JSON.parse(JSON.stringify(this.editableUser)),this.age=Math.floor((Date.now()-new Date(this.editableUser.falukantData[0].character.birthdate))/(24*60*60*1e3)),this.originalAge=this.age,this.users=[]},async saveUser(){const e={id:this.editableUser.falukantData[0].id};this.editableUser.falukantData[0].money!=this.originalUser.falukantData[0].money&&(e.money=this.editableUser.falukantData[0].money),this.editableUser.falukantData[0].character.title_of_nobility!=this.originalUser.falukantData[0].character.title_of_nobility&&(e.title_of_nobility=this.editableUser.falukantData[0].character.title_of_nobility),this.originalAge!=this.age&&(e.age=this.age);try{await X.post("/api/admin/falukant/edituser",e),this.$root.$refs.messageDialog.open("tr:admin.falukant.edituser.success")}catch{this.$root.$refs.errorDialog.open("tr:admin.falukant.edituser.error")}},async deleteUser(){this.editableUser.falukantData[0].id}}},i6=e=>(Cn("data-v-75e6538c"),e=e(),Tn(),e),r6=i6(()=>d("h1",null,"Edit Falukant User",-1)),s6={class:"user-list"},a6=["onClick"],o6={key:0,class:"edit-form"},l6=["value"],u6=["value"];function c6(e,t,n,i,r,s){return S(),_("div",null,[r6,d("div",null,[d("label",null,[ge("Username: "),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>r.user.username=a)},null,512),[[Le,r.user.username]])]),d("label",null,[ge("Character name: "),ie(d("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=a=>r.user.characterName=a)},null,512),[[Le,r.user.characterName]])]),d("button",{onClick:t[2]||(t[2]=(...a)=>s.searchUser&&s.searchUser(...a))},"Search")]),(S(!0),_(U,null,we(r.users,a=>(S(),_("ul",s6,[d("li",{onClick:o=>s.selectUser(a)},p(a.username)+" ("+p(a.falukantUser[0].character.definedFirstName.name)+" "+p(a.falukantUser[0].character.definedLastName.name)+")",9,a6)]))),256)),r.editableUser?(S(),_("div",o6,[d("h2",null,"User: "+p(r.editableUser.username),1),d("h3",null,"Character-Name: "+p(r.editableUser.falukantData[0].character.definedFirstName.name)+" "+p(r.editableUser.falukantData[0].character.definedLastName.name),1),d("label",null,[ge("Money: "),ie(d("input",{type:"number","onUpdate:modelValue":t[3]||(t[3]=a=>r.editableUser.falukantData[0].money=a)},null,512),[[Le,r.editableUser.falukantData[0].money]])]),d("label",null,[ge("Age: "),ie(d("input",{type:"number","onUpdate:modelValue":t[4]||(t[4]=a=>r.age=a)},null,512),[[Le,r.age]])]),d("label",null,[ge("Noble title: "),ie(d("select",{"onUpdate:modelValue":t[5]||(t[5]=a=>r.editableUser.falukantData[0].character.title_of_nobility=a)},[(S(!0),_(U,null,we(r.titles,a=>(S(),_("option",{value:a.id},p(e.$t(`falukant.titles.male.${a.labelTr}`)),9,l6))),256))],512),[[Et,r.editableUser.falukantData[0].character.title_of_nobility]])]),d("label",null,[ge("House: "),ie(d("select",{"onUpdate:modelValue":t[6]||(t[6]=a=>r.editableUser.falukantData[0].house=a)},[(S(!0),_(U,null,we(e.houses,a=>(S(),_("option",{value:a.id},p(e.$t(`${a.labelTr}`)),9,u6))),256))],512),[[Et,r.editableUser.falukantData[0].house]])]),d("button",{onClick:t[7]||(t[7]=(...a)=>s.saveUser&&s.saveUser(...a))},"Save"),d("button",{onClick:t[8]||(t[8]=(...a)=>s.deleteUser&&s.deleteUser(...a))},"Delete")])):te("",!0)])}const d6=Oe(n6,[["render",c6],["__scopeId","data-v-75e6538c"]]),f6={name:"SimpleTabs",props:{tabs:{type:Array,required:!0},modelValue:{type:[String,Number],required:!0}},computed:{internalValue(){return this.modelValue}},methods:{selectTab(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},h6={class:"simple-tabs"},m6=["onClick"];function g6(e,t,n,i,r,s){return S(),_("div",h6,[(S(!0),_(U,null,we(n.tabs,a=>(S(),_("button",{key:a.value,class:Dt(["simple-tab",{active:s.internalValue===a.value}]),onClick:o=>s.selectTab(a.value)},[xn(e.$slots,"label",{tab:a},()=>[ge(p(e.$t(a.label)),1)],!0)],10,m6))),128))])}const Ya=Oe(f6,[["render",g6],["__scopeId","data-v-daa16543"]]),p6={name:"AdminMinigamesView",components:{SimpleTabs:Ya},data(){return{activeTab:"match3-levels",tabs:[{value:"match3-levels",label:this.$t("admin.match3.title")}],levels:[],selectedLevelId:"new",editingLevel:null,levelForm:{name:"",description:"",boardWidth:5,boardHeight:5,moveLimit:15,order:1,tileTypes:["gem","star","heart"],objectives:[]},boardMatrix:[],availableTileTypes:["gem","star","heart","diamond","circle","square","crown","rainbow"],selectedCellIndex:null}},computed:{boardMatrixStyle(){return{gridTemplateColumns:`repeat(${this.levelForm.boardWidth}, 1fr)`,gridTemplateRows:`repeat(${this.levelForm.boardHeight}, 1fr)`}},selectedLevel(){return this.selectedLevelId==="new"?null:this.levels.find(e=>e.id===this.selectedLevelId)}},watch:{selectedLevelId:{handler(e,t){e!==t&&this.$nextTick(()=>{this.onLevelSelect()})},immediate:!0}},mounted(){this.levels=[],this.editingLevel=null,this.boardMatrix=[],this.$nextTick(()=>{this.loadLevels(),this.updateBoardMatrix()})},methods:{async loadLevels(){try{const e=this.$store.getters.user;if(!e||!e.authCode){setTimeout(()=>this.loadLevels(),100);return}const t=await X.get("/api/admin/minigames/match3/levels");this.levels=t.data}catch(e){console.error("Fehler beim Laden der Level:",e)}},async onLevelSelect(){if(this.selectedLevelId==="new")this.createLevel();else{const e=this.selectedLevel;e?await this.editLevel(e):console.warn("Kein Level gefunden für ID:",this.selectedLevelId)}},createLevel(){this.selectedLevelId="new",this.editingLevel=null,this.selectedCellIndex=null,this.levelForm={name:"",description:"",boardWidth:5,boardHeight:5,moveLimit:15,order:1,tileTypes:["gem","star","heart"],objectives:[]},this.updateBoardMatrix()},async editLevel(e){this.editingLevel=e,this.selectedCellIndex=null,this.levelForm={name:e.name,description:e.description,boardWidth:e.boardWidth,boardHeight:e.boardHeight,moveLimit:e.moveLimit,order:e.order,tileTypes:e.tileTypes||["gem","star","heart"],objectives:e.objectives||[]};try{const t=await this.loadObjectivesForLevel(e.id);this.levelForm.objectives=t}catch(t){console.error("Fehler beim Laden der Objectives:",t),this.levelForm.objectives=[]}e.boardLayout?this.createBoardMatrixFromLayout(e.boardLayout):this.updateBoardMatrix()},async deleteSelectedLevel(){this.selectedLevelId&&this.selectedLevelId!=="new"&&(await this.deleteLevel(this.selectedLevelId),this.selectedLevelId="new")},getTileSymbol(e){return{gem:"💎",star:"⭐",heart:"❤️",diamond:"🔷",circle:"⭕",square:"🟦",crown:"👑",rainbow:"🌈"}[e]||"❓"},selectCell(e){this.selectedCellIndex=this.selectedCellIndex===e?null:e},setTileType(e,t){console.log("setTileType called with:",e,t),t==="o"?this.boardMatrix[e]={active:!1,tileType:"o",index:e}:t==="r"?(this.boardMatrix[e]={active:!0,tileType:"r",index:e},console.log("Set random tile at index:",e,this.boardMatrix[e])):this.boardMatrix[e]={active:!0,tileType:t,index:e},this.selectedCellIndex=null,console.log("Board matrix after update:",this.boardMatrix)},getTileTypeChar(e){return{gem:"g",star:"s",heart:"h",diamond:"d",circle:"c",square:"q",crown:"w",rainbow:"b"}[e]||"x"},convertBoardForSave(){return this.boardMatrix.map(e=>e.tileType==="o"?"o":e.tileType==="r"?"x":this.getTileTypeChar(e.tileType))},cancelEdit(){this.editingLevel=null,this.selectedLevelId="new",this.selectedCellIndex=null,this.levelForm={name:"",description:"",boardWidth:5,boardHeight:5,moveLimit:15,order:1,tileTypes:["gem","star","heart"],objectives:[]},this.updateBoardMatrix(),console.log("Bearbeitung abgebrochen, Objectives zurückgesetzt:",this.levelForm.objectives)},updateBoardMatrix(){const e=this.levelForm.boardWidth*this.levelForm.boardHeight;this.boardMatrix=[];for(let t=0;t<e;t++)this.boardMatrix.push({active:!1,tileType:"o",index:t})},createBoardMatrixFromLayout(e){var i;const t=e.split(`
`);this.levelForm.boardHeight=t.length,this.levelForm.boardWidth=((i=t[0])==null?void 0:i.length)||5,this.boardMatrix=[];let n=0;for(let r=0;r<t.length;r++){const s=t[r];for(let a=0;a<s.length;a++){const o=s[a];let l="o",u=!1;o==="x"||o==="r"?(u=!0,l="r"):o==="g"?(u=!0,l="gem"):o==="s"?(u=!0,l="star"):o==="h"?(u=!0,l="heart"):o==="d"?(u=!0,l="diamond"):o==="c"?(u=!0,l="circle"):o==="q"?(u=!0,l="square"):o==="w"?(u=!0,l="crown"):o==="b"&&(u=!0,l="rainbow"),this.boardMatrix.push({active:u,tileType:l,index:n++})}}},fillAllActive(){this.boardMatrix.forEach(e=>{e.active=!0,e.tileType="r"})},clearAll(){this.boardMatrix.forEach(e=>{e.active=!1,e.tileType="o"})},invertBoard(){this.boardMatrix.forEach(e=>{e.active=!e.active,e.active&&e.tileType==="o"?e.tileType="r":e.active||(e.tileType="o")})},generateBoardLayout(){let e="";for(let t=0;t<this.levelForm.boardHeight;t++){for(let n=0;n<this.levelForm.boardWidth;n++){const i=t*this.levelForm.boardWidth+n,r=this.boardMatrix[i];r.tileType==="o"?e+="o":r.tileType==="r"?e+="x":e+=this.getTileTypeChar(r.tileType)}t<this.levelForm.boardHeight-1&&(e+=`
`)}return e},async saveLevel(){try{const e={...this.levelForm,boardLayout:this.generateBoardLayout()};let t;if(this.selectedLevelId!=="new"?t=(await X.put(`/api/admin/minigames/match3/levels/${this.selectedLevelId}`,e)).data:t=(await X.post("/api/admin/minigames/match3/levels",e)).data,this.levelForm.objectives&&this.levelForm.objectives.length>0)for(const n of this.levelForm.objectives){const i={...n,levelId:t.id};n.id?await X.put(`/api/admin/minigames/match3/objectives/${n.id}`,i):await X.post("/api/admin/minigames/match3/objectives",i)}this.editingLevel=null,this.selectedLevelId="new",this.selectedCellIndex=null,this.loadLevels()}catch(e){console.error("Fehler beim Speichern des Levels:",e),alert("Fehler beim Speichern des Levels")}},async deleteLevel(e){if(confirm("Möchtest du dieses Level wirklich löschen?"))try{await X.delete(`/api/admin/minigames/match3/levels/${e}`),this.loadLevels()}catch(t){console.error("Fehler beim Löschen des Levels:",t)}},addObjective(){this.levelForm.objectives||(this.levelForm.objectives=[]);const e={type:"score",description:"",target:100,operator:">=",order:this.levelForm.objectives.length+1,isRequired:!0};this.levelForm.objectives.push(e)},removeObjective(e){confirm("Möchtest du dieses Objective wirklich löschen?")&&(this.levelForm.objectives.splice(e,1),this.levelForm.objectives.forEach((t,n)=>{t.order=n+1}))},async loadObjectivesForLevel(e){try{const t=this.levels.find(n=>n.id==e);return t&&t.objectives&&Array.isArray(t.objectives)?t.objectives:[]}catch(t){return console.error("Fehler beim Laden der Objectives:",t),[]}}}},v6=e=>(Cn("data-v-404c6548"),e=e(),Tn(),e),y6={class:"contenthidden"},b6={class:"contentscroll"},k6={class:"admin-header"},w6=v6(()=>d("p",null,"Verwalte Minigames, Level und Konfigurationen",-1)),S6={key:0,class:"match3-admin"},_6={class:"section-header"},C6={class:"level-selection"},T6={class:"level-count"},E6={class:"level-dropdown"},I6={value:"new"},A6=["value"],x6={key:0,class:"level-details"},D6={class:"details-header"},P6={class:"details-content"},O6={class:"form-group"},M6={for:"levelName"},$6=["placeholder"],V6={class:"form-group"},L6={for:"levelDescription"},N6=["placeholder"],R6={class:"form-row"},F6={class:"form-group"},B6={for:"boardWidth"},z6={class:"form-group"},U6={for:"boardHeight"},W6={class:"form-group"},H6={for:"moveLimit"},j6={class:"form-group"},G6={for:"levelOrder"},q6={class:"form-group"},K6={class:"board-editor"},Y6=["onClick"],J6={key:0,class:"cell-status"},X6={key:1,class:"cell-status"},Z6={key:2,class:"cell-status"},Q6={key:0,class:"tile-selection-minimal"},eG={class:"selection-label"},tG={class:"tile-options-minimal"},nG=["onClick","title"],iG={class:"board-controls"},rG={class:"form-group"},sG={class:"tile-types-selection"},aG=["value"],oG={class:"tile-symbol"},lG={class:"tile-name"},uG={class:"form-actions"},cG={key:1,class:"level-form"},dG={class:"form-header"},fG={class:"form-group"},hG={for:"levelName"},mG=["placeholder"],gG={class:"form-group"},pG={for:"levelDescription"},vG=["placeholder"],yG={class:"form-row"},bG={class:"form-group"},kG={for:"boardWidth"},wG={class:"form-group"},SG={for:"boardHeight"},_G={class:"form-group"},CG={for:"moveLimit"},TG={class:"form-group"},EG={for:"levelOrder"},IG={class:"form-group"},AG={class:"board-editor"},xG=["onClick"],DG={key:0,class:"cell-status"},PG={key:1,class:"cell-status"},OG={key:2,class:"cell-status"},MG={key:0,class:"tile-selection-minimal"},$G={class:"selection-label"},VG={class:"tile-options-minimal"},LG=["onClick","title"],NG={class:"board-controls"},RG={class:"form-group"},FG={class:"tile-types-selection"},BG=["value"],zG={class:"tile-symbol"},UG={class:"tile-name"},WG={class:"form-group"},HG={class:"objectives-section"},jG={class:"objectives-header"},GG={key:0,class:"objectives-list"},qG={class:"objective-header"},KG={class:"objective-number"},YG=["onClick"],JG={class:"objective-form"},XG={class:"form-row"},ZG={class:"form-group"},QG=["onUpdate:modelValue"],eq={value:"score"},tq={value:"matches"},nq={value:"moves"},iq={value:"time"},rq={value:"special"},sq={class:"form-group"},aq=["onUpdate:modelValue"],oq={value:">="},lq={value:"<="},uq={value:"="},cq={value:">"},dq={value:"<"},fq={class:"form-group"},hq=["onUpdate:modelValue","placeholder"],mq={class:"form-group"},gq=["onUpdate:modelValue","placeholder"],pq={class:"form-group"},vq=["onUpdate:modelValue","placeholder"],yq={class:"form-group"},bq={class:"checkbox-label"},kq=["onUpdate:modelValue"],wq={key:1,class:"no-objectives"},Sq={class:"form-actions"},_q={type:"submit",class:"btn btn-primary"};function Cq(e,t,n,i,r,s){const a=be("SimpleTabs");return S(),_("div",y6,[d("div",b6,[d("div",k6,[d("h1",null,p(e.$t("admin.match3.title")),1),w6]),v(a,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=o=>r.activeTab=o),tabs:r.tabs},null,8,["modelValue","tabs"]),r.activeTab==="match3-levels"?(S(),_("div",S6,[d("div",_6,[d("h2",null,p(e.$t("admin.match3.title")),1)]),d("div",C6,[d("div",T6,[d("p",null,p(e.$t("admin.match3.availableLevels",{count:r.levels.length})),1)]),d("div",E6,[ie(d("select",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.selectedLevelId=o),onChange:t[2]||(t[2]=(...o)=>s.onLevelSelect&&s.onLevelSelect(...o)),class:"level-select"},[d("option",I6,p(e.$t("admin.match3.newLevel")),1),(S(!0),_(U,null,we(r.levels,o=>(S(),_("option",{key:o.id,value:o.id,class:"level-option"},p(e.$t("admin.match3.levelFormat",{number:o.order,name:o.name})),9,A6))),128))],544),[[Et,r.selectedLevelId]])])]),r.selectedLevelId!=="new"&&s.selectedLevel?(S(),_("div",x6,[d("div",D6,[d("h3",null,p(s.selectedLevel.name),1)]),d("div",P6,[d("div",O6,[d("label",M6,p(e.$t("admin.match3.levelName"))+":",1),ie(d("input",{id:"levelName","onUpdate:modelValue":t[3]||(t[3]=o=>r.levelForm.name=o),type:"text",required:"",placeholder:e.$t("admin.match3.levelName")},null,8,$6),[[Le,r.levelForm.name]])]),d("div",V6,[d("label",L6,p(e.$t("admin.match3.levelDescription"))+":",1),ie(d("textarea",{id:"levelDescription","onUpdate:modelValue":t[4]||(t[4]=o=>r.levelForm.description=o),required:"",placeholder:e.$t("admin.match3.levelDescription"),rows:"3"},null,8,N6),[[Le,r.levelForm.description]])]),d("div",R6,[d("div",F6,[d("label",B6,p(e.$t("admin.match3.boardWidth"))+":",1),ie(d("input",{id:"boardWidth","onUpdate:modelValue":t[5]||(t[5]=o=>r.levelForm.boardWidth=o),type:"number",min:"3",max:"12",required:"",onChange:t[6]||(t[6]=(...o)=>s.updateBoardMatrix&&s.updateBoardMatrix(...o))},null,544),[[Le,r.levelForm.boardWidth,void 0,{number:!0}]])]),d("div",z6,[d("label",U6,p(e.$t("admin.match3.boardHeight"))+":",1),ie(d("input",{id:"boardHeight","onUpdate:modelValue":t[7]||(t[7]=o=>r.levelForm.boardHeight=o),type:"number",min:"3",max:"12",required:"",onChange:t[8]||(t[8]=(...o)=>s.updateBoardMatrix&&s.updateBoardMatrix(...o))},null,544),[[Le,r.levelForm.boardHeight,void 0,{number:!0}]])]),d("div",W6,[d("label",H6,p(e.$t("admin.match3.moveLimit"))+":",1),ie(d("input",{id:"moveLimit","onUpdate:modelValue":t[9]||(t[9]=o=>r.levelForm.moveLimit=o),type:"number",min:"5",max:"100",required:""},null,512),[[Le,r.levelForm.moveLimit,void 0,{number:!0}]])]),d("div",j6,[d("label",G6,p(e.$t("admin.match3.levelOrder"))+":",1),ie(d("input",{id:"levelOrder","onUpdate:modelValue":t[10]||(t[10]=o=>r.levelForm.order=o),type:"number",min:"1",required:""},null,512),[[Le,r.levelForm.order,void 0,{number:!0}]])])]),d("div",q6,[d("label",null,p(e.$t("admin.match3.boardLayout"))+":",1),d("div",K6,[d("div",{class:"board-matrix",style:ft(s.boardMatrixStyle)},[(S(!0),_(U,null,we(r.boardMatrix,(o,l)=>(S(),_("div",{key:l,class:Dt(["board-cell",{active:o.active,inactive:!o.active,random:o.tileType==="r",empty:o.tileType==="o",selected:r.selectedCellIndex===l}]),onClick:u=>s.selectCell(l)},[o.tileType==="o"?(S(),_("span",J6,"⬜")):o.tileType==="r"?(S(),_("span",X6,"🎲")):(S(),_("span",Z6,p(s.getTileSymbol(o.tileType)),1))],10,Y6))),128))],4),r.selectedCellIndex!==null?(S(),_("div",Q6,[d("span",eG,"Position "+p(r.selectedCellIndex)+":",1),d("div",tG,[d("span",{class:"tile-option-mini",onClick:t[11]||(t[11]=o=>s.setTileType(r.selectedCellIndex,"o")),title:"Leer"},"⬜"),d("span",{class:"tile-option-mini",onClick:t[12]||(t[12]=o=>s.setTileType(r.selectedCellIndex,"r")),title:"Zufällig"},"🎲"),(S(!0),_(U,null,we(r.levelForm.tileTypes,o=>(S(),_("span",{key:o,class:"tile-option-mini",onClick:l=>s.setTileType(r.selectedCellIndex,o),title:o},p(s.getTileSymbol(o)),9,nG))),128))])])):te("",!0),d("div",iG,[d("button",{type:"button",class:"btn btn-secondary",onClick:t[13]||(t[13]=(...o)=>s.fillAllActive&&s.fillAllActive(...o))},p(e.$t("admin.match3.boardControls.fillAll")),1),d("button",{type:"button",class:"btn btn-secondary",onClick:t[14]||(t[14]=(...o)=>s.clearAll&&s.clearAll(...o))},p(e.$t("admin.match3.boardControls.clearAll")),1),d("button",{type:"button",class:"btn btn-secondary",onClick:t[15]||(t[15]=(...o)=>s.invertBoard&&s.invertBoard(...o))},p(e.$t("admin.match3.boardControls.invert")),1)])])]),d("div",rG,[d("label",null,p(e.$t("admin.match3.tileTypes"))+":",1),d("div",sG,[(S(!0),_(U,null,we(r.availableTileTypes,o=>(S(),_("label",{key:o,class:"tile-type-checkbox"},[ie(d("input",{type:"checkbox",value:o,"onUpdate:modelValue":t[16]||(t[16]=l=>r.levelForm.tileTypes=l)},null,8,aG),[[Nt,r.levelForm.tileTypes]]),d("span",oG,p(s.getTileSymbol(o)),1),d("span",lG,p(o),1)]))),128))])]),d("div",uG,[d("button",{type:"button",class:"btn btn-danger",onClick:t[17]||(t[17]=(...o)=>s.deleteSelectedLevel&&s.deleteSelectedLevel(...o))},p(e.$t("admin.match3.delete")),1),d("button",{type:"button",class:"btn btn-primary",onClick:t[18]||(t[18]=(...o)=>s.saveLevel&&s.saveLevel(...o))},p(e.$t("admin.match3.update")),1)])])])):te("",!0),r.selectedLevelId==="new"?(S(),_("div",cG,[d("div",dG,[d("h3",null,p(e.$t("admin.match3.newLevel")),1)]),d("form",{onSubmit:t[35]||(t[35]=ut((...o)=>s.saveLevel&&s.saveLevel(...o),["prevent"]))},[d("div",fG,[d("label",hG,p(e.$t("admin.match3.levelName"))+":",1),ie(d("input",{id:"levelName","onUpdate:modelValue":t[19]||(t[19]=o=>r.levelForm.name=o),type:"text",required:"",placeholder:e.$t("admin.match3.levelName")},null,8,mG),[[Le,r.levelForm.name]])]),d("div",gG,[d("label",pG,p(e.$t("admin.match3.levelDescription"))+":",1),ie(d("textarea",{id:"levelDescription","onUpdate:modelValue":t[20]||(t[20]=o=>r.levelForm.description=o),required:"",placeholder:e.$t("admin.match3.levelDescription"),rows:"3"},null,8,vG),[[Le,r.levelForm.description]])]),d("div",yG,[d("div",bG,[d("label",kG,p(e.$t("admin.match3.boardWidth"))+":",1),ie(d("input",{id:"boardWidth","onUpdate:modelValue":t[21]||(t[21]=o=>r.levelForm.boardWidth=o),type:"number",min:"3",max:"12",required:"",onChange:t[22]||(t[22]=(...o)=>s.updateBoardMatrix&&s.updateBoardMatrix(...o))},null,544),[[Le,r.levelForm.boardWidth,void 0,{number:!0}]])]),d("div",wG,[d("label",SG,p(e.$t("admin.match3.boardHeight"))+":",1),ie(d("input",{id:"boardHeight","onUpdate:modelValue":t[23]||(t[23]=o=>r.levelForm.boardHeight=o),type:"number",min:"3",max:"12",required:"",onChange:t[24]||(t[24]=(...o)=>s.updateBoardMatrix&&s.updateBoardMatrix(...o))},null,544),[[Le,r.levelForm.boardHeight,void 0,{number:!0}]])]),d("div",_G,[d("label",CG,p(e.$t("admin.match3.moveLimit"))+":",1),ie(d("input",{id:"moveLimit","onUpdate:modelValue":t[25]||(t[25]=o=>r.levelForm.moveLimit=o),type:"number",min:"5",max:"100",required:""},null,512),[[Le,r.levelForm.moveLimit,void 0,{number:!0}]])]),d("div",TG,[d("label",EG,p(e.$t("admin.match3.levelOrder"))+":",1),ie(d("input",{id:"levelOrder","onUpdate:modelValue":t[26]||(t[26]=o=>r.levelForm.order=o),type:"number",min:"1",required:""},null,512),[[Le,r.levelForm.order,void 0,{number:!0}]])])]),d("div",IG,[d("label",null,p(e.$t("admin.match3.boardLayout"))+":",1),d("div",AG,[d("div",{class:"board-matrix",style:ft(s.boardMatrixStyle)},[(S(!0),_(U,null,we(r.boardMatrix,(o,l)=>(S(),_("div",{key:l,class:Dt(["board-cell",{active:o.active,inactive:!o.active,random:o.tileType==="r",empty:o.tileType==="o",selected:r.selectedCellIndex===l}]),onClick:u=>s.selectCell(l)},[o.tileType==="o"?(S(),_("span",DG,"⬜")):o.tileType==="r"?(S(),_("span",PG,"🎲")):(S(),_("span",OG,p(s.getTileSymbol(o.tileType)),1))],10,xG))),128))],4),r.selectedCellIndex!==null?(S(),_("div",MG,[d("span",$G,"Position "+p(r.selectedCellIndex)+":",1),d("div",VG,[d("span",{class:"tile-option-mini",onClick:t[27]||(t[27]=o=>s.setTileType(r.selectedCellIndex,"o")),title:"Leer"},"⬜"),d("span",{class:"tile-option-mini",onClick:t[28]||(t[28]=o=>s.setTileType(r.selectedCellIndex,"r")),title:"Zufällig"},"🎲"),(S(!0),_(U,null,we(r.levelForm.tileTypes,o=>(S(),_("span",{key:o,class:"tile-option-mini",onClick:l=>s.setTileType(r.selectedCellIndex,o),title:o},p(s.getTileSymbol(o)),9,LG))),128))])])):te("",!0),d("div",NG,[d("button",{type:"button",class:"btn btn-secondary",onClick:t[29]||(t[29]=(...o)=>s.fillAllActive&&s.fillAllActive(...o))},p(e.$t("admin.match3.boardControls.fillAll")),1),d("button",{type:"button",class:"btn btn-secondary",onClick:t[30]||(t[30]=(...o)=>s.clearAll&&s.clearAll(...o))},p(e.$t("admin.match3.boardControls.clearAll")),1),d("button",{type:"button",class:"btn btn-secondary",onClick:t[31]||(t[31]=(...o)=>s.invertBoard&&s.invertBoard(...o))},p(e.$t("admin.match3.boardControls.invert")),1)])])]),d("div",RG,[d("label",null,p(e.$t("admin.match3.tileTypes"))+":",1),d("div",FG,[(S(!0),_(U,null,we(r.availableTileTypes,o=>(S(),_("label",{key:o,class:"tile-type-checkbox"},[ie(d("input",{type:"checkbox",value:o,"onUpdate:modelValue":t[32]||(t[32]=l=>r.levelForm.tileTypes=l)},null,8,BG),[[Nt,r.levelForm.tileTypes]]),d("span",zG,p(s.getTileSymbol(o)),1),d("span",UG,p(o),1)]))),128))])]),d("div",WG,[d("label",null,p(e.$t("admin.match3.levelObjectives"))+":",1),d("div",HG,[d("div",jG,[d("h4",null,p(e.$t("admin.match3.objectivesTitle")),1),d("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:t[33]||(t[33]=(...o)=>s.addObjective&&s.addObjective(...o))},p(e.$t("admin.match3.addObjective")),1)]),r.levelForm.objectives&&r.levelForm.objectives.length>0?(S(),_("div",GG,[(S(!0),_(U,null,we(r.levelForm.objectives,(o,l)=>(S(),_("div",{key:l,class:"objective-item"},[d("div",qG,[d("span",KG,"#"+p(l+1),1),d("button",{type:"button",class:"btn btn-danger btn-sm",onClick:u=>s.removeObjective(l)},p(e.$t("admin.match3.removeObjective")),9,YG)]),d("div",JG,[d("div",XG,[d("div",ZG,[d("label",null,p(e.$t("admin.match3.objectiveType"))+":",1),ie(d("select",{"onUpdate:modelValue":u=>o.type=u,class:"form-control"},[d("option",eq,p(e.$t("admin.match3.objectiveTypeScore")),1),d("option",tq,p(e.$t("admin.match3.objectiveTypeMatches")),1),d("option",nq,p(e.$t("admin.match3.objectiveTypeMoves")),1),d("option",iq,p(e.$t("admin.match3.objectiveTypeTime")),1),d("option",rq,p(e.$t("admin.match3.objectiveTypeSpecial")),1)],8,QG),[[Et,o.type]])]),d("div",sq,[d("label",null,p(e.$t("admin.match3.objectiveOperator"))+":",1),ie(d("select",{"onUpdate:modelValue":u=>o.operator=u,class:"form-control"},[d("option",oq,p(e.$t("admin.match3.operatorGreaterEqual")),1),d("option",lq,p(e.$t("admin.match3.operatorLessEqual")),1),d("option",uq,p(e.$t("admin.match3.operatorEqual")),1),d("option",cq,p(e.$t("admin.match3.operatorGreater")),1),d("option",dq,p(e.$t("admin.match3.operatorLess")),1)],8,aq),[[Et,o.operator]])]),d("div",fq,[d("label",null,p(e.$t("admin.match3.objectiveTarget"))+":",1),ie(d("input",{"onUpdate:modelValue":u=>o.target=u,type:"number",min:"1",class:"form-control",placeholder:e.$t("admin.match3.objectiveTargetPlaceholder")},null,8,hq),[[Le,o.target,void 0,{number:!0}]])]),d("div",mq,[d("label",null,p(e.$t("admin.match3.objectiveOrder"))+":",1),ie(d("input",{"onUpdate:modelValue":u=>o.order=u,type:"number",min:"1",class:"form-control",placeholder:e.$t("admin.match3.objectiveOrderPlaceholder")},null,8,gq),[[Le,o.order,void 0,{number:!0}]])])]),d("div",pq,[d("label",null,p(e.$t("admin.match3.objectiveDescription"))+":",1),ie(d("input",{"onUpdate:modelValue":u=>o.description=u,type:"text",class:"form-control",placeholder:e.$t("admin.match3.objectiveDescriptionPlaceholder")},null,8,vq),[[Le,o.description]])]),d("div",yq,[d("label",bq,[ie(d("input",{type:"checkbox","onUpdate:modelValue":u=>o.isRequired=u},null,8,kq),[[Nt,o.isRequired]]),ge(" "+p(e.$t("admin.match3.objectiveRequired")),1)])])])]))),128))])):(S(),_("div",wq,[d("p",null,p(e.$t("admin.match3.noObjectives")),1)]))])]),d("div",Sq,[d("button",{type:"button",class:"btn btn-secondary",onClick:t[34]||(t[34]=(...o)=>s.cancelEdit&&s.cancelEdit(...o))},p(e.$t("admin.match3.cancel")),1),d("button",_q,p(e.$t("admin.match3.create")),1)])],32)])):te("",!0)])):te("",!0)])])}const Tq=Oe(p6,[["render",Cq],["__scopeId","data-v-404c6548"]]),Eq=[{path:"/admin/interests",name:"AdminInterests",component:f5,meta:{requiresAuth:!0}},{path:"/admin/contacts",name:"AdminContacts",component:_j,meta:{requiresAuth:!0}},{path:"/admin/forum",name:"AdminForums",component:t6,meta:{requiresAuth:!0}},{path:"/admin/chatrooms",name:"AdminChatRooms",component:zj,meta:{requiresAuth:!0}},{path:"/admin/falukant/edituser",name:"AdminFalukantEditUserView",component:d6,meta:{requiresAuth:!0}},{path:"/admin/minigames/match3",name:"AdminMinigames",component:Tq,meta:{requiresAuth:!0}}],Iq={name:"FalukantMessagesDialog",components:{DialogWidget:hn},data(){return{messages:[],page:1,size:10,total:0,pageInput:1}},methods:{async open(){this.page=1,this.pageInput=1,await this.load(),this.$refs.dlg.open();try{await X.post("/api/falukant/notifications/mark-shown")}catch{}},async load(){try{const{data:e}=await X.get("/api/falukant/notifications/all",{params:{page:this.page,size:this.size}});e&&Array.isArray(e.items)?(this.messages=e.items,this.total=e.total||0):(this.messages=Array.isArray(e)?e:[],this.total=this.messages.length)}catch(e){console.error("Failed to load messages",e),this.messages=[],this.total=0}},nextPage(){this.page<this.totalPages&&(this.page++,this.pageInput=this.page,this.load())},prevPage(){this.page>1&&(this.page--,this.pageInput=this.page,this.load())},firstPage(){this.page!==1&&(this.page=1,this.pageInput=1,this.load())},lastPage(){this.page!==this.totalPages&&(this.page=this.totalPages,this.pageInput=this.page,this.load())},goToPage(e){let t=Number(e)||1;t<1&&(t=1),t>this.totalPages&&(t=this.totalPages),t!==this.page?(this.page=t,this.pageInput=t,this.load()):this.pageInput=t},formatDate(e){try{return new Date(e).toLocaleString()}catch{return e}}},computed:{totalPages(){return Math.max(1,Math.ceil(this.total/this.size))},canPrev(){return this.page>1},canNext(){return this.page<this.totalPages}}},Aq={class:"messages"},xq={class:"body"},Dq={class:"footer"},Pq={key:0,class:"empty"},Oq={key:0,class:"pagination"},Mq=["disabled"],$q=["disabled"],Vq=["max"],Lq=["disabled"],Nq=["disabled"];function Rq(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dlg",name:"falukant-messages",title:"falukant.messages.title",isTitleTranslated:!0,icon:"falukant/messages24.png",buttons:[{text:"message.close",action:"close"}],width:"520px",height:"420px"},{default:ze(()=>[d("ul",Aq,[(S(!0),_(U,null,we(r.messages,o=>(S(),_("li",{key:o.id,class:Dt({unread:!o.shown})},[d("div",xq,p(e.$t(o.tr)),1),d("div",Dq,[d("span",null,p(s.formatDate(o.createdAt)),1)])],2))),128)),r.messages.length===0?(S(),_("li",Pq,p(e.$t("falukant.messages.empty")),1)):te("",!0)]),r.total>r.size?(S(),_("div",Oq,[d("button",{onClick:t[0]||(t[0]=(...o)=>s.firstPage&&s.firstPage(...o)),disabled:!s.canPrev},"«",8,Mq),d("button",{onClick:t[1]||(t[1]=(...o)=>s.prevPage&&s.prevPage(...o)),disabled:!s.canPrev},"",8,$q),d("span",null,[ie(d("input",{type:"number",min:"1",max:s.totalPages,"onUpdate:modelValue":t[2]||(t[2]=o=>r.pageInput=o),onChange:t[3]||(t[3]=o=>s.goToPage(r.pageInput))},null,40,Vq),[[Le,r.pageInput,void 0,{number:!0}]]),ge(" / "+p(s.totalPages),1)]),d("button",{onClick:t[4]||(t[4]=(...o)=>s.nextPage&&s.nextPage(...o)),disabled:!s.canNext},"",8,Lq),d("button",{onClick:t[5]||(t[5]=(...o)=>s.lastPage&&s.lastPage(...o)),disabled:!s.canNext},"»",8,Nq)])):te("",!0)]),_:1},512)}const Fq=Oe(Iq,[["render",Rq],["__scopeId","data-v-b50f6373"]]),Bq="/images/icons/falukant/messages24.png",zq={name:"StatusBar",components:{MessagesDialog:Fq},data(){return{statusItems:[{key:"age",icon:null,iconImage:"falukant/age.png",value:0},{key:"relationship",icon:"💑",image:null},{key:"wealth",icon:"💰",value:0},{key:"health",icon:"❤️",value:"Good"},{key:"events",icon:"📰",value:null,image:null},{key:"children",icon:"👶",value:null}],unreadCount:0}},computed:{...or(["socket","daemonSocket"]),...Rn(["menu"])},async mounted(){await this.fetchStatus(),this.socket&&this.socket.on("falukantUpdateStatus",this.fetchStatus),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonSocketMessage)},beforeUnmount(){this.socket&&this.socket.off("falukantUpdateStatus",this.fetchStatus),this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonSocketMessage)},methods:{async fetchStatus(){var e,t,n,i;try{const r=await X.get("/api/falukant/info"),{money:s,character:a,events:o}=r.data,{age:l,health:u}=a,c=((t=(e=r.data.character.relationshipsAsCharacter1[0])==null?void 0:e.relationshipType)==null?void 0:t.tr)||((i=(n=r.data.character.relationshipsAsCharacter2[0])==null?void 0:n.relationshipType)==null?void 0:i.tr)||null,f=Number(r.data.childrenCount)||0,h=Number(r.data.unbaptisedChildrenCount)||0;this.unreadCount=Number(r.data.unreadNotifications)||0;const m=`${f}${h>0?`(${h})`:""}`;let g="";u>90?g=this.$t("falukant.health.amazing"):u>75?g=this.$t("falukant.health.good"):u>50?g=this.$t("falukant.health.normal"):u>25?g=this.$t("falukant.health.bad"):g=this.$t("falukant.health.very_bad"),this.statusItems=[{key:"age",icon:null,iconImage:"falukant/age.png",value:l},{key:"relationship",icon:"💑",image:c},{key:"wealth",icon:"💰",value:Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(s)},{key:"health",icon:"❤️",value:g},{key:"events",icon:"📰",value:o||null,image:null},{key:"children",icon:"👶",value:m}]}catch(r){console.error("Error fetching status:",r)}},async handleDaemonSocketMessage(e){try{if(e.data==="ping")return;const t=JSON.parse(e.data);t.event==="falukantUpdateStatus"&&this.fetchStatus(),(t.event==="stock_change"||t.event==="familychanged")&&this.fetchStatus()}catch(t){console.error("Error parsing daemonSocket message:",t,e.data)}},openPage(e,t=!1){t||e&&this.$router.push(e)},openMessages(){this.$refs.msgs.open(),setTimeout(()=>this.fetchStatus(),500)}}},Uq=e=>(Cn("data-v-f161ff43"),e=e(),Tn(),e),Wq={class:"statusbar"},Hq=["title"],jq={key:0,class:"badge"},Gq=Uq(()=>d("img",{src:Bq,class:"menu-icon"},null,-1)),qq=["title"],Kq={class:"status-icon"},Yq=["src"],Jq=["title"],Xq={class:"status-icon"},Zq=["src"],Qq={key:0},eK=["src","onClick","title"];function tK(e,t,n,i,r,s){const a=be("MessagesDialog");return S(),_("div",Wq,[d("div",{class:"status-item messages",onClick:t[0]||(t[0]=(...o)=>s.openMessages&&s.openMessages(...o)),title:e.$t("falukant.messages.tooltip")},[r.unreadCount>0?(S(),_("span",jq,p(r.unreadCount),1)):te("",!0),Gq],8,Hq),(S(!0),_(U,null,we(r.statusItems,o=>(S(),_(U,{key:o.key},[o.value!==null&&o.image==null?(S(),_("div",{key:0,class:"status-item",title:e.$t(`falukant.statusbar.${o.key}`)},[d("span",Kq,[o.iconImage?(S(),_(U,{key:0},[d("img",{src:"/images/icons/"+o.iconImage,class:"inline-icon",width:"16",height:"16"},null,8,Yq),ge(": ")],64)):(S(),_(U,{key:1},[ge(p(o.icon)+": ",1)],64)),ge(" "+p(o.value),1)])],8,qq)):o.image!==null?(S(),_("div",{key:1,class:"status-item",title:e.$t(`falukant.statusbar.${o.key}`)},[d("span",Xq,p(o.icon)+":",1),ge(),d("img",{src:"/images/icons/falukant/relationship-"+o.image+".png",class:"relationship-icon"},null,8,Zq)],8,Jq)):te("",!0)],64))),128)),r.statusItems.length>0?(S(),_("span",Qq,[(S(!0),_(U,null,we(e.menu.falukant.children,(o,l)=>(S(),_("img",{key:o.id,src:"/images/icons/falukant/shortmap/"+l+".png",class:"menu-icon",onClick:u=>s.openPage(o),title:e.$t(`navigation.m-falukant.${l}`)},null,8,eK))),128))])):te("",!0),v(a,{ref:"msgs"},null,512)])}const bi=Oe(zq,[["render",tK],["__scopeId","data-v-f161ff43"]]),nK={name:"FormattedDropdown",props:{options:{type:Array,required:!0},columns:{type:Array,required:!0},modelValue:{type:Object,default:null},placeholder:{type:String,default:"Select an option"}},emits:["update:modelValue"],data(){return{isOpen:!1,selected:this.modelValue}},watch:{modelValue(e){this.selected=e}},methods:{toggleDropdown(){this.isOpen=!this.isOpen},selectOption(e){this.selected=e,this.$emit("update:modelValue",e),this.isOpen=!1}}},iK={class:"dropdown-container"},rK={key:0,class:"dropdown-list"},sK=["onClick"];function aK(e,t,n,i,r,s){return S(),_("div",iK,[d("div",{class:"dropdown-header",onClick:t[0]||(t[0]=(...a)=>s.toggleDropdown&&s.toggleDropdown(...a))},[d("table",null,[d("tr",null,[(S(!0),_(U,null,we(n.columns,(a,o)=>(S(),_("td",{key:a.field},p(r.selected?r.selected[a.field]:o===0?n.placeholder:""),1))),128)),d("td",null,p(r.isOpen?"▲":"▼"),1)])])]),r.isOpen?(S(),_("div",rK,[d("table",null,[d("thead",null,[d("tr",null,[(S(!0),_(U,null,we(n.columns,a=>(S(),_("th",{key:a.field},p(a.label),1))),128))])]),d("tbody",null,[(S(!0),_(U,null,we(n.options,a=>{var o;return S(),_("tr",{key:a.id,onClick:l=>s.selectOption(a),class:Dt({selected:a.id===((o=r.selected)==null?void 0:o.id)})},[(S(!0),_(U,null,we(n.columns,l=>(S(),_("td",{key:l.field},p(a[l.field]),1))),128))],10,sK)}),128))])])])):te("",!0)])}const oK=Oe(nK,[["render",aK],["__scopeId","data-v-6c9970c0"]]),lK="/images/falukant/map.png",uK={name:"CreateBranchDialog",components:{DialogWidget:hn},data(){return{cities:[],branchTypes:[],selectedRegion:null,selectedType:null,devMode:!1,rect:null,startX:null,startY:null,currentX:0,currentY:0}},computed:{dialogButtons(){return[{text:this.$t("Cancel"),action:this.close},{text:this.$t("falukant.branch.actions.create"),action:this.onConfirm}]}},async mounted(){window.addEventListener("keydown",this.onKeyDown),await Promise.all([this.loadCities(),this.loadBranchTypes()]),this.selectedType=this.branchTypes.length?this.branchTypes[0].id:null},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown)},methods:{open(){this.$refs.dialog.open()},close(){this.$refs.dialog.close()},async onConfirm(){if(!(!this.selectedRegion||!this.selectedType))try{await X.post("/api/falukant/branches",{cityId:this.selectedRegion.id,branchTypeId:this.selectedType}),this.$emit("create-branch"),this.close()}catch{}},onClose(){this.close(),this.$emit("close")},onKeyDown(e){e.ctrlKey&&e.altKey&&e.code==="KeyD"&&(this.devMode=!this.devMode,this.devMode||(this.rect=null))},onMouseDown(e){if(!this.devMode)return;const t=this.$refs.mapImage.getBoundingClientRect();this.startX=e.clientX-t.left,this.startY=e.clientY-t.top,this.currentX=this.startX,this.currentY=this.startY,this.updateRect(),e.preventDefault()},onMouseMove(e){if(!this.devMode||this.startX===null)return;const t=this.$refs.mapImage.getBoundingClientRect();this.currentX=e.clientX-t.left,this.currentY=e.clientY-t.top,this.updateRect()},onMouseUp(){this.devMode&&(this.startX=null,this.startY=null)},updateRect(){if(this.startX===null||this.startY===null)return;const e=Math.min(this.startX,this.currentX),t=Math.min(this.startY,this.currentY),n=Math.abs(this.currentX-this.startX),i=Math.abs(this.currentY-this.startY);this.rect={x:Math.round(e),y:Math.round(t),width:Math.round(n),height:Math.round(i)}},async loadCities(){const{data:e}=await X.get("/api/falukant/cities");this.cities=e},onCityClick(e){this.selectedRegion=e},async loadBranchTypes(){const{data:e}=await X.get("/api/falukant/branches/types");this.branchTypes=e},computeBranchCost(e){const t=this.cities.reduce((r,s)=>r+s.branches.length,0),n=Math.pow(Math.max(t,1),1.2),i=e.baseCost*n;return Math.round(i*100)/100},formatCost(e){return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}}},cK=e=>(Cn("data-v-b92906ea"),e=e(),Tn(),e),dK={class:"create-branch-form"},fK={class:"map-wrapper"},hK={class:"map-container"},mK=["onClick","title"],gK={class:"sidebar"},pK={key:0,class:"dev-info"},vK=cK(()=>d("span",{class:"dev-badge"},"DEV MODE",-1)),yK={key:0,class:"dev-label-outside"},bK={key:1,class:"selected-region-wrapper"},kK={class:"selected-region"},wK={class:"form-label"},SK=["value"];function _K(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",name:"create-branch",title:e.$t("falukant.branch.actions.create"),icon:"branch.png",showClose:"",buttons:s.dialogButtons,onClose:s.onClose},{default:ze(()=>[d("div",dK,[d("div",fK,[d("div",hK,[d("img",{ref:"mapImage",src:lK,class:"map",onMousedown:t[0]||(t[0]=(...o)=>s.onMouseDown&&s.onMouseDown(...o)),onMousemove:t[1]||(t[1]=(...o)=>s.onMouseMove&&s.onMouseMove(...o)),onMouseup:t[2]||(t[2]=(...o)=>s.onMouseUp&&s.onMouseUp(...o)),onMouseleave:t[3]||(t[3]=(...o)=>s.onMouseUp&&s.onMouseUp(...o)),onDragstart:t[4]||(t[4]=ut(()=>{},["prevent"]))},null,544),(S(!0),_(U,null,we(r.cities,o=>(S(),_("div",{key:o.name,class:Dt(["city-region",o.branches.length>0?"has-branch":"clickable"]),style:ft({top:o.map.y+"px",left:o.map.x+"px",width:o.map.w+"px",height:o.map.h+"px"}),onClick:l=>o.branches.length===0&&s.onCityClick(o),title:o.name},null,14,mK))),128)),r.devMode&&r.rect?(S(),_("div",{key:0,class:"dev-rect",style:ft({top:r.rect.y+"px",left:r.rect.x+"px",width:r.rect.width+"px",height:r.rect.height+"px"})},null,4)):te("",!0)]),d("div",gK,[r.devMode?(S(),_("div",pK,[vK,r.rect?(S(),_("span",yK,p(r.rect.x)+","+p(r.rect.y)+" "+p(r.rect.width)+"×"+p(r.rect.height),1)):te("",!0)])):te("",!0),r.selectedRegion?(S(),_("div",bK,[d("div",kK,[ge(p(e.$t("falukant.branch.selection.selected"))+": ",1),d("strong",null,p(r.selectedRegion.name),1)]),d("label",wK,[ge(p(e.$t("falukant.branch.columns.type"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[5]||(t[5]=o=>r.selectedType=o),class:"form-control"},[(S(!0),_(U,null,we(r.branchTypes,o=>(S(),_("option",{key:o.id,value:o.id},p(e.$t(`falukant.branch.types.${o.labelTr}`))+" ("+p(s.formatCost(s.computeBranchCost(o)))+") ",9,SK))),128))],512),[[Et,r.selectedType]])])])):te("",!0)])])])]),_:1},8,["title","buttons","onClose"])}const CK=Oe(uK,[["render",_K],["__scopeId","data-v-b92906ea"]]),TK={name:"BranchSelection",components:{FormattedDropdown:oK,CreateBranchDialog:CK},props:{branches:{type:Array,required:!0},selectedBranch:{type:Object,default:null}},data(){return{localSelectedBranch:this.selectedBranch,branchColumns:[{field:"cityName",label:this.$t("falukant.branch.columns.city")},{field:"type",label:this.$t("falukant.branch.columns.type")}]}},watch:{selectedBranch(e){this.localSelectedBranch=e}},methods:{updateSelectedBranch(e){this.$emit("branchSelected",e)},openCreateBranchDialog(){this.$refs.createBranchDialog.open()},handleCreateBranch(){this.$emit("createBranch")}}},EK={class:"branch-selection"},IK=["disabled"];function AK(e,t,n,i,r,s){const a=be("FormattedDropdown"),o=be("CreateBranchDialog");return S(),_(U,null,[d("div",EK,[d("h3",null,p(e.$t("falukant.branch.selection.title")),1),d("div",null,[v(a,{options:n.branches,columns:r.branchColumns,modelValue:r.localSelectedBranch,"onUpdate:modelValue":[t[0]||(t[0]=l=>r.localSelectedBranch=l),s.updateSelectedBranch],placeholder:e.$t("falukant.branch.selection.placeholder")},null,8,["options","columns","modelValue","placeholder","onUpdate:modelValue"])]),d("div",null,[d("button",{onClick:t[1]||(t[1]=(...l)=>s.openCreateBranchDialog&&s.openCreateBranchDialog(...l))},p(e.$t("falukant.branch.actions.create")),1),d("button",{onClick:t[2]||(t[2]=l=>e.$emit("upgradeBranch")),disabled:!r.localSelectedBranch},p(e.$t("falukant.branch.actions.upgrade")),9,IK)])]),v(o,{ref:"createBranchDialog",regions:e.availableRegions,onCreateBranch:s.handleCreateBranch},null,8,["regions","onCreateBranch"])],64)}const xK=Oe(TK,[["render",AK],["__scopeId","data-v-c458599c"]]);function DK(e,t){return e>=90?t("falukant.skillKnowledges.excelent"):e>=75?t("falukant.skillKnowledges.veryhigh"):e>=60?t("falukant.skillKnowledges.high"):e>=45?t("falukant.skillKnowledges.medium"):e>=30?t("falukant.skillKnowledges.low"):e>=15?t("falukant.skillKnowledges.verylow"):t("falukant.skillKnowledges.none")}const PK={name:"FalukantNewDirector",components:{DialogWidget:hn},data(){return{dialog:null,proposals:[],selectedProposal:null,products:[],buttons:[{text:this.$t("falukant.newdirector.hire"),action:this.hireDirector},{text:this.$t("Cancel"),action:"close"}]}},methods:{async open(e){this.dialog.open(),await this.loadProposals(e)},closeDialog(){this.dialog.close(),this.proposals=[],this.selectedProposal=null},async loadProposals(e){try{const t=await X.post("/api/falukant/director/proposal",{branchId:e});this.proposals=t.data.map(n=>({...n,knowledge:n.knowledge||[]}))}catch(t){console.error("Error loading proposals:",t)}},selectProposal(e){this.selectedProposal=e},async hireDirector(){if(this.selectedProposal)try{await X.post("/api/falukant/director/convertproposal",{proposalId:this.selectedProposal.id}),this.closeDialog(),this.$emit("directorHired")}catch(e){console.error("Error hiring director:",e)}},mapKnowledgeToText(e){return DK(e,this.$t)}},mounted(){this.dialog=this.$refs.dialog},beforeUnmount(){}},OK={class:"director-dialog"},MK={class:"proposal-list"},$K=["onClick"],VK={key:0,class:"proposal-details"};function LK(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:e.$t("factset.newdirector.title"),"show-close":!0,buttons:r.buttons,onClose:s.closeDialog,name:"FalukantNewDirector",modal:!0,isTitleTranslated:!0},{default:ze(()=>[d("div",OK,[d("div",MK,[d("ul",null,[(S(!0),_(U,null,we(r.proposals,o=>(S(),_("li",{key:o.id,onClick:l=>s.selectProposal(o),class:Dt({selected:r.selectedProposal&&r.selectedProposal.id===o.id})},p(e.$t("falukant.titles."+o.character.gender+"."+o.character.title))+" "+p(o.character.name)+" ("+p(o.character.age)+" Jahre) ",11,$K))),128))])]),r.selectedProposal?(S(),_("div",VK,[d("h3",null,p(r.selectedProposal.character.name),1),d("p",null,[d("strong",null,p(e.$t("falukant.newdirector.age")),1),ge(" "+p(r.selectedProposal.character.age)+" Jahre",1)]),d("p",null,[d("strong",null,p(e.$t("falukant.newdirector.salary")),1),ge(" "+p(r.selectedProposal.proposedIncome)+" $",1)]),d("h4",null,p(e.$t("falukant.newdirector.skills")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.newdirector.product")),1),d("th",null,p(e.$t("falukant.newdirector.knowledge")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.selectedProposal.character.knowledge,o=>(S(),_("tr",{key:o.id},[d("td",null,p(e.$t("falukant.product."+o.labelTr)),1),d("td",null,p(s.mapKnowledgeToText(o.value)),1)]))),128))])])])):te("",!0)])]),_:1},8,["title","buttons","onClose"])}const NK=Oe(PK,[["render",LK],["__scopeId","data-v-356d1601"]]),RK={name:"DirectorInfo",props:{branchId:{type:Number,required:!0}},components:{NewDirectorDialog:NK},data(){return{director:null,showNewDirectorDialog:!1}},async mounted(){await this.loadDirector()},methods:{async refresh(){await this.loadDirector()},async loadDirector(){try{const t=(await X.get(`/api/falukant/director/${this.branchId}`)).data;!t||Array.isArray(t)&&t.length===0||typeof t.director>"u"||t.director===null?this.director=null:this.director=t.director}catch(e){console.error("Error loading director:",e),this.director=null}},async saveSetting(e,t){if(this.director)try{await X.post("/api/falukant/director/settings",{branchId:this.branchId,directorId:this.director.id,settingKey:e,value:t})}catch(n){console.error(`Error saving setting ${e}:`,n)}},openNewDirectorDialog(){console.log("openNewDirectorDialog"),this.$refs.newDirectorDialog.open(this.branchId)},fireDirector(){alert(this.$t("falukant.branch.director.fireAlert"))},teachDirector(){alert(this.$t("falukant.branch.director.teachAlert"))}}},FK={class:"director-info"},BK={key:0},zK={key:1,class:"director-info-container"};function UK(e,t,n,i,r,s){const a=be("NewDirectorDialog");return S(),_(U,null,[d("div",FK,[d("h3",null,p(e.$t("falukant.branch.director.title")),1),!r.director||r.director===null?(S(),_("div",BK,[d("button",{onClick:t[0]||(t[0]=(...o)=>s.openNewDirectorDialog&&s.openNewDirectorDialog(...o))},p(e.$t("falukant.branch.director.actions.new")),1)])):(S(),_("div",zK,[d("div",null,[d("table",null,[d("tr",null,[d("td",null,p(e.$t("falukant.branch.director.name")),1),d("td",null,p(e.$t("falukant.titles."+r.director.character.gender+"."+r.director.character.title))+" "+p(r.director.character.name),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.branch.director.salary")),1),d("td",null,p(r.director.income),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.branch.director.satisfaction")),1),d("td",null,p(r.director.satisfaction)+" %",1)])])]),d("div",null,[d("table",null,[d("tr",null,[d("td",null,[d("button",{onClick:t[1]||(t[1]=(...o)=>s.fireDirector&&s.fireDirector(...o))},p(e.$t("falukant.branch.director.fire")),1)])]),d("tr",null,[d("td",null,[d("button",{onClick:t[2]||(t[2]=(...o)=>s.teachDirector&&s.teachDirector(...o))},p(e.$t("falukant.branch.director.teach")),1)])]),d("tr",null,[d("td",null,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>r.director.mayProduce=o),onChange:t[4]||(t[4]=o=>s.saveSetting("mayProduce",r.director.mayProduce))},null,544),[[Nt,r.director.mayProduce]]),ge(" "+p(e.$t("falukant.branch.director.produce")),1)])])])])])]))]),v(a,{ref:"newDirectorDialog"},null,512)],64)}const WK=Oe(RK,[["render",UK],["__scopeId","data-v-3faedd8f"]]),HK={name:"SaleSection",props:{branchId:{type:Number,required:!0}},data(){return{inventory:[]}},async mounted(){await this.loadInventory()},methods:{async loadInventory(){try{const e=await X.get(`/api/falukant/inventory/${this.branchId}`);this.inventory=e.data.map(t=>({...t,sellQuantity:t.totalQuantity}))}catch(e){console.error("Error loading inventory:",e)}},sellItem(e){const t=this.inventory[e],n=t.sellQuantity||t.totalQuantity;X.post("/api/falukant/sell",{branchId:this.branchId,productId:t.product.id,quantity:n,quality:t.quality}).catch(()=>{alert(this.$t("falukant.branch.sale.sellError"))})},sellAll(){X.post("/api/falukant/sell/all",{branchId:this.branchId}).catch(()=>{alert(this.$t("falukant.branch.sale.sellAllError"))})}}},jK={class:"sale-section"},GK={key:0,class:"inventory-table"},qK=["onUpdate:modelValue","max"],KK=["onClick"],YK={key:1};function JK(e,t,n,i,r,s){return S(),_("div",jK,[d("h3",null,p(e.$t("falukant.branch.sale.title")),1),r.inventory.length>0?(S(),_("div",GK,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.sale.region")),1),d("th",null,p(e.$t("falukant.branch.sale.product")),1),d("th",null,p(e.$t("falukant.branch.sale.quality")),1),d("th",null,p(e.$t("falukant.branch.sale.quantity")),1),d("th",null,p(e.$t("falukant.branch.sale.sell")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.inventory,(a,o)=>(S(),_("tr",{key:`${a.region.id}-${a.product.id}-${a.quality}`},[d("td",null,p(a.region.name),1),d("td",null,p(e.$t(`falukant.product.${a.product.labelTr}`)),1),d("td",null,p(a.quality),1),d("td",null,p(a.totalQuantity),1),d("td",null,[ie(d("input",{type:"number","onUpdate:modelValue":l=>a.sellQuantity=l,min:1,max:a.totalQuantity},null,8,qK),[[Le,a.sellQuantity,void 0,{number:!0}]]),d("button",{onClick:l=>s.sellItem(o)},p(e.$t("falukant.branch.sale.sellButton")),9,KK)])]))),128))])]),d("button",{onClick:t[0]||(t[0]=(...a)=>s.sellAll&&s.sellAll(...a))},p(e.$t("falukant.branch.sale.sellAllButton")),1)])):(S(),_("div",YK,[d("p",null,p(e.$t("falukant.branch.sale.noInventory")),1)]))])}const XK=Oe(HK,[["render",JK],["__scopeId","data-v-0a0a3961"]]),ZK={name:"ProductionSection",props:{branchId:{type:Number,required:!0},products:{type:Array,required:!0}},data(){return{productions:[],selectedProduct:null,productionQuantity:1,currentTime:Date.now(),timer:null}},async mounted(){await this.loadProductions(),this.timer=setInterval(()=>{this.currentTime=Date.now()},1e3)},beforeUnmount(){this.timer&&(clearInterval(this.timer),this.timer=null)},methods:{async loadProductions(){try{const e=await X.get(`/api/falukant/branches/${this.branchId}`);this.productions=e.data.productions.sort((t,n)=>{const i=new Date(t.startTimestamp).getTime()+t.productType.productionTime*60*1e3,r=new Date(n.startTimestamp).getTime()+n.productType.productionTime*60*1e3;return i-r})}catch(e){console.error("Error loading productions:",e)}},calculateProductionCost(){if(!this.products)return 0;const e=this.products.find(t=>t.id===this.selectedProduct);return e?6*e.category*this.productionQuantity:0},calculateProductionDuration(e){if(!this.products||!e)return 0;const t=this.products.find(i=>i.id===e);return t?(t.productionTime*60/60).toFixed(2).replace(".",":"):0},calculateProductionRevenue(){if(!this.selectedProduct||!this.products)return 0;const e=this.products.find(n=>n.id===this.selectedProduct);return e?(this.calculateProductRevenue(e).absolute*this.productionQuantity).toFixed(2).toLocaleString():0},calculateEndDateTime(e,t){const n=new Date(e);return new Date(n.getTime()+t*60*1e3).toLocaleString()},calculateRemainingTime(e,t){const i=new Date(e).getTime()+t*60*1e3;return Math.max(Math.floor((i-this.currentTime)/1e3),0)},async startProduction(){if(this.selectedProduct&&this.productionQuantity>0){this.productionQuantity=Math.min(this.productionQuantity,200);let e=this.productionQuantity;for(;e>0;){const t=Math.min(e,100);e-=t;try{await X.post("/api/falukant/production",{branchId:this.branchId,productId:this.selectedProduct,quantity:t}),this.loadProductions()}catch(n){alert(this.$t(`falukant.branch.production.error${n.response.data.error}`))}}}},calculateProductRevenue(e){if(!e.knowledges||e.knowledges.length===0)return{absolute:0,perMinute:0};const t=e.knowledges[0].knowledge||0,n=e.sellCost,i=n*.6,r=i+(n-i)*(t/100),s=e.productionTime>0?r/e.productionTime:0;return{absolute:r.toFixed(2),perMinute:s.toFixed(2)}}}},QK={class:"production-section"},e9={key:0},t9={key:1},n9={for:"product"},i9=["value"],r9={for:"quantity"},s9=["disabled"];function a9(e,t,n,i,r,s){return S(),_("div",QK,[d("h3",null,p(e.$t("falukant.branch.production.title")),1),r.productions&&r.productions.length>0?(S(),_("div",e9,[d("h4",null,p(e.$t("falukant.branch.production.current")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.production.product")),1),d("th",null,p(e.$t("falukant.branch.production.quantity")),1),d("th",null,p(e.$t("falukant.branch.production.ending")),1),d("th",null,p(e.$t("falukant.branch.production.remainingTime")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.productions,a=>(S(),_("tr",{key:a.id},[d("td",null,p(e.$t(`falukant.product.${a.productType.labelTr}`)),1),d("td",null,p(a.quantity),1),d("td",null,p(s.calculateEndDateTime(a.startTimestamp,a.productType.productionTime)),1),d("td",null,p(s.calculateRemainingTime(a.startTimestamp,a.productType.productionTime))+" s",1)]))),128))])])])):te("",!0),!r.productions||r.productions.length<2?(S(),_("div",t9,[d("div",null,[d("label",n9,p(e.$t("falukant.branch.production.selectProduct")),1),ie(d("select",{name:"product",id:"product","onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedProduct=a)},[(S(!0),_(U,null,we(n.products,a=>(S(),_("option",{key:a.id,value:a.id},p(e.$t(`falukant.product.${a.labelTr}`)),9,i9))),128))],512),[[Et,r.selectedProduct]])]),d("div",null,[d("label",r9,p(e.$t("falukant.branch.production.quantity")),1),ie(d("input",{type:"number",id:"quantity","onUpdate:modelValue":t[1]||(t[1]=a=>r.productionQuantity=a),min:"1",max:"200"},null,512),[[Le,r.productionQuantity,void 0,{number:!0}]])]),d("div",null,[d("p",null,[ge(p(e.$t("falukant.branch.production.cost"))+": ",1),d("strong",null,p(s.calculateProductionCost()),1)]),d("p",null,[ge(p(e.$t("falukant.branch.production.duration"))+": ",1),d("strong",null,p(s.calculateProductionDuration(r.selectedProduct)),1)]),d("p",null,[ge(p(e.$t("falukant.branch.production.revenue"))+": ",1),d("strong",null,p(s.calculateProductionRevenue()),1)])]),d("button",{onClick:t[2]||(t[2]=(...a)=>s.startProduction&&s.startProduction(...a)),disabled:!r.selectedProduct||r.productionQuantity<1},p(e.$t("falukant.branch.production.start")),9,s9)])):te("",!0)])}const o9=Oe(ZK,[["render",a9],["__scopeId","data-v-053a7956"]]),l9={name:"StorageSection",props:{branchId:{type:Number,required:!0}},data(){return{currentStorage:0,maxStorage:0,storageUsage:[],buyableUsage:[],buyStorageAmount:0,sellStorageAmount:0,stockTypes:[],selectedBuyStockTypeLabelTr:null,selectedSellStockTypeId:null}},computed:{buyCost(){const e=this.getCostOfType(this.selectedBuyStockTypeLabelTr);return this.buyStorageAmount*e},sellIncome(){const e=this.getCostOfTypeById(this.selectedSellStockTypeId);return this.sellStorageAmount*e},maxBuyableForSelectedBuy(){const e=this.buyableUsage.find(t=>t.stockTypeLabelTr===this.selectedBuyStockTypeLabelTr);return e?e.totalQuantity:0},maxSellableForSelectedSell(){const e=this.storageUsage.find(t=>t.stockTypeId===this.selectedSellStockTypeId);return e?e.totalCapacity:0}},async mounted(){await this.loadStorageData(),await this.loadStockTypes()},methods:{async loadStorageData(){try{const{data:e}=await X.get(`/api/falukant/storage/${this.branchId}`);this.currentStorage=e.totalUsedCapacity,this.maxStorage=e.maxCapacity,this.storageUsage=e.usageByType;const t=e.buyableByType.filter(i=>i.quantity>0),n={};t.forEach(i=>{const r=i.stockTypeLabelTr;n[r]||(n[r]={stockTypeLabelTr:r,totalQuantity:0,items:[]}),n[r].totalQuantity+=i.quantity,n[r].items.push({stockTypeId:i.stockTypeId,quantity:i.quantity})}),this.buyableUsage=Object.values(n)}catch(e){console.error("Error loading storage data:",e)}},async loadStockTypes(){try{const e=await X.get("/api/falukant/stocktypes");this.stockTypes=e.data,this.stockTypes.length&&(this.selectedBuyStockTypeLabelTr=this.stockTypes[0].labelTr,this.selectedSellStockTypeId=this.stockTypes[0].id)}catch(e){console.error("Error loading stock types:",e)}},async onBuyStorage(){if(!this.branchId||!this.buyStorageAmount||!this.selectedBuyStockTypeLabelTr)return;const e=this.buyableUsage.find(n=>n.stockTypeLabelTr===this.selectedBuyStockTypeLabelTr);if(!e)return;let t=this.buyStorageAmount;for(const n of e.items){if(t<=0)break;const i=Math.min(t,n.quantity);try{await X.post("/api/falukant/storage",{branchId:this.branchId,amount:i,stockTypeId:n.stockTypeId})}catch(r){console.error(r),alert("Error buying storage for one part of the order")}t-=i}t>0&&alert(this.$t("falukant.branch.storage.notEnoughAvailable")),this.loadStorageData()},onSellStorage(){!this.branchId||!this.sellStorageAmount||!this.selectedSellStockTypeId||X.delete("/api/falukant/storage",{data:{branchId:this.branchId,amount:this.sellStorageAmount,stockTypeId:this.selectedSellStockTypeId}}).then(()=>this.loadStorageData()).catch(e=>{console.error(e),alert("Error selling storage")})},getCostOfType(e){const t=this.stockTypes.find(n=>n.labelTr===e);return t?t.cost:0},getCostOfTypeById(e){const t=this.stockTypes.find(n=>n.id===e);return t?t.cost:0}}},u9={class:"storage-section"},c9={class:"storage-info"},d9={class:"storage-market"},f9={class:"buy-section"},h9=["value"],m9=["max"],g9={class:"sell-section"},p9=["value"],v9=["max"];function y9(e,t,n,i,r,s){return S(),_("div",u9,[d("h3",null,p(e.$t("falukant.branch.storage.title")),1),d("div",c9,[d("p",null,[ge(p(e.$t("falukant.branch.storage.currentCapacity"))+": ",1),d("strong",null,p(r.currentStorage)+" / "+p(r.maxStorage),1)]),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.storage.stockType")),1),d("th",null,p(e.$t("falukant.branch.storage.totalCapacity")),1),d("th",null,p(e.$t("falukant.branch.storage.used")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.storageUsage,(a,o)=>(S(),_("tr",{key:o},[d("td",null,p(e.$t(`falukant.branch.stocktype.${a.stockTypeLabelTr}`)),1),d("td",null,p(a.totalCapacity),1),d("td",null,p(a.used),1)]))),128))])]),d("h4",null,p(e.$t("falukant.branch.storage.availableToBuy")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.storage.stockType")),1),d("th",null,p(e.$t("falukant.branch.storage.totalCapacity")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.buyableUsage,(a,o)=>(S(),_("tr",{key:o},[d("td",null,p(e.$t(`falukant.branch.stocktype.${a.stockTypeLabelTr}`)),1),d("td",null,p(a.totalQuantity),1)]))),128))])])]),d("div",d9,[d("div",f9,[d("label",null,p(e.$t("falukant.branch.storage.selectStockType")),1),ie(d("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedBuyStockTypeLabelTr=a)},[(S(!0),_(U,null,we(r.buyableUsage,a=>(S(),_("option",{key:a.stockTypeLabelTr,value:a.stockTypeLabelTr},p(e.$t(`falukant.branch.stocktype.${a.stockTypeLabelTr}`))+" - "+p(s.getCostOfType(a.stockTypeLabelTr)),9,h9))),128))],512),[[Et,r.selectedBuyStockTypeLabelTr]]),d("div",null,[d("label",null,p(e.$t("falukant.branch.storage.buyAmount")),1),ie(d("input",{type:"number","onUpdate:modelValue":t[1]||(t[1]=a=>r.buyStorageAmount=a),max:s.maxBuyableForSelectedBuy,min:"1"},null,8,m9),[[Le,r.buyStorageAmount,void 0,{number:!0}]]),d("button",{onClick:t[2]||(t[2]=(...a)=>s.onBuyStorage&&s.onBuyStorage(...a))},p(e.$t("falukant.branch.storage.buyStorageButton"))+" ("+p(s.buyCost)+") ",1)])]),d("div",g9,[d("label",null,p(e.$t("falukant.branch.storage.selectStockType")),1),ie(d("select",{"onUpdate:modelValue":t[3]||(t[3]=a=>r.selectedSellStockTypeId=a)},[(S(!0),_(U,null,we(r.storageUsage,a=>(S(),_("option",{key:a.stockTypeId,value:a.stockTypeId},p(e.$t(`falukant.branch.stocktype.${a.stockTypeLabelTr}`))+" - "+p(s.getCostOfTypeById(a.stockTypeId)),9,p9))),128))],512),[[Et,r.selectedSellStockTypeId]]),d("div",null,[d("label",null,p(e.$t("falukant.branch.storage.sellAmount")),1),ie(d("input",{type:"number","onUpdate:modelValue":t[4]||(t[4]=a=>r.sellStorageAmount=a),max:s.maxSellableForSelectedSell,min:"1"},null,8,v9),[[Le,r.sellStorageAmount,void 0,{number:!0}]]),d("button",{onClick:t[5]||(t[5]=(...a)=>s.onSellStorage&&s.onSellStorage(...a))},p(e.$t("falukant.branch.storage.sellStorageButton"))+" ("+p(s.sellIncome)+") ",1)])])])])}const b9=Oe(l9,[["render",y9],["__scopeId","data-v-c483e484"]]),k9={name:"RevenueSection",props:{products:{type:Array,required:!0},calculateProductRevenue:{type:Function,required:!0},calculateProductProfit:{type:Function,required:!0}},data(){return{isRevenueTableOpen:!1}},computed:{productWithMaxRevenuePerMinute(){return!this.products||this.products.length===0?null:this.products.reduce((e,t)=>{const n=parseFloat(this.calculateProductRevenue(t).perMinute),i=e?parseFloat(this.calculateProductRevenue(e).perMinute):0;return n>i?t:e},null)}},methods:{toggleRevenueTable(){this.isRevenueTableOpen=!this.isRevenueTableOpen}}},w9={class:"revenue-section"},S9={key:0,class:"revenue-table"};function _9(e,t,n,i,r,s){return S(),_("div",w9,[d("h3",null,[d("button",{onClick:t[0]||(t[0]=(...a)=>s.toggleRevenueTable&&s.toggleRevenueTable(...a))},p(e.$t("falukant.branch.revenue.title"))+" "+p(r.isRevenueTableOpen?"▲":"▼"),1)]),r.isRevenueTableOpen?(S(),_("div",S9,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.revenue.product")),1),d("th",null,p(e.$t("falukant.branch.revenue.knowledge")),1),d("th",null,p(e.$t("falukant.branch.revenue.absolute")),1),d("th",null,p(e.$t("falukant.branch.revenue.perMinute")),1),d("th",null,p(e.$t("falukant.branch.revenue.profitAbsolute")),1),d("th",null,p(e.$t("falukant.branch.revenue.profitPerMinute")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(n.products,a=>{var o;return S(),_("tr",{key:a.id,class:Dt({highlight:a.id===((o=s.productWithMaxRevenuePerMinute)==null?void 0:o.id)})},[d("td",null,p(e.$t(`falukant.product.${a.labelTr}`)),1),d("td",null,p(a.knowledges&&a.knowledges[0]?a.knowledges[0].knowledge:0),1),d("td",null,p(n.calculateProductRevenue(a).absolute),1),d("td",null,p(n.calculateProductRevenue(a).perMinute),1),d("td",null,p(n.calculateProductProfit(a).absolute),1),d("td",null,p(n.calculateProductProfit(a).perMinute),1)],2)}),128))])])])):te("",!0)])}const C9=Oe(k9,[["render",_9],["__scopeId","data-v-aac0ff7e"]]),T9={name:"BranchView",components:{StatusBar:bi,BranchSelection:xK,DirectorInfo:WK,SaleSection:XK,ProductionSection:o9,StorageSection:b9,RevenueSection:C9},data(){return{branches:[],selectedBranch:null,products:[]}},computed:{...or(["socket","daemonSocket"])},async mounted(){await this.loadBranches();const e=this.$route.params.branchId;await this.loadProducts(),e?this.selectedBranch=this.branches.find(t=>t.id===parseInt(e,10))||null:this.selectMainBranch(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage),["production_ready","stock_change","price_update","director_death","production_started","selled_items","falukantUpdateStatus","falukantBranchUpdate","knowledge_update"].forEach(t=>{this.socket&&this.socket.on(t,n=>this.handleEvent({event:t,...n}))})},beforeUnmount(){["production_ready","stock_change","price_update","director_death","production_started","selled_items","falukantUpdateStatus","falukantBranchUpdate","knowledge_update"].forEach(e=>{this.socket&&this.socket.off(e,this.handleEvent)}),this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)},methods:{async loadBranches(){try{const e=await X.get("/api/falukant/branches");this.branches=e.data.map(t=>({id:t.id,cityName:t.region.name,type:this.$t(`falukant.branch.types.${t.branchType.labelTr}`),isMainBranch:t.isMainBranch})),this.selectedBranch||this.selectMainBranch()}catch(e){console.error("Error loading branches:",e)}},async loadProducts(){try{const e=await X.get("/api/falukant/products");this.products=e.data}catch(e){console.error("Error loading products:",e)}},async onBranchSelected(e){this.selectedBranch=e,await this.loadProducts(),this.$nextTick(()=>{var t,n,i,r,s;(t=this.$refs.directorInfo)==null||t.refresh(),(n=this.$refs.saleSection)==null||n.loadInventory(),(i=this.$refs.productionSection)==null||i.loadProductions(),(r=this.$refs.storageSection)==null||r.loadStorageData(),(s=this.$refs.revenueSection)!=null&&s.refresh&&this.$refs.revenueSection.refresh()})},async createBranch(){await this.loadBranches()},upgradeBranch(){this.selectedBranch&&alert(this.$t("falukant.branch.actions.upgradeAlert",{branchId:this.selectedBranch.id}))},selectMainBranch(){const e=this.branches.find(t=>t.isMainBranch)||null;e&&e!==this.selectedBranch&&(this.selectedBranch=e)},calculateProductRevenue(e){if(!e.knowledges||e.knowledges.length===0)return{absolute:0,perMinute:0};const t=e.knowledges[0].knowledge||0,n=e.sellCost,i=n*.6,r=i+(n-i)*(t/100),s=e.productionTime>0?r/e.productionTime:0;return{absolute:r.toFixed(2),perMinute:s.toFixed(2)}},calculateProductProfit(e){const{absolute:t,perMinute:n}=this.calculateProductRevenue(e),i=parseFloat(t),r=6*e.category,s=i-r,a=e.productionTime>0?r/e.productionTime:0,o=parseFloat(n)-a;return{absolute:s.toFixed(2),perMinute:o.toFixed(2)}},handleEvent(e){var t,n,i,r,s,a,o,l,u,c,f,h,m,g;switch(e.event){case"production_ready":(t=this.$refs.productionSection)==null||t.loadProductions(),(n=this.$refs.storageSection)==null||n.loadStorageData(),(i=this.$refs.saleSection)==null||i.loadInventory();break;case"stock_change":(r=this.$refs.storageSection)==null||r.loadStorageData(),(s=this.$refs.saleSection)==null||s.loadInventory();break;case"price_update":(a=this.$refs.revenueSection)==null||a.refresh();break;case"director_death":(o=this.$refs.directorInfo)==null||o.loadDirector();break;case"production_started":(l=this.$refs.productionSection)==null||l.loadProductions();break;case"selled_items":(u=this.$refs.saleSection)==null||u.loadInventory(),(c=this.$refs.storageSection)==null||c.loadStorageData();break;case"falukantUpdateStatus":case"falukantBranchUpdate":(f=this.$refs.statusBar)==null||f.fetchStatus(),(h=this.$refs.productionSection)==null||h.loadProductions(),(m=this.$refs.storageSection)==null||m.loadStorageData(),(g=this.$refs.saleSection)==null||g.loadInventory();break;case"knowledge_update":this.loadProducts(),this.$refs.revenueSection.products=this.products;break;default:console.log("Unhandled event:",e)}},handleDaemonMessage(e){if(e.data!=="ping")try{const t=JSON.parse(e.data);this.handleEvent(t)}catch(t){console.error("Error processing daemon message:",t)}}}},E9={class:"contenthidden"},I9={class:"contentscroll"};function A9(e,t,n,i,r,s){const a=be("StatusBar"),o=be("BranchSelection"),l=be("DirectorInfo"),u=be("SaleSection"),c=be("ProductionSection"),f=be("StorageSection"),h=be("RevenueSection");return S(),_("div",E9,[v(a,{ref:"statusBar"},null,512),d("div",I9,[d("h2",null,p(e.$t("falukant.branch.title")),1),v(o,{branches:r.branches,selectedBranch:r.selectedBranch,onBranchSelected:s.onBranchSelected,onCreateBranch:s.createBranch,onUpgradeBranch:s.upgradeBranch,ref:"branchSelection"},null,8,["branches","selectedBranch","onBranchSelected","onCreateBranch","onUpgradeBranch"]),r.selectedBranch?(S(),He(l,{key:0,branchId:r.selectedBranch.id,ref:"directorInfo"},null,8,["branchId"])):te("",!0),r.selectedBranch?(S(),He(u,{key:1,branchId:r.selectedBranch.id,ref:"saleSection"},null,8,["branchId"])):te("",!0),r.selectedBranch?(S(),He(c,{key:2,branchId:r.selectedBranch.id,products:r.products,ref:"productionSection"},null,8,["branchId","products"])):te("",!0),r.selectedBranch?(S(),He(f,{key:3,branchId:r.selectedBranch.id,ref:"storageSection"},null,8,["branchId"])):te("",!0),r.selectedBranch?(S(),He(h,{key:4,products:r.products,calculateProductRevenue:s.calculateProductRevenue,calculateProductProfit:s.calculateProductProfit,ref:"revenueSection"},null,8,["products","calculateProductRevenue","calculateProductProfit"])):te("",!0)])])}const x9=Oe(T9,[["render",A9],["__scopeId","data-v-ee202ddc"]]),D9={name:"FalukantCreateView",data(){return{falukant:{gender:"male",firstname:"",lastname:""}}},async mounted(){try{if((await X.get("/api/falukant/user")).data){this.$router.push({name:"FalukantOverview"});return}}catch{}await this.randomFirstName(),await this.randomLastName()},methods:{...il(["createFalukant"]),async createFalukant(){const e=await X.post("/api/falukant/user",this.falukant);console.log(e),this.$router.push({name:"FalukantOverview"})},async randomFirstName(){const e=await X.get("/api/falukant/name/randomfirstname/"+this.falukant.gender);this.falukant.firstname=e.data.name,console.log(this.falukant,e)},async randomLastName(){const e=await X.get("/api/falukant/name/randomlastname");this.falukant.lastname=e.data.name,console.log(this.falukant,e)}}},P9=e=>(Cn("data-v-902cce9e"),e=e(),Tn(),e),O9={value:"male"},M9={value:"female"},$9=P9(()=>d("div",null,null,-1)),V9={type:"submit"},L9=["src"];function N9(e,t,n,i,r,s){return S(),_("div",null,[d("h2",null,p(e.$t("falukant.create.title")),1),d("form",{onSubmit:t[6]||(t[6]=ut((...a)=>s.createFalukant&&s.createFalukant(...a),["prevent"]))},[d("label",null,p(e.$t("falukant.create.gender")),1),ie(d("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>r.falukant.gender=a),required:"",onChange:t[1]||(t[1]=(...a)=>s.randomFirstName&&s.randomFirstName(...a))},[d("option",O9,p(e.$t("falukant.create.male")),1),d("option",M9,p(e.$t("falukant.create.female")),1)],544),[[Et,r.falukant.gender]]),$9,d("label",null,p(e.$t("falukant.create.firstname")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=a=>r.falukant.firstname=a),required:""},null,512),[[Le,r.falukant.firstname]]),d("button",{onClick:t[3]||(t[3]=(...a)=>s.randomFirstName&&s.randomFirstName(...a)),type:"button"},p(e.$t("falukant.create.random")),1),d("label",null,p(e.$t("falukant.create.lastname")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[4]||(t[4]=a=>r.falukant.lastname=a),required:""},null,512),[[Le,r.falukant.lastname]]),d("button",{onClick:t[5]||(t[5]=(...a)=>s.randomLastName&&s.randomLastName(...a)),type:"button"},p(e.$t("falukant.create.random")),1),d("button",V9,p(e.$t("falukant.create.submit")),1)],32),d("img",{src:r.falukant.gender=="male"?"/images/mascot/mascot_male.png":"/images/mascot/mascot_female.png",class:"mascot-image"},null,8,L9)])}const R9=Oe(D9,[["render",N9],["__scopeId","data-v-902cce9e"]]),F9={male:{width:195,height:300,positions:{"0-1":{x:161,y:28},"2-3":{x:802,y:28},"4-6":{x:1014,y:28},"7-10":{x:800,y:368},"11-13":{x:373,y:368},"14-16":{x:1441,y:28},"17-20":{x:1441,y:368},"21-30":{x:1014,y:368},"31-45":{x:1227,y:368},"45-55":{x:803,y:687},"55+":{x:1441,y:687}}},female:{width:223,height:298,positions:{"0-1":{x:302,y:66},"2-3":{x:792,y:66},"4-6":{x:62,y:66},"7-10":{x:1034,y:66},"11-13":{x:1278,y:66},"14-16":{x:303,y:392},"17-20":{x:1525,y:392},"21-30":{x:1278,y:392},"31-45":{x:547,y:718},"45-55":{x:1034,y:718},"55+":{x:1525,y:718}}}},B9={name:"FalukantOverviewView",components:{StatusBar:bi},data(){return{falukantUser:null,allStock:[],productions:[]}},computed:{...or(["daemonSocket"]),getAvatarStyle(){var l;if(!this.falukantUser)return{};const{gender:e,age:t}=this.falukantUser.character,n=`/images/falukant/avatar/${e}.png`,i=this.getAgeGroup(t),r=F9[e]||{},s=((l=r.positions)==null?void 0:l[i])||{x:0,y:0},a=r.width||100,o=r.height||100;return{backgroundImage:`url(${n})`,backgroundPosition:`-${s.x}px -${s.y}px`,backgroundSize:"1792px 1024px",width:`${a}px`,height:`${o}px`}},getHouseStyle(){var o;if(console.log(this.falukantUser),!this.falukantUser||!((o=this.falukantUser.userHouse)!=null&&o.houseType))return{};const e="/images/falukant/houses.png",n=this.falukantUser.userHouse.houseType.position-1,i=3,r=300,s=n%i*r,a=Math.floor(n/i)*r;return{backgroundImage:`url(${e})`,backgroundPosition:`-${s}px -${a}px`,backgroundSize:`${i*r}px auto`,width:"300px",height:"300px",border:"1px solid #ccc",borderRadius:"4px",imageRendering:"crisp-edges"}},getAgeColor(e){const t=this.getAgeGroup(e);return t==="child"?"blue":t==="teen"?"green":t==="adult"?"red":"gray"},moneyValue(){var t;const e=(t=this.falukantUser)==null?void 0:t.money;return typeof e=="string"?parseFloat(e):e},locale(){return window.navigator.language||"en-US"}},async mounted(){await this.fetchFalukantUser(),await this.fetchAllStock(),await this.fetchProductions(),this.socket&&(this.socket.on("falukantUserUpdated",this.fetchFalukantUser),this.socket.on("production_ready",this.handleProductionReadyEvent)),this.daemonSocket?this.daemonSocket.addEventListener("message",e=>{try{if(e.data==="ping")return;const t=JSON.parse(e.data);t.event==="production_ready"&&this.handleProductionReadyEvent(t)}catch(t){console.error("Error processing WebSocket message in FalukantOverviewView:",t)}}):console.log("no daemon socket")},beforeUnmount(){this.socket&&(this.socket.off("falukantUserUpdated",this.fetchFalukantUser),this.socket.off("production_ready",this.handleProductionReadyEvent)),this.daemonSocket&&(this.daemonSocket.onmessage=null)},methods:{getAgeGroup(e){return e<=1?"0-1":e<=3?"2-3":e<=6?"4-6":e<=10?"7-10":e<=13?"11-13":e<=16?"14-16":e<=20?"17-20":e<=30?"21-30":e<=45?"31-45":e<=55?"45-55":"55+"},async fetchFalukantUser(){const e=await X.get("/api/falukant/user");if(!e.data){this.$router.push({name:"FalukantCreate"});return}this.falukantUser=e.data},async fetchAllStock(){const t=(await X.get("/api/falukant/stockoverview")).data,n={};for(const i of t){const r=`${i.regionName}__${i.productLabelTr}`;n[r]||(n[r]={regionName:i.regionName,productLabelTr:i.productLabelTr,quantity:0}),n[r].quantity+=i.quantity}this.allStock=Object.values(n)},handleProductionReadyEvent(){this.fetchAllStock(),this.fetchProductions()},openBranch(e){this.$router.push({name:"BranchView",params:{branchId:e}})},async fetchProductions(){try{const e=await X.get("/api/falukant/productions");this.productions=e.data}catch(e){console.error("Error fetching productions:",e)}},formatDate(e){return new Date(e).toLocaleString()}}},z9={class:"overviewcontainer"},U9={key:0},W9={key:1},H9={key:0},j9={key:1},G9=["onClick"],q9={class:"imagecontainer"};function K9(e,t,n,i,r,s){var o,l,u,c,f,h,m;const a=be("StatusBar");return S(),_("div",null,[v(a),d("h2",null,p(e.$t("falukant.overview.title")),1),d("div",z9,[d("div",null,[d("h3",null,p(e.$t("falukant.overview.metadata.title")),1),d("table",null,[d("tr",null,[d("td",null,p(e.$t("falukant.overview.metadata.name")),1),d("td",null,p((o=r.falukantUser)==null?void 0:o.character.definedFirstName.name)+" "+p((l=r.falukantUser)==null?void 0:l.character.definedLastName.name),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.overview.metadata.nobleTitle")),1),d("td",null,p(e.$t("falukant.titles."+((u=r.falukantUser)==null?void 0:u.character.gender)+"."+((c=r.falukantUser)==null?void 0:c.character.nobleTitle.labelTr))),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.overview.metadata.money")),1),d("td",null,p(s.moneyValue!=null?s.moneyValue.toLocaleString(s.locale,{style:"currency",currency:"EUR"}):"---"),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.overview.metadata.age")),1),d("td",null,p((f=r.falukantUser)==null?void 0:f.character.age),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.overview.metadata.mainbranch")),1),d("td",null,p((h=r.falukantUser)==null?void 0:h.mainBranchRegion.name),1)])])]),d("div",null,[d("h3",null,p(e.$t("falukant.overview.productions.title")),1),r.productions.length>0?(S(),_("table",U9,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.sale.region")),1),d("th",null,p(e.$t("falukant.branch.production.product")),1),d("th",null,p(e.$t("falukant.branch.production.quantity")),1),d("th",null,p(e.$t("falukant.branch.production.ending")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.productions,(g,y)=>(S(),_("tr",{key:y},[d("td",null,p(g.cityName),1),d("td",null,p(e.$t(`falukant.product.${g.productName}`)),1),d("td",null,p(g.quantity),1),d("td",null,p(s.formatDate(g.endTimestamp)),1)]))),128))])])):(S(),_("p",W9,p(e.$t("falukant.branch.production.noProductions")),1))]),d("div",null,[d("h3",null,p(e.$t("falukant.overview.stock.title")),1),r.allStock.length>0?(S(),_("table",H9,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.branch.sale.region")),1),d("th",null,p(e.$t("falukant.branch.sale.product")),1),d("th",null,p(e.$t("falukant.branch.sale.quantity")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.allStock,(g,y)=>(S(),_("tr",{key:y},[d("td",null,p(g.regionName),1),d("td",null,p(e.$t(`falukant.product.${g.productLabelTr}`)),1),d("td",null,p(g.quantity),1)]))),128))])])):(S(),_("p",j9,p(e.$t("falukant.branch.sale.noInventory")),1))]),d("div",null,[d("h3",null,p(e.$t("falukant.overview.branches.title")),1),d("table",null,[(S(!0),_(U,null,we((m=r.falukantUser)==null?void 0:m.branches,g=>(S(),_("tr",{key:g.id},[d("td",null,[d("span",{onClick:y=>s.openBranch(g.id),class:"link"},p(g.region.name),9,G9)]),d("td",null,p(e.$t(`falukant.overview.branches.level.${g.branchType.labelTr}`)),1)]))),128))])])]),d("div",q9,[d("div",{style:ft(s.getAvatarStyle),class:"avatar"},null,4),d("div",{style:ft(s.getHouseStyle),class:"house"},null,4)])])}const Y9=Oe(B9,[["render",K9],["__scopeId","data-v-688527b3"]]),J9={name:"MoneyHistoryView",components:{StatusBar:bi},data(){return{filter:"",moneyHistory:{data:[],currentPage:1,totalPages:1}}},async mounted(){await this.fetchMoneyHistory(1)},methods:{async fetchMoneyHistory(e){try{const t=await X.post("/api/falukant/moneyhistory",{page:e,filter:this.filter});this.moneyHistory=t.data}catch(t){console.error("Error fetching money history:",t)}}}},X9={class:"moneyflow"},Z9={class:"filter-section"},Q9={class:"pagination"};function e7(e,t,n,i,r,s){const a=be("StatusBar");return S(),_("div",X9,[v(a,{ref:"statusBar"},null,512),d("h2",null,p(e.$t("falukant.moneyHistory.title")),1),d("div",Z9,[d("label",null,p(e.$t("falukant.moneyHistory.filter")),1),ie(d("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>r.filter=o),type:"text"},null,512),[[Le,r.filter]]),d("button",{onClick:t[1]||(t[1]=o=>s.fetchMoneyHistory(1))},p(e.$t("falukant.moneyHistory.search")),1)]),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.moneyHistory.activity")),1),d("th",null,p(e.$t("falukant.moneyHistory.moneyBefore")),1),d("th",null,p(e.$t("falukant.moneyHistory.moneyAfter")),1),d("th",null,p(e.$t("falukant.moneyHistory.changeValue")),1),d("th",null,p(e.$t("falukant.moneyHistory.time")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.moneyHistory.data,(o,l)=>(S(),_("tr",{key:l},[d("td",null,p(e.$t(`falukant.moneyHistory.activities.${o.activity}`)),1),d("td",null,p(o.moneyBefore),1),d("td",null,p(o.moneyAfter),1),d("td",null,p(o.changeValue),1),d("td",null,p(new Date(o.time).toLocaleString()),1)]))),128))])]),d("div",Q9,[r.moneyHistory.currentPage>1?(S(),_("button",{key:0,onClick:t[2]||(t[2]=o=>s.fetchMoneyHistory(r.moneyHistory.currentPage-1))},p(e.$t("falukant.moneyHistory.prev")),1)):te("",!0),d("span",null,p(r.moneyHistory.currentPage)+" / "+p(r.moneyHistory.totalPages),1),r.moneyHistory.currentPage<r.moneyHistory.totalPages?(S(),_("button",{key:1,onClick:t[3]||(t[3]=o=>s.fetchMoneyHistory(r.moneyHistory.currentPage+1))},p(e.$t("falukant.moneyHistory.next")),1)):te("",!0)])])}const t7=Oe(J9,[["render",e7],["__scopeId","data-v-5b6fc715"]]),n7={name:"MessageDialog",components:{DialogWidget:hn},data(){return{message:"",buttons:[{text:"message.close",action:"close"}]}},computed:{translatedMessage(){return this.message.startsWith("tr:")?this.$t(this.message.substring(3)):this.message}},methods:{open(e){this.message=e,this.$refs.dialog.open()},close(){this.$refs.dialog.close()}}},i7={class:"message-content"};function r7(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"message.title","show-close":!0,buttons:r.buttons,modal:!0,width:"25em",height:"15em",name:"MessageDialog",isTitleTranslated:!0},{default:ze(()=>[d("div",i7,[d("p",null,p(s.translatedMessage),1)])]),_:1},8,["buttons"])}const Cf=Oe(n7,[["render",r7],["__scopeId","data-v-1436a70a"]]),s7={name:"ErrorDialog",components:{DialogWidget:hn},data(){return{errorMessage:"",buttons:[{text:"error.close",action:"close"}]}},computed:{translatedErrorMessage(){return this.errorMessage.startsWith("tr:")?this.$t(this.errorMessage.substring(3)):this.errorMessage}},methods:{open(e){this.errorMessage=e,this.$refs.dialog.open()},close(){this.$refs.dialog.close()}}},a7={class:"error-content"};function o7(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"error.title","show-close":!0,buttons:r.buttons,modal:!0,width:"25em",height:"15em",name:"ErrorDialog",isTitleTranslated:!0},{default:ze(()=>[d("div",a7,[d("p",null,p(s.translatedErrorMessage),1)])]),_:1},8,["buttons"])}const Tf=Oe(s7,[["render",o7],["__scopeId","data-v-1b7d9c52"]]),l7={name:"FamilyView",components:{StatusBar:bi,MessageDialog:Cf,ErrorDialog:Tf},data(){return{relationships:[],children:[],lovers:[],deathPartners:[],proposals:[],selectedProposalId:null,gifts:[],selectedGiftId:null,moodAffects:[],characterAffects:[]}},computed:{...or(["socket","daemonSocket"])},async mounted(){await this.loadFamilyData(),await this.loadGifts(),await this.loadMoodAffects(),await this.loadCharacterAffects(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},methods:{async loadFamilyData(){try{const e=await X.get("/api/falukant/family");this.relationships=e.data.relationships,this.children=e.data.children,this.lovers=e.data.lovers,this.proposals=e.data.possiblePartners,this.deathPartners=e.data.deathPartners}catch(e){console.error("Error loading family data:",e)}},showChildDetails(e){console.log("Show details for child:",e)},formatCost(e){return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},getEffect(e){var o;const n=this.relationships[0].character2,i=((o=n.mood)==null?void 0:o.id)??n.mood_id,r=e.moodsAffects.find(l=>l.mood_id===i),s=r?r.suitability:0;let a=0;for(const l of n.characterTrait){const u=e.charactersAffects.find(c=>c.trait_id===l.id);u&&u.suitability>a&&(a=u.suitability)}return Math.round((s+a)/2)},async acceptProposal(){await X.post("/api/falukant/family/acceptmarriageproposal",{proposalId:this.selectedProposalId}),this.loadFamilyData()},async loadGifts(){const e=await X.get("/api/falukant/family/gifts");this.gifts=e.data},async sendGift(){if(!this.selectedGiftId){this.$root.$refs.errorDialog.open("tr:falukant.family.sendgift.error.nogiftselected");return}try{await X.post("/api/falukant/family/gift",{giftId:this.selectedGiftId}),this.loadFamilyData(),this.$root.$refs.messageDialog.open("tr:falukant.family.sendgift.success")}catch(e){console.log(e.response),e.response.status===412?this.$root.$refs.errorDialog.open(`tr:falukant.family.sendgift.error.${e.response.data.error}`):this.$root.$refs.errorDialog.open("tr:falukant.family.sendgift.error.generic")}},async loadMoodAffects(){try{const e=await X.get("/api/falukant/mood/affect");this.moodAffects=e.data}catch(e){console.error(e)}},async loadCharacterAffects(){try{const e=await X.get("/api/falukant/character/affect");this.characterAffects=e.data}catch(e){console.error(e)}},progressColor(e){const t=Math.max(0,Math.min(100,e))/100,n=Math.round(255*(1-t)),i=Math.round(255*t);return`rgb(${n}, ${i}, 0)`},jumpToPartyForm(){this.$router.push({name:"ReputationView",query:{tab:"party"}})},jumpToChurchForm(){this.$router.push({name:"ChurchView"})},handleDaemonMessage(e){if(e.data==="ping")return;JSON.parse(e.data).event==="children_update"&&this.loadFamilyData()},getEffect(e){var a;const t=this.relationships[0].character2,n=((a=t.mood)==null?void 0:a.id)??t.mood_id,i=e.moodsAffects.find(o=>o.mood_id===n),r=i?i.suitability:0;let s=0;for(const o of t.traits){const l=e.charactersAffects.find(u=>u.trait_id===o.id);l&&l.suitability>s&&(s=l.suitability)}return Math.round((r+s)/2)}}},u7=e=>(Cn("data-v-f927914f"),e=e(),Tn(),e),c7={class:"contenthidden"},d7={class:"contentscroll"},f7={class:"spouse-section"},h7={key:0},m7={class:"relationship"},g7={key:0},p7={class:"progress"},v7={key:1,colspan:"2"},y7={key:0},b7={class:"spouse-table"},k7=u7(()=>d("th",null,null,-1)),w7=["value"],S7={key:1},_7={class:"spouse-table"},C7=["value"],T7={key:0},E7={class:"children-section"},I7={key:0},A7={key:0},x7={key:1},D7=["onClick"],P7={key:1},O7={class:"lovers-section"},M7={key:0},$7={key:1};function V7(e,t,n,i,r,s){const a=be("StatusBar");return S(),_("div",c7,[v(a),d("div",d7,[d("h2",null,p(e.$t("falukant.family.title")),1),d("div",f7,[d("h3",null,p(e.$t("falukant.family.spouse.title")),1),r.relationships.length>0?(S(),_("div",h7,[d("div",m7,[d("table",null,[d("tr",null,[d("td",null,p(e.$t("falukant.family.relationships.name")),1),d("td",null,p(e.$t("falukant.titles."+r.relationships[0].character2.gender+"."+r.relationships[0].character2.nobleTitle))+" "+p(r.relationships[0].character2.firstName),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.family.spouse.age")),1),d("td",null,p(r.relationships[0].character2.age),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.family.spouse.mood")),1),d("td",null,p(e.$t(`falukant.mood.${r.relationships[0].character2.mood.tr}`)),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.family.spouse.status")),1),d("td",null,p(e.$t("falukant.family.statuses."+r.relationships[0].relationshipType)),1)]),r.relationships[0].relationshipType==="wooing"?(S(),_("tr",g7,[d("td",null,p(e.$t("falukant.family.spouse.progress")),1),d("td",null,[d("div",p7,[d("div",{class:"progress-inner",style:ft({width:r.relationships[0].progress+"%",backgroundColor:s.progressColor(r.relationships[0].progress)})},null,4)])])])):te("",!0),r.relationships[0].relationshipType==="engaged"?(S(),_("tr",v7,[d("button",{onClick:t[0]||(t[0]=(...o)=>s.jumpToPartyForm&&s.jumpToPartyForm(...o))},p(e.$t("falukant.family.spouse.jumpToPartyForm")),1)])):te("",!0)]),d("ul",null,[(S(!0),_(U,null,we(r.relationships[0].character2.traits,o=>(S(),_("li",{key:o.id},p(e.$t(`falukant.character.${o.tr}`)),1))),128))])]),r.relationships[0].relationshipType==="wooing"?(S(),_("div",y7,[d("h3",null,p(e.$t("falukant.family.spouse.wooing.gifts")),1),d("table",b7,[d("thead",null,[d("tr",null,[k7,d("th",null,p(e.$t("falukant.family.spouse.wooing.gift")),1),d("th",null,p(e.$t("falukant.family.spouse.wooing.effect")),1),d("th",null,p(e.$t("falukant.family.spouse.wooing.value")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.gifts,o=>(S(),_("tr",{key:o.id},[d("td",null,[ie(d("input",{type:"radio",name:"gift",value:o.id,"onUpdate:modelValue":t[1]||(t[1]=l=>r.selectedGiftId=l)},null,8,w7),[[Eb,r.selectedGiftId]])]),d("td",null,p(e.$t(`falukant.gifts.${o.name}`)),1),d("td",null,p(s.getEffect(o)),1),d("td",null,p(s.formatCost(o.cost)),1)]))),128))])]),d("div",null,[d("button",{onClick:t[2]||(t[2]=(...o)=>s.sendGift&&s.sendGift(...o)),class:"button"},p(e.$t("falukant.family.spouse.wooing.sendGift")),1)])])):te("",!0)])):r.proposals&&r.proposals.length>0?(S(),_("div",S7,[d("table",_7,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.family.spouse.select")),1),d("th",null,p(e.$t("falukant.family.spouse.name")),1),d("th",null,p(e.$t("falukant.family.spouse.age")),1),d("th",null,p(e.$t("falukant.family.spouse.marriagecost")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.proposals,o=>(S(),_("tr",{key:o.id},[d("td",null,[ie(d("input",{type:"radio",name:"spouse",value:o.proposedCharacterId,"onUpdate:modelValue":t[3]||(t[3]=l=>r.selectedProposalId=l)},null,8,C7),[[Eb,r.selectedProposalId]])]),d("td",null,p(e.$t(`falukant.titles.${o.proposedCharacterGender}.${o.proposedCharacterNobleTitle}`))+" "+p(o.proposedCharacterName),1),d("td",null,p(o.proposedCharacterAge),1),d("td",null,p(s.formatCost(o.cost)),1)]))),128))])]),d("div",null,p(e.$t("falukant.family.spouse.notice")),1),r.selectedProposalId?(S(),_("div",T7,[d("button",{onClick:t[4]||(t[4]=(...o)=>s.acceptProposal&&s.acceptProposal(...o))},p(e.$t("falukant.family.spouse.accept")),1)])):te("",!0)])):te("",!0)]),d("div",E7,[d("h3",null,p(e.$t("falukant.family.children.title")),1),r.children&&r.children.length>0?(S(),_("div",I7,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.family.children.name")),1),d("th",null,p(e.$t("falukant.family.children.age")),1),d("th",null,p(e.$t("falukant.family.children.actions")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.children,(o,l)=>(S(),_("tr",{key:l},[o.hasName?(S(),_("td",A7,p(o.name),1)):(S(),_("td",x7,[d("button",{onClick:t[5]||(t[5]=(...u)=>s.jumpToChurchForm&&s.jumpToChurchForm(...u))},p(e.$t("falukant.family.children.baptism")),1)])),d("td",null,p(o.age),1),d("td",null,[d("button",{onClick:u=>s.showChildDetails(o)},p(e.$t("falukant.family.children.detailButton")),9,D7)])]))),128))])])])):(S(),_("div",P7,[d("p",null,p(e.$t("falukant.family.children.none")),1)]))]),d("div",O7,[d("h3",null,p(e.$t("falukant.family.lovers.title")),1),r.lovers&&r.lovers.length>0?(S(),_("div",M7,[d("ul",null,[(S(!0),_(U,null,we(r.lovers,(o,l)=>(S(),_("li",{key:l},p(e.$t("falukant.titles."+o.gender+"."+o.title))+" "+p(o.name)+" ("+p(e.$t("falukant.family.lovers.affection"))+": "+p(o.affection)+") ",1))),128))])])):(S(),_("div",$7,[d("p",null,p(e.$t("falukant.family.lovers.none")),1)]))])])])}const L7=Oe(l7,[["render",V7],["__scopeId","data-v-f927914f"]]),N7={name:"HouseView",components:{StatusBar:bi},data(){return{userHouse:null,houseType:{},status:{},buyableHouses:[],currency:"€"}},computed:{...or(["socket","daemonSocket"]),allRenovated(){return Object.values(this.status).every(e=>e>=100)}},methods:{async loadData(){try{const e=await X.get("/api/falukant/houses");this.userHouse=e.data,this.houseType=this.userHouse.houseType;const{roofCondition:t,wallCondition:n,floorCondition:i,windowCondition:r}=this.userHouse;this.status={roofCondition:t,wallCondition:n,floorCondition:i,windowCondition:r};const s=await X.get("/api/falukant/houses/buyable");this.buyableHouses=s.data}catch(e){console.error("Error loading house data",e)}},houseStyle(e,t){const i=t,r=e-1,s=r%3*i,a=Math.floor(r/3)*i;return{backgroundImage:'url("/images/falukant/houses.png")',backgroundPosition:`-${s}px -${a}px`,backgroundSize:`${3*i}px auto`}},formatPrice(e){return new Intl.NumberFormat("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},getRenovationCost(e,t){const n=this.userHouse.houseType.cost||0,r={roofCondition:.25,wallCondition:.25,floorCondition:.25,windowCondition:.25}[e]||0,a=(100-t)/100*n*r;return this.formatPrice(a)},getAllRenovationCost(){const e=Object.keys(this.status).reduce((t,n)=>{const i=parseFloat(this.getRenovationCost(n,this.status[n]).replace(/\./g,"").replace(",","."));return t+(isNaN(i)?0:i)},0);return this.formatPrice(e*.8)},getWorth(){const e=Object.values(this.status);if(!e.length)return this.formatPrice(0);const t=e.reduce((i,r)=>i+r,0)/e.length,n=this.houseType.cost||0;return this.formatPrice(n*t/100*.8)},buyCost(e){const t=(e.roofCondition+e.wallCondition+e.floorCondition+e.windowCondition)/4;return this.formatPrice(e.houseType.cost*t/100)},async renovate(e){try{await X.post("/api/falukant/houses/renovate",{element:e}),await this.loadData()}catch(t){console.error("Error renovating",t)}},async renovateAll(){try{await X.post("/api/falukant/houses/renovate-all"),await this.loadData()}catch(e){console.error("Error renovating all",e)}},async sellHouse(){try{await X.post("/api/falukant/houses/sell"),await this.loadData()}catch(e){console.error("Error selling house",e)}},async buyHouse(e){try{await X.post("/api/falukant/houses",{houseId:e}),await this.loadData()}catch(t){console.error("Error buying house",t)}},handleDaemonMessage(e){try{JSON.parse(e.data).event==="houseupdated"&&this.loadData()}catch{}}},async mounted(){await this.loadData(),this.socket&&this.socket.on("falukantHouseUpdate",this.loadData),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},beforeUnmount(){this.socket&&this.socket.off("falukantHouseUpdate",this.loadData),this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)}},R7=e=>(Cn("data-v-63561be4"),e=e(),Tn(),e),F7={class:"house-view"},B7={class:"existing-house"},z7={class:"status-panel"},U7=R7(()=>d("th",null,null,-1)),W7=["onClick"],H7=["disabled"],j7={class:"buyable-houses"},G7={class:"houses-list"},q7={class:"house-info"},K7=["onClick"];function Y7(e,t,n,i,r,s){const a=be("StatusBar");return S(),_("div",F7,[v(a),d("h2",null,p(e.$t("falukant.house.title")),1),d("div",B7,[d("div",{style:ft(r.houseType?s.houseStyle(r.houseType.position,341):{}),class:"house"},null,4),d("div",z7,[d("h3",null,p(e.$t("falukant.house.statusreport")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.house.element")),1),d("th",null,p(e.$t("falukant.house.state")),1),U7])]),d("tbody",null,[(S(!0),_(U,null,we(r.status,(o,l)=>(S(),_("tr",{key:l},[d("td",null,p(e.$t(`falukant.house.status.${l}`)),1),d("td",null,p(o)+"%",1),d("td",null,[o<100?(S(),_("button",{key:0,onClick:u=>s.renovate(l)},p(e.$t("falukant.house.renovate"))+" ("+p(s.getRenovationCost(l,o))+") ",9,W7)):te("",!0)])]))),128)),d("tr",null,[d("td",null,p(e.$t("falukant.house.worth")),1),d("td",null,p(s.getWorth())+" "+p(r.currency),1),d("td",null,[d("button",{onClick:t[0]||(t[0]=(...o)=>s.renovateAll&&s.renovateAll(...o)),disabled:s.allRenovated},p(e.$t("falukant.house.renovateAll"))+" ("+p(s.getAllRenovationCost())+") ",9,H7),d("button",{onClick:t[1]||(t[1]=(...o)=>s.sellHouse&&s.sellHouse(...o))},p(e.$t("falukant.house.sell")),1)])])])])])]),d("div",j7,[d("h3",null,p(e.$t("falukant.house.buyablehouses")),1),d("div",G7,[(S(!0),_(U,null,we(r.buyableHouses,o=>(S(),_("div",{key:o.id,class:"house-item"},[d("div",{style:ft(o.houseType?s.houseStyle(o.houseType.position,114):{}),class:"house-preview"},null,4),d("div",q7,[d("h4",null,p(e.$t(`falukant.house.type.${o.houseType.labelTr}`)),1),d("table",null,[d("tbody",null,[["roofCondition","wallCondition","floorCondition","windowCondition"].includes(e.prop)?(S(!0),_(U,{key:0},we(o,(l,u)=>(S(),_("tr",{key:u},[d("td",null,p(e.$t(`falukant.house.status.${u}`)),1),d("td",null,p(l)+"%",1)]))),128)):te("",!0)])]),d("div",null,p(e.$t("falukant.house.price"))+": "+p(s.buyCost(o)),1),d("button",{onClick:l=>s.buyHouse(o.id)},p(e.$t("falukant.house.buy")),9,K7)])]))),128))])])])}const J7=Oe(N7,[["render",Y7],["__scopeId","data-v-63561be4"]]),X7={name:"NobilityView",components:{StatusBar:bi,SimpleTabs:Ya},data(){return{activeTab:"overview",tabs:[{value:"overview",label:"falukant.nobility.tabs.overview"},{value:"advance",label:"falukant.nobility.tabs.advance"}],current:{labelTr:"",requirements:[],charactersWithNobleTitle:[]},next:{labelTr:"",requirements:[]},isAdvancing:!1}},computed:{...or(["daemonSocket","falukantData"]),gender(){var e;return((e=this.current.charactersWithNobleTitle[0])==null?void 0:e.gender)||"male"},canAdvance(){return!0}},async mounted(){await this.loadNobility(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},beforeUnmount(){this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)},methods:{async loadNobility(){try{const{data:e}=await X.get("/api/falukant/nobility");this.current=e.current,this.next=e.next}catch(e){console.error("Error loading nobility:",e)}},async applyAdvance(){if(!(!this.canAdvance||this.isAdvancing)){this.isAdvancing=!0;try{await X.post("/api/falukant/nobility/advance"),await this.loadNobility()}catch(e){console.error("Error advancing nobility:",e)}finally{this.isAdvancing=!1}}},handleDaemonMessage(e){if(e.data==="ping")return;const t=JSON.parse(e.data);["nobilityChange","moneyChange"].includes(t.event)&&this.loadNobility()},formatCost(e){return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},async applyAdvance(){await X.post("/api/falukant/nobility")}}},Z7={class:"contenthidden"},Q7={class:"contentscroll"},eY={key:0},tY={class:"nobility-section"},nY={key:1},iY={class:"advance-section"},rY={class:"prerequisites"},sY=["disabled"],aY={key:0},oY={key:1};function lY(e,t,n,i,r,s){const a=be("StatusBar"),o=be("SimpleTabs");return S(),_("div",Z7,[v(a),d("div",Q7,[d("h2",null,p(e.$t("falukant.nobility.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=l=>r.activeTab=l),tabs:r.tabs},null,8,["modelValue","tabs"]),r.activeTab==="overview"?(S(),_("div",eY,[d("div",tY,[d("p",null,[d("strong",null,p(e.$t(`falukant.titles.${s.gender}.${r.current.labelTr}`)),1)])])])):r.activeTab==="advance"?(S(),_("div",nY,[d("div",iY,[d("p",null,[ge(p(e.$t("falukant.nobility.nextTitle"))+": ",1),d("strong",null,p(e.$t(`falukant.titles.${s.gender}.${r.next.labelTr}`)),1)]),d("ul",rY,[(S(!0),_(U,null,we(r.next.requirements,l=>(S(),_("li",{key:l.titleId},p(e.$t(`falukant.nobility.requirement.${l.requirementType}`,{amount:s.formatCost(l.requirementValue)})),1))),128))]),d("button",{onClick:t[1]||(t[1]=(...l)=>s.applyAdvance&&s.applyAdvance(...l)),class:"button",disabled:!s.canAdvance||r.isAdvancing},[r.isAdvancing?(S(),_("span",oY,p(e.$t("falukant.nobility.advance.processing")),1)):(S(),_("span",aY,p(e.$t("falukant.nobility.advance.confirm")),1))],8,sY),d("span",null,"->"+p(s.canAdvance)+", "+p(r.isAdvancing)+"<-",1)])])):te("",!0)])])}const uY=Oe(X7,[["render",lY],["__scopeId","data-v-6eac8042"]]),cY={name:"ReputationView",components:{StatusBar:bi,Multiselect:is},data(){return{activeTab:"overview",tabs:[{value:"overview",label:"falukant.reputation.overview.title"},{value:"party",label:"falukant.reputation.party.title"}],newPartyView:!1,newPartyTypeId:null,partyTypes:[],musicId:null,musicTypes:[],banquetteId:null,banquetteTypes:[],nobilityTitles:[],selectedNobilityIds:[],servantRatio:50,inProgressParties:[],completedParties:[]}},methods:{toggleNewPartyView(){this.newPartyView=!this.newPartyView},async loadPartyTypes(){var t,n;const{data:e}=await X.get("/api/falukant/party/types");this.partyTypes=e.partyTypes,this.musicTypes=e.musicTypes,this.banquetteTypes=e.banquetteTypes,this.musicId=(t=this.musicTypes[0])==null?void 0:t.id,this.banquetteId=(n=this.banquetteTypes[0])==null?void 0:n.id},async loadParties(){const{data:e}=await X.get("/api/falukant/party"),t=new Date;t.setDate(t.getDate()-1),this.inProgressParties=e.filter(n=>new Date(n.createdAt)>t),this.completedParties=e.filter(n=>new Date(n.createdAt)<=t)},async loadNobilityTitles(){this.nobilityTitles=await X.get("/api/falukant/nobility/titels").then(e=>e.data)},async orderParty(){await X.post("/api/falukant/party",{partyTypeId:this.newPartyTypeId,musicId:this.musicId,banquetteId:this.banquetteId,nobilityIds:this.selectedNobilityIds.map(e=>e.id??e),servantRatio:this.servantRatio}),this.toggleNewPartyView()}},computed:{formattedCost(){var a;const e=this.partyTypes.find(o=>o.id===this.newPartyTypeId)||{},t=this.musicTypes.find(o=>o.id===this.musicId)||{},n=this.banquetteTypes.find(o=>o.id===this.banquetteId)||{};let i=(e.cost||0)+(t.cost||0)+(n.cost||0);i+=(50/this.servantRatio-1)*1e3;let r=this.selectedNobilityIds.reduce((o,l)=>{const u=this.nobilityTitles.find(c=>c.id===l);return o+((u==null?void 0:u.id)^5)*1e3},0);i+=r;const s=((a=this.$i18n)==null?void 0:a.locale)||"de-DE";return i.toLocaleString(s,{minimumFractionDigits:2,maximumFractionDigits:2})}},async mounted(){var t,n;const e=(n=(t=this.$route)==null?void 0:t.query)==null?void 0:n.tab;["overview","party"].includes(e)&&(this.activeTab=e),await this.loadPartyTypes(),await this.loadNobilityTitles(),await this.loadParties()}},dY=e=>(Cn("data-v-1f285bd7"),e=e(),Tn(),e),fY={class:"reputation-view"},hY={class:"simple-tabs"},mY=["onClick"],gY={class:"tab-content"},pY={key:0},vY=dY(()=>d("p",null,"Deine aktuelle Reputation: …",-1)),yY=[vY],bY={key:1},kY={key:0,class:"new-party-form"},wY=["value"],SY={key:0,class:"party-options"},_Y=["value"],CY=["value"],TY={class:"multiselect__tag"},EY=["onClick"],IY={class:"total-cost"},AY={class:"separator-class"},xY={class:"separator-class"};function DY(e,t,n,i,r,s){const a=be("StatusBar"),o=be("multiselect");return S(),_("div",fY,[v(a),d("h2",null,p(e.$t("falukant.reputation.title")),1),d("div",hY,[(S(!0),_(U,null,we(r.tabs,l=>(S(),_("button",{key:l.value,class:Dt(["simple-tab",{active:r.activeTab===l.value}]),onClick:u=>r.activeTab=l.value},p(e.$t(l.label)),11,mY))),128))]),d("div",gY,[r.activeTab==="overview"?(S(),_("div",pY,yY)):r.activeTab==="party"?(S(),_("div",bY,[d("button",{onClick:t[0]||(t[0]=(...l)=>s.toggleNewPartyView&&s.toggleNewPartyView(...l))},p(e.$t("falukant.reputation.party.newpartyview."+(r.newPartyView?"close":"open"))),1),r.newPartyView?(S(),_("div",kY,[d("label",null,[ge(p(e.$t("falukant.reputation.party.newpartyview.type"))+": ",1),ie(d("select",{"onUpdate:modelValue":t[1]||(t[1]=l=>r.newPartyTypeId=l)},[(S(!0),_(U,null,we(r.partyTypes,l=>(S(),_("option",{key:l.id,value:l.id},p(e.$t("falukant.party.type."+l.tr)),9,wY))),128))],512),[[Et,r.newPartyTypeId,void 0,{number:!0}]])]),r.newPartyTypeId?(S(),_("div",SY,[d("label",null,[ge(p(e.$t("falukant.reputation.party.music.label"))+": ",1),ie(d("select",{"onUpdate:modelValue":t[2]||(t[2]=l=>r.musicId=l)},[(S(!0),_(U,null,we(r.musicTypes,l=>(S(),_("option",{key:l.id,value:l.id},p(e.$t(`falukant.reputation.party.music.${l.tr}`)),9,_Y))),128))],512),[[Et,r.musicId,void 0,{number:!0}]])]),d("label",null,[ge(p(e.$t("falukant.reputation.party.banquette.label"))+": ",1),ie(d("select",{"onUpdate:modelValue":t[3]||(t[3]=l=>r.banquetteId=l)},[(S(!0),_(U,null,we(r.banquetteTypes,l=>(S(),_("option",{key:l.id,value:l.id},p(e.$t(`falukant.reputation.party.banquette.${l.tr}`)),9,CY))),128))],512),[[Et,r.banquetteId,void 0,{number:!0}]])]),d("label",null,[ge(p(e.$t("falukant.reputation.party.servants.label"))+": ",1),ie(d("input",{type:"number","onUpdate:modelValue":t[4]||(t[4]=l=>r.servantRatio=l),min:"1",max:"50"},null,512),[[Le,r.servantRatio,void 0,{number:!0}]]),ge(" "+p(e.$t("falukant.reputation.party.servants.perPersons")),1)]),d("label",null,[ge(p(e.$t("falukant.reputation.party.esteemedInvites.label"))+": ",1),v(o,{modelValue:r.selectedNobilityIds,"onUpdate:modelValue":t[5]||(t[5]=l=>r.selectedNobilityIds=l),options:r.nobilityTitles,multiple:!0,"track-by":"id",label:"labelTr","close-on-select":!1,"preserve-search":!0,placeholder:""},{option:ze(({option:l})=>[ge(p(e.$t("falukant.titles.male."+l.labelTr)),1)]),tag:ze(({option:l,remove:u})=>[d("span",TY,[ge(p(e.$t("falukant.titles.male."+l.labelTr))+" ",1),d("i",{onClick:c=>u(l.id),class:"multiselect__tag-icon"},null,8,EY)])]),_:1},8,["modelValue","options"])]),d("p",IY,p(e.$t("falukant.reputation.party.totalCost"))+": "+p(s.formattedCost),1)])):te("",!0),d("div",null,[d("button",{onClick:t[6]||(t[6]=l=>s.orderParty())},p(e.$t("falukant.reputation.party.order")),1)])])):te("",!0),d("div",AY,[d("h3",null,p(e.$t("falukant.reputation.party.inProgress")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.reputation.party.type")),1),d("th",null,p(e.$t("falukant.reputation.party.music.label")),1),d("th",null,p(e.$t("falukant.reputation.party.banquette.label")),1),d("th",null,p(e.$t("falukant.reputation.party.servants.label")),1),d("th",null,p(e.$t("falukant.reputation.party.cost")),1),d("th",null,p(e.$t("falukant.reputation.party.date")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.inProgressParties,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t("falukant.party.type."+l.partyType.tr)),1),d("td",null,p(e.$t("falukant.reputation.party.music."+l.musicType.tr)),1),d("td",null,p(e.$t("falukant.reputation.party.banquette."+l.banquetteType.tr)),1),d("td",null,p(l.servantRatio),1),d("td",null,p(l.cost.toLocaleString(e.$i18n.locale,{minimumFractionDigits:2,maximumFractionDigits:2})),1),d("td",null,p(new Date(l.createdAt).toLocaleString()),1)]))),128))])])]),d("div",xY,[d("h3",null,p(e.$t("falukant.reputation.party.completed")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.reputation.party.type")),1),d("th",null,p(e.$t("falukant.reputation.party.music.label")),1),d("th",null,p(e.$t("falukant.reputation.party.banquette.label")),1),d("th",null,p(e.$t("falukant.reputation.party.servants.label")),1),d("th",null,p(e.$t("falukant.reputation.party.cost")),1),d("th",null,p(e.$t("falukant.reputation.party.date")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.completedParties,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t("falukant.party.type."+l.partyType.tr)),1),d("td",null,p(e.$t("falukant.reputation.party.music."+l.musicType.tr)),1),d("td",null,p(e.$t("falukant.reputation.party.banquette."+l.banquetteType.tr)),1),d("td",null,p(l.servantRatio),1),d("td",null,p(l.cost.toLocaleString(e.$i18n.locale,{minimumFractionDigits:2,maximumFractionDigits:2})),1),d("td",null,p(new Date(l.createdAt).toLocaleString()),1)]))),128))])])])])):te("",!0)])])}const PY=Oe(cY,[["render",DY],["__scopeId","data-v-1f285bd7"]]),OY={name:"ChurchView",components:{StatusBar:bi,MessageDialog:Cf,ErrorDialog:Tf,SimpleTabs:Ya},data(){return{activeTab:"baptism",tabs:[{value:"baptism",label:"falukant.church.baptism.title"}],baptismList:[]}},async mounted(){await this.loadNotBaptisedChildren()},methods:{async loadNotBaptisedChildren(){try{const{data:e}=await X.get("/api/falukant/family/notbaptised");this.baptismList=e}catch(e){console.error(e)}},async newName(e){try{const{data:t}=await X.get(`/api/falukant/name/randomfirstname/${e.gender}`);e.proposedFirstName=t.name??t}catch(t){console.error(t)}},async baptise(e){try{await X.post("/api/falukant/church/baptise",{characterId:e.id,firstName:e.proposedFirstName}),this.loadNotBaptisedChildren(),this.$root.$refs.messageDialog.open("tr:falukant.church.baptism.success")}catch(t){console.error(t),this.$root.$refs.errorDialog.open("tr:falukant.church.baptism.error")}}}},MY=e=>(Cn("data-v-245b2990"),e=e(),Tn(),e),$Y={class:"contenthidden"},VY={class:"contentscroll"},LY={class:"tab-content"},NY={key:0},RY=MY(()=>d("th",null,null,-1)),FY=["onUpdate:modelValue"],BY=["onClick"],zY=["onClick"];function UY(e,t,n,i,r,s){const a=be("StatusBar"),o=be("SimpleTabs");return S(),_("div",$Y,[v(a),d("div",VY,[d("h2",null,p(e.$t("falukant.church.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=l=>r.activeTab=l),tabs:r.tabs},null,8,["modelValue","tabs"]),d("div",LY,[r.activeTab==="baptism"?(S(),_("div",NY,[d("h3",null,p(e.$t("falukant.church.baptism.title")),1),d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.church.baptism.table.gender")),1),d("th",null,p(e.$t("falukant.church.baptism.table.name")),1),d("th",null,p(e.$t("falukant.church.baptism.table.age")),1),RY])]),d("tbody",null,[(S(!0),_(U,null,we(r.baptismList,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t(`falukant.church.baptism.gender.${l.gender}`)),1),d("td",null,[ie(d("input",{type:"text","onUpdate:modelValue":u=>l.proposedFirstName=u},null,8,FY),[[Le,l.proposedFirstName]]),d("button",{onClick:u=>s.newName(l)},p(e.$t("falukant.church.baptism.table.newName")),9,BY)]),d("td",null,p(l.age),1),d("td",null,[d("button",{onClick:u=>s.baptise(l)},p(e.$t("falukant.church.baptism.table.baptise")),9,zY)])]))),128))])])])):te("",!0)])])])}const WY=Oe(OY,[["render",UY],["__scopeId","data-v-245b2990"]]),m1=99,HY={one:{min:50,max:5e3},all:{min:400,max:4e4}},jY={name:"EducationView",components:{StatusBar:bi,MessageDialog:Cf,ErrorDialog:Tf,SimpleTabs:Ya},data(){return{activeTab:"self",tabs:[{value:"self",label:"falukant.education.self.title"},{value:"children",label:"falukant.education.children.title"},{value:"director",label:"falukant.education.director.title"}],products:[],ownRunningEducations:[],childrenRunningEducations:[],directorRunningEducations:[],directors:[],activeDirector:null,children:[],activeChild:null}},async mounted(){await this.loadProducts(),await this.loadEducations(),await this.loadDirectors(),await this.loadChildren()},methods:{computeCost(e,t="one"){const n=HY[t],i=Math.min(Math.max(e,0),m1)/m1;return n.min+(n.max-n.min)*i},formatCost(e){return Math.round(e).toLocaleString(this.$i18n.locale||"de-DE")},getSelfCost(e){return this.computeCost(e,"one")},getSelfAllCost(){const e=this.products.reduce((t,n)=>t+(n.knowledges[0].knowledge||0),0)/this.products.length;return this.computeCost(e,"all")},getChildKnowledge(e){const t=this.children.find(i=>i.id===this.activeChild);if(!(t!=null&&t.knowledge))return 0;const n=t.knowledge.find(i=>i.id===e);return n?n.knowledge:0},getChildCost(e){return this.computeCost(this.getChildKnowledge(e),"one")},getChildrenAllCost(e){var i;const t=this.children.find(r=>r.id===e),n=(t.knowledge||[]).reduce((r,s)=>r+s.knowledge,0)/(((i=t.knowledge)==null?void 0:i.length)||1);return this.computeCost(n,"all")},childNotInLearning(){const e=this.children.find(t=>t.id===this.activeChild);return!this.childrenRunningEducations.some(t=>t.learningCharacter.id===e.id)},getDirectorKnowledge(e){var i,r;const t=this.directors.find(s=>s.id===this.activeDirector),n=(r=(i=t==null?void 0:t.character)==null?void 0:i.knowledges)==null?void 0:r.find(s=>s.productId===e);return n?n.knowledge:0},getDirectorCost(e){return this.computeCost(this.getDirectorKnowledge(e),"one")},getDirectorAllCost(e){const t=this.directors.find(i=>i.character.id===e),n=(t.character.knowledges||[]).reduce((i,r)=>i+r.knowledge,0)/(t.character.knowledges.length||1);return this.computeCost(n,"all")},getDirectorCharacterId(){var e,t;return(t=(e=this.directors.find(n=>n.id===this.activeDirector))==null?void 0:e.character)==null?void 0:t.id},directorNotInLearning(){const e=this.getDirectorCharacterId();return!this.directorRunningEducations.some(t=>t.learningCharacter.id===e)},async loadProducts(){const e=await X.get("/api/falukant/products");this.products=e.data},async loadEducations(){const e=await X.get("/api/falukant/education");this.ownRunningEducations=e.data.filter(t=>t.recipient.tr==="self"),this.childrenRunningEducations=e.data.filter(t=>t.recipient.tr==="children"),this.directorRunningEducations=e.data.filter(t=>t.recipient.tr==="director")},async loadDirectors(){var t;const e=await X.get("/api/falukant/directors");this.directors=e.data,this.activeDirector=(t=this.directors[0])==null?void 0:t.id},async loadChildren(){var t;const e=await X.get("/api/falukant/family/children");this.children=e.data,this.activeChild=(t=this.children[0])==null?void 0:t.id},async learnItem(e,t,n){await X.post("/api/falukant/education",{item:e,student:t,studentId:n}),await this.loadEducations()},async learnAll(e,t){await X.post("/api/falukant/education",{item:"all",student:e,studentId:t}),await this.loadEducations()}}},GY={class:"contenthidden"},qY={class:"contentscroll"},KY={key:0},YY=["onClick"],JY={key:1},XY=["value"],ZY={key:0},QY=["onClick"],eJ={key:2},tJ=["value"],nJ={key:0},iJ=["onClick"],rJ={key:1};function sJ(e,t,n,i,r,s){const a=be("StatusBar"),o=be("SimpleTabs");return S(),_("div",GY,[v(a),d("div",qY,[d("h2",null,p(e.$t("falukant.education.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=l=>r.activeTab=l),tabs:r.tabs},null,8,["modelValue","tabs"]),r.activeTab==="self"?(S(),_("div",KY,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.education.table.article")),1),d("th",null,p(e.$t("falukant.education.table.knowledge")),1),d("th",null,p(e.$t("falukant.education.table.activity")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.products,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t(`falukant.product.${l.labelTr}`)),1),d("td",null,p(l.knowledges[0].knowledge)+" %",1),d("td",null,[r.ownRunningEducations.length===0?(S(),_("button",{key:0,onClick:u=>s.learnItem(l.id,"self")},p(e.$t("falukant.education.learn"))+" ("+p(s.formatCost(s.getSelfCost(l.knowledges[0].knowledge)))+") ",9,YY)):te("",!0)])]))),128))])]),d("div",null,[r.ownRunningEducations.length===0?(S(),_("button",{key:0,onClick:t[1]||(t[1]=l=>s.learnAll("self"))},p(e.$t("falukant.education.learnAll"))+" ("+p(s.formatCost(s.getSelfAllCost()))+") ",1)):te("",!0)])])):r.activeTab==="children"?(S(),_("div",JY,[d("div",null,[ie(d("select",{"onUpdate:modelValue":t[2]||(t[2]=l=>r.activeChild=l)},[(S(!0),_(U,null,we(r.children,l=>(S(),_("option",{key:l.id,value:l.id},p(l.name)+" ("+p(l.age)+") ",9,XY))),128))],512),[[Et,r.activeChild]])]),r.activeChild?(S(),_("table",ZY,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.education.table.article")),1),d("th",null,p(e.$t("falukant.education.table.knowledge")),1),d("th",null,p(e.$t("falukant.education.table.activity")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.products,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t(`falukant.product.${l.labelTr}`)),1),d("td",null,p(s.getChildKnowledge(l.id))+" %",1),d("td",null,[s.childNotInLearning()?(S(),_("button",{key:0,onClick:u=>s.learnItem(l.id,"children",r.activeChild)},p(e.$t("falukant.education.learn"))+" ("+p(s.formatCost(s.getChildCost(l.id)))+") ",9,QY)):te("",!0)])]))),128))])])):te("",!0),d("div",null,[r.childrenRunningEducations.length===0?(S(),_("button",{key:0,onClick:t[3]||(t[3]=l=>s.learnAll("children",r.activeChild))},p(e.$t("falukant.education.learnAll"))+" ("+p(s.formatCost(s.getChildrenAllCost(r.activeChild)))+") ",1)):te("",!0)])])):r.activeTab==="director"?(S(),_("div",eJ,[d("div",null,[ie(d("select",{"onUpdate:modelValue":t[4]||(t[4]=l=>r.activeDirector=l)},[(S(!0),_(U,null,we(r.directors,l=>(S(),_("option",{key:l.id,value:l.id},p(l.character.nobleTitle.tr)+" "+p(l.character.definedFirstName.name)+" "+p(l.character.definedLastName.name),9,tJ))),128))],512),[[Et,r.activeDirector]])]),r.activeDirector?(S(),_("table",nJ,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.education.table.article")),1),d("th",null,p(e.$t("falukant.education.table.knowledge")),1),d("th",null,p(e.$t("falukant.education.table.activity")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.products,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t(`falukant.product.${l.labelTr}`)),1),d("td",null,p(s.getDirectorKnowledge(l.id))+" %",1),d("td",null,[s.directorNotInLearning()?(S(),_("button",{key:0,onClick:u=>s.learnItem(l.id,"director",s.getDirectorCharacterId())},p(e.$t("falukant.education.learn"))+" ("+p(s.formatCost(s.getDirectorCost(l.id)))+") ",9,iJ)):te("",!0)])]))),128))])])):te("",!0),r.activeDirector?(S(),_("div",rJ,[s.directorNotInLearning()?(S(),_("button",{key:0,onClick:t[5]||(t[5]=l=>s.learnAll("director",s.getDirectorCharacterId()))},p(e.$t("falukant.education.learnAll"))+" ("+p(s.formatCost(s.getDirectorAllCost(s.getDirectorCharacterId())))+") ",1)):te("",!0)])):te("",!0)])):te("",!0)])])}const aJ=Oe(jY,[["render",sJ],["__scopeId","data-v-57cdadf6"]]),oJ={name:"BankView",components:{StatusBar:bi,SimpleTabs:Ya},data(){return{activeTab:"account",tabs:[{value:"account",label:"falukant.bank.account.title"},{value:"credits",label:"falukant.bank.credits.title"},{value:"payoff",label:"falukant.bank.credits.payoff.title"}],bankOverview:{money:0,totalDebt:0,maxCredit:0,availableCredit:0,activeCredits:[]},selectedCreditId:null,selectedCredit:null,earlyPayoffFee:0}},computed:{...or(["daemonSocket"])},async mounted(){await this.loadBankOverview(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},beforeUnmount(){this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)},methods:{async loadBankOverview(){try{const{data:e}=await X.get("/api/falukant/bank/overview");this.bankOverview=e}catch(e){console.error(e)}},async confirmPayoff(){try{await X.post("/api/falukant/bank/credits",{height:this.selectedCredit}),await this.loadBankOverview(),this.selectedCredit=null,this.activeTab="credits"}catch(e){console.error(e)}},handleDaemonMessage(e){try{["falukantUpdateStatus","moneyChange","creditChange"].includes(e.event)&&this.loadBankOverview()}catch(t){console.error(evt,t)}},feeRate(){return this.bankOverview.fee*this.selectedCredit/100+this.selectedCredit/10},creditCost(){return this.selectedCredit+this.bankOverview.fee*10*this.selectedCredit/100},formatCost(e){return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}}},lJ={class:"contenthidden"},uJ={class:"contentscroll"},cJ={key:0},dJ={class:"account-section"},fJ={key:1},hJ={class:"credits-section"},mJ={key:0},gJ={class:"credits-table"},pJ={key:1},vJ={key:2},yJ={class:"payoff-section"},bJ=["max"],kJ={key:0},wJ=["disabled"];function SJ(e,t,n,i,r,s){var l;const a=be("StatusBar"),o=be("SimpleTabs");return S(),_("div",lJ,[v(a),d("div",uJ,[d("h2",null,p(e.$t("falukant.bank.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=u=>r.activeTab=u),tabs:r.tabs},null,8,["modelValue","tabs"]),r.activeTab==="account"?(S(),_("div",cJ,[d("div",dJ,[d("table",null,[d("tr",null,[d("td",null,p(e.$t("falukant.bank.account.balance")),1),d("td",null,p(s.formatCost(r.bankOverview.money)),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.bank.account.totalDebt")),1),d("td",null,p(s.formatCost(r.bankOverview.totalDebt)),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.bank.account.maxCredit")),1),d("td",null,p(s.formatCost(r.bankOverview.maxCredit)),1)]),d("tr",null,[d("td",null,p(e.$t("falukant.bank.account.availableCredit")),1),d("td",null,p(s.formatCost(r.bankOverview.availableCredit)),1)])])])])):r.activeTab==="credits"?(S(),_("div",fJ,[d("div",hJ,[(l=r.bankOverview.activeCredits)!=null&&l.length?(S(),_("div",mJ,[d("table",gJ,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.bank.credits.amount")),1),d("th",null,p(e.$t("falukant.bank.credits.remaining")),1),d("th",null,p(e.$t("falukant.bank.credits.interestRate")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.bankOverview.activeCredits,u=>(S(),_("tr",{key:u.id},[d("td",null,p(s.formatCost(u.amount)),1),d("td",null,p(s.formatCost(u.remainingAmount)),1),d("td",null,p(u.interestRate)+"%",1)]))),128))])])])):(S(),_("div",pJ,[d("p",null,p(e.$t("falukant.bank.credits.none")),1)]))])])):r.activeTab==="payoff"?(S(),_("div",vJ,[d("div",yJ,[d("label",null,[ge(p(e.$t("falukant.bank.credits.payoff.height"))+": ",1),ie(d("input",{type:"number","onUpdate:modelValue":t[1]||(t[1]=u=>r.selectedCredit=u),min:0,max:r.bankOverview.availableCredit,value:"0"},null,8,bJ),[[Le,r.selectedCredit]])]),r.selectedCredit?(S(),_("div",kJ,[d("p",null,p(e.$t("falukant.bank.credits.payoff.remaining"))+": "+p(s.formatCost(r.bankOverview.availableCredit-r.selectedCredit)),1),d("p",null,p(e.$t("falukant.bank.credits.payoff.fee"))+": "+p(s.formatCost(r.bankOverview.fee)),1),d("p",null,p(e.$t("falukant.bank.credits.payoff.feeHeight"))+": "+p(s.formatCost(s.feeRate())),1),d("p",null,[d("strong",null,p(e.$t("falukant.bank.credits.payoff.total"))+": "+p(s.formatCost(s.creditCost())),1)]),d("button",{onClick:t[2]||(t[2]=(...u)=>s.confirmPayoff&&s.confirmPayoff(...u)),class:"button",disabled:!r.selectedCredit},p(e.$t("falukant.bank.credits.payoff.confirm")),9,wJ)])):te("",!0)])])):te("",!0)])])}const _J=Oe(oJ,[["render",SJ],["__scopeId","data-v-b2589691"]]),CJ={name:"DirectorView",components:{StatusBar:bi},data(){return{directors:[],selected:null,editIncome:"",editSatisfaction:0}},computed:{...or(["daemonSocket"])},async mounted(){await this.loadDirectors(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},beforeUnmount(){this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)},methods:{async loadDirectors(){try{const{data:e}=await X.get("/api/falukant/directors");this.directors=e.map(t=>{var n;return{...t,branchName:((n=t.branch)==null?void 0:n.regionName)||null}})}catch(e){console.error("Error loading directors",e)}},selectDirector(e){this.selected={...e},this.editIncome=e.income,this.editSatisfaction=e.satisfaction},async updateDirector(){try{await X.post("/api/falukant/directors",{directorId:this.selected.id,income:this.selected.income}),await this.loadDirectors(),this.selected=this.directors.find(e=>e.id===this.selected.id)}catch(e){console.error("Error updating director",e)}},handleDaemonMessage(e){try{if(e.data==="ping")return;if(JSON.parse(e.data).event==="directorchanged"&&(this.loadDirectors(),this.selected)){const n=this.directors.find(i=>i.id===this.selected.id);n&&(this.selected={...n})}}catch(t){console.error("Error parsing daemon message",t,e.data)}},setWishedIncome(){this.selected.income=this.selected.wishedIncome}}},TJ={class:"director-view"},EJ={class:"content-container"},IJ={class:"list-panel"},AJ={class:"director-table"},xJ=["onClick"],DJ={key:0,class:"detail-panel"},PJ={class:"table-container"},OJ={class:"knowledge-table"},MJ={class:"actions"};function $J(e,t,n,i,r,s){const a=be("StatusBar");return S(),_("div",TJ,[v(a),d("div",EJ,[d("div",IJ,[d("h2",null,p(e.$t("falukant.director.title")),1),d("table",AJ,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.director.name")),1),d("th",null,p(e.$t("falukant.director.branch")),1),d("th",null,p(e.$t("falukant.director.age")),1),d("th",null,p(e.$t("falukant.director.satisfaction")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.directors,o=>{var l;return S(),_("tr",{key:o.id,onClick:u=>s.selectDirector(o),class:Dt([{selected:o.id===((l=r.selected)==null?void 0:l.id)},"director-row"])},[d("td",null,p(e.$t(`falukant.titles.${o.character.gender}.${o.character.nobleTitle.labelTr}`))+" "+p(o.character.definedFirstName.name)+" "+p(o.character.definedLastName.name),1),d("td",null,p(o.region||"-"),1),d("td",null,p(o.age),1),d("td",null,p(o.satisfaction)+" %",1)],10,xJ)}),128))])])]),r.selected?(S(),_("div",DJ,[d("h2",null,p(e.$t(`falukant.titles.${r.selected.character.gender}.${r.selected.character.nobleTitle.labelTr}`))+" "+p(r.selected.character.definedFirstName.name)+" "+p(r.selected.character.definedLastName.name),1),d("p",null,p(e.$t("falukant.director.age"))+": "+p(r.selected.age),1),d("h3",null,p(e.$t("falukant.director.knowledge.title")),1),d("div",PJ,[d("table",OJ,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.director.product")),1),d("th",null,p(e.$t("falukant.director.knowledge.knowledge")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.selected.character.knowledges,o=>(S(),_("tr",{key:o.productId},[d("td",null,p(e.$t(`falukant.product.${o.productType.labelTr}`)),1),d("td",null,p(o.knowledge)+" %",1)]))),128))])])]),d("div",MJ,[d("div",null,[d("label",null,[ge(p(e.$t("falukant.director.satisfaction"))+": ",1),d("span",null,p(r.selected.satisfaction)+" %",1)])]),d("div",null,[d("label",null,[ge(p(e.$t("falukant.director.income"))+": ",1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>r.selected.income=o)},null,512),[[Le,r.selected.income]])]),r.selected.satisfaction<100?(S(),_("span",{key:0,onClick:t[1]||(t[1]=(...o)=>s.setWishedIncome&&s.setWishedIncome(...o)),class:"link"},"("+p(e.$t("falukant.director.wishedIncome"))+": "+p(r.selected.wishedIncome)+")",1)):te("",!0)]),d("div",null,[d("button",{onClick:t[2]||(t[2]=(...o)=>s.updateDirector&&s.updateDirector(...o))},p(e.$t("falukant.director.updateButton")),1)])])])):te("",!0)])])}const VJ=Oe(CJ,[["render",$J],["__scopeId","data-v-191b1761"]]),LJ={name:"HealthView",components:{StatusBar:bi},data(){return{age:0,healthStatus:0,measuresTaken:[],availableMeasures:[],selectedTr:""}},computed:{...or(["daemonSocket"]),selectedMeasure(){return this.availableMeasures.find(e=>e.tr===this.selectedTr)||null},healthState(){return this.healthStatus>90?this.$t("falukant.health.amazing"):this.healthStatus>75?this.$t("falukant.health.good"):this.healthStatus>50?this.$t("falukant.health.normal"):this.healthStatus>25?this.$t("falukant.health.bad"):this.$t("falukant.health.very_bad")}},async mounted(){await this.loadHealthData(),this.daemonSocket&&this.daemonSocket.addEventListener("message",this.handleDaemonMessage)},beforeUnmount(){this.daemonSocket&&this.daemonSocket.removeEventListener("message",this.handleDaemonMessage)},methods:{async loadHealthData(){try{const{data:e}=await X.get("/api/falukant/health");this.age=e.age,this.healthStatus=e.health,this.measuresTaken=e.history,this.availableMeasures=e.healthActivities}catch(e){console.error("Error loading health data",e)}},formatDate(e){return new Date(e).toLocaleDateString()},async performMeasure(){if(this.selectedMeasure)try{await X.post("/api/falukant/health",{measureTr:this.selectedTr}),await this.loadHealthData(),this.selectedTr=""}catch(e){console.error("Error performing measure",e)}},handleDaemonMessage(e){if(e.data==="ping")return;JSON.parse(e.data).event==="healthupdated"&&this.loadHealthData()},formatPrice(e){return new Intl.NumberFormat("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}}},NJ={class:"content-container"},RJ={class:"info-panel"},FJ={class:"measures-panel"},BJ={class:"measures-table"},zJ={class:"actions"},UJ={value:"",disabled:""},WJ=["value"],HJ=["disabled"],jJ={key:0};function GJ(e,t,n,i,r,s){const a=be("StatusBar");return S(),_("div",null,[v(a),d("h2",null,p(e.$t("falukant.healthview.title")),1),d("div",NJ,[d("div",RJ,[d("p",null,p(e.$t("falukant.healthview.age"))+": "+p(r.age),1),d("p",null,p(e.$t("falukant.healthview.status"))+": "+p(s.healthState),1)]),d("div",FJ,[d("h3",null,p(e.$t("falukant.healthview.measuresTaken")),1),d("table",BJ,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.healthview.measure")),1),d("th",null,p(e.$t("falukant.healthview.date")),1),d("th",null,p(e.$t("falukant.healthview.success")),1),d("th",null,p(e.$t("falukant.healthview.cost")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.measuresTaken,o=>(S(),_("tr",{key:o.id},[d("td",null,p(e.$t(`falukant.healthview.measures.${o.tr}`)),1),d("td",null,p(s.formatDate(o.createdAt)),1),d("td",null,p(o.success),1),d("td",null,p(s.formatPrice(o.cost)),1)]))),128))])]),d("div",zJ,[d("label",null,[ge(p(e.$t("falukant.healthview.selectMeasure"))+": ",1),ie(d("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>r.selectedTr=o)},[d("option",UJ,p(e.$t("falukant.healthview.choose")),1),(S(!0),_(U,null,we(r.availableMeasures,o=>(S(),_("option",{key:o.tr,value:o.tr},p(e.$t(`falukant.healthview.measures.${o.tr}`))+" ("+p(s.formatPrice(o.cost))+") ",9,WJ))),128))],512),[[Et,r.selectedTr]])]),d("button",{onClick:t[1]||(t[1]=(...o)=>s.performMeasure&&s.performMeasure(...o)),disabled:!s.selectedMeasure},[ge(p(e.$t("falukant.healthview.perform"))+" ",1),s.selectedMeasure?(S(),_("span",jJ," ("+p(s.formatPrice(s.selectedMeasure.cost))+")",1)):te("",!0)],8,HJ)])])])])}const qJ=Oe(LJ,[["render",GJ],["__scopeId","data-v-98d14fa4"]]),KJ={name:"PoliticsView",components:{StatusBar:bi,SimpleTabs:Ya,Multiselect:is},data(){return{activeTab:"current",tabs:[{value:"current",label:"falukant.politics.tabs.current"},{value:"openPolitics",label:"falukant.politics.tabs.upcoming"},{value:"elections",label:"falukant.politics.tabs.elections"}],currentPositions:[],openPolitics:[],elections:[],selectedCandidates:{},selectedApplications:[],loading:{current:!1,openPolitics:!1,elections:!1}}},computed:{hasAnySelection(){return Object.values(this.selectedCandidates).some(e=>Array.isArray(e)&&e.length>0)},hasAnyUnvoted(){return this.elections.some(e=>!e.voted)}},mounted(){this.loadCurrentPositions()},methods:{onTabChange(e){e==="current"&&!this.currentPositions.length&&this.loadCurrentPositions(),e==="openPolitics"&&!this.openPolitics.length&&this.loadOpenPolitics(),e==="elections"&&!this.elections.length&&this.loadElections()},async loadCurrentPositions(){this.loading.current=!0;try{const{data:e}=await X.get("/api/falukant/politics/overview");this.currentPositions=e}catch(e){console.error("Error loading current positions",e)}finally{this.loading.current=!1}},async loadOpenPolitics(){this.loading.openPolitics=!0;try{const{data:e}=await X.get("/api/falukant/politics/open");this.openPolitics=e,this.selectedApplications=[]}catch(e){console.error("Error loading open politics",e)}finally{this.loading.openPolitics=!1}},async loadElections(){this.loading.elections=!0;try{const{data:e}=await X.get("/api/falukant/politics/elections");this.elections=e,e.forEach(t=>{this.selectedCandidates[t.id]=[]})}catch(e){console.error("Error loading elections",e)}finally{this.loading.elections=!1}},candidateLabel(e){return`${this.$t(`falukant.titles.${e.gender}.${e.title}`)} ${e.name} (${e.age})`},findCandidateById(e,t){return e.candidates.find(n=>n.id===t)||{}},formatCandidateTitle(e){return e?this.$t(`falukant.titles.${e.gender}.${e.title}`):""},async submitVote(e){const t=[{electionId:e,candidateIds:this.selectedCandidates[e].map(n=>n.id)}];try{await X.post("/api/falukant/politics/elections",{votes:t}),await this.loadElections()}catch(n){console.error(`Error submitting vote for election ${e}`,n)}},async submitAllVotes(){const e=Object.entries(this.selectedCandidates).filter(([t,n])=>Array.isArray(n)&&n.length>0).map(([t,n])=>({electionId:parseInt(t,10),candidateIds:n.map(i=>i.id)}));try{await X.post("/api/falukant/politics/elections",{votes:e}),await this.loadElections()}catch(t){console.error("Error submitting all votes",t)}},formatDate(e){return new Date(e).toLocaleDateString(this.$i18n.locale,{year:"numeric",month:"2-digit",day:"2-digit"})},async submitApplications(){try{await X.post("/api/falukant/politics/open",{electionIds:this.selectedApplications}),await this.loadOpenPolitics()}catch(e){console.error("Error submitting applications",e)}}}},YJ={class:"politics-view"},JJ={class:"tab-content"},XJ={key:0,class:"tab-pane"},ZJ={key:0,class:"loading"},QJ={key:1,class:"table-scroll"},eX={class:"politics-table"},tX={key:0},nX={key:1},iX={key:0},rX={colspan:"3"},sX={key:1,class:"tab-pane"},aX={key:0,class:"loading"},oX={key:1,class:"table-scroll"},lX={class:"politics-table"},uX=["id","value"],cX={key:0},dX={colspan:"4"},fX={class:"apply-button"},hX=["disabled"],mX={key:2,class:"tab-pane"},gX={key:0,class:"loading"},pX={key:1,class:"table-scroll"},vX={class:"politics-table"},yX={key:0},bX={key:1},kX={class:"voted-list"},wX={key:0},SX={key:0},_X=["disabled","onClick"],CX={key:0},TX={colspan:"6"},EX={key:2,class:"all-vote-button"},IX=["disabled"];function AX(e,t,n,i,r,s){const a=be("StatusBar"),o=be("SimpleTabs"),l=be("Multiselect");return S(),_("div",YJ,[v(a),d("h2",null,p(e.$t("falukant.politics.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=u=>r.activeTab=u),tabs:r.tabs,onChange:s.onTabChange},null,8,["modelValue","tabs","onChange"]),d("div",JJ,[r.activeTab==="current"?(S(),_("div",XJ,[r.loading.current?(S(),_("div",ZJ,p(e.$t("loading")),1)):(S(),_("div",QJ,[d("table",eX,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.politics.current.office")),1),d("th",null,p(e.$t("falukant.politics.current.region")),1),d("th",null,p(e.$t("falukant.politics.current.holder")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.currentPositions,u=>(S(),_("tr",{key:u.id},[d("td",null,p(e.$t(`falukant.politics.offices.${u.officeType.name}`)),1),d("td",null,p(u.region.name),1),d("td",null,[u.character?(S(),_("span",tX,p(u.character.definedFirstName.name)+" "+p(u.character.definedLastName.name),1)):(S(),_("span",nX,"—"))])]))),128)),r.currentPositions.length?te("",!0):(S(),_("tr",iX,[d("td",rX,p(e.$t("falukant.politics.current.none")),1)]))])])]))])):r.activeTab==="openPolitics"?(S(),_("div",sX,[r.loading.openPolitics?(S(),_("div",aX,p(e.$t("loading")),1)):(S(),_("div",oX,[d("table",lX,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.politics.open.office")),1),d("th",null,p(e.$t("falukant.politics.open.region")),1),d("th",null,p(e.$t("falukant.politics.open.date")),1),d("th",null,p(e.$t("falukant.politics.open.candidacy")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.openPolitics,u=>(S(),_("tr",{key:u.id},[d("td",null,p(e.$t(`falukant.politics.offices.${u.officeType.name}`)),1),d("td",null,p(u.region.name),1),d("td",null,p(s.formatDate(u.date)),1),d("td",null,[ie(d("input",{type:"checkbox",id:`apply-${u.id}`,"onUpdate:modelValue":t[1]||(t[1]=c=>r.selectedApplications=c),value:u.id},null,8,uX),[[Nt,r.selectedApplications]])])]))),128)),r.openPolitics.length?te("",!0):(S(),_("tr",cX,[d("td",dX,p(e.$t("falukant.politics.open.none")),1)]))])])])),d("div",fX,[d("button",{disabled:!r.selectedApplications.length,onClick:t[2]||(t[2]=(...u)=>s.submitApplications&&s.submitApplications(...u))},p(e.$t("falukant.politics.open.apply")),9,hX)])])):r.activeTab==="elections"?(S(),_("div",mX,[r.loading.elections?(S(),_("div",gX,p(e.$t("loading")),1)):(S(),_("div",pX,[d("table",vX,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.politics.elections.office")),1),d("th",null,p(e.$t("falukant.politics.elections.region")),1),d("th",null,p(e.$t("falukant.politics.elections.date")),1),d("th",null,p(e.$t("falukant.politics.elections.posts")),1),d("th",null,p(e.$t("falukant.politics.elections.candidates")),1),d("th",null,p(e.$t("falukant.politics.elections.action")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.elections,u=>(S(),_("tr",{key:u.id},[d("td",null,p(e.$t(`falukant.politics.offices.${u.officeType.name}`)),1),d("td",null,p(u.region.name),1),d("td",null,p(s.formatDate(u.date)),1),d("td",null,p(u.postsToFill),1),u.voted?(S(),_("td",bX,[d("ul",kX,[(S(!0),_(U,null,we(u.votedFor,c=>(S(),_("li",{key:c},[s.findCandidateById(u,c)?(S(),_("span",wX,p(s.formatCandidateTitle(s.findCandidateById(u,c)))+" "+p(s.findCandidateById(u,c).name),1)):te("",!0)]))),128)),!u.votedFor||!u.votedFor.length?(S(),_("li",SX,"—")):te("",!0)])])):(S(),_("td",yX,[v(l,{modelValue:r.selectedCandidates[u.id],"onUpdate:modelValue":c=>r.selectedCandidates[u.id]=c,options:u.candidates,multiple:"",max:u.postsToFill,"close-on-select":!1,"clear-on-select":!1,"track-by":"id",label:"name","custom-label":s.candidateLabel,placeholder:""},{option:ze(({option:c})=>[ge(p(e.$t(`falukant.titles.${c.gender}.${c.title}`))+" "+p(c.name)+" ("+p(c.age)+") ",1)]),selected:ze(({option:c})=>[ge(p(e.$t(`falukant.titles.${c.gender}.${c.title}`))+" "+p(c.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue","options","max","custom-label"])])),d("td",null,[u.voted?te("",!0):(S(),_("button",{key:0,disabled:!r.selectedCandidates[u.id]||!r.selectedCandidates[u.id].length,onClick:c=>s.submitVote(u.id)},p(e.$t("falukant.politics.elections.vote")),9,_X))])]))),128)),r.elections.length?te("",!0):(S(),_("tr",CX,[d("td",TX,p(e.$t("falukant.politics.elections.none")),1)]))])])])),s.hasAnyUnvoted?(S(),_("div",EX,[d("button",{disabled:!s.hasAnySelection,onClick:t[3]||(t[3]=(...u)=>s.submitAllVotes&&s.submitAllVotes(...u))},p(e.$t("falukant.politics.elections.voteAll")),9,IX)])):te("",!0)])):te("",!0)])])}const xX=Oe(KJ,[["render",AX],["__scopeId","data-v-58b00c36"]]),DX={name:"UndergroundView",components:{StatusBar:bi,SimpleTabs:Ya},data(){return{activeTab:"activities",tabs:[{value:"activities",label:"falukant.underground.tabs.activities"},{value:"attacks",label:"falukant.underground.tabs.attacks"}],undergroundTypes:[],activities:[],attacks:[],loading:{activities:!1,attacks:!1},newActivityTypeId:null,newVictimUsername:"",victimSuggestions:[],victimSearchTimeout:null,newPoliticalTargets:[],newSabotageTarget:"house",newCorruptGoal:"elect"}},computed:{selectedType(){return this.undergroundTypes.find(e=>e.id===this.newActivityTypeId)||null},canCreate(){var n,i;if(!this.newActivityTypeId)return!1;const e=this.newVictimUsername.trim().length>0,t=this.newPoliticalTargets.length>0;return!(!e&&!t||((n=this.selectedType)==null?void 0:n.tr)==="sabotage"&&!this.newSabotageTarget||((i=this.selectedType)==null?void 0:i.tr)==="corrupt_politician"&&!this.newCorruptGoal)}},async mounted(){await this.loadUndergroundTypes(),this.undergroundTypes.length&&(this.newActivityTypeId=this.undergroundTypes[0].id),await this.loadActivities()},methods:{onTabChange(e){e==="activities"&&!this.activities.length&&this.loadActivities(),e==="attacks"&&!this.attacks.length&&this.loadAttacks()},onVictimInput(){clearTimeout(this.victimSearchTimeout);const e=this.newVictimUsername.trim();e.length>=3?this.victimSearchTimeout=setTimeout(()=>{this.searchVictims(e)},300):this.victimSuggestions=[]},async searchVictims(e){console.log("Searching victims for:",e);try{const{data:t}=await X.get("/api/falukant/users/search",{params:{q:e}});this.victimSuggestions=t}catch(t){console.error("Error searching users",t)}},selectVictim(e){this.newVictimUsername=e.username,this.victimSuggestions=[]},async createActivity(){if(!this.canCreate)return;const e={typeId:this.newActivityTypeId,victimUsername:this.newVictimUsername.trim()};this.selectedType.tr==="sabotage"&&(e.target=this.newSabotageTarget),this.selectedType.tr==="corrupt_politician"&&(e.goal=this.newCorruptGoal,this.newPoliticalTargets.length&&(e.politicalTargets=this.newPoliticalTargets));try{await X.post("/api/falukant/underground/activities",e),this.newVictimUsername="",this.newPoliticalTargets=[],this.newSabotageTarget="house",this.newCorruptGoal="elect",await this.loadActivities()}catch(t){console.error("Error creating activity",t)}},async loadUndergroundTypes(){const{data:e}=await X.get("/api/falukant/underground/types");this.undergroundTypes=e},async loadActivities(){},async loadAttacks(){this.loading.attacks=!0;try{const{data:e}=await X.get("/api/falukant/underground/attacks");this.attacks=e}finally{this.loading.attacks=!1}},formatDate(e){return new Date(e).toLocaleDateString(this.$i18n.locale,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},formatCost(e){return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}}},PX={class:"underground-view"},OX={class:"tab-content"},MX={key:0,class:"tab-pane"},$X={class:"create-activity"},VX={class:"form-label"},LX=["value"],NX={class:"form-label"},RX=["placeholder"],FX={key:0,class:"suggestions"},BX=["onClick"],zX={key:1,class:"form-label"},UX=["value"],WX={key:2,class:"form-label"},HX={value:"house"},jX={value:"storage"},GX={key:3,class:"form-label"},qX={value:"elect"},KX={value:"tax_increase"},YX={value:"tax_decrease"},JX=["disabled"],XX={key:0,class:"loading"},ZX={key:1,class:"activities-table"},QX={key:0},eZ={colspan:"4"},tZ={key:1,class:"tab-pane"},nZ={key:0,class:"loading"},iZ={key:1,class:"attacks-list"},rZ={key:0},sZ={colspan:"3"};function aZ(e,t,n,i,r,s){const a=be("StatusBar"),o=be("SimpleTabs");return S(),_("div",PX,[v(a),d("h2",null,p(e.$t("falukant.underground.title")),1),v(o,{modelValue:r.activeTab,"onUpdate:modelValue":t[0]||(t[0]=l=>r.activeTab=l),tabs:r.tabs,onChange:s.onTabChange},null,8,["modelValue","tabs","onChange"]),d("div",OX,[r.activeTab==="activities"?(S(),_("div",MX,[d("div",$X,[d("h3",null,p(e.$t("falukant.underground.activities.create")),1),d("label",VX,[ge(p(e.$t("falukant.underground.activities.type"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[1]||(t[1]=l=>r.newActivityTypeId=l),class:"form-control"},[(S(!0),_(U,null,we(r.undergroundTypes,l=>(S(),_("option",{key:l.id,value:l.id},p(e.$t(`falukant.underground.types.${l.tr}`))+" ("+p(s.formatCost(l.cost))+") ",9,LX))),128))],512),[[Et,r.newActivityTypeId]])]),d("label",NX,[ge(p(e.$t("falukant.underground.activities.victim"))+" ",1),ie(d("input",{"onUpdate:modelValue":t[2]||(t[2]=l=>r.newVictimUsername=l),onInput:t[3]||(t[3]=(...l)=>s.onVictimInput&&s.onVictimInput(...l)),type:"text",class:"form-control",placeholder:e.$t("falukant.underground.activities.victimPlaceholder")},null,40,RX),[[Le,r.newVictimUsername]])]),r.victimSuggestions.length?(S(),_("div",FX,[d("ul",null,[(S(!0),_(U,null,we(r.victimSuggestions,l=>(S(),_("li",{key:l.username,onClick:u=>s.selectVictim(l)},p(l.username)+" — "+p(l.firstname)+" "+p(l.lastname)+" ("+p(l.town)+") ",9,BX))),128))])])):te("",!0),s.selectedType&&s.selectedType.tr==="corrupt_politician"?(S(),_("label",zX,[ge(p(e.$t("falukant.underground.activities.targets"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[4]||(t[4]=l=>r.newPoliticalTargets=l),multiple:"",size:"5",class:"form-control"},[(S(!0),_(U,null,we(e.politicalTargets,l=>(S(),_("option",{key:l.id,value:l.id},p(e.$t("falukant.titles."+l.gender+"."+l.title))+" "+p(l.name)+" ("+p(e.$t("falukant.politics.offices."+l.officeType))+") ",9,UX))),128))],512),[[Et,r.newPoliticalTargets]])])):te("",!0),s.selectedType&&s.selectedType.tr==="sabotage"?(S(),_("label",WX,[ge(p(e.$t("falukant.underground.activities.sabotageTarget"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[5]||(t[5]=l=>r.newSabotageTarget=l),class:"form-control"},[d("option",HX,p(e.$t("falukant.underground.targets.house")),1),d("option",jX,p(e.$t("falukant.underground.targets.storage")),1)],512),[[Et,r.newSabotageTarget]])])):te("",!0),s.selectedType&&s.selectedType.tr==="corrupt_politician"?(S(),_("label",GX,[ge(p(e.$t("falukant.underground.activities.corruptGoal"))+" ",1),ie(d("select",{"onUpdate:modelValue":t[6]||(t[6]=l=>r.newCorruptGoal=l),class:"form-control"},[d("option",qX,p(e.$t("falukant.underground.goals.elect")),1),d("option",KX,p(e.$t("falukant.underground.goals.taxIncrease")),1),d("option",YX,p(e.$t("falukant.underground.goals.taxDecrease")),1)],512),[[Et,r.newCorruptGoal]])])):te("",!0),d("button",{class:"btn-create-activity",disabled:!s.canCreate,onClick:t[7]||(t[7]=(...l)=>s.createActivity&&s.createActivity(...l))},p(e.$t("falukant.underground.activities.create")),9,JX)]),r.loading.activities?(S(),_("div",XX,p(e.$t("loading")),1)):(S(),_("div",ZX,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.underground.activities.type")),1),d("th",null,p(e.$t("falukant.underground.activities.victim")),1),d("th",null,p(e.$t("falukant.underground.activities.cost")),1),d("th",null,p(e.$t("falukant.underground.activities.additionalInfo")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.activities,l=>(S(),_("tr",{key:l.id},[d("td",null,p(e.$t(`falukant.underground.types.${l.type}`)),1),d("td",null,p(l.victimName),1),d("td",null,p(s.formatCost(l.cost)),1),d("td",null,[l.type==="sabotage"?(S(),_(U,{key:0},[ge(p(e.$t(`falukant.underground.targets.${l.target}`)),1)],64)):l.type==="corrupt_politician"?(S(),_(U,{key:1},[ge(p(e.$t(`falukant.underground.goals.${l.goal}`)),1)],64)):te("",!0)])]))),128)),r.activities.length?te("",!0):(S(),_("tr",QX,[d("td",eZ,p(e.$t("falukant.underground.activities.none")),1)]))])])]))])):r.activeTab==="attacks"?(S(),_("div",tZ,[r.loading.attacks?(S(),_("div",nZ,p(e.$t("loading")),1)):(S(),_("div",iZ,[d("table",null,[d("thead",null,[d("tr",null,[d("th",null,p(e.$t("falukant.underground.attacks.source")),1),d("th",null,p(e.$t("falukant.underground.attacks.date")),1),d("th",null,p(e.$t("falukant.underground.attacks.success")),1)])]),d("tbody",null,[(S(!0),_(U,null,we(r.attacks,l=>(S(),_("tr",{key:l.id},[d("td",null,p(l.targetName),1),d("td",null,p(s.formatDate(l.date)),1),d("td",null,p(l.success?e.$t("yes"):e.$t("no")),1)]))),128)),r.attacks.length?te("",!0):(S(),_("tr",rZ,[d("td",sZ,p(e.$t("falukant.underground.attacks.none")),1)]))])])]))])):te("",!0)])])}const oZ=Oe(DX,[["render",aZ],["__scopeId","data-v-428036a0"]]),lZ=[{path:"/falukant/create",name:"FalukantCreate",component:R9,meta:{requiresAuth:!0}},{path:"/falukant/home",name:"FalukantOverview",component:Y9,meta:{requiresAuth:!0}},{path:"/falukant/branch/:branchId?",name:"BranchView",component:x9,meta:{requiresAuth:!0}},{path:"/falukant/moneyhistory",name:"MoneyHistoryView",component:t7,meta:{requiresAuth:!0}},{path:"/falukant/family",name:"FalukantFamily",component:L7,meta:{requiresAuth:!0}},{path:"/falukant/house",name:"HouseView",component:J7,meta:{requiresAuth:!0}},{path:"/falukant/nobility",name:"NobilityView",component:uY,meta:{requiresAuth:!0}},{path:"/falukant/reputation",name:"ReputationView",component:PY,meta:{requiresAuth:!0}},{path:"/falukant/church",name:"ChurchView",component:WY,meta:{requiresAuth:!0}},{path:"/falukant/education",name:"EducationView",component:aJ,meta:{requiresAuth:!0}},{path:"/falukant/bank",name:"BankView",component:_J,meta:{requiresAuth:!0}},{path:"/falukant/directors",name:"DirectorView",component:VJ,meta:{requiresAuth:!0}},{path:"/falukant/health",name:"HealthView",component:qJ,meta:{requiresAuth:!0}},{path:"/falukant/politics",name:"PoliticsView",component:xX,meta:{requiresAuth:!0}},{path:"/falukant/darknet",name:"UndergroundView",component:oZ,meta:{requiresAuth:!0}}],uZ=async()=>(await X.get("/api/blog/blogs")).data,bE=async e=>(await X.get(`/api/blog/blogs/${e}`)).data,cZ=async(e,{page:t=1,pageSize:n=10}={})=>(await X.get(`/api/blog/blogs/${e}/posts`,{params:{page:t,pageSize:n}})).data,dZ=async e=>(await X.post("/api/blog/blogs",e)).data,fZ=async(e,t)=>(await X.put(`/api/blog/blogs/${e}`,t)).data,kE=async(e,t)=>(await X.post(`/api/blog/blogs/${e}/posts`,t)).data,hZ=async e=>(await X.get(`/api/blog/blogs/${e}/images`)).data,mZ=async(e,t,n={})=>{const i=new FormData;return i.append("image",t),n.title&&i.append("title",n.title),n.description&&i.append("description",n.description),(await X.post(`/api/blog/blogs/${e}/images`,i,{headers:{"Content-Type":"multipart/form-data"}})).data},g1=async(e,t)=>(await X.post(`/api/blog/blogs/${e}/share`,t)).data,gZ={name:"BlogListView",data:()=>({blogs:[],loading:!0}),async mounted(){try{this.blogs=await uZ()}finally{this.loading=!1}}},pZ={class:"blog-list"},vZ=d("h1",null,"Blogs",-1),yZ={class:"toolbar"},bZ={key:0},kZ={key:1},wZ={key:0};function SZ(e,t,n,i,r,s){const a=be("router-link");return S(),_("div",pZ,[vZ,d("div",yZ,[e.$store.getters.isLoggedIn?(S(),He(a,{key:0,class:"btn",to:"/blogs/create"},{default:ze(()=>[ge("Neuen Blog erstellen")]),_:1})):te("",!0)]),e.loading?(S(),_("div",bZ,"Laden…")):(S(),_("div",kZ,[e.blogs.length?te("",!0):(S(),_("div",wZ,"Keine Blogs gefunden.")),d("ul",null,[(S(!0),_(U,null,we(e.blogs,o=>{var l;return S(),_("li",{key:o.id},[v(a,{to:`/blogs/${o.id}`},{default:ze(()=>[ge(p(o.title),1)]),_:2},1032,["to"]),d("small",null," "+p((l=o.owner)==null?void 0:l.username),1)])}),128))])]))])}const _Z=Oe(gZ,[["render",SZ]]),CZ=Vn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{const t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).every(n=>n):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).every(t=>t),toggleTextAlign:e=>({editor:t,commands:n})=>this.options.alignments.includes(e)?t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),TZ=Tr.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),EZ=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var i,r;const s=n.getAttribute("style"),a=(r=(i=n.parentElement)===null||i===void 0?void 0:i.closest("span"))===null||r===void 0?void 0:r.getAttribute("style");n.setAttribute("style",`${a};${s}`)})},IZ=Tr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&EZ(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",_n(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,i)=>{if(n.isTextblock)return!0;n.marks.filter(r=>r.type===this.type).some(r=>Object.values(r.attrs).some(s=>!!s))||e.removeMark(i,i+n.nodeSize,this.type)}),!0}}}}),AZ=Vn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),xZ=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,DZ=Ki.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",_n(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[NT({find:xZ,type:this.type,getAttributes:e=>{const[,,t,n,i]=e;return{src:n,alt:t,title:i}}})]}}),PZ={name:"RichTextEditor",components:{EditorContent:Uu},props:{modelValue:{type:String,default:""},blogId:{type:[String,Number],required:!0}},emits:["update:modelValue"],data:()=>({editor:null,heading:0,color:"#000000",showPicker:!1,images:[]}),mounted(){this.editor=new zu({extensions:[Wu,TZ,IZ,AZ,DZ,CZ.configure({types:["heading","paragraph"]})],content:this.modelValue||"",editable:!0,editorProps:{attributes:{class:"pm-root"}},onUpdate:({editor:e})=>this.$emit("update:modelValue",e.getHTML())})},beforeUnmount(){var e,t;(t=(e=this.editor)==null?void 0:e.destroy)==null||t.call(e)},methods:{toggle(e){var t;(t=this.editor)==null||t.chain().focus()[e]().run()},applyHeading(){var n;const e=Number(this.heading),t=(n=this.editor)==null?void 0:n.chain().focus();e===0?t.setParagraph().run():t.toggleHeading({level:e}).run()},setAlign(e){var t;(t=this.editor)==null||t.chain().focus().setTextAlign(e).run()},setColor(){var e;(e=this.editor)==null||e.chain().focus().setColor(this.color).run()},openImagePicker:async function(){this.showPicker=!0;const e=await hZ(this.blogId);this.images=e.images||[]},imageUrl(e){return`/api/blog/blogs/images/${e.hash}`},insertGallery(e){var t,n,i,r,s,a;if((s=(i=(t=this.editor)==null?void 0:(n=t.chain().focus()).setImage)==null?void 0:(r=i.call(n,{src:this.imageUrl(e),alt:e.title})).run)==null||s.call(r),!((a=this.editor)!=null&&a.isActive("image"))){const o=`<img src="${this.imageUrl(e)}" alt="${e.title||""}">`;this.editor.commands.insertContent(o)}this.showPicker=!1},triggerUpload(){this.$refs.file.click()},async onUpload(e){var i;const t=(i=e.target.files)==null?void 0:i[0];if(!t)return;const n=await mZ(this.blogId,t,{title:t.name});this.images.unshift(n)}},watch:{modelValue(e){this.editor&&e!==this.editor.getHTML()&&this.editor.commands.setContent(e||"",!1)}}},Ja=e=>(Cn("data-v-c3a61d0e"),e=e(),Tn(),e),OZ={class:"rte"},MZ={class:"toolbar"},$Z=Ja(()=>d("b",null,"B",-1)),VZ=[$Z],LZ=Ja(()=>d("i",null,"I",-1)),NZ=[LZ],RZ=Ja(()=>d("u",null,"U",-1)),FZ=[RZ],BZ=Ja(()=>d("option",{value:0},"P",-1)),zZ=Ja(()=>d("option",{value:1},"H1",-1)),UZ=Ja(()=>d("option",{value:2},"H2",-1)),WZ=Ja(()=>d("option",{value:3},"H3",-1)),HZ=[BZ,zZ,UZ,WZ],jZ={key:1,class:"picker"},GZ={class:"picker-header"},qZ={class:"picker-actions"},KZ={class:"grid"},YZ=["onClick"],JZ=["src","alt"],XZ={class:"title"};function ZZ(e,t,n,i,r,s){const a=be("EditorContent");return S(),_("div",OZ,[d("div",MZ,[d("button",{type:"button",onClick:t[0]||(t[0]=o=>s.toggle("bold"))},VZ),d("button",{type:"button",onClick:t[1]||(t[1]=o=>s.toggle("italic"))},NZ),d("button",{type:"button",onClick:t[2]||(t[2]=o=>s.toggle("underline"))},FZ),ie(d("select",{"onUpdate:modelValue":t[3]||(t[3]=o=>e.heading=o),onChange:t[4]||(t[4]=(...o)=>s.applyHeading&&s.applyHeading(...o))},HZ,544),[[Et,e.heading]]),d("button",{type:"button",onClick:t[5]||(t[5]=o=>s.setAlign("left"))},"⟸"),d("button",{type:"button",onClick:t[6]||(t[6]=o=>s.setAlign("center"))},"⇔"),d("button",{type:"button",onClick:t[7]||(t[7]=o=>s.setAlign("right"))},"⟹"),ie(d("input",{type:"color","onUpdate:modelValue":t[8]||(t[8]=o=>e.color=o),onInput:t[9]||(t[9]=(...o)=>s.setColor&&s.setColor(...o))},null,544),[[Le,e.color]]),d("button",{type:"button",onClick:t[10]||(t[10]=(...o)=>s.openImagePicker&&s.openImagePicker(...o))},"🖼️"),d("input",{ref:"file",type:"file",accept:"image/*",class:"hidden",onChange:t[11]||(t[11]=(...o)=>s.onUpload&&s.onUpload(...o))},null,544)]),e.editor?(S(),He(a,{key:0,editor:e.editor,class:"editor"},null,8,["editor"])):te("",!0),e.showPicker?(S(),_("div",jZ,[d("div",GZ,[d("span",null,p(e.$t("blog.pickImage")),1),d("button",{onClick:t[12]||(t[12]=o=>e.showPicker=!1)},"✕")]),d("div",qZ,[d("button",{onClick:t[13]||(t[13]=(...o)=>s.triggerUpload&&s.triggerUpload(...o))},p(e.$t("blog.uploadImage")),1)]),d("div",KZ,[(S(!0),_(U,null,we(e.images,o=>(S(),_("div",{class:"thumb",key:o.id,onClick:l=>s.insertGallery(o)},[d("img",{src:s.imageUrl(o),alt:o.title},null,8,JZ),d("div",XZ,p(o.title),1)],8,YZ))),128))])])):te("",!0)])}const wE=Oe(PZ,[["render",ZZ],["__scopeId","data-v-c3a61d0e"]]),QZ={name:"BlogView",props:{id:String,slug:String},components:{RichTextEditor:wE},data:()=>({blog:null,items:[],page:1,pageSize:10,total:0,loading:!0,newPost:{title:"",content:""},resolvedId:null}),computed:{isOwner(){const e=this.$store.getters.user;return!!(e&&this.blog&&this.blog.owner&&this.blog.owner.hashedId===e.id)}},async mounted(){try{let e=this.$route.params.id;if(!e&&this.$route.params.slug||e&&isNaN(Number(e))){const n=this.$route.params.slug||this.$route.params.id,i=await fetch(`http://localhost:3001/api/blog/blogs/slug/${encodeURIComponent(n)}/id`);if(i.ok){const{id:r}=await i.json();this.resolvedId=r,e=r}else throw new Error("slug not found")}const t=e||this.resolvedId;this.blog=await bE(t),await this.fetchPage(1)}catch(e){console.log(e)}finally{this.loading=!1}},methods:{sanitize(e){return qa.sanitize(e||"")},async fetchPage(e){const t=this.$route.params.id||this.resolvedId,n=await cZ(t,{page:e,pageSize:this.pageSize});this.items=n.items,this.page=n.page,this.pageSize=n.pageSize,this.total=n.total},get pages(){return Math.max(1,Math.ceil(this.total/this.pageSize))},async go(e){e>=1&&e<=this.pages&&await this.fetchPage(e)},async addPost(){if(!this.newPost.title||!this.newPost.content)return;const e=this.$route.params.id||this.resolvedId;await kE(e,this.newPost),this.newPost={title:"",content:""},await this.fetchPage(1)}}},eQ={class:"blog-view"},tQ={key:0},nQ={key:1},iQ={key:0},rQ={class:"meta"},sQ={key:1,class:"actions"},aQ={class:"posts"},oQ={key:0},lQ=["innerHTML"],uQ={key:1,class:"pagination"},cQ=["disabled"],dQ=["disabled"],fQ={key:2,class:"post-editor"},hQ=["placeholder"],mQ={class:"btn",type:"submit"};function gQ(e,t,n,i,r,s){var l;const a=be("router-link"),o=be("RichTextEditor");return S(),_("div",eQ,[e.loading?(S(),_("div",tQ,"Laden…")):(S(),_("div",nQ,[d("h1",null,p(e.blog.title),1),e.blog.description?(S(),_("p",iQ,p(e.blog.description),1)):te("",!0),d("div",rQ,"von "+p((l=e.blog.owner)==null?void 0:l.username),1),e.$store.getters.isLoggedIn?(S(),_("div",sQ,[s.isOwner?(S(),He(a,{key:0,class:"editbutton",to:{name:"BlogEdit",params:{id:e.blog.id}}},{default:ze(()=>[ge("Bearbeiten")]),_:1},8,["to"])):te("",!0)])):te("",!0),d("div",aQ,[d("h2",null,p(e.$t("blog.posts")),1),e.items.length?te("",!0):(S(),_("div",oQ,p(e.$t("blog.noPosts")),1)),(S(!0),_(U,null,we(e.items,u=>(S(),_("article",{key:u.id,class:"post"},[d("h3",null,p(u.title),1),d("div",{class:"content",innerHTML:s.sanitize(u.content)},null,8,lQ)]))),128)),e.total>e.pageSize?(S(),_("div",uQ,[d("button",{disabled:e.page===1,onClick:t[0]||(t[0]=u=>s.go(e.page-1))},"«",8,cQ),d("span",null,p(e.page)+" / "+p(s.pages),1),d("button",{disabled:e.page===s.pages,onClick:t[1]||(t[1]=u=>s.go(e.page+1))},"»",8,dQ)])):te("",!0)]),s.isOwner?(S(),_("div",fQ,[d("h3",null,p(e.$t("blog.newPost")),1),d("form",{onSubmit:t[4]||(t[4]=ut((...u)=>s.addPost&&s.addPost(...u),["prevent"]))},[ie(d("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>e.newPost.title=u),placeholder:e.$t("blog.title"),required:""},null,8,hQ),[[Le,e.newPost.title]]),v(o,{modelValue:e.newPost.content,"onUpdate:modelValue":t[3]||(t[3]=u=>e.newPost.content=u),"blog-id":e.blog.id},null,8,["modelValue","blog-id"]),d("button",mQ,p(e.$t("blog.publish")),1)],32)])):te("",!0)]))])}const p1=Oe(QZ,[["render",gQ],["__scopeId","data-v-d80ef50f"]]),pQ={name:"BlogEditorView",components:{RichTextEditor:wE},computed:{isEdit(){return!!this.$route.params.id},isOwner(){const e=this.$store.getters.user;return!!(e&&this.ownerHashedId&&this.ownerHashedId===e.id)}},data:()=>({form:{title:"",description:"",visibility:"public",ageMin:null,ageMax:null},genderSel:[],post:{title:"",content:""},ownerHashedId:null,emailInput:"",shareStatus:"",currentShareUrl:"",ownerUsername:""}),async mounted(){var e,t;if(this.isEdit){const n=await bE(this.$route.params.id).catch(()=>null);if(!n)return this.$router.replace("/blogs");if(this.ownerHashedId=((e=n.owner)==null?void 0:e.hashedId)||null,this.ownerUsername=((t=n.owner)==null?void 0:t.username)||"",!this.isOwner)return this.$router.replace(`/blogs/${this.$route.params.id}`);this.form={title:n.title,description:n.description,visibility:n.visibility,ageMin:n.ageMin,ageMax:n.ageMax},this.genderSel=n.genders?n.genders.split(",").filter(Boolean):[],this.currentShareUrl=this.buildSlugUrl(n.title)}},methods:{async save(){if(this.form.visibility==="logged_in"&&this.form.ageMin!=null&&this.form.ageMax!=null&&this.form.ageMin>this.form.ageMax){alert("Ungültiger Altersbereich");return}const e={...this.form,genders:this.genderSel};if(this.isEdit)await fZ(this.$route.params.id,e),this.$router.push(`/blogs/${this.$route.params.id}`);else{const t=await dZ(e);this.$router.push(`/blogs/${t.id}`)}},async addPost(){this.isEdit&&(await kE(this.$route.params.id,this.post),this.post={title:"",content:""})},blogAbsoluteUrl(){var e,t;try{const n=window.location.origin,i=(this.ownerUsername||((e=this.$store.getters.user)==null?void 0:e.username)||"").toString(),r=(this.form.title||"").toString().replace(/\s+/g,"").replace(/[^a-zA-Z0-9_-]/g,""),s=`${i}${r}`.replace(/[^a-zA-Z0-9_-]/g,"");return`${n}/blogs/${encodeURIComponent(s)}`}catch{const n=(this.ownerUsername||((t=this.$store.getters.user)==null?void 0:t.username)||"").toString(),i=(this.form.title||"").toString().replace(/\s+/g,"").replace(/[^a-zA-Z0-9_-]/g,""),r=`${n}${i}`.replace(/[^a-zA-Z0-9_-]/g,"");return`/blogs/${encodeURIComponent(r)}`}},buildSlugUrl(e){var s;const t=window.location.origin,n=(this.ownerUsername||((s=this.$store.getters.user)==null?void 0:s.username)||"").toString(),i=(e||"").toString().replace(/\s+/g,"").replace(/[^a-zA-Z0-9_-]/g,""),r=`${n}${i}`.replace(/[^a-zA-Z0-9_-]/g,"");return`${t}/blogs/${encodeURIComponent(r)}`},async copyUrl(){const e=this.currentShareUrl||this.blogAbsoluteUrl();try{await navigator.clipboard.writeText(e),this.shareStatus="Link kopiert"}catch{this.shareStatus="Kopieren fehlgeschlagen"}setTimeout(()=>this.shareStatus="",2e3)},async shareToFriends(){try{const e=await g1(this.$route.params.id,{toFriends:!0});e.url&&(this.currentShareUrl=e.url),this.shareStatus=`An ${e.notifiedFriends||0} Freund(e) gesendet.`}catch{this.shareStatus="Teilen fehlgeschlagen"}setTimeout(()=>this.shareStatus="",3e3)},async shareToEmails(){const e=this.emailInput.split(",").map(t=>t.trim()).filter(Boolean);if(e.length){try{const t=await g1(this.$route.params.id,{emails:e});t.url&&(this.currentShareUrl=t.url),this.shareStatus=`${t.emailsSent||0} E-Mail(s) versendet.`}catch{this.shareStatus="E-Mail-Versand fehlgeschlagen"}setTimeout(()=>this.shareStatus="",3e3)}}},watch:{"form.title"(e){this.isEdit&&(this.currentShareUrl=this.buildSlugUrl(e))}}},xi=e=>(Cn("data-v-77d59188"),e=e(),Tn(),e),vQ={class:"blog-editor"},yQ=xi(()=>d("label",null,"Titel",-1)),bQ=xi(()=>d("label",null,"Beschreibung",-1)),kQ=xi(()=>d("label",null,"Sichtbarkeit",-1)),wQ=xi(()=>d("option",{value:"public"},"Öffentlich",-1)),SQ=xi(()=>d("option",{value:"logged_in"},"Nur eingeloggte Nutzer",-1)),_Q=[wQ,SQ],CQ={key:0},TQ=xi(()=>d("label",null,"Altersbereich",-1)),EQ={class:"row"},IQ=xi(()=>d("label",null,"Geschlecht",-1)),AQ={class:"row"},xQ=xi(()=>d("button",{class:"btn",type:"submit"},"Speichern",-1)),DQ={key:0,class:"post-editor"},PQ=xi(()=>d("h2",null,"Neuer Beitrag",-1)),OQ=xi(()=>d("button",{class:"btn",type:"submit"},"Beitrag hinzufügen",-1)),MQ={key:1,class:"share-section"},$Q=xi(()=>d("h2",null,"Blog teilen",-1)),VQ={class:"share-url"},LQ=xi(()=>d("label",null,"URL",-1)),NQ=["value"],RQ={class:"share-actions"},FQ={class:"share-email"},BQ=xi(()=>d("label",null,"E-Mail-Adressen (Kommagetrennt)",-1)),zQ={key:0,class:"hint"},UQ={key:0,class:"status"};function WQ(e,t,n,i,r,s){const a=be("RichTextEditor");return S(),_("div",vQ,[d("h1",null,p(s.isEdit?"Blog bearbeiten":"Blog erstellen"),1),d("form",{onSubmit:t[7]||(t[7]=ut((...o)=>s.save&&s.save(...o),["prevent"]))},[d("div",null,[yQ,ie(d("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>e.form.title=o),required:""},null,512),[[Le,e.form.title]])]),d("div",null,[bQ,ie(d("textarea",{"onUpdate:modelValue":t[1]||(t[1]=o=>e.form.description=o)},null,512),[[Le,e.form.description]])]),d("div",null,[kQ,ie(d("select",{"onUpdate:modelValue":t[2]||(t[2]=o=>e.form.visibility=o)},_Q,512),[[Et,e.form.visibility]])]),e.form.visibility==="logged_in"?(S(),_("div",CQ,[TQ,d("div",EQ,[ie(d("input",{type:"number",min:"0","onUpdate:modelValue":t[3]||(t[3]=o=>e.form.ageMin=o),placeholder:"min"},null,512),[[Le,e.form.ageMin,void 0,{number:!0}]]),ie(d("input",{type:"number",min:"0","onUpdate:modelValue":t[4]||(t[4]=o=>e.form.ageMax=o),placeholder:"max"},null,512),[[Le,e.form.ageMax,void 0,{number:!0}]])]),IQ,d("div",AQ,[d("label",null,[ie(d("input",{type:"checkbox",value:"m","onUpdate:modelValue":t[5]||(t[5]=o=>e.genderSel=o)},null,512),[[Nt,e.genderSel]]),ge(" Männlich")]),d("label",null,[ie(d("input",{type:"checkbox",value:"f","onUpdate:modelValue":t[6]||(t[6]=o=>e.genderSel=o)},null,512),[[Nt,e.genderSel]]),ge(" Weiblich")])])])):te("",!0),xQ],32),s.isEdit?(S(),_("div",DQ,[PQ,d("form",{onSubmit:t[10]||(t[10]=ut((...o)=>s.addPost&&s.addPost(...o),["prevent"]))},[ie(d("input",{"onUpdate:modelValue":t[8]||(t[8]=o=>e.post.title=o),placeholder:"Titel",required:""},null,512),[[Le,e.post.title]]),v(a,{modelValue:e.post.content,"onUpdate:modelValue":t[9]||(t[9]=o=>e.post.content=o),"blog-id":e.$route.params.id},null,8,["modelValue","blog-id"]),OQ],32)])):te("",!0),s.isEdit?(S(),_("div",MQ,[$Q,d("div",VQ,[LQ,d("input",{value:e.currentShareUrl,readonly:"",onFocus:t[11]||(t[11]=o=>o.target.select())},null,40,NQ),d("button",{class:"btn",type:"button",onClick:t[12]||(t[12]=(...o)=>s.copyUrl&&s.copyUrl(...o))},"Link kopieren")]),d("div",RQ,[d("button",{class:"btn",type:"button",onClick:t[13]||(t[13]=(...o)=>s.shareToFriends&&s.shareToFriends(...o))},"An Freunde senden")]),d("div",FQ,[BQ,ie(d("input",{"onUpdate:modelValue":t[14]||(t[14]=o=>e.emailInput=o),placeholder:"name@example.com, second@example.org"},null,512),[[Le,e.emailInput]]),d("button",{class:"btn",type:"button",onClick:t[15]||(t[15]=(...o)=>s.shareToEmails&&s.shareToEmails(...o))},"Senden"),e.form.visibility!=="public"?(S(),_("p",zQ,"Hinweis: Dieser Blog ist nicht öffentlich. Empfänger benötigen ggf. ein Login und passende Alters/Geschlechts-Berechtigung.")):te("",!0)]),e.shareStatus?(S(),_("p",UQ,p(e.shareStatus),1)):te("",!0)])):te("",!0)])}const v1=Oe(pQ,[["render",WQ],["__scopeId","data-v-77d59188"]]),HQ=[{path:"/blogs/create",name:"BlogCreate",component:v1,meta:{requiresAuth:!0}},{path:"/blogs/:id/edit",name:"BlogEdit",component:v1,props:!0,meta:{requiresAuth:!0}},{path:"/blogs/:slug",name:"BlogSlug",component:p1,props:e=>({slug:e.params.slug})},{path:"/blogs/:id(\\d+)/:slug?",name:"Blog",component:p1,props:!0},{path:"/blogs",name:"BlogList",component:_Z}],jQ={name:"Match3Game",data(){return{gameActive:!1,isPaused:!1,showPause:!1,showLevelComplete:!1,showCampaignComplete:!1,showGameOver:!1,campaignData:null,currentLevel:1,completedLevels:0,currentLevelData:null,board:[],boardLayout:[],boardWidth:6,boardHeight:6,tileTypes:["gem","star","heart"],score:0,levelScore:0,stars:0,levelStars:0,moves:0,movesLeft:15,matchesMade:0,dragStartIndex:null,dragStartX:null,dragStartY:null,isDragging:!1,dragElement:null,dragOffsetX:0,dragOffsetY:0,boundMouseMoveHandler:null,boundTouchMoveHandler:null,isFalling:!1,fallingTiles:[],newTiles:[],matchedTiles:[],cascadeRound:0,statsExpanded:!1,levelDescriptionExpanded:!0,isLoadingData:!1,lastApiCall:0,apiCallCooldown:1e3,isInitializingLevel:!1}},mounted(){this.loadCampaignData()},methods:{loadCampaignData(){const e=Date.now();return this.isLoadingData||e-this.lastApiCall<this.apiCallCooldown?Promise.resolve():(this.isLoadingData=!0,this.lastApiCall=e,X.get("/api/match3/campaigns/1").then(t=>{if(t.data.success&&t.data.data){this.campaignData=t.data.data;const n=this.campaignData.levels.find(i=>i.order===this.currentLevel);n&&(this.currentLevelData=n),this.$nextTick(()=>{this.initializeLevel()})}else throw new Error("Ungültige API-Response-Struktur")}).catch(t=>{this.handleLoadError("Kampagnendaten konnten nicht geladen werden",t)}).finally(()=>{this.isLoadingData=!1}))},loadLevelData(e){if(!this.campaignData||!this.campaignData.levels)return this.loadCampaignData().then(()=>{const n=this.campaignData.levels.find(i=>i.order===e);if(n)return this.loadLevelDataInternal(n).then(()=>{this.initializeLevel()});throw new Error(`Level ${e} nicht in Kampagnendaten gefunden`)});const t=this.campaignData.levels.find(n=>n.order===e);return t?this.loadLevelDataInternal(t).then(()=>{this.initializeLevel()}):this.loadCampaignData().then(()=>{const n=this.campaignData.levels.find(i=>i.order===e);if(!n)throw new Error(`Level ${e} nicht gefunden`);return this.loadLevelDataInternal(n).then(()=>{this.initializeLevel()})})},loadLevelDataInternal(e){return console.log("🔍 Lade Level-Daten für ID:",e.id),X.get(`/api/match3/levels/${e.id}`).then(t=>{if(console.log("📡 API-Antwort erhalten:",t),t.data&&t.data.success&&t.data.data){const n=t.data.data;return this.currentLevelData=n,this.boardWidth=n.boardWidth,this.boardHeight=n.boardHeight,n.levelTileTypes&&n.levelTileTypes.length>0?this.tileTypes=n.levelTileTypes.filter(i=>i.isActive&&i.tileType&&i.tileType.isActive).map(i=>i.tileType.name):this.tileTypes=n.tileTypes||["gem","star","heart"],n.objectives&&n.objectives.forEach(i=>{i.completed=!1}),this.boardLayout=this.parseBoardLayout(n.boardLayout),this.movesLeft=n.moveLimit,Promise.resolve()}else throw new Error("Ungültige API-Response für Level-Daten")}).catch(t=>{throw new Error("Level-Daten konnten nicht vom Backend geladen werden")})},loadUserProgress(){if(!this.$store.getters.isLoggedIn||!this.$store.getters.user){this.completedLevels>0?this.currentLevel=this.completedLevels+1:this.currentLevel=1,this.currentLevelData&&(this.movesLeft=this.currentLevelData.moveLimit-this.moves);return}X.get("/api/match3/campaigns/1/progress").then(e=>{if(e.data.success){const t=e.data.data;this.score=t.totalScore,this.stars=t.totalStars,this.completedLevels=t.levelsCompleted,this.currentLevel=t.currentLevel,this.movesLeft=t.moveLimit-t.movesUsed}}).catch(e=>{this.completedLevels>0?this.currentLevel=this.completedLevels+1:this.currentLevel=1,this.currentLevelData&&(this.movesLeft=this.currentLevelData.moveLimit-this.moves)})},initializeLevel(){if(this.isInitializingLevel){console.log("⏸️ initializeLevel: Level wird bereits initialisiert, überspringe Aufruf");return}if(!this.currentLevelData){console.log("❌ initializeLevel: Keine Level-Daten verfügbar, lade Kampagnendaten..."),this.loadCampaignData().then(()=>{this.currentLevelData&&this.initializeLevelInternal()});return}this.isInitializingLevel=!0,this.initializeLevelInternal()},initializeLevelInternal(){const e=this.currentLevelData;if(this.boardWidth=e.boardWidth,this.boardHeight=e.boardHeight,e.levelTileTypes&&e.levelTileTypes.length>0?this.tileTypes=e.levelTileTypes.filter(n=>n.isActive&&n.tileType&&n.tileType.isActive).map(n=>n.tileType.name):this.tileTypes=e.tileTypes||["gem","star","heart"],!e.boardLayout)this.boardLayout=[];else{const n=e.boardLayout.split(`
`).filter(r=>r.trim().length>0),i=[];for(let r=0;r<n.length;r++){const s=n[r],a=[];for(let o=0;o<s.length;o++){const l=s[o];l==="o"||l==="f"?a.push({type:"empty",char:l}):l==="x"||l==="t"?a.push({type:"tile",char:l}):a.push({type:"specific",char:l})}i.push(a)}this.boardLayout=i}this.moves=0,this.levelScore=0,this.levelStars=0,this.matchesMade=0,this.cascadeRound=0,this.movesLeft=e.moveLimit,this.matchedTiles=[],this.fallingTiles=[],this.newTiles=[],this.isFalling=!1,e.objectives&&e.objectives.forEach(n=>{n.completed=!1}),this.board=this.generateBoardFromLayout(),this.findMatchesOnBoard(this.board,!1).length>0&&(this.board=this.generateBoardFromLayout(),this.findMatchesOnBoard(this.board,!1).length>0),this.gameActive=!0,this.isInitializingLevel=!1},startDrag(e,t){var n,i,r,s;this.gameActive&&(this.dragStartIndex=e,this.dragStartX=t.clientX||((i=(n=t.touches)==null?void 0:n[0])==null?void 0:i.clientX),this.dragStartY=t.clientY||((s=(r=t.touches)==null?void 0:r[0])==null?void 0:s.clientY),this.isDragging=!0,this.startDragEffect(t,e))},endDrag(e){var i,r,s,a;if(!this.isDragging||this.dragStartIndex===null)return;if(this.isFalling){this.endDragEffect(),this.dragStartIndex=null,this.dragStartX=null,this.dragStartY=null,this.isDragging=!1;return}this.endDragEffect();const t=e.clientX||((r=(i=e.changedTouches)==null?void 0:i[0])==null?void 0:r.clientX),n=e.clientY||((a=(s=e.changedTouches)==null?void 0:s[0])==null?void 0:a.clientY);if(t&&n){const o=t-this.dragStartX,l=n-this.dragStartY,u=this.getDragDirection(o,l);if(u){const c=this.getAdjacentIndex(this.dragStartIndex,u);c!==null&&this.swapTiles(this.dragStartIndex,c)}}this.dragStartIndex=null,this.dragStartX=null,this.dragStartY=null,this.isDragging=!1},getDragDirection(e,t){return Math.abs(e)<30&&Math.abs(t)<30?null:Math.abs(e)>Math.abs(t)?e>0?"right":"left":t>0?"down":"up"},getAdjacentIndex(e,t){if(e===null)return null;const{row:n,col:i}=this.indexToCoords(e);let r=n,s=i;switch(t){case"up":r=n-1;break;case"down":r=n+1;break;case"left":s=i-1;break;case"right":s=i+1;break;default:return null}return this.isValidPosition(r,s)?this.coordsToIndex(r,s):null},findMatchesOnBoard(e,t=!0){const n=[];for(let i=0;i<this.boardHeight;i++)for(let r=0;r<this.boardWidth-2;r++){const s=this.coordsToIndex(i,r),a=this.coordsToIndex(i,r+1),o=this.coordsToIndex(i,r+2);if(s!==null&&a!==null&&o!==null&&this.isValidPosition(i,r)&&this.isValidPosition(i,r+1)&&this.isValidPosition(i,r+2)&&e[s]&&e[a]&&e[o]&&e[s].type===e[a].type&&e[a].type===e[o].type){let l=r,u=r+2;for(;l>0;){const f=this.coordsToIndex(i,l-1);if(f!==null&&this.isValidPosition(i,l-1)&&e[f]&&e[f].type===e[s].type)l--;else break}for(;u<this.boardWidth-1;){const f=this.coordsToIndex(i,u+1);if(f!==null&&this.isValidPosition(i,u+1)&&e[f]&&e[f].type===e[f].type)u++;else break}const c=[];for(let f=l;f<=u;f++){const h=this.coordsToIndex(i,f);h!==null&&this.isValidPosition(i,f)&&c.push(h)}c.length>=3&&n.push(c)}}for(let i=0;i<this.boardHeight-2;i++)for(let r=0;r<this.boardWidth;r++){const s=this.coordsToIndex(i,r),a=this.coordsToIndex(i+1,r),o=this.coordsToIndex(i+2,r);if(s!==null&&a!==null&&o!==null&&this.isValidPosition(i,r)&&this.isValidPosition(i+1,r)&&this.isValidPosition(i+2,r)&&e[s]&&e[a]&&e[o]&&e[s].type===e[a].type&&e[a].type===e[o].type){let l=i,u=i+2;for(;l>0;){const f=this.coordsToIndex(l-1,r);if(f!==null&&this.isValidPosition(l-1,r)&&e[f]&&e[f].type===e[s].type)l--;else break}for(;u<this.boardHeight-1;){const f=this.coordsToIndex(u+1,r);if(f!==null&&this.isValidPosition(u+1,r)&&e[f]&&e[f].type===e[f].type)u++;else break}const c=[];for(let f=l;f<=u;f++){const h=this.coordsToIndex(f,r);h!==null&&this.isValidPosition(f,r)&&c.push(h)}c.length>=3&&n.push(c)}}return n},fixInitialMatches(){let e=0;const t=50;do{const n=this.findMatchesOnBoard(this.board);if(n.length===0)break;const i=n[Math.floor(Math.random()*n.length)],r=i[Math.floor(Math.random()*i.length)],s=this.board[r].type,a=this.tileTypes.filter(l=>l!==s),o=a[Math.floor(Math.random()*a.length)];this.board[r].type=o,e++}while(e<t);e>=t&&console.warn("Could not fix initial matches after",t,"attempts")},startDragEffect(e,t){this.dragElement=document.createElement("div"),this.dragElement.className="drag-tile",this.dragElement.innerHTML=`
<div class="tile-content">
<span class="tile-icon">${this.getTileSymbol(this.board[t].type)}</span>
</div>
`;const n=e.target,i=n.getBoundingClientRect();this.dragElement.style.position="fixed",this.dragElement.style.left=i.left+"px",this.dragElement.style.top=i.top+"px",this.dragElement.style.width=i.width+"px",this.dragElement.style.height=i.height+"px",this.dragElement.style.zIndex="1000",this.dragElement.style.pointerEvents="none",this.dragOffsetX=e.clientX-i.left,this.dragOffsetY=e.clientY-i.top,document.body.appendChild(this.dragElement),this.boundMouseMoveHandler=this.updateDragEffect.bind(this),this.boundTouchMoveHandler=this.updateDragEffect.bind(this),document.addEventListener("mousemove",this.boundMouseMoveHandler),document.addEventListener("touchmove",this.boundTouchMoveHandler),n.style.opacity="0.3"},updateDragEffect(e){var i,r,s,a;if(!this.dragElement||!this.isDragging)return;const t=e.clientX||((r=(i=e.touches)==null?void 0:i[0])==null?void 0:r.clientX),n=e.clientY||((a=(s=e.touches)==null?void 0:s[0])==null?void 0:a.clientY);t&&n&&(this.dragElement.style.left=t-this.dragOffsetX+"px",this.dragElement.style.top=n-this.dragOffsetY+"px")},endDragEffect(){if(this.boundMouseMoveHandler&&(document.removeEventListener("mousemove",this.boundMouseMoveHandler),this.boundMouseMoveHandler=null),this.boundTouchMoveHandler&&(document.removeEventListener("touchmove",this.boundTouchMoveHandler),this.boundTouchMoveHandler=null),this.dragElement&&(document.body.removeChild(this.dragElement),this.dragElement=null),this.dragStartIndex!==null){const e=document.querySelector(`[data-index="${this.dragStartIndex}"]`);e&&(e.style.opacity="1")}},async swapTiles(e,t){if(this.isFalling)return;const n=this.board[e];this.board[e]=this.board[t],this.board[t]=n,this.moves++,this.movesLeft--;const i=this.findMatchesOnBoard(this.board,!1);if(i.length>0)this.handleMatches(i);else{const r=this.board[e];this.board[e]=this.board[t],this.board[t]=r,this.moves--,this.movesLeft++,this.moves>0&&!this.isInitializingLevel&&this.checkLevelObjectives()}},handleMatches(e){const t=new Set;e.forEach(i=>{i.forEach(r=>t.add(r))}),this.matchedTiles=Array.from(t),this.matchesMade+=1;const n=t.size*10*this.currentLevel;this.levelScore+=n,this.score+=n,setTimeout(()=>{this.startFallAnimation(Array.from(t))},500),this.moves>0&&!this.isInitializingLevel&&this.checkLevelObjectives()},checkLevelObjectives(){if(this.isInitializingLevel||!this.currentLevelData||!this.currentLevelData.objectives||this.moves===0||this.currentLevelData.objectives.length===0)return;let e=!0;this.currentLevelData.objectives.forEach((t,n)=>{let i=!1;switch(t.type){case"score":i=this.checkObjectiveCompletion(this.levelScore,t.target,t.operator);break;case"matches":i=this.checkObjectiveCompletion(this.matchesMade,t.target,t.operator);break;case"moves":i=this.checkObjectiveCompletion(this.moves,t.target,t.operator);break;default:i=!1}t.completed=i,i||(e=!1)}),e&&this.completeLevel()},completeLevel(){this.gameActive=!1,this.calculateStars(),this.showLevelComplete=!0},checkObjectiveCompletion(e,t,n){switch(n){case">=":return e>=t;case"<=":return e<=t;case"=":return e===t;case">":return e>t;case"<":return e<t;default:return e>=t}},handleLoadError(e,t){if(this.gameActive=!1,this.isLoadingData=!1,this.$refs.errorDialog){const n=`${e}
Fehler-Details: ${t.message||"Unbekannter Fehler"}
Das Spiel konnte nicht geladen werden. Überprüfe deine Internetverbindung und versuche es erneut.`;this.$refs.errorDialog.open(n)}else alert(`${e}
Fehler: ${t.message||"Unbekannter Fehler"}`)},calculateStars(){const e=this.currentLevelData.moveLimit-this.movesLeft,t=this.currentLevelData.moveLimit;e<=t*.5?this.levelStars=3:e<=t*.8?this.levelStars=2:this.levelStars=1,this.stars+=this.levelStars},startFallAnimation(e){this.isFalling=!0,this.animateTileDisappearance(e),setTimeout(()=>{e.forEach(t=>{this.board[t]=null}),this.processFalling()},300)},animateTileDisappearance(e){e.forEach(t=>{const n=document.querySelector(`[data-index="${t}"]`);n&&n.classList.add("disappearing")}),setTimeout(()=>{e.forEach(t=>{const n=document.querySelector(`[data-index="${t}"]`);n&&(n.classList.remove("disappearing"),n.style.transform="",n.style.opacity="",n.style.zIndex="")})},300)},processFalling(){this.fallTilesDown(),this.addNewTilesFromTop(),setTimeout(()=>{this.isFalling=!1,this.fallingTiles=[],this.newTiles=[],this.checkForCascadeMatches()},800)},checkForCascadeMatches(){this.cascadeRound++;const e=this.findMatchesOnBoard(this.board,!1);e.length>0?this.handleMatches(e):(this.moves>0&&!this.isInitializingLevel&&this.checkLevelObjectives(),this.gameActive=!0,this.cascadeRound=0)},fallTilesDown(){const e=Array(this.boardWidth*this.boardHeight).fill(null);for(let t=0;t<this.boardWidth;t++){let n=this.boardHeight-1;for(let i=this.boardHeight-1;i>=0;i--){const r=this.coordsToIndex(i,t);if(r!==null&&this.isValidPosition(i,t)){for(;n>=0&&!this.isValidPosition(n,t);)n--;if(n>=0){const s=this.coordsToIndex(n,t);s!==null&&this.board[r]&&(e[s]=this.board[r],this.animateTileFall(r,s),n--)}}}}this.board=e},addNewTilesFromTop(){for(let e=0;e<this.boardWidth;e++){let t=-1;for(let n=0;n<this.boardHeight;n++)if(this.isValidPosition(n,e)){const i=this.coordsToIndex(n,e);if(i!==null&&!this.board[i]){t=n;break}}if(t>=0){for(let n=t;n<this.boardHeight;n++)if(this.isValidPosition(n,e)){const i=this.coordsToIndex(n,e);if(i!==null&&!this.board[i]){const s={type:this.tileTypes[Math.floor(Math.random()*this.tileTypes.length)],id:Date.now()+n*this.boardWidth+e+Math.random(),row:n,col:e};this.board[i]=s,this.animateNewTileFall(i)}}}}},animateTileFall(e,t){setTimeout(()=>{const n=document.querySelector(`[data-index="${e}"]`),i=document.querySelector(`[data-index="${t}"]`);n&&i&&(n.style.transition="transform 0.6s ease-in",n.style.transform=`translateY(${(t-e)*64}px)`,setTimeout(()=>{n.style.transition="",n.style.transform=""},600))},50)},animateNewTileFall(e){setTimeout(()=>{const t=document.querySelector(`[data-index="${e}"]`);t&&(t.style.transition="transform 0.6s ease-out",t.style.transform="translateY(-64px)",setTimeout(()=>{t.style.transition="",t.style.transform=""},100))},50)},checkObjectives(){if(!this.currentLevelData)return;const e=this.currentLevelData.objectives.find(i=>i.description.includes("Punkte"));e&&!e.completed&&(e.completed=this.levelScore>=e.target);const t=this.currentLevelData.objectives.find(i=>i.description.includes("Matches"));t&&!t.completed&&(t.completed=this.moves>=t.target);const n=this.currentLevelData.objectives.find(i=>i.description.includes("Züge"));n&&!n.completed&&(n.completed=this.moves<=n.target)},checkLevelComplete(){if(!this.currentLevelData)return;this.currentLevelData.objectives.every(t=>t.completed)&&(this.calculateLevelStars(),this.gameActive=!1,this.showLevelComplete=!0,this.saveProgressToBackend())},saveProgressToBackend(){const e={score:this.levelScore,moves:this.moves,time:0,stars:this.levelStars,isCompleted:!0};X.post(`/api/match3/campaigns/1/levels/${this.currentLevel}/progress`,e).catch(t=>{console.error("Error saving progress:",t)})},calculateLevelStars(){let e=0;e++,this.levelScore>=this.currentLevelData.objectives[0].target*1.5&&e++;const t=this.currentLevelData.objectives.find(n=>n.description.includes("Züge"));t&&this.moves<=t.target*.8&&e++,this.levelStars=e,this.stars+=e},async nextLevel(){if(this.showLevelComplete=!1,this.completedLevels++,this.currentLevel++,this.campaignData&&this.campaignData.levels&&!this.campaignData.levels.some(t=>t.order===this.currentLevel)){this.showCampaignComplete=!0;return}this.levelScore=0,this.levelStars=0,this.moves=0,this.matchesMade=0,this.cascadeRound=0,this.matchedTiles=[],this.fallingTiles=[],this.newTiles=[],this.isFalling=!1;try{await this.loadLevelData(this.currentLevel),await this.$nextTick()}catch(e){console.error("❌ Fehler beim Neustarten des Levels:",e),this.handleLoadError("Level konnte nicht neu gestartet werden",e)}},async restartLevel(){this.showLevelComplete=!1,this.showPause=!1,this.levelScore=0,this.levelStars=0,this.moves=0,this.matchesMade=0,this.cascadeRound=0,this.matchedTiles=[],this.fallingTiles=[],this.newTiles=[],this.isFalling=!1;try{await this.loadLevelData(this.currentLevel),await this.$nextTick()}catch(e){console.error("❌ Fehler beim Neustarten des Levels:",e),this.handleLoadError("Level konnte nicht neu gestartet werden",e)}setTimeout(()=>{this.board&&this.board.length>0&&this.findMatchesOnBoard(this.board,!1).length>0&&this.fixInitialMatches()},100)},async restartCampaign(){this.showCampaignComplete=!1,this.currentLevel=1,this.score=0,this.stars=0,this.completedLevels=0,this.matchedTiles=[],this.fallingTiles=[],this.newTiles=[],this.isFalling=!1,this.cascadeRound=0;try{await this.loadCampaignData(),await this.$nextTick()}catch(e){console.error("❌ Fehler beim Neustarten der Kampagne:",e),this.handleLoadError("Kampagne konnte nicht neu gestartet werden",e)}setTimeout(()=>{this.board&&this.board.length>0&&this.findMatchesOnBoard(this.board,!1).length>0&&this.fixInitialMatches()},100)},pauseGame(){this.gameActive=!1,this.showPause=!0},resumeGame(){this.gameActive=!0,this.showPause=!1},toggleStats(){this.statsExpanded=!this.statsExpanded},toggleLevelDescription(){this.levelDescriptionExpanded=!this.levelDescriptionExpanded},getTileColor(e){return{gem:"#FF6B6B",star:"#FFD93D",heart:"#FF8E8E",diamond:"#4ECDC4",circle:"#95E1D3",square:"#A8E6CF"}[e]||"#666"},getTileIcon(e){return{gem:"mdi-diamond-stone",star:"mdi-star",heart:"mdi-heart",diamond:"mdi-diamond",circle:"mdi-circle",square:"mdi-square"}[e]||"mdi-help"},getTileSymbol(e){return{gem:"💎",star:"⭐",heart:"❤️",diamond:"🔷",circle:"⭕",square:"🟦",crown:"👑",rainbow:"🌈"}[e]||"❓"},parseBoardLayout(e){if(!e)return[];const t=e.split(`
`).filter(i=>i.trim().length>0),n=[];for(let i=0;i<t.length;i++){const r=t[i],s=[];for(let a=0;a<r.length;a++){const o=r[a];o==="o"||o==="f"?s.push({type:"empty",char:o}):o==="x"||o==="t"?s.push({type:"tile",char:o}):s.push({type:"specific",char:o})}n.push(s)}return n},generateBoardFromLayout(){const e=[];let t=0;const n=100;do{e.length=0;for(let r=0;r<this.boardHeight;r++)for(let s=0;s<this.boardWidth;s++)if(this.boardLayout[r]&&this.boardLayout[r][s]){const a=this.boardLayout[r][s];if(a.type==="empty")e.push(null);else if(a.type==="tile"){const l={type:this.tileTypes[Math.floor(Math.random()*this.tileTypes.length)],id:Date.now()+r*this.boardWidth+s+Math.random(),row:r,col:s};e.push(l)}else if(a.type==="specific"){let o="gem";a.char==="g"?o="gem":a.char==="c"?o="crown":a.char==="r"?o="rainbow":o=this.tileTypes[Math.floor(Math.random()*this.tileTypes.length)];const l={type:o,id:Date.now()+r*this.boardWidth+s+Math.random(),row:r,col:s};e.push(l)}}else e.push(null);if(t++,this.findMatchesOnBoard(e,!1).length===0)break}while(t<n);return e},indexToCoords(e){if(e===null||e<0)return{row:-1,col:-1};const t=Math.floor(e/this.boardWidth),n=e%this.boardWidth;return{row:t,col:n}},coordsToIndex(e,t){return e<0||e>=this.boardHeight||t<0||t>=this.boardWidth?null:e*this.boardWidth+t},isValidPosition(e,t){return e<0||e>=this.boardHeight||t<0||t>=this.boardWidth?!1:(this.boardLayout&&this.boardLayout[e]&&this.boardLayout[e][t]&&this.boardLayout[e][t],!0)},getObjectiveProgress(e){switch(e.type){case"score":return`${this.levelScore}/${e.target}`;case"matches":return`${this.matchesMade}/${e.target}`;case"moves":return`${this.moves}/${e.target}`;default:return"N/A"}}},computed:{isStatsExpanded(){return this.statsExpanded},toggleIcon(){return this.statsExpanded?"▼":"▶"},safeMovesLeft(){return this.movesLeft||0}}},SE=e=>(Cn("data-v-58ae799d"),e=e(),Tn(),e),GQ={class:"contenthidden"},qQ={class:"contentscroll"},KQ={class:"game-title"},YQ={class:"game-layout"},JQ={class:"stats-section"},XQ={class:"stats-card"},ZQ={class:"stats-header"},QQ={class:"stats-header-content"},eee={class:"stats-title"},tee={class:"toggle-icon"},nee={key:0,class:"stats-list"},iee={class:"stat-row"},ree={class:"stat-value score-value"},see={class:"stat-label"},aee={class:"stat-row"},oee={class:"stat-value moves-value"},lee={class:"stat-label"},uee={class:"stat-row"},cee={class:"stat-value level-value"},dee={class:"stat-label"},fee={class:"stat-row"},hee={class:"stat-value stars-value"},mee={class:"stat-label"},gee={class:"game-content"},pee={class:"moves-left-display"},vee={class:"moves-left-label"},yee={class:"moves-left-value"},bee={key:0,class:"level-info-card"},kee={class:"level-header"},wee={class:"level-header-content"},See={class:"level-title"},_ee={class:"toggle-icon"},Cee={class:"level-content"},Tee={class:"level-objectives"},Eee={class:"objective-icon"},Iee={class:"objective-progress"},Aee={class:"game-board-container"},xee=["data-index","onMousedown","onTouchstart"],Dee={key:0,class:"tile-symbol"},Pee={key:1,class:"game-board-loading"},Oee=SE(()=>d("p",null,"Lade Spielbrett...",-1)),Mee={class:"debug-info"},$ee=SE(()=>d("p",null,"Debug-Info:",-1)),Vee={class:"game-controls"},Lee={class:"level-complete-stats"},Nee={class:"stat-item"},Ree={class:"stat-label"},Fee={class:"stat-value"},Bee={class:"stat-item"},zee={class:"stat-label"},Uee={class:"stat-value"},Wee={class:"stat-item"},Hee={class:"stat-label"},jee={class:"stat-value"},Gee={class:"campaign-complete-stats"},qee={class:"stat-item"},Kee={class:"stat-label"},Yee={class:"stat-value"},Jee={class:"stat-item"},Xee={class:"stat-label"},Zee={class:"stat-value"},Qee={class:"stat-item"},ete={class:"stat-label"},tte={class:"stat-value"};function nte(e,t,n,i,r,s){const a=be("v-card-title"),o=be("v-card-text"),l=be("v-btn"),u=be("v-card-actions"),c=be("v-card"),f=be("v-dialog");return S(),_("div",GQ,[d("div",qQ,[d("div",KQ,[d("h1",null,p(e.$t("minigames.match3.title")),1),d("p",null,p(e.$t("minigames.match3.campaignDescription")),1)]),d("div",YQ,[d("div",JQ,[d("div",XQ,[d("div",ZQ,[d("div",QQ,[d("h3",eee,p(e.$t("minigames.match3.gameStats")),1),d("button",{class:"toggle-button",onClick:t[0]||(t[0]=(...h)=>s.toggleStats&&s.toggleStats(...h))},[d("span",tee,p(s.toggleIcon),1)])])]),s.isStatsExpanded?(S(),_("div",nee,[d("div",iee,[d("span",ree,p(e.score),1),d("span",see,p(e.$t("minigames.match3.score")),1)]),d("div",aee,[d("span",oee,p(e.moves),1),d("span",lee,p(e.$t("minigames.match3.moves")),1)]),d("div",uee,[d("span",cee,p(e.currentLevel),1),d("span",dee,p(e.$t("minigames.match3.currentLevel")),1)]),d("div",fee,[d("span",hee,p(e.stars),1),d("span",mee,p(e.$t("minigames.match3.stars")),1)])])):te("",!0)])]),d("div",gee,[d("div",pee,[d("span",vee,p(e.$t("minigames.match3.movesLeft"))+":",1),d("span",yee,p(s.safeMovesLeft),1)]),e.currentLevelData?(S(),_("div",bee,[d("div",kee,[d("div",wee,[d("h3",See,p(e.$t("minigames.match3.level"))+" "+p(e.currentLevel)+": "+p(e.currentLevelData.name),1),d("button",{class:"toggle-button",onClick:t[1]||(t[1]=(...h)=>s.toggleLevelDescription&&s.toggleLevelDescription(...h))},[d("span",_ee,p(e.levelDescriptionExpanded?"▼":"▶"),1)])])]),ie(d("div",Cee,[d("p",null,p(e.currentLevelData.description),1),d("div",Tee,[(S(!0),_(U,null,we(e.currentLevelData.objectives,(h,m)=>(S(),_("div",{key:m,class:"objective-item"},[d("span",Eee,p(h.completed?"✓":"○"),1),d("span",{class:Dt({completed:h.completed})},p(h.description),3),d("span",Iee," ("+p(s.getObjectiveProgress(h))+") ",1)]))),128))])],512),[[vn,e.levelDescriptionExpanded]])])):te("",!0),d("div",Aee,[e.board.length>0&&e.boardWidth>0&&e.boardHeight>0&&e.gameActive&&e.currentLevelData?(S(),_("div",{key:0,class:"game-board",style:ft({"grid-template-columns":`repeat(${e.boardWidth}, 1fr)`,"grid-template-rows":`repeat(${e.boardHeight}, 1fr)`})},[(S(!0),_(U,null,we(e.board,(h,m)=>(S(),_(U,{key:`tile-${m}`},[s.isValidPosition(Math.floor(m/e.boardWidth),m%e.boardWidth)?(S(),_("div",{key:0,class:Dt(["game-tile",{empty:!h}]),"data-index":m,onMousedown:g=>s.startDrag(m,g),onMouseup:t[2]||(t[2]=(...g)=>s.endDrag&&s.endDrag(...g)),onMouseleave:t[3]||(t[3]=(...g)=>s.endDrag&&s.endDrag(...g)),onTouchstart:g=>s.startDrag(m,g),onTouchend:t[4]||(t[4]=(...g)=>s.endDrag&&s.endDrag(...g))},[h?(S(),_("span",Dee,p(s.getTileSymbol(h.type)),1)):te("",!0)],42,xee)):te("",!0)],64))),128))],4)):(S(),_("div",Pee,[Oee,d("div",Mee,[$ee,d("p",null,"Board-Länge: "+p(e.board.length),1),d("p",null,"Board-Breite: "+p(e.boardWidth),1),d("p",null,"Board-Höhe: "+p(e.boardHeight),1),d("p",null,"Game Active: "+p(e.gameActive),1),d("p",null,"Current Level Data: "+p(e.currentLevelData?"Ja":"Nein"),1),d("p",null,"Board Layout: "+p(e.boardLayout?"Ja":"Nein"),1)])]))]),d("div",Vee,[d("button",{class:"btn btn-primary",onClick:t[5]||(t[5]=(...h)=>s.restartLevel&&s.restartLevel(...h))},p(e.$t("minigames.match3.restartLevel")),1),d("button",{class:"btn btn-secondary",onClick:t[6]||(t[6]=(...h)=>s.pauseGame&&s.pauseGame(...h))},p(e.$t("minigames.match3.pause")),1)])])]),v(f,{modelValue:e.showLevelComplete,"onUpdate:modelValue":t[7]||(t[7]=h=>e.showLevelComplete=h),"max-width":"500"},{default:ze(()=>[v(c,null,{default:ze(()=>[v(a,{class:"text-h5 text-center text-success"},{default:ze(()=>[ge(" 🎉 "+p(e.$t("minigames.match3.levelComplete"))+"! 🎉 ",1)]),_:1}),v(o,{class:"text-center"},{default:ze(()=>[d("div",Lee,[d("div",Nee,[d("span",Ree,p(e.$t("minigames.match3.levelScore"))+":",1),d("span",Fee,p(e.levelScore),1)]),d("div",Bee,[d("span",zee,p(e.$t("minigames.match3.movesUsed"))+":",1),d("span",Uee,p(e.moves),1)]),d("div",Wee,[d("span",Hee,p(e.$t("minigames.match3.starsEarned"))+":",1),d("span",jee,p(e.levelStars),1)])])]),_:1}),v(u,{class:"justify-center"},{default:ze(()=>[v(l,{class:"custom-btn primary-btn",onClick:s.nextLevel},{default:ze(()=>[ge(p(e.$t("minigames.match3.nextLevel")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(f,{modelValue:e.showCampaignComplete,"onUpdate:modelValue":t[9]||(t[9]=h=>e.showCampaignComplete=h),"max-width":"600"},{default:ze(()=>[v(c,null,{default:ze(()=>[v(a,{class:"text-h5 text-center text-success"},{default:ze(()=>[ge(" 🏆 "+p(e.$t("minigames.match3.campaignComplete"))+"! 🏆 ",1)]),_:1}),v(o,{class:"text-center"},{default:ze(()=>[d("div",Gee,[d("div",qee,[d("span",Kee,p(e.$t("minigames.match3.totalScore"))+":",1),d("span",Yee,p(e.score),1)]),d("div",Jee,[d("span",Xee,p(e.$t("minigames.match3.totalStars"))+":",1),d("span",Zee,p(e.stars),1)]),d("div",Qee,[d("span",ete,p(e.$t("minigames.match3.levelsCompleted"))+":",1),d("span",tte,p(e.completedLevels),1)])])]),_:1}),v(u,{class:"justify-center"},{default:ze(()=>[v(l,{class:"custom-btn primary-btn",onClick:s.restartCampaign},{default:ze(()=>[ge(p(e.$t("minigames.match3.restartCampaign")),1)]),_:1},8,["onClick"]),v(l,{class:"custom-btn secondary-btn",onClick:t[8]||(t[8]=h=>e.$router.push("/"))},{default:ze(()=>[ge(p(e.$t("minigames.backToGames")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(f,{modelValue:e.showPause,"onUpdate:modelValue":t[10]||(t[10]=h=>e.showPause=h),"max-width":"400"},{default:ze(()=>[v(c,null,{default:ze(()=>[v(a,{class:"text-h5 text-center"},{default:ze(()=>[ge(p(e.$t("minigames.match3.paused")),1)]),_:1}),v(u,{class:"justify-center"},{default:ze(()=>[v(l,{class:"custom-btn primary-btn",onClick:s.resumeGame},{default:ze(()=>[ge(p(e.$t("minigames.match3.resume")),1)]),_:1},8,["onClick"]),v(l,{class:"custom-btn secondary-btn",onClick:s.restartLevel},{default:ze(()=>[ge(p(e.$t("minigames.match3.restartLevel")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])])}const ite=Oe(jQ,[["render",nte],["__scopeId","data-v-58ae799d"]]),rte=[{path:"/minigames/match3",name:"Match3Game",component:ite,meta:{requiresAuth:!0}}],ste=[{path:"/",name:"Home",component:hN},...kN,...zW,...r5,...Eq,...lZ,...HQ,...rte],Td=WV({history:bV("/"),routes:ste});Td.beforeEach((e,t,n)=>{e.matched.some(i=>i.meta.requiresAuth)?Ti.getters.isLoggedIn?Ti.getters.user.active?n():n("/activate"):n("/"):n()});const Er=Object.create(null);Er.open="0";Er.close="1";Er.ping="2";Er.pong="3";Er.message="4";Er.upgrade="5";Er.noop="6";const Gc=Object.create(null);Object.keys(Er).forEach(e=>{Gc[Er[e]]=e});const yg={type:"error",data:"parser error"},_E=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",CE=typeof ArrayBuffer=="function",TE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Cv=({type:e,data:t},n,i)=>_E&&t instanceof Blob?n?i(t):y1(t,i):CE&&(t instanceof ArrayBuffer||TE(t))?n?i(t):y1(new Blob([t]),i):i(Er[e]+(t||"")),y1=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+(i||""))},n.readAsDataURL(e)};function b1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let im;function ate(e,t){if(_E&&e.data instanceof Blob)return e.data.arrayBuffer().then(b1).then(t);if(CE&&(e.data instanceof ArrayBuffer||TE(e.data)))return t(b1(e.data));Cv(e,!1,n=>{im||(im=new TextEncoder),t(im.encode(n))})}const k1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<k1.length;e++)Vl[k1.charCodeAt(e)]=e;const ote=e=>{let t=e.length*.75,n=e.length,i,r=0,s,a,o,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(i=0;i<n;i+=4)s=Vl[e.charCodeAt(i)],a=Vl[e.charCodeAt(i+1)],o=Vl[e.charCodeAt(i+2)],l=Vl[e.charCodeAt(i+3)],c[r++]=s<<2|a>>4,c[r++]=(a&15)<<4|o>>2,c[r++]=(o&3)<<6|l&63;return u},lte=typeof ArrayBuffer=="function",Tv=(e,t)=>{if(typeof e!="string")return{type:"message",data:EE(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:ute(e.substring(1),t)}:Gc[n]?e.length>1?{type:Gc[n],data:e.substring(1)}:{type:Gc[n]}:yg},ute=(e,t)=>{if(lte){const n=ote(e);return EE(n,t)}else return{base64:!0,data:e}},EE=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},IE="",cte=(e,t)=>{const n=e.length,i=new Array(n);let r=0;e.forEach((s,a)=>{Cv(s,!1,o=>{i[a]=o,++r===n&&t(i.join(IE))})})},dte=(e,t)=>{const n=e.split(IE),i=[];for(let r=0;r<n.length;r++){const s=Tv(n[r],t);if(i.push(s),s.type==="error")break}return i};function fte(){return new TransformStream({transform(e,t){ate(e,n=>{const i=n.length;let r;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);const s=new DataView(r.buffer);s.setUint8(0,126),s.setUint16(1,i)}else{r=new Uint8Array(9);const s=new DataView(r.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}let rm;function Ec(e){return e.reduce((t,n)=>t+n.length,0)}function Ic(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let r=0;r<t;r++)n[r]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}function hte(e,t){rm||(rm=new TextDecoder);const n=[];let i=0,r=-1,s=!1;return new TransformStream({transform(a,o){for(n.push(a);;){if(i===0){if(Ec(n)<1)break;const l=Ic(n,1);s=(l[0]&128)===128,r=l[0]&127,r<126?i=3:r===126?i=1:i=2}else if(i===1){if(Ec(n)<2)break;const l=Ic(n,2);r=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),i=3}else if(i===2){if(Ec(n)<8)break;const l=Ic(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){o.enqueue(yg);break}r=c*Math.pow(2,32)+u.getUint32(4),i=3}else{if(Ec(n)<r)break;const l=Ic(n,r);o.enqueue(Tv(s?l:rm.decode(l),t)),i=0}if(r===0||r>e){o.enqueue(yg);break}}}})}const AE=4;function sn(e){if(e)return mte(e)}function mte(e){for(var t in sn.prototype)e[t]=sn.prototype[t];return e}sn.prototype.on=sn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};sn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};sn.prototype.off=sn.prototype.removeListener=sn.prototype.removeAllListeners=sn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,r=0;r<n.length;r++)if(i=n[r],i===t||i.fn===t){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+e],this};sn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,r=n.length;i<r;++i)n[i].apply(this,t)}return this};sn.prototype.emitReserved=sn.prototype.emit;sn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};sn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ef=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ni=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gte="arraybuffer";function xE(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const pte=Ni.setTimeout,vte=Ni.clearTimeout;function If(e,t){t.useNativeTimers?(e.setTimeoutFn=pte.bind(Ni),e.clearTimeoutFn=vte.bind(Ni)):(e.setTimeoutFn=Ni.setTimeout.bind(Ni),e.clearTimeoutFn=Ni.clearTimeout.bind(Ni))}const yte=1.33;function bte(e){return typeof e=="string"?kte(e):Math.ceil((e.byteLength||e.size)*yte)}function kte(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}function DE(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function wte(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ste(e){let t={},n=e.split("&");for(let i=0,r=n.length;i<r;i++){let s=n[i].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class _te extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class Ev extends sn{constructor(t){super(),this.writable=!1,If(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,i){return super.emitReserved("error",new _te(t,n,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Tv(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=wte(t);return n.length?"?"+n:""}}class Cte extends Ev{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};dte(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,cte(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=DE()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let PE=!1;try{PE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Tte=PE;function Ete(){}class Ite extends Cte{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(r,s)=>{this.onError("xhr post error",r,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}let $o=class qc extends sn{constructor(t,n,i){super(),this.createRequest=t,If(this,i),this._opts=i,this._method=i.method||"GET",this._uri=n,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var t;const n=xE(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(n);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&i.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var r;i.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=qc.requestsCount++,qc.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Ete,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete qc.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};$o.requestsCount=0;$o.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",w1);else if(typeof addEventListener=="function"){const e="onpagehide"in Ni?"pagehide":"unload";addEventListener(e,w1,!1)}}function w1(){for(let e in $o.requests)$o.requests.hasOwnProperty(e)&&$o.requests[e].abort()}const Ate=function(){const e=OE({xdomain:!1});return e&&e.responseType!==null}();class xte extends Ite{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Ate&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new $o(OE,this.uri(),t)}}function OE(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Tte))return new XMLHttpRequest}catch{}if(!t)try{return new Ni[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ME=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Dte extends Ev{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,i=ME?{}:xE(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,i)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],r=n===t.length-1;Cv(i,this.supportsBinary,s=>{try{this.doWrite(i,s)}catch{}r&&Ef(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=DE()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const sm=Ni.WebSocket||Ni.MozWebSocket;class Pte extends Dte{createSocket(t,n,i){return ME?new sm(t,n,i):n?new sm(t,n):new sm(t)}doWrite(t,n){this.ws.send(n)}}class Ote extends Ev{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=hte(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=t.readable.pipeThrough(n).getReader(),r=fte();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();const s=()=>{i.read().then(({done:o,value:l})=>{o||(this.onPacket(l),s())}).catch(o=>{})};s();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],r=n===t.length-1;this._writer.write(i).then(()=>{r&&Ef(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Mte={websocket:Pte,webtransport:Ote,polling:xte},$te=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vte=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bg(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let r=$te.exec(e||""),s={},a=14;for(;a--;)s[Vte[a]]=r[a]||"";return n!=-1&&i!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Lte(s,s.path),s.queryKey=Nte(s,s.query),s}function Lte(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function Nte(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,s){r&&(n[r]=s)}),n}const kg=typeof addEventListener=="function"&&typeof removeEventListener=="function",Kc=[];kg&&addEventListener("offline",()=>{Kc.forEach(e=>e())},!1);class Ls extends sn{constructor(t,n){if(super(),this.binaryType=gte,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const i=bg(t);n.hostname=i.host,n.secure=i.protocol==="https"||i.protocol==="wss",n.port=i.port,i.query&&(n.query=i.query)}else n.host&&(n.hostname=bg(n.host).host);If(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(i=>{const r=i.prototype.name;this.transports.push(r),this._transportsByName[r]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ste(this.opts.query)),kg&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Kc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=AE,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ls.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ls.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const r=this.writeBuffer[i].data;if(r&&(n+=bte(r)),i>0&&n>this._maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ef(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,i){return this._sendPacket("message",t,n,i),this}send(t,n,i){return this._sendPacket("message",t,n,i),this}_sendPacket(t,n,i,r){if(typeof n=="function"&&(r=n,n=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const s={type:t,data:n,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}_onError(t){if(Ls.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),kg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Kc.indexOf(this._offlineEventListener);i!==-1&&Kc.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ls.protocol=AE;class Rte extends Ls{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),i=!1;Ls.priorWebsocketSuccess=!1;const r=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!i)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ls.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function s(){i||(i=!0,c(),n.close(),n=null)}const a=f=>{const h=new Error("probe error: "+f);h.transport=n.name,s(),this.emitReserved("upgradeError",h)};function o(){a("transport closed")}function l(){a("socket closed")}function u(f){n&&f.name!==n.name&&s()}const c=()=>{n.removeListener("open",r),n.removeListener("error",a),n.removeListener("close",o),this.off("close",l),this.off("upgrading",u)};n.once("open",r),n.once("error",a),n.once("close",o),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}let Fte=class extends Rte{constructor(t,n={}){const i=typeof t=="object"?t:n;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(r=>Mte[r]).filter(r=>!!r)),super(t,i)}};function Bte(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=bg(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const s=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}const zte=typeof ArrayBuffer=="function",Ute=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,$E=Object.prototype.toString,Wte=typeof Blob=="function"||typeof Blob<"u"&&$E.call(Blob)==="[object BlobConstructor]",Hte=typeof File=="function"||typeof File<"u"&&$E.call(File)==="[object FileConstructor]";function Iv(e){return zte&&(e instanceof ArrayBuffer||Ute(e))||Wte&&e instanceof Blob||Hte&&e instanceof File}function Yc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(Yc(e[n]))return!0;return!1}if(Iv(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Yc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Yc(e[n]))return!0;return!1}function jte(e){const t=[],n=e.data,i=e;return i.data=wg(n,t),i.attachments=t.length,{packet:i,buffers:t}}function wg(e,t){if(!e)return e;if(Iv(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=wg(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=wg(e[i],t));return n}return e}function Gte(e,t){return e.data=Sg(e.data,t),delete e.attachments,e}function Sg(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Sg(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Sg(e[n],t));return e}const qte=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Kte=5;var dt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(dt||(dt={}));class Yte{constructor(t){this.replacer=t}encode(t){return(t.type===dt.EVENT||t.type===dt.ACK)&&Yc(t)?this.encodeAsBinary({type:t.type===dt.EVENT?dt.BINARY_EVENT:dt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===dt.BINARY_EVENT||t.type===dt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=jte(t),i=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(i),r}}function S1(e){return Object.prototype.toString.call(e)==="[object Object]"}class Av extends sn{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const i=n.type===dt.BINARY_EVENT;i||n.type===dt.BINARY_ACK?(n.type=i?dt.EVENT:dt.ACK,this.reconstructor=new Jte(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Iv(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(dt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===dt.BINARY_EVENT||i.type===dt.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const a=t.substring(s,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(a)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(s,n)}else i.nsp="/";const r=t.charAt(n+1);if(r!==""&&Number(r)==r){const s=n+1;for(;++n;){const a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}i.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(Av.isPayloadValid(i.type,s))i.data=s;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case dt.CONNECT:return S1(n);case dt.DISCONNECT:return n===void 0;case dt.CONNECT_ERROR:return typeof n=="string"||S1(n);case dt.EVENT:case dt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&qte.indexOf(n[0])===-1);case dt.ACK:case dt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Jte{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Gte(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Xte=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Av,Encoder:Yte,get PacketType(){return dt},protocol:Kte},Symbol.toStringTag,{value:"Module"}));function er(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Zte=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class VE extends sn{constructor(t,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[er(t,"open",this.onopen.bind(this)),er(t,"packet",this.onpacket.bind(this)),er(t,"error",this.onerror.bind(this)),er(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var i,r,s;if(Zte.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const a={type:dt.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,f=n.pop();this._registerAckCallback(c,f),a.id=c}const o=(r=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||r===void 0?void 0:r.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!o||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var i;const r=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(r===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},r),a=(...o)=>{this.io.clearTimeoutFn(s),n.apply(this,o)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((i,r)=>{const s=(a,o)=>a?r(a):i(o);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...s)=>i!==this._queue[0]?void 0:(r!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...s)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(i=>String(i.id)===t)){const i=this.acks[t];delete this.acks[t],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let i=!1;return function(...r){i||(i=!0,n.packet({type:dt.ACK,id:t,data:r}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function ol(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ol.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};ol.prototype.reset=function(){this.attempts=0};ol.prototype.setMin=function(e){this.ms=e};ol.prototype.setMax=function(e){this.max=e};ol.prototype.setJitter=function(e){this.jitter=e};class _g extends sn{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,If(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new ol({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const r=n.parser||Xte;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Fte(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=er(n,"open",function(){i.onopen(),t&&t()}),s=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},a=er(n,"error",s);if(this._timeout!==!1){const o=this._timeout,l=this.setTimeoutFn(()=>{r(),s(new Error("timeout")),n.close()},o);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(r),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(er(t,"ping",this.onping.bind(this)),er(t,"data",this.ondata.bind(this)),er(t,"error",this.onerror.bind(this)),er(t,"close",this.onclose.bind(this)),er(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ef(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i?this._autoConnect&&!i.active&&i.connect():(i=new VE(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const xl={};function Jc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Bte(e,t.path||"/socket.io"),i=n.source,r=n.id,s=n.path,a=xl[r]&&s in xl[r].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return o?l=new _g(i,t):(xl[r]||(xl[r]=new _g(i,t)),l=xl[r]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Jc,{Manager:_g,Socket:VE,io:Jc,connect:Jc});const Ti=ZO({state:{isLoggedIn:localStorage.getItem("isLoggedIn")==="true",user:JSON.parse(localStorage.getItem("user"))||null,language:navigator.language.startsWith("de")?"de":"en",menu:JSON.parse(localStorage.getItem("menu"))||[],socket:null,daemonSocket:null,menuNeedsUpdate:!1},mutations:{async dologin(e,t){e.isLoggedIn=!0,e.user=t,localStorage.setItem("isLoggedIn","true"),localStorage.setItem("user",JSON.stringify(t)),e.menuNeedsUpdate=!0,t.param.filter(n=>["birthdate","gender"].includes(n.name)).length<2&&Td.push({path:"/settings/personal"})},async dologout(e){e.isLoggedIn=!1,e.user=null,localStorage.removeItem("isLoggedIn"),localStorage.removeItem("user"),localStorage.removeItem("menu"),e.menuNeedsUpdate=!1},setLanguage(e,t){e.language=t},setMenu(e,t){e.menu=t,localStorage.setItem("menu",JSON.stringify(t)),e.menuNeedsUpdate=!1},setSocket(e,t){e.socket=t},clearSocket(e){e.socket&&e.socket.disconnect(),e.socket=null},setDaemonSocket(e,t){e.daemonSocket=t},clearDaemonSocket(e){e.daemonSocket&&e.daemonSocket.close(),e.daemonSocket=null}},actions:{async login({commit:e,dispatch:t},n){await e("dologin",n),await t("initializeSocket"),await t("initializeDaemonSocket");const i=this.getters.socket;i&&i.emit("setUserId",n.id),await t("loadMenu")},logout({commit:e}){e("clearSocket"),e("clearDaemonSocket"),e("dologout"),Td.push("/")},initializeSocket({commit:e,state:t}){if(t.isLoggedIn&&t.user){let n=t.socket;const i=()=>{n&&n.disconnect();const s=Jc("http://localhost:3001");s.on("connect",()=>{s.emit("setUserId",t.user.id)}),s.on("disconnect",a=>{console.warn("Socket.io disconnected:",a),r(i)}),e("setSocket",s)},r=s=>{setTimeout(()=>{console.log("Retrying Socket.io connection..."),s()},1e3)};i()}else console.log("User is not logged in or user data is not available.")},initializeDaemonSocket({commit:e,state:t}){if(t.isLoggedIn&&t.user){let n=t.daemonSocket;const i=()=>{n&&n.disconnect();const s=new WebSocket("http://localhost:4551");s.onopen=()=>{console.log("Daemon WebSocket connected");const a=JSON.stringify({event:"setUserId",data:{userId:t.user.id}});s.send(a)},s.onclose=a=>{console.warn("Daemon WebSocket disconnected:",a.reason),r(i)},s.onerror=a=>{console.error("Daemon WebSocket error:",a),r(i)},s.addEventListener("message",a=>{const o=a.data;if(o==="ping")s.send("pong");else try{const l=JSON.parse(o)}catch(l){console.error("Error parsing message:",l)}}),e("setDaemonSocket",s)},r=s=>{setTimeout(()=>{s()},1e3)};i()}},setLanguage({commit:e},t){e("setLanguage",t)},async loadMenu({commit:e}){try{const t=await U$();e("setMenu",t)}catch(t){console.error(t),e("setMenu",[])}}},getters:{isLoggedIn:e=>e.isLoggedIn,user:e=>e.user,language:e=>e.language,menu:e=>e.menu,socket:e=>e.socket,daemonSocket:e=>e.daemonSocket,menuNeedsUpdate:e=>e.menuNeedsUpdate},modules:{dialogs:z$}});Ti.state.isLoggedIn&&Ti.state.user&&(Ti.dispatch("initializeSocket"),Ti.dispatch("initializeDaemonSocket"));const X=Tt.create({baseURL:"http://localhost:3001",headers:{"Content-Type":"application/json"}});X.interceptors.request.use(e=>{const t=Ti.getters.user;return console.log("🔑 Axios Interceptor - User:",t),t&&t.authCode?(e.headers.userid=t.id,e.headers.authcode=t.authCode,console.log("📡 Setze Headers:",{userid:t.id,authcode:t.authCode})):console.log("⚠️ Keine User-Daten verfügbar"),e},e=>Promise.reject(e));X.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&Ti.dispatch("logout"),Promise.reject(e)));const _1=async()=>(await X.get("/api/chat/rooms")).data;function Qte(){var o,l;const e=typeof window<"u"&&window.localStorage?window.localStorage.getItem("chatWsOverride"):"";if(e&&typeof e=="string"&&e.trim())return e.trim();const t=(l=(o=import.meta)==null?void 0:o.env)==null?void 0:l.VITE_CHAT_WS_URL;if(t&&typeof t=="string"&&t.trim())return t.trim();const i=typeof window<"u"&&window.location.protocol==="https:"?"wss":"ws",r=typeof window<"u"?window.location.hostname:"localhost",s=typeof window<"u"&&window.location.port?`:${window.location.port}`:"";return r==="localhost"||r==="127.0.0.1"||r==="::1"||r==="[::1]"?`${i}://127.0.0.1:1235`:`${i}://${r}${s}`}function ene(){var l,u;const e=typeof window<"u"&&window.localStorage?window.localStorage.getItem("chatWsOverride"):"";if(e&&typeof e=="string"&&e.trim())return[e.trim()];const t=(u=(l=import.meta)==null?void 0:l.env)==null?void 0:u.VITE_CHAT_WS_URL;if(t&&typeof t=="string"&&t.trim())return[t.trim()];const i=typeof window<"u"&&window.location.protocol==="https:"?"wss":"ws",r=typeof window<"u"?window.location.hostname:"localhost",s=typeof window<"u"&&window.location.port?`:${window.location.port}`:"",a=[];if(r==="localhost"||r==="127.0.0.1"||r==="::1"||r==="[::1]"){const c=["[::1]","127.0.0.1","localhost"];for(const f of c){const h=`${i}://${f}:1235`;a.push(h),a.push(`${h}/`)}}const o=[`${i}://${r}${s}`];(r==="localhost"||r==="::1"||r==="[::1]")&&s&&(o.push(`${i}://[::1]${s}`),o.push(`${i}://127.0.0.1${s}`));for(const c of o)a.push(c),a.push(`${c}/`);return a}function C1(){var t,n;try{const i=typeof window<"u"&&window.localStorage?window.localStorage.getItem("chatWsProtocols"):"";if(i&&i.trim())return i.trim().startsWith("[")?JSON.parse(i):i.split(",").map(r=>r.trim()).filter(Boolean)}catch{}const e=(n=(t=import.meta)==null?void 0:t.env)==null?void 0:n.VITE_CHAT_WS_PROTOCOLS;if(e&&typeof e=="string"&&e.trim()){try{if(e.trim().startsWith("["))return JSON.parse(e)}catch{}return e.split(",").map(i=>i.trim()).filter(Boolean)}return["chat"]}const tne="/images/icons/scream.png",nne="/images/icons/activity.png",ine="/images/icons/dice24.png",rne="/images/icons/colorpicker.png",sne={name:"MultiChat",components:{DialogWidget:hn},computed:{...Rn(["user","menu"]),isAdmin(){try{return!!(this.menu&&this.menu.administration)}catch{return!1}}},mounted(){try{window.addEventListener("online",this.onOnline)}catch{}try{document.addEventListener("click",this.onGlobalClick)}catch{}},beforeUnmount(){this.opened=!1,this.disconnectChatSocket();try{window.removeEventListener("online",this.onOnline)}catch{}try{document.removeEventListener("click",this.onGlobalClick)}catch{}},data(){return{rooms:[],selectedRoom:null,autoscroll:!0,mouseOverOutput:!1,messages:[],usersInRoom:[],selectedTargetUser:null,userColors:{},input:"",showOptions:!1,debug:!0,chatSocket:null,transportConnected:!1,chatConnected:!1,reconnectTimer:null,opened:!1,statusType:"idle",statusText:"",urlOverride:"",token:null,announcedRoomEnter:!1,showColorPicker:!1,selectedColor:"#000000",lastColor:"#000000",hexInput:"#000000",hexInvalid:!1,paletteWidth:420,paletteHeight:220,pickX:null,pickY:null,isPicking:!1,maxLightness:92,reconnectIntervalMs:5e3,connectAttemptTimeout:null,joinFallbackTimer:null,handshakeWatchdogMs:2500,connectOpenTimer:null,candidateOpenTimeoutMs:900,connectRacing:!1,connectWinnerChosen:!1,pendingWs:[],raceFailures:0,raceTotal:0,happyDelayMs:40,joinFallbackDelayMs:120,raceLimit:3}},watch:{messages(){this.$nextTick(this.handleAutoscroll)},autoscroll(e){e&&this.handleAutoscroll()},selectedRoom(e,t){var n;if(e&&this.transportConnected){const i=this.getSelectedRoomName();i&&this.sendWithToken({type:"join",room:i,name:((n=this.user)==null?void 0:n.username)||""}),this.messages=[],this.usersInRoom=[],this.selectedTargetUser=null}}},methods:{selectTargetUser(e){this.selectedTargetUser===e?this.selectedTargetUser=null:this.selectedTargetUser=e},explainCloseCode(e){return{1e3:"normal closure",1001:"going away (server down or browser nav)",1002:"protocol error (handshake or frames)",1003:"unsupported data",1005:"no status received (browser internal)",1006:"abnormal closure (network/TCP reset/firewall/CORS/TLS)",1007:"invalid payload data",1008:"policy violation (auth/permissions)",1009:"message too big",1010:"mandatory extension missing",1011:"internal server error",1015:"TLS handshake failure"}[e]||"unknown reason"},open(e){Array.isArray(e)&&e.length?this.initializeRooms(e):this.loadRooms()},onDialogClose(){this.opened=!1,console.log("[Chat WS] dialog close — closing websocket"),this.disconnectChatSocket()},onOptionsToggle(e){var t;(t=e==null?void 0:e.stopPropagation)==null||t.call(e),this.showOptions=!this.showOptions},onGlobalClick(e){if(!this.showOptions)return;const t=this.$refs.optionsWrap;t&&t.contains(e.target)||(this.showOptions=!1)},onOnline(){this.opened&&!this.chatConnected&&!this.connectRacing&&(!this.chatWs||this.chatWs.readyState!==WebSocket.OPEN)&&(console.log("[Chat WS] online — attempting reconnect"),this.connectChatSocket())},async loadRooms(){try{const e=await _1();this.initializeRooms(Array.isArray(e)?e:[])}catch(e){console.error("Fehler beim Laden der Räume",e),this.initializeRooms([])}},async reloadRoomsAdmin(){if(this.isAdmin)try{const e=this.selectedRoom,t=await _1(),n=Array.isArray(t)?t:[];this.rooms=n,n.find(i=>i.id===e)||(this.selectedRoom=n.length?n[0].id:null),this.messages.push({id:Date.now(),user:"System",text:"Raumliste aktualisiert."})}catch(e){console.error("Fehler beim Neuladen der Räume",e),this.messages.push({id:Date.now(),user:"System",text:"Fehler beim Neuladen der Raumliste."})}},initializeRooms(e){this.rooms=e,this.selectedRoom=e.length?e[0].id:null,this.autoscroll=!0;try{this.urlOverride=localStorage.getItem("chatWsOverride")||""}catch{this.urlOverride=""}this.messages=[],this.usersInRoom=[],this.selectedTargetUser=null,this.input="",this.showOptions=!1,this.announcedRoomEnter=!1,this.$refs.dialog.open(),this.opened=!0,this.connectChatSocket()},connectChatSocket(){var n;if(this.connectRacing)return;try{(n=this.chatWs)==null||n.close(1e3,"reconnect")}catch{}this.chatWs=null,this.wsUrl=Qte(),this._wsAttempt=(this._wsAttempt||0)+1;const e=typeof window<"u"?window.location.protocol:"",t=ene();console.log("[Chat WS] connect attempts",t,"| page protocol:",e),e==="https:"&&this.wsUrl.startsWith("ws://")&&console.warn("[Chat WS] insecure WS on HTTPS page — use wss:// or set VITE_CHAT_WS_URL"),this.setStatus("connecting"),this.startHappyEyeballs(t),this.token=null,this.pending=[],this.transportConnected=!1,this.chatConnected=!1,this.announcedRoomEnter=!1,this.wsStartAt=Date.now()},bustUrl(e){try{const t=new URL(e,typeof window<"u"?window.location.href:"http://localhost");return t.searchParams.set("cb",`${Date.now()}-${this._wsAttempt||0}`),t.toString()}catch{const n=e.includes("?")?"&":"?";return`${e}${n}cb=${Date.now()}-${this._wsAttempt||0}`}},startHappyEyeballs(e){if(!this.opened)return;this.cleanupPendingSockets(),this.connectRacing=!0,this.connectWinnerChosen=!1,this.raceFailures=0;const t=Array.isArray(e)?e.slice(0,this.getRaceLimit()):[];if(this.raceTotal=t.length,!Array.isArray(e)||!e.length){console.warn("[Chat WS] no candidates to try"),this.scheduleReconnect();return}const n=C1();this.pendingWs=[];const i=this.happyDelayMs||120;t.forEach((r,s)=>{const a=setTimeout(()=>{this.spawnCandidate(this.bustUrl(r),n)},s*i);this.pendingWs.push({starterTimer:a,url:r,ws:null,openTimer:null})})},getRaceLimit(){try{const e=localStorage.getItem("chatWsRaceMax"),t=parseInt(e,10);if(!isNaN(t)&&t>0)return Math.min(t,6)}catch{}return this.raceLimit||3},spawnCandidate(e,t){if(!this.opened)return;let n=this.pendingWs.find(i=>i.url===e&&i.ws===null);try{const i=t?new WebSocket(e,t):new WebSocket(e);n||(n={url:e,starterTimer:null,ws:null,openTimer:null},this.pendingWs.push(n)),n.ws=i;const r=Date.now();console.log("[Chat WS] racing",e,"| protocols:",t||"(none)"),n.openTimer=setTimeout(()=>{if(!this.connectWinnerChosen&&i.readyState===WebSocket.CONNECTING){console.warn("[Chat WS] candidate handshake timeout — closing to let others win:",e);try{i.close(1e3,"race timeout")}catch{}}},this.candidateOpenTimeoutMs),i.addEventListener("open",()=>{var l;const a=Date.now()-r;if(this.connectWinnerChosen){try{i.close()}catch{}return}this.connectWinnerChosen=!0,this.connectRacing=!1,this.wsUrl=e,this.chatWs=i,this.transportConnected=!0,console.log("[Chat WS] open in",a,"ms","| protocol:",i.protocol||"(none)","| url:",e),this.pendingWs.forEach(u=>{if(u.ws&&u.ws!==i){try{u.ws.close(1e3,"race loser")}catch{}u.ws=null}u.openTimer&&(clearTimeout(u.openTimer),u.openTimer=null),u.starterTimer&&(clearTimeout(u.starterTimer),u.starterTimer=null)}),this.pendingWs=[];const o={type:"init",name:((l=this.user)==null?void 0:l.username)||"",room:this.getSelectedRoomName()||""};this.debug&&console.log("[Chat WS >>]",o),this.wsSend(o),this.connectAttemptTimeout&&clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=setTimeout(()=>{this.connectAttemptTimeout=null,this.opened&&!this.chatConnected&&(console.warn("[Chat WS] handshake watchdog fired — no room_entered within",this.handshakeWatchdogMs,"ms"),this.scheduleReconnect())},this.handshakeWatchdogMs),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null),i.addEventListener("message",u=>{const c=u.data;this.debug&&console.log("[Chat WS << RAW]",c),this.wsProcessChunk(typeof c=="string"?c:"")}),i.addEventListener("error",u=>{console.warn("[Chat WS] error on winner | readyState:",i.readyState,"| url:",e,u),this.setStatus("error")}),i.addEventListener("close",u=>{const c=this.explainCloseCode(u.code);console.warn("[Chat WS] close | code:",u.code,c,"| reason:",u.reason,"| wasClean:",u.wasClean,"| url:",e),this.connectAttemptTimeout&&(clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=null),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null),this.transportConnected=!1,this.chatConnected=!1,this.setStatus("disconnected"),this.opened&&this.scheduleReconnect()})});const s=a=>{if(!this.connectRacing||this.connectWinnerChosen)return;this.raceFailures=(this.raceFailures||0)+1;const o=Date.now()-r;if(console.warn("[Chat WS] candidate",a,"after",o,"ms | url:",e),n&&n.openTimer&&(clearTimeout(n.openTimer),n.openTimer=null),n&&n.ws){try{n.ws.close(1e3,"race fail")}catch{}n.ws=null}this.raceFailures>=this.raceTotal&&(this.connectRacing=!1,this.opened&&!this.chatConnected&&this.scheduleReconnect())};i.addEventListener("error",()=>s("error")),i.addEventListener("close",()=>s("close"))}catch(i){console.warn("[Chat WS] spawn failed for",e,i)}},cleanupPendingSockets(){this.pendingWs||(this.pendingWs=[]),this.connectRacing=!1,this.connectWinnerChosen=!1;try{this.pendingWs.forEach(e=>{if(e.starterTimer&&(clearTimeout(e.starterTimer),e.starterTimer=null),e.openTimer&&(clearTimeout(e.openTimer),e.openTimer=null),e.ws){try{e.ws.close(1e3,"cleanup")}catch{}e.ws=null}})}catch{}this.pendingWs=[]},tryNextCandidate(e,t){var s;if(!this.opened)return;if(t>=e.length){console.warn("[Chat WS] all candidates failed"),this.opened&&!this.chatConnected&&this.scheduleReconnect();return}const n=this.bustUrl(e[t]),i=C1();this.wsUrl=n,console.log("[Chat WS] trying",n,`(candidate ${t+1}/${e.length})`,"| protocols:",i||"(none)");try{(s=this.chatWs)==null||s.close(1e3,"switch candidate")}catch{}this.connectOpenTimer&&(clearTimeout(this.connectOpenTimer),this.connectOpenTimer=null);const r=i?new WebSocket(n,i):new WebSocket(n);this.chatWs=r,this.wsStartAt=Date.now(),this.connectOpenTimer=setTimeout(()=>{if(this.connectOpenTimer=null,r.readyState===WebSocket.CONNECTING&&!this.transportConnected){console.warn("[Chat WS] candidate handshake timeout — closing to try next:",n);try{r.close(1e3,"candidate timeout")}catch{}}},this.candidateOpenTimeoutMs),r.addEventListener("open",()=>{var l;this.transportConnected=!0;const a=Date.now()-(this.wsStartAt||Date.now());console.log("[Chat WS] open in",a,"ms","| protocol:",r.protocol||"(none)","| url:",n);const o={type:"init",name:((l=this.user)==null?void 0:l.username)||"",room:this.getSelectedRoomName()||""};this.debug&&console.log("[Chat WS >>]",o),this.wsSend(o),this.connectOpenTimer&&(clearTimeout(this.connectOpenTimer),this.connectOpenTimer=null),this.connectAttemptTimeout&&clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=setTimeout(()=>{this.connectAttemptTimeout=null,this.opened&&!this.chatConnected&&(console.warn("[Chat WS] handshake watchdog fired — no room_entered within",this.handshakeWatchdogMs,"ms"),this.scheduleReconnect())},this.handshakeWatchdogMs),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null)}),r.addEventListener("message",a=>{const o=a.data;this.debug&&console.log("[Chat WS << RAW]",o),this.wsProcessChunk(typeof o=="string"?o:"")}),r.addEventListener("error",a=>{const o=Date.now()-(this.wsStartAt||Date.now());console.warn("[Chat WS] error after",o,"ms","| readyState:",r.readyState,"| url:",n,a),this.setStatus("error")}),r.addEventListener("close",a=>{const o=Date.now()-(this.wsStartAt||Date.now()),l=this.explainCloseCode(a.code);if(console.warn("[Chat WS] close after",o,"ms","| code:",a.code,l,"| reason:",a.reason,"| wasClean:",a.wasClean,"| url:",n),this.connectOpenTimer&&(clearTimeout(this.connectOpenTimer),this.connectOpenTimer=null),this.connectAttemptTimeout&&(clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=null),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null),!this.transportConnected){this.tryNextCandidate(e,t+1);return}this.transportConnected=!1,this.chatConnected=!1,this.setStatus("disconnected"),this.opened&&this.scheduleReconnect()})},scheduleReconnect(){this.reconnectTimer||(console.log("[Chat WS] scheduleReconnect in",this.reconnectIntervalMs,"ms","| opened:",this.opened),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.opened&&!this.chatConnected&&this.connectChatSocket()},this.reconnectIntervalMs))},applyUrlOverride(){try{const e=(this.urlOverride||"").trim();e?localStorage.setItem("chatWsOverride",e):localStorage.removeItem("chatWsOverride")}catch{}console.log("[Chat WS] url override applied",this.urlOverride||"(cleared)"),this.opened&&this.connectChatSocket()},clearUrlOverride(){this.urlOverride="",this.applyUrlOverride()},disconnectChatSocket(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.cleanupPendingSockets(),this.connectOpenTimer&&(clearTimeout(this.connectOpenTimer),this.connectOpenTimer=null),this.connectAttemptTimeout&&(clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=null),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null);try{this.chatWs&&(this.chatWs.readyState===WebSocket.OPEN?this.chatWs.close(1e3,"dialog closed"):this.chatWs.readyState===WebSocket.CONNECTING&&this.chatWs.close(1e3,"dialog closed"))}catch{}this.chatWs=null,this.chatConnected=!1,this.announcedRoomEnter=!1,this.usersInRoom=[],this.selectedTargetUser=null},getSelectedRoomName(){const e=this.rooms.find(t=>t.id===this.selectedRoom);return(e==null?void 0:e.title)||(e==null?void 0:e.name)||""},handleIncoming(e){var t,n,i;if(e){if(e.type==="message"||e.type===4){const r=!!(e.token&&this.token&&e.token===this.token),s=e.userName||e.from||r&&((t=this.user)==null?void 0:t.username)||"User";let a=null;e.color?(a=(""+e.color).trim(),a&&!a.startsWith("#")&&(a="#"+a),this.userColors[s]=a):this.userColors[s]&&(a=this.userColors[s]);const o=(n=this.user)!=null&&n.username&&s===this.user.username?"ich":s;this.messages.push({id:e.id||Date.now(),user:o,text:e.message||e.text||"",color:a})}else if(e.type===6||e.type==="scream"){const r=e.userName||e.from||"User";let s=null;e.color?(s=(""+e.color).trim(),s&&!s.startsWith("#")&&(s="#"+s),this.userColors[r]=s):this.userColors[r]&&(s=this.userColors[r]),this.messages.push({id:e.id||Date.now(),user:r,text:e.message||e.text||"",color:s,type:"scream"})}else if(e.type==="system"){if(e.code==="room_entered"||e.tr==="room_entered"){if(this.chatConnected=!0,this.setStatus("connected"),this.connectAttemptTimeout&&(clearTimeout(this.connectAttemptTimeout),this.connectAttemptTimeout=null),this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null),!this.announcedRoomEnter){const r=e.to||e.room||e.roomName||this.getSelectedRoomName();if(r){const s=this.$t("chat.multichat.system.room_entered",{room:r});this.messages.push({id:e.id||Date.now(),user:"System",text:s})}this.announcedRoomEnter=!0}return}if(e.code==="color_changed"){let r=(e.color||"").trim();r&&!r.startsWith("#")&&(r="#"+r),r||(r="#000000");const s=this.$t("chat.multichat.system.color_changed_self",{color:r});if(this.messages.push({id:e.id||Date.now(),user:"System",text:s}),this.lastColor=r,(i=this.user)!=null&&i.username&&(this.userColors[this.user.username]=r),this.showColorPicker){this.selectedColor=r,this.hexInput=r;try{const a=this.hexToHsl(r);this.pickX=Math.round(a.h/360*(this.paletteWidth-1)),this.pickY=Math.round((100-a.l)/100*(this.paletteHeight-1))}catch{}}return}if(e.code==="user_color_changed"){let r=(e.color||"").trim();r&&!r.startsWith("#")&&(r="#"+r),r||(r="#000000");const s=e.userName||"User",a=this.$t("chat.multichat.system.color_changed_user",{user:s,color:r});this.messages.push({id:e.id||Date.now(),user:"System",text:a}),this.userColors[s]=r;const o=this.usersInRoom.findIndex(l=>l.name===s);if(o>=0){const l={...this.usersInRoom[o],color:r};this.usersInRoom.splice(o,1,l)}return}}}},setStatus(e){this.statusType=e;const t=this.$t;switch(e){case"connecting":this.statusText=t("chat.multichat.status.connecting");break;case"connected":this.statusText=t("chat.multichat.status.connected");break;case"disconnected":this.statusText=t("chat.multichat.status.disconnected");break;case"error":this.statusText=t("chat.multichat.status.error");break;default:this.statusText=""}},handleAutoscroll(){if(this.autoscroll&&!this.mouseOverOutput){const e=this.$refs.output;e&&(e.scrollTop=e.scrollHeight)}},sendMessage(){if(!this.input.trim())return;const e={type:"message",message:this.input};this.debug&&console.log("[Chat WS >>]",e),this.sendWithToken(e),this.input=""},shout(){if(!this.input.trim())return;const e={type:"scream",message:this.input};this.debug&&console.log("[Chat WS >>]",e),this.sendWithToken(e),this.input=""},action(){if(!this.input.trim()||!this.selectedTargetUser)return;const e={type:"do",value:this.input,to:this.selectedTargetUser};this.debug&&console.log("[Chat WS >>]",e),this.sendWithToken(e),this.input=""},roll(){const e={type:"dice",message:""};this.debug&&console.log("[Chat WS >>]",e),this.sendWithToken(e)},openColorPicker(){this.selectedColor=this.lastColor||"#000000",this.hexInput=this.selectedColor,this.showColorPicker=!0,this.$nextTick(()=>{this.drawPalette();let e=this.hexToHsl(this.selectedColor);if(e.l>this.maxLightness){e={...e,l:this.maxLightness};const t=this.hslToHex(e.h,100,e.l);this.selectedColor=t,this.hexInput=t}this.pickX=Math.round(e.h/360*(this.paletteWidth-1)),this.pickY=Math.round((100-e.l)/100*(this.paletteHeight-1))})},onColorOk(){const e=this.selectedColor;if(e){const t={type:"color",value:e};this.debug&&console.log("[Chat WS >>]",t),this.sendWithToken(t),this.lastColor=e}this.showColorPicker=!1},onColorCancel(){this.showColorPicker=!1},onHexInput(){const e=(this.hexInput||"").trim(),t=this.normalizeHex(e);if(!t){this.hexInvalid=!0;return}this.hexInvalid=!1;let n=this.hexToHsl(t);if(n.l>this.maxLightness){n={...n,l:this.maxLightness};const i=this.hslToHex(n.h,100,n.l);this.selectedColor=i,this.hexInput=i}else this.selectedColor=t;this.pickX=Math.round(n.h/360*(this.paletteWidth-1)),this.pickY=Math.round((100-n.l)/100*(this.paletteHeight-1))},drawPalette(){const e=this.$refs.paletteCanvas;if(!e)return;const t=e.getContext("2d"),n=this.paletteWidth,i=this.paletteHeight,r=t.createImageData(n,i);let s=0;for(let o=0;o<i;o++){const l=100-o/(i-1)*100;for(let u=0;u<n;u++){const c=u/(n-1)*360,f=this.hslToRgb(c,100,l);r.data[s++]=f.r,r.data[s++]=f.g,r.data[s++]=f.b,r.data[s++]=255}}t.putImageData(r,0,0);const a=Math.round((100-this.maxLightness)/100*(i-1));a>0&&(t.fillStyle="rgba(255,255,255,0.5)",t.fillRect(0,0,n,a),t.strokeStyle="rgba(0,0,0,0.2)",t.beginPath(),t.moveTo(0,a+.5),t.lineTo(n,a+.5),t.stroke())},onPaletteDown(e){this.isPicking=!0,this.pickFromEvent(e)},onPaletteMove(e){this.isPicking&&this.pickFromEvent(e)},onPaletteUp(){this.isPicking=!1},pickFromEvent(e){const t=this.$refs.paletteCanvas.getBoundingClientRect();let n=Math.round(e.clientX-t.left),i=Math.round(e.clientY-t.top);n=Math.max(0,Math.min(this.paletteWidth-1,n)),i=Math.max(0,Math.min(this.paletteHeight-1,i));let r=n/(this.paletteWidth-1)*360,s=100-i/(this.paletteHeight-1)*100;s>this.maxLightness&&(s=this.maxLightness,i=Math.round((100-s)/100*(this.paletteHeight-1))),this.pickX=n,this.pickY=i;const a=this.hslToHex(r,100,s);this.selectedColor=a,this.hexInput=a,this.hexInvalid=!1},normalizeHex(e){let t=e.startsWith("#")?e.slice(1):e;return t.length===3&&/^[0-9a-fA-F]{3}$/.test(t)&&(t=t.split("").map(n=>n+n).join("")),/^[0-9a-fA-F]{6}$/.test(t)?"#"+t.toUpperCase():null},hexToHsl(e){const t=this.hexToRgb(e);return this.rgbToHsl(t.r,t.g,t.b)},hslToHex(e,t,n){const i=this.hslToRgb(e,t,n);return this.rgbToHex(i.r,i.g,i.b)},hexToRgb(e){const t=/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/.exec(e),n=parseInt(t[1],16),i=parseInt(t[2],16),r=parseInt(t[3],16);return{r:n,g:i,b:r}},rgbToHex(e,t,n){const i=r=>r.toString(16).padStart(2,"0");return"#"+i(e)+i(t)+i(n)},rgbToHsl(e,t,n){e/=255,t/=255,n/=255;const i=Math.max(e,t,n),r=Math.min(e,t,n);let s,a,o=(i+r)/2;if(i===r)s=a=0;else{const l=i-r;switch(a=o>.5?l/(2-i-r):l/(i+r),i){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s*=60}return{h:Math.round(s||0),s:Math.round(a*100),l:Math.round(o*100)}},hslToRgb(e,t,n){t/=100,n/=100;const i=(1-Math.abs(2*n-1))*t,r=i*(1-Math.abs(e/60%2-1)),s=n-i/2;let a=0,o=0,l=0;0<=e&&e<60?(a=i,o=r,l=0):60<=e&&e<120?(a=r,o=i,l=0):120<=e&&e<180?(a=0,o=i,l=r):180<=e&&e<240?(a=0,o=r,l=i):240<=e&&e<300?(a=r,o=0,l=i):(a=i,o=0,l=r);const u=Math.round((a+s)*255),c=Math.round((o+s)*255),f=Math.round((l+s)*255);return{r:u,g:c,b:f}},wsSend(e){var t;try{const n=JSON.stringify(e);this.debug&&console.log("[Chat WS >> RAW]",n),(t=this.chatWs)==null||t.send(n)}catch{}},sendWithToken(e){this.token?(e.token=this.token,this.wsSend(e)):this.pending.push(()=>this.sendWithToken(e))},flushPending(){const e=this.pending;this.pending=[],e.forEach(t=>{try{t()}catch{}})},wsProcessChunk(e){const t=this.safeSplitJson(e);for(const n of t)try{const i=JSON.parse(n);this.onWsObject(i)}catch{this.handleIncoming({type:"system",text:n})}},safeSplitJson(e){if(!e)return[];const t=e.trim();if(t.startsWith("{")&&t.endsWith("}"))return[t];const n=e.split("}{");return n.length===1?[e]:n.map((i,r)=>r===0?i+"}":r===n.length-1?"{"+i:"{"+i+"}")},onWsObject(e){var t,n,i,r,s,a,o,l,u,c,f,h,m,g,y,b,k,w,E,I,D,x;if(e){if(e.type==="token"||e.type===1){let P=e.token;P||(typeof e.message=="string"?P=e.message:e.message&&typeof e.message=="object"&&(P=e.message.token)),P&&(this.token=P,this.joinFallbackTimer&&(clearTimeout(this.joinFallbackTimer),this.joinFallbackTimer=null),this.flushPending());return}if(e.type===7){const P=(e.userName||e.user||e.name||"").toString();let A=e.color?(""+e.color).trim():null;A&&!A.startsWith("#")&&(A="#"+A);let C="",$="";try{const z=typeof e.message=="string"?JSON.parse(e.message):e.message;if(z&&typeof z=="object")C=(z.action||"").toString().trim(),$=(z.to||"").toString().trim();else if(typeof z=="string"){const re=z.trim().split(/\s+/);C=re.shift()||"",$=re.join(" ")}}catch{}const O=this.userColors[$]||null,M=A||this.userColors[P]||null;if(P&&C){P&&A&&(this.userColors[P]=A),this.messages.push({id:e.id||Date.now(),type:"action",user:P,action:C,to:$,color:M,toColor:O});return}const F=typeof e.message=="string"?e.message:JSON.stringify(e.message||{});this.handleIncoming({type:"message",message:F,userName:P,color:M});return}if(e.type===2){const P=Array.isArray(e.message)?e.message:Array.isArray(e.users)?e.users:[],A=new Map;for(const C of P)if(C&&typeof C=="object"){const $=C.userName||C.name||C.username||"";if(!$)continue;let O=(C.color||"").toString().trim();O&&!O.startsWith("#")&&(O="#"+O),A.set($,{name:$,color:O||null}),O&&(this.userColors[$]=O)}this.usersInRoom=Array.from(A.values()).sort((C,$)=>C.name.localeCompare($.name,"de")),this.selectedTargetUser&&!A.has(this.selectedTargetUser)&&(this.selectedTargetUser=null);return}if(e.type===3&&Array.isArray(e.message)){const P=e.message.map(A=>A.name).filter(Boolean).join(", ");this.handleIncoming({type:"system",text:P?`Rooms: ${P}`:"Rooms updated"});return}if(e.type===5){const P=e.message;if(typeof P=="string"){const A=P.trim();if(A.startsWith("{")&&A.endsWith("}"))try{const C=JSON.parse(A),$=C.tr||C.code||"";if($==="user_entered_room"||$==="user_entered_chat"){const O=e.userName||e.user||e.name||"";let M=(e.color||C.color||"").toString().trim();M&&!M.startsWith("#")&&(M="#"+M),O&&M&&(this.userColors[O]=M);const F=C.to||C.name||C.room||this.getSelectedRoomName();if(!!((t=this.user)!=null&&t.username&&O===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const re=((n=this.$t)==null?void 0:n.call(this,"chat.multichat.system.room_entered",{room:F}))||`Du betrittst ${F}`;this.messages.push({id:Date.now(),user:"System",text:re})}else{const re=`${O} betritt ${F}`;this.messages.push({id:Date.now(),user:"System",text:re})}return}if($==="user_left_room"){const O=C.userName||e.userName||e.user||e.name||"User",M=C.destination||C.to||C.name||C.room||"";let F=(C.userColor||e.color||this.userColors[O]||C.color||"").toString().trim();F&&!F.startsWith("#")&&(F="#"+F),this.messages.push({id:Date.now(),type:"action",user:O,action:((i=this.$t)==null?void 0:i.call(this,"chat.multichat.action_phrases.left_room"))||"wechselt zu Raum",to:M,color:F,toColor:null});const z=this.usersInRoom.findIndex(re=>re.name===O);z>=0&&this.usersInRoom.splice(z,1),this.selectedTargetUser===O&&(this.selectedTargetUser=null);return}if($==="user_disconnected"){const O=e.userName||e.user||e.name||"User";let M=(e.color||this.userColors[O]||C.color||"").toString().trim();M&&!M.startsWith("#")&&(M="#"+M),this.messages.push({id:Date.now(),type:"action",user:O,action:((r=this.$t)==null?void 0:r.call(this,"chat.multichat.action_phrases.left_chat"))||"hat den Chat verlassen.",to:"",color:M,toColor:null});const F=this.usersInRoom.findIndex(z=>z.name===O);F>=0&&this.usersInRoom.splice(F,1),this.selectedTargetUser===O&&(this.selectedTargetUser=null);return}if($==="room_change_user"){const O=e.userName||e.user||e.name||"",M=C.to||C.name||C.room||this.getSelectedRoomName();if(!!((s=this.user)!=null&&s.username&&O===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const z=((a=this.$t)==null?void 0:a.call(this,"chat.multichat.system.room_entered",{room:M}))||`Du betrittst ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}else{const z=`${O} betritt ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}return}if($==="room_entered"){const O=C.to||C.name||C.room||"";this.handleIncoming({type:"system",code:"room_entered",tr:"room_entered",to:O});return}if($==="color_changed"||$==="user_color_changed"){this.handleIncoming({type:"system",code:$,color:e.color||C.color,userName:e.userName||C.userName||""});return}{const O=C.to||C.name||C.room||"",M=$||"room_entered";this.handleIncoming({type:"system",code:M,tr:M,to:O});return}}catch{}if(P==="user_entered_chat"){const C=e.userName||e.user||e.name||"";let $=(e.color||"").toString().trim();$&&!$.startsWith("#")&&($="#"+$),C&&$&&(this.userColors[C]=$);const O=!!((o=this.user)!=null&&o.username&&C===this.user.username);O&&(this.chatConnected=!0,this.setStatus("connected"));const M=this.getSelectedRoomName(),F=O?((l=this.$t)==null?void 0:l.call(this,"chat.multichat.system.room_entered",{room:M}))||`Du betrittst ${M}`:`${C} betritt ${M}`;this.messages.push({id:Date.now(),user:"System",text:F});return}if(P==="user_entered_room"){const C=e.userName||e.user||e.name||"",$=this.getSelectedRoomName();if(!!((u=this.user)!=null&&u.username&&C===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const M=((c=this.$t)==null?void 0:c.call(this,"chat.multichat.system.room_entered",{room:$}))||`Du betrittst ${$}`;this.messages.push({id:Date.now(),user:"System",text:M})}else if(C){const M=`${C} betritt ${$}`;this.messages.push({id:Date.now(),user:"System",text:M})}return}if(P==="user_left_room"){const C=e.userName||e.user||e.name||"User",$=this.getSelectedRoomName();let O=(e.color||this.userColors[C]||"").toString().trim();O&&!O.startsWith("#")&&(O="#"+O),this.messages.push({id:Date.now(),type:"action",user:C,action:((f=this.$t)==null?void 0:f.call(this,"chat.multichat.action_phrases.leaves_room"))||"verlässt",to:$,color:O,toColor:null});const M=this.usersInRoom.findIndex(F=>F.name===C);M>=0&&this.usersInRoom.splice(M,1),this.selectedTargetUser===C&&(this.selectedTargetUser=null);return}if(P==="user_disconnected"){const C=e.userName||e.user||e.name||"User";let $=(e.color||this.userColors[C]||"").toString().trim();$&&!$.startsWith("#")&&($="#"+$),this.messages.push({id:Date.now(),type:"action",user:C,action:((h=this.$t)==null?void 0:h.call(this,"chat.multichat.action_phrases.left_chat"))||"hat den Chat verlassen.",to:"",color:$,toColor:null});const O=this.usersInRoom.findIndex(M=>M.name===C);O>=0&&this.usersInRoom.splice(O,1),this.selectedTargetUser===C&&(this.selectedTargetUser=null);return}if(P==="room_change_user"){const C=e.userName||e.user||e.name||"",$=!!((m=this.user)!=null&&m.username&&C===this.user.username);$&&(this.chatConnected=!0,this.setStatus("connected"));const O=$?((g=this.$t)==null?void 0:g.call(this,"chat.multichat.system.room_entered",{room:this.getSelectedRoomName()}))||`Du betrittst ${this.getSelectedRoomName()}`:`${C} betritt ${this.getSelectedRoomName()}`;this.messages.push({id:Date.now(),user:"System",text:O});return}if(P==="room_entered"){const C=e.to||e.name||e.room||"";this.handleIncoming({type:"system",code:"room_entered",tr:"room_entered",to:C});return}if(P==="color_changed"||P==="user_color_changed"){this.handleIncoming({type:"system",code:P,color:e.color,userName:e.userName||""});return}this.handleIncoming({type:"system",text:P});return}if(typeof P=="object"&&P){const A=P.tr||"";if(A==="user_entered_chat"){const O=e.userName||e.user||e.name||"";let M=(e.color||"").toString().trim();M&&!M.startsWith("#")&&(M="#"+M),O&&M&&(this.userColors[O]=M);const F=P.to||P.name||P.room||this.getSelectedRoomName();if(!!((y=this.user)!=null&&y.username&&O===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const re=((b=this.$t)==null?void 0:b.call(this,"chat.multichat.system.room_entered",{room:F}))||`Du betrittst ${F}`;this.messages.push({id:Date.now(),user:"System",text:re})}else{const re=`${O} betritt ${F}`;this.messages.push({id:Date.now(),user:"System",text:re})}return}if(A==="user_entered_room"){const O=e.userName||e.user||e.name||"",M=P.to||P.name||P.room||this.getSelectedRoomName();if(!!((k=this.user)!=null&&k.username&&O===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const z=((w=this.$t)==null?void 0:w.call(this,"chat.multichat.system.room_entered",{room:M}))||`Du betrittst ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}else{const z=`${O} betritt ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}return}if(A==="user_left_room"){const O=P.userName||e.userName||e.user||e.name||"User",M=P.destination||P.to||P.name||P.room||"";let F=(P.userColor||e.color||this.userColors[O]||P.color||"").toString().trim();F&&!F.startsWith("#")&&(F="#"+F),this.messages.push({id:Date.now(),type:"action",user:O,action:((E=this.$t)==null?void 0:E.call(this,"chat.multichat.action_phrases.left_room"))||"wechselt zu Raum",to:M,color:F,toColor:null});const z=this.usersInRoom.findIndex(re=>re.name===O);z>=0&&this.usersInRoom.splice(z,1),this.selectedTargetUser===O&&(this.selectedTargetUser=null);return}if(A==="user_disconnected"){const O=e.userName||e.user||e.name||"User";let M=(e.color||this.userColors[O]||"").toString().trim();M&&!M.startsWith("#")&&(M="#"+M),this.messages.push({id:Date.now(),type:"action",user:O,action:((I=this.$t)==null?void 0:I.call(this,"chat.multichat.action_phrases.left_chat"))||"hat den Chat verlassen.",to:"",color:M,toColor:null});const F=this.usersInRoom.findIndex(z=>z.name===O);F>=0&&this.usersInRoom.splice(F,1),this.selectedTargetUser===O&&(this.selectedTargetUser=null);return}if(A==="room_change_user"){const O=e.userName||e.user||e.name||"",M=P.to||P.name||P.room||"";if(!!((D=this.user)!=null&&D.username&&O===this.user.username)){this.chatConnected=!0,this.setStatus("connected");const z=((x=this.$t)==null?void 0:x.call(this,"chat.multichat.system.room_entered",{room:M}))||`Du betrittst ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}else{const z=`${O} betritt ${M}`;this.messages.push({id:Date.now(),user:"System",text:z})}return}const C=P.to||P.name||P.room||"",$=A||"room_entered";this.handleIncoming({type:"system",code:$,tr:$,to:C});return}}if(e.type===6){this.handleIncoming({type:"scream",userName:e.userName||e.user||e.name||"",message:e.message||"",color:e.color||null});return}if(typeof e.message=="string"&&(e.userName||e.user||e.name||e.token)){this.handleIncoming({type:"message",message:e.message,userName:e.userName||e.user||e.name,color:e.color||null,token:e.token});return}this.handleIncoming({type:"system",text:JSON.stringify(e)})}}}},LE=e=>(Cn("data-v-f3123d7f"),e=e(),Tn(),e),ane={class:"dialog-widget-content"},one={class:"multi-chat-top"},lne=["value"],une={class:"right-controls"},cne=LE(()=>d("span",{class:"dot"},null,-1)),dne={class:"text"},fne={class:"options-dropdown-wrapper",ref:"optionsWrap"},hne={key:0,class:"options-dropdown"},mne={key:0,class:"opts-divider"},gne={key:1,class:"opts-row"},pne={key:0,class:"multi-chat-body"},vne={class:"user"},yne=LE(()=>d("span",{class:"scream-label"}," schreit:",-1)),bne={class:"text"},kne={class:"action-text"},wne={class:"text"},Sne={class:"user-list"},_ne={class:"user-list-header"},Cne={class:"user-list-items"},Tne=["onClick"],Ene={key:1,class:"multi-chat-input"},Ine=["placeholder"],Ane=["alt","title"],xne=["alt","title"],Dne={key:2,class:"color-picker-panel"},Pne={class:"picker-grid"},One={class:"picker-column"},Mne=["width","height"],$ne={class:"picker-column"},Vne={class:"picker-row"},Lne={class:"picker-label"},Nne={key:0,class:"picker-error"},Rne={class:"picker-actions"};function Fne(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:e.$t("chat.multichat.title"),modal:!1,"show-close":!0,onClose:s.onDialogClose,width:"75vw",height:"75vh",name:"MultiChatDialog",icon:"multichat24.png"},{default:ze(()=>[d("div",ane,[d("div",one,[ie(d("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>r.selectedRoom=o),class:"room-select"},[(S(!0),_(U,null,we(r.rooms,o=>(S(),_("option",{key:o.id,value:o.id},p(o.title),9,lne))),128))],512),[[Et,r.selectedRoom]]),d("div",une,[d("div",{class:Dt(["status",r.statusType])},[cne,d("span",dne,p(r.statusText),1),r.statusType==="error"||r.statusType==="disconnected"?(S(),_("button",{key:0,class:"reconnect-btn",onClick:t[1]||(t[1]=(...o)=>s.connectChatSocket&&s.connectChatSocket(...o)),type:"button"},"↻")):te("",!0)],2),d("div",fne,[d("button",{class:"options-btn",onClick:t[2]||(t[2]=(...o)=>s.onOptionsToggle&&s.onOptionsToggle(...o)),type:"button"},p(e.$t("chat.multichat.options")),1),r.showOptions?(S(),_("div",hne,[d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>r.autoscroll=o)},null,512),[[Nt,r.autoscroll]]),ge(" "+p(e.$t("chat.multichat.autoscroll")),1)]),s.isAdmin?(S(),_("div",mne)):te("",!0),s.isAdmin?(S(),_("div",gne,[d("button",{class:"opts-btn",type:"button",onClick:t[4]||(t[4]=(...o)=>s.reloadRoomsAdmin&&s.reloadRoomsAdmin(...o))},"Räume neu laden")])):te("",!0)])):te("",!0)],512)])]),r.showColorPicker?te("",!0):(S(),_("div",pne,[d("div",{class:"multi-chat-output",ref:"output",onMouseenter:t[5]||(t[5]=o=>r.mouseOverOutput=!0),onMouseleave:t[6]||(t[6]=o=>r.mouseOverOutput=!1)},[(S(!0),_(U,null,we(r.messages,o=>(S(),_("div",{key:o.id,class:"chat-message"},[o.type==="scream"?(S(),_("span",{key:0,class:"scream-line",style:ft(o.color?{color:o.color}:null)},[d("span",vne,p(o.user),1),yne,d("span",bne,p((o.text||"").toUpperCase()),1)],4)):o.type==="action"?(S(),_(U,{key:1},[d("span",{class:"user",style:ft(o.color?{color:o.color}:null)},p(o.user),5),d("span",kne,p(o.action),1),d("span",{class:"action-target",style:ft(o.toColor?{color:o.toColor}:null)},p(o.to),5)],64)):(S(),_(U,{key:2},[d("span",{class:"user",style:ft(o.color?{color:o.color}:null)},p(o.user)+":",5),d("span",wne,p(o.text),1)],64))]))),128))],544),d("div",Sne,[d("div",_ne,"Teilnehmer ("+p(r.usersInRoom.length)+")",1),d("div",Cne,[(S(!0),_(U,null,we(r.usersInRoom,o=>(S(),_("div",{class:Dt(["user-list-item",{selected:r.selectedTargetUser===o.name}]),key:o.name,onClick:l=>s.selectTargetUser(o.name),title:"Klicken zum Auswählen"},[d("span",{class:"user-dot",style:ft({backgroundColor:o.color||r.userColors[o.name]||"#ccc"})},null,4),d("span",{class:"user-name",style:ft(o.color||r.userColors[o.name]?{color:o.color||r.userColors[o.name]}:null)},p(o.name),5)],10,Tne))),128))])])])),r.showColorPicker?(S(),_("div",Dne,[d("div",Pne,[d("div",One,[d("div",{class:"palette-wrap",onMousedown:t[14]||(t[14]=(...o)=>s.onPaletteDown&&s.onPaletteDown(...o)),onMousemove:t[15]||(t[15]=(...o)=>s.onPaletteMove&&s.onPaletteMove(...o)),onMouseup:t[16]||(t[16]=(...o)=>s.onPaletteUp&&s.onPaletteUp(...o)),onMouseleave:t[17]||(t[17]=(...o)=>s.onPaletteUp&&s.onPaletteUp(...o))},[d("canvas",{ref:"paletteCanvas",width:r.paletteWidth,height:r.paletteHeight},null,8,Mne),r.pickX!==null?(S(),_("div",{key:0,class:"palette-marker",style:ft({left:r.pickX-6+"px",top:r.pickY-6+"px"})},null,4)):te("",!0)],32)]),d("div",$ne,[d("div",Vne,[d("label",Lne,p(e.$t("chat.multichat.hex")),1),ie(d("input",{class:"hex-input","onUpdate:modelValue":t[18]||(t[18]=o=>r.hexInput=o),onInput:t[19]||(t[19]=(...o)=>s.onHexInput&&s.onHexInput(...o)),placeholder:"#AABBCC"},null,544),[[Le,r.hexInput]])]),r.hexInvalid?(S(),_("div",Nne,p(e.$t("chat.multichat.invalid_hex")),1)):te("",!0),d("div",{class:"picker-preview",style:ft({color:r.selectedColor})},p(e.$t("chat.multichat.colorpicker_preview")),5),d("div",{class:"picker-sample",style:ft({background:r.selectedColor})},null,4)])]),d("div",Rne,[d("button",{class:"btn",onClick:t[20]||(t[20]=(...o)=>s.onColorOk&&s.onColorOk(...o))},p(e.$t("chat.multichat.ok")),1),d("button",{class:"btn secondary",onClick:t[21]||(t[21]=(...o)=>s.onColorCancel&&s.onColorCancel(...o))},p(e.$t("chat.multichat.cancel")),1)])])):(S(),_("div",Ene,[ie(d("input",{"onUpdate:modelValue":t[7]||(t[7]=o=>r.input=o),onKeyup:t[8]||(t[8]=ci((...o)=>s.sendMessage&&s.sendMessage(...o),["enter"])),class:"chat-input",placeholder:e.$t("chat.multichat.placeholder")},null,40,Ine),[[Le,r.input]]),d("button",{onClick:t[9]||(t[9]=(...o)=>s.sendMessage&&s.sendMessage(...o)),class:"send-btn"},p(e.$t("chat.multichat.send")),1),d("img",{onClick:t[10]||(t[10]=(...o)=>s.shout&&s.shout(...o)),src:tne,class:"icon-btn",alt:"Schreien",title:"Schreien"}),d("img",{onClick:t[11]||(t[11]=(...o)=>s.action&&s.action(...o)),src:nne,class:Dt(["icon-btn",{disabled:!r.selectedTargetUser}]),alt:e.$t("chat.multichat.action"),title:r.selectedTargetUser?e.$t("chat.multichat.action_to",{to:r.selectedTargetUser}):e.$t("chat.multichat.action_select_user")},null,10,Ane),d("img",{onClick:t[12]||(t[12]=(...o)=>s.roll&&s.roll(...o)),src:ine,class:"icon-btn",alt:"Würfeln",title:"Würfeln"}),d("img",{onClick:t[13]||(t[13]=(...o)=>s.openColorPicker&&s.openColorPicker(...o)),src:rne,class:"icon-btn",alt:e.$t("chat.multichat.colorpicker"),title:e.$t("chat.multichat.colorpicker")},null,8,xne)]))])]),_:1},8,["title","onClose"])}const NE=Oe(sne,[["render",Fne],["__scopeId","data-v-f3123d7f"]]),Bne="Welcome to YourPart",zne={title:"Imprint"},Une={title:"Data Privacy Policy"},Wne={close:"Close"},Hne={welcome:Bne,imprint:zne,dataPrivacy:Une,message:Wne},jne="Logo",Gne="YourPart",qne="Advertisement",Kne={logo:jne,title:Gne,advertisement:qne},Yne={home:"Home",logout:"Logout",friends:"Friends",socialnetwork:"Meeting point",chats:"Chats",falukant:"Falukant",minigames:"Mini games",settings:"Settings",administration:"Administration","m-chats":{multiChat:"Multiuser chat",randomChat:"Random single chat",eroticChat:"Erotic chat"},"m-socialnetwork":{guestbook:"Guestbook",blog:"Blog",usersearch:"User search",forum:"Forum",gallery:"Gallery",blockedUsers:"Blocked users",oneTimeInvitation:"One-time invitations",diary:"Diary",erotic:"Erotic","m-erotic":{pictures:"Pictures",videos:"Videos"}},"m-minigames":{match3:"Match 3 - Jewels"},"m-settings":{homepage:"Homepage",account:"Account",personal:"Personal",view:"Appearance",flirt:"Flirt",interests:"Interests",notifications:"Notifications",sexuality:"Sexuality"},"m-administration":{contactrequests:"Contact requests",useradministration:"User administration",forum:"Forum",userrights:"User rights",interests:"Interests",falukant:"Falukant","m-falukant":{logentries:"Log entries",edituser:"Edit user",database:"Database"}},"m-friends":{manageFriends:"Manage friends",chat:"Chat",profile:"Profile"},"m-falukant":{create:"Create",overview:"Overview",towns:"Towns",directors:"Directors",factory:"Factory",family:"Family",house:"House",darknet:"Underground",reputation:"Reputation",moneyhistory:"Money flow",nobility:"Social status",politics:"Politics",education:"Education",health:"Health",bank:"Bank",church:"Church"}},Jne={navigation:Yne},Xne={nologin:{welcome:"Welcome at yourPart",description:"---platzhalter---",randomchat:"Random chat",startrandomchat:"Start random chat"}},Zne={home:Xne},Qne={multichat:{title:"Multi Chat",autoscroll:"Auto scroll",options:"Options",send:"Send",shout:"Shout",action:"Action",roll:"Roll",colorpicker:"Pick color",colorpicker_preview:"Preview: This message uses the chosen color.",hex:"HEX",invalid_hex:"Invalid hex value",hue:"Hue",saturation:"Saturation",lightness:"Lightness",ok:"Ok",cancel:"Cancel",placeholder:"Type a message…",action_select_user:"Please select a user",action_to:"Action to {to}",action_phrases:{left_room:"switches to room",leaves_room:"leaves room",left_chat:"has left the chat."},system:{room_entered:'You entered the room "{room}".',user_entered_room:"{user} has entered the room.",user_left_room:"{user} has left the room.",color_changed_self:"You changed your color to {color}.",color_changed_user:"{user} changed their color to {color}."},status:{connecting:"Connecting…",connected:"Connected",disconnected:"Disconnected",error:"Connection error"}},randomchat:{title:"Random Chat",close:"Close",age:"Age",gender:{title:"Gender",female:"Female",male:"Male"},agerange:"Age Range",gendersearch:"Gender Search",camonly:"Cam Only",showcam:"Show Cam",addfriend:"Add Friend",autosearch:"Auto Search",input:"Input",start:"Start",waitingForMatch:"Waiting for a match...",chatpartner:"You are now chatting with a <gender> person aged <age> years.",partnergenderm:"male",partnergenderf:"female",self:"You",partner:"Partner",jumptonext:"End this chat",userleftchat:"The chat partner has left the chat.",startsearch:"Search next conversation",selfstopped:"You left the conversation."}},eie={chat:Qne},tie={},nie={},iie={error:nie},rie={},sie={},aie={match3:{title:"Manage Match3 Levels",newLevel:"Create New Level",editLevel:"Edit Level",deleteLevel:"Delete Level",confirmDelete:"Do you really want to delete this level?",levelName:"Name",levelDescription:"Description",boardWidth:"Width",boardHeight:"Height",moveLimit:"Move Limit",levelOrder:"Order",boardLayout:"Board Layout",tileTypes:"Available Tile Types",actions:"Actions",edit:"Edit",delete:"Delete",save:"Save",cancel:"Cancel",update:"Update",create:"Create",boardControls:{fillAll:"Activate All",clearAll:"Deactivate All",invert:"Invert"},loading:"Loading levels...",retry:"Retry",availableLevels:"Available Levels: {count}",levelFormat:"Level {number}: {name}",levelObjectives:"Level Objectives",objectivesTitle:"Victory Conditions",addObjective:"Add Objective",removeObjective:"Remove",objectiveType:"Type",objectiveTypeScore:"Collect Score",objectiveTypeMatches:"Make Matches",objectiveTypeMoves:"Use Moves",objectiveTypeTime:"Keep Time",objectiveTypeSpecial:"Special Goal",objectiveOperator:"Operator",operatorGreaterEqual:"Greater or equal (≥)",operatorLessEqual:"Less or equal (≤)",operatorEqual:"Equal (=)",operatorGreater:"Greater than (>)",operatorLess:"Less than (<)",objectiveTarget:"Target Value",objectiveTargetPlaceholder:"e.g. 100",objectiveOrder:"Order",objectiveOrderPlaceholder:"1, 2, 3...",objectiveDescription:"Description",objectiveDescriptionPlaceholder:"e.g. Collect 100 points",objectiveRequired:"Required for level completion",noObjectives:"No victory conditions defined. Click 'Add Objective' to create some."}},oie={admin:aie},lie={},uie={},cie={messages:{title:"Messages",tooltip:"Messages",empty:"No messages."},statusbar:{age:"Age",wealth:"Wealth",health:"Health",events:"Events",relationship:"Relationship",children:"Children",children_unbaptised:"Unbaptised children"},health:{amazing:"Amazing",good:"Good",normal:"Normal",bad:"Bad",very_bad:"Very bad"}},die={falukant:cie},fie={title:"Reset Password",email:"Email",reset:"Reset",success:"If the email exists, we've sent reset instructions.",failure:"Password reset failed. Please try again later."},hie={passwordReset:fie},mie={posts:"Posts",noPosts:"No posts.",newPost:"Write new post",title:"Title",publish:"Publish",pickImage:"Pick an image",uploadImage:"Upload image"},gie={blog:mie},pie={title:"Mini Games",description:"Discover a collection of entertaining mini games!",play:"Play",backToGames:"Back to Games",comingSoon:{title:"Coming Soon",description:"More exciting games are in development!"},match3:{title:"Match 3 - Jewels Campaign",description:"Connect three or more matching jewels to score points!",campaignDescription:"Play through all levels and collect stars!",gameStats:"Game Statistics",score:"Score",moves:"Moves",currentLevel:"Current Level",level:"Level",stars:"Stars",movesLeft:"Moves Left",restartLevel:"Restart Level",pause:"Pause",resume:"Resume",paused:"Game Paused",levelComplete:"Level Complete!",levelScore:"Level Score",movesUsed:"Moves Used",starsEarned:"Stars Earned",nextLevel:"Next Level",campaignComplete:"Campaign Complete!",totalScore:"Total Score",totalStars:"Total Stars",levelsCompleted:"Levels Completed",restartCampaign:"Restart Campaign"}},vie={minigames:pie},yie="Willkommen bei YourPart",bie={title:"Impressum",button:"Impressum"},kie={title:"Datenschutzerklärung",button:"Datenschutzerklärung"},wie={title:"Kontakt",button:"Kontakt"},Sie={contact:{email:"Email-Adresse",name:"Name",message:"Deine Nachricht an uns",accept:"Deine Email-Adresse wird vorübergehend in unserem System gespeichert. Nachdem Deine Anfrage bearbeitet wurde, wird die Email-Adresse wieder aus dem System gelöscht.",acceptdatasave:"Ich stimme der vorübergehenden Speicherung meiner Email-Adresse zu.",accept2:"Ohne diese Zustimmung können wir Dir leider nicht antworten."}},_ie={datetimelong:"dd.MM.yyyy HH:mm:ss"},Cie="Ok",Tie="Abbrechen",Eie="Ja",Iie="Nein",Aie={close:"Schließen"},xie={male:"Männlich",female:"Weiblich",transmale:"Trans-Mann",transfemale:"Trans-Frau",nonbinary:"Nichtbinär"},Die={edit:"Bearbeiten",delete:"Löschen",create:"Erstellen",yes:"Ja",no:"Nein"},Pie={welcome:yie,imprint:bie,dataPrivacy:kie,contact:wie,"error-title":"Fehler","warning-title":"Warnung","info-title":"Information",dialog:Sie,general:_ie,OK:Cie,Cancel:Tie,yes:Eie,no:Iie,message:Aie,gender:xie,common:Die},Oie="Logo",Mie="YourPart",$ie="Advertisement",Vie={logo:Oie,title:Mie,advertisement:$ie},Lie={home:"Startseite",logout:"Abmelden",friends:"Freunde",socialnetwork:"Treffpunkt",chats:"Chats",falukant:"Falukant",minigames:"Minispiele",settings:"Einstellungen",administration:"Verwaltung","m-chats":{multiChat:"Multiuser-Chat",randomChat:"Zufalls-Singlechat",eroticChat:"Erotikchat"},"m-socialnetwork":{guestbook:"Gästebuch",blog:"Blog",usersearch:"Benutzersuche",forum:"Forum",gallery:"Galerie",blockedUsers:"Blockierte Benutzer",oneTimeInvitation:"Einmal-Einladungen",diary:"Tagebuch",erotic:"Erotik","m-erotic":{pictures:"Bilder",videos:"Videos"}},"m-minigames":{match3:"Match 3 - Juwelen"},"m-settings":{homepage:"Startseite",account:"Account",personal:"Persönliches",view:"Aussehen",flirt:"Flirt",interests:"Interessen",notifications:"Benachrichtigungen",sexuality:"Sexualität"},"m-administration":{contactrequests:"Kontaktanfragen",useradministration:"Benutzerverwaltung",forum:"Forum",userrights:"Benutzerrechte",interests:"Interessen",falukant:"Falukant","m-falukant":{logentries:"Log-Einträge",edituser:"Benutzer bearbeiten",database:"Datenbank"},minigames:"Minispiele","m-minigames":{match3:"Match3 Level"},chatrooms:"Chaträume"},"m-friends":{manageFriends:"Freunde verwalten",chat:"Chatten",profile:"Profil"},"m-falukant":{create:"Erstellen",overview:"Übersicht",towns:"Niederlassungen",directors:"Direktoren",factory:"Produktion",family:"Familie",house:"Haus",darknet:"Untergrund",reputation:"Reputation",moneyhistory:"Geldfluss",nobility:"Sozialstatus",politics:"Politik",education:"Bildung",health:"Gesundheit",bank:"Bank",church:"Kirche"}},Nie={navigation:Lie},Rie={nologin:{welcome:"Willkommen bei yourPart",description:"yourPart ist ein social Network, bei dem Sie Freundschaften schließen und neue Leute kennen lernen können. Sie können hier Ihre Bilder für andere anzeigen und dabei bestimmen, wer welche Bilder sehen kann. Natürlich können Sie auch Nachrichen austauschen und sogar Chatten. Im großen Stil, mit vielen anderen gleichzeitig, und im kleinen Zufallschat. Und nicht zu vergessen, Sie können hier auch Camen.",randomchat:"Zufallschat",startrandomchat:"Zufallschat starten",login:{name:"Login-Name",namedescription:"Gib hier Deinen Benutzernamen ein",password:"Paßwort",passworddescription:"Gib hier Dein Paßwort ein",lostpassword:"Paßwort vergessen",register:"Bei yourPart registrieren"}}},Fie={home:Rie},Bie={multichat:{title:"Multi-Chat",autoscroll:"Automatisch scrollen",options:"Optionen",send:"Senden",shout:"Schreien",action:"Aktion",roll:"Würfeln",colorpicker:"Farbe wählen",colorpicker_preview:"Vorschau: Diese Nachricht nutzt die gewählte Farbe.",hex:"HEX",invalid_hex:"Ungültiger Hex-Wert",hue:"Farbton",saturation:"Sättigung",lightness:"Helligkeit",ok:"Ok",cancel:"Abbrechen",placeholder:"Nachricht eingeben...",action_select_user:"Bitte Benutzer auswählen",action_to:"Aktion an {to}",action_phrases:{left_room:"wechselt zu Raum",leaves_room:"verlässt Raum",left_chat:"hat den Chat verlassen."},system:{room_entered:'Du hast den Raum "{room}" betreten.',user_entered_room:"{user} hat den Raum betreten.",user_left_room:"{user} hat den Raum verlassen.",color_changed_self:"Du hast deine Farbe zu {color} geändert.",color_changed_user:"{user} hat seine/ihre Farbe zu {color} geändert."},status:{connecting:"Verbinden…",connected:"Verbunden",disconnected:"Getrennt",error:"Fehler bei der Verbindung"}},randomchat:{title:"Zufallschat",age:"Alter",gender:{title:"Dein Geschlecht",male:"Männlich",female:"Weiblich"},start:"Loslegen",agerange:"Alter",gendersearch:"Geschlechter",camonly:"Nur mit Cam",showcam:"Eigene Cam anzeigen",addfriend:"Zu Freunden hinzufügen",close:"Chat beenden",autosearch:"Automatisch suchen",input:"Ihr Text",waitingForMatch:"Warten auf einen Teilnehmer...",chatpartner:"Du chattest jetzt mit einer <gender> Person im Alter von <age> Jahren.",partnergenderm:"männlichen",partnergenderf:"weiblichen",self:"Du",partner:"Partner",jumptonext:"Diesen Chat beenden",userleftchat:"Der Gesprächstpartner hat den Chat verlassen.",startsearch:"Suche nächstes Gespräch",selfstopped:"Du hast das Gespräch verlassen."}},zie={chat:Bie},Uie={title:"Bei yourPart registrieren",email:"Email-Adresse",username:"Benutzername",password:"Paßwort",repeatPassword:"Paßwort wiederholen",language:"Sprache",languages:{en:"Englisch",de:"Deutsch"},register:"Registrieren",close:"Schließen",failure:"Es ist ein Fehler aufgetreten.",success:"Du wurdest erfolgreich registriert. Bitte schaue jetzt in Dein Email-Postfach zum aktivieren Deines Zugangs.",passwordMismatch:"Die Paßwörter stimmen nicht überein.",emailinuse:"Die Email-Adresse wird bereits verwendet.",usernameinuse:"Der Benutzername ist nicht verfügbar."},Wie={register:Uie},Hie={title:"Fehler aufgetreten",close:"Schließen",credentialsinvalid:"Die Zugangsdaten sind nicht korrekt."},jie={error:Hie},Gie={title:"Zugang aktivieren",message:"Hallo {username}. Bitte gib hier den Code ein, den wir Dir per Email zugesendet haben.",token:"Token:",submit:"Absenden",failure:"Die Aktivierung war nicht erfolgreich."},qie={activate:Gie},Kie={personal:{title:"Persönliche Daten",label:{language:"Sprache",birthdate:"Geburtsdatum",gender:"Geschlecht",town:"Stadt",zip:"PLZ",eyecolor:"Augenfarbe",haircolor:"Haarfarbe",hairlength:"Haarlänge",skincolor:"Hautfarbe",freckles:"Sommersprossen",weight:"Gewicht",bodyheight:"Größe",piercings:"Piercings",tattoos:"Tattoos",sexualpreference:"Ausrichtung",pubichair:"Schamhaare",penislength:"Penislänge",brasize:"BH-Größe",willChildren:"Ich möchte Kinder",smokes:"Rauchen",drinks:"Ich trinke Alkohol",hasChildren:"Ich habe Kinder",interestedInGender:"Interessiert an"},tooltip:{language:"Sprache",birthdate:"Geburtsdatum",gender:"Geschlecht",town:"Stadt",zip:"PLZ",eyecolor:"Augenfarbe",haircolor:"Haarfarbe",hairlength:"Haarlänge",skincolor:"Hautfarbe",freckles:"Sommersprossen",weight:"Gewicht",bodyheight:"Größe",piercings:"Piercings",tattoos:"Tattoos",sexualpreference:"Ausrichtung",pubichair:"Schamhaare",penislength:"Penislänge",brasize:"BH-Größe"},gender:{male:"Männlich",female:"Weiblich",transmale:"Trans-Frau",transfemale:"Trans-Mann",nonbinary:"Nonbinär"},language:{de:"Deutsch",en:"Englisch"},eyecolor:{blue:"Blau",green:"Grün",brown:"Braun",black:"Schwarz",grey:"Grau",hazel:"Haselnuss",amber:"Bernstein",red:"Rot",other:"Andere"},haircolor:{black:"Schwarz",brown:"Braun",blonde:"Blond",red:"Rot",grey:"Grau",white:"Weiß",other:"Andere"},hairlength:{short:"Kurz",medium:"Mittel",long:"Lang",bald:"Glatze",other:"Andere"},skincolor:{light:"Hell",medium:"Mittel",dark:"Dunkel",other:"Andere"},freckles:{much:"Viele",medium:"Mittel",less:"Wenige",none:"Keine"},sexualpreference:{straight:"Heterosexuell",gay:"Homosexuell",bi:"Bisexuell",asexual:"Asexuell",pan:"Pansexuell"},pubichair:{none:"Keine",short:"Kurz",medium:"Mittel",long:"Lang",hairy:"Natürlich",waxed:"Heißwachsentfernung",landingstrip:"Landebahn",bikinizone:"Nur Bikinizone",other:"Andere"},interestedInGender:{male:"Männer",female:"Frauen"},smokes:{often:"Oft",socially:"In Gesellschaft",daily:"Täglich",never:"Nie"},drinks:{often:"Oft",socially:"In Gesellschaft",daily:"Täglich",never:"Nie"}},view:{title:"Aussehen"},sexuality:{title:"Sexualität"},account:{title:"Account",username:"Benutzername",email:"Email-Adresse",newpassword:"Passwort",newpasswordretype:"Passwort wiederholen",deleteAccount:"Account löschen",language:"Sprache",showinsearch:"In Usersuchen anzeigen",changeaction:"Benutzerdaten ändern",oldpassword:"Altes Paßwort (benötigt)"},interests:{title:"Interessen",new:"Neues Interesse",add:"Hinzufügen",added:"Das neue Interesse wurde hinzugefügt und wird bearbeitet. Bis zum Abschluss ist es nicht in der Liste der Interessen sichtbar.",adderror:"Beim hinzufügen des Interesses ist ein Fehler aufgetreten.",errorsetinterest:"Das Interest konnte für Dich nicht gebucht werden."},visibility:{Invisible:"Nicht anzeigen",OnlyFriends:"Nur Freunden anzeigen",FriendsAndAdults:"Freunden und Erwachsenen anzeigen",AdultsOnly:"Nur Erwachsenen anzeigen",All:"Jedem zeigen"},flirt:{title:"Flirt"}},Yie={settings:Kie},Jie={interests:{title:"[Admin] - Interessen verwalten",newinterests:{name:"Name des Interesses",status:"Freigegeben",adultonly:"Nur für Erwachsene",translations:"Übersetzungen",isactive:"Aktiviert",isadult:"Nur für Erwachsene",delete:"Löschen"}},contacts:{title:"[Admin] - Kontaktanfragen",date:"Datum",from:"Absender",actions:"Aktionen",open:"Bearbeiten",finished:"Abschließen"},editcontactrequest:{title:"[Admin] - Kontaktanfrage bearbeiten"},forum:{title:"[Admin] - Forum",currentForums:"Existierende Foren",edit:"Ändern",delete:"Löschen",createForum:"Anlegen",forumName:"Titel",create:"Anlegen",permissions:{label:"Berechtigungen",all:"Jeder",admin:"Nur Admins",teammember:"Nur Teammitglieder",user:"Nur bestimmte Benutzer",age:"Nur ab Alter 14"},selectPermissions:"Bitte auswählen",confirmDeleteMessage:"Soll das Forum wirklich gelöscht werden?",confirmDeleteTitle:"Forum löschen"},falukant:{edituser:{success:"Die Änderungen wurden gespeichert.",error:"Die Änderungen konnten nicht gespeichert werden."}},chatrooms:{title:"[Admin] - Chaträume verwalten",roomName:"Raumname",create:"Chatraum anlegen",edit:"Chatraum bearbeiten",type:"Typ",isPublic:"Öffentlich sichtbar",actions:"Aktionen",genderRestriction:{show:"Geschlechtsbeschränkung aktivieren",label:"Geschlechtsbeschränkung"},minAge:{show:"Mindestalter angeben",label:"Mindestalter"},maxAge:{show:"Höchstalter angeben",label:"Höchstalter"},password:{show:"Passwortschutz aktivieren",label:"Passwort"},friendsOfOwnerOnly:"Nur Freunde des Besitzers",requiredUserRight:{show:"Benötigtes Benutzerrecht angeben",label:"Benötigtes Benutzerrecht"},roomtype:{chat:"Reden",dice:"Würfeln",poker:"Poker",hangman:"Hangman"},rights:{talk:"Reden",scream:"Schreien",whisper:"Flüstern","start game":"Spiel starten","open room":"Raum öffnen",systemmessage:"Systemnachricht"},confirmDelete:"Soll dieser Chatraum wirklich gelöscht werden?"},match3:{title:"Match3 Level verwalten",newLevel:"Neues Level erstellen",editLevel:"Level bearbeiten",deleteLevel:"Level löschen",confirmDelete:"Möchtest du dieses Level wirklich löschen?",levelName:"Name",levelDescription:"Beschreibung",boardWidth:"Breite",boardHeight:"Höhe",moveLimit:"Zug-Limit",levelOrder:"Reihenfolge",boardLayout:"Board-Layout",tileTypes:"Verfügbare Tile-Typen",actions:"Aktionen",edit:"Bearbeiten",delete:"Löschen",save:"Speichern",cancel:"Abbrechen",update:"Aktualisieren",create:"Erstellen",boardControls:{fillAll:"Alle aktivieren",clearAll:"Alle deaktivieren",invert:"Invertieren"},loading:"Lade Level...",retry:"Erneut versuchen",availableLevels:"Verfügbare Level: {count}",levelFormat:"Level {number}: {name}",levelObjectives:"Level-Objekte",objectivesTitle:"Siegvoraussetzungen",addObjective:"Objektiv hinzufügen",removeObjective:"Entfernen",objectiveType:"Typ",objectiveTypeScore:"Punkte sammeln",objectiveTypeMatches:"Matches machen",objectiveTypeMoves:"Züge verwenden",objectiveTypeTime:"Zeit einhalten",objectiveTypeSpecial:"Spezialziel",objectiveOperator:"Operator",operatorGreaterEqual:"Größer oder gleich (≥)",operatorLessEqual:"Kleiner oder gleich (≤)",operatorEqual:"Gleich (=)",operatorGreater:"Größer als (>)",operatorLess:"Kleiner als (<)",objectiveTarget:"Zielwert",objectiveTargetPlaceholder:"z.B. 100",objectiveOrder:"Reihenfolge",objectiveOrderPlaceholder:"1, 2, 3...",objectiveDescription:"Beschreibung",objectiveDescriptionPlaceholder:"z.B. Sammle 100 Punkte",objectiveRequired:"Erforderlich für Level-Abschluss",noObjectives:"Keine Siegvoraussetzungen definiert. Klicke auf 'Objektiv hinzufügen' um welche zu erstellen."}},Xie={admin:Jie},Zie={usersearch:{title:"Benutzersuche",username:"Benutzername",age_from:"Alter von",age_to:"bis",gender:"Geschlecht",search_button:"Suchen",no_results:"Keine Ergebnisse gefunden",results_title:"Suchergebnisse:",result:{nick:"Spitzname",gender:"Geschlecht",age:"Alter"}},profile:{pretitle:"Lade Daten. Bitte warten...",error_title:"User nicht gefunden",title:"Profil von <username>",tab:{general:"Allgemeines",sexuality:"Sexualität",images:"Galerie",guestbook:"Gästebuch"},values:{bool:{true:"Ja",false:"Nein"},smokes:{never:"Nie",socially:"In Gesellschaft",often:"Oft",daily:"Täglich"},drinks:{never:"Nie",socially:"In Gesellschaft",often:"Oft",daily:"Täglich"},interestedInGender:{male:"Männern",female:"Frauen"},sexualpreference:{straight:"Heterosexuell",gay:"Homosexuell",bi:"Bisexuell",pan:"Pansexuell",asexual:"Asexuell"},pubichair:{none:"Keine",short:"Kurz",medium:"Mittel",long:"Lang",hairy:"Unrasiert",waxed:"Gewachst",landingstrip:"Landebahn",other:"Anderes",bikinizone:"Bikinizone"},gender:{male:"Männlich",female:"Weiblich",transmale:"Trans-Frau",transfemale:"Trans-Mann",nonbinary:"Nonbinär"},language:{de:"Deutsch",en:"Englisch"},eyecolor:{blue:"Blau",green:"Grün",brown:"Braun",black:"Schwarz",grey:"Grau",hazel:"Haselnuss",amber:"Bernstein",red:"Rot",other:"Andere"},haircolor:{black:"Schwarz",brown:"Braun",blonde:"Blond",red:"Rot",grey:"Grau",white:"Weiß",other:"Andere"},hairlength:{short:"Kurz",medium:"Mittel",long:"Lang",bald:"Glatze",other:"Andere"},skincolor:{light:"Hell",medium:"Mittel",dark:"Dunkel",other:"Andere"},freckles:{much:"Viele",medium:"Mittel",less:"Wenige",none:"Keine"}},guestbook:{showInput:"Neuer Eintrag anzeigen",hideInput:"Neuer Eintrag verbergen",imageUpload:"Bild",submit:"Eintrag absenden",noEntries:"Keine Einträge gefunden"},interestedInGender:"Interessiert an",hasChildren:"Hat Kinder",smokes:"Rauchen",drinks:"Alkohol",willChildren:"Will Kinder",sexualpreference:"Sexuelle Ausrichtung",pubichair:"Schamhaare",penislength:"Penislänge",brasize:"BH-Größe",piercings:"Piercings",tattoos:"Tattoos",language:"Sprache",gender:"Geschlecht",eyecolor:"Augenfarbe",haircolor:"Haarfarbe",hairlength:"Haarlänge",freckles:"Sommersprossen",skincolor:"Hautfarbe",birthdate:"Geburtsdatum",age:"Alter",town:"Stadt",bodyheight:"Größe",weight:"Gewicht"},gallery:{title:"Gallerie",folders:"Ordner",create_folder:"Ordner anlegen",upload:{title:"Bild hochladen",image_title:"Titel",image_file:"Datei",visibility:"Sichtbar für",upload_button:"Hochladen",selectvisibility:"Bitte auswählen"},images:"Bilder",visibility:{everyone:"Jeden",friends:"Freunde",adults:"Erwachsene","friends-and-adults":"Freunde und Erwachsene","selected-users":"Ausgewählte Benutzer",none:"Niemand"},create_folder_dialog:{title:"Ordner anlegen",parent_folder:"Wird angelegt in",folder_title:"Ordnername",visibility:"Sichtbar für",select_visibility:"Bitte auswählen"},noimages:"In diesem Ordner befinden sich zur Zeit keine Bilder",imagedialog:{image_title:"Titel",edit_visibility:"Sichtbar für",save_changes:"Änderungen speichern",close:"Schließen",edit_visibility_placeholder:"Bitte auswählen"},delete_folder_confirmation_title:"Ordner löschen",delete_folder_confirmation_message:"Soll der Ordner '%%folderName%%' wirklich gelöscht werden?",edit_image_dialog:{title:"Bilddaten editieren"},show_image_dialog:{title:"Bild"}},guestbook:{title:"Gästebuch",prevPage:"Zurück",nextPage:"Weiter",page:"Seite"},diary:{title:"Tagebuch",noEntries:"Du hast noch keine Tagebucheinträge gemacht.",newEntry:"Neuer Tagebucheintrag",editEntry:"Tagebucheintrag ändern",save:"Speichern",update:"Ändern",cancel:"Abbrechen",edit:"Ändern",delete:"Löschen",confirmDelete:"Willst Du den Eintrag wirklich löschen?",prevPage:"Zurück",nextPage:"Weiter",page:"Seite"},forum:{title:"Forum",showNewTopic:"Neues Thema erstellen",hideNewTopic:"Erstellen unterbrechen",noTitles:"Keine Themen vorhanden",topic:"Thema",createNewTopic:"Thema anlegen",createdBy:"Erstellt von",createdAt:"Erstellt am",reactions:"Reaktion",lastReaction:"Letzte Reaktion von",pagination:{first:"Erste Seite",previous:"Vorherige Seite",next:"Nächste Seite",last:"Letzte Seite",page:"Seite <<page>> von <<of>>"},createNewMesssage:"Antwort senden"},friendship:{error:{alreadyexists:"Die Freundschaftsanfrage existiert bereits"},state:{none:"Nicht befreundet",waiting:"Freundschaftsanfrage gesendet, aber nicht beantwortet",open:"Freundschaft wurde angefragt",denied:"Freundschaftsanfrage abgelehnt",withdrawn:"Freundschaftsanfrage zurückgezogen",accepted:"Befreundet"},added:"Du hast eine Freundschaftsanfrage gestellt.",withdrawn:"Du hast Deine Freundschaftsanfrage zurückgezogen.",denied:"Du hast die Freundschaftsanfrage abgelehnt.",accepted:"Die Freundschaft wurde geschlossen."}},Qie={socialnetwork:Zie},ere={title:"Freunde",tabs:{existing:"Bestehende",rejected:"Abgelehnte",pending:"Ausstehende",requested:"Angefragte"},actions:{end:"Beenden",accept:"Annehmen",reject:"Ablehnen",withdraw:"Zurückziehen"},headers:{name:"Name",age:"Alter",gender:"Geschlecht",actions:"Aktionen"}},tre={friends:ere},nre=JSON.parse('{"statusbar":{"age":"Alter","wealth":"Vermögen","health":"Gesundheit","events":"Ereignisse","relationship":"Beziehung","children":"Kinder","children_unbaptised":"ungetaufte Kinder"},"messages":{"title":"Nachrichten","tooltip":"Nachrichten","empty":"Keine Nachrichten vorhanden."},"health":{"amazing":"Super","good":"Gut","normal":"Normal","bad":"Schlecht","very_bad":"Sehr schlecht"},"create":{"title":"Am Spiel teilnehmen","gender":"Geschlecht","male":"Mann","female":"Frau","firstname":"Vorname","lastname":"Nachname","random":"Zufällig","submit":"Teilnehmen"},"overview":{"title":"Falukant - Übersicht","metadata":{"title":"Persönliches","name":"Name","money":"Vermögen","age":"Alter","mainbranch":"Heimatstadt","nobleTitle":"Stand"},"productions":{"title":"Produktionen"},"stock":{"title":"Lager"},"branches":{"title":"Filialen","level":{"production":"Produktion","store":"Verkauf","fullstack":"Produktion mit Verkauf"}}},"titles":{"male":{"noncivil":"Leibeigener","civil":"Freier Bürger","sir":"Herr","townlord":"Stadtherr","by":"von","landlord":"Landherr","knight":"Ritter","baron":"Baron","count":"Graf","palsgrave":"Pfalzgraf","margrave":"Markgraf","landgrave":"Landgraf","ruler":"Fürst","elector":"Kurfürst","imperial-prince":"Reichsfürst","duke":"Herzog","grand-duke":"Großherzog","prince-regent":"Prinzregent","king":"König"},"female":{"noncivil":"Leibeigene","civil":"Freie Bürgerin","sir":"Frau","townlord":"Stadtherrin","by":"zu","landlord":"Landherrin","knight":"Freifrau","baron":"Baronin","count":"Gräfin","palsgrave":"Pfalzgräfin","margrave":"Markgräfin","landgrave":"Landgräfin","ruler":"Fürstin","elector":"Kurfürstin","imperial-prince":"Reichsfürstin","duke":"Herzogin","grand-duke":"Großherzogin","prince-regent":"Prinzregentin","king":"Königin"}},"branch":{"title":"Filiale","selection":{"title":"Niederlassungsauswahl","selected":"Ausgewählte Niederlassung","placeholder":"Noch keine Niederlassung ausgewählt","selectedcity":"Ausgewählte Stadt"},"actions":{"create":"Neue Niederlassung erstellen","upgrade":"Aktuelle Niederlassung aufwerten","createAlert":"Neue Niederlassung wird erstellt.","upgradeAlert":"Die Niederlassung mit der ID {branchId} wird aufgewertet."},"director":{"title":"Direktor-Infos","info":"Informationen über den Direktor der Niederlassung.","actions":{"new":"Direktor einstellen"},"name":"Name","salary":"Gehalt","satisfaction":"Zufriedenheit","fire":"Feuern","teach":"Weiterbilden","produce":"Darf produzieren","sell":"Darf verkaufen","starttransport":"Darf Transporte veranlassen"},"sale":{"title":"Inventar","info":"Hier finden Sie eine Übersicht über die vorhandenen Produkte in der Filiale.","region":"Region","product":"Produkt","quality":"Qualität","quantity":"Menge","noInventory":"Kein Inventar verfügbar.","loadError":"Fehler beim Laden des Inventars.","sell":"Verkauf","sellButton":"Verkaufen","sellAllButton":"Alles verkaufen"},"production":{"title":"Produktion","info":"Details zur Produktion in der Niederlassung.","selectProduct":"Produkt auswählen","quantity":"Menge","cost":"Kosten","duration":"Dauer","revenue":"Erlös","start":"Produktion starten","success":"Produktion erfolgreich gestartet!","error":"Fehler beim Starten der Produktion.","minutes":"Minuten","ending":"Abgeschlossen:","time":"Uhr","current":"Laufende Produktionen","product":"Produkt","remainingTime":"Verbleibende Zeit (Sekunden)","noProductions":"Keine laufenden Produktionen."},"columns":{"city":"Stadt","type":"Typ"},"types":{"production":"Produktion","store":"Verkauf","fullstack":"Produktion mit Verkauf"},"revenue":{"title":"Produkt-Erträge","product":"Produkt","absolute":"Erlös (absolut)","perMinute":"Erlös pro Minute","expand":"Erträge anzeigen","collapse":"Erträge ausblenden","knowledge":"Produktwissen","profitAbsolute":"Gesamtgewinn","profitPerMinute":"Gewinn pro Minute"},"storage":{"title":"Lager","currentCapacity":"Verwendetes Lager","stockType":"Lagerart","totalCapacity":"Vorhanden","used":"Verwendet","availableToBuy":"Zum Kauf verfügbar","buyAmount":"Größe","buyStorageButton":"Kaufen","sellAmount":"Größe","sellStorageButton":"Verkaufen","selectStockType":"Lagertyp auswählen","costPerUnit":"Kosten pro Einheit","buycost":"Kosten","sellincome":"Einnahmen"},"stocktype":{"wood":"Holzlager","stone":"Steinlager","iron":"Eisenlager","field":"Feldlager"}},"family":{"title":"Familie","spouse":{"title":"Beziehung","name":"Name","age":"Alter","status":"Status","none":"Kein Ehepartner vorhanden.","search":"Ehepartner suchen","found":"Ehepartner gefunden","select":"Verloben mit","marriagecost":"Verlobungskosten","notice":"Hinweis. Die beiden Ehepartner bekommen beide den Titel, der höher ist.","accept":"Werbung mit diesem Partner starten","wooing":{"gifts":"Werbegeschenke","sendGift":"Werbegeschenk senden","gift":"Geschenk","value":"Kosten","effect":"Wirkung"},"giftAffect":{"0":"Keiner","1":"Sehr niedrig","2":"Niedrig","3":"Mittel","4":"Hoch","5":"Sehr hoch"},"mood":"Stimmung","progress":"Zuneigung","jumpToPartyForm":"Hochzeitsfeier veranstalten (Nötig für Hochzeit und Kinder)"},"relationships":{"name":"Name"},"children":{"title":"Kinder","name":"Name","age":"Alter","actions":"Aktionen","none":"Keine Kinder vorhanden.","detailButton":"Details anzeigen","addChild":"Kind hinzufügen","baptism":"Taufen"},"lovers":{"title":"Liebhaber","none":"Keine Liebhaber vorhanden.","affection":"Zuneigung"},"statuses":{"wooing":"In Werbung","engaged":"Verlobt","married":"Verheiratet","single":"Ledig","widowed":"Verwitwet"},"actions":{"addSpouse":"Ehepartner hinzufügen","viewDetails":"Details anzeigen","remove":"Entfernen"},"sendgift":{"error":{"nogiftselected":"Bitte wähle ein Geschenk aus.","generic":"Ein unbekannter Fehler ist aufgetreten.","tooOften":"Du kannst nicht so oft Geschenke machen.","insufficientFunds":"Du hast nicht genug Geld."},"success":"Das Geschenk wurde überreicht."}},"product":{"wheat":"Weizen","grain":"Getreide","carrot":"Karotte","fish":"Fisch","meat":"Fleisch","leather":"Leder","wood":"Holz","stone":"Stein","milk":"Milch","cheese":"Käse","bread":"Brot","beer":"Bier","iron":"Eisen","copper":"Kupfer","spices":"Gewürze","salt":"Salz","sugar":"Zucker","vinegar":"Essig","cotton":"Baumwolle","wine":"Wein","gold":"Gold","diamond":"Diamant","furniture":"Möbel","clothing":"Kleidung","jewelry":"Schmuck","painting":"Gemälde","book":"Buch","weapon":"Waffe","armor":"Rüstung","shield":"Schild","horse":"Pferd","ox":"Ochse"},"regionType":{"city":"Stadt"},"moneyHistory":{"title":"Geldhistorie","filter":"Filter","search":"Filter setzen","activity":"Aktivität","moneyBefore":"Geld vor der Transaktion","moneyAfter":"Geld nach der Transaktion","changeValue":"Wertänderung","time":"Zeit","activities":{"Product sale":"Produkte verkauft","Production cost":"Produktionskosten","Sell all products":"Alle Produkte verkauft","sell products":"Produkte verkauft","director starts production":"Direktor beginnt Produktion","Buy storage (type: field)":"Lagerplatz gekauft (Typ: Feld)","Buy storage (type: iron)":"Lagerplatz gekauft (Typ: Eisen)","Buy storage (type: stone)":"Lagerplatz gekauft (Typ: Stein)","Buy storage (type: wood)":"Lagerplatz gekauft (Typ: Holz)"}},"newdirector":{"title":"Neuer Direktor","age":"Alter","salary":"Gehalt","skills":"Wissen","product":"Produkt","knowledge":"Produktwissen","hire":"Einstellen"},"skillKnowledges":{"excelent":"Exzellent","veryhigh":"Sehr gut","high":"Gut","medium":"Mittel","low":"Schlecht","verylow":"Sehr schlecht","none":"Kein Wissen"},"gifts":{"Gold Coin":"Goldmünze","Silk Scarf":"Seidenschale","Exotic Perfume":"Exotisches Parfum","Crystal Pendant":"Kristallanhänger","Leather Journal":"Lederjournal","Fine Wine":"Feiner Wein","Artisan Chocolate":"Kunsthandwerkliche Schokolade","Pearl Necklace":"Perlenanhänger","Rare Painting":"Seltenes Gemälde","Silver Watch":"Silberuhr","Cat":"Katze","Dog":"Hund","Horse":"Pferd"},"mood":{"happy":"Glücklich","sad":"Traurig","angry":"Wütend","nervous":"Nervös","excited":"Aufgeregt","bored":"Gelangweilt","fearful":"Ängstlich","confident":"Selbstbewusst","curious":"Neugierig","hopeful":"Hoffnungsvoll","frustrated":"Frustriert","lonely":"Einsam","grateful":"Dankbar","jealous":"Eifersüchtig","guilty":"Schuldig","apathetic":"Apathisch","relieved":"Erleichtert","proud":"Stolz","ashamed":"Beschämt"},"character":{"brave":"Mutig","kind":"Freundlich","greedy":"Gierig","wise":"Weise","loyal":"Loyal","cunning":"Listig","generous":"Großzügig","arrogant":"Arrogant","honest":"Ehrlich","ambitious":"Ehrgeizig","patient":"Geduldig","impatient":"Ungeduldig","selfish":"Egoistisch","charismatic":"Charismatisch","empathetic":"Einfühlsam","timid":"Schüchtern","stubborn":"Stur","resourceful":"Einfallsreich","reckless":"Rücksichtslos","disciplined":"Diszipliniert","optimistic":"Optimistisch","pessimistic":"Pessimistisch","manipulative":"Manipulativ","independent":"Unabhängig","dependent":"Abhängig","adventurous":"Abenteuerlustig","humble":"Bescheiden","vengeful":"Rachsüchtig","pragmatic":"Pragmatisch","idealistic":"Idealistisch"},"house":{"title":"Haus","statusreport":"Zustand des Hauses","element":"Bereich","state":"Zustand","buyablehouses":"Kaufe ein Haus","buy":"Kaufen","price":"Kaufpreis","worth":"Restwert","sell":"Verkaufen","renovate":"Renovieren","renovateAll":"Komplett renovieren","status":{"roofCondition":"Dach","wallCondition":"Wände","floorCondition":"Böden","windowCondition":"Fenster"},"type":{"backyard_room":"Hinterhofzimmer","wooden_house":"Holzhütte","straw_hut":"Strohhütte","family_house":"Familienhaus"}},"nobility":{"title":"Sozialstatus","tabs":{"overview":"Übersicht","advance":"Erweitern"},"nextTitle":"Nächster möglicher Titel","requirement":{"money":"Vermögen mindestens {amount}","cost":"Kosten: {amount}","branches":"Mindestens {amount} Niederlassungen"},"advance":{"confirm":"Aufsteigen beantragen"}},"reputation":{"title":"Reputation","overview":{"title":"Übersicht"},"party":{"title":"Feste","totalCost":"Gesamtkosten","order":"Fest veranstalten","inProgress":"Feste in Vorbereitung","completed":"Abgeschlossene Feste","newpartyview":{"open":"Neues Fest erstellen","close":"Neues Fest verbergen","type":"Art des Festes"},"music":{"label":"Musik","none":"Ohne Musik","bard":"Ein Barde","villageBand":"Eine Dorfkapelle","chamberOrchestra":"Ein Kammerorchester","symphonyOrchestra":"Ein Sinfonieorchester","symphonyOrchestraWithChorusAndSolists":"Ein Sinfonieorchester mit Chor und Solisten"},"banquette":{"label":"Essen","bread":"Brot","roastWithBeer":"Rostbraten mit Bier","poultryWithVegetablesAndWine":"Geflügel mit Gemüse und Wein","extensiveBuffet":"Festliches Essen"},"servants":{"label":"Ein Bediensteter pro ","perPersons":" Personen"},"esteemedInvites":{"label":"Eingeladene Stände"},"type":"Festart","cost":"Kosten","date":"Datum"}},"party":{"type":{"ball":"Ball","wedding":"Hochzeit","royal feast":"Königliches Bankett","town fair":"Stadtmarkt"}},"church":{"title":"Kirche","baptism":{"title":"Taufen","table":{"name":"Vorname","gender":"Geschlecht","age":"Alter","baptise":"Taufen (50)","newName":"Namen vorschlagen"},"gender":{"male":"Junge","female":"Mädchen"},"success":"Das Kind wurde getauft.","error":"Das Kind konnte nicht getauft werden."}},"education":{"title":"Bildung","self":{"title":"Eigene Bildung"},"children":{"title":"Kinderbildung"},"director":{"title":"Direktoren-Ausbildung"},"table":{"article":"Produkt","knowledge":"Wissen","activity":"Aktivität"},"learn":"Weiterbilden","learnAll":"In allem weiterbilden"},"bank":{"title":"Bank","account":{"title":"Kontostand","balance":"Kontostand","totalDebt":"Ausstände","maxCredit":"Maximaler Kredit","availableCredit":"Verfügbarer Kredit"},"credits":{"title":"Kredite","none":"Derzeit hast Du keinen Kredit aufgenommen.","amount":"Betrag","remaining":"Verbleibend","interestRate":"Zinssatz","table":{"name":"Name","amount":"Betrag","reason":"Grund","date":"Datum"},"payoff":{"title":"Neuen Kredit aufnehmen","height":"Kredithöhe","remaining":"Verbleibende mögliche Kredithöhe","fee":"Kreditzins","feeHeight":"Rate (a 10 Raten)","total":"Gesamtsumme","confirm":"Kredit aufnehmen"}}},"director":{"title":"Direktoren","branch":"Niederlassung","income":"Einkommen","satisfaction":"Zufriedenheit","name":"Name","age":"Alter","knowledge":{"title":"Wissen","knowledge":"Wissen"},"product":"Produkt","updateButton":"Gehalt aktualisieren","wishedIncome":"Gewünschtes Einkommen"},"healthview":{"title":"Gesundheit","age":"Alter","status":"Gesundheitszustand","measuresTaken":"Ergriffene Maßnahmen","measure":"Maßnahme","date":"Datum","cost":"Kosten","success":"Erfolg","selectMeasure":"Maßnahme","perform":"Durchführen","measures":{"pill":"Tablette","doctor":"Arztbesuch","witch":"Hexe","drunkOfLife":"Trunk des Lebens","barber":"Barbier"},"choose":"Bitte auswählen"},"politics":{"title":"Politik","tabs":{"current":"Aktuelle Position","upcoming":"Anstehende Neuwahl-Positionen","elections":"Wahlen"},"current":{"office":"Amt","region":"Region","termEnds":"Läuft ab am","income":"Einkommen","none":"Keine aktuelle Position vorhanden.","holder":"Inhaber"},"open":{"office":"Amt","region":"Region","date":"Datum","candidacy":"Kandidatur","none":"Keine offenen Positionen."},"upcoming":{"office":"Amt","region":"Region","postDate":"Datum","none":"Keine anstehenden Positionen."},"elections":{"office":"Amt","region":"Region","date":"Datum","posts":"Zu besetzende Posten","none":"Keine Wahlen vorhanden.","choose":"Kandidaten","vote":"Stimme abgeben","voteAll":"Alle Stimmen abgeben","candidates":"Kandidaten","action":"Aktion"},"offices":{"chancellor":"Kanzler","minister":"Minister","ministry-helper":"Ministerhelfer","governor":"Gouverneur","super-state-administrator":"Oberstaatsverwalter","state-administrator":"Staatsverwalter","ruler-consultant":"Berater des Herrschers","territorial-council-speaker":"Sprecher des Territorialrats","territorial-council":"Territorialrat","hangman":"Henker","treasurer":"Schatzmeister","sheriff":"Sheriff","taxman":"Steuereintreiber","bailif":"Gerichtsdiener","judge":"Richter","village-major":"Dorfvorsteher","master-builder":"Baumeister","mayor":"Bürgermeister","town-clerk":"Stadtschreiber","beadle":"Schulze","council":"Ratsherr","councillor":"Stadtrat","assessor":"Schätzer"}},"underground":{"title":"Untergrund","tabs":{"activities":"Aktivitäten","attacks":"Angriffe"},"activities":{"none":"Keine Aktivitäten vorhanden.","create":"Neue Aktivität erstellen","type":"Aktivitätstyp","victim":"Zielperson","cost":"Kosten","additionalInfo":"Zusätzliche Informationen","victimPlaceholder":"Benutzername eingeben","sabotageTarget":"Sabotageziel","corruptGoal":"Ziel der Korruption"},"attacks":{"target":"Angreifer","date":"Datum","success":"Erfolg","none":"Keine Angriffe aufgezeichnet."},"types":{"spyin":"Spionage","assassin":"Attentat","sabotage":"Sabotage","corrupt_politician":"Korruption","rob":"Raub"},"targets":{"house":"Wohnhaus","storage":"Lager"},"goals":{"elect":"Amtseinsetzung","taxIncrease":"Steuern erhöhen","taxDecrease":"Steuern senken"}}}'),ire={falukant:nre},rre={title:"Passwort zurücksetzen",email:"E-Mail",reset:"Zurücksetzen",success:"Falls die E-Mail existiert, wurde eine Anleitung zum Zurücksetzen gesendet.",failure:"Passwort-Zurücksetzen fehlgeschlagen. Bitte später erneut versuchen."},sre={passwordReset:rre},are={posts:"Beiträge",noPosts:"Keine Beiträge.",newPost:"Neuen Beitrag verfassen",title:"Titel",publish:"Veröffentlichen",pickImage:"Bild auswählen",uploadImage:"Bild hochladen"},ore={blog:are},lre={title:"Minispiele",description:"Entdecke eine Sammlung unterhaltsamer Minispiele!",play:"Spielen",backToGames:"Zurück zu den Spielen",comingSoon:{title:"Bald verfügbar",description:"Weitere spannende Spiele sind in Entwicklung!"},match3:{title:"Match 3 - Juwelen Kampagne",description:"Verbinde drei oder mehr gleiche Juwelen, um Punkte zu sammeln!",campaignDescription:"Spiele durch alle Level und sammle Sterne!",gameStats:"Spiel-Statistiken",score:"Punkte",moves:"Züge",currentLevel:"Aktueller Level",level:"Level",stars:"Sterne",movesLeft:"Verbleibende Züge",restartLevel:"Level neu starten",pause:"Pause",resume:"Weiterspielen",paused:"Spiel pausiert",levelComplete:"Level abgeschlossen!",levelScore:"Level-Punktzahl",movesUsed:"Verwendete Züge",starsEarned:"Erhaltene Sterne",nextLevel:"Nächster Level",campaignComplete:"Kampagne abgeschlossen!",totalScore:"Gesamtpunktzahl",totalStars:"Gesamtsterne",levelsCompleted:"Abgeschlossene Level",restartCampaign:"Kampagne neu starten"}},ure={minigames:lre},cre={en:{...Hne,...Kne,...Jne,...Zne,...eie,...tie,...hie,...iie,...rie,...sie,...oie,...lie,...uie,...die,...gie,...vie},de:{Ok:"Ok",...Pie,...Vie,...Nie,...Fie,...zie,...Wie,...sre,...jie,...qie,...Yie,...Xie,...Qie,...tre,...ire,...ore,...ure}},dre=lj({locale:Ti.state.language,fallbackLocale:"de",messages:cre}),fre={name:"AppNavigation",components:{RandomChatDialog:Up,MultiChatDialog:NE},data(){return{forumList:[],friendsList:[]}},computed:{...Rn(["menu","user","menuNeedsUpdate","socket"])},watch:{menuNeedsUpdate(e){e&&this.loadMenu()},socket(e){e&&(e.on("forumschanged",this.fetchForums),e.on("friendloginchanged",this.fetchFriends),e.on("reloadmenu",this.loadMenu))}},created(){var e;(e=this.user)!=null&&e.id&&(this.loadMenu(),this.fetchForums(),this.fetchFriends())},beforeUnmount(){const e=this.socket;e&&(e.off("forumschanged"),e.off("friendloginchanged"),e.off("reloadmenu"))},methods:{...il(["loadMenu","logout"]),openMultiChat(){var n;const e=[{id:1,title:"Allgemein"},{id:2,title:"Rollenspiel"}],t=this.$root.$refs.multiChatDialog;t&&typeof t.open=="function"?t.open(e):(n=t==null?void 0:t.$refs)!=null&&n.dialog&&typeof t.$refs.dialog.open=="function"?t.$refs.dialog.open():console.error("MultiChatDialog nicht bereit oder ohne open()")},async fetchForums(){try{const e=await X.get("/api/forum");this.forumList=e.data}catch(e){console.error("Error fetching forums:",e)}},async fetchFriends(){try{const e=await X.get("/api/socialnetwork/friends/loggedin");this.friendsList=e.data}catch(e){console.error("Error fetching friends:",e)}},openForum(e){this.$router.push({name:"Forum",params:{id:e}})},openProfile(e){this.$root.$refs.userProfileDialog.userId=e,this.$root.$refs.userProfileDialog.open()},openChat(e){console.log("openChat:",e);const t=document.createElement("div");document.body.appendChild(t)},handleItem(e,t){var n;if(t.stopPropagation(),!e.children){if(e.view){const i=this.$root.$refs[e.class];if(!i){console.error(`Dialog-Ref '${e.class}' nicht gefunden! Bitte prüfe Ref und Menü-Konfiguration.`);return}typeof i.open=="function"?i.open():(n=i.$refs)!=null&&n.dialog&&typeof i.$refs.dialog.open=="function"?i.$refs.dialog.open():console.error(`Dialog '${e.class}' gefunden, aber keine open()-Methode verfügbar.`);return}if(e.action&&typeof this[e.action]=="function")return this[e.action](e.params,t);e.path&&this.$router.push(e.path)}}}},hre=["onClick"],mre={key:1,class:"submenu1"},gre=["onClick"],pre={key:1,class:"subsubmenu"},vre={key:2,class:"submenu2"},yre=["onClick"],bre={key:3,class:"submenu2"},kre=["onClick"],wre=["onClick"],Sre={class:"submenu2"},_re=["onClick"],Cre=["onClick"],Tre={class:"right-block"},Ere={class:"logoutblock"},Ire={class:"username"};function Are(e,t,n,i,r,s){return S(),_("nav",null,[d("ul",null,[(S(!0),_(U,null,we(e.menu,(a,o)=>(S(),_("li",{key:o,class:"mainmenuitem",onClick:l=>s.handleItem(a,l)},[a.icon?(S(),_("span",{key:0,style:ft(`background-image:url('/images/icons/${a.icon}')`),class:"menu-icon"}," ",4)):te("",!0),d("span",null,p(e.$t(`navigation.${o}`)),1),a.children?(S(),_("ul",mre,[(S(!0),_(U,null,we(a.children,(l,u)=>(S(),_("li",{key:u,onClick:c=>s.handleItem(l,c)},[l.icon?(S(),_("span",{key:0,style:ft(`background-image:url('/images/icons/${l.icon}')`),class:"submenu-icon"}," ",4)):te("",!0),d("span",null,p(e.$t(`navigation.m-${o}.${u}`)),1),u==="forum"||l.children?(S(),_("span",pre,"▶")):te("",!0),u==="forum"&&r.forumList.length?(S(),_("ul",vre,[(S(!0),_(U,null,we(r.forumList,c=>(S(),_("li",{key:c.id,onClick:f=>s.handleItem({action:"openForum",params:c.id},f)},p(c.name),9,yre))),128))])):l.children?(S(),_("ul",bre,[(S(!0),_(U,null,we(l.children,(c,f)=>(S(),_("li",{key:f,onClick:h=>s.handleItem(c,h)},[c.icon?(S(),_("span",{key:0,style:ft(`background-image:url('/images/icons/${c.icon}')`),class:"submenu-icon"}," ",4)):te("",!0),d("span",null,p(e.$t(`navigation.m-${o}.m-${u}.${f}`)),1)],8,kre))),128))])):te("",!0)],8,gre))),128)),a.showLoggedinFriends===1&&r.friendsList.length?(S(!0),_(U,{key:0},we(r.friendsList,l=>(S(),_("li",{key:l.id,onClick:u=>s.handleItem({action:"openChat",params:l.id},u)},[ge(p(l.username)+" ",1),d("ul",Sre,[d("li",{onClick:u=>s.handleItem({action:"openChat",params:l.id},u)},p(e.$t("navigation.m-friends.chat")),9,_re),d("li",{onClick:u=>s.handleItem({action:"openProfile",params:l.id},u)},p(e.$t("navigation.m-friends.profile")),9,Cre)])],8,wre))),128)):te("",!0)])):te("",!0)],8,hre))),128))]),d("div",Tre,[d("span",{onClick:t[0]||(t[0]=(...a)=>e.accessMailbox&&e.accessMailbox(...a)),class:"mailbox"}),d("span",Ere,[d("span",Ire,p(e.user.username),1),d("span",{onClick:t[1]||(t[1]=(...a)=>e.logout&&e.logout(...a)),class:"menuitem"},p(e.$t("navigation.logout")),1)])])])}const xre=Oe(fre,[["render",Are],["__scopeId","data-v-084416b1"]]),Dre={name:"AppContent"};function Pre(e,t,n,i,r,s){const a=be("router-view");return S(),_("main",null,[v(a)])}const Ore=Oe(Dre,[["render",Pre],["__scopeId","data-v-a1ead8d1"]]),Mre="/images/icons/logo_color.png",$re={name:"AppFooter",components:{},computed:{...Rn("dialogs",["openDialogs"]),...or(["daemonSocket"])},mounted(){this.daemonSocket&&this.daemonSocket.addEventListener&&this.daemonSocket.addEventListener("workerStatus",this.handleDaemonMessage)},beforeUnmount(){this.daemonSocket&&this.daemonSocket.removeEventListener&&this.daemonSocket.removeEventListener("workerStatus",this.handleDaemonMessage)},methods:{openImprintDialog(){this.$root.$refs.imprintDialog.open()},openDataPrivacyDialog(){this.$root.$refs.dataPrivacyDialog.open()},openContactDialog(){this.$root.$refs.contactDialog.open()},toggleDialogMinimize(e){this.$store.dispatch("dialogs/toggleDialogMinimize",e)},async showFalukantDaemonStatus(){this.daemonSocket&&this.daemonSocket.send&&this.daemonSocket.send('{"event": "getWorkerStatus"}')},handleDaemonMessage(e){JSON.parse(e.data),console.log(e)}}},Vre=e=>(Cn("data-v-f464d1e8"),e=e(),Tn(),e),Lre=Vre(()=>d("img",{src:Mre},null,-1)),Nre=[Lre],Rre={class:"window-bar"},Fre=["onClick","title"],Bre=["src"],zre={class:"button-text"},Ure={class:"static-block"};function Wre(e,t,n,i,r,s){return S(),_("footer",null,[d("div",{class:"logo",onClick:t[0]||(t[0]=(...a)=>s.showFalukantDaemonStatus&&s.showFalukantDaemonStatus(...a))},Nre),d("div",Rre,[(S(!0),_(U,null,we(e.openDialogs,a=>(S(),_("button",{key:a.dialog.name,class:"dialog-button",onClick:o=>s.toggleDialogMinimize(a.dialog.name),title:a.dialog.localTitle},[a.dialog.icon?(S(),_("img",{key:0,src:"/images/icons/"+a.dialog.icon},null,8,Bre)):te("",!0),d("span",zre,p(a.dialog.isTitleTranslated?e.$t(a.dialog.localTitle):a.dialog.localTitle),1)],8,Fre))),128))]),d("div",Ure,[d("a",{href:"#",onClick:t[1]||(t[1]=ut((...a)=>s.openImprintDialog&&s.openImprintDialog(...a),["prevent"]))},p(e.$t("imprint.button")),1),d("a",{href:"#",onClick:t[2]||(t[2]=ut((...a)=>s.openDataPrivacyDialog&&s.openDataPrivacyDialog(...a),["prevent"]))},p(e.$t("dataPrivacy.button")),1),d("a",{href:"#",onClick:t[3]||(t[3]=ut((...a)=>s.openContactDialog&&s.openContactDialog(...a),["prevent"]))},p(e.$t("contact.button")),1)])])}const Hre=Oe($re,[["render",Wre],["__scopeId","data-v-f464d1e8"]]),jre={name:"AnswerContact",components:{DialogWidget:hn,EditorContent:Uu},data(){return{dialog:null,errorDialog:null,contact:null,errorMessage:"",editor:null,buttons:[{text:"OK",action:this.sendAnswer},{text:"Cancel",action:this.closeDialog}],errorButtons:[{text:"OK",action:this.closeErrorDialog}]}},methods:{open(e){this.contact=e,this.dialog.open(),this.editor&&this.editor.commands.setContent("")},closeDialog(){this.dialog.close(),this.editor&&this.editor.commands.clearContent()},closeErrorDialog(){this.errorDialog.close()},async sendAnswer(){var t,n;const e=this.editor?this.editor.getHTML():"";try{await X.post("/api/admin/contacts/answer",{id:this.contact.id,answer:e}),this.dialog.close(),this.$emit("refresh"),this.editor&&this.editor.commands.clearContent()}catch(i){const r=((n=(t=i.response)==null?void 0:t.data)==null?void 0:n.error)||"An unexpected error occurred.";this.errorMessage=r,this.errorDialog.open()}}},mounted(){this.dialog=this.$refs.dialog,this.errorDialog=this.$refs.errorDialog,this.editor=new zu({extensions:[Wu],content:""})},beforeUnmount(){this.editor&&this.editor.destroy()}},Gre={class:"contact-details"},qre={class:"editor-container"};function Kre(e,t,n,i,r,s){const a=be("EditorContent"),o=be("DialogWidget");return S(),_(U,null,[v(o,{ref:"dialog",title:e.$t("admin.editcontactrequest.title"),"show-close":!0,buttons:r.buttons,onClose:s.closeDialog,name:"AnswerContact",modal:!0,isTitleTranslated:!0},{default:ze(()=>[d("div",Gre,[d("h3",null,"Von: "+p(r.contact.email),1),d("p",null,p(r.contact.message),1)]),d("div",qre,[v(a,{editor:r.editor,class:"editor"},null,8,["editor"])])]),_:1},8,["title","buttons","onClose"]),v(o,{ref:"errorDialog",title:e.$t("error.title"),"show-close":!0,buttons:r.errorButtons,onClose:s.closeErrorDialog,name:"ErrorDialog",modal:!0,isTitleTranslated:!1},{default:ze(()=>[d("div",null,[d("p",null,p(r.errorMessage),1)])]),_:1},8,["title","buttons","onClose"])],64)}const Yre=Oe(jre,[["render",Kre],["__scopeId","data-v-37f3279d"]]),Jre={name:"CreateFolderDialog",components:{DialogWidget:hn,Multiselect:is},data(){return{folderTitle:"",visibilityOptions:[],selectedVisibility:[],parentFolder:{id:null,name:""},folderId:0}},computed:{...Rn(["isLoggedIn"]),buttons(){return[{text:this.$t("socialnetwork.gallery.create_folder"),action:this.createFolder}]}},async mounted(){await this.loadVisibilityOptions()},methods:{open(e=null){e?(this.folderTitle=e.name,this.selectedVisibility=this.visibilityOptions.filter(t=>e.visibilityTypeIds.includes(t.id))):(this.folderTitle="",this.selectedVisibility=[]),this.$refs.dialog.open()},async loadVisibilityOptions(){try{const e=await X.get("/api/socialnetwork/imagevisibilities");this.visibilityOptions=e.data,this.selectedVisibility.length&&(this.selectedVisibility=this.visibilityOptions.filter(t=>this.selectedVisibility.map(n=>n.id).includes(t.id)))}catch{}},async createFolder(){if(!this.folderTitle||!this.selectedVisibility.length){alert(this.$t("socialnetwork.gallery.errors.missing_fields"));return}const e={name:this.folderTitle,parentId:this.parentFolder.id,visibilities:this.selectedVisibility.map(t=>t.id)};try{this.parentFolder.id?await X.post(`/api/socialnetwork/folders/${this.parentFolder.id}`,e):await X.post(`/api/socialnetwork/folders/${this.folderId}`,e),Bm.emit("folderCreated"),this.closeDialog()}catch(t){console.error("Fehler beim Erstellen/Bearbeiten des Ordners:",t)}},closeDialog(){this.$refs.dialog.close()}}},Xre={class:"form-group"},Zre=["value"],Qre={class:"form-group"},ese={for:"folderTitle"},tse=["placeholder"],nse={class:"form-group"},ise={for:"visibility"},rse={key:0},sse={key:0,class:"multiselect__tag"},ase=["onClick"];function ose(e,t,n,i,r,s){const a=be("multiselect"),o=be("DialogWidget");return S(),He(o,{ref:"dialog",title:"socialnetwork.gallery.create_folder_dialog.title",icon:"folder16.png","show-close":!0,buttons:s.buttons,modal:!0,isTitleTranslated:!0,onClose:s.closeDialog,name:"CreateFolderDialog"},{default:ze(()=>[d("div",null,[d("div",Xre,[d("label",null,p(e.$t("socialnetwork.gallery.create_folder_dialog.parent_folder")),1),d("input",{type:"text",value:r.parentFolder.name,disabled:""},null,8,Zre)]),d("div",Qre,[d("label",ese,p(e.$t("socialnetwork.gallery.create_folder_dialog.folder_title")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>r.folderTitle=l),placeholder:e.$t("socialnetwork.gallery.create_folder_dialog.folder_title"),required:""},null,8,tse),[[Le,r.folderTitle]])]),d("div",nse,[d("label",ise,p(e.$t("socialnetwork.gallery.create_folder_dialog.visibility")),1),v(a,{modelValue:r.selectedVisibility,"onUpdate:modelValue":t[1]||(t[1]=l=>r.selectedVisibility=l),options:r.visibilityOptions,multiple:!0,label:"description","track-by":"id","close-on-select":!1,placeholder:e.$t("socialnetwork.gallery.create_folder_dialog.select_visibility")},{option:ze(({option:l})=>[l&&l.description?(S(),_("span",rse,p(e.$t(`socialnetwork.gallery.visibility.${l.description}`)),1)):te("",!0)]),tag:ze(({option:l,remove:u})=>[l&&l.description?(S(),_("span",sse,[ge(p(e.$t(`socialnetwork.gallery.visibility.${l.description}`))+" ",1),d("span",{onClick:c=>u(l)},"×",8,ase)])):te("",!0)]),_:1},8,["modelValue","options","placeholder"])])])]),_:1},8,["buttons","onClose"])}const lse=Oe(Jre,[["render",ose],["__scopeId","data-v-f19cb589"]]),use={name:"EditImageDialog",components:{DialogWidget:hn,Multiselect:is},data(){return{image:null,imageTitle:"",selectedVisibilities:[],visibilityOptions:[]}},computed:{buttons(){return[{text:this.$t("socialnetwork.gallery.imagedialog.save_changes"),action:this.saveChanges},{text:this.$t("socialnetwork.gallery.imagedialog.close"),action:this.closeDialog}]}},methods:{open(e){this.image=e,this.imageTitle=e.title,this.selectedVisibilities=e.visibilities||[],this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()},async saveChanges(){const e={...this.image,title:this.imageTitle,visibilities:this.selectedVisibilities};try{this.$emit("save",e),this.closeDialog()}catch(t){console.error("Error saving image changes:",t)}}}},cse={class:"image-container"},dse=["src"],fse={class:"form-group"},hse={for:"imageTitle"},mse={class:"form-group"},gse={for:"visibility"},pse={key:0},vse={key:0,class:"multiselect__tag"},yse=["onClick"];function bse(e,t,n,i,r,s){const a=be("multiselect"),o=be("DialogWidget");return S(),He(o,{ref:"dialog",title:"socialnetwork.gallery.edit_image_dialog.title",icon:"image16.png","show-close":!0,buttons:s.buttons,modal:!0,isTitleTranslated:!0,onClose:s.closeDialog,name:"EditImageDialog"},{default:ze(()=>[d("div",null,[d("div",cse,[d("img",{src:r.image.url,alt:"Image",style:{maxWidth:"600px",maxHeight:"600px"}},null,8,dse)]),d("div",fse,[d("label",hse,p(e.$t("socialnetwork.gallery.imagedialog.image_title")),1),ie(d("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>r.imageTitle=l)},null,512),[[Le,r.imageTitle]])]),d("div",mse,[d("label",gse,p(e.$t("socialnetwork.gallery.imagedialog.edit_visibility")),1),v(a,{modelValue:r.selectedVisibilities,"onUpdate:modelValue":t[1]||(t[1]=l=>r.selectedVisibilities=l),options:r.visibilityOptions,multiple:!0,label:"description","track-by":"id","close-on-select":!1,placeholder:e.$t("socialnetwork.gallery.imagedialog.edit_visibility_placeholder")},{option:ze(({option:l})=>[l&&l.description?(S(),_("span",pse,p(e.$t(`socialnetwork.gallery.visibility.${l.description}`)),1)):te("",!0)]),tag:ze(({option:l,remove:u})=>[l&&l.description?(S(),_("span",vse,[ge(p(e.$t(`socialnetwork.gallery.visibility.${l.description}`))+" ",1),d("span",{onClick:c=>u(l)},"×",8,yse)])):te("",!0)]),_:1},8,["modelValue","options","placeholder"])])])]),_:1},8,["buttons","onClose"])}const kse=Oe(use,[["render",bse],["__scopeId","data-v-66553cf9"]]),wse={name:"UserProfileDialog",components:{DialogWidget:hn,FolderItem:Q_,EditorContent:Uu},data(){return{isTitleTranslated:!0,userProfile:{},activeTab:"general",folders:[],images:[],userId:0,selectedFolder:null,newEntryContent:"",guestbookEntries:[],showInputSection:!1,imagePreview:null,selectedImage:null,currentPage:1,totalPages:1,tabs:[{name:"general",label:this.$t("socialnetwork.profile.tab.general")},{name:"images",label:this.$t("socialnetwork.profile.tab.images")},{name:"guestbook",label:this.$t("socialnetwork.profile.tab.guestbook")}],apiKey:"xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg",editor:null,hasSendFriendshipRequest:!1,friendshipState:"none"}},mounted:async function(){this.editor=new zu({extensions:[Wu],content:""})},beforeUnmount:function(){this.editor&&this.editor.destroy()},methods:{open(){this.$refs.dialog.open(),this.loadUserProfile()},async loadUserProfile(){try{const e=await X.get(`/api/socialnetwork/profile/main/${this.userId}`);this.userProfile=e.data,this.setFriendshipStatus(e.data.friendship);const t=this.$t("socialnetwork.profile.title").replace("<username>",this.userProfile.username);this.$refs.dialog.updateTitle(t,!1),this.activeTab==="images"&&await this.loadUserFolders()}catch(e){this.$refs.dialog.updateTitle("socialnetwork.profile.error_title",!0),console.error("Fehler beim Laden des Benutzerprofils:",e)}},async loadUserFolders(){try{const e=await X.get(`/api/socialnetwork/profile/images/folders/${this.userProfile.username}`);this.folders=e.data||[],this.selectFolder(this.folders)}catch(e){console.error("Fehler beim Laden der Ordner:",e)}},closeDialog(){this.$refs.dialog.close()},selectTab(e){this.activeTab=e,e==="images"?this.loadUserFolders():e==="guestbook"&&this.loadGuestbookEntries(1)},generateValue(e,t){if(Array.isArray(t.value)){const n=[];for(const i of t.value)n.push(this.generateValue(e,{type:t.type,value:i}));return n.join(", ")}switch(t.type){case"bool":return this.$t(`socialnetwork.profile.values.bool.${t.value}`);case"multiselect":case"singleselect":return this.$t(`socialnetwork.profile.values.${e}.${t.value}`);case"date":return new Date(t.value).toLocaleDateString();case"string":case"int":return t.value;case"float":return new Intl.NumberFormat(navigator.language,{minimumFractionDigits:2,maximumFractionDigits:2}).format(parseFloat(t.value));default:return t.value}},async selectFolder(e){this.selectedFolder=e,await this.loadImages(e.id)},async loadImages(e){try{const t=await X.get(`/api/socialnetwork/folder/${e}`);this.images=t.data.map(n=>({...n,placeholder:'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3C/svg%3E',url:null})),await this.fetchImages()}catch(t){console.error("Error loading images:",t)}},async fetchImages(){this.images.forEach(e=>{this.fetchImage(e)})},async fetchImage(e){const t=localStorage.getItem("userid");try{const n=await X.get(`/api/socialnetwork/image/${e.hash}`,{headers:{userid:t},responseType:"blob"});e.url=URL.createObjectURL(n.data)}catch(n){console.error("Error fetching image:",n)}},openImageDialog(e){this.$root.$refs.showImageDialog.open(e)},toggleInputSection(){this.showInputSection=!this.showInputSection},onFileChange(e){const t=e.target.files[0];if(t){this.selectedImage=t;const n=new FileReader;n.onload=i=>{this.imagePreview=i.target.result},n.readAsDataURL(t)}},async submitGuestbookEntry(){if(!this.newEntryContent)return alert(this.$t("socialnetwork.guestbook.emptyContent"));const e=new FormData;e.append("htmlContent",this.newEntryContent),e.append("recipientName",this.userProfile.username),this.selectedImage&&e.append("image",this.selectedImage);try{await X.post("/api/socialnetwork/guestbook/entries",e,{headers:{"Content-Type":"multipart/form-data"}}),this.newEntryContent="",this.selectedImage=null,this.imagePreview=null,await this.loadGuestbookEntries(1)}catch(t){console.error("Fehler beim Erstellen des Gästebucheintrags:",t)}},async loadGuestbookEntries(e){try{const t=await X.get(`/api/socialnetwork/guestbook/entries/${this.userProfile.username}/${e}`);this.guestbookEntries=t.data.entries,this.currentPage=t.data.currentPage,this.totalPages=t.data.totalPages,this.guestbookEntries.forEach(n=>{n.withImage&&this.fetchGuestbookImage(this.userProfile.username,n)})}catch(t){console.error("Fehler beim Laden der Gästebucheinträge:",t)}},async fetchGuestbookImage(e,t){try{const n=await X.get(`/api/socialnetwork/guestbook/image/${e}/${t.id}`,{responseType:"blob"});t.image={url:URL.createObjectURL(n.data)}}catch(n){console.error("Error fetching image:",n)}},async handleFriendship(){console.log(this.friendshipState),["none","withdrawn"].includes(this.friendshipState)?this.requestFriendship():this.friendshipState==="waiting"?this.cancelFriendship():this.friendshipState==="accepted"?this.cancelFriendship():this.friendshipState==="denied"&&this.acceptFriendship()},async requestFriendship(){try{const e=await X.post("/api/socialnetwork/friend",{friendUserid:this.userId});this.setFriendshipStatus(e.data),this.$root.$refs.messageDialog.open("tr:socialnetwork.friendship.added")}catch(e){this.$root.$refs.errorDialog.open(`tr:socialnetwork.friendship.error.${e.response.data.error}`)}},async cancelFriendship(){try{await X.delete(`/api/socialnetwork/friend/${this.userId}`),this.setFriendshipStatus(null);const e=this.friendshipState==="waiting"?"withdrawn":"denied";this.$root.$refs.messageDialog.open(`tr:socialnetwork.friendship.${e}`)}catch(e){this.$root.$refs.errorDialog.open(`tr:socialnetwork.friendship.error.${e.response.data.error}`)}},async acceptFriendship(){try{await X.put(`/api/socialnetwork/friend/${this.userId}`),this.setFriendshipStatus(null),this.$root.$refs.messageDialog.open("Freundschaftsanfrage akzeptiert")}catch(e){this.$root.$refs.errorDialog.open(`tr:socialnetwork.friendship.error.${e.response.data.error}`)}},setFriendshipStatus(e){if(!e){this.friendshipState="none";return}this.hasSendFriendshipRequest=e.isSender,e.accepted?this.friendshipState="accepted":e.denied?this.friendshipState="denied":e.withdrawn?this.friendshipState="withdrawn":e.isSender?this.friendshipState="waiting":this.friendshipState="open"},sanitizedContent(e){return qa.sanitize(e.contentHtml)}}},Sse={class:"activities"},_se=["src"],Cse={class:"profile-content"},Tse={class:"tab-list"},Ese=["onClick"],Ise={key:0,class:"tab-content"},Ase={key:1,class:"tab-content images-tab"},xse={key:0},Dse={key:1,class:"tree"},Pse={key:2,class:"image-list"},Ose=["onClick"],Mse=["src"],$se={key:2,class:"tab-content"},Vse={class:"guestbook-input-section"},Lse={key:0},Nse={class:"form-group"},Rse={for:"guestbookImage"},Fse={key:0,class:"image-preview"},Bse=["src"],zse={key:0},Use={key:1,class:"guestbook-entries"},Wse=["src"],Hse=["innerHTML"],jse={class:"entry-info"},Gse={class:"entry-timestamp"},qse={class:"entry-user"},Kse=["onClick"],Yse={class:"pagination"},Jse=["disabled"],Xse=["disabled"];function Zse(e,t,n,i,r,s){const a=be("folder-item"),o=be("EditorContent"),l=be("DialogWidget");return S(),He(l,{ref:"dialog",title:e.$t("socialnetwork.profile.pretitle"),isTitleTranslated:r.isTitleTranslated,"show-close":!0,buttons:[{text:"Ok",action:"close"}],modal:!1,onClose:s.closeDialog,height:"75%",name:"UserProfileDialog",display:"flex"},{default:ze(()=>[d("div",Sse,[d("span",null,p(e.$t(`socialnetwork.friendship.state.${r.friendshipState}`)),1),d("img",{src:"/images/icons/"+(["none","denied","withdrawn"].includes(r.friendshipState)?"request-friendship.png":"cancel-friendship.png"),onClick:t[0]||(t[0]=u=>s.handleFriendship())},null,8,_se)]),d("div",Cse,[d("div",null,[d("ul",Tse,[(S(!0),_(U,null,we(r.tabs,u=>(S(),_("li",{key:u.name,class:Dt({active:r.activeTab===u.name}),onClick:c=>s.selectTab(u.name)},p(u.label),11,Ese))),128))]),r.activeTab==="general"?(S(),_("div",Ise,[d("table",null,[(S(!0),_(U,null,we(r.userProfile.params,(u,c)=>(S(),_("tr",{key:c},[d("td",null,p(e.$t(`socialnetwork.profile.${c}`)),1),d("td",null,p(s.generateValue(c,u)),1)]))),128))])])):te("",!0),r.activeTab==="images"?(S(),_("div",Ase,[r.folders.length===0?(S(),_("div",xse,p(e.$t("socialnetwork.profile.noFolders")),1)):(S(),_("ul",Dse,[(S(!0),_(U,null,we([r.folders],u=>(S(),He(a,{key:u.id,folder:u,"selected-folder":r.selectedFolder,onSelectFolder:s.selectFolder,isLastItem:!0,depth:0,parentsWithChildren:[!1],noActionItems:!0},null,8,["folder","selected-folder","onSelectFolder"]))),128))])),r.images.length>0?(S(),_("ul",Pse,[(S(!0),_(U,null,we(r.images,u=>(S(),_("li",{key:u.id,onClick:c=>s.openImageDialog(u)},[d("img",{src:u.url||u.placeholder,alt:"Loading..."},null,8,Mse),d("p",null,p(u.title),1)],8,Ose))),128))])):te("",!0)])):te("",!0),r.activeTab==="guestbook"?(S(),_("div",$se,[d("div",Vse,[d("button",{onClick:t[1]||(t[1]=(...u)=>s.toggleInputSection&&s.toggleInputSection(...u))},p(r.showInputSection?e.$t("socialnetwork.profile.guestbook.hideInput"):e.$t("socialnetwork.profile.guestbook.showInput")),1),r.showInputSection?(S(),_("div",Lse,[d("div",Nse,[d("label",Rse,p(e.$t("socialnetwork.profile.guestbook.imageUpload")),1),d("input",{type:"file",onChange:t[2]||(t[2]=(...u)=>s.onFileChange&&s.onFileChange(...u)),accept:"image/*"},null,32),r.imagePreview?(S(),_("div",Fse,[d("img",{src:r.imagePreview,alt:"Image Preview",style:{"max-width":"100px","max-height":"100px"}},null,8,Bse)])):te("",!0),v(o,{editor:r.editor,class:"editor"},null,8,["editor"])]),d("button",{onClick:t[3]||(t[3]=(...u)=>s.submitGuestbookEntry&&s.submitGuestbookEntry(...u))},p(e.$t("socialnetwork.profile.guestbook.submit")),1)])):te("",!0)]),r.guestbookEntries.length===0?(S(),_("div",zse,p(e.$t("socialnetwork.profile.guestbook.noEntries")),1)):(S(),_("div",Use,[(S(!0),_(U,null,we(r.guestbookEntries,u=>(S(),_("div",{key:u.id,class:"guestbook-entry"},[u.image?(S(),_("img",{key:0,src:u.image.url,alt:"Entry Image",style:{"max-width":"400px","max-height":"400px"}},null,8,Wse)):te("",!0),d("p",{innerHTML:s.sanitizedContent(u)},null,8,Hse),d("div",jse,[d("span",Gse,p(new Date(u.createdAt).toLocaleString()),1),d("span",qse,[d("span",{onClick:c=>e.openProfile(u.senderUsername)},p(u.sender),9,Kse)])])]))),128)),d("div",Yse,[d("button",{onClick:t[4]||(t[4]=u=>s.loadGuestbookEntries(r.currentPage-1)),disabled:r.currentPage===1},p(e.$t("socialnetwork.guestbook.prevPage")),9,Jse),d("span",null,p(e.$t("socialnetwork.guestbook.page"))+" "+p(r.currentPage)+" / "+p(r.totalPages),1),d("button",{onClick:t[5]||(t[5]=u=>s.loadGuestbookEntries(r.currentPage+1)),disabled:r.currentPage===r.totalPages},p(e.$t("socialnetwork.guestbook.nextPage")),9,Xse)])]))])):te("",!0)])])]),_:1},8,["title","isTitleTranslated","onClose"])}const Qse=Oe(wse,[["render",Zse],["__scopeId","data-v-842d7d05"]]),eae={name:"ContactDialog",components:{DialogWidget:hn},data(){return{email:"",name:"",message:"",acceptDataSave:!1,error:""}},methods:{open(){this.email="",this.name="",this.message="",this.acceptDataSave=!1,this.error="",this.$refs.dialog.open()},async save(){try{const e=await X.post("/api/contact",{email:this.email,name:this.name,message:this.message,acceptDataSave:this.acceptDataSave});this.$refs.dialog.close()}catch(e){this.error=e}}}},tae={key:0,class:"error"};function nae(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"contact.title",isTitleTranslated:!0,icon:"contact24.png","show-close":!0,buttons:[{text:"Ok",action:"save"},{text:"Cancel",action:"close"}],modal:!1,onSave:s.save,width:"50em",name:"ContactDialog"},{default:ze(()=>[d("table",null,[d("tr",null,[d("td",null,p(e.$t("dialog.contact.email")),1),d("td",null,[ie(d("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=o=>r.email=o)},null,512),[[Le,r.email]])])]),d("tr",null,[d("td",null,p(e.$t("dialog.contact.name")),1),d("td",null,[ie(d("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=o=>r.name=o)},null,512),[[Le,r.name]])])])]),d("p",null,p(e.$t("dialog.contact.message")),1),ie(d("textarea",{"onUpdate:modelValue":t[2]||(t[2]=o=>r.message=o),rows:"15",cols:"80"},null,512),[[Le,r.message]]),d("p",null,p(e.$t("dialog.contact.accept")),1),d("label",null,[ie(d("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>r.acceptDataSave=o)},null,512),[[Nt,r.acceptDataSave]]),ge(p(e.$t("dialog.contact.acceptdatasave")),1)]),d("p",null,p(e.$t("dialog.contact.accept2")),1),r.error?(S(),_("p",tae,p(e.$t("dialog.contact.error."+r.error)),1)):te("",!0)]),_:1},8,["onSave"])}const iae=Oe(eae,[["render",nae],["__scopeId","data-v-6484af01"]]),Ed={imprint:{de:`
<h2>Diensteanbieter</h2>
<p>Torsten Schulz.<br />Friedrich-Stampfer-Str. 21.<br />60437 Frankfurt.<br />Deutschland</p>
<h2>Kontaktmöglichkeiten</h2>
<p>E-Mail-Adresse: kontakt@your-part.de.<br />Kontaktformular: <a href="https://your-part.de/kontakt" target="_blank">https://your-part.de/kontakt</a>.</p>
<h3>Angaben zum Unternehmen</h3>
<h4>Haftungs- und Schutzrechtshinweise</h4>
<p>Haftungsausschluss: Die Inhalte dieses Onlineangebotes wurden sorgfältig und nach unserem aktuellen Kenntnisstand erstellt, dienen jedoch nur der Information und entfalten keine rechtlich bindende Wirkung, sofern es sich nicht um gesetzlich verpflichtende Informationen (z.B. das Impressum, die Datenschutzerklärung, AGB oder verpflichtende Belehrungen von Verbrauchern) handelt. Wir behalten uns vor, die Inhalte vollständig oder teilweise zu ändern oder zu löschen, soweit vertragliche Verpflichtungen unberührt bleiben. Alle Angebote sind freibleibend und unverbindlich.</p>
<p>Links auf fremde Webseiten: Inhalte fremder Webseiten, auf die wir direkt oder indirekt verweisen, liegen außerhalb unseres Verantwortungsbereiches und machen wir uns nicht zu Eigen. Für alle Inhalte und insbesondere für Schäden, die aus der Nutzung der in den verlinkten Webseiten aufrufbaren Informationen entstehen, haftet allein der Anbieter der verlinkten Webseiten.</p>
<p>Urheberrechte und Markenrechte: Alle auf dieser Website dargestellten Inhalte, wie Texte, Fotografien, Grafiken, Marken und Warenzeichen sind durch die jeweiligen Schutzrechte (Urheberrechte, Markenrechte) geschützt. Die Verwendung, Vervielfältigung usw. unterliegen unseren Rechten oder den Rechten der jeweiligen Urheber bzw. Rechteverwalter.</p>
<p>Hinweise auf Rechtsverstöße: Sollten Sie innerhalb unseres Internetauftritts Rechtsverstöße bemerken, bitten wir Sie uns auf diese hinzuweisen. Wir werden rechtswidrige Inhalte und Links nach Kenntnisnahme unverzüglich entfernen.</p>
<p><a href="http://localhost:1234/?request=redirect&url=https%3a%2f%2fdatenschutz-generator.de%2f%3fl%3dde&hash=bkgahD%2f5eR8gQL1fk3SlzQ%3d%3d">Erstellt mit kostenlosem Datenschutz-Generator.de von Dr. Thomas Schwenke</a></p>
`,en:""},dataPrivacy:{de:`
<h1>Datenschutzerklärung</h1>
<h2>Einleitung</h2>
<p>Mit der folgenden Datenschutzerklärung möchten wir Sie darüber aufklären, welche Arten Ihrer personenbezogenen Daten (nachfolgend auch kurz als "Daten" bezeichnet) wir zu welchen Zwecken und in welchem Umfang verarbeiten. Die Datenschutzerklärung gilt für alle von uns durchgeführten Verarbeitungen personenbezogener Daten, sowohl im Rahmen der Erbringung unserer Leistungen als auch insbesondere auf unseren Webseiten, in mobilen Applikationen sowie innerhalb externer Onlinepräsenzen, wie z.B. unserer Social-Media-Profile (nachfolgend zusammenfassend bezeichnet als "Onlineangebot").</p>
<p>Die verwendeten Begriffe sind nicht geschlechtsspezifisch.</p>
<p>Stand: 27. März 2021</p>
<h2>Inhaltsübersicht</h2>
<ul class="index">
<li><a class="index-link" href="#m14">Einleitung</a></li>
<li><a class="index-link" href="#m3">Verantwortlicher</a></li>
<li><a class="index-link" href="#mOverview">Übersicht der Verarbeitungen</a></li>
<li><a class="index-link" href="#m13">Maßgebliche Rechtsgrundlagen</a></li>
<li><a class="index-link" href="#m27">Sicherheitsmaßnahmen</a></li>
<li><a class="index-link" href="#m134">Einsatz von Cookies</a></li>
<li><a class="index-link" href="#m225">Bereitstellung des Onlineangebotes und Webhosting</a></li>
<li><a class="index-link" href="#m367">Registrierung, Anmeldung und Nutzerkonto</a></li>
<li><a class="index-link" href="#m432">Community Funktionen</a></li>
<li><a class="index-link" href="#m451">Single-Sign-On-Anmeldung</a></li>
<li><a class="index-link" href="#m104">Blogs und Publikationsmedien</a></li>
<li><a class="index-link" href="#m17">Newsletter und elektronische Benachrichtigungen</a></li>
<li><a class="index-link" href="#m328">Plugins und eingebettete Funktionen sowie Inhalte</a></li>
<li><a class="index-link" href="#m12">Löschung von Daten</a></li>
<li><a class="index-link" href="#m15">Änderung und Aktualisierung der Datenschutzerklärung</a></li>
<li><a class="index-link" href="#m42">Begriffsdefinitionen</a></li>
</ul>
<h2 id="m3">Verantwortlicher</h2>
<p>Torsten Schulz<br/>Friedrich-Stampfer-Str. 21<br/>60437 Frankfurt</p>
<p>Vertretungsberechtigte Personen: Torsten Schulz.</p>
<p>E-Mail-Adresse: kontakt@your-part.de.</p>
<h2 id="mOverview">Übersicht der Verarbeitungen</h2>
<p>Die nachfolgende Übersicht fasst die Arten der verarbeiteten Daten und die Zwecke ihrer Verarbeitung zusammen und verweist auf die betroffenen Personen.</p>
<h3>Arten der verarbeiteten Daten</h3>
<ul>
<li>Event-Daten (Facebook) ("Event-Daten" sind Daten, die z. B. via Facebook-Pixel (via Apps oder auf anderen Wegen) von uns an Facebook übermittelt werden können und sich auf Personen oder deren Handlungen beziehen; Zu den Daten gehören z. B. Angaben über Besuche auf Websites, Interaktionen mit Inhalten, Funktionen, Installationen von Apps, Käufe von Produkten, etc.; die Event-Daten werden zwecks Bildung von Zielgruppen für Inhalte und Werbeinformationen (Custom Audiences) verarbeitet; Event Daten beinhalten nicht die eigentlichen Inhalte (wie z. B. verfasste Kommentare), keine Login-Informationen und keine Kontaktinformationen (also keine Namen, E-Mail-Adressen und Telefonnummern). Event Daten werden durch Facebook nach maximal zwei Jahren gelöscht, die aus ihnen gebildeten Zielgruppen mit der Löschung unseres Facebook-Kontos).</li>
<li>Bestandsdaten (z.B. Namen, Adressen).</li>
<li>Inhaltsdaten (z.B. Eingaben in Onlineformularen).</li>
<li>Kontaktdaten (z.B. E-Mail, Telefonnummern).</li>
<li>Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li>Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten).</li>
<li>Bild- und/ oder Videoaufnahmen (z. B. Fotografien oder Videoaufnahmen einer Person).</li>
<li>Tonaufnahmen.</li>
<li>Vertragsdaten (z.B. Vertragsgegenstand, Laufzeit, Kundenkategorie).</li>
<li>Zahlungsdaten (z.B. Bankverbindungen, Rechnungen, Zahlungshistorie).</li>
</ul>
<h3>Kategorien betroffener Personen</h3>
<ul>
<li>Kommunikationspartner.</li>
<li>Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
</ul>
<h3>Zwecke der Verarbeitung</h3>
<ul>
<li>Anmeldeverfahren.</li>
<li>Bereitstellung unseres Onlineangebotes und Nutzerfreundlichkeit.</li>
<li>Direktmarketing (z.B. per E-Mail oder postalisch).</li>
<li>Feedback (z.B. Sammeln von Feedback via Online-Formular).</li>
<li>Sicherheitsmaßnahmen.</li>
<li>Erbringung vertragliche Leistungen und Kundenservice.</li>
<li>Verwaltung und Beantwortung von Anfragen.</li>
</ul>
<h3 id="m13">Maßgebliche Rechtsgrundlagen</h3>
<p>Im Folgenden erhalten Sie eine Übersicht der Rechtsgrundlagen der DSGVO, auf deren Basis wir personenbezogenen Daten verarbeiten. Bitte nehmen Sie zur Kenntnis, dass neben den Regelungen der DSGVO nationale Datenschutzvorgaben in Ihrem bzw. unserem Wohn- oder Sitzland gelten können. Sollten ferner im Einzelfall speziellere Rechtsgrundlagen maßgeblich sein, teilen wir Ihnen diese in der Datenschutzerklärung mit.</p>
<ul>
<li><strong>Einwilligung (Art. 6 Abs. 1 S. 1 lit. a. DSGVO)</strong> - Die betroffene Person hat ihre Einwilligung in die Verarbeitung der sie betreffenden personenbezogenen Daten für einen spezifischen Zweck oder mehrere bestimmte Zwecke gegeben.</li>
<li><strong>Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO)</strong> - Die Verarbeitung ist für die Erfüllung eines Vertrags, dessen Vertragspartei die betroffene Person ist, oder zur Durchführung vorvertraglicher Maßnahmen erforderlich, die auf Anfrage der betroffenen Person erfolgen.</li>
<li><strong>Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO)</strong> - Die Verarbeitung ist zur Wahrung der berechtigten Interessen des Verantwortlichen oder eines Dritten erforderlich, sofern nicht die Interessen oder Grundrechte und Grundfreiheiten der betroffenen Person, die den Schutz personenbezogener Daten erfordern, überwiegen.</li>
</ul>
<p><strong>Nationale Datenschutzregelungen in Deutschland</strong>: Zusätzlich zu den Datenschutzregelungen der Datenschutz-Grundverordnung gelten nationale Regelungen zum Datenschutz in Deutschland. Hierzu gehört insbesondere das Gesetz zum Schutz vor Missbrauch personenbezogener Daten bei der Datenverarbeitung (Bundesdatenschutzgesetz BDSG). Das BDSG enthält insbesondere Spezialregelungen zum Recht auf Auskunft, zum Recht auf Löschung, zum Widerspruchsrecht, zur Verarbeitung besonderer Kategorien personenbezogener Daten, zur Verarbeitung für andere Zwecke und zur Übermittlung sowie automatisierten Entscheidungsfindung im Einzelfall einschließlich Profiling. Des Weiteren regelt es die Datenverarbeitung für Zwecke des Beschäftigungsverhältnisses (§ 26 BDSG), insbesondere im Hinblick auf die Begründung, Durchführung oder Beendigung von Beschäftigungsverhältnissen sowie die Einwilligung von Beschäftigten. Ferner können Landesdatenschutzgesetze der einzelnen Bundesländer zur Anwendung gelangen.</p>
<h2 id="m27">Sicherheitsmaßnahmen</h2>
<p>Wir treffen nach Maßgabe der gesetzlichen Vorgaben unter Berücksichtigung des Stands der Technik, der Implementierungskosten und der Art, des Umfangs, der Umstände und der Zwecke der Verarbeitung sowie der unterschiedlichen Eintrittswahrscheinlichkeiten und des Ausmaßes der Bedrohung der Rechte und Freiheiten natürlicher Personen geeignete technische und organisatorische Maßnahmen, um ein dem Risiko angemessenes Schutzniveau zu gewährleisten.</p>
<p>Zu den Maßnahmen gehören insbesondere die Sicherung der Vertraulichkeit, Integrität und Verfügbarkeit von Daten durch Kontrolle des physischen und elektronischen Zugangs zu den Daten als auch des sie betreffenden Zugriffs, der Eingabe, der Weitergabe, der Sicherung der Verfügbarkeit und ihrer Trennung. Des Weiteren haben wir Verfahren eingerichtet, die eine Wahrnehmung von Betroffenenrechten, die Löschung von Daten und Reaktionen auf die Gefährdung der Daten gewährleisten. Ferner berücksichtigen wir den Schutz personenbezogener Daten bereits bei der Entwicklung bzw. Auswahl von Hardware, Software sowie Verfahren entsprechend dem Prinzip des Datenschutzes, durch Technikgestaltung und durch datenschutzfreundliche Voreinstellungen.</p>
<p><strong>SSL-Verschlüsselung (https)</strong>: Um Ihre via unser Online-Angebot übermittelten Daten zu schützen, nutzen wir eine SSL-Verschlüsselung. Sie erkennen derart verschlüsselte Verbindungen an dem Präfix https:// in der Adresszeile Ihres Browsers.</p>
<h2 id="m134">Einsatz von Cookies</h2>
<p>Cookies sind Textdateien, die Daten von besuchten Websites oder Domains enthalten und von einem Browser auf dem Computer des Benutzers gespeichert werden. Ein Cookie dient in erster Linie dazu, die Informationen über einen Benutzer während oder nach seinem Besuch innerhalb eines Onlineangebotes zu speichern. Zu den gespeicherten Angaben können z.B. die Spracheinstellungen auf einer Webseite, der Loginstatus, ein Warenkorb oder die Stelle, an der ein Video geschaut wurde, gehören. Zu dem Begriff der Cookies zählen wir ferner andere Technologien, die die gleichen Funktionen wie Cookies erfüllen (z.B., wenn Angaben der Nutzer anhand pseudonymer Onlinekennzeichnungen gespeichert werden, auch als "Nutzer-IDs" bezeichnet)</p>
<p><strong>Die folgenden Cookie-Typen und Funktionen werden unterschieden:</strong></p>
<ul>
<li><strong>Temporäre Cookies (auch: Session- oder Sitzungs-Cookies):</strong> Temporäre Cookies werden spätestens gelöscht, nachdem ein Nutzer ein Online-Angebot verlassen und seinen Browser geschlossen hat.</li>
<li><strong>Permanente Cookies:</strong> Permanente Cookies bleiben auch nach dem Schließen des Browsers gespeichert. So kann beispielsweise der Login-Status gespeichert oder bevorzugte Inhalte direkt angezeigt werden, wenn der Nutzer eine Website erneut besucht. Ebenso können die Interessen von Nutzern, die zur Reichweitenmessung oder zu Marketingzwecken verwendet werden, in einem solchen Cookie gespeichert werden.</li>
<li><strong>First-Party-Cookies:</strong> First-Party-Cookies werden von uns selbst gesetzt.</li>
<li><strong>Third-Party-Cookies (auch: Drittanbieter-Cookies)</strong>: Drittanbieter-Cookies werden hauptsächlich von Werbetreibenden (sog. Dritten) verwendet, um Benutzerinformationen zu verarbeiten.</li>
<li><strong>Notwendige (auch: essentielle oder unbedingt erforderliche) Cookies:</strong> Cookies können zum einen für den Betrieb einer Webseite unbedingt erforderlich sein (z.B. um Logins oder andere Nutzereingaben zu speichern oder aus Gründen der Sicherheit).</li>
<li><strong>Statistik-, Marketing- und Personalisierungs-Cookies</strong>: Ferner werden Cookies im Regelfall auch im Rahmen der Reichweitenmessung eingesetzt sowie dann, wenn die Interessen eines Nutzers oder sein Verhalten (z.B. Betrachten bestimmter Inhalte, Nutzen von Funktionen etc.) auf einzelnen Webseiten in einem Nutzerprofil gespeichert werden. Solche Profile dienen dazu, den Nutzern z.B. Inhalte anzuzeigen, die ihren potentiellen Interessen entsprechen. Dieses Verfahren wird auch als "Tracking", d.h., Nachverfolgung der potentiellen Interessen der Nutzer bezeichnet. Soweit wir Cookies oder "Tracking"-Technologien einsetzen, informieren wir Sie gesondert in unserer Datenschutzerklärung oder im Rahmen der Einholung einer Einwilligung.</li>
</ul>
<p><strong>Hinweise zu Rechtsgrundlagen: </strong> Auf welcher Rechtsgrundlage wir Ihre personenbezogenen Daten mit Hilfe von Cookies verarbeiten, hängt davon ab, ob wir Sie um eine Einwilligung bitten. Falls dies zutrifft und Sie in die Nutzung von Cookies einwilligen, ist die Rechtsgrundlage der Verarbeitung Ihrer Daten die erklärte Einwilligung. Andernfalls werden die mithilfe von Cookies verarbeiteten Daten auf Grundlage unserer berechtigten Interessen (z.B. an einem betriebswirtschaftlichen Betrieb unseres Onlineangebotes und dessen Verbesserung) verarbeitet oder, wenn der Einsatz von Cookies erforderlich ist, um unsere vertraglichen Verpflichtungen zu erfüllen.</p>
<p><strong>Speicherdauer: </strong>Sofern wir Ihnen keine expliziten Angaben zur Speicherdauer von permanenten Cookies mitteilen (z. B. im Rahmen eines sog. Cookie-Opt-Ins), gehen Sie bitte davon aus, dass die Speicherdauer bis zu zwei Jahre betragen kann.</p>
<p><strong>Allgemeine Hinweise zum Widerruf und Widerspruch (Opt-Out): </strong> Abhängig davon, ob die Verarbeitung auf Grundlage einer Einwilligung oder gesetzlichen Erlaubnis erfolgt, haben Sie jederzeit die Möglichkeit, eine erteilte Einwilligung zu widerrufen oder der Verarbeitung Ihrer Daten durch Cookie-Technologien zu widersprechen (zusammenfassend als "Opt-Out" bezeichnet). Sie können Ihren Widerspruch zunächst mittels der Einstellungen Ihres Browsers erklären, z.B., indem Sie die Nutzung von Cookies deaktivieren (wobei hierdurch auch die Funktionsfähigkeit unseres Onlineangebotes eingeschränkt werden kann). Ein Widerspruch gegen den Einsatz von Cookies zu Zwecken des Onlinemarketings kann auch mittels einer Vielzahl von Diensten, vor allem im Fall des Trackings, über die Webseiten <a href="https://optout.aboutads.info" target="_blank">https://optout.aboutads.info</a> und <a href="https://www.youronlinechoices.com/" target="_blank">https://www.youronlinechoices.com/</a> erklärt werden. Daneben können Sie weitere Widerspruchshinweise im Rahmen der Angaben zu den eingesetzten Dienstleistern und Cookies erhalten.</p>
<p><strong>Verarbeitung von Cookie-Daten auf Grundlage einer Einwilligung</strong>: Wir setzen ein Verfahren zum Cookie-Einwilligungs-Management ein, in dessen Rahmen die Einwilligungen der Nutzer in den Einsatz von Cookies, bzw. der im Rahmen des Cookie-Einwilligungs-Management-Verfahrens genannten Verarbeitungen und Anbieter eingeholt sowie von den Nutzern verwaltet und widerrufen werden können. Hierbei wird die Einwilligungserklärung gespeichert, um deren Abfrage nicht erneut wiederholen zum müssen und die Einwilligung entsprechend der gesetzlichen Verpflichtung nachweisen zu können. Die Speicherung kann serverseitig und/oder in einem Cookie (sogenanntes Opt-In-Cookie, bzw. mithilfe vergleichbarer Technologien) erfolgen, um die Einwilligung einem Nutzer, bzw. dessen Gerät zuordnen zu können. Vorbehaltlich individueller Angaben zu den Anbietern von Cookie-Management-Diensten, gelten die folgenden Hinweise: Die Dauer der Speicherung der Einwilligung kann bis zu zwei Jahren betragen. Hierbei wird ein pseudonymer Nutzer-Identifikator gebildet und mit dem Zeitpunkt der Einwilligung, Angaben zur Reichweite der Einwilligung (z. B. welche Kategorien von Cookies und/oder Diensteanbieter) sowie dem Browser, System und verwendeten Endgerät gespeichert.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Rechtsgrundlagen:</strong> Einwilligung (Art. 6 Abs. 1 S. 1 lit. a. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<h2 id="m225">Bereitstellung des Onlineangebotes und Webhosting</h2>
<p>Um unser Onlineangebot sicher und effizient bereitstellen zu können, nehmen wir die Leistungen von einem oder mehreren Webhosting-Anbietern in Anspruch, von deren Servern (bzw. von ihnen verwalteten Servern) das Onlineangebot abgerufen werden kann. Zu diesen Zwecken können wir Infrastruktur- und Plattformdienstleistungen, Rechenkapazität, Speicherplatz und Datenbankdienste sowie Sicherheitsleistungen und technische Wartungsleistungen in Anspruch nehmen.</p>
<p>Zu den im Rahmen der Bereitstellung des Hostingangebotes verarbeiteten Daten können alle die Nutzer unseres Onlineangebotes betreffenden Angaben gehören, die im Rahmen der Nutzung und der Kommunikation anfallen. Hierzu gehören regelmäßig die IP-Adresse, die notwendig ist, um die Inhalte von Onlineangeboten an Browser ausliefern zu können, und alle innerhalb unseres Onlineangebotes oder von Webseiten getätigten Eingaben.</p>
<p><strong>E-Mail-Versand und -Hosting</strong>: Die von uns in Anspruch genommenen Webhosting-Leistungen umfassen ebenfalls den Versand, den Empfang sowie die Speicherung von E-Mails. Zu diesen Zwecken werden die Adressen der Empfänger sowie Absender als auch weitere Informationen betreffend den E-Mailversand (z.B. die beteiligten Provider) sowie die Inhalte der jeweiligen E-Mails verarbeitet. Die vorgenannten Daten können ferner zu Zwecken der Erkennung von SPAM verarbeitet werden. Wir bitten darum, zu beachten, dass E-Mails im Internet grundsätzlich nicht verschlüsselt versendet werden. Im Regelfall werden E-Mails zwar auf dem Transportweg verschlüsselt, aber (sofern kein sogenanntes Ende-zu-Ende-Verschlüsselungsverfahren eingesetzt wird) nicht auf den Servern, von denen sie abgesendet und empfangen werden. Wir können daher für den Übertragungsweg der E-Mails zwischen dem Absender und dem Empfang auf unserem Server keine Verantwortung übernehmen.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Inhaltsdaten (z.B. Eingaben in Onlineformularen), Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Bereitstellung unseres Onlineangebotes und Nutzerfreundlichkeit.</li>
<li><strong>Rechtsgrundlagen:</strong> Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<p><strong>Eingesetzte Dienste und Diensteanbieter:</strong></p>
<ul class="m-elements">
<li><strong>1blu:</strong> Leistungen auf dem Gebiet der Bereitstellung von informationstechnischer Infrastruktur und verbundenen Dienstleistungen (z.B. Speicherplatz und/oder Rechenkapazitäten); Dienstanbieter: 1blu AG, Riedemannweg 60, 13627 Berlin, Deutschland; Website: <a href="https://www.1blu.de/" target="_blank">https://www.1blu.de/</a>; Datenschutzerklärung: <a href="https://www.1blu.de/datenschutz" target="_blank">https://www.1blu.de/datenschutz</a>.</li>
</ul>
<h2 id="m367">Registrierung, Anmeldung und Nutzerkonto</h2>
<p>Nutzer können ein Nutzerkonto anlegen. Im Rahmen der Registrierung werden den Nutzern die erforderlichen Pflichtangaben mitgeteilt und zu Zwecken der Bereitstellung des Nutzerkontos auf Grundlage vertraglicher Pflichterfüllung verarbeitet. Zu den verarbeiteten Daten gehören insbesondere die Login-Informationen (Nutzername, Passwort sowie eine E-Mail-Adresse).</p>
<p>Im Rahmen der Inanspruchnahme unserer Registrierungs- und Anmeldefunktionen sowie der Nutzung des Nutzerkontos speichern wir die IP-Adresse und den Zeitpunkt der jeweiligen Nutzerhandlung. Die Speicherung erfolgt auf Grundlage unserer berechtigten Interessen als auch jener der Nutzer an einem Schutz vor Missbrauch und sonstiger unbefugter Nutzung. Eine Weitergabe dieser Daten an Dritte erfolgt grundsätzlich nicht, es sei denn, sie ist zur Verfolgung unserer Ansprüche erforderlich oder es besteht eine gesetzliche Verpflichtung hierzu.</p>
<p>Die Nutzer können über Vorgänge, die für deren Nutzerkonto relevant sind, wie z.B. technische Änderungen, per E-Mail informiert werden.</p>
<p><strong>Registrierung mit Pseudonymen</strong>: Nutzer dürfen statt Klarnamen Pseudonyme als Nutzernamen verwenden.</p>
<p><strong>Einstellung der Sichtbarkeit von Profilen</strong>: Die Nutzer können mittels Einstellungen bestimmen, in welchem Umfang ihre Profile für die Öffentlichkeit oder nur für bestimmte Personengruppen sichtbar, bzw. zugänglich sind.</p>
<p><strong>Löschung von Daten nach Kündigung</strong>: Wenn Nutzer ihr Nutzerkonto gekündigt haben, werden deren Daten im Hinblick auf das Nutzerkonto, vorbehaltlich einer gesetzlichen Erlaubnis, Pflicht oder Einwilligung der Nutzer, gelöscht.</p>
<p>Es obliegt den Nutzern, ihre Daten bei erfolgter Kündigung vor dem Vertragsende zu sichern. Wir sind berechtigt, sämtliche während der Vertragsdauer gespeicherte Daten des Nutzers unwiederbringlich zu löschen.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Bestandsdaten (z.B. Namen, Adressen), Kontaktdaten (z.B. E-Mail, Telefonnummern), Inhaltsdaten (z.B. Eingaben in Onlineformularen), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Erbringung vertragliche Leistungen und Kundenservice, Sicherheitsmaßnahmen, Verwaltung und Beantwortung von Anfragen.</li>
<li><strong>Rechtsgrundlagen:</strong> Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<h2 id="m432">Community Funktionen</h2>
<p>Die von uns bereitgestellten Community Funktionen erlauben es Nutzern miteinander in Konversationen oder sonst miteinander in einen Austausch zu treten. Hierbei bitten wir zu beachten, dass die Nutzung der Communityfunktionen nur unter Beachtung der geltenden Rechtslage, unserer Bedingungen und Richtlinien sowie der Rechte anderer Nutzer und Dritter gestattet ist.</p>
<p><strong>Einstellung der Sichtbarkeit von Beiträgen</strong>: Die Nutzer können mittels Einstellungen bestimmen, in welchem Umfang die von ihnen erstellten Beiträge und Inhalte für die Öffentlichkeit oder nur für bestimmte Personen oder Gruppen sichtbar, bzw. zugänglich sind.</p>
<p><strong>Schutz eigener Daten</strong>: Die Nutzer entscheiden selbst, welche Daten sie über sich innerhalb unseres Onlineangebotes preisgeben. Zum Beispiel, wenn Nutzer Angaben zur eigenen Person machen oder an Konversationen teilnehmen. Wir bitten die Nutzer ihre Daten zu schützen und persönliche Daten nur mit Bedacht und nur im erforderlichen Umfang zu veröffentlichen. Insbesondere bitten wir die Nutzer zu beachten, dass sie die Zugangsdaten ganz besonders schützen und sichere Passwörter verwenden müssen (d.h. vor allem möglichst lange und zufällige Zeichenkombinationen).</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Erbringung vertragliche Leistungen und Kundenservice, Sicherheitsmaßnahmen.</li>
<li><strong>Rechtsgrundlagen:</strong> Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<h2 id="m451">Single-Sign-On-Anmeldung</h2>
<p>Als "Single-Sign-On“ oder "Single-Sign-On-Anmeldung bzw. "-Authentifizierung“ werden Verfahren bezeichnet, die es Nutzern erlauben, sich mit Hilfe eines Nutzerkontos bei einem Anbieter von Single-Sign-On-Verfahren (z.B. einem sozialen Netzwerk), auch bei unserem Onlineangebot, anzumelden. Voraussetzung der Single-Sign-On-Authentifizierung ist, dass die Nutzer bei dem jeweiligen Single-Sign-On-Anbieter registriert sind und die erforderlichen Zugangsdaten in dem dafür vorgesehenen Onlineformular eingeben, bzw. schon bei dem Single-Sign-On-Anbieter angemeldet sind und die Single-Sign-On-Anmeldung via Schaltfläche bestätigen.</p>
<p>Die Authentifizierung erfolgt direkt bei dem jeweiligen Single-Sign-On-Anbieter. Im Rahmen einer solchen Authentifizierung erhalten wir eine Nutzer-ID mit der Information, dass der Nutzer unter dieser Nutzer-ID beim jeweiligen Single-Sign-On-Anbieter eingeloggt ist und eine für uns für andere Zwecke nicht weiter nutzbare ID (sog "User Handle“). Ob uns zusätzliche Daten übermittelt werden, hängt allein von dem genutzten Single-Sign-On-Verfahren ab, von den gewählten Datenfreigaben im Rahmen der Authentifizierung und zudem davon, welche Daten Nutzer in den Privatsphäre- oder sonstigen Einstellungen des Nutzerkontos beim Single-Sign-On-Anbieter freigegeben haben. Es können je nach Single-Sign-On-Anbieter und der Wahl der Nutzer verschiedene Daten sein, in der Regel sind es die E-Mail-Adresse und der Benutzername. Das im Rahmen des Single-Sign-On-Verfahrens eingegebene Passwort bei dem Single-Sign-On-Anbieter ist für uns weder einsehbar, noch wird es von uns gespeichert. </p>
<p>Die Nutzer werden gebeten, zu beachten, dass deren bei uns gespeicherte Angaben automatisch mit ihrem Nutzerkonto beim Single-Sign-On-Anbieter abgeglichen werden können, dies jedoch nicht immer möglich ist oder tatsächlich erfolgt. Ändern sich z.B. die E-Mail-Adressen der Nutzer, müssen sie diese manuell in ihrem Nutzerkonto bei uns ändern.</p>
<p>Die Single-Sign-On-Anmeldung können wir, sofern mit den Nutzern vereinbart, im Rahmen der oder vor der Vertragserfüllung einsetzen, soweit die Nutzer darum gebeten wurden, im Rahmen einer Einwilligung verarbeiten und setzen sie ansonsten auf Grundlage der berechtigten Interessen unsererseits und der Interessen der Nutzer an einem effektiven und sicheren Anmeldesystem ein.</p>
<p>Sollten Nutzer sich einmal entscheiden, die Verknüpfung ihres Nutzerkontos beim Single-Sign-On-Anbieter nicht mehr für das Single-Sign-On-Verfahren nutzen zu wollen, müssen sie diese Verbindung innerhalb ihres Nutzerkontos beim Single-Sign-On-Anbieter aufheben. Möchten Nutzer deren Daten bei uns löschen, müssen sie ihre Registrierung bei uns kündigen.</p>
<p><strong>Facebook Single-Sign-On</strong>: Wir sind gemeinsam mit Facebook Irland Ltd. für die Erhebung oder den Erhalt im Rahmen einer Übermittlung (jedoch nicht die weitere Verarbeitung) von "Event-Daten", die Facebook mittels der Facebook-Single-Sign-On-Anmeldeverfahren, die auf unserem Onlineangebot ausgeführt werden, erhebt oder im Rahmen einer Übermittlung zu folgenden Zwecken erhält, gemeinsam verantwortlich: a) Anzeige von Inhalten Werbeinformationen, die den mutmaßlichen Interessen der Nutzer entsprechen; b) Zustellung kommerzieller und transaktionsbezogener Nachrichten (z. B. Ansprache von Nutzern via Facebook-Messenger); c) Verbesserung der Anzeigenauslieferung und Personalisierung von Funktionen und Inhalten (z. B. Verbesserung der Erkennung, welche Inhalte oder Werbeinformationen mutmaßlich den Interessen der Nutzer entsprechen). Wir haben mit Facebook eine spezielle Vereinbarung abgeschlossen ("Zusatz für Verantwortliche", <a href="https://www.facebook.com/legal/controller_addendum" target="_blank">https://www.facebook.com/legal/controller_addendum</a>), in der insbesondere geregelt wird, welche Sicherheitsmaßnahmen Facebook beachten muss (<a href="https://www.facebook.com/legal/terms/data_security_terms" target="_blank">https://www.facebook.com/legal/terms/data_security_terms</a>) und in der Facebook sich bereit erklärt hat die Betroffenenrechte zu erfüllen (d. h. Nutzer können z. B. Auskünfte oder Löschungsanfragen direkt an Facebook richten). Hinweis: Wenn Facebook uns Messwerte, Analysen und Berichte bereitstellt (die aggregiert sind, d. h. keine Angaben zu einzelnen Nutzern erhalten und für uns anonym sind), dann erfolgt diese Verarbeitung nicht im Rahmen der gemeinsamen Verantwortlichkeit, sondern auf Grundlage eines Auftragsverarbeitungsvertrages ("Datenverarbeitungsbedingungen ", <a href="https://www.facebook.com/legal/terms/dataprocessing" target="_blank">https://www.facebook.com/legal/terms/dataprocessing</a>) , der "Datensicherheitsbedingungen" (<a href="https://www.facebook.com/legal/terms/data_security_terms" target="_blank">https://www.facebook.com/legal/terms/data_security_terms</a>) sowie im Hinblick auf die Verarbeitung in den USA auf Grundlage von Standardvertragsklauseln ("Facebook-EU-Datenübermittlungszusatz, <a href="https://www.facebook.com/legal/EU_data_transfer_addendum" target="_blank">https://www.facebook.com/legal/EU_data_transfer_addendum</a>). Die Rechte der Nutzer (insbesondere auf Auskunft, Löschung, Widerspruch und Beschwerde bei zuständiger Aufsichtsbehörde), werden durch die Vereinbarungen mit Facebook nicht eingeschränkt.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Bestandsdaten (z.B. Namen, Adressen), Kontaktdaten (z.B. E-Mail, Telefonnummern), Event-Daten (Facebook) ("Event-Daten" sind Daten, die z. B. via Facebook-Pixel (via Apps oder auf anderen Wegen) von uns an Facebook übermittelt werden können und sich auf Personen oder deren Handlungen beziehen; Zu den Daten gehören z. B. Angaben über Besuche auf Websites, Interaktionen mit Inhalten, Funktionen, Installationen von Apps, Käufe von Produkten, etc.; die Event-Daten werden zwecks Bildung von Zielgruppen für Inhalte und Werbeinformationen (Custom Audiences) verarbeitet; Event Daten beinhalten nicht die eigentlichen Inhalte (wie z. B. verfasste Kommentare), keine Login-Informationen und keine Kontaktinformationen (also keine Namen, E-Mail-Adressen und Telefonnummern). Event Daten werden durch Facebook nach maximal zwei Jahren gelöscht, die aus ihnen gebildeten Zielgruppen mit der Löschung unseres Facebook-Kontos).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Erbringung vertragliche Leistungen und Kundenservice, Anmeldeverfahren.</li>
<li><strong>Rechtsgrundlagen:</strong> Einwilligung (Art. 6 Abs. 1 S. 1 lit. a. DSGVO), Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<p><strong>Eingesetzte Dienste und Diensteanbieter:</strong></p>
<ul class="m-elements">
<li><strong>Facebook Single-Sign-On:</strong> Authentifizierungsdienst; Dienstanbieter: <a href="https://www.facebook.com" target="_blank">https://www.facebook.com</a>, Facebook Ireland Ltd., 4 Grand Canal Square, Grand Canal Harbour, Dublin 2, Irland, Mutterunternehmen: Facebook, 1 Hacker Way, Menlo Park, CA 94025, USA; Website: <a href="https://www.facebook.com" target="_blank">https://www.facebook.com</a>; Datenschutzerklärung: <a href="https://www.facebook.com/about/privacy" target="_blank">https://www.facebook.com/about/privacy</a>; Widerspruchsmöglichkeit (Opt-Out): <a href="https://www.facebook.com/settings?tab=ads" target="_blank">https://www.facebook.com/settings?tab=ads</a>.</li>
<li><strong>Google Single-Sign-On:</strong> Authentifizierungsdienst; Dienstanbieter: Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Irland, Mutterunternehmen: Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA; Website: <a href="https://www.google.de" target="_blank">https://www.google.de</a>; Datenschutzerklärung: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>; Widerspruchsmöglichkeit (Opt-Out): Einstellungen für die Darstellung von Werbeeinblendungen: <a href="https://adssettings.google.com/authenticated" target="_blank">https://adssettings.google.com/authenticated</a>.</li>
<li><strong>Twitter Single-Sign-On:</strong> Authentifizierungsdienst; Dienstanbieter: Twitter International Company, One Cumberland Place, Fenian Street, Dublin 2 D02 AX07, Irland, Mutterunternehmen: Twitter Inc., 1355 Market Street, Suite 900, San Francisco, CA 94103, USA; Website: <a href="https://twitter.com" target="_blank">https://twitter.com</a>; Datenschutzerklärung: <a href="https://twitter.com/de/privacy" target="_blank">https://twitter.com/de/privacy</a>; Widerspruchsmöglichkeit (Opt-Out): <a href="https://twitter.com/personalization" target="_blank">https://twitter.com/personalization</a>.</li>
</ul>
<h2 id="m104">Blogs und Publikationsmedien</h2>
<p>Wir nutzen Blogs oder vergleichbare Mittel der Onlinekommunikation und Publikation (nachfolgend "Publikationsmedium"). Die Daten der Leser werden für die Zwecke des Publikationsmediums nur insoweit verarbeitet, als es für dessen Darstellung und die Kommunikation zwischen Autoren und Lesern oder aus Gründen der Sicherheit erforderlich ist. Im Übrigen verweisen wir auf die Informationen zur Verarbeitung der Besucher unseres Publikationsmediums im Rahmen dieser Datenschutzhinweise.</p>
<p><strong>Kommentare und Beiträge</strong>: Wenn Nutzer Kommentare oder sonstige Beiträge hinterlassen, können ihre IP-Adressen auf Grundlage unserer berechtigten Interessen gespeichert werden. Das erfolgt zu unserer Sicherheit, falls jemand in Kommentaren und Beiträgen widerrechtliche Inhalte hinterlässt (Beleidigungen, verbotene politische Propaganda etc.). In diesem Fall können wir selbst für den Kommentar oder Beitrag belangt werden und sind daher an der Identität des Verfassers interessiert.</p>
<p>Des Weiteren behalten wir uns vor, auf Grundlage unserer berechtigten Interessen die Angaben der Nutzer zwecks Spamerkennung zu verarbeiten.</p>
<p>Auf derselben Rechtsgrundlage behalten wir uns vor, im Fall von Umfragen die IP-Adressen der Nutzer für deren Dauer zu speichern und Cookies zu verwenden, um Mehrfachabstimmungen zu vermeiden.</p>
<p>Die im Rahmen der Kommentare und Beiträge mitgeteilten Informationen zur Person, etwaige Kontakt- sowie Webseiteninformationen als auch die inhaltlichen Angaben werden von uns bis zum Widerspruch der Nutzer dauerhaft gespeichert.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Bestandsdaten (z.B. Namen, Adressen), Kontaktdaten (z.B. E-Mail, Telefonnummern), Inhaltsdaten (z.B. Eingaben in Onlineformularen), Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Erbringung vertragliche Leistungen und Kundenservice, Feedback (z.B. Sammeln von Feedback via Online-Formular), Sicherheitsmaßnahmen, Verwaltung und Beantwortung von Anfragen.</li>
<li><strong>Rechtsgrundlagen:</strong> Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
</ul>
<h2 id="m17">Newsletter und elektronische Benachrichtigungen</h2>
<p>Wir versenden Newsletter, E-Mails und weitere elektronische Benachrichtigungen (nachfolgend "Newsletter“) nur mit der Einwilligung der Empfänger oder einer gesetzlichen Erlaubnis. Sofern im Rahmen einer Anmeldung zum Newsletter dessen Inhalte konkret umschrieben werden, sind sie für die Einwilligung der Nutzer maßgeblich. Im Übrigen enthalten unsere Newsletter Informationen zu unseren Leistungen und uns.</p>
<p>Um sich zu unseren Newslettern anzumelden, reicht es grundsätzlich aus, wenn Sie Ihre E-Mail-Adresse angeben. Wir können Sie jedoch bitten, einen Namen, zwecks persönlicher Ansprache im Newsletter, oder weitere Angaben, sofern diese für die Zwecke des Newsletters erforderlich sind, zu tätigen.</p>
<p><strong>Double-Opt-In-Verfahren:</strong> Die Anmeldung zu unserem Newsletter erfolgt grundsätzlich in einem sogenannte Double-Opt-In-Verfahren. D.h., Sie erhalten nach der Anmeldung eine E-Mail, in der Sie um die Bestätigung Ihrer Anmeldung gebeten werden. Diese Bestätigung ist notwendig, damit sich niemand mit fremden E-Mail-Adressen anmelden kann. Die Anmeldungen zum Newsletter werden protokolliert, um den Anmeldeprozess entsprechend den rechtlichen Anforderungen nachweisen zu können. Hierzu gehört die Speicherung des Anmelde- und des Bestätigungszeitpunkts als auch der IP-Adresse. Ebenso werden die Änderungen Ihrer bei dem Versanddienstleister gespeicherten Daten protokolliert.</p>
<p><strong>Löschung und Einschränkung der Verarbeitung: </strong> Wir können die ausgetragenen E-Mail-Adressen bis zu drei Jahren auf Grundlage unserer berechtigten Interessen speichern, bevor wir sie löschen, um eine ehemals gegebene Einwilligung nachweisen zu können. Die Verarbeitung dieser Daten wird auf den Zweck einer möglichen Abwehr von Ansprüchen beschränkt. Ein individueller Löschungsantrag ist jederzeit möglich, sofern zugleich das ehemalige Bestehen einer Einwilligung bestätigt wird. Im Fall von Pflichten zur dauerhaften Beachtung von Widersprüchen behalten wir uns die Speicherung der E-Mail-Adresse alleine zu diesem Zweck in einer Sperrliste (sogenannte "Blocklist") vor.</p>
<p>Die Protokollierung des Anmeldeverfahrens erfolgt auf Grundlage unserer berechtigten Interessen zu Zwecken des Nachweises seines ordnungsgemäßen Ablaufs. Soweit wir einen Dienstleister mit dem Versand von E-Mails beauftragen, erfolgt dies auf Grundlage unserer berechtigten Interessen an einem effizienten und sicheren Versandsystem.</p>
<p><strong>Hinweise zu Rechtsgrundlagen:</strong> Der Versand der Newsletter erfolgt auf Grundlage einer Einwilligung der Empfänger oder, falls eine Einwilligung nicht erforderlich ist, auf Grundlage unserer berechtigten Interessen am Direktmarketing, sofern und soweit diese gesetzlich, z.B. im Fall von Bestandskundenwerbung, erlaubt ist. Soweit wir einen Dienstleister mit dem Versand von E-Mails beauftragen, geschieht dies auf der Grundlage unserer berechtigten Interessen. Das Registrierungsverfahren wird auf der Grundlage unserer berechtigten Interessen aufgezeichnet, um nachzuweisen, dass es in Übereinstimmung mit dem Gesetz durchgeführt wurde.</p>
<p>Inhalte: Informationen zu uns, unseren Leistungen, Aktionen und Angeboten.</p>
<p><strong>Versand via SMS</strong>: Die elektronischen Benachrichtigungen können ebenfalls als SMS-Textnachrichten versenden werden (bzw. werden ausschließlich via SMS versendet, falls die Versandberechtigung, z. B. eine Einwilligung, nur den Versand via SMS umfasst).</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Bestandsdaten (z.B. Namen, Adressen), Kontaktdaten (z.B. E-Mail, Telefonnummern), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen).</li>
<li><strong>Betroffene Personen:</strong> Kommunikationspartner.</li>
<li><strong>Zwecke der Verarbeitung:</strong> Direktmarketing (z.B. per E-Mail oder postalisch).</li>
<li><strong>Rechtsgrundlagen:</strong> Einwilligung (Art. 6 Abs. 1 S. 1 lit. a. DSGVO), Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO).</li>
<li><strong>Widerspruchsmöglichkeit (Opt-Out):</strong> Sie können den Empfang unseres Newsletters jederzeit kündigen, d.h. Ihre Einwilligungen widerrufen, bzw. dem weiteren Empfang widersprechen. Einen Link zur Kündigung des Newsletters finden Sie entweder am Ende eines jeden Newsletters oder können sonst eine der oben angegebenen Kontaktmöglichkeiten, vorzugswürdig E-Mail, hierzu nutzen.</li>
</ul>
<h2 id="m328">Plugins und eingebettete Funktionen sowie Inhalte</h2>
<p>Wir binden in unser Onlineangebot Funktions- und Inhaltselemente ein, die von den Servern ihrer jeweiligen Anbieter (nachfolgend bezeichnet als "Drittanbieter”) bezogen werden. Dabei kann es sich zum Beispiel um Grafiken, Videos oder Stadtpläne handeln (nachfolgend einheitlich bezeichnet als "Inhalte”).</p>
<p>Die Einbindung setzt immer voraus, dass die Drittanbieter dieser Inhalte die IP-Adresse der Nutzer verarbeiten, da sie ohne die IP-Adresse die Inhalte nicht an deren Browser senden könnten. Die IP-Adresse ist damit für die Darstellung dieser Inhalte oder Funktionen erforderlich. Wir bemühen uns, nur solche Inhalte zu verwenden, deren jeweilige Anbieter die IP-Adresse lediglich zur Auslieferung der Inhalte verwenden. Drittanbieter können ferner sogenannte Pixel-Tags (unsichtbare Grafiken, auch als "Web Beacons" bezeichnet) für statistische oder Marketingzwecke verwenden. Durch die "Pixel-Tags" können Informationen, wie der Besucherverkehr auf den Seiten dieser Webseite, ausgewertet werden. Die pseudonymen Informationen können ferner in Cookies auf dem Gerät der Nutzer gespeichert werden und unter anderem technische Informationen zum Browser und zum Betriebssystem, zu verweisenden Webseiten, zur Besuchszeit sowie weitere Angaben zur Nutzung unseres Onlineangebotes enthalten als auch mit solchen Informationen aus anderen Quellen verbunden werden.</p>
<p><strong>Hinweise zu Rechtsgrundlagen:</strong> Sofern wir die Nutzer um deren Einwilligung in den Einsatz der Drittanbieter bitten, ist die Rechtsgrundlage der Verarbeitung von Daten die Einwilligung. Ansonsten werden die Daten der Nutzer auf Grundlage unserer berechtigten Interessen (d.h. Interesse an effizienten, wirtschaftlichen und empfängerfreundlichen Leistungen) verarbeitet. In diesem Zusammenhang möchten wir Sie auch auf die Informationen zur Verwendung von Cookies in dieser Datenschutzerklärung hinweisen.</p>
<p><strong>Facebook-Plugins und -Inhalte</strong>: Wir sind gemeinsam mit Facebook Irland Ltd. für die Erhebung oder den Erhalt im Rahmen einer Übermittlung (jedoch nicht die weitere Verarbeitung) von "Event-Daten", die Facebook mittels der Facebook-Social-Plugins (und Einbettungsfunktionen für Inhalte), die auf unserem Onlineangebot ausgeführt werden, erhebt oder im Rahmen einer Übermittlung zu folgenden Zwecken erhält, gemeinsam verantwortlich: a) Anzeige von Inhalten sowie Werbeinformationen, die den mutmaßlichen Interessen der Nutzer entsprechen; b) Zustellung kommerzieller und transaktionsbezogener Nachrichten (z. B. Ansprache von Nutzern via Facebook-Messenger); c) Verbesserung der Anzeigenauslieferung und Personalisierung von Funktionen und Inhalten (z. B. Verbesserung der Erkennung, welche Inhalte oder Werbeinformationen mutmaßlich den Interessen der Nutzer entsprechen). Wir haben mit Facebook eine spezielle Vereinbarung abgeschlossen ("Zusatz für Verantwortliche", <a href="https://www.facebook.com/legal/controller_addendum" target="_blank">https://www.facebook.com/legal/controller_addendum</a>), in der insbesondere geregelt wird, welche Sicherheitsmaßnahmen Facebook beachten muss (<a href="https://www.facebook.com/legal/terms/data_security_terms" target="_blank">https://www.facebook.com/legal/terms/data_security_terms</a>) und in der Facebook sich bereit erklärt hat die Betroffenenrechte zu erfüllen (d. h. Nutzer können z. B. Auskünfte oder Löschungsanfragen direkt an Facebook richten). Hinweis: Wenn Facebook uns Messwerte, Analysen und Berichte bereitstellt (die aggregiert sind, d. h. keine Angaben zu einzelnen Nutzern erhalten und für uns anonym sind), dann erfolgt diese Verarbeitung nicht im Rahmen der gemeinsamen Verantwortlichkeit, sondern auf Grundlage eines Auftragsverarbeitungsvertrages ("Datenverarbeitungsbedingungen ", <a href="https://www.facebook.com/legal/terms/dataprocessing" target="_blank">https://www.facebook.com/legal/terms/dataprocessing</a>) , der "Datensicherheitsbedingungen" (<a href="https://www.facebook.com/legal/terms/data_security_terms" target="_blank">https://www.facebook.com/legal/terms/data_security_terms</a>) sowie im Hinblick auf die Verarbeitung in den USA auf Grundlage von Standardvertragsklauseln ("Facebook-EU-Datenübermittlungszusatz, <a href="https://www.facebook.com/legal/EU_data_transfer_addendum" target="_blank">https://www.facebook.com/legal/EU_data_transfer_addendum</a>). Die Rechte der Nutzer (insbesondere auf Auskunft, Löschung, Widerspruch und Beschwerde bei zuständiger Aufsichtsbehörde), werden durch die Vereinbarungen mit Facebook nicht eingeschränkt.</p>
<ul class="m-elements">
<li><strong>Verarbeitete Datenarten:</strong> Nutzungsdaten (z.B. besuchte Webseiten, Interesse an Inhalten, Zugriffszeiten), Meta-/Kommunikationsdaten (z.B. Geräte-Informationen, IP-Adressen), Event-Daten (Facebook) ("Event-Daten" sind Daten, die z. B. via Facebook-Pixel (via Apps oder auf anderen Wegen) von uns an Facebook übermittelt werden können und sich auf Personen oder deren Handlungen beziehen; Zu den Daten gehören z. B. Angaben über Besuche auf Websites, Interaktionen mit Inhalten, Funktionen, Installationen von Apps, Käufe von Produkten, etc.; die Event-Daten werden zwecks Bildung von Zielgruppen für Inhalte und Werbeinformationen (Custom Audiences) verarbeitet; Event Daten beinhalten nicht die eigentlichen Inhalte (wie z. B. verfasste Kommentare), keine Login-Informationen und keine Kontaktinformationen (also keine Namen, E-Mail-Adressen und Telefonnummern). Event Daten werden durch Facebook nach maximal zwei Jahren gelöscht, die aus ihnen gebildeten Zielgruppen mit der Löschung unseres Facebook-Kontos).</li>
<li><strong>Betroffene Personen:</strong> Nutzer (z.B. Webseitenbesucher, Nutzer von Onlinediensten).</li>
<li><strong>Zwecke der Verarbeitung:</strong> Bereitstellung unseres Onlineangebotes und Nutzerfreundlichkeit, Erbringung vertragliche Leistungen und Kundenservice.</li>
<li><strong>Rechtsgrundlagen:</strong> Berechtigte Interessen (Art. 6 Abs. 1 S. 1 lit. f. DSGVO), Einwilligung (Art. 6 Abs. 1 S. 1 lit. a. DSGVO), Vertragserfüllung und vorvertragliche Anfragen (Art. 6 Abs. 1 S. 1 lit. b. DSGVO).</li>
</ul>
<p><strong>Eingesetzte Dienste und Diensteanbieter:</strong></p>
<ul class="m-elements">
<li><strong>Facebook-Plugins und -Inhalte:</strong> Facebook Social Plugins und Inhalte - Hierzu können z.B. Inhalte wie Bilder, Videos oder Texte und Schaltflächen gehören, mit denen Nutzer Inhalte dieses Onlineangebotes innerhalb von Facebook teilen können. Die Liste und das Aussehen der Facebook Social Plugins können hier eingesehen werden: <a href="https://developers.facebook.com/docs/plugins/" target="_blank">https://developers.facebook.com/docs/plugins/</a>; Dienstanbieter: Facebook Ireland Ltd., 4 Grand Canal Square, Grand Canal Harbour, Dublin 2, Irland, Mutterunternehmen: Facebook, 1 Hacker Way, Menlo Park, CA 94025, USA; Website: <a href="https://www.facebook.com" target="_blank">https://www.facebook.com</a>; Datenschutzerklärung: <a href="https://www.facebook.com/about/privacy" target="_blank">https://www.facebook.com/about/privacy</a>; Widerspruchsmöglichkeit (Opt-Out): Einstellungen für Werbeanzeigen: <a href="https://www.facebook.com/settings?tab=ads" target="_blank">https://www.facebook.com/settings?tab=ads</a>.</li>
<li><strong>OpenStreetMap:</strong> Wir binden die Landkarten des Dienstes "OpenStreetMap" ein, die auf Grundlage der Open Data Commons Open Database Lizenz (ODbL) durch die OpenStreetMap Foundation (OSMF) angeboten werden. Die Daten der Nutzer werden durch OpenStreetMap ausschließlich zu Zwecken der Darstellung der Kartenfunktionen und zur Zwischenspeicherung der gewählten Einstellungen verwendet. Zu diesen Daten können insbesondere IP-Adressen und Standortdaten der Nutzer gehören, die jedoch nicht ohne deren Einwilligung (im Regelfall im Rahmen der Einstellungen ihrer Mobilgeräte vollzogen) erhoben werden. Dienstanbieter: OpenStreetMap Foundation (OSMF); Website: <a href="https://www.openstreetmap.de" target="_blank">https://www.openstreetmap.de</a>; Datenschutzerklärung: <a href="https://wiki.openstreetmap.org/wiki/Privacy_Policy" target="_blank">https://wiki.openstreetmap.org/wiki/Privacy_Policy</a>.</li>
<li><strong>YouTube-Videos:</strong> Videoinhalte; YouTube wird über die Domain <a href="https://www.youtube-nocookie.com" target="_blank">https://www.youtube-nocookie.com</a> im sogenannten "Erweiterten Datenschutzmodus" eingebunden, wodurch keine Cookies zu Nutzeraktivitäten erhoben werden, um die Videowiedergabe zu personalisieren. Dennoch können Angaben zur Interaktion der Nutzer mit dem Video (z.B. Merken der letzten Wiedergabestelle), gespeichert werden; Dienstanbieter: Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Irland, Mutterunternehmen: Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA; Website: <a href="https://www.youtube.com" target="_blank">https://www.youtube.com</a>; Datenschutzerklärung: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>.</li>
</ul>
<h2 id="m12">Löschung von Daten</h2>
<p>Die von uns verarbeiteten Daten werden nach Maßgabe der gesetzlichen Vorgaben gelöscht, sobald deren zur Verarbeitung erlaubten Einwilligungen widerrufen werden oder sonstige Erlaubnisse entfallen (z.B., wenn der Zweck der Verarbeitung dieser Daten entfallen ist oder sie für den Zweck nicht erforderlich sind).</p>
<p>Sofern die Daten nicht gelöscht werden, weil sie für andere und gesetzlich zulässige Zwecke erforderlich sind, wird deren Verarbeitung auf diese Zwecke beschränkt. D.h., die Daten werden gesperrt und nicht für andere Zwecke verarbeitet. Das gilt z.B. für Daten, die aus handels- oder steuerrechtlichen Gründen aufbewahrt werden müssen oder deren Speicherung zur Geltendmachung, Ausübung oder Verteidigung von Rechtsansprüchen oder zum Schutz der Rechte einer anderen natürlichen oder juristischen Person erforderlich ist.</p>
<p>Unsere Datenschutzhinweise können ferner weitere Angaben zu der Aufbewahrung und Löschung von Daten beinhalten, die für die jeweiligen Verarbeitungen vorrangig gelten.</p>
<h2 id="m15">Änderung und Aktualisierung der Datenschutzerklärung</h2>
<p>Wir bitten Sie, sich regelmäßig über den Inhalt unserer Datenschutzerklärung zu informieren. Wir passen die Datenschutzerklärung an, sobald die Änderungen der von uns durchgeführten Datenverarbeitungen dies erforderlich machen. Wir informieren Sie, sobald durch die Änderungen eine Mitwirkungshandlung Ihrerseits (z.B. Einwilligung) oder eine sonstige individuelle Benachrichtigung erforderlich wird.</p>
<p>Sofern wir in dieser Datenschutzerklärung Adressen und Kontaktinformationen von Unternehmen und Organisationen angeben, bitten wir zu beachten, dass die Adressen sich über die Zeit ändern können und bitten die Angaben vor Kontaktaufnahme zu prüfen.</p>
<h2 id="m42">Begriffsdefinitionen</h2>
<p>In diesem Abschnitt erhalten Sie eine Übersicht über die in dieser Datenschutzerklärung verwendeten Begrifflichkeiten. Viele der Begriffe sind dem Gesetz entnommen und vor allem im Art. 4 DSGVO definiert. Die gesetzlichen Definitionen sind verbindlich. Die nachfolgenden Erläuterungen sollen dagegen vor allem dem Verständnis dienen. Die Begriffe sind alphabetisch sortiert.</p>
<ul class="glossary">
<li><strong>Personenbezogene Daten:</strong> "Personenbezogene Daten“ sind alle Informationen, die sich auf eine identifizierte oder identifizierbare natürliche Person (im Folgenden "betroffene Person“) beziehen; als identifizierbar wird eine natürliche Person angesehen, die direkt oder indirekt, insbesondere mittels Zuordnung zu einer Kennung wie einem Namen, zu einer Kennnummer, zu Standortdaten, zu einer Online-Kennung (z.B. Cookie) oder zu einem oder mehreren besonderen Merkmalen identifiziert werden kann, die Ausdruck der physischen, physiologischen, genetischen, psychischen, wirtschaftlichen, kulturellen oder sozialen Identität dieser natürlichen Person sind. </li>
<li><strong>Verantwortlicher:</strong> Als "Verantwortlicher“ wird die natürliche oder juristische Person, Behörde, Einrichtung oder andere Stelle, die allein oder gemeinsam mit anderen über die Zwecke und Mittel der Verarbeitung von personenbezogenen Daten entscheidet, bezeichnet. </li>
<li><strong>Verarbeitung:</strong> "Verarbeitung" ist jeder mit oder ohne Hilfe automatisierter Verfahren ausgeführte Vorgang oder jede solche Vorgangsreihe im Zusammenhang mit personenbezogenen Daten. Der Begriff reicht weit und umfasst praktisch jeden Umgang mit Daten, sei es das Erheben, das Auswerten, das Speichern, das Übermitteln oder das Löschen. </li>
</ul>
<p class="seal"><a href="https://datenschutz-generator.de/?l=de" title="Rechtstext von Dr. Schwenke - für weitere Informationen bitte anklicken." target="_blank" rel="noopener noreferrer nofollow">Erstellt mit kostenlosem Datenschutz-Generator.de von Dr. Thomas Schwenke</a></p>
`,en:""}},rae={name:"DataPrivacyDialog",components:{DialogWidget:hn},data(){return{dataPrivacyContent:Ed.dataPrivacy[this.$i18n.locale]}},computed:{sanitizedContent(){return qa.sanitize(this.dataPrivacyContent)}},watch:{"$i18n.locale"(e){this.dataPrivacyContent=Ed.dataPrivacy[e]}},methods:{open(){this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()},handleOk(){this.closeDialog()}}},sae=["innerHTML"];function aae(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"dataPrivacy.title",isTitleTranslated:!0,icon:"privacy24.png","show-close":!0,buttons:[{text:"Ok",action:"close"}],modal:!1,onClose:s.closeDialog,onOk:s.handleOk,name:"DataPrivacyDialog"},{default:ze(()=>[d("div",{innerHTML:s.sanitizedContent},null,8,sae)]),_:1},8,["onClose","onOk"])}const oae=Oe(rae,[["render",aae],["__scopeId","data-v-bf01f553"]]),lae={name:"ImprintDialog",components:{DialogWidget:hn},data(){return{imprintContent:Ed.imprint[this.$i18n.locale]}},computed:{sanitizedContent(){return qa.sanitize(this.imprintContent)}},watch:{"$i18n.locale"(e){this.imprintContent=Ed.imprint[e]}},methods:{open(){this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()},handleOk(){this.closeDialog()}}},uae=["innerHTML"];function cae(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"imprint.title",isTitleTranslated:!0,icon:"imprint24.png","show-close":!0,buttons:[{text:"Ok",action:"close"}],modal:!1,onClose:s.closeDialog,onOk:s.handleOk,name:"ImprintDialog"},{default:ze(()=>[d("div",{innerHTML:s.sanitizedContent},null,8,uae)]),_:1},8,["onClose","onOk"])}const dae=Oe(lae,[["render",cae],["__scopeId","data-v-17ddd291"]]),fae={name:"ShowImageDialog",components:{DialogWidget:hn},data(){return{image:null,imageTitle:""}},computed:{buttons(){return[{text:this.$t("socialnetwork.gallery.imagedialog.close"),action:this.closeDialog}]}},methods:{open(e){this.image=e,this.imageTitle=e.title,this.$refs.dialog.open()},closeDialog(){this.$refs.dialog.close()}}},hae={class:"image-container"},mae=["src"],gae={class:"form-group"},pae={for:"imageTitle"},vae={type:"text"};function yae(e,t,n,i,r,s){const a=be("DialogWidget");return S(),He(a,{ref:"dialog",title:"socialnetwork.gallery.show_image_dialog.title",icon:"image16.png","show-close":!0,buttons:s.buttons,modal:!0,isTitleTranslated:!0,onClose:s.closeDialog,name:"ImageDialog"},{default:ze(()=>[d("div",null,[d("div",hae,[d("img",{src:r.image.url,alt:"Image",style:{maxWidth:"600px",maxHeight:"600px"}},null,8,mae)]),d("div",gae,[d("label",pae,[ge(p(e.$t("socialnetwork.gallery.imagedialog.image_title"))+" ",1),d("span",vae,p(r.imageTitle),1)])])])]),_:1},8,["buttons","onClose"])}const bae=Oe(fae,[["render",yae],["__scopeId","data-v-619d238d"]]),kae={name:"App",mounted(){document.title="yourPart"},computed:{...Rn(["isLoggedIn","user"])},components:{AppHeader:aM,AppNavigation:xre,AppContent:Ore,AppFooter:Hre,AnswerContact:Yre,RandomChatDialog:Up,CreateFolderDialog:lse,EditImageDialog:kse,UserProfileDialog:Qse,ChooseDialog:rf,ContactDialog:iae,DataPrivacyDialog:oae,ErrorDialog:Tf,ImprintDialog:dae,ShowImageDialog:bae,MessageDialog:Cf,MultiChatDialog:NE},created(){this.$i18n.locale=this.$store.getters.language}},wae={id:"app"};function Sae(e,t,n,i,r,s){const a=be("AppHeader"),o=be("AppNavigation"),l=be("AppContent"),u=be("AppFooter"),c=be("AnswerContact"),f=be("RandomChatDialog"),h=be("CreateFolderDialog"),m=be("EditImageDialog"),g=be("UserProfileDialog"),y=be("ChooseDialog"),b=be("ContactDialog"),k=be("DataPrivacyDialog"),w=be("ErrorDialog"),E=be("ImprintDialog"),I=be("ShowImageDialog"),D=be("MessageDialog"),x=be("MultiChatDialog");return S(),_("div",wae,[v(a),e.isLoggedIn&&e.user.active?(S(),He(o,{key:0})):te("",!0),v(l),v(u),v(c,{ref:"answerContactDialog"},null,512),v(f,{ref:"randomChatDialog"},null,512),v(h,{ref:"createFolderDialog"},null,512),v(m,{ref:"editImageDialog"},null,512),v(g,{ref:"userProfileDialog",userId:"0"},null,512),v(y,{ref:"chooseDialog"},null,512),v(b,{ref:"contactDialog"},null,512),v(k,{ref:"dataPrivacyDialog"},null,512),v(w,{ref:"errorDialog"},null,512),v(E,{ref:"imprintDialog"},null,512),v(I,{ref:"showImageDialog"},null,512),v(D,{ref:"messageDialog"},null,512),v(x,{ref:"multiChatDialog"},null,512)])}const _ae=Oe(kae,[["render",Sae]]);function ei(e,t){let n;function i(){n=Mu(),n.run(()=>t.length?t(()=>{n==null||n.stop(),i()}):t())}Ie(e,r=>{r&&!n?i():r||(n==null||n.stop(),n=void 0)},{immediate:!0}),qn(()=>{n==null||n.stop()})}const ht=typeof window<"u",xv=ht&&"IntersectionObserver"in window,Cae=ht&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),T1=ht&&"EyeDropper"in window;function E1(e,t,n){Tae(e,t),t.set(e,n)}function Tae(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Eae(e,t,n){return e.set(RE(e,t),n),n}function na(e,t){return e.get(RE(e,t))}function RE(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 FE(e,t,n){const i=t.length-1;if(i<0)return e===void 0?n:e;for(let r=0;r<i;r++){if(e==null)return n;e=e[t[r]]}return e==null||e[t[i]]===void 0?n:e[t[i]]}function Dr(e,t){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 n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(i=>Dr(e[i],t[i]))}function La(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(/^\./,""),FE(e,t.split("."),n))}function nn(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 r=t(e,n);return typeof r>"u"?n:r}if(typeof t=="string")return La(e,t,n);if(Array.isArray(t))return FE(e,t,n);if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}function kr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,i)=>t+i)}function Pe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function Dv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function I1(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Pv(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 A1=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Cg=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 BE(e){return Object.keys(e)}function ma(e,t){return t.every(n=>e.hasOwnProperty(n))}function Ov(e,t){const n={},i=new Set(Object.keys(e));for(const r of t)i.has(r)&&(n[r]=e[r]);return n}function Tg(e,t,n){const i=Object.create(null),r=Object.create(null);for(const s in e)t.some(a=>a instanceof RegExp?a.test(s):a===s)?i[s]=e[s]:r[s]=e[s];return[i,r]}function Zt(e,t){const n={...e};return t.forEach(i=>delete n[i]),n}function Af(e,t){const n={};return t.forEach(i=>n[i]=e[i]),n}const zE=/^on[^a-z]/,xf=e=>zE.test(e),Iae=["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"],Aae=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function xae(e){return e.isComposing&&Aae.includes(e.key)}function Js(e){const[t,n]=Tg(e,[zE]),i=Zt(t,Iae),[r,s]=Tg(n,["class","style","id",/^data-/]);return Object.assign(r,t),Object.assign(s,i),[r,s]}function Mt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dae(e,t){let n=0;const i=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];clearTimeout(n),n=setTimeout(()=>e(...s),qt(t))};return i.clear=()=>{clearTimeout(n)},i.immediate=e,i}function Yt(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 x1(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function D1(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 P1(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function Pae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let i=0;for(;i<e.length;)n.push(e.substr(i,t)),i+=t;return n}function O1(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 i=-1;for(;Math.abs(e)>=t&&i<n.length-1;)e/=t,++i;return`${e.toFixed(1)} ${n[i]}B`}function jn(){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 i={};for(const r in e)i[r]=e[r];for(const r in t){const s=e[r],a=t[r];if(I1(s)&&I1(a)){i[r]=jn(s,a,n);continue}if(n&&Array.isArray(s)&&Array.isArray(a)){i[r]=n(s,a);continue}i[r]=a}return i}function UE(e){return e.map(t=>t.type===U?UE(t.children):t).flat()}function Ca(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ca.cache.has(e))return Ca.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ca.cache.set(e,t),t}Ca.cache=new Map;function Eo(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Eo(e,n)).flat(1);if(t.suspense)return Eo(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Eo(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Eo(e,t.component.subTree).flat(1)}return[]}var Ac=new WeakMap,po=new WeakMap;class Oae{constructor(t){E1(this,Ac,[]),E1(this,po,0),this.size=t}push(t){na(Ac,this)[na(po,this)]=t,Eae(po,this,(na(po,this)+1)%this.size)}values(){return na(Ac,this).slice(na(po,this)).concat(na(Ac,this).slice(0,na(po,this)))}}function Mae(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function Mv(e){const t=dn({}),n=T(e);return Wt(()=>{for(const i in n.value)t[i]=n.value[i]},{flush:"sync"}),Ha(t)}function Id(e,t){return e.includes(t)}function WE(e){return e[2].toLowerCase()+e.slice(3)}const wn=()=>[Function,Array];function M1(e,t){return t="on"+Ar(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function $v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(Array.isArray(e))for(const r of e)r(...n);else typeof e=="function"&&e(...n)}function ku(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function HE(e,t,n){let i,r=e.indexOf(document.activeElement);const s=t==="next"?1:-1;do r+=s,i=e[r];while((!i||i.offsetParent==null||!((n==null?void 0:n(i))??!0))&&r<e.length&&r>=0);return i}function Ta(e,t){var i,r,s,a;const n=ku(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((i=n[0])==null||i.focus());else if(t==="first")(r=n[0])==null||r.focus();else if(t==="last")(s=n.at(-1))==null||s.focus();else if(typeof t=="number")(a=n[t])==null||a.focus();else{const o=HE(n,t);o?o.focus():Ta(e,t==="next"?"first":"last")}}function xc(e){return e==null||typeof e=="string"&&e.trim()===""}function jE(){}function Yo(e,t){if(!(ht&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Df(e){return e.some(t=>tu(t)?t.type===Qn?!1:t.type!==U||Df(t.children):!0)?e:null}function $ae(e,t){if(!ht||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Vae(e,t){const n=e.clientX,i=e.clientY,r=t.getBoundingClientRect(),s=r.left,a=r.top,o=r.right,l=r.bottom;return n>=s&&n<=o&&i>=a&&i<=l}function Ad(){const e=Ae(),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:()=>Pv(e.value)}),t}function xd(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}const GE=["top","bottom"],Lae=["start","end","left","right"];function Eg(e,t){let[n,i]=e.split(" ");return i||(i=Id(GE,n)?"start":Id(Lae,n)?"top":"center"),{side:Ig(n,t),align:Ig(i,t)}}function Ig(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function am(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function om(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function $1(e){return{side:e.align,align:e.side}}function V1(e){return Id(GE,e.side)?"y":"x"}class Ea{constructor(t){let{x:n,y:i,width:r,height:s}=t;this.x=n,this.y=i,this.width=r,this.height=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 L1(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 qE(e){return Array.isArray(e)?new Ea({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Vv(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),i=n.transform;if(i){let r,s,a,o,l;if(i.startsWith("matrix3d("))r=i.slice(9,-1).split(/, /),s=+r[0],a=+r[5],o=+r[12],l=+r[13];else if(i.startsWith("matrix("))r=i.slice(7,-1).split(/, /),s=+r[0],a=+r[3],o=+r[4],l=+r[5];else return new Ea(t);const u=n.transformOrigin,c=t.x-o-(1-s)*parseFloat(u),f=t.y-l-(1-a)*parseFloat(u.slice(u.indexOf(" ")+1)),h=s?t.width/s:e.offsetWidth+1,m=a?t.height/a:e.offsetHeight+1;return new Ea({x:c,y:f,width:h,height:m})}else return new Ea(t)}function ga(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let i;try{i=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(r=>{i.onfinish=()=>{r(i)}})),i}const Xc=new WeakMap;function Nae(e,t){Object.keys(t).forEach(n=>{if(xf(n)){const i=WE(n),r=Xc.get(e);if(t[n]==null)r==null||r.forEach(s=>{const[a,o]=s;a===i&&(e.removeEventListener(i,o),r.delete(s))});else if(!r||![...r].some(s=>s[0]===i&&s[1]===t[n])){e.addEventListener(i,t[n]);const s=r||new Set;s.add([i,t[n]]),Xc.has(e)||Xc.set(e,s)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Rae(e,t){Object.keys(t).forEach(n=>{if(xf(n)){const i=WE(n),r=Xc.get(e);r==null||r.forEach(s=>{const[a,o]=s;a===i&&(e.removeEventListener(i,o),r.delete(s))})}else e.removeAttribute(n)})}const vo=2.4,N1=.2126729,R1=.7151522,F1=.072175,Fae=.55,Bae=.58,zae=.57,Uae=.62,Dc=.03,B1=1.45,Wae=5e-4,Hae=1.25,jae=1.25,z1=.078,U1=12.82051282051282,Pc=.06,W1=.001;function H1(e,t){const n=(e.r/255)**vo,i=(e.g/255)**vo,r=(e.b/255)**vo,s=(t.r/255)**vo,a=(t.g/255)**vo,o=(t.b/255)**vo;let l=n*N1+i*R1+r*F1,u=s*N1+a*R1+o*F1;if(l<=Dc&&(l+=(Dc-l)**B1),u<=Dc&&(u+=(Dc-u)**B1),Math.abs(u-l)<Wae)return 0;let c;if(u>l){const f=(u**Fae-l**Bae)*Hae;c=f<W1?0:f<z1?f-f*U1*Pc:f-Pc}else{const f=(u**Uae-l**zae)*jae;c=f>-W1?0:f>-z1?f-f*U1*Pc:f+Pc}return c*100}function Gae(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Dd=.20689655172413793,qae=e=>e>Dd**3?Math.cbrt(e):e/(3*Dd**2)+4/29,Kae=e=>e>Dd?e**3:3*Dd**2*(e-4/29);function KE(e){const t=qae,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function YE(e){const t=Kae,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Yae=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Jae=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Xae=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Zae=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function JE(e){const t=Array(3),n=Jae,i=Yae;for(let r=0;r<3;++r)t[r]=Math.round(Yt(n(i[r][0]*e[0]+i[r][1]*e[1]+i[r][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Lv(e){let{r:t,g:n,b:i}=e;const r=[0,0,0],s=Zae,a=Xae;t=s(t/255),n=s(n/255),i=s(i/255);for(let o=0;o<3;++o)r[o]=a[o][0]*t+a[o][1]*n+a[o][2]*i;return r}function Ag(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Qae(e){return Ag(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const j1=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,eoe={rgb:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),rgba:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),hsl:(e,t,n,i)=>G1({h:e,s:t,l:n,a:i}),hsla:(e,t,n,i)=>G1({h:e,s:t,l:n,a:i}),hsv:(e,t,n,i)=>Zr({h:e,s:t,v:n,a:i}),hsva:(e,t,n,i)=>Zr({h:e,s:t,v:n,a:i})};function zi(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&j1.test(e)){const{groups:t}=e.match(j1),{fn:n,values:i}=t,r=i.split(/,\s*/).map(s=>s.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(s)/100:parseFloat(s));return eoe[n](...r)}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),tI(t)}else if(typeof e=="object"){if(ma(e,["r","g","b"]))return e;if(ma(e,["h","s","l"]))return Zr(Nv(e));if(ma(e,["h","s","v"]))return Zr(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 Zr(e){const{h:t,s:n,v:i,a:r}=e,s=o=>{const l=(o+t/60)%6;return i-i*n*Math.max(Math.min(l,4-l,1),0)},a=[s(5),s(3),s(1)].map(o=>Math.round(o*255));return{r:a[0],g:a[1],b:a[2],a:r}}function G1(e){return Zr(Nv(e))}function Pf(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=Math.min(t,n,i);let a=0;r!==s&&(r===t?a=60*(0+(n-i)/(r-s)):r===n?a=60*(2+(i-t)/(r-s)):r===i&&(a=60*(4+(t-n)/(r-s)))),a<0&&(a=a+360);const o=r===0?0:(r-s)/r,l=[a,o,r];return{h:l[0],s:l[1],v:l[2],a:e.a}}function XE(e){const{h:t,s:n,v:i,a:r}=e,s=i-i*n/2,a=s===1||s===0?0:(i-s)/Math.min(s,1-s);return{h:t,s:a,l:s,a:r}}function Nv(e){const{h:t,s:n,l:i,a:r}=e,s=i+n*Math.min(i,1-i),a=s===0?0:2-2*i/s;return{h:t,s:a,v:s,a:r}}function ZE(e){let{r:t,g:n,b:i,a:r}=e;return r===void 0?`rgb(${t}, ${n}, ${i})`:`rgba(${t}, ${n}, ${i}, ${r})`}function QE(e){return ZE(Zr(e))}function Oc(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function eI(e){let{r:t,g:n,b:i,a:r}=e;return`#${[Oc(t),Oc(n),Oc(i),r!==void 0?Oc(Math.round(r*255)):""].join("")}`}function tI(e){e=toe(e);let[t,n,i,r]=Pae(e,2).map(s=>parseInt(s,16));return r=r===void 0?r:r/255,{r:t,g:n,b:i,a:r}}function nI(e){const t=tI(e);return Pf(t)}function iI(e){return eI(Zr(e))}function toe(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=D1(D1(e,6),8,"F")),e}function noe(e,t){const n=KE(Lv(e));return n[0]=n[0]+t*10,JE(YE(n))}function ioe(e,t){const n=KE(Lv(e));return n[0]=n[0]-t*10,JE(YE(n))}function xg(e){const t=zi(e);return Lv(t)[1]}function roe(e,t){const n=xg(e),i=xg(t),r=Math.max(n,i),s=Math.min(n,i);return(r+.05)/(s+.05)}function rI(e){const t=Math.abs(H1(zi(0),zi(e)));return Math.abs(H1(zi(16777215),zi(e)))>Math.min(t,50)?"#fff":"#000"}function j(e,t){return n=>Object.keys(e).reduce((i,r)=>{const a=typeof e[r]=="object"&&e[r]!=null&&!Array.isArray(e[r])?e[r]:{type:e[r]};return n&&r in n?i[r]={...a,default:n[r]}:i[r]=a,t&&!i[r].source&&(i[r].source=t),i},{})}const Ve=j({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Ft(e,t){const n=Xr();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Pr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Ft(e).type;return Ca((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let sI=0,Zc=new WeakMap;function In(){const e=Ft("getUid");if(Zc.has(e))return Zc.get(e);{const t=sI++;return Zc.set(e,t),t}}In.reset=()=>{sI=0,Zc=new WeakMap};function soe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ft("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Jo=Symbol.for("vuetify:defaults");function aoe(e){return ke(e)}function Rv(){const e=Ze(Jo);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Rt(e,t){const n=Rv(),i=ke(e),r=T(()=>{if(qt(t==null?void 0:t.disabled))return n.value;const a=qt(t==null?void 0:t.scoped),o=qt(t==null?void 0:t.reset),l=qt(t==null?void 0:t.root);if(i.value==null&&!(a||o||l))return n.value;let u=jn(i.value,{prev:n.value});if(a)return u;if(o||l){const c=Number(o||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=jn(jn(u,{prev:u}),u[l])),u}return u.prev?jn(u.prev,u):u});return kt(Jo,r),r}function ooe(e,t){var n,i;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((i=e.props)==null?void 0:i[Ca(t)])<"u"}function loe(){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]:Rv();const i=Ft("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const r=T(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),s=new Proxy(e,{get(l,u){var f,h,m,g,y,b,k;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(f=r.value)==null?void 0:f[u],c].filter(w=>w!=null):typeof u=="string"&&!ooe(i.vnode,u)?((h=r.value)==null?void 0:h[u])!==void 0?(m=r.value)==null?void 0:m[u]:((y=(g=n.value)==null?void 0:g.global)==null?void 0:y[u])!==void 0?(k=(b=n.value)==null?void 0:b.global)==null?void 0:k[u]:c:c}}),a=Ae();Wt(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});a.value=l.length?Object.fromEntries(l):void 0}else a.value=void 0});function o(){const l=soe(Jo,i);kt(Jo,T(()=>a.value?jn((l==null?void 0:l.value)??{},a.value):l==null?void 0:l.value))}return{props:s,provideSubDefaults:o}}function Di(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=j(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(i){return Ov(i,t)},e.props._as=String,e.setup=function(i,r){const s=Rv();if(!s.value)return e._setup(i,r);const{props:a,provideSubDefaults:o}=loe(i,i._as??e.name,s),l=e._setup(a,r);return o(),l}}return e}function ae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Di:ja)(t)}function uoe(e,t){return t.props=e,t}function Or(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ae()({name:n??Ar(Ii(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Ve()},setup(i,r){let{slots:s}=r;return()=>{var a;return pi(i.tag,{class:[e,i.class],style:i.style},(a=s.default)==null?void 0:a.call(s))}}})}function aI(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 wu="cubic-bezier(0.4, 0, 0.2, 1)",coe="cubic-bezier(0.0, 0, 0.2, 1)",doe="cubic-bezier(0.4, 0, 1, 1)";function q1(e,t,n){return Object.keys(e).filter(i=>xf(i)&&i.endsWith(t)).reduce((i,r)=>(i[r.slice(0,-t.length)]=s=>e[r](s,n(s)),i),{})}function Fv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?foe(e):Bv(e))return e;e=e.parentElement}return document.scrollingElement}function Pd(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Bv(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Bv(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function foe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function hoe(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function he(e){const t=Ft("useRender");t.render=e}function Be(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const s=Ft("useProxiedModel"),a=ke(e[t]!==void 0?e[t]:n),o=Ca(t),u=T(o!==t?()=>{var f,h,m,g;return e[t],!!(((f=s.vnode.props)!=null&&f.hasOwnProperty(t)||(h=s.vnode.props)!=null&&h.hasOwnProperty(o))&&((m=s.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${t}`)||(g=s.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${o}`)))}:()=>{var f,h;return e[t],!!((f=s.vnode.props)!=null&&f.hasOwnProperty(t)&&((h=s.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)))});ei(()=>!u.value,()=>{Ie(()=>e[t],f=>{a.value=f})});const c=T({get(){const f=e[t];return i(u.value?f:a.value)},set(f){const h=r(f),m=Ke(u.value?e[t]:a.value);m===h||i(m)===f||(a.value=h,s==null||s.emit(`update:${t}`,h))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:a.value}),c}const moe={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"}},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)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},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"}},K1="$vuetify.",Y1=(e,t)=>e.replace(/\{(\d+)\}/g,(n,i)=>String(t[+i])),oI=(e,t,n)=>function(i){for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];if(!i.startsWith(K1))return Y1(i,s);const o=i.replace(K1,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=La(l,o,null);return c||(`${i}${e.value}`,c=La(u,o,null)),c||(c=i),typeof c!="string"&&(c=i),Y1(c,s)};function lI(e,t){return(n,i)=>new Intl.NumberFormat([e.value,t.value],i).format(n)}function lm(e,t,n){const i=Be(e,t,e[t]??n.value);return i.value=e[t]??n.value,Ie(n,r=>{e[t]==null&&(i.value=n.value)}),i}function uI(e){return t=>{const n=lm(t,"locale",e.current),i=lm(t,"fallback",e.fallback),r=lm(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:i,messages:r,t:oI(n,i,r),n:lI(n,i),provide:uI({current:n,fallback:i,messages:r})}}}function goe(e){const t=Ae((e==null?void 0:e.locale)??"en"),n=Ae((e==null?void 0:e.fallback)??"en"),i=ke({en:moe,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:i,t:oI(t,n,i),n:lI(t,n),provide:uI({current:t,fallback:n,messages:i})}}const Xo=Symbol.for("vuetify:locale");function poe(e){return e.name!=null}function voe(e){const t=e!=null&&e.adapter&&poe(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:goe(e),n=koe(t,e);return{...t,...n}}function Ht(){const e=Ze(Xo);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function yoe(e){const t=Ze(Xo);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),i=woe(n,t.rtl,e),r={...n,...i};return kt(Xo,r),r}function boe(){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 koe(e,t){const n=ke((t==null?void 0:t.rtl)??boe()),i=T(()=>n.value[e.current.value]??!1);return{isRtl:i,rtl:n,rtlClasses:T(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function woe(e,t,n){const i=T(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:i,rtl:t,rtlClasses:T(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function on(){const e=Ze(Xo);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const Of={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function Soe(e,t,n){const i=[];let r=[];const s=cI(e),a=dI(e),o=n??Of[t.slice(-2).toUpperCase()]??0,l=(s.getDay()-o+7)%7,u=(a.getDay()-o+7)%7;for(let c=0;c<l;c++){const f=new Date(s);f.setDate(f.getDate()-(l-c)),r.push(f)}for(let c=1;c<=a.getDate();c++){const f=new Date(e.getFullYear(),e.getMonth(),c);r.push(f),r.length===7&&(i.push(r),r=[])}for(let c=1;c<7-u;c++){const f=new Date(a);f.setDate(f.getDate()+c),r.push(f)}return r.length>0&&i.push(r),i}function _oe(e,t,n){const i=n??Of[t.slice(-2).toUpperCase()]??0,r=new Date(e);for(;r.getDay()!==i;)r.setDate(r.getDate()-1);return r}function Coe(e,t){const n=new Date(e),i=((Of[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==i;)n.setDate(n.getDate()+1);return n}function cI(e){return new Date(e.getFullYear(),e.getMonth(),1)}function dI(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Toe(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Eoe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function fI(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Eoe.test(e))return Toe(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const J1=new Date(2e3,0,2);function Ioe(e,t){const n=t??Of[e.slice(-2).toUpperCase()]??0;return kr(7).map(i=>{const r=new Date(J1);return r.setDate(J1.getDate()+n+i),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function Aoe(e,t,n,i){const r=fI(e)??new Date,s=i==null?void 0:i[t];if(typeof s=="function")return s(r,t,n);let a={};switch(t){case"fullDate":a={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":a={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const o=r.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(r);return`${o} ${l}`;case"normalDateWithWeekday":a={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":a={month:"short",day:"numeric"};break;case"year":a={year:"numeric"};break;case"month":a={month:"long"};break;case"monthShort":a={month:"short"};break;case"monthAndYear":a={month:"long",year:"numeric"};break;case"monthAndDate":a={month:"long",day:"numeric"};break;case"weekday":a={weekday:"long"};break;case"weekdayShort":a={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(r.getDate());case"hours12h":a={hour:"numeric",hour12:!0};break;case"hours24h":a={hour:"numeric",hour12:!1};break;case"minutes":a={minute:"numeric"};break;case"seconds":a={second:"numeric"};break;case"fullTime":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":a={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:a=s??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,a).format(r)}function xoe(e,t){const n=e.toJsDate(t),i=n.getFullYear(),r=P1(String(n.getMonth()+1),2,"0"),s=P1(String(n.getDate()),2,"0");return`${i}-${r}-${s}`}function Doe(e){const[t,n,i]=e.split("-").map(Number);return new Date(t,n-1,i)}function Poe(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Ooe(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Moe(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function $oe(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Voe(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Loe(e){return e.getFullYear()}function Noe(e){return e.getMonth()}function Roe(e){return e.getDate()}function Foe(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Boe(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function zoe(e){return e.getHours()}function Uoe(e){return e.getMinutes()}function Woe(e){return new Date(e.getFullYear(),0,1)}function Hoe(e){return new Date(e.getFullYear(),11,31)}function joe(e,t){return Od(e,t[0])&&Koe(e,t[1])}function Goe(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Od(e,t){return e.getTime()>t.getTime()}function qoe(e,t){return Od(Dg(e),Dg(t))}function Koe(e,t){return e.getTime()<t.getTime()}function X1(e,t){return e.getTime()===t.getTime()}function Yoe(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Joe(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Xoe(e,t){return e.getFullYear()===t.getFullYear()}function Zoe(e,t,n){const i=new Date(e),r=new Date(t);switch(n){case"years":return i.getFullYear()-r.getFullYear();case"quarters":return Math.floor((i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12)/4);case"months":return i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12;case"weeks":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24));case"hours":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60));case"minutes":return Math.floor((i.getTime()-r.getTime())/(1e3*60));case"seconds":return Math.floor((i.getTime()-r.getTime())/1e3);default:return i.getTime()-r.getTime()}}function Qoe(e,t){const n=new Date(e);return n.setHours(t),n}function ele(e,t){const n=new Date(e);return n.setMinutes(t),n}function tle(e,t){const n=new Date(e);return n.setMonth(t),n}function nle(e,t){const n=new Date(e);return n.setDate(t),n}function ile(e,t){const n=new Date(e);return n.setFullYear(t),n}function Dg(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function rle(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class sle{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return fI(t)}toJsDate(t){return t}toISO(t){return xoe(this,t)}parseISO(t){return Doe(t)}addMinutes(t,n){return Poe(t,n)}addHours(t,n){return Ooe(t,n)}addDays(t,n){return Moe(t,n)}addWeeks(t,n){return $oe(t,n)}addMonths(t,n){return Voe(t,n)}getWeekArray(t,n){return Soe(t,this.locale,n?Number(n):void 0)}startOfWeek(t,n){return _oe(t,this.locale,n?Number(n):void 0)}endOfWeek(t){return Coe(t,this.locale)}startOfMonth(t){return cI(t)}endOfMonth(t){return dI(t)}format(t,n){return Aoe(t,n,this.locale,this.formats)}isEqual(t,n){return X1(t,n)}isValid(t){return Goe(t)}isWithinRange(t,n){return joe(t,n)}isAfter(t,n){return Od(t,n)}isAfterDay(t,n){return qoe(t,n)}isBefore(t,n){return!Od(t,n)&&!X1(t,n)}isSameDay(t,n){return Yoe(t,n)}isSameMonth(t,n){return Joe(t,n)}isSameYear(t,n){return Xoe(t,n)}setMinutes(t,n){return ele(t,n)}setHours(t,n){return Qoe(t,n)}setMonth(t,n){return tle(t,n)}setDate(t,n){return nle(t,n)}setYear(t,n){return ile(t,n)}getDiff(t,n,i){return Zoe(t,n,i)}getWeekdays(t){return Ioe(this.locale,t?Number(t):void 0)}getYear(t){return Loe(t)}getMonth(t){return Noe(t)}getDate(t){return Roe(t)}getNextMonth(t){return Foe(t)}getPreviousMonth(t){return Boe(t)}getHours(t){return zoe(t)}getMinutes(t){return Uoe(t)}startOfDay(t){return Dg(t)}endOfDay(t){return rle(t)}startOfYear(t){return Woe(t)}endOfYear(t){return Hoe(t)}}const hI=Symbol.for("vuetify:date-options"),Z1=Symbol.for("vuetify:date-adapter");function ale(e,t){const n=jn({adapter:sle,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:mI(n,t)}}function mI(e,t){const n=dn(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Ie(t.current,i=>{n.locale=e.locale[i]??i??n.locale}),n}function Hu(){const e=Ze(hI);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=Ht();return mI(e,t)}function ole(e,t){const n=e.toJsDate(t);let i=n.getFullYear(),r=new Date(i,0,1);if(n<r)i=i-1,r=new Date(i,0,1);else{const o=new Date(i+1,0,1);n>=o&&(i=i+1,r=o)}const s=Math.abs(n.getTime()-r.getTime()),a=Math.ceil(s/(1e3*60*60*24));return Math.floor(a/7)+1}const Mf=["sm","md","lg","xl","xxl"],Pg=Symbol.for("vuetify:display"),Q1={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},lle=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q1;return jn(Q1,e)};function eS(e){return ht&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function tS(e){return ht&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function nS(e){const t=ht&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const i=n(/android/i),r=n(/iphone|ipad|ipod/i),s=n(/cordova/i),a=n(/electron/i),o=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),h=n(/mac/i),m=n(/linux/i);return{android:i,ios:r,cordova:s,electron:a,chrome:o,edge:l,firefox:u,opera:c,win:f,mac:h,linux:m,touch:Cae,ssr:t==="ssr"}}function ule(e,t){const{thresholds:n,mobileBreakpoint:i}=lle(e),r=Ae(tS(t)),s=Ae(nS(t)),a=dn({}),o=Ae(eS(t));function l(){r.value=tS(),o.value=eS()}function u(){l(),s.value=nS()}return Wt(()=>{const c=o.value<n.sm,f=o.value<n.md&&!c,h=o.value<n.lg&&!(f||c),m=o.value<n.xl&&!(h||f||c),g=o.value<n.xxl&&!(m||h||f||c),y=o.value>=n.xxl,b=c?"xs":f?"sm":h?"md":m?"lg":g?"xl":"xxl",k=typeof i=="number"?i:n[i],w=o.value<k;a.xs=c,a.sm=f,a.md=h,a.lg=m,a.xl=g,a.xxl=y,a.smAndUp=!c,a.mdAndUp=!(c||f),a.lgAndUp=!(c||f||h),a.xlAndUp=!(c||f||h||m),a.smAndDown=!(h||m||g||y),a.mdAndDown=!(m||g||y),a.lgAndDown=!(g||y),a.xlAndDown=!y,a.name=b,a.height=r.value,a.width=o.value,a.mobile=w,a.mobileBreakpoint=i,a.platform=s.value,a.thresholds=n}),ht&&window.addEventListener("resize",l,{passive:!0}),{...Ha(a),update:u,ssr:!!t}}const Xa=j({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Yi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();const n=Ze(Pg);if(!n)throw new Error("Could not find Vuetify display injection");const i=T(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const s=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.value<s}),r=T(()=>t?{[`${t}--mobile`]:i.value}:{});return{...n,displayClasses:r,mobile:i}}const gI=Symbol.for("vuetify:goto");function pI(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{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}}}function cle(e){return zv(e)??(document.scrollingElement||document.body)}function zv(e){return typeof e=="string"?document.querySelector(e):Pv(e)}function um(e,t,n){if(typeof e=="number")return t&&n?-e:e;let i=zv(e),r=0;for(;i;)r+=t?i.offsetLeft:i.offsetTop,i=i.offsetParent;return r}function dle(e,t){return{rtl:t.isRtl,options:jn(pI(),e)}}async function iS(e,t,n,i){const r=n?"scrollLeft":"scrollTop",s=jn((i==null?void 0:i.options)??pI(),t),a=i==null?void 0:i.rtl.value,o=(typeof e=="number"?e:zv(e))??0,l=s.container==="parent"&&o instanceof HTMLElement?o.parentElement:cle(s.container),u=typeof s.easing=="function"?s.easing:s.patterns[s.easing];if(!u)throw new TypeError(`Easing function "${s.easing}" not found.`);let c;if(typeof o=="number")c=um(o,n,a);else if(c=um(o,n,a)-um(l,n,a),s.layout){const g=window.getComputedStyle(o).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=s.offset,c=hle(l,c,!!a,!!n);const f=l[r]??0;if(c===f)return Promise.resolve(c);const h=performance.now();return new Promise(m=>requestAnimationFrame(function g(y){const k=(y-h)/s.duration,w=Math.floor(f+(c-f)*u(Yt(k,0,1)));if(l[r]=w,k>=1&&Math.abs(w-l[r])<10)return m(c);if(k>2)return m(l[r]);requestAnimationFrame(g)}))}function fle(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Ze(gI),{isRtl:n}=on();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const i={...t,rtl:T(()=>t.rtl.value||n.value)};async function r(s,a){return iS(s,jn(e,a),!1,i)}return r.horizontal=async(s,a)=>iS(s,jn(e,a),!0,i),r}function hle(e,t,n,i){const{scrollWidth:r,scrollHeight:s}=e,[a,o]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return i?n?(l=-(r-a),u=0):(l=0,u=r-a):(l=0,u=s+-o),Math.max(Math.min(t,u),l)}const mle={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",eyeDropper:"mdi-eyedropper"},gle={component:e=>pi(Wv,{...e,class:"mdi"})},je=[String,Function,Object,Array],Og=Symbol.for("vuetify:icons"),$f=j({icon:{type:je},tag:{type:String,required:!0}},"icon"),Mg=ae()({name:"VComponentIcon",props:$f(),setup(e,t){let{slots:n}=t;return()=>{const i=e.icon;return v(e.tag,null,{default:()=>{var r;return[e.icon?v(i,null,null):(r=n.default)==null?void 0:r.call(n)]}})}}}),Uv=Di({name:"VSvgIcon",inheritAttrs:!1,props:$f(),setup(e,t){let{attrs:n}=t;return()=>v(e.tag,fe(n,{style:null}),{default:()=>[v("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(i=>Array.isArray(i)?v("path",{d:i[0],"fill-opacity":i[1]},null):v("path",{d:i},null)):v("path",{d:e.icon},null)])]})}}),ple=Di({name:"VLigatureIcon",props:$f(),setup(e){return()=>v(e.tag,null,{default:()=>[e.icon]})}}),Wv=Di({name:"VClassIcon",props:$f(),setup(e){return()=>v(e.tag,{class:e.icon},null)}});function vle(){return{svg:{component:Uv},class:{component:Wv}}}function yle(e){const t=vle(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=gle),jn({defaultSet:n,sets:t,aliases:{...mle,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)}const ble=e=>{const t=Ze(Og);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:T(()=>{var l;const i=qt(e);if(!i)return{component:Mg};let r=i;if(typeof r=="string"&&(r=r.trim(),r.startsWith("$")&&(r=(l=t.aliases)==null?void 0:l[r.slice(1)])),Array.isArray(r))return{component:Uv,icon:r};if(typeof r!="string")return{component:Mg,icon:r};const s=Object.keys(t.sets).find(u=>typeof r=="string"&&r.startsWith(`${u}:`)),a=s?r.slice(s.length+1):r;return{component:t.sets[s??t.defaultSet].component,icon:a}})}},Su=Symbol.for("vuetify:theme"),ot=j({theme:String},"theme");function rS(){return{defaultTheme:"light",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":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",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":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function kle(){var i,r;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rS();const t=rS();if(!e)return{...t,isDisabled:!0};const n={};for(const[s,a]of Object.entries(e.themes??{})){const o=a.dark||s==="dark"?(i=t.themes)==null?void 0:i.dark:(r=t.themes)==null?void 0:r.light;n[s]=jn(o,a)}return jn(t,{...e,themes:n})}function wle(e){const t=kle(e),n=ke(t.defaultTheme),i=ke(t.themes),r=T(()=>{const c={};for(const[f,h]of Object.entries(i.value)){const m=c[f]={...h,colors:{...h.colors}};if(t.variations)for(const g of t.variations.colors){const y=m.colors[g];if(y)for(const b of["lighten","darken"]){const k=b==="lighten"?noe:ioe;for(const w of kr(t.variations[b],1))m.colors[`${g}-${b}-${w}`]=eI(k(zi(y),w))}}for(const g of Object.keys(m.colors)){if(/^on-[a-z]/.test(g)||m.colors[`on-${g}`])continue;const y=`on-${g}`,b=zi(m.colors[g]);m.colors[y]=rI(b)}}return c}),s=T(()=>r.value[n.value]),a=T(()=>{var g;const c=[];(g=s.value)!=null&&g.dark&&ia(c,":root",["color-scheme: dark"]),ia(c,":root",sS(s.value));for(const[y,b]of Object.entries(r.value))ia(c,`.v-theme--${y}`,[`color-scheme: ${b.dark?"dark":"normal"}`,...sS(b)]);const f=[],h=[],m=new Set(Object.values(r.value).flatMap(y=>Object.keys(y.colors)));for(const y of m)/^on-[a-z]/.test(y)?ia(h,`.${y}`,[`color: rgb(var(--v-theme-${y})) !important`]):(ia(f,`.bg-${y}`,[`--v-theme-overlay-multiplier: var(--v-theme-${y}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${y})) !important`,`color: rgb(var(--v-theme-on-${y})) !important`]),ia(h,`.text-${y}`,[`color: rgb(var(--v-theme-${y})) !important`]),ia(h,`.border-${y}`,[`--v-border-color: var(--v-theme-${y})`]));return c.push(...f,...h),c.map((y,b)=>b===0?y:` ${y}`).join("")});function o(){return{style:[{children:a.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const f=c._context.provides.usehead;if(f)if(f.push){const h=f.push(o);ht&&Ie(a,()=>{h.patch(o)})}else ht?(f.addHeadObjs(T(o)),Wt(()=>f.updateDOM())):f.addHeadObjs(o());else{let m=function(){if(typeof document<"u"&&!h){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",t.cspNonce&&g.setAttribute("nonce",t.cspNonce),h=g,document.head.appendChild(h)}h&&(h.innerHTML=a.value)},h=ht?document.getElementById("vuetify-theme-stylesheet"):null;ht?Ie(a,m,{immediate:!0}):m()}}const u=T(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:i,current:s,computedThemes:r,themeClasses:u,styles:a,global:{name:n,current:s}}}function pt(e){Ft("provideTheme");const t=Ze(Su,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=T(()=>e.theme??t.name.value),i=T(()=>t.themes.value[n.value]),r=T(()=>t.isDisabled?void 0:`v-theme--${n.value}`),s={...t,name:n,current:i,themeClasses:r};return kt(Su,s),s}function vI(){Ft("useTheme");const e=Ze(Su,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ia(e,t,n){e.push(`${t} {
`,...n.map(i=>` ${i};
`),`}
`)}function sS(e){const t=e.dark?2:1,n=e.dark?1:2,i=[];for(const[r,s]of Object.entries(e.colors)){const a=zi(s);i.push(`--v-theme-${r}: ${a.r},${a.g},${a.b}`),r.startsWith("on-")||i.push(`--v-theme-${r}-overlay-multiplier: ${xg(s)>.18?t:n}`)}for(const[r,s]of Object.entries(e.variables)){const a=typeof s=="string"&&s.startsWith("#")?zi(s):void 0,o=a?`${a.r}, ${a.g}, ${a.b}`:void 0;i.push(`--v-${r}: ${o??s}`)}return i}function sr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Ad(),i=ke();if(ht){const r=new ResizeObserver(s=>{e==null||e(s,r),s.length&&(t==="content"?i.value=s[0].contentRect:i.value=s[0].target.getBoundingClientRect())});an(()=>{r.disconnect()}),Ie(()=>n.el,(s,a)=>{a&&(r.unobserve(a),i.value=void 0),s&&r.observe(s)},{flush:"post"})}return{resizeRef:n,contentRect:$u(i)}}const _u=Symbol.for("vuetify:layout"),yI=Symbol.for("vuetify:layout-item"),aS=1e3,bI=j({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Za=j({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function kI(){const e=Ze(_u);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Qa(e){const t=Ze(_u);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${In()}`,i=Ft("useLayoutItem");kt(yI,{id:n});const r=Ae(!1);Sp(()=>r.value=!0),d0(()=>r.value=!1);const{layoutItemStyles:s,layoutItemScrimStyles:a}=t.register(i,{...e,active:T(()=>r.value?!1:e.active.value),id:n});return an(()=>t.unregister(n)),{layoutItemStyles:s,layoutRect:t.layoutRect,layoutItemScrimStyles:a}}const Sle=(e,t,n,i)=>{let r={top:0,left:0,right:0,bottom:0};const s=[{id:"",layer:{...r}}];for(const a of e){const o=t.get(a),l=n.get(a),u=i.get(a);if(!o||!l||!u)continue;const c={...r,[o.value]:parseInt(r[o.value],10)+(u.value?parseInt(l.value,10):0)};s.push({id:a,layer:c}),r=c}return s};function wI(e){const t=Ze(_u,null),n=T(()=>t?t.rootZIndex.value-100:aS),i=ke([]),r=dn(new Map),s=dn(new Map),a=dn(new Map),o=dn(new Map),l=dn(new Map),{resizeRef:u,contentRect:c}=sr(),f=T(()=>{const x=new Map,P=e.overlaps??[];for(const A of P.filter(C=>C.includes(":"))){const[C,$]=A.split(":");if(!i.value.includes(C)||!i.value.includes($))continue;const O=r.get(C),M=r.get($),F=s.get(C),z=s.get($);!O||!M||!F||!z||(x.set($,{position:O.value,amount:parseInt(F.value,10)}),x.set(C,{position:M.value,amount:-parseInt(z.value,10)}))}return x}),h=T(()=>{const x=[...new Set([...a.values()].map(A=>A.value))].sort((A,C)=>A-C),P=[];for(const A of x){const C=i.value.filter($=>{var O;return((O=a.get($))==null?void 0:O.value)===A});P.push(...C)}return Sle(P,r,s,o)}),m=T(()=>!Array.from(l.values()).some(x=>x.value)),g=T(()=>h.value[h.value.length-1].layer),y=T(()=>({"--v-layout-left":Pe(g.value.left),"--v-layout-right":Pe(g.value.right),"--v-layout-top":Pe(g.value.top),"--v-layout-bottom":Pe(g.value.bottom),...m.value?void 0:{transition:"none"}})),b=T(()=>h.value.slice(1).map((x,P)=>{let{id:A}=x;const{layer:C}=h.value[P],$=s.get(A),O=r.get(A);return{id:A,...C,size:Number($.value),position:O.value}})),k=x=>b.value.find(P=>P.id===x),w=Ft("createLayout"),E=Ae(!1);En(()=>{E.value=!0}),kt(_u,{register:(x,P)=>{let{id:A,order:C,position:$,layoutSize:O,elementSize:M,active:F,disableTransitions:z,absolute:re}=P;a.set(A,C),r.set(A,$),s.set(A,O),o.set(A,F),z&&l.set(A,z);const ve=Eo(yI,w==null?void 0:w.vnode).indexOf(x);ve>-1?i.value.splice(ve,0,A):i.value.push(A);const ye=T(()=>b.value.findIndex(me=>me.id===A)),Z=T(()=>n.value+h.value.length*2-ye.value*2),J=T(()=>{const me=$.value==="left"||$.value==="right",xe=$.value==="right",Me=$.value==="bottom",$e=M.value??O.value,oe=$e===0?"%":"px",q={[$.value]:0,zIndex:Z.value,transform:`translate${me?"X":"Y"}(${(F.value?0:-($e===0?100:$e))*(xe||Me?-1:1)}${oe})`,position:re.value||n.value!==aS?"absolute":"fixed",...m.value?void 0:{transition:"none"}};if(!E.value)return q;const de=b.value[ye.value];if(!de)throw new Error(`[Vuetify] Could not find layout item "${A}"`);const Se=f.value.get(A);return Se&&(de[Se.position]+=Se.amount),{...q,height:me?`calc(100% - ${de.top}px - ${de.bottom}px)`:M.value?`${M.value}px`:void 0,left:xe?void 0:`${de.left}px`,right:xe?`${de.right}px`:void 0,top:$.value!=="bottom"?`${de.top}px`:void 0,bottom:$.value!=="top"?`${de.bottom}px`:void 0,width:me?M.value?`${M.value}px`:void 0:`calc(100% - ${de.left}px - ${de.right}px)`}}),K=T(()=>({zIndex:Z.value-1}));return{layoutItemStyles:J,layoutItemScrimStyles:K,zIndex:Z}},unregister:x=>{a.delete(x),r.delete(x),s.delete(x),o.delete(x),l.delete(x),i.value=i.value.filter(P=>P!==x)},mainRect:g,mainStyles:y,getLayoutItem:k,items:b,layoutRect:c,rootZIndex:n});const I=T(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),D=T(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:I,layoutStyles:D,getLayoutItem:k,items:b,layoutRect:c,layoutRef:u}}function SI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,i=jn(t,n),{aliases:r={},components:s={},directives:a={}}=i,o=aoe(i.defaults),l=ule(i.display,i.ssr),u=wle(i.theme),c=yle(i.icons),f=voe(i.locale),h=ale(i.date,f),m=dle(i.goTo,f);return{install:y=>{for(const b in a)y.directive(b,a[b]);for(const b in s)y.component(b,s[b]);for(const b in r)y.component(b,Di({...r[b],name:b,aliasName:r[b].name}));if(u.install(y),y.provide(Jo,o),y.provide(Pg,l),y.provide(Su,u),y.provide(Og,c),y.provide(Xo,f),y.provide(hI,h.options),y.provide(Z1,h.instance),y.provide(gI,m),ht&&i.ssr)if(y.$nuxt)y.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:b}=y;y.mount=function(){const k=b(...arguments);return ct(()=>l.update()),y.mount=b,k}}In.reset(),y.mixin({computed:{$vuetify(){return dn({defaults:yo.call(this,Jo),display:yo.call(this,Pg),theme:yo.call(this,Su),icons:yo.call(this,Og),locale:yo.call(this,Xo),date:yo.call(this,Z1)})}}})},defaults:o,display:l,theme:u,icons:c,locale:f,date:h,goTo:m}}const _le="3.7.4";SI.version=_le;function yo(e){var i,r;const t=this.$,n=((i=t.parent)==null?void 0:i.provides)??((r=t.vnode.appContext)==null?void 0:r.provides);if(n&&e in n)return n[e]}const Cle=j({...Ve(),...bI({fullHeight:!0}),...ot()},"VApp"),Tle=ae()({name:"VApp",props:Cle(),setup(e,t){let{slots:n}=t;const i=pt(e),{layoutClasses:r,getLayoutItem:s,items:a,layoutRef:o}=wI(e),{rtlClasses:l}=on();return he(()=>{var u;return v("div",{ref:o,class:["v-application",i.themeClasses.value,r.value,l.value,e.class],style:[e.style]},[v("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:s,items:a,theme:i}}}),Xe=j({tag:{type:String,default:"div"}},"tag"),_I=j({text:String,...Ve(),...Xe()},"VToolbarTitle"),Hv=ae()({name:"VToolbarTitle",props:_I(),setup(e,t){let{slots:n}=t;return he(()=>{const i=!!(n.default||n.text||e.text);return v(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var r;return[i&&v("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(r=n.default)==null?void 0:r.call(n)])]}})}),{}}}),Ele=j({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Pi(e,t,n){return ae()({name:e,props:Ele({mode:n,origin:t}),setup(i,r){let{slots:s}=r;const a={onBeforeEnter(o){i.origin&&(o.style.transformOrigin=i.origin)},onLeave(o){if(i.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=`${l}px`,o.style.left=`${u}px`,o.style.width=`${c}px`,o.style.height=`${f}px`}i.hideOnLeave&&o.style.setProperty("display","none","important")},onAfterLeave(o){if(i.leaveAbsolute&&(o!=null&&o._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:h}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=l||"",o.style.top=u||"",o.style.left=c||"",o.style.width=f||"",o.style.height=h||""}}};return()=>{const o=i.group?Dp:ji;return pi(o,{name:i.disabled?"":e,css:!i.disabled,...i.group?void 0:{mode:i.mode},...i.disabled?{}:a},s.default)}}})}function CI(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ae()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(i,r){let{slots:s}=r;const a=i.group?Dp:ji;return()=>pi(a,{name:i.disabled?"":e,css:!i.disabled,...i.disabled?{}:t},s.default)}})}function TI(){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",i=Ii(`offset-${n}`);return{onBeforeEnter(a){a._parent=a.parentNode,a._initialStyle={transition:a.style.transition,overflow:a.style.overflow,[n]:a.style[n]}},onEnter(a){const o=a._initialStyle;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const l=`${a[i]}px`;a.style[n]="0",a.offsetHeight,a.style.transition=o.transition,e&&a._parent&&a._parent.classList.add(e),requestAnimationFrame(()=>{a.style[n]=l})},onAfterEnter:s,onEnterCancelled:s,onLeave(a){a._initialStyle={transition:"",overflow:a.style.overflow,[n]:a.style[n]},a.style.overflow="hidden",a.style[n]=`${a[i]}px`,a.offsetHeight,requestAnimationFrame(()=>a.style[n]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(a){e&&a._parent&&a._parent.classList.remove(e),s(a)}function s(a){const o=a._initialStyle[n];a.style.overflow=a._initialStyle.overflow,o!=null&&(a.style[n]=o),delete a._initialStyle}}const Ile=j({target:[Object,Array]},"v-dialog-transition"),Vf=ae()({name:"VDialogTransition",props:Ile(),setup(e,t){let{slots:n}=t;const i={onBeforeEnter(r){r.style.pointerEvents="none",r.style.visibility="hidden"},async onEnter(r,s){var h;await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),r.style.visibility="";const{x:a,y:o,sx:l,sy:u,speed:c}=lS(e.target,r),f=ga(r,[{transform:`translate(${a}px, ${o}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:coe});(h=oS(r))==null||h.forEach(m=>{ga(m,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:wu})}),f.finished.then(()=>s())},onAfterEnter(r){r.style.removeProperty("pointer-events")},onBeforeLeave(r){r.style.pointerEvents="none"},async onLeave(r,s){var h;await new Promise(m=>requestAnimationFrame(m));const{x:a,y:o,sx:l,sy:u,speed:c}=lS(e.target,r);ga(r,[{},{transform:`translate(${a}px, ${o}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:doe}).finished.then(()=>s()),(h=oS(r))==null||h.forEach(m=>{ga(m,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:wu})})},onAfterLeave(r){r.style.removeProperty("pointer-events")}};return()=>e.target?v(ji,fe({name:"dialog-transition"},i,{css:!1}),n):v(ji,{name:"dialog-transition"},n)}});function oS(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 lS(e,t){const n=qE(e),i=Vv(t),[r,s]=getComputedStyle(t).transformOrigin.split(" ").map(k=>parseFloat(k)),[a,o]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;a==="left"||o==="left"?l-=n.width/2:(a==="right"||o==="right")&&(l+=n.width/2);let u=n.top+n.height/2;a==="top"||o==="top"?u-=n.height/2:(a==="bottom"||o==="bottom")&&(u+=n.height/2);const c=n.width/i.width,f=n.height/i.height,h=Math.max(1,c,f),m=c/h||0,g=f/h||0,y=i.width*i.height/(window.innerWidth*window.innerHeight),b=y>.12?Math.min(1.5,(y-.12)*10+1):1;return{x:l-(r+i.left),y:u-(s+i.top),sx:m,sy:g,speed:b}}const Ale=Pi("fab-transition","center center","out-in"),xle=Pi("dialog-bottom-transition"),Dle=Pi("dialog-top-transition"),Cu=Pi("fade-transition"),jv=Pi("scale-transition"),Ple=Pi("scroll-x-transition"),Ole=Pi("scroll-x-reverse-transition"),Mle=Pi("scroll-y-transition"),$le=Pi("scroll-y-reverse-transition"),Vle=Pi("slide-x-transition"),Lle=Pi("slide-x-reverse-transition"),Gv=Pi("slide-y-transition"),Nle=Pi("slide-y-reverse-transition"),Lf=CI("expand-transition",TI()),qv=CI("expand-x-transition",TI("",!0)),Rle=j({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),tt=ae(!1)({name:"VDefaultsProvider",props:Rle(),setup(e,t){let{slots:n}=t;const{defaults:i,disabled:r,reset:s,root:a,scoped:o}=Ha(e);return Rt(i,{reset:s,root:a,scoped:o,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),Qt=j({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function en(e){return{dimensionStyles:T(()=>{const n={},i=Pe(e.height),r=Pe(e.maxHeight),s=Pe(e.maxWidth),a=Pe(e.minHeight),o=Pe(e.minWidth),l=Pe(e.width);return i!=null&&(n.height=i),r!=null&&(n.maxHeight=r),s!=null&&(n.maxWidth=s),a!=null&&(n.minHeight=a),o!=null&&(n.minWidth=o),l!=null&&(n.width=l),n})}}function Fle(e){return{aspectStyles:T(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const EI=j({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Ve(),...Qt()},"VResponsive"),$g=ae()({name:"VResponsive",props:EI(),setup(e,t){let{slots:n}=t;const{aspectStyles:i}=Fle(e),{dimensionStyles:r}=en(e);return he(()=>{var s;return v("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[r.value,e.style]},[v("div",{class:"v-responsive__sizer",style:i.value},null),(s=n.additional)==null?void 0:s.call(n),n.default&&v("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function Kv(e){return Mv(()=>{const t=[],n={};if(e.value.background)if(Ag(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Qae(e.value.background)){const i=zi(e.value.background);if(i.a==null||i.a===1){const r=rI(i);n.color=r,n.caretColor=r}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Ag(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Ln(e,t){const n=T(()=>({text:Ut(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:r}=Kv(n);return{textColorClasses:i,textColorStyles:r}}function wt(e,t){const n=T(()=>({background:Ut(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:r}=Kv(n);return{backgroundColorClasses:i,backgroundColorStyles:r}}const Pt=j({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Bt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return{roundedClasses:T(()=>{const i=Ut(e)?e.value:e.rounded,r=Ut(e)?e.value:e.tile,s=[];if(i===!0||i==="")s.push(`${t}--rounded`);else if(typeof i=="string"||i===0)for(const a of String(i).split(" "))s.push(`rounded-${a}`);else(r||i===!1)&&s.push("rounded-0");return s})}}const cr=j({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Gn=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:r,group:s,...a}=e,{component:o=s?Dp:ji,...l}=typeof i=="object"?i:{};return pi(o,fe(typeof i=="string"?{name:r?"":i}:l,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:r,group:s}).filter(u=>{let[c,f]=u;return f!==void 0})),a),n)};function Ble(e,t){if(!xv)return;const n=t.modifiers||{},i=t.value,{handler:r,options:s}=typeof i=="object"?i:{handler:i,options:{}},a=new IntersectionObserver(function(){var f;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=o.some(h=>h.isIntersecting);r&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&r(c,o,l),c&&n.once?II(e,t):u.init=!0},s);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:a},a.observe(e)}function II(e,t){var i;const n=(i=e._observe)==null?void 0:i[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const ju={mounted:Ble,unmounted:II},AI=j({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,...EI(),...Ve(),...Pt(),...cr()},"VImg"),Qr=ae()({name:"VImg",directives:{intersect:ju},props:AI(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=wt(se(e,"color")),{roundedClasses:a}=Bt(e),o=Ft("VImg"),l=Ae(""),u=ke(),c=Ae(e.eager?"loading":"idle"),f=Ae(),h=Ae(),m=T(()=>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)}),g=T(()=>m.value.aspect||f.value/h.value||0);Ie(()=>e.src,()=>{y(c.value!=="idle")}),Ie(g,(M,F)=>{!M&&F&&u.value&&I(u.value)}),Wd(()=>y());function y(M){if(!(e.eager&&M)&&!(xv&&!M&&!e.eager)){if(c.value="loading",m.value.lazySrc){const F=new Image;F.src=m.value.lazySrc,I(F,null)}m.value.src&&ct(()=>{var F;n("loadstart",((F=u.value)==null?void 0:F.currentSrc)||m.value.src),setTimeout(()=>{var z;if(!o.isUnmounted)if((z=u.value)!=null&&z.complete){if(u.value.naturalWidth||k(),c.value==="error")return;g.value||I(u.value,null),c.value==="loading"&&b()}else g.value||I(u.value),w()})})}}function b(){var M;o.isUnmounted||(w(),I(u.value),c.value="loaded",n("load",((M=u.value)==null?void 0:M.currentSrc)||m.value.src))}function k(){var M;o.isUnmounted||(c.value="error",n("error",((M=u.value)==null?void 0:M.currentSrc)||m.value.src))}function w(){const M=u.value;M&&(l.value=M.currentSrc||M.src)}let E=-1;an(()=>{clearTimeout(E)});function I(M){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const z=()=>{if(clearTimeout(E),o.isUnmounted)return;const{naturalHeight:re,naturalWidth:le}=M;re||le?(f.value=le,h.value=re):!M.complete&&c.value==="loading"&&F!=null?E=window.setTimeout(z,F):(M.currentSrc.endsWith(".svg")||M.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,h.value=1)};z()}const D=T(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),x=()=>{var z;if(!m.value.src||c.value==="idle")return null;const M=v("img",{class:["v-img__img",D.value],style:{objectPosition:e.position},src:m.value.src,srcset:m.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:b,onError:k},null),F=(z=i.sources)==null?void 0:z.call(i);return v(Gn,{transition:e.transition,appear:!0},{default:()=>[ie(F?v("picture",{class:"v-img__picture"},[F,M]):M,[[vn,c.value==="loaded"]])]})},P=()=>v(Gn,{transition:e.transition},{default:()=>[m.value.lazySrc&&c.value!=="loaded"&&v("img",{class:["v-img__img","v-img__img--preload",D.value],style:{objectPosition:e.position},src:m.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),A=()=>i.placeholder?v(Gn,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!i.error)&&v("div",{class:"v-img__placeholder"},[i.placeholder()])]}):null,C=()=>i.error?v(Gn,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&v("div",{class:"v-img__error"},[i.error()])]}):null,$=()=>e.gradient?v("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=Ae(!1);{const M=Ie(g,F=>{F&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),M())})}return he(()=>{const M=$g.filterProps(e);return ie(v($g,fe({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!O.value},r.value,a.value,e.class],style:[{width:Pe(e.width==="auto"?f.value:e.width)},s.value,e.style]},M,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>v(U,null,[v(x,null,null),v(P,null,null),v($,null,null),v(A,null,null),v(C,null,null)]),default:i.default}),[[Ai("intersect"),{handler:y,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:f,naturalHeight:h}}}),ki=j({border:[Boolean,Number,String]},"border");function Oi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return{borderClasses:T(()=>{const i=Ut(e)?e.value:e.border,r=[];if(i===!0||i==="")r.push(`${t}--border`);else if(typeof i=="string"||i===0)for(const s of String(i).split(" "))r.push(`border-${s}`);return r})}}const ln=j({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function An(e){return{elevationClasses:T(()=>{const n=Ut(e)?e.value:e.elevation,i=[];return n==null||i.push(`elevation-${n}`),i})}}const zle=[null,"prominent","default","comfortable","compact"],xI=j({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>zle.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...ki(),...Ve(),...ln(),...Pt(),...Xe({tag:"header"}),...ot()},"VToolbar"),Vg=ae()({name:"VToolbar",props:xI(),setup(e,t){var m;let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=wt(se(e,"color")),{borderClasses:s}=Oi(e),{elevationClasses:a}=An(e),{roundedClasses:o}=Bt(e),{themeClasses:l}=pt(e),{rtlClasses:u}=on(),c=Ae(!!(e.extended||(m=n.extension)!=null&&m.call(n))),f=T(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),h=T(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Rt({VBtn:{variant:"text"}}),he(()=>{var k;const g=!!(e.title||n.title),y=!!(n.image||e.image),b=(k=n.extension)==null?void 0:k.call(n);return c.value=!!(e.extended||b),v(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},i.value,s.value,a.value,o.value,l.value,u.value,e.class],style:[r.value,e.style]},{default:()=>[y&&v("div",{key:"image",class:"v-toolbar__image"},[n.image?v(tt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):v(Qr,{key:"image-img",cover:!0,src:e.image},null)]),v(tt,{defaults:{VTabs:{height:Pe(f.value)}}},{default:()=>{var w,E,I;return[v("div",{class:"v-toolbar__content",style:{height:Pe(f.value)}},[n.prepend&&v("div",{class:"v-toolbar__prepend"},[(w=n.prepend)==null?void 0:w.call(n)]),g&&v(Hv,{key:"title",text:e.title},{text:n.title}),(E=n.default)==null?void 0:E.call(n),n.append&&v("div",{class:"v-toolbar__append"},[(I=n.append)==null?void 0:I.call(n)])])]}}),v(tt,{defaults:{VTabs:{height:Pe(h.value)}}},{default:()=>[v(Lf,null,{default:()=>[c.value&&v("div",{class:"v-toolbar__extension",style:{height:Pe(h.value)}},[b])]})]})]})}),{contentHeight:f,extensionHeight:h}}}),Ule=j({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Wle(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let i=0,r=0;const s=ke(null),a=Ae(0),o=Ae(0),l=Ae(0),u=Ae(!1),c=Ae(!1),f=T(()=>Number(e.scrollThreshold)),h=T(()=>Yt((f.value-a.value)/f.value||0)),m=()=>{const g=s.value;if(!g||n&&!n.value)return;i=a.value,a.value="window"in g?g.pageYOffset:g.scrollTop;const y=g instanceof Window?document.documentElement.scrollHeight:g.scrollHeight;if(r!==y){r=y;return}c.value=a.value<i,l.value=Math.abs(a.value-f.value)};return Ie(c,()=>{o.value=o.value||a.value}),Ie(u,()=>{o.value=0}),En(()=>{Ie(()=>e.scrollTarget,g=>{var b;const y=g?document.querySelector(g):window;y&&y!==s.value&&((b=s.value)==null||b.removeEventListener("scroll",m),s.value=y,s.value.addEventListener("scroll",m,{passive:!0}))},{immediate:!0})}),an(()=>{var g;(g=s.value)==null||g.removeEventListener("scroll",m)}),n&&Ie(n,m,{immediate:!0}),{scrollThreshold:f,currentScroll:a,currentThreshold:l,isScrollActive:u,scrollRatio:h,isScrollingUp:c,savedScroll:o}}function eo(){const e=Ae(!1);return En(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:T(()=>e.value?void 0:{transition:"none !important"}),isBooted:$u(e)}}const Hle=j({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...xI(),...Za(),...Ule(),height:{type:[Number,String],default:64}},"VAppBar"),jle=ae()({name:"VAppBar",props:Hle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=ke(),r=Be(e,"modelValue"),s=T(()=>{var E;const w=new Set(((E=e.scrollBehavior)==null?void 0:E.split(" "))??[]);return{hide:w.has("hide"),fullyHide:w.has("fully-hide"),inverted:w.has("inverted"),collapse:w.has("collapse"),elevate:w.has("elevate"),fadeImage:w.has("fade-image")}}),a=T(()=>{const w=s.value;return w.hide||w.fullyHide||w.inverted||w.collapse||w.elevate||w.fadeImage||!r.value}),{currentScroll:o,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=Wle(e,{canScroll:a}),f=T(()=>s.value.hide||s.value.fullyHide),h=T(()=>e.collapse||s.value.collapse&&(s.value.inverted?c.value>0:c.value===0)),m=T(()=>e.flat||s.value.fullyHide&&!r.value||s.value.elevate&&(s.value.inverted?o.value>0:o.value===0)),g=T(()=>s.value.fadeImage?s.value.inverted?1-c.value:c.value:void 0),y=T(()=>{var I,D;if(s.value.hide&&s.value.inverted)return 0;const w=((I=i.value)==null?void 0:I.contentHeight)??0,E=((D=i.value)==null?void 0:D.extensionHeight)??0;return f.value?o.value<l.value||s.value.fullyHide?w+E:w:w+E});ei(T(()=>!!e.scrollBehavior),()=>{Wt(()=>{f.value?s.value.inverted?r.value=o.value>l.value:r.value=u.value||o.value<l.value:r.value=!0})});const{ssrBootStyles:b}=eo(),{layoutItemStyles:k}=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:se(e,"location"),layoutSize:y,elementSize:Ae(void 0),active:r,absolute:se(e,"absolute")});return he(()=>{const w=Vg.filterProps(e);return v(Vg,fe({ref:i,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...k.value,"--v-toolbar-image-opacity":g.value,height:void 0,...b.value},e.style]},w,{collapse:h.value,flat:m.value}),n)}),{}}}),Gle=[null,"default","comfortable","compact"],mn=j({density:{type:String,default:"default",validator:e=>Gle.includes(e)}},"density");function Yn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return{densityClasses:T(()=>`${t}--density-${e.density}`)}}const qle=["elevated","flat","tonal","outlined","text","plain"];function Xs(e,t){return v(U,null,[e&&v("span",{key:"overlay",class:`${t}__overlay`},null),v("span",{key:"underlay",class:`${t}__underlay`},null)])}const Ji=j({color:String,variant:{type:String,default:"elevated",validator:e=>qle.includes(e)}},"variant");function to(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();const n=T(()=>{const{variant:s}=qt(e);return`${t}--variant-${s}`}),{colorClasses:i,colorStyles:r}=Kv(T(()=>{const{variant:s,color:a}=qt(e);return{[["elevated","flat"].includes(s)?"background":"text"]:a}}));return{colorClasses:i,colorStyles:r,variantClasses:n}}const DI=j({baseColor:String,divided:Boolean,...ki(),...Ve(),...mn(),...ln(),...Pt(),...Xe(),...ot(),...Ji()},"VBtnGroup"),Lg=ae()({name:"VBtnGroup",props:DI(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{densityClasses:r}=Yn(e),{borderClasses:s}=Oi(e),{elevationClasses:a}=An(e),{roundedClasses:o}=Bt(e);Rt({VBtn:{height:"auto",baseColor:se(e,"baseColor"),color:se(e,"color"),density:se(e,"density"),flat:!0,variant:se(e,"variant")}}),he(()=>v(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},i.value,s.value,r.value,a.value,o.value,e.class],style:e.style},n))}}),no=j({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),io=j({value:null,disabled:Boolean,selectedClass:String},"group-item");function ro(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=Ft("useGroupItem");if(!i)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const r=In();kt(Symbol.for(`${t.description}:id`),r);const s=Ze(t,null);if(!s){if(!n)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const a=se(e,"value"),o=T(()=>!!(s.disabled.value||e.disabled));s.register({id:r,value:a,disabled:o},i),an(()=>{s.unregister(r)});const l=T(()=>s.isSelected(r)),u=T(()=>s.items.value[0].id===r),c=T(()=>s.items.value[s.items.value.length-1].id===r),f=T(()=>l.value&&[s.selectedClass.value,e.selectedClass]);return Ie(l,h=>{i.emit("group:selected",{value:h})},{flush:"sync"}),{id:r,isSelected:l,isFirst:u,isLast:c,toggle:()=>s.select(r,!l.value),select:h=>s.select(r,h),selectedClass:f,value:a,disabled:o,group:s}}function Zs(e,t){let n=!1;const i=dn([]),r=Be(e,"modelValue",[],h=>h==null?[]:PI(i,Mt(h)),h=>{const m=Yle(i,h);return e.multiple?m:m[0]}),s=Ft("useGroup");function a(h,m){const g=h,y=Symbol.for(`${t.description}:id`),k=Eo(y,s==null?void 0:s.vnode).indexOf(m);qt(g.value)==null&&(g.value=k,g.useIndexAsValue=!0),k>-1?i.splice(k,0,g):i.push(g)}function o(h){if(n)return;l();const m=i.findIndex(g=>g.id===h);i.splice(m,1)}function l(){const h=i.find(m=>!m.disabled);h&&e.mandatory==="force"&&!r.value.length&&(r.value=[h.id])}En(()=>{l()}),an(()=>{n=!0}),_p(()=>{for(let h=0;h<i.length;h++)i[h].useIndexAsValue&&(i[h].value=h)});function u(h,m){const g=i.find(y=>y.id===h);if(!(m&&(g!=null&&g.disabled)))if(e.multiple){const y=r.value.slice(),b=y.findIndex(w=>w===h),k=~b;if(m=m??!k,k&&e.mandatory&&y.length<=1||!k&&e.max!=null&&y.length+1>e.max)return;b<0&&m?y.push(h):b>=0&&!m&&y.splice(b,1),r.value=y}else{const y=r.value.includes(h);if(e.mandatory&&y)return;r.value=m??!y?[h]:[]}}function c(h){if(e.multiple,r.value.length){const m=r.value[0],g=i.findIndex(k=>k.id===m);let y=(g+h)%i.length,b=i[y];for(;b.disabled&&y!==g;)y=(y+h)%i.length,b=i[y];if(b.disabled)return;r.value=[i[y].id]}else{const m=i.find(g=>!g.disabled);m&&(r.value=[m.id])}}const f={register:a,unregister:o,selected:r,select:u,disabled:se(e,"disabled"),prev:()=>c(i.length-1),next:()=>c(1),isSelected:h=>r.value.includes(h),selectedClass:T(()=>e.selectedClass),items:T(()=>i),getItemIndex:h=>Kle(i,h)};return kt(t,f),f}function Kle(e,t){const n=PI(e,[t]);return n.length?e.findIndex(i=>i.id===n[0]):-1}function PI(e,t){const n=[];return t.forEach(i=>{const r=e.find(a=>Dr(i,a.value)),s=e[i];(r==null?void 0:r.value)!=null?n.push(r.id):s!=null&&n.push(s.id)}),n}function Yle(e,t){const n=[];return t.forEach(i=>{const r=e.findIndex(s=>s.id===i);if(~r){const s=e[r];n.push(s.value!=null?s.value:r)}}),n}const Yv=Symbol.for("vuetify:v-btn-toggle"),Jle=j({...DI(),...no()},"VBtnToggle"),Xle=ae()({name:"VBtnToggle",props:Jle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,next:r,prev:s,select:a,selected:o}=Zs(e,Yv);return he(()=>{const l=Lg.filterProps(e);return v(Lg,fe({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,next:r,prev:s,select:a,selected:o})]}})}),{next:r,prev:s,select:a}}}),Zle=["x-small","small","default","large","x-large"],Mr=j({size:{type:[String,Number],default:"default"}},"size");function ll(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return Mv(()=>{let n,i;return Id(Zle,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:Pe(e.size),height:Pe(e.size)}),{sizeClasses:n,sizeStyles:i}})}const Qle=j({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:je,...Ve(),...Mr(),...Xe({tag:"i"}),...ot()},"VIcon"),gt=ae()({name:"VIcon",props:Qle(),setup(e,t){let{attrs:n,slots:i}=t;const r=ke(),{themeClasses:s}=pt(e),{iconData:a}=ble(T(()=>r.value||e.icon)),{sizeClasses:o}=ll(e),{textColorClasses:l,textColorStyles:u}=Ln(se(e,"color"));return he(()=>{var h,m;const c=(h=i.default)==null?void 0:h.call(i);c&&(r.value=(m=UE(c).filter(g=>g.type===tl&&g.children&&typeof g.children=="string")[0])==null?void 0:m.children);const f=!!(n.onClick||n.onClickOnce);return v(a.value.component,{tag:e.tag,icon:a.value.icon,class:["v-icon","notranslate",s.value,o.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[o.value?void 0:{fontSize:Pe(e.size),height:Pe(e.size),width:Pe(e.size)},u.value,e.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function Nf(e,t){const n=ke(),i=Ae(!1);if(xv){const r=new IntersectionObserver(s=>{i.value=!!s.find(a=>a.isIntersecting)},t);an(()=>{r.disconnect()}),Ie(n,(s,a)=>{a&&(r.unobserve(a),i.value=!1),s&&r.observe(s)},{flush:"post"})}return{intersectionRef:n,isIntersecting:i}}const eue=j({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Ve(),...Mr(),...Xe({tag:"div"}),...ot()},"VProgressCircular"),Zo=ae()({name:"VProgressCircular",props:eue(),setup(e,t){let{slots:n}=t;const i=20,r=2*Math.PI*i,s=ke(),{themeClasses:a}=pt(e),{sizeClasses:o,sizeStyles:l}=ll(e),{textColorClasses:u,textColorStyles:c}=Ln(se(e,"color")),{textColorClasses:f,textColorStyles:h}=Ln(se(e,"bgColor")),{intersectionRef:m,isIntersecting:g}=Nf(),{resizeRef:y,contentRect:b}=sr(),k=T(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),w=T(()=>Number(e.width)),E=T(()=>l.value?Number(e.size):b.value?b.value.width:Math.max(w.value,32)),I=T(()=>i/(1-w.value/E.value)*2),D=T(()=>w.value/E.value*I.value),x=T(()=>Pe((100-k.value)/100*r));return Wt(()=>{m.value=s.value,y.value=s.value}),he(()=>v(e.tag,{ref:s,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},a.value,o.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:k.value},{default:()=>[v("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${I.value} ${I.value}`},[v("circle",{class:["v-progress-circular__underlay",f.value],style:h.value,fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":D.value,"stroke-dasharray":r,"stroke-dashoffset":0},null),v("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":D.value,"stroke-dasharray":r,"stroke-dashoffset":x.value},null)]),n.default&&v("div",{class:"v-progress-circular__content"},[n.default({value:k.value})])]})),{}}}),uS={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},rs=j({location:String},"location");function so(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:i}=on();return{locationStyles:T(()=>{if(!e.location)return{};const{side:s,align:a}=Eg(e.location.split(" ").length>1?e.location:`${e.location} center`,i.value);function o(u){return n?n(u):0}const l={};return s!=="center"&&(t?l[uS[s]]=`calc(100% - ${o(s)}px)`:l[s]=0),a!=="center"?t?l[uS[a]]=`calc(100% - ${o(a)}px)`:l[a]=0:(s==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[s]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[s]),l})}}const tue=j({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,...Ve(),...rs({location:"top"}),...Pt(),...Xe(),...ot()},"VProgressLinear"),Rf=ae()({name:"VProgressLinear",props:tue(),emits:{"update:modelValue":e=>!0},setup(e,t){var O;let{slots:n}=t;const i=Be(e,"modelValue"),{isRtl:r,rtlClasses:s}=on(),{themeClasses:a}=pt(e),{locationStyles:o}=so(e),{textColorClasses:l,textColorStyles:u}=Ln(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=wt(T(()=>e.bgColor||e.color)),{backgroundColorClasses:h,backgroundColorStyles:m}=wt(T(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:g,backgroundColorStyles:y}=wt(e,"color"),{roundedClasses:b}=Bt(e),{intersectionRef:k,isIntersecting:w}=Nf(),E=T(()=>parseFloat(e.max)),I=T(()=>parseFloat(e.height)),D=T(()=>Yt(parseFloat(e.bufferValue)/E.value*100,0,100)),x=T(()=>Yt(parseFloat(i.value)/E.value*100,0,100)),P=T(()=>r.value!==e.reverse),A=T(()=>e.indeterminate?"fade-transition":"slide-x-transition"),C=ht&&((O=window.matchMedia)==null?void 0:O.call(window,"(forced-colors: active)").matches);function $(M){if(!k.value)return;const{left:F,right:z,width:re}=k.value.getBoundingClientRect(),le=P.value?re-M.clientX+(z-re):M.clientX-F;i.value=Math.round(le/re*E.value)}return he(()=>v(e.tag,{ref:k,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":P.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},b.value,a.value,s.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Pe(I.value):0,"--v-progress-linear-height":Pe(I.value),...e.absolute?o.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:x.value,onClick:e.clickable&&$},{default:()=>[e.stream&&v("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[P.value?"left":"right"]:Pe(-I.value),borderTop:`${Pe(I.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Pe(I.value/4)})`,width:Pe(100-D.value,"%"),"--v-progress-linear-stream-to":Pe(I.value*(P.value?1:-1))}},null),v("div",{class:["v-progress-linear__background",C?void 0:c.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),v("div",{class:["v-progress-linear__buffer",C?void 0:h.value],style:[m.value,{opacity:parseFloat(e.bufferOpacity),width:Pe(D.value,"%")}]},null),v(ji,{name:A.value},{default:()=>[e.indeterminate?v("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(M=>v("div",{key:M,class:["v-progress-linear__indeterminate",M,C?void 0:g.value],style:y.value},null))]):v("div",{class:["v-progress-linear__determinate",C?void 0:g.value],style:[y.value,{width:Pe(x.value,"%")}]},null)]}),n.default&&v("div",{class:"v-progress-linear__content"},[n.default({value:x.value,buffer:D.value})])]})),{}}}),Ff=j({loading:[Boolean,String]},"loader");function Gu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return{loaderClasses:T(()=>({[`${t}--loading`]:e.loading}))}}function qu(e,t){var i;let{slots:n}=t;return v("div",{class:`${e.name}__loader`},[((i=n.default)==null?void 0:i.call(n,{color:e.color,isActive:e.active}))||v(Rf,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const nue=["static","relative","fixed","absolute","sticky"],ul=j({position:{type:String,validator:e=>nue.includes(e)}},"position");function cl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();return{positionClasses:T(()=>e.position?`${t}--${e.position}`:void 0)}}function iue(){const e=Ft("useRoute");return T(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function OI(){var e,t;return(t=(e=Ft("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Ku(e,t){var f,h;const n=g0("RouterLink"),i=T(()=>!!(e.href||e.to)),r=T(()=>(i==null?void 0:i.value)||M1(t,"click")||M1(e,"click"));if(typeof n=="string"||!("useLink"in n)){const m=se(e,"href");return{isLink:i,isClickable:r,href:m,linkProps:dn({href:m})}}const s=T(()=>({...e,to:se(()=>e.to||"")})),a=n.useLink(s.value),o=T(()=>e.to?a:void 0),l=iue(),u=T(()=>{var m,g,y;return o.value?e.exact?l.value?((y=o.value.isExactActive)==null?void 0:y.value)&&Dr(o.value.route.value.query,l.value.query):((g=o.value.isExactActive)==null?void 0:g.value)??!1:((m=o.value.isActive)==null?void 0:m.value)??!1:!1}),c=T(()=>{var m;return e.to?(m=o.value)==null?void 0:m.route.value.href:e.href});return{isLink:i,isClickable:r,isActive:u,route:(f=o.value)==null?void 0:f.route,navigate:(h=o.value)==null?void 0:h.navigate,href:c,linkProps:dn({href:c,"aria-current":T(()=>u.value?"page":void 0)})}}const Yu=j({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let cm=!1;function rue(e,t){let n=!1,i,r;ht&&(ct(()=>{window.addEventListener("popstate",s),i=e==null?void 0:e.beforeEach((a,o,l)=>{cm?n?t(l):l():setTimeout(()=>n?t(l):l()),cm=!0}),r=e==null?void 0:e.afterEach(()=>{cm=!1})}),qn(()=>{window.removeEventListener("popstate",s),i==null||i(),r==null||r()}));function s(a){var o;(o=a.state)!=null&&o.replaced||(n=!0,setTimeout(()=>n=!1))}}function sue(e,t){Ie(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&ct(()=>{t(!0)})},{immediate:!0})}const Ng=Symbol("rippleStop"),aue=80;function cS(e,t){e.style.transform=t,e.style.webkitTransform=t}function Rg(e){return e.constructor.name==="TouchEvent"}function MI(e){return e.constructor.name==="KeyboardEvent"}const oue=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,r=0;if(!MI(e)){const h=t.getBoundingClientRect(),m=Rg(e)?e.touches[e.touches.length-1]:e;i=m.clientX-h.left,r=m.clientY-h.top}let s=0,a=.3;(f=t._ripple)!=null&&f.circle?(a=.15,s=t.clientWidth/2,s=n.center?s:s+Math.sqrt((i-s)**2+(r-s)**2)/4):s=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const o=`${(t.clientWidth-s*2)/2}px`,l=`${(t.clientHeight-s*2)/2}px`,u=n.center?o:`${i-s}px`,c=n.center?l:`${r-s}px`;return{radius:s,scale:a,x:u,y:c,centerX:o,centerY:l}},Md={show(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((m=t==null?void 0:t._ripple)!=null&&m.enabled))return;const i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:s,scale:a,x:o,y:l,centerX:u,centerY:c}=oue(e,t,n),f=`${s*2}px`;r.className="v-ripple__animation",r.style.width=f,r.style.height=f,t.appendChild(i);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),cS(r,`translate(${o}, ${l}) scale3d(${a},${a},${a})`),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),cS(r,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var s;if(!((s=e==null?void 0:e._ripple)!=null&&s.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),r=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var o;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((o=n.parentNode)==null?void 0:o.parentNode)===e&&e.removeChild(n.parentNode)},300)},r)}};function $I(e){return typeof e>"u"||!!e}function Tu(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[Ng])){if(e[Ng]=!0,Rg(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||MI(e),n._ripple.class&&(t.class=n._ripple.class),Rg(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Md.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},aue)}else Md.show(e,n,t)}}function dS(e){e[Ng]=!0}function _i(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(()=>{_i(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Md.hide(t)}}function VI(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Eu=!1;function LI(e){!Eu&&(e.keyCode===A1.enter||e.keyCode===A1.space)&&(Eu=!0,Tu(e))}function NI(e){Eu=!1,_i(e)}function RI(e){Eu&&(Eu=!1,_i(e))}function FI(e,t,n){const{value:i,modifiers:r}=t,s=$I(i);if(s||Md.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=s,e._ripple.centered=r.center,e._ripple.circle=r.circle,Dv(i)&&i.class&&(e._ripple.class=i.class),s&&!n){if(r.stop){e.addEventListener("touchstart",dS,{passive:!0}),e.addEventListener("mousedown",dS);return}e.addEventListener("touchstart",Tu,{passive:!0}),e.addEventListener("touchend",_i,{passive:!0}),e.addEventListener("touchmove",VI,{passive:!0}),e.addEventListener("touchcancel",_i),e.addEventListener("mousedown",Tu),e.addEventListener("mouseup",_i),e.addEventListener("mouseleave",_i),e.addEventListener("keydown",LI),e.addEventListener("keyup",NI),e.addEventListener("blur",RI),e.addEventListener("dragstart",_i,{passive:!0})}else!s&&n&&BI(e)}function BI(e){e.removeEventListener("mousedown",Tu),e.removeEventListener("touchstart",Tu),e.removeEventListener("touchend",_i),e.removeEventListener("touchmove",VI),e.removeEventListener("touchcancel",_i),e.removeEventListener("mouseup",_i),e.removeEventListener("mouseleave",_i),e.removeEventListener("keydown",LI),e.removeEventListener("keyup",NI),e.removeEventListener("dragstart",_i),e.removeEventListener("blur",RI)}function lue(e,t){FI(e,t,!1)}function uue(e){delete e._ripple,BI(e)}function cue(e,t){if(t.value===t.oldValue)return;const n=$I(t.oldValue);FI(e,t,n)}const ss={mounted:lue,unmounted:uue,updated:cue},Bf=j({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Yv},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:je,appendIcon:je,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...ki(),...Ve(),...mn(),...Qt(),...ln(),...io(),...Ff(),...rs(),...ul(),...Pt(),...Yu(),...Mr(),...Xe({tag:"button"}),...ot(),...Ji({variant:"elevated"})},"VBtn"),mt=ae()({name:"VBtn",props:Bf(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=pt(e),{borderClasses:s}=Oi(e),{densityClasses:a}=Yn(e),{dimensionStyles:o}=en(e),{elevationClasses:l}=An(e),{loaderClasses:u}=Gu(e),{locationStyles:c}=so(e),{positionClasses:f}=cl(e),{roundedClasses:h}=Bt(e),{sizeClasses:m,sizeStyles:g}=ll(e),y=ro(e,e.symbol,!1),b=Ku(e,n),k=T(()=>{var O;return e.active!==void 0?e.active:b.isLink.value?(O=b.isActive)==null?void 0:O.value:y==null?void 0:y.isSelected.value}),w=T(()=>k.value?e.activeColor??e.color:e.color),E=T(()=>{var M,F;return{color:(y==null?void 0:y.isSelected.value)&&(!b.isLink.value||((M=b.isActive)==null?void 0:M.value))||!y||((F=b.isActive)==null?void 0:F.value)?w.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:I,colorStyles:D,variantClasses:x}=to(E),P=T(()=>(y==null?void 0:y.disabled.value)||e.disabled),A=T(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),C=T(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function $(O){var M;P.value||b.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||((M=b.navigate)==null||M.call(b,O),y==null||y.toggle())}return sue(b,y==null?void 0:y.select),he(()=>{const O=b.isLink.value?"a":e.tag,M=!!(e.prependIcon||i.prepend),F=!!(e.appendIcon||i.append),z=!!(e.icon&&e.icon!==!0);return ie(v(O,fe({type:O==="a"?void 0:"button",class:["v-btn",y==null?void 0:y.selectedClass.value,{"v-btn--active":k.value,"v-btn--block":e.block,"v-btn--disabled":P.value,"v-btn--elevated":A.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},r.value,s.value,I.value,a.value,l.value,u.value,f.value,h.value,m.value,x.value,e.class],style:[D.value,o.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:P.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:$,value:C.value},b.linkProps),{default:()=>{var re;return[Xs(!0,"v-btn"),!e.icon&&M&&v("span",{key:"prepend",class:"v-btn__prepend"},[i.prepend?v(tt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},i.prepend):v(gt,{key:"prepend-icon",icon:e.prependIcon},null)]),v("span",{class:"v-btn__content","data-no-activator":""},[!i.default&&z?v(gt,{key:"content-icon",icon:e.icon},null):v(tt,{key:"content-defaults",disabled:!z,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var le;return[((le=i.default)==null?void 0:le.call(i))??e.text]}})]),!e.icon&&F&&v("span",{key:"append",class:"v-btn__append"},[i.append?v(tt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},i.append):v(gt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&v("span",{key:"loader",class:"v-btn__loader"},[((re=i.loader)==null?void 0:re.call(i))??v(Zo,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[ss,!P.value&&e.ripple,"",{center:!!e.icon}]])}),{group:y}}}),due=j({...Bf({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),fue=ae()({name:"VAppBarNavIcon",props:due(),setup(e,t){let{slots:n}=t;return he(()=>v(mt,fe(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),hue=ae()({name:"VAppBarTitle",props:_I(),setup(e,t){let{slots:n}=t;return he(()=>v(Hv,fe(e,{class:"v-app-bar-title"}),n)),{}}}),zI=Or("v-alert-title"),mue=["success","info","warning","error"],gue=j({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:je,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>mue.includes(e)},...Ve(),...mn(),...Qt(),...ln(),...rs(),...ul(),...Pt(),...Xe(),...ot(),...Ji({variant:"flat"})},"VAlert"),pue=ae()({name:"VAlert",props:gue(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Be(e,"modelValue"),s=T(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),a=T(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:o}=pt(e),{colorClasses:l,colorStyles:u,variantClasses:c}=to(a),{densityClasses:f}=Yn(e),{dimensionStyles:h}=en(e),{elevationClasses:m}=An(e),{locationStyles:g}=so(e),{positionClasses:y}=cl(e),{roundedClasses:b}=Bt(e),{textColorClasses:k,textColorStyles:w}=Ln(se(e,"borderColor")),{t:E}=Ht(),I=T(()=>({"aria-label":E(e.closeLabel),onClick(D){r.value=!1,n("click:close",D)}}));return()=>{const D=!!(i.prepend||s.value),x=!!(i.title||e.title),P=!!(i.close||e.closable);return r.value&&v(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},o.value,l.value,f.value,m.value,y.value,b.value,c.value,e.class],style:[u.value,h.value,g.value,e.style],role:"alert"},{default:()=>{var A,C;return[Xs(!1,"v-alert"),e.border&&v("div",{key:"border",class:["v-alert__border",k.value],style:w.value},null),D&&v("div",{key:"prepend",class:"v-alert__prepend"},[i.prepend?v(tt,{key:"prepend-defaults",disabled:!s.value,defaults:{VIcon:{density:e.density,icon:s.value,size:e.prominent?44:28}}},i.prepend):v(gt,{key:"prepend-icon",density:e.density,icon:s.value,size:e.prominent?44:28},null)]),v("div",{class:"v-alert__content"},[x&&v(zI,{key:"title"},{default:()=>{var $;return[(($=i.title)==null?void 0:$.call(i))??e.title]}}),((A=i.text)==null?void 0:A.call(i))??e.text,(C=i.default)==null?void 0:C.call(i)]),i.append&&v("div",{key:"append",class:"v-alert__append"},[i.append()]),P&&v("div",{key:"close",class:"v-alert__close"},[i.close?v(tt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var $;return[($=i.close)==null?void 0:$.call(i,{props:I.value})]}}):v(mt,fe({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},I.value),null)])]}})}}}),vue=j({start:Boolean,end:Boolean,icon:je,image:String,text:String,...ki(),...Ve(),...mn(),...Pt(),...Mr(),...Xe(),...ot(),...Ji({variant:"flat"})},"VAvatar"),qi=ae()({name:"VAvatar",props:vue(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{borderClasses:r}=Oi(e),{colorClasses:s,colorStyles:a,variantClasses:o}=to(e),{densityClasses:l}=Yn(e),{roundedClasses:u}=Bt(e),{sizeClasses:c,sizeStyles:f}=ll(e);return he(()=>v(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},i.value,r.value,s.value,l.value,u.value,c.value,o.value,e.class],style:[a.value,f.value,e.style]},{default:()=>[n.default?v(tt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?v(Qr,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?v(gt,{key:"icon",icon:e.icon},null):e.text,Xs(!1,"v-avatar")]})),{}}}),yue=j({text:String,onClick:wn(),...Ve(),...ot()},"VLabel"),dl=ae()({name:"VLabel",props:yue(),setup(e,t){let{slots:n}=t;return he(()=>{var i;return v("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(i=n.default)==null?void 0:i.call(n)])}),{}}}),UI=Symbol.for("vuetify:selection-control-group"),Jv=j({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:je,trueIcon:je,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Dr},...Ve(),...mn(),...ot()},"SelectionControlGroup"),bue=j({...Jv({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),WI=ae()({name:"VSelectionControlGroup",props:bue(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),r=In(),s=T(()=>e.id||`v-selection-control-group-${r}`),a=T(()=>e.name||s.value),o=new Set;return kt(UI,{modelValue:i,forceUpdate:()=>{o.forEach(l=>l())},onForceUpdate:l=>{o.add(l),qn(()=>{o.delete(l)})}}),Rt({[e.defaultsTarget]:{color:se(e,"color"),disabled:se(e,"disabled"),density:se(e,"density"),error:se(e,"error"),inline:se(e,"inline"),modelValue:i,multiple:T(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),name:a,falseIcon:se(e,"falseIcon"),trueIcon:se(e,"trueIcon"),readonly:se(e,"readonly"),ripple:se(e,"ripple"),type:se(e,"type"),valueComparator:se(e,"valueComparator")}}),he(()=>{var l;return v("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),zf=j({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Ve(),...Jv()},"VSelectionControl");function kue(e){const t=Ze(UI,void 0),{densityClasses:n}=Yn(e),i=Be(e,"modelValue"),r=T(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),s=T(()=>e.falseValue!==void 0?e.falseValue:!1),a=T(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),o=T({get(){const m=t?t.modelValue.value:i.value;return a.value?Mt(m).some(g=>e.valueComparator(g,r.value)):e.valueComparator(m,r.value)},set(m){if(e.readonly)return;const g=m?r.value:s.value;let y=g;a.value&&(y=m?[...Mt(i.value),g]:Mt(i.value).filter(b=>!e.valueComparator(b,r.value))),t?t.modelValue.value=y:i.value=y}}),{textColorClasses:l,textColorStyles:u}=Ln(T(()=>{if(!(e.error||e.disabled))return o.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:f}=wt(T(()=>o.value&&!e.error&&!e.disabled?e.color:e.baseColor)),h=T(()=>o.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:r,falseValue:s,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,icon:h}}const Bs=ae()({name:"VSelectionControl",directives:{Ripple:ss},inheritAttrs:!1,props:zf(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{group:r,densityClasses:s,icon:a,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,trueValue:h}=kue(e),m=In(),g=Ae(!1),y=Ae(!1),b=ke(),k=T(()=>e.id||`input-${m}`),w=T(()=>!e.disabled&&!e.readonly);r==null||r.onForceUpdate(()=>{b.value&&(b.value.checked=o.value)});function E(P){w.value&&(g.value=!0,Yo(P.target,":focus-visible")!==!1&&(y.value=!0))}function I(){g.value=!1,y.value=!1}function D(P){P.stopPropagation()}function x(P){if(!w.value){b.value&&(b.value.checked=o.value);return}e.readonly&&r&&ct(()=>r.forceUpdate()),o.value=P.target.checked}return he(()=>{var O,M;const P=i.label?i.label({label:e.label,props:{for:k.value}}):e.label,[A,C]=Js(n),$=v("input",fe({ref:b,checked:o.value,disabled:!!e.disabled,id:k.value,onBlur:I,onFocus:E,onInput:x,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?o.value:void 0},C),null);return v("div",fe({class:["v-selection-control",{"v-selection-control--dirty":o.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":y.value,"v-selection-control--inline":e.inline},s.value,e.class]},A,{style:e.style}),[v("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(O=i.default)==null?void 0:O.call(i,{backgroundColorClasses:c,backgroundColorStyles:f}),ie(v("div",{class:["v-selection-control__input"]},[((M=i.input)==null?void 0:M.call(i,{model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,inputNode:$,icon:a.value,props:{onFocus:E,onBlur:I,id:k.value}}))??v(U,null,[a.value&&v(gt,{key:"icon",icon:a.value},null),$])]),[[Ai("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),P&&v(dl,{for:k.value,onClick:D},{default:()=>[P]})])}),{isFocused:g,input:b}}}),HI=j({indeterminate:Boolean,indeterminateIcon:{type:je,default:"$checkboxIndeterminate"},...zf({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),es=ae()({name:"VCheckboxBtn",props:HI(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"indeterminate"),r=Be(e,"modelValue");function s(l){i.value&&(i.value=!1)}const a=T(()=>i.value?e.indeterminateIcon:e.falseIcon),o=T(()=>i.value?e.indeterminateIcon:e.trueIcon);return he(()=>{const l=Zt(Bs.filterProps(e),["modelValue"]);return v(Bs,fe(l,{modelValue:r.value,"onUpdate:modelValue":[u=>r.value=u,s],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:a.value,trueIcon:o.value,"aria-checked":i.value?"mixed":void 0}),n)}),{}}});function jI(e){const{t}=Ht();function n(i){let{name:r}=i;const s={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[r],a=e[`onClick:${r}`],o=a&&s?t(`$vuetify.input.${s}`,e.label??""):void 0;return v(gt,{icon:e[`${r}Icon`],"aria-label":o,onClick:a},null)}return{InputIcon:n}}const wue=j({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Ve(),...cr({transition:{component:Gv,leaveAbsolute:!0,group:!0}})},"VMessages"),GI=ae()({name:"VMessages",props:wue(),setup(e,t){let{slots:n}=t;const i=T(()=>Mt(e.messages)),{textColorClasses:r,textColorStyles:s}=Ln(T(()=>e.color));return he(()=>v(Gn,{transition:e.transition,tag:"div",class:["v-messages",r.value,e.class],style:[s.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&i.value.map((a,o)=>v("div",{class:"v-messages__message",key:`${o}-${i.value}`},[n.message?n.message({message:a}):a]))]})),{}}}),Ju=j({focused:Boolean,"onUpdate:focused":wn()},"focus");function as(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr();const n=Be(e,"focused"),i=T(()=>({[`${t}--focused`]:n.value}));function r(){n.value=!0}function s(){n.value=!1}return{focusClasses:i,isFocused:n,focus:r,blur:s}}const qI=Symbol.for("vuetify:form"),Sue=j({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function _ue(e){const t=Be(e,"modelValue"),n=T(()=>e.disabled),i=T(()=>e.readonly),r=Ae(!1),s=ke([]),a=ke([]);async function o(){const c=[];let f=!0;a.value=[],r.value=!0;for(const h of s.value){const m=await h.validate();if(m.length>0&&(f=!1,c.push({id:h.id,errorMessages:m})),!f&&e.fastFail)break}return a.value=c,r.value=!1,{valid:f,errors:a.value}}function l(){s.value.forEach(c=>c.reset())}function u(){s.value.forEach(c=>c.resetValidation())}return Ie(s,()=>{let c=0,f=0;const h=[];for(const m of s.value)m.isValid===!1?(f++,h.push({id:m.id,errorMessages:m.errorMessages})):m.isValid===!0&&c++;a.value=h,t.value=f>0?!1:c===s.value.length?!0:null},{deep:!0,flush:"post"}),kt(qI,{register:c=>{let{id:f,vm:h,validate:m,reset:g,resetValidation:y}=c;s.value.some(b=>b.id===f),s.value.push({id:f,validate:m,reset:g,resetValidation:y,vm:pp(h),isValid:null,errorMessages:[]})},unregister:c=>{s.value=s.value.filter(f=>f.id!==c)},update:(c,f,h)=>{const m=s.value.find(g=>g.id===c);m&&(m.isValid=f,m.errorMessages=h)},isDisabled:n,isReadonly:i,isValidating:r,isValid:t,items:s,validateOn:se(e,"validateOn")}),{errors:a,isDisabled:n,isReadonly:i,isValidating:r,isValid:t,items:s,validate:o,reset:l,resetValidation:u}}function Uf(){return Ze(qI,null)}const KI=j({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Ju()},"validation");function YI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:In();const i=Be(e,"modelValue"),r=T(()=>e.validationValue===void 0?i.value:e.validationValue),s=Uf(),a=ke([]),o=Ae(!0),l=T(()=>!!(Mt(i.value===""?null:i.value).length||Mt(r.value===""?null:r.value).length)),u=T(()=>!!(e.disabled??(s==null?void 0:s.isDisabled.value))),c=T(()=>!!(e.readonly??(s==null?void 0:s.isReadonly.value))),f=T(()=>{var D;return(D=e.errorMessages)!=null&&D.length?Mt(e.errorMessages).concat(a.value).slice(0,Math.max(0,+e.maxErrors)):a.value}),h=T(()=>{let D=(e.validateOn??(s==null?void 0:s.validateOn.value))||"input";D==="lazy"&&(D="input lazy"),D==="eager"&&(D="input eager");const x=new Set((D==null?void 0:D.split(" "))??[]);return{input:x.has("input"),blur:x.has("blur")||x.has("input")||x.has("invalid-input"),invalidInput:x.has("invalid-input"),lazy:x.has("lazy"),eager:x.has("eager")}}),m=T(()=>{var D;return e.error||(D=e.errorMessages)!=null&&D.length?!1:e.rules.length?o.value?a.value.length||h.value.lazy?null:!0:!a.value.length:!0}),g=Ae(!1),y=T(()=>({[`${t}--error`]:m.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:u.value,[`${t}--readonly`]:c.value})),b=Ft("validation"),k=T(()=>e.name??qt(n));Wd(()=>{s==null||s.register({id:k.value,vm:b,validate:I,reset:w,resetValidation:E})}),an(()=>{s==null||s.unregister(k.value)}),En(async()=>{h.value.lazy||await I(!h.value.eager),s==null||s.update(k.value,m.value,f.value)}),ei(()=>h.value.input||h.value.invalidInput&&m.value===!1,()=>{Ie(r,()=>{if(r.value!=null)I();else if(e.focused){const D=Ie(()=>e.focused,x=>{x||I(),D()})}})}),ei(()=>h.value.blur,()=>{Ie(()=>e.focused,D=>{D||I()})}),Ie([m,f],()=>{s==null||s.update(k.value,m.value,f.value)});async function w(){i.value=null,await ct(),await E()}async function E(){o.value=!0,h.value.lazy?a.value=[]:await I(!h.value.eager)}async function I(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=[];g.value=!0;for(const P of e.rules){if(x.length>=+(e.maxErrors??1))break;const C=await(typeof P=="function"?P:()=>P)(r.value);if(C!==!0){if(C!==!1&&typeof C!="string"){console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);continue}x.push(C||"")}}return a.value=x,g.value=!1,o.value=D,a.value}return{errorMessages:f,isDirty:l,isDisabled:u,isReadonly:c,isPristine:o,isValid:m,isValidating:g,reset:w,resetValidation:E,validate:I,validationClasses:y}}const ls=j({id:String,appendIcon:je,centerAffix:{type:Boolean,default:!0},prependIcon:je,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":wn(),"onClick:append":wn(),...Ve(),...mn(),...Af(Qt(),["maxWidth","minWidth","width"]),...ot(),...KI()},"VInput"),Nn=ae()({name:"VInput",props:{...ls()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i,emit:r}=t;const{densityClasses:s}=Yn(e),{dimensionStyles:a}=en(e),{themeClasses:o}=pt(e),{rtlClasses:l}=on(),{InputIcon:u}=jI(e),c=In(),f=T(()=>e.id||`input-${c}`),h=T(()=>`${f.value}-messages`),{errorMessages:m,isDirty:g,isDisabled:y,isReadonly:b,isPristine:k,isValid:w,isValidating:E,reset:I,resetValidation:D,validate:x,validationClasses:P}=YI(e,"v-input",f),A=T(()=>({id:f,messagesId:h,isDirty:g,isDisabled:y,isReadonly:b,isPristine:k,isValid:w,isValidating:E,reset:I,resetValidation:D,validate:x})),C=T(()=>{var $;return($=e.errorMessages)!=null&&$.length||!k.value&&m.value.length?m.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return he(()=>{var z,re,le,ve;const $=!!(i.prepend||e.prependIcon),O=!!(i.append||e.appendIcon),M=C.value.length>0,F=!e.hideDetails||e.hideDetails==="auto"&&(M||!!i.details);return v("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},s.value,o.value,l.value,P.value,e.class],style:[a.value,e.style]},[$&&v("div",{key:"prepend",class:"v-input__prepend"},[(z=i.prepend)==null?void 0:z.call(i,A.value),e.prependIcon&&v(u,{key:"prepend-icon",name:"prepend"},null)]),i.default&&v("div",{class:"v-input__control"},[(re=i.default)==null?void 0:re.call(i,A.value)]),O&&v("div",{key:"append",class:"v-input__append"},[e.appendIcon&&v(u,{key:"append-icon",name:"append"},null),(le=i.append)==null?void 0:le.call(i,A.value)]),F&&v("div",{class:"v-input__details"},[v(GI,{id:h.value,active:M,messages:C.value},{message:i.message}),(ve=i.details)==null?void 0:ve.call(i,A.value)])])}),{reset:I,resetValidation:D,validate:x,isValid:w,errorMessages:m}}}),Cue=j({...ls(),...Zt(HI(),["inline"])},"VCheckbox"),Tue=ae()({name:"VCheckbox",inheritAttrs:!1,props:Cue(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=Be(e,"modelValue"),{isFocused:s,focus:a,blur:o}=as(e),l=In(),u=T(()=>e.id||`checkbox-${l}`);return he(()=>{const[c,f]=Js(n),h=Nn.filterProps(e),m=es.filterProps(e);return v(Nn,fe({class:["v-checkbox",e.class]},c,h,{modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,id:u.value,focused:s.value,style:e.style}),{...i,default:g=>{let{id:y,messagesId:b,isDisabled:k,isReadonly:w,isValid:E}=g;return v(es,fe(m,{id:y.value,"aria-describedby":b.value,disabled:k.value,readonly:w.value},f,{error:E.value===!1,modelValue:r.value,"onUpdate:modelValue":I=>r.value=I,onFocus:a,onBlur:o}),i)}})}),{}}});function Eue(e){let{selectedElement:t,containerElement:n,isRtl:i,isHorizontal:r}=e;const s=Iu(r,n),a=JI(r,i,n),o=Iu(r,t),l=XI(r,t),u=o*.4;return a>l?l-u:a+s<l+o?l-s+o+u:a}function Iue(e){let{selectedElement:t,containerElement:n,isHorizontal:i}=e;const r=Iu(i,n),s=XI(i,t),a=Iu(i,t);return s-r/2+a/2}function fS(e,t){const n=e?"scrollWidth":"scrollHeight";return(t==null?void 0:t[n])||0}function Aue(e,t){const n=e?"clientWidth":"clientHeight";return(t==null?void 0:t[n])||0}function JI(e,t,n){if(!n)return 0;const{scrollLeft:i,offsetWidth:r,scrollWidth:s}=n;return e?t?s-r+i:i:n.scrollTop}function Iu(e,t){const n=e?"offsetWidth":"offsetHeight";return(t==null?void 0:t[n])||0}function XI(e,t){const n=e?"offsetLeft":"offsetTop";return(t==null?void 0:t[n])||0}const ZI=Symbol.for("vuetify:v-slide-group"),Xv=j({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:ZI},nextIcon:{type:je,default:"$next"},prevIcon:{type:je,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Ve(),...Xa({mobile:null}),...Xe(),...no({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Au=ae()({name:"VSlideGroup",props:Xv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:i}=on(),{displayClasses:r,mobile:s}=Yi(e),a=Zs(e,e.symbol),o=Ae(!1),l=Ae(0),u=Ae(0),c=Ae(0),f=T(()=>e.direction==="horizontal"),{resizeRef:h,contentRect:m}=sr(),{resizeRef:g,contentRect:y}=sr(),b=fle(),k=T(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),w=T(()=>a.selected.value.length?a.items.value.findIndex(J=>J.id===a.selected.value[0]):-1),E=T(()=>a.selected.value.length?a.items.value.findIndex(J=>J.id===a.selected.value[a.selected.value.length-1]):-1);if(ht){let J=-1;Ie(()=>[a.selected.value,m.value,y.value,f.value],()=>{cancelAnimationFrame(J),J=requestAnimationFrame(()=>{if(m.value&&y.value){const K=f.value?"width":"height";u.value=m.value[K],c.value=y.value[K],o.value=u.value+1<c.value}if(w.value>=0&&g.el){const K=g.el.children[E.value];D(K,e.centerActive)}})})}const I=Ae(!1);function D(J,K){let me=0;K?me=Iue({containerElement:h.el,isHorizontal:f.value,selectedElement:J}):me=Eue({containerElement:h.el,isHorizontal:f.value,isRtl:i.value,selectedElement:J}),x(me)}function x(J){if(!ht||!h.el)return;const K=Iu(f.value,h.el),me=JI(f.value,i.value,h.el);if(!(fS(f.value,h.el)<=K||Math.abs(J-me)<16)){if(f.value&&i.value&&h.el){const{scrollWidth:Me,offsetWidth:$e}=h.el;J=Me-$e-J}f.value?b.horizontal(J,k.value):b(J,k.value)}}function P(J){const{scrollTop:K,scrollLeft:me}=J.target;l.value=f.value?me:K}function A(J){if(I.value=!0,!(!o.value||!g.el)){for(const K of J.composedPath())for(const me of g.el.children)if(me===K){D(me);return}}}function C(J){I.value=!1}let $=!1;function O(J){var K;!$&&!I.value&&!(J.relatedTarget&&((K=g.el)!=null&&K.contains(J.relatedTarget)))&&z(),$=!1}function M(){$=!0}function F(J){if(!g.el)return;function K(me){J.preventDefault(),z(me)}f.value?J.key==="ArrowRight"?K(i.value?"prev":"next"):J.key==="ArrowLeft"&&K(i.value?"next":"prev"):J.key==="ArrowDown"?K("next"):J.key==="ArrowUp"&&K("prev"),J.key==="Home"?K("first"):J.key==="End"&&K("last")}function z(J){var me,xe;if(!g.el)return;let K;if(!J)K=ku(g.el)[0];else if(J==="next"){if(K=(me=g.el.querySelector(":focus"))==null?void 0:me.nextElementSibling,!K)return z("first")}else if(J==="prev"){if(K=(xe=g.el.querySelector(":focus"))==null?void 0:xe.previousElementSibling,!K)return z("last")}else J==="first"?K=g.el.firstElementChild:J==="last"&&(K=g.el.lastElementChild);K&&K.focus({preventScroll:!0})}function re(J){const K=f.value&&i.value?-1:1,me=(J==="prev"?-K:K)*u.value;let xe=l.value+me;if(f.value&&i.value&&h.el){const{scrollWidth:Me,offsetWidth:$e}=h.el;xe+=Me-$e}x(xe)}const le=T(()=>({next:a.next,prev:a.prev,select:a.select,isSelected:a.isSelected})),ve=T(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return o.value||Math.abs(l.value)>0;case"mobile":return s.value||o.value||Math.abs(l.value)>0;default:return!s.value&&(o.value||Math.abs(l.value)>0)}}),ye=T(()=>Math.abs(l.value)>1),Z=T(()=>{if(!h.value)return!1;const J=fS(f.value,h.el),K=Aue(f.value,h.el);return J-K-Math.abs(l.value)>1});return he(()=>v(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":ve.value,"v-slide-group--is-overflowing":o.value},r.value,e.class],style:e.style,tabindex:I.value||a.selected.value.length?-1:0,onFocus:O},{default:()=>{var J,K,me;return[ve.value&&v("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!ye.value}],onMousedown:M,onClick:()=>ye.value&&re("prev")},[((J=n.prev)==null?void 0:J.call(n,le.value))??v(Cu,null,{default:()=>[v(gt,{icon:i.value?e.nextIcon:e.prevIcon},null)]})]),v("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:P},[v("div",{ref:g,class:"v-slide-group__content",onFocusin:A,onFocusout:C,onKeydown:F},[(K=n.default)==null?void 0:K.call(n,le.value)])]),ve.value&&v("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Z.value}],onMousedown:M,onClick:()=>Z.value&&re("next")},[((me=n.next)==null?void 0:me.call(n,le.value))??v(Cu,null,{default:()=>[v(gt,{icon:i.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:a.selected,scrollTo:re,scrollOffset:l,focus:z,hasPrev:ye,hasNext:Z}}}),QI=Symbol.for("vuetify:v-chip-group"),xue=j({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Dr},...Xv(),...Ve(),...no({selectedClass:"v-chip--selected"}),...Xe(),...ot(),...Ji({variant:"tonal"})},"VChipGroup"),Due=ae()({name:"VChipGroup",props:xue(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{isSelected:r,select:s,next:a,prev:o,selected:l}=Zs(e,QI);return Rt({VChip:{color:se(e,"color"),disabled:se(e,"disabled"),filter:se(e,"filter"),variant:se(e,"variant")}}),he(()=>{const u=Au.filterProps(e);return v(Au,fe(u,{class:["v-chip-group",{"v-chip-group--column":e.column},i.value,e.class],style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:r,select:s,next:a,prev:o,selected:l.value})]}})}),{}}}),Pue=j({activeClass:String,appendAvatar:String,appendIcon:je,closable:Boolean,closeIcon:{type:je,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:je,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:wn(),onClickOnce:wn(),...ki(),...Ve(),...mn(),...ln(),...io(),...Pt(),...Yu(),...Mr(),...Xe({tag:"span"}),...ot(),...Ji({variant:"tonal"})},"VChip"),fl=ae()({name:"VChip",directives:{Ripple:ss},props:Pue(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{t:s}=Ht(),{borderClasses:a}=Oi(e),{colorClasses:o,colorStyles:l,variantClasses:u}=to(e),{densityClasses:c}=Yn(e),{elevationClasses:f}=An(e),{roundedClasses:h}=Bt(e),{sizeClasses:m}=ll(e),{themeClasses:g}=pt(e),y=Be(e,"modelValue"),b=ro(e,QI,!1),k=Ku(e,n),w=T(()=>e.link!==!1&&k.isLink.value),E=T(()=>!e.disabled&&e.link!==!1&&(!!b||e.link||k.isClickable.value)),I=T(()=>({"aria-label":s(e.closeLabel),onClick(P){P.preventDefault(),P.stopPropagation(),y.value=!1,i("click:close",P)}}));function D(P){var A;i("click",P),E.value&&((A=k.navigate)==null||A.call(k,P),b==null||b.toggle())}function x(P){(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),D(P))}return()=>{const P=k.isLink.value?"a":e.tag,A=!!(e.appendIcon||e.appendAvatar),C=!!(A||r.append),$=!!(r.close||e.closable),O=!!(r.filter||e.filter)&&b,M=!!(e.prependIcon||e.prependAvatar),F=!!(M||r.prepend),z=!b||b.isSelected.value;return y.value&&ie(v(P,fe({class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":E.value,"v-chip--filter":O,"v-chip--pill":e.pill},g.value,a.value,z?o.value:void 0,c.value,f.value,h.value,m.value,u.value,b==null?void 0:b.selectedClass.value,e.class],style:[z?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:E.value?0:void 0,onClick:D,onKeydown:E.value&&!w.value&&x},k.linkProps),{default:()=>{var re;return[Xs(E.value,"v-chip"),O&&v(qv,{key:"filter"},{default:()=>[ie(v("div",{class:"v-chip__filter"},[r.filter?v(tt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},r.filter):v(gt,{key:"filter-icon",icon:e.filterIcon},null)]),[[vn,b.isSelected.value]])]}),F&&v("div",{key:"prepend",class:"v-chip__prepend"},[r.prepend?v(tt,{key:"prepend-defaults",disabled:!M,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},r.prepend):v(U,null,[e.prependIcon&&v(gt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&v(qi,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),v("div",{class:"v-chip__content","data-no-activator":""},[((re=r.default)==null?void 0:re.call(r,{isSelected:b==null?void 0:b.isSelected.value,selectedClass:b==null?void 0:b.selectedClass.value,select:b==null?void 0:b.select,toggle:b==null?void 0:b.toggle,value:b==null?void 0:b.value.value,disabled:e.disabled}))??e.text]),C&&v("div",{key:"append",class:"v-chip__append"},[r.append?v(tt,{key:"append-defaults",disabled:!A,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},r.append):v(U,null,[e.appendIcon&&v(gt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&v(qi,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),$&&v("button",fe({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},I.value),[r.close?v(tt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},r.close):v(gt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Ai("ripple"),E.value&&e.ripple,null]])}}}),Fg=Symbol.for("vuetify:list");function eA(){const e=Ze(Fg,{hasPrepend:Ae(!1),updateHasPrepend:()=>null}),t={hasPrepend:Ae(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return kt(Fg,t),e}function tA(){return Ze(Fg,null)}const Zv=e=>{const t={activate:n=>{let{id:i,value:r,activated:s}=n;return i=Ke(i),e&&!r&&s.size===1&&s.has(i)||(r?s.add(i):s.delete(i)),s},in:(n,i,r)=>{let s=new Set;if(n!=null)for(const a of Mt(n))s=t.activate({id:a,value:!0,activated:new Set(s),children:i,parents:r});return s},out:n=>Array.from(n)};return t},nA=e=>{const t=Zv(e);return{activate:i=>{let{activated:r,id:s,...a}=i;s=Ke(s);const o=r.has(s)?new Set([s]):new Set;return t.activate({...a,id:s,activated:o})},in:(i,r,s)=>{let a=new Set;if(i!=null){const o=Mt(i);o.length&&(a=t.in(o.slice(0,1),r,s))}return a},out:(i,r,s)=>t.out(i,r,s)}},Oue=e=>{const t=Zv(e);return{activate:i=>{let{id:r,activated:s,children:a,...o}=i;return r=Ke(r),a.has(r)?s:t.activate({id:r,activated:s,children:a,...o})},in:t.in,out:t.out}},Mue=e=>{const t=nA(e);return{activate:i=>{let{id:r,activated:s,children:a,...o}=i;return r=Ke(r),a.has(r)?s:t.activate({id:r,activated:s,children:a,...o})},in:t.in,out:t.out}},$ue={open:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(n){const s=new Set;s.add(t);let a=r.get(t);for(;a!=null;)s.add(a),a=r.get(a);return s}else return i.delete(t),i},select:()=>null},iA={open:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(n){let s=r.get(t);for(i.add(t);s!=null&&s!==t;)i.add(s),s=r.get(s);return i}else i.delete(t);return i},select:()=>null},Vue={open:iA.open,select:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(!n)return i;const s=[];let a=r.get(t);for(;a!=null;)s.push(a),a=r.get(a);return new Set(s)}},Qv=e=>{const t={select:n=>{let{id:i,value:r,selected:s}=n;if(i=Ke(i),e&&!r){const a=Array.from(s.entries()).reduce((o,l)=>{let[u,c]=l;return c==="on"&&o.push(u),o},[]);if(a.length===1&&a[0]===i)return s}return s.set(i,r?"on":"off"),s},in:(n,i,r)=>{let s=new Map;for(const a of n||[])s=t.select({id:a,value:!0,selected:new Map(s),children:i,parents:r});return s},out:n=>{const i=[];for(const[r,s]of n.entries())s==="on"&&i.push(r);return i}};return t},rA=e=>{const t=Qv(e);return{select:i=>{let{selected:r,id:s,...a}=i;s=Ke(s);const o=r.has(s)?new Map([[s,r.get(s)]]):new Map;return t.select({...a,id:s,selected:o})},in:(i,r,s)=>{let a=new Map;return i!=null&&i.length&&(a=t.in(i.slice(0,1),r,s)),a},out:(i,r,s)=>t.out(i,r,s)}},Lue=e=>{const t=Qv(e);return{select:i=>{let{id:r,selected:s,children:a,...o}=i;return r=Ke(r),a.has(r)?s:t.select({id:r,selected:s,children:a,...o})},in:t.in,out:t.out}},Nue=e=>{const t=rA(e);return{select:i=>{let{id:r,selected:s,children:a,...o}=i;return r=Ke(r),a.has(r)?s:t.select({id:r,selected:s,children:a,...o})},in:t.in,out:t.out}},Rue=e=>{const t={select:n=>{let{id:i,value:r,selected:s,children:a,parents:o}=n;i=Ke(i);const l=new Map(s),u=[i];for(;u.length;){const f=u.shift();s.set(Ke(f),r?"on":"off"),a.has(f)&&u.push(...a.get(f))}let c=Ke(o.get(i));for(;c;){const f=a.get(c),h=f.every(g=>s.get(Ke(g))==="on"),m=f.every(g=>!s.has(Ke(g))||s.get(Ke(g))==="off");s.set(c,h?"on":m?"off":"indeterminate"),c=Ke(o.get(c))}return e&&!r&&Array.from(s.entries()).reduce((h,m)=>{let[g,y]=m;return y==="on"&&h.push(g),h},[]).length===0?l:s},in:(n,i,r)=>{let s=new Map;for(const a of n||[])s=t.select({id:a,value:!0,selected:new Map(s),children:i,parents:r});return s},out:(n,i)=>{const r=[];for(const[s,a]of n.entries())a==="on"&&!i.has(s)&&r.push(s);return r}};return t},xu=Symbol.for("vuetify:nested"),sA={id:Ae(),root:{register:()=>null,unregister:()=>null,parents:ke(new Map),children:ke(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ke(!1),selectable:ke(!1),opened:ke(new Set),activated:ke(new Set),selected:ke(new Map),selectedValues:ke([]),getPath:()=>[]}},Fue=j({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),Bue=e=>{let t=!1;const n=ke(new Map),i=ke(new Map),r=Be(e,"opened",e.opened,g=>new Set(g),g=>[...g.values()]),s=T(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Oue(e.mandatory);case"single-leaf":return Mue(e.mandatory);case"independent":return Zv(e.mandatory);case"single-independent":default:return nA(e.mandatory)}}),a=T(()=>{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 Nue(e.mandatory);case"leaf":return Lue(e.mandatory);case"independent":return Qv(e.mandatory);case"single-independent":return rA(e.mandatory);case"classic":default:return Rue(e.mandatory)}}),o=T(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Vue;case"single":return $ue;case"multiple":default:return iA}}),l=Be(e,"activated",e.activated,g=>s.value.in(g,n.value,i.value),g=>s.value.out(g,n.value,i.value)),u=Be(e,"selected",e.selected,g=>a.value.in(g,n.value,i.value),g=>a.value.out(g,n.value,i.value));an(()=>{t=!0});function c(g){const y=[];let b=g;for(;b!=null;)y.unshift(b),b=i.value.get(b);return y}const f=Ft("nested"),h=new Set,m={id:Ae(),root:{opened:r,activatable:se(e,"activatable"),selectable:se(e,"selectable"),activated:l,selected:u,selectedValues:T(()=>{const g=[];for(const[y,b]of u.value.entries())b==="on"&&g.push(y);return g}),register:(g,y,b)=>{if(h.has(g)){c(g).map(String).join(" -> "),c(y).concat(g).map(String).join(" -> ");return}else h.add(g);y&&g!==y&&i.value.set(g,y),b&&n.value.set(g,[]),y!=null&&n.value.set(y,[...n.value.get(y)||[],g])},unregister:g=>{if(t)return;h.delete(g),n.value.delete(g);const y=i.value.get(g);if(y){const b=n.value.get(y)??[];n.value.set(y,b.filter(k=>k!==g))}i.value.delete(g)},open:(g,y,b)=>{f.emit("click:open",{id:g,value:y,path:c(g),event:b});const k=o.value.open({id:g,value:y,opened:new Set(r.value),children:n.value,parents:i.value,event:b});k&&(r.value=k)},openOnSelect:(g,y,b)=>{const k=o.value.select({id:g,value:y,selected:new Map(u.value),opened:new Set(r.value),children:n.value,parents:i.value,event:b});k&&(r.value=k)},select:(g,y,b)=>{f.emit("click:select",{id:g,value:y,path:c(g),event:b});const k=a.value.select({id:g,value:y,selected:new Map(u.value),children:n.value,parents:i.value,event:b});k&&(u.value=k),m.root.openOnSelect(g,y,b)},activate:(g,y,b)=>{if(!e.activatable)return m.root.select(g,!0,b);f.emit("click:activate",{id:g,value:y,path:c(g),event:b});const k=s.value.activate({id:g,value:y,activated:new Set(l.value),children:n.value,parents:i.value,event:b});k&&(l.value=k)},children:n,parents:i,getPath:c}};return kt(xu,m),m.root},aA=(e,t)=>{const n=Ze(xu,sA),i=Symbol(In()),r=T(()=>e.value!==void 0?e.value:i),s={...n,id:r,open:(a,o)=>n.root.open(r.value,a,o),openOnSelect:(a,o)=>n.root.openOnSelect(r.value,a,o),isOpen:T(()=>n.root.opened.value.has(r.value)),parent:T(()=>n.root.parents.value.get(r.value)),activate:(a,o)=>n.root.activate(r.value,a,o),isActivated:T(()=>n.root.activated.value.has(Ke(r.value))),select:(a,o)=>n.root.select(r.value,a,o),isSelected:T(()=>n.root.selected.value.get(Ke(r.value))==="on"),isIndeterminate:T(()=>n.root.selected.value.get(r.value)==="indeterminate"),isLeaf:T(()=>!n.root.children.value.get(r.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(r.value,n.id.value,t),an(()=>{!n.isGroupActivator&&n.root.unregister(r.value)}),t&&kt(xu,s),s},zue=()=>{const e=Ze(xu,sA);kt(xu,{...e,isGroupActivator:!0})},Uue=Di({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return zue(),()=>{var i;return(i=n.default)==null?void 0:i.call(n)}}}),Wue=j({activeColor:String,baseColor:String,color:String,collapseIcon:{type:je,default:"$collapse"},expandIcon:{type:je,default:"$expand"},prependIcon:je,appendIcon:je,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Ve(),...Xe()},"VListGroup"),Bg=ae()({name:"VListGroup",props:Wue(),setup(e,t){let{slots:n}=t;const{isOpen:i,open:r,id:s}=aA(se(e,"value"),!0),a=T(()=>`v-list-group--id-${String(s.value)}`),o=tA(),{isBooted:l}=eo();function u(m){m.stopPropagation(),r(!i.value,m)}const c=T(()=>({onClick:u,class:"v-list-group__header",id:a.value})),f=T(()=>i.value?e.collapseIcon:e.expandIcon),h=T(()=>({VListItem:{active:i.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&f.value,appendIcon:e.appendIcon||!e.subgroup&&f.value,title:e.title,value:e.value}}));return he(()=>v(e.tag,{class:["v-list-group",{"v-list-group--prepend":o==null?void 0:o.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":i.value},e.class],style:e.style},{default:()=>[n.activator&&v(tt,{defaults:h.value},{default:()=>[v(Uue,null,{default:()=>[n.activator({props:c.value,isOpen:i.value})]})]}),v(Gn,{transition:{component:Lf},disabled:!l.value},{default:()=>{var m;return[ie(v("div",{class:"v-list-group__items",role:"group","aria-labelledby":a.value},[(m=n.default)==null?void 0:m.call(n)]),[[vn,i.value]])]}})]})),{isOpen:i}}}),Hue=j({opacity:[Number,String],...Ve(),...Xe()},"VListItemSubtitle"),oA=ae()({name:"VListItemSubtitle",props:Hue(),setup(e,t){let{slots:n}=t;return he(()=>v(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),lA=Or("v-list-item-title"),jue=j({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:je,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:je,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:wn(),onClickOnce:wn(),...ki(),...Ve(),...mn(),...Qt(),...ln(),...Pt(),...Yu(),...Xe(),...ot(),...Ji({variant:"text"})},"VListItem"),ts=ae()({name:"VListItem",directives:{Ripple:ss},props:jue(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:i,emit:r}=t;const s=Ku(e,n),a=T(()=>e.value===void 0?s.href.value:e.value),{activate:o,isActivated:l,select:u,isOpen:c,isSelected:f,isIndeterminate:h,isGroupActivator:m,root:g,parent:y,openOnSelect:b,id:k}=aA(a,!1),w=tA(),E=T(()=>{var me;return e.active!==!1&&(e.active||((me=s.isActive)==null?void 0:me.value)||(g.activatable.value?l.value:f.value))}),I=T(()=>e.link!==!1&&s.isLink.value),D=T(()=>!e.disabled&&e.link!==!1&&(e.link||s.isClickable.value||!!w&&(g.selectable.value||g.activatable.value||e.value!=null))),x=T(()=>e.rounded||e.nav),P=T(()=>e.color??e.activeColor),A=T(()=>({color:E.value?P.value??e.baseColor:e.baseColor,variant:e.variant}));Ie(()=>{var me;return(me=s.isActive)==null?void 0:me.value},me=>{me&&y.value!=null&&g.open(y.value,!0),me&&b(me)},{immediate:!0});const{themeClasses:C}=pt(e),{borderClasses:$}=Oi(e),{colorClasses:O,colorStyles:M,variantClasses:F}=to(A),{densityClasses:z}=Yn(e),{dimensionStyles:re}=en(e),{elevationClasses:le}=An(e),{roundedClasses:ve}=Bt(x),ye=T(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),Z=T(()=>({isActive:E.value,select:u,isOpen:c.value,isSelected:f.value,isIndeterminate:h.value}));function J(me){var xe;r("click",me),D.value&&((xe=s.navigate)==null||xe.call(s,me),!m&&(g.activatable.value?o(!l.value,me):(g.selectable.value||e.value!=null)&&u(!f.value,me)))}function K(me){(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),me.target.dispatchEvent(new MouseEvent("click",me)))}return he(()=>{const me=I.value?"a":e.tag,xe=i.title||e.title!=null,Me=i.subtitle||e.subtitle!=null,$e=!!(e.appendAvatar||e.appendIcon),oe=!!($e||i.append),q=!!(e.prependAvatar||e.prependIcon),de=!!(q||i.prepend);return w==null||w.updateHasPrepend(de),e.activeColor&&Gae("active-color",["color","base-color"]),ie(v(me,fe({class:["v-list-item",{"v-list-item--active":E.value,"v-list-item--disabled":e.disabled,"v-list-item--link":D.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!de&&(w==null?void 0:w.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&E.value},C.value,$.value,O.value,z.value,le.value,ye.value,ve.value,F.value,e.class],style:[M.value,re.value,e.style],tabindex:D.value?w?-2:0:void 0,"aria-selected":g.activatable.value?l.value:f.value,onClick:J,onKeydown:D.value&&!I.value&&K},s.linkProps),{default:()=>{var Se;return[Xs(D.value||E.value,"v-list-item"),de&&v("div",{key:"prepend",class:"v-list-item__prepend"},[i.prepend?v(tt,{key:"prepend-defaults",disabled:!q,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var _e;return[(_e=i.prepend)==null?void 0:_e.call(i,Z.value)]}}):v(U,null,[e.prependAvatar&&v(qi,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&v(gt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),v("div",{class:"v-list-item__spacer"},null)]),v("div",{class:"v-list-item__content","data-no-activator":""},[xe&&v(lA,{key:"title"},{default:()=>{var _e;return[((_e=i.title)==null?void 0:_e.call(i,{title:e.title}))??e.title]}}),Me&&v(oA,{key:"subtitle"},{default:()=>{var _e;return[((_e=i.subtitle)==null?void 0:_e.call(i,{subtitle:e.subtitle}))??e.subtitle]}}),(Se=i.default)==null?void 0:Se.call(i,Z.value)]),oe&&v("div",{key:"append",class:"v-list-item__append"},[i.append?v(tt,{key:"append-defaults",disabled:!$e,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var _e;return[(_e=i.append)==null?void 0:_e.call(i,Z.value)]}}):v(U,null,[e.appendIcon&&v(gt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&v(qi,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),v("div",{class:"v-list-item__spacer"},null)])]}}),[[Ai("ripple"),D.value&&e.ripple]])}),{activate:o,isActivated:l,isGroupActivator:m,isSelected:f,list:w,select:u,root:g,id:k}}}),Gue=j({color:String,inset:Boolean,sticky:Boolean,title:String,...Ve(),...Xe()},"VListSubheader"),uA=ae()({name:"VListSubheader",props:Gue(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:r}=Ln(se(e,"color"));return he(()=>{const s=!!(n.default||e.title);return v(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},i.value,e.class],style:[{textColorStyles:r},e.style]},{default:()=>{var a;return[s&&v("div",{class:"v-list-subheader__text"},[((a=n.default)==null?void 0:a.call(n))??e.title])]}})}),{}}}),que=j({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Ve(),...ot()},"VDivider"),Xu=ae()({name:"VDivider",props:que(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=pt(e),{textColorClasses:s,textColorStyles:a}=Ln(se(e,"color")),o=T(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=Pe(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=Pe(e.thickness)),l});return he(()=>{const l=v("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,s.value,e.class],style:[o.value,a.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return i.default?v("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,v("div",{class:"v-divider__content"},[i.default()]),l]):l}),{}}}),Kue=j({items:Array,returnObject:Boolean},"VListChildren"),cA=ae()({name:"VListChildren",props:Kue(),setup(e,t){let{slots:n}=t;return eA(),()=>{var i,r;return((i=n.default)==null?void 0:i.call(n))??((r=e.items)==null?void 0:r.map(s=>{var h,m;let{children:a,props:o,type:l,raw:u}=s;if(l==="divider")return((h=n.divider)==null?void 0:h.call(n,{props:o}))??v(Xu,o,null);if(l==="subheader")return((m=n.subheader)==null?void 0:m.call(n,{props:o}))??v(uA,o,null);const c={subtitle:n.subtitle?g=>{var y;return(y=n.subtitle)==null?void 0:y.call(n,{...g,item:u})}:void 0,prepend:n.prepend?g=>{var y;return(y=n.prepend)==null?void 0:y.call(n,{...g,item:u})}:void 0,append:n.append?g=>{var y;return(y=n.append)==null?void 0:y.call(n,{...g,item:u})}:void 0,title:n.title?g=>{var y;return(y=n.title)==null?void 0:y.call(n,{...g,item:u})}:void 0},f=Bg.filterProps(o);return a?v(Bg,fe({value:o==null?void 0:o.value},f),{activator:g=>{let{props:y}=g;const b={...o,...y,value:e.returnObject?u:o.value};return n.header?n.header({props:b}):v(ts,b,c)},default:()=>v(cA,{items:a,returnObject:e.returnObject},n)}):n.item?n.item({props:o}):v(ts,fe(o,{value:e.returnObject?u:o.value}),c)}))}}}),dA=j({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"},returnObject:Boolean,valueComparator:{type:Function,default:Dr}},"list-items");function Ts(e,t){const n=nn(t,e.itemTitle,t),i=nn(t,e.itemValue,n),r=nn(t,e.itemChildren),s=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Zt(t,["children"]):t:void 0:nn(t,e.itemProps),a={title:n,value:i,...s};return{title:String(a.title??""),value:a.value,props:a,children:Array.isArray(r)?fA(e,r):void 0,raw:t}}function fA(e,t){const n=[];for(const i of t)n.push(Ts(e,i));return n}function ey(e){const t=T(()=>fA(e,e.items)),n=T(()=>t.value.some(s=>s.value===null));function i(s){return n.value||(s=s.filter(a=>a!==null)),s.map(a=>e.returnObject&&typeof a=="string"?Ts(e,a):t.value.find(o=>e.valueComparator(a,o.value))||Ts(e,a))}function r(s){return e.returnObject?s.map(a=>{let{raw:o}=a;return o}):s.map(a=>{let{value:o}=a;return o})}return{items:t,transformIn:i,transformOut:r}}function Yue(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Jue(e,t){const n=nn(t,e.itemType,"item"),i=Yue(t)?t:nn(t,e.itemTitle),r=nn(t,e.itemValue,void 0),s=nn(t,e.itemChildren),a=e.itemProps===!0?Zt(t,["children"]):nn(t,e.itemProps),o={title:i,value:r,...a};return{type:n,title:o.title,value:o.value,props:o,children:n==="item"&&s?hA(e,s):void 0,raw:t}}function hA(e,t){const n=[];for(const i of t)n.push(Jue(e,i));return n}function Xue(e){return{items:T(()=>hA(e,e.items))}}const Zue=j({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":wn(),"onClick:select":wn(),"onUpdate:opened":wn(),...Fue({selectStrategy:"single-leaf",openStrategy:"list"}),...ki(),...Ve(),...mn(),...Qt(),...ln(),itemType:{type:String,default:"type"},...dA(),...Pt(),...Xe(),...ot(),...Ji({variant:"text"})},"VList"),Wf=ae()({name:"VList",props:Zue(),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:i}=Xue(e),{themeClasses:r}=pt(e),{backgroundColorClasses:s,backgroundColorStyles:a}=wt(se(e,"bgColor")),{borderClasses:o}=Oi(e),{densityClasses:l}=Yn(e),{dimensionStyles:u}=en(e),{elevationClasses:c}=An(e),{roundedClasses:f}=Bt(e),{children:h,open:m,parents:g,select:y,getPath:b}=Bue(e),k=T(()=>e.lines?`v-list--${e.lines}-line`:void 0),w=se(e,"activeColor"),E=se(e,"baseColor"),I=se(e,"color");eA(),Rt({VListGroup:{activeColor:w,baseColor:E,color:I,expandIcon:se(e,"expandIcon"),collapseIcon:se(e,"collapseIcon")},VListItem:{activeClass:se(e,"activeClass"),activeColor:w,baseColor:E,color:I,density:se(e,"density"),disabled:se(e,"disabled"),lines:se(e,"lines"),nav:se(e,"nav"),slim:se(e,"slim"),variant:se(e,"variant")}});const D=Ae(!1),x=ke();function P(F){D.value=!0}function A(F){D.value=!1}function C(F){var z;!D.value&&!(F.relatedTarget&&((z=x.value)!=null&&z.contains(F.relatedTarget)))&&M()}function $(F){const z=F.target;if(!(!x.value||["INPUT","TEXTAREA"].includes(z.tagName))){if(F.key==="ArrowDown")M("next");else if(F.key==="ArrowUp")M("prev");else if(F.key==="Home")M("first");else if(F.key==="End")M("last");else return;F.preventDefault()}}function O(F){D.value=!0}function M(F){if(x.value)return Ta(x.value,F)}return he(()=>v(e.tag,{ref:x,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},r.value,s.value,o.value,l.value,c.value,k.value,f.value,e.class],style:[a.value,u.value,e.style],tabindex:e.disabled||D.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:P,onFocusout:A,onFocus:C,onKeydown:$,onMousedown:O},{default:()=>[v(cA,{items:i.value,returnObject:e.returnObject},n)]})),{open:m,select:y,focus:M,children:h,parents:g,getPath:b}}}),Que=Or("v-list-img"),ece=j({start:Boolean,end:Boolean,...Ve(),...Xe()},"VListItemAction"),tce=ae()({name:"VListItemAction",props:ece(),setup(e,t){let{slots:n}=t;return he(()=>v(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),nce=j({start:Boolean,end:Boolean,...Ve(),...Xe()},"VListItemMedia"),ice=ae()({name:"VListItemMedia",props:nce(),setup(e,t){let{slots:n}=t;return he(()=>v(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function dm(e,t){return{x:e.x+t.x,y:e.y+t.y}}function rce(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hS(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:i}=e,r=i==="left"?0:i==="center"?t.width/2:i==="right"?t.width:i,s=n==="top"?0:n==="bottom"?t.height:n;return dm({x:r,y:s},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:i}=e,r=n==="left"?0:n==="right"?t.width:n,s=i==="top"?0:i==="center"?t.height/2:i==="bottom"?t.height:i;return dm({x:r,y:s},t)}return dm({x:t.width/2,y:t.height/2},t)}const mA={static:oce,connected:uce},sce=j({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in mA},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function ace(e,t){const n=ke({}),i=ke();ht&&ei(()=>!!(t.isActive.value&&e.locationStrategy),s=>{var a,o;Ie(()=>e.locationStrategy,s),qn(()=>{window.removeEventListener("resize",r),i.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof e.locationStrategy=="function"?i.value=(a=e.locationStrategy(t,e,n))==null?void 0:a.updateLocation:i.value=(o=mA[e.locationStrategy](t,e,n))==null?void 0:o.updateLocation});function r(s){var a;(a=i.value)==null||a.call(i,s)}return{contentStyles:n,updateLocation:i}}function oce(){}function lce(e,t){const n=Vv(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 uce(e,t,n){(Array.isArray(e.target.value)||hoe(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:s}=Mv(()=>{const g=Eg(t.location,e.isRtl.value),y=t.origin==="overlap"?g:t.origin==="auto"?am(g):Eg(t.origin,e.isRtl.value);return g.side===y.side&&g.align===om(y).align?{preferredAnchor:$1(g),preferredOrigin:$1(y)}:{preferredAnchor:g,preferredOrigin:y}}),[a,o,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>T(()=>{const y=parseFloat(t[g]);return isNaN(y)?1/0:y})),c=T(()=>{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 f=!1;const h=new ResizeObserver(()=>{f&&m()});Ie([e.target,e.contentEl],(g,y)=>{let[b,k]=g,[w,E]=y;w&&!Array.isArray(w)&&h.unobserve(w),b&&!Array.isArray(b)&&h.observe(b),E&&h.unobserve(E),k&&h.observe(k)},{immediate:!0}),qn(()=>{h.disconnect()});function m(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;const g=qE(e.target.value),y=lce(e.contentEl.value,e.isRtl.value),b=Pd(e.contentEl.value),k=12;b.length||(b.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(y.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),y.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const w=b.reduce((O,M)=>{const F=M.getBoundingClientRect(),z=new Ea({x:M===document.documentElement?0:F.x,y:M===document.documentElement?0:F.y,width:M.clientWidth,height:M.clientHeight});return O?new Ea({x:Math.max(O.left,z.left),y:Math.max(O.top,z.top),width:Math.min(O.right,z.right)-Math.max(O.left,z.left),height:Math.min(O.bottom,z.bottom)-Math.max(O.top,z.top)}):z},void 0);w.x+=k,w.y+=k,w.width-=k*2,w.height-=k*2;let E={anchor:r.value,origin:s.value};function I(O){const M=new Ea(y),F=hS(O.anchor,g),z=hS(O.origin,M);let{x:re,y:le}=rce(F,z);switch(O.anchor.side){case"top":le-=c.value[0];break;case"bottom":le+=c.value[0];break;case"left":re-=c.value[0];break;case"right":re+=c.value[0];break}switch(O.anchor.align){case"top":le-=c.value[1];break;case"bottom":le+=c.value[1];break;case"left":re-=c.value[1];break;case"right":re+=c.value[1];break}return M.x+=re,M.y+=le,M.width=Math.min(M.width,l.value),M.height=Math.min(M.height,u.value),{overflows:L1(M,w),x:re,y:le}}let D=0,x=0;const P={x:0,y:0},A={x:!1,y:!1};let C=-1;for(;!(C++>10);){const{x:O,y:M,overflows:F}=I(E);D+=O,x+=M,y.x+=O,y.y+=M;{const z=V1(E.anchor),re=F.x.before||F.x.after,le=F.y.before||F.y.after;let ve=!1;if(["x","y"].forEach(ye=>{if(ye==="x"&&re&&!A.x||ye==="y"&&le&&!A.y){const Z={anchor:{...E.anchor},origin:{...E.origin}},J=ye==="x"?z==="y"?om:am:z==="y"?am:om;Z.anchor=J(Z.anchor),Z.origin=J(Z.origin);const{overflows:K}=I(Z);(K[ye].before<=F[ye].before&&K[ye].after<=F[ye].after||K[ye].before+K[ye].after<(F[ye].before+F[ye].after)/2)&&(E=Z,ve=A[ye]=!0)}}),ve)continue}F.x.before&&(D+=F.x.before,y.x+=F.x.before),F.x.after&&(D-=F.x.after,y.x-=F.x.after),F.y.before&&(x+=F.y.before,y.y+=F.y.before),F.y.after&&(x-=F.y.after,y.y-=F.y.after);{const z=L1(y,w);P.x=w.width-z.x.before-z.x.after,P.y=w.height-z.y.before-z.y.after,D+=z.x.before,y.x+=z.x.before,x+=z.y.before,y.y+=z.y.before}break}const $=V1(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:Pe(fm(x)),left:e.isRtl.value?void 0:Pe(fm(D)),right:e.isRtl.value?Pe(fm(-D)):void 0,minWidth:Pe($==="y"?Math.min(a.value,g.width):a.value),maxWidth:Pe(mS(Yt(P.x,a.value===1/0?0:a.value,l.value))),maxHeight:Pe(mS(Yt(P.y,o.value===1/0?0:o.value,u.value)))}),{available:P,contentBox:y}}return Ie(()=>[r.value,s.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>m()),ct(()=>{const g=m();if(!g)return;const{available:y,contentBox:b}=g;b.height>y.y&&requestAnimationFrame(()=>{m(),requestAnimationFrame(()=>{m()})})}),{updateLocation:m}}function fm(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function mS(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let zg=!0;const $d=[];function cce(e){!zg||$d.length?($d.push(e),Ug()):(zg=!1,e(),Ug())}let gS=-1;function Ug(){cancelAnimationFrame(gS),gS=requestAnimationFrame(()=>{const e=$d.shift();e&&e(),$d.length?Ug():zg=!0})}const Qc={none:null,close:hce,block:mce,reposition:gce},dce=j({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Qc}},"VOverlay-scroll-strategies");function fce(e,t){if(!ht)return;let n;Wt(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Mu(),await new Promise(i=>setTimeout(i)),n.active&&n.run(()=>{var i;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(i=Qc[e.scrollStrategy])==null||i.call(Qc,t,e,n)}))}),qn(()=>{n==null||n.stop()})}function hce(e){function t(n){e.isActive.value=!1}gA(e.targetEl.value??e.contentEl.value,t)}function mce(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,i=[...new Set([...Pd(e.targetEl.value,t.contained?n:void 0),...Pd(e.contentEl.value,t.contained?n:void 0)])].filter(o=>!o.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,s=(o=>Bv(o)&&o)(n||document.documentElement);s&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((o,l)=>{o.style.setProperty("--v-body-scroll-x",Pe(-o.scrollLeft)),o.style.setProperty("--v-body-scroll-y",Pe(-o.scrollTop)),o!==document.documentElement&&o.style.setProperty("--v-scrollbar-offset",Pe(r)),o.classList.add("v-overlay-scroll-blocked")}),qn(()=>{i.forEach((o,l)=>{const u=parseFloat(o.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(o.style.getPropertyValue("--v-body-scroll-y")),f=o.style.scrollBehavior;o.style.scrollBehavior="auto",o.style.removeProperty("--v-body-scroll-x"),o.style.removeProperty("--v-body-scroll-y"),o.style.removeProperty("--v-scrollbar-offset"),o.classList.remove("v-overlay-scroll-blocked"),o.scrollLeft=-u,o.scrollTop=-c,o.style.scrollBehavior=f}),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function gce(e,t,n){let i=!1,r=-1,s=-1;function a(o){cce(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,o),i=(performance.now()-l)/(1e3/60)>2})}s=(typeof requestIdleCallback>"u"?o=>o():requestIdleCallback)(()=>{n.run(()=>{gA(e.targetEl.value??e.contentEl.value,o=>{i?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{a(o)})})):a(o)})})}),qn(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(s),cancelAnimationFrame(r)})}function gA(e,t){const n=[document,...Pd(e)];n.forEach(i=>{i.addEventListener("scroll",t,{passive:!0})}),qn(()=>{n.forEach(i=>{i.removeEventListener("scroll",t)})})}const Wg=Symbol.for("vuetify:v-menu"),ty=j({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function ny(e,t){let n=()=>{};function i(a){n==null||n();const o=Number(a?e.openDelay:e.closeDelay);return new Promise(l=>{n=$ae(o,()=>{t==null||t(a),l(a)})})}function r(){return i(!0)}function s(){return i(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:s}}const pce=j({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,...ty()},"VOverlay-activator");function vce(e,t){let{isActive:n,isTop:i,contentEl:r}=t;const s=Ft("useActivator"),a=ke();let o=!1,l=!1,u=!0;const c=T(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=T(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:h,runCloseDelay:m}=ny(e,A=>{A===(e.openOnHover&&o||c.value&&l)&&!(e.openOnHover&&n.value&&!i.value)&&(n.value!==A&&(u=!0),n.value=A)}),g=ke(),y={onClick:A=>{A.stopPropagation(),a.value=A.currentTarget||A.target,n.value||(g.value=[A.clientX,A.clientY]),n.value=!n.value},onMouseenter:A=>{var C;(C=A.sourceCapabilities)!=null&&C.firesTouchEvents||(o=!0,a.value=A.currentTarget||A.target,h())},onMouseleave:A=>{o=!1,m()},onFocus:A=>{Yo(A.target,":focus-visible")!==!1&&(l=!0,A.stopPropagation(),a.value=A.currentTarget||A.target,h())},onBlur:A=>{l=!1,A.stopPropagation(),m()}},b=T(()=>{const A={};return f.value&&(A.onClick=y.onClick),e.openOnHover&&(A.onMouseenter=y.onMouseenter,A.onMouseleave=y.onMouseleave),c.value&&(A.onFocus=y.onFocus,A.onBlur=y.onBlur),A}),k=T(()=>{const A={};if(e.openOnHover&&(A.onMouseenter=()=>{o=!0,h()},A.onMouseleave=()=>{o=!1,m()}),c.value&&(A.onFocusin=()=>{l=!0,h()},A.onFocusout=()=>{l=!1,m()}),e.closeOnContentClick){const C=Ze(Wg,null);A.onClick=()=>{n.value=!1,C==null||C.closeParents()}}return A}),w=T(()=>{const A={};return e.openOnHover&&(A.onMouseenter=()=>{u&&(o=!0,u=!1,h())},A.onMouseleave=()=>{o=!1,m()}),A});Ie(i,A=>{var C;A&&(e.openOnHover&&!o&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!o))&&!((C=r.value)!=null&&C.contains(document.activeElement))&&(n.value=!1)}),Ie(n,A=>{A||setTimeout(()=>{g.value=void 0})},{flush:"post"});const E=Ad();Wt(()=>{E.value&&ct(()=>{a.value=E.el})});const I=Ad(),D=T(()=>e.target==="cursor"&&g.value?g.value:I.value?I.el:pA(e.target,s)||a.value),x=T(()=>Array.isArray(D.value)?void 0:D.value);let P;return Ie(()=>!!e.activator,A=>{A&&ht?(P=Mu(),P.run(()=>{yce(e,s,{activatorEl:a,activatorEvents:b})})):P&&P.stop()},{flush:"post",immediate:!0}),qn(()=>{P==null||P.stop()}),{activatorEl:a,activatorRef:E,target:D,targetEl:x,targetRef:I,activatorEvents:b,contentEvents:k,scrimEvents:w}}function yce(e,t,n){let{activatorEl:i,activatorEvents:r}=n;Ie(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=o(u);c&&a(c)}l&&ct(()=>s())},{immediate:!0}),Ie(()=>e.activatorProps,()=>{s()}),qn(()=>{a()});function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Nae(l,fe(r.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Rae(l,fe(r.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=pA(l,t);return i.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,i.value}}function pA(e,t){var i,r;if(!e)return;let n;if(e==="parent"){let s=(r=(i=t==null?void 0:t.proxy)==null?void 0:i.$el)==null?void 0:r.parentNode;for(;s!=null&&s.hasAttribute("data-no-activator");)s=s.parentNode;n=s}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function vA(){if(!ht)return Ae(!1);const{ssr:e}=Yi();if(e){const t=Ae(!1);return En(()=>{t.value=!0}),t}else return Ae(!0)}const iy=j({eager:Boolean},"lazy");function ry(e,t){const n=Ae(!1),i=T(()=>n.value||e.eager||t.value);Ie(t,()=>n.value=!0);function r(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:i,onAfterLeave:r}}function ao(){const t=Ft("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const pS=Symbol.for("vuetify:stack"),Dl=dn([]);function bce(e,t,n){const i=Ft("useStack"),r=!n,s=Ze(pS,void 0),a=dn({activeChildren:new Set});kt(pS,a);const o=Ae(+t.value);ei(e,()=>{var f;const c=(f=Dl.at(-1))==null?void 0:f[1];o.value=c?c+10:+t.value,r&&Dl.push([i.uid,o.value]),s==null||s.activeChildren.add(i.uid),qn(()=>{if(r){const h=Ke(Dl).findIndex(m=>m[0]===i.uid);Dl.splice(h,1)}s==null||s.activeChildren.delete(i.uid)})});const l=Ae(!0);r&&Wt(()=>{var f;const c=((f=Dl.at(-1))==null?void 0:f[0])===i.uid;setTimeout(()=>l.value=c)});const u=T(()=>!a.activeChildren.size);return{globalTop:$u(l),localTop:u,stackStyles:T(()=>({zIndex:o.value}))}}function kce(e){return{teleportTarget:T(()=>{const n=e();if(n===!0||!ht)return;const i=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(i==null)return;let r=[...i.children].find(s=>s.matches(".v-overlay-container"));return r||(r=document.createElement("div"),r.className="v-overlay-container",i.appendChild(r)),r})}}function wce(){return!0}function yA(e,t,n){if(!e||bA(e,n)===!1)return!1;const i=aI(t);if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&i.host===e.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(t),!r.some(s=>s==null?void 0:s.contains(e.target))}function bA(e,t){return(typeof t.value=="object"&&t.value.closeConditional||wce)(e)}function Sce(e,t,n){const i=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&yA(e,t,n)&&setTimeout(()=>{bA(e,n)&&i&&i(e)},0)}function vS(e,t){const n=aI(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const kA={mounted(e,t){const n=r=>Sce(r,e,t),i=r=>{e._clickOutside.lastMousedownWasOutside=yA(r,e,t)};vS(e,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",i,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:i}},beforeUnmount(e,t){e._clickOutside&&(vS(e,n=>{var s;if(!n||!((s=e._clickOutside)!=null&&s[t.instance.$.uid]))return;const{onClick:i,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",i,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function _ce(e){const{modelValue:t,color:n,...i}=e;return v(ji,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&v("div",fe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},i),null)]})}const Zu=j({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},...pce(),...Ve(),...Qt(),...iy(),...sce(),...dce(),...ot(),...cr()},"VOverlay"),Ir=ae()({name:"VOverlay",directives:{ClickOutside:kA},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Zu()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:i,emit:r}=t;const s=Ft("VOverlay"),a=ke(),o=ke(),l=ke(),u=Be(e,"modelValue"),c=T({get:()=>u.value,set:oe=>{oe&&e.disabled||(u.value=oe)}}),{themeClasses:f}=pt(e),{rtlClasses:h,isRtl:m}=on(),{hasContent:g,onAfterLeave:y}=ry(e,c),b=wt(T(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:k,localTop:w,stackStyles:E}=bce(c,se(e,"zIndex"),e._disableGlobalStack),{activatorEl:I,activatorRef:D,target:x,targetEl:P,targetRef:A,activatorEvents:C,contentEvents:$,scrimEvents:O}=vce(e,{isActive:c,isTop:w,contentEl:l}),{teleportTarget:M}=kce(()=>{var de,Se,_e;const oe=e.attach||e.contained;if(oe)return oe;const q=((de=I==null?void 0:I.value)==null?void 0:de.getRootNode())||((_e=(Se=s.proxy)==null?void 0:Se.$el)==null?void 0:_e.getRootNode());return q instanceof ShadowRoot?q:!1}),{dimensionStyles:F}=en(e),z=vA(),{scopeId:re}=ao();Ie(()=>e.disabled,oe=>{oe&&(c.value=!1)});const{contentStyles:le,updateLocation:ve}=ace(e,{isRtl:m,contentEl:l,target:x,isActive:c});fce(e,{root:a,contentEl:l,targetEl:P,isActive:c,updateLocation:ve});function ye(oe){r("click:outside",oe),e.persistent?xe():c.value=!1}function Z(oe){return c.value&&k.value&&(!e.scrim||oe.target===o.value||oe instanceof MouseEvent&&oe.shadowTarget===o.value)}ht&&Ie(c,oe=>{oe?window.addEventListener("keydown",J):window.removeEventListener("keydown",J)},{immediate:!0}),an(()=>{ht&&window.removeEventListener("keydown",J)});function J(oe){var q,de;oe.key==="Escape"&&k.value&&(e.persistent?xe():(c.value=!1,(q=l.value)!=null&&q.contains(document.activeElement)&&((de=I.value)==null||de.focus())))}const K=OI();ei(()=>e.closeOnBack,()=>{rue(K,oe=>{k.value&&c.value?(oe(!1),e.persistent?xe():c.value=!1):oe()})});const me=ke();Ie(()=>c.value&&(e.absolute||e.contained)&&M.value==null,oe=>{if(oe){const q=Fv(a.value);q&&q!==document.scrollingElement&&(me.value=q.scrollTop)}});function xe(){e.noClickAnimation||l.value&&ga(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:wu})}function Me(){r("afterEnter")}function $e(){y(),r("afterLeave")}return he(()=>{var oe;return v(U,null,[(oe=n.activator)==null?void 0:oe.call(n,{isActive:c.value,targetRef:A,props:fe({ref:D},C.value,e.activatorProps)}),z.value&&g.value&&v(bP,{disabled:!M.value,to:M.value},{default:()=>[v("div",fe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},f.value,h.value,e.class],style:[E.value,{"--v-overlay-opacity":e.opacity,top:Pe(me.value)},e.style],ref:a},re,i),[v(_ce,fe({color:b,modelValue:c.value&&!!e.scrim,ref:o},O.value),null),v(Gn,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterEnter:Me,onAfterLeave:$e},{default:()=>{var q;return[ie(v("div",fe({ref:l,class:["v-overlay__content",e.contentClass],style:[F.value,le.value]},$.value,e.contentProps),[(q=n.default)==null?void 0:q.call(n,{isActive:c})]),[[vn,c.value],[Ai("click-outside"),{handler:ye,closeConditional:Z,include:()=>[I.value]}]])]}})])]})])}),{activatorEl:I,scrimEl:o,target:x,animateClick:xe,contentEl:l,globalTop:k,localTop:w,updateLocation:ve}}}),hm=Symbol("Forwarded refs");function mm(e,t){let n=e;for(;n;){const i=Reflect.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Xi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e[hm]=n,new Proxy(e,{get(r,s){if(Reflect.has(r,s))return Reflect.get(r,s);if(!(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))){for(const a of n)if(a.value&&Reflect.has(a.value,s)){const o=Reflect.get(a.value,s);return typeof o=="function"?o.bind(a.value):o}}},has(r,s){if(Reflect.has(r,s))return!0;if(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,s))return!0;return!1},set(r,s,a){if(Reflect.has(r,s))return Reflect.set(r,s,a);if(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,s))return Reflect.set(o.value,s,a);return!1},getOwnPropertyDescriptor(r,s){var o;const a=Reflect.getOwnPropertyDescriptor(r,s);if(a)return a;if(!(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))){for(const l of n){if(!l.value)continue;const u=mm(l.value,s)??("_"in l.value?mm((o=l.value._)==null?void 0:o.setupState,s):void 0);if(u)return u}for(const l of n){const u=l.value&&l.value[hm];if(!u)continue;const c=u.slice();for(;c.length;){const f=c.shift(),h=mm(f.value,s);if(h)return h;const m=f.value&&f.value[hm];m&&c.push(...m)}}}}})}const wA=j({id:String,submenu:Boolean,...Zt(Zu({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:Vf}}),["absolute"])},"VMenu"),Qo=ae()({name:"VMenu",props:wA(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),{scopeId:r}=ao(),{isRtl:s}=on(),a=In(),o=T(()=>e.id||`v-menu-${a}`),l=ke(),u=Ze(Wg,null),c=Ae(new Set);kt(Wg,{register(){c.value.add(a)},unregister(){c.value.delete(a)},closeParents(b){setTimeout(()=>{var k;!c.value.size&&!e.persistent&&(b==null||(k=l.value)!=null&&k.contentEl&&!Vae(b,l.value.contentEl))&&(i.value=!1,u==null||u.closeParents())},40)}}),an(()=>{u==null||u.unregister(),document.removeEventListener("focusin",f)}),Sp(()=>i.value=!1);async function f(b){var E,I,D;const k=b.relatedTarget,w=b.target;await ct(),i.value&&k!==w&&((E=l.value)!=null&&E.contentEl)&&((I=l.value)!=null&&I.globalTop)&&![document,l.value.contentEl].includes(w)&&!l.value.contentEl.contains(w)&&((D=ku(l.value.contentEl)[0])==null||D.focus())}Ie(i,b=>{b?(u==null||u.register(),ht&&document.addEventListener("focusin",f,{once:!0})):(u==null||u.unregister(),ht&&document.removeEventListener("focusin",f))},{immediate:!0});function h(b){u==null||u.closeParents(b)}function m(b){var k,w,E,I,D;if(!e.disabled)if(b.key==="Tab"||b.key==="Enter"&&!e.closeOnContentClick){if(b.key==="Enter"&&(b.target instanceof HTMLTextAreaElement||b.target instanceof HTMLInputElement&&b.target.closest("form")))return;b.key==="Enter"&&b.preventDefault(),HE(ku((k=l.value)==null?void 0:k.contentEl,!1),b.shiftKey?"prev":"next",P=>P.tabIndex>=0)||(i.value=!1,(E=(w=l.value)==null?void 0:w.activatorEl)==null||E.focus())}else e.submenu&&b.key===(s.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,(D=(I=l.value)==null?void 0:I.activatorEl)==null||D.focus())}function g(b){var w;if(e.disabled)return;const k=(w=l.value)==null?void 0:w.contentEl;k&&i.value?b.key==="ArrowDown"?(b.preventDefault(),b.stopImmediatePropagation(),Ta(k,"next")):b.key==="ArrowUp"?(b.preventDefault(),b.stopImmediatePropagation(),Ta(k,"prev")):e.submenu&&(b.key===(s.value?"ArrowRight":"ArrowLeft")?i.value=!1:b.key===(s.value?"ArrowLeft":"ArrowRight")&&(b.preventDefault(),Ta(k,"first"))):(e.submenu?b.key===(s.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(b.key))&&(i.value=!0,b.preventDefault(),setTimeout(()=>setTimeout(()=>g(b))))}const y=T(()=>fe({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-owns":o.value,onKeydown:g},e.activatorProps));return he(()=>{const b=Ir.filterProps(e);return v(Ir,fe({ref:l,id:o.value,class:["v-menu",e.class],style:e.style},b,{modelValue:i.value,"onUpdate:modelValue":k=>i.value=k,absolute:!0,activatorProps:y.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:m},r),{activator:n.activator,default:function(){for(var k=arguments.length,w=new Array(k),E=0;E<k;E++)w[E]=arguments[E];return v(tt,{root:"VMenu"},{default:()=>{var I;return[(I=n.default)==null?void 0:I.call(n,...w)]}})}})}),Xi({id:o,ΨopenChildren:c},l)}}),Cce=j({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Ve(),...cr({transition:{component:Gv}})},"VCounter"),Hf=ae()({name:"VCounter",functional:!0,props:Cce(),setup(e,t){let{slots:n}=t;const i=T(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return he(()=>v(Gn,{transition:e.transition},{default:()=>[ie(v("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:i.value,max:e.max,value:e.value}):i.value]),[[vn,e.active]])]})),{}}}),Tce=j({floating:Boolean,...Ve()},"VFieldLabel"),Ll=ae()({name:"VFieldLabel",props:Tce(),setup(e,t){let{slots:n}=t;return he(()=>v(dl,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),Ece=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Qu=j({appendInnerIcon:je,bgColor:String,clearable:Boolean,clearIcon:{type:je,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:je,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Ece.includes(e)},"onClick:clear":wn(),"onClick:appendInner":wn(),"onClick:prependInner":wn(),...Ve(),...Ff(),...Pt(),...ot()},"VField"),hl=ae()({name:"VField",inheritAttrs:!1,props:{id:String,...Ju(),...Qu()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{themeClasses:s}=pt(e),{loaderClasses:a}=Gu(e),{focusClasses:o,isFocused:l,focus:u,blur:c}=as(e),{InputIcon:f}=jI(e),{roundedClasses:h}=Bt(e),{rtlClasses:m}=on(),g=T(()=>e.dirty||e.active),y=T(()=>!e.singleLine&&!!(e.label||r.label)),b=In(),k=T(()=>e.id||`input-${b}`),w=T(()=>`${k.value}-messages`),E=ke(),I=ke(),D=ke(),x=T(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:P,backgroundColorStyles:A}=wt(se(e,"bgColor")),{textColorClasses:C,textColorStyles:$}=Ln(T(()=>e.error||e.disabled?void 0:g.value&&l.value?e.color:e.baseColor));Ie(g,z=>{if(y.value){const re=E.value.$el,le=I.value.$el;requestAnimationFrame(()=>{const ve=Vv(re),ye=le.getBoundingClientRect(),Z=ye.x-ve.x,J=ye.y-ve.y-(ve.height/2-ye.height/2),K=ye.width/.75,me=Math.abs(K-ve.width)>1?{maxWidth:Pe(K)}:void 0,xe=getComputedStyle(re),Me=getComputedStyle(le),$e=parseFloat(xe.transitionDuration)*1e3||150,oe=parseFloat(Me.getPropertyValue("--v-field-label-scale")),q=Me.getPropertyValue("color");re.style.visibility="visible",le.style.visibility="hidden",ga(re,{transform:`translate(${Z}px, ${J}px) scale(${oe})`,color:q,...me},{duration:$e,easing:wu,direction:z?"normal":"reverse"}).finished.then(()=>{re.style.removeProperty("visibility"),le.style.removeProperty("visibility")})})}},{flush:"post"});const O=T(()=>({isActive:g,isFocused:l,controlRef:D,blur:c,focus:u}));function M(z){z.target!==document.activeElement&&z.preventDefault()}function F(z){var re;z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),z.stopPropagation(),(re=e["onClick:clear"])==null||re.call(e,new MouseEvent("click")))}return he(()=>{var Z,J,K;const z=e.variant==="outlined",re=!!(r["prepend-inner"]||e.prependInnerIcon),le=!!(e.clearable||r.clear),ve=!!(r["append-inner"]||e.appendInnerIcon||le),ye=()=>r.label?r.label({...O.value,label:e.label,props:{for:k.value}}):e.label;return v("div",fe({class:["v-field",{"v-field--active":g.value,"v-field--appended":ve,"v-field--center-affix":e.centerAffix??!x.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":re,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!ye(),[`v-field--variant-${e.variant}`]:!0},s.value,P.value,o.value,a.value,h.value,m.value,e.class],style:[A.value,e.style],onClick:M},n),[v("div",{class:"v-field__overlay"},null),v(qu,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:r.loader}),re&&v("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&v(f,{key:"prepend-icon",name:"prependInner"},null),(Z=r["prepend-inner"])==null?void 0:Z.call(r,O.value)]),v("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&y.value&&v(Ll,{key:"floating-label",ref:I,class:[C.value],floating:!0,for:k.value,style:$.value},{default:()=>[ye()]}),v(Ll,{ref:E,for:k.value},{default:()=>[ye()]}),(J=r.default)==null?void 0:J.call(r,{...O.value,props:{id:k.value,class:"v-field__input","aria-describedby":w.value},focus:u,blur:c})]),le&&v(qv,{key:"clear"},{default:()=>[ie(v("div",{class:"v-field__clearable",onMousedown:me=>{me.preventDefault(),me.stopPropagation()}},[v(tt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[r.clear?r.clear({...O.value,props:{onKeydown:F,onFocus:u,onBlur:c,onClick:e["onClick:clear"]}}):v(f,{name:"clear",onKeydown:F,onFocus:u,onBlur:c},null)]})]),[[vn,e.dirty]])]}),ve&&v("div",{key:"append",class:"v-field__append-inner"},[(K=r["append-inner"])==null?void 0:K.call(r,O.value),e.appendInnerIcon&&v(f,{key:"append-icon",name:"appendInner"},null)]),v("div",{class:["v-field__outline",C.value],style:$.value},[z&&v(U,null,[v("div",{class:"v-field__outline__start"},null),y.value&&v("div",{class:"v-field__outline__notch"},[v(Ll,{ref:I,floating:!0,for:k.value},{default:()=>[ye()]})]),v("div",{class:"v-field__outline__end"},null)]),x.value&&y.value&&v(Ll,{ref:I,floating:!0,for:k.value},{default:()=>[ye()]})])])}),{controlRef:D}}});function sy(e){const t=Object.keys(hl.props).filter(n=>!xf(n)&&n!=="class"&&n!=="style");return Ov(e,t)}const Ice=["color","file","time","date","datetime-local","week","month"],jf=j({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...ls(),...Qu()},"VTextField"),Na=ae()({name:"VTextField",directives:{Intersect:ju},inheritAttrs:!1,props:jf(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const s=Be(e,"modelValue"),{isFocused:a,focus:o,blur:l}=as(e),u=T(()=>typeof e.counterValue=="function"?e.counterValue(s.value):typeof e.counterValue=="number"?e.counterValue:(s.value??"").toString().length),c=T(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=T(()=>["plain","underlined"].includes(e.variant));function h(x,P){var A,C;!e.autofocus||!x||(C=(A=P[0].target)==null?void 0:A.focus)==null||C.call(A)}const m=ke(),g=ke(),y=ke(),b=T(()=>Ice.includes(e.type)||e.persistentPlaceholder||a.value||e.active);function k(){var x;y.value!==document.activeElement&&((x=y.value)==null||x.focus()),a.value||o()}function w(x){i("mousedown:control",x),x.target!==y.value&&(k(),x.preventDefault())}function E(x){k(),i("click:control",x)}function I(x){x.stopPropagation(),k(),ct(()=>{s.value=null,$v(e["onClick:clear"],x)})}function D(x){var A;const P=x.target;if(s.value=P.value,(A=e.modelModifiers)!=null&&A.trim&&["text","search","password","tel","url"].includes(e.type)){const C=[P.selectionStart,P.selectionEnd];ct(()=>{P.selectionStart=C[0],P.selectionEnd=C[1]})}}return he(()=>{const x=!!(r.counter||e.counter!==!1&&e.counter!=null),P=!!(x||r.details),[A,C]=Js(n),{modelValue:$,...O}=Nn.filterProps(e),M=sy(e);return v(Nn,fe({ref:m,modelValue:s.value,"onUpdate:modelValue":F=>s.value=F,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},A,O,{centerAffix:!f.value,focused:a.value}),{...r,default:F=>{let{id:z,isDisabled:re,isDirty:le,isReadonly:ve,isValid:ye}=F;return v(hl,fe({ref:g,onMousedown:w,onClick:E,"onClick:clear":I,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},M,{id:z.value,active:b.value||le.value,dirty:le.value||e.dirty,disabled:re.value,focused:a.value,error:ye.value===!1}),{...r,default:Z=>{let{props:{class:J,...K}}=Z;const me=ie(v("input",fe({ref:y,value:s.value,onInput:D,autofocus:e.autofocus,readonly:ve.value,disabled:re.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:k,onBlur:l},K,C),null),[[Ai("intersect"),{handler:h},null,{once:!0}]]);return v(U,null,[e.prefix&&v("span",{class:"v-text-field__prefix"},[v("span",{class:"v-text-field__prefix__text"},[e.prefix])]),r.default?v("div",{class:J,"data-no-activator":""},[r.default(),me]):Jr(me,{class:J}),e.suffix&&v("span",{class:"v-text-field__suffix"},[v("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:P?F=>{var z;return v(U,null,[(z=r.details)==null?void 0:z.call(r,F),x&&v(U,null,[v("span",null,null),v(Hf,{active:e.persistentCounter||a.value,value:u.value,max:c.value,disabled:e.disabled},r.counter)])])}:void 0})}),Xi({},m,g,y)}}),Ace=j({renderless:Boolean,...Ve()},"VVirtualScrollItem"),SA=ae()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Ace(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{resizeRef:s,contentRect:a}=sr(void 0,"border");Ie(()=>{var o;return(o=a.value)==null?void 0:o.height},o=>{o!=null&&i("update:height",o)}),he(()=>{var o,l;return e.renderless?v(U,null,[(o=r.default)==null?void 0:o.call(r,{itemRef:s})]):v("div",fe({ref:s,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=r.default)==null?void 0:l.call(r)])})}}),xce=-1,Dce=1,gm=100,_A=j({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function CA(e,t){const n=Yi(),i=Ae(0);Wt(()=>{i.value=parseFloat(e.itemHeight||0)});const r=Ae(0),s=Ae(Math.ceil((parseInt(e.height)||n.height.value)/(i.value||16))||1),a=Ae(0),o=Ae(0),l=ke(),u=ke();let c=0;const{resizeRef:f,contentRect:h}=sr();Wt(()=>{f.value=l.value});const m=T(()=>{var Z;return l.value===document.documentElement?n.height.value:((Z=h.value)==null?void 0:Z.height)||parseInt(e.height)||0}),g=T(()=>!!(l.value&&u.value&&m.value&&i.value));let y=Array.from({length:t.value.length}),b=Array.from({length:t.value.length});const k=Ae(0);let w=-1;function E(Z){return y[Z]||i.value}const I=Dae(()=>{const Z=performance.now();b[0]=0;const J=t.value.length;for(let K=1;K<=J-1;K++)b[K]=(b[K-1]||0)+E(K-1);k.value=Math.max(k.value,performance.now()-Z)},k),D=Ie(g,Z=>{Z&&(D(),c=u.value.offsetTop,I.immediate(),re(),~w&&ct(()=>{ht&&window.requestAnimationFrame(()=>{ve(w),w=-1})}))});qn(()=>{I.clear()});function x(Z,J){const K=y[Z],me=i.value;i.value=me?Math.min(i.value,J):J,(K!==J||me!==i.value)&&(y[Z]=J,I())}function P(Z){return Z=Yt(Z,0,t.value.length-1),b[Z]||0}function A(Z){return Pce(b,Z)}let C=0,$=0,O=0;Ie(m,(Z,J)=>{J&&(re(),Z<J&&requestAnimationFrame(()=>{$=0,re()}))});function M(){if(!l.value||!u.value)return;const Z=l.value.scrollTop,J=performance.now();J-O>500?($=Math.sign(Z-C),c=u.value.offsetTop):$=Z-C,C=Z,O=J,re()}function F(){!l.value||!u.value||($=0,O=0,re())}let z=-1;function re(){cancelAnimationFrame(z),z=requestAnimationFrame(le)}function le(){if(!l.value||!m.value)return;const Z=C-c,J=Math.sign($),K=Math.max(0,Z-gm),me=Yt(A(K),0,t.value.length),xe=Z+m.value+gm,Me=Yt(A(xe)+1,me+1,t.value.length);if((J!==xce||me<r.value)&&(J!==Dce||Me>s.value)){const $e=P(r.value)-P(me),oe=P(Me)-P(s.value);Math.max($e,oe)>gm?(r.value=me,s.value=Me):(me<=0&&(r.value=me),Me>=t.value.length&&(s.value=Me))}a.value=P(r.value),o.value=P(t.value.length)-P(s.value)}function ve(Z){const J=P(Z);!l.value||Z&&!J?w=Z:l.value.scrollTop=J}const ye=T(()=>t.value.slice(r.value,s.value).map((Z,J)=>({raw:Z,index:J+r.value})));return Ie(t,()=>{y=Array.from({length:t.value.length}),b=Array.from({length:t.value.length}),I.immediate(),re()},{deep:!0}),{calculateVisibleItems:re,containerRef:l,markerRef:u,computedItems:ye,paddingTop:a,paddingBottom:o,scrollToIndex:ve,handleScroll:M,handleScrollend:F,handleItemResize:x}}function Pce(e,t){let n=e.length-1,i=0,r=0,s=null,a=-1;if(e[n]<t)return n;for(;i<=n;)if(r=i+n>>1,s=e[r],s>t)n=r-1;else if(s<t)a=r,i=r+1;else return s===t?r:i;return a}const Oce=j({items:{type:Array,default:()=>[]},renderless:Boolean,..._A(),...Ve(),...Qt()},"VVirtualScroll"),Gf=ae()({name:"VVirtualScroll",props:Oce(),setup(e,t){let{slots:n}=t;const i=Ft("VVirtualScroll"),{dimensionStyles:r}=en(e),{calculateVisibleItems:s,containerRef:a,markerRef:o,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:f,paddingTop:h,paddingBottom:m,computedItems:g}=CA(e,se(e,"items"));return ei(()=>e.renderless,()=>{function y(){var w,E;const k=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";a.value===document.documentElement?(document[k]("scroll",l,{passive:!0}),document[k]("scrollend",u)):((w=a.value)==null||w[k]("scroll",l,{passive:!0}),(E=a.value)==null||E[k]("scrollend",u))}En(()=>{a.value=Fv(i.vnode.el,!0),y(!0)}),qn(y)}),he(()=>{const y=g.value.map(b=>v(SA,{key:b.index,renderless:e.renderless,"onUpdate:height":k=>c(b.index,k)},{default:k=>{var w;return(w=n.default)==null?void 0:w.call(n,{item:b.raw,index:b.index,...k})}}));return e.renderless?v(U,null,[v("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:Pe(h.value)}},null),y,v("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Pe(m.value)}},null)]):v("div",{ref:a,class:["v-virtual-scroll",e.class],onScrollPassive:l,onScrollend:u,style:[r.value,e.style]},[v("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:Pe(h.value),paddingBottom:Pe(m.value)}},[y])])}),{calculateVisibleItems:s,scrollToIndex:f}}});function ay(e,t){const n=Ae(!1);let i;function r(o){cancelAnimationFrame(i),n.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{n.value=!1})})}async function s(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(n.value){const l=Ie(n,()=>{l(),o()})}else o()})}async function a(o){var c,f;if(o.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const l=(f=e.value)==null?void 0:f.$el;if(!l)return;(o.key==="Home"||o.key==="End")&&l.scrollTo({top:o.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await s();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const h=l.getBoundingClientRect().top;for(const m of u)if(m.getBoundingClientRect().top>=h){m.focus();break}}else{const h=l.getBoundingClientRect().bottom;for(const m of[...u].reverse())if(m.getBoundingClientRect().bottom<=h){m.focus();break}}}return{onScrollPassive:r,onKeydown:a}}const oy=j({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:je,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...dA({itemChildren:!1})},"Select"),Mce=j({...oy(),...Zt(jf({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...cr({transition:{component:Vf}})},"VSelect"),ly=ae()({name:"VSelect",props:Mce(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=Ht(),r=ke(),s=ke(),a=ke(),o=Be(e,"menu"),l=T({get:()=>o.value,set:Z=>{var J;o.value&&!Z&&((J=s.value)!=null&&J.ΨopenChildren.size)||(o.value=Z)}}),{items:u,transformIn:c,transformOut:f}=ey(e),h=Be(e,"modelValue",[],Z=>c(Z===null?[null]:Mt(Z)),Z=>{const J=f(Z);return e.multiple?J:J[0]??null}),m=T(()=>typeof e.counterValue=="function"?e.counterValue(h.value):typeof e.counterValue=="number"?e.counterValue:h.value.length),g=Uf(),y=T(()=>h.value.map(Z=>Z.value)),b=Ae(!1),k=T(()=>l.value?e.closeText:e.openText);let w="",E;const I=T(()=>e.hideSelected?u.value.filter(Z=>!h.value.some(J=>e.valueComparator(J,Z))):u.value),D=T(()=>e.hideNoData&&!I.value.length||e.readonly||(g==null?void 0:g.isReadonly.value)),x=T(()=>{var Z;return{...e.menuProps,activatorProps:{...((Z=e.menuProps)==null?void 0:Z.activatorProps)||{},"aria-haspopup":"listbox"}}}),P=ke(),A=ay(P,r);function C(Z){e.openOnClear&&(l.value=!0)}function $(){D.value||(l.value=!l.value)}function O(Z){xd(Z)&&M(Z)}function M(Z){var xe,Me;if(!Z.key||e.readonly||g!=null&&g.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(Z.key)&&Z.preventDefault(),["Enter","ArrowDown"," "].includes(Z.key)&&(l.value=!0),["Escape","Tab"].includes(Z.key)&&(l.value=!1),Z.key==="Home"?(xe=P.value)==null||xe.focus("first"):Z.key==="End"&&((Me=P.value)==null||Me.focus("last"));const J=1e3;if(e.multiple||!xd(Z))return;const K=performance.now();K-E>J&&(w=""),w+=Z.key.toLowerCase(),E=K;const me=u.value.find($e=>$e.title.toLowerCase().startsWith(w));if(me!==void 0){h.value=[me];const $e=I.value.indexOf(me);ht&&window.requestAnimationFrame(()=>{var oe;$e>=0&&((oe=a.value)==null||oe.scrollToIndex($e))})}}function F(Z){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!Z.props.disabled)if(e.multiple){const K=h.value.findIndex(xe=>e.valueComparator(xe.value,Z.value)),me=J??!~K;if(~K){const xe=me?[...h.value,Z]:[...h.value];xe.splice(K,1),h.value=xe}else me&&(h.value=[...h.value,Z])}else{const K=J!==!1;h.value=K?[Z]:[],ct(()=>{l.value=!1})}}function z(Z){var J;(J=P.value)!=null&&J.$el.contains(Z.relatedTarget)||(l.value=!1)}function re(){var Z;e.eager&&((Z=a.value)==null||Z.calculateVisibleItems())}function le(){var Z;b.value&&((Z=r.value)==null||Z.focus())}function ve(Z){b.value=!0}function ye(Z){if(Z==null)h.value=[];else if(Yo(r.value,":autofill")||Yo(r.value,":-webkit-autofill")){const J=u.value.find(K=>K.title===Z);J&&F(J)}else r.value&&(r.value.value="")}return Ie(l,()=>{if(!e.hideSelected&&l.value&&h.value.length){const Z=I.value.findIndex(J=>h.value.some(K=>e.valueComparator(K.value,J.value)));ht&&window.requestAnimationFrame(()=>{var J;Z>=0&&((J=a.value)==null||J.scrollToIndex(Z))})}}),Ie(()=>e.items,(Z,J)=>{l.value||b.value&&!J.length&&Z.length&&(l.value=!0)}),he(()=>{const Z=!!(e.chips||n.chip),J=!!(!e.hideNoData||I.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),K=h.value.length>0,me=Na.filterProps(e),xe=K||!b.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return v(Na,fe({ref:r},me,{modelValue:h.value.map(Me=>Me.props.value).join(", "),"onUpdate:modelValue":ye,focused:b.value,"onUpdate:focused":Me=>b.value=Me,validationValue:h.externalValue,counterValue:m.value,dirty:K,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":h.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:xe,"onClick:clear":C,"onMousedown:control":$,onBlur:z,onKeydown:M,"aria-label":i(k.value),title:i(k.value)}),{...n,default:()=>v(U,null,[v(Qo,fe({ref:s,modelValue:l.value,"onUpdate:modelValue":Me=>l.value=Me,activator:"parent",contentClass:"v-select__content",disabled:D.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:re,onAfterLeave:le},x.value),{default:()=>[J&&v(Wf,fe({ref:P,selected:y.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Me=>Me.preventDefault(),onKeydown:O,onFocusin:ve,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},A,e.listProps),{default:()=>{var Me,$e,oe;return[(Me=n["prepend-item"])==null?void 0:Me.call(n),!I.value.length&&!e.hideNoData&&((($e=n["no-data"])==null?void 0:$e.call(n))??v(ts,{title:i(e.noDataText)},null)),v(Gf,{ref:a,renderless:!0,items:I.value},{default:q=>{var N;let{item:de,index:Se,itemRef:_e}=q;const pe=fe(de.props,{ref:_e,key:Se,onClick:()=>F(de,null)});return((N=n.item)==null?void 0:N.call(n,{item:de,index:Se,props:pe}))??v(ts,fe(pe,{role:"option"}),{prepend:V=>{let{isSelected:B}=V;return v(U,null,[e.multiple&&!e.hideSelected?v(es,{key:de.value,modelValue:B,ripple:!1,tabindex:"-1"},null):void 0,de.props.prependAvatar&&v(qi,{image:de.props.prependAvatar},null),de.props.prependIcon&&v(gt,{icon:de.props.prependIcon},null)])}})}}),(oe=n["append-item"])==null?void 0:oe.call(n)]}})]}),h.value.map((Me,$e)=>{function oe(_e){_e.stopPropagation(),_e.preventDefault(),F(Me,!1)}const q={"onClick:close":oe,onKeydown(_e){_e.key!=="Enter"&&_e.key!==" "||(_e.preventDefault(),_e.stopPropagation(),oe(_e))},onMousedown(_e){_e.preventDefault(),_e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},de=Z?!!n.chip:!!n.selection,Se=de?Df(Z?n.chip({item:Me,index:$e,props:q}):n.selection({item:Me,index:$e})):void 0;if(!(de&&!Se))return v("div",{key:Me.value,class:"v-select__selection"},[Z?n.chip?v(tt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Me.title}}},{default:()=>[Se]}):v(fl,fe({key:"chip",closable:e.closableChips,size:"small",text:Me.title,disabled:Me.props.disabled},q),null):Se??v("span",{class:"v-select__selection-text"},[Me.title,e.multiple&&$e<h.value.length-1&&v("span",{class:"v-select__selection-comma"},[ge(",")])])])})]),"append-inner":function(){var q;for(var Me=arguments.length,$e=new Array(Me),oe=0;oe<Me;oe++)$e[oe]=arguments[oe];return v(U,null,[(q=n["append-inner"])==null?void 0:q.call(n,...$e),e.menuIcon?v(gt,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),Xi({isFocused:b,menu:l,select:F},r)}}),$ce=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),ec=j({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Vce(e,t,n){var o;const i=[],r=(n==null?void 0:n.default)??$ce,s=n!=null&&n.filterKeys?Mt(n.filterKeys):!1,a=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return i;e:for(let l=0;l<e.length;l++){const[u,c=u]=Mt(e[l]),f={},h={};let m=-1;if((t||a>0)&&!(n!=null&&n.noFilter)){if(typeof u=="object"){const b=s||Object.keys(c);for(const k of b){const w=nn(c,k),E=(o=n==null?void 0:n.customKeyFilter)==null?void 0:o[k];if(m=E?E(w,t,u):r(w,t,u),m!==-1&&m!==!1)E?f[k]=m:h[k]=m;else if((n==null?void 0:n.filterMode)==="every")continue e}}else m=r(u,t,u),m!==-1&&m!==!1&&(h.title=m);const g=Object.keys(h).length,y=Object.keys(f).length;if(!g&&!y||(n==null?void 0:n.filterMode)==="union"&&y!==a&&!g||(n==null?void 0:n.filterMode)==="intersection"&&(y!==a||!g))continue}i.push({index:l,matches:{...h,...f}})}return i}function tc(e,t,n,i){const r=ke([]),s=ke(new Map),a=T(()=>i!=null&&i.transform?qt(t).map(l=>[l,i.transform(l)]):qt(t));Wt(()=>{const l=typeof n=="function"?n():qt(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=Vce(a.value,u,{customKeyFilter:{...e.customKeyFilter,...qt(i==null?void 0:i.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),f=qt(t),h=[],m=new Map;c.forEach(g=>{let{index:y,matches:b}=g;const k=f[y];h.push(k),m.set(k.value,b)}),r.value=h,s.value=m});function o(l){return s.value.get(l.value)}return{filteredItems:r,filteredMatches:s,getMatches:o}}function Lce(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?v(U,null,[v("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),v("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),v("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const Nce=j({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...ec({filterKeys:["title"]}),...oy(),...Zt(jf({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...cr({transition:!1})},"VAutocomplete"),Rce=ae()({name:"VAutocomplete",props:Nce(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=Ht(),r=ke(),s=Ae(!1),a=Ae(!0),o=Ae(!1),l=ke(),u=ke(),c=Be(e,"menu"),f=T({get:()=>c.value,set:pe=>{var N;c.value&&!pe&&((N=l.value)!=null&&N.ΨopenChildren.size)||(c.value=pe)}}),h=Ae(-1),m=T(()=>{var pe;return(pe=r.value)==null?void 0:pe.color}),g=T(()=>f.value?e.closeText:e.openText),{items:y,transformIn:b,transformOut:k}=ey(e),{textColorClasses:w,textColorStyles:E}=Ln(m),I=Be(e,"search",""),D=Be(e,"modelValue",[],pe=>b(pe===null?[null]:Mt(pe)),pe=>{const N=k(pe);return e.multiple?N:N[0]??null}),x=T(()=>typeof e.counterValue=="function"?e.counterValue(D.value):typeof e.counterValue=="number"?e.counterValue:D.value.length),P=Uf(),{filteredItems:A,getMatches:C}=tc(e,y,()=>a.value?"":I.value),$=T(()=>e.hideSelected?A.value.filter(pe=>!D.value.some(N=>N.value===pe.value)):A.value),O=T(()=>!!(e.chips||n.chip)),M=T(()=>O.value||!!n.selection),F=T(()=>D.value.map(pe=>pe.props.value)),z=T(()=>{var N;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&I.value===((N=$.value[0])==null?void 0:N.title))&&$.value.length>0&&!a.value&&!o.value}),re=T(()=>e.hideNoData&&!$.value.length||e.readonly||(P==null?void 0:P.isReadonly.value)),le=ke(),ve=ay(le,r);function ye(pe){e.openOnClear&&(f.value=!0),I.value=""}function Z(){re.value||(f.value=!0)}function J(pe){re.value||(s.value&&(pe.preventDefault(),pe.stopPropagation()),f.value=!f.value)}function K(pe){var N;xd(pe)&&((N=r.value)==null||N.focus())}function me(pe){var B,Y,Q;if(e.readonly||P!=null&&P.isReadonly.value)return;const N=r.value.selectionStart,V=D.value.length;if((h.value>-1||["Enter","ArrowDown","ArrowUp"].includes(pe.key))&&pe.preventDefault(),["Enter","ArrowDown"].includes(pe.key)&&(f.value=!0),["Escape"].includes(pe.key)&&(f.value=!1),z.value&&["Enter","Tab"].includes(pe.key)&&!D.value.some(ee=>{let{value:L}=ee;return L===$.value[0].value})&&_e($.value[0]),pe.key==="ArrowDown"&&z.value&&((B=le.value)==null||B.focus("next")),["Backspace","Delete"].includes(pe.key)){if(!e.multiple&&M.value&&D.value.length>0&&!I.value)return _e(D.value[0],!1);if(~h.value){const ee=h.value;_e(D.value[h.value],!1),h.value=ee>=V-1?V-2:ee}else pe.key==="Backspace"&&!I.value&&(h.value=V-1)}if(e.multiple){if(pe.key==="ArrowLeft"){if(h.value<0&&N>0)return;const ee=h.value>-1?h.value-1:V-1;D.value[ee]?h.value=ee:(h.value=-1,r.value.setSelectionRange((Y=I.value)==null?void 0:Y.length,(Q=I.value)==null?void 0:Q.length))}if(pe.key==="ArrowRight"){if(h.value<0)return;const ee=h.value+1;D.value[ee]?h.value=ee:(h.value=-1,r.value.setSelectionRange(0,0))}}}function xe(pe){if(Yo(r.value,":autofill")||Yo(r.value,":-webkit-autofill")){const N=y.value.find(V=>V.title===pe.target.value);N&&_e(N)}}function Me(){var pe;e.eager&&((pe=u.value)==null||pe.calculateVisibleItems())}function $e(){var pe;s.value&&(a.value=!0,(pe=r.value)==null||pe.focus())}function oe(pe){s.value=!0,setTimeout(()=>{o.value=!0})}function q(pe){o.value=!1}function de(pe){(pe==null||pe===""&&!e.multiple&&!M.value)&&(D.value=[])}const Se=Ae(!1);function _e(pe){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!pe||pe.props.disabled))if(e.multiple){const V=D.value.findIndex(Y=>e.valueComparator(Y.value,pe.value)),B=N??!~V;if(~V){const Y=B?[...D.value,pe]:[...D.value];Y.splice(V,1),D.value=Y}else B&&(D.value=[...D.value,pe]);e.clearOnSelect&&(I.value="")}else{const V=N!==!1;D.value=V?[pe]:[],I.value=V&&!M.value?pe.title:"",ct(()=>{f.value=!1,a.value=!0})}}return Ie(s,(pe,N)=>{var V;pe!==N&&(pe?(Se.value=!0,I.value=e.multiple||M.value?"":String(((V=D.value.at(-1))==null?void 0:V.props.title)??""),a.value=!0,ct(()=>Se.value=!1)):(!e.multiple&&I.value==null&&(D.value=[]),f.value=!1,D.value.some(B=>{let{title:Y}=B;return Y===I.value})||(I.value=""),h.value=-1))}),Ie(I,pe=>{!s.value||Se.value||(pe&&(f.value=!0),a.value=!pe)}),Ie(f,()=>{if(!e.hideSelected&&f.value&&D.value.length){const pe=$.value.findIndex(N=>D.value.some(V=>N.value===V.value));ht&&window.requestAnimationFrame(()=>{var N;pe>=0&&((N=u.value)==null||N.scrollToIndex(pe))})}}),Ie(()=>e.items,(pe,N)=>{f.value||s.value&&!N.length&&pe.length&&(f.value=!0)}),he(()=>{const pe=!!(!e.hideNoData||$.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),N=D.value.length>0,V=Na.filterProps(e);return v(Na,fe({ref:r},V,{modelValue:I.value,"onUpdate:modelValue":[B=>I.value=B,de],focused:s.value,"onUpdate:focused":B=>s.value=B,validationValue:D.externalValue,counterValue:x.value,dirty:N,onChange:xe,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":f.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!M.value,"v-autocomplete--selecting-index":h.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:N?void 0:e.placeholder,"onClick:clear":ye,"onMousedown:control":Z,onKeydown:me}),{...n,default:()=>v(U,null,[v(Qo,fe({ref:l,modelValue:f.value,"onUpdate:modelValue":B=>f.value=B,activator:"parent",contentClass:"v-autocomplete__content",disabled:re.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:Me,onAfterLeave:$e},e.menuProps),{default:()=>[pe&&v(Wf,fe({ref:le,selected:F.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:B=>B.preventDefault(),onKeydown:K,onFocusin:oe,onFocusout:q,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},ve,e.listProps),{default:()=>{var B,Y,Q;return[(B=n["prepend-item"])==null?void 0:B.call(n),!$.value.length&&!e.hideNoData&&(((Y=n["no-data"])==null?void 0:Y.call(n))??v(ts,{title:i(e.noDataText)},null)),v(Gf,{ref:u,renderless:!0,items:$.value},{default:ee=>{var Ce;let{item:L,index:R,itemRef:W}=ee;const ne=fe(L.props,{ref:W,key:R,active:z.value&&R===0?!0:void 0,onClick:()=>_e(L,null)});return((Ce=n.item)==null?void 0:Ce.call(n,{item:L,index:R,props:ne}))??v(ts,fe(ne,{role:"option"}),{prepend:Te=>{let{isSelected:H}=Te;return v(U,null,[e.multiple&&!e.hideSelected?v(es,{key:L.value,modelValue:H,ripple:!1,tabindex:"-1"},null):void 0,L.props.prependAvatar&&v(qi,{image:L.props.prependAvatar},null),L.props.prependIcon&&v(gt,{icon:L.props.prependIcon},null)])},title:()=>{var Te,H;return a.value?L.title:Lce(L.title,(Te=C(L))==null?void 0:Te.title,((H=I.value)==null?void 0:H.length)??0)}})}}),(Q=n["append-item"])==null?void 0:Q.call(n)]}})]}),D.value.map((B,Y)=>{function Q(W){W.stopPropagation(),W.preventDefault(),_e(B,!1)}const ee={"onClick:close":Q,onKeydown(W){W.key!=="Enter"&&W.key!==" "||(W.preventDefault(),W.stopPropagation(),Q(W))},onMousedown(W){W.preventDefault(),W.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},L=O.value?!!n.chip:!!n.selection,R=L?Df(O.value?n.chip({item:B,index:Y,props:ee}):n.selection({item:B,index:Y})):void 0;if(!(L&&!R))return v("div",{key:B.value,class:["v-autocomplete__selection",Y===h.value&&["v-autocomplete__selection--selected",w.value]],style:Y===h.value?E.value:{}},[O.value?n.chip?v(tt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:B.title}}},{default:()=>[R]}):v(fl,fe({key:"chip",closable:e.closableChips,size:"small",text:B.title,disabled:B.props.disabled},ee),null):R??v("span",{class:"v-autocomplete__selection-text"},[B.title,e.multiple&&Y<D.value.length-1&&v("span",{class:"v-autocomplete__selection-comma"},[ge(",")])])])})]),"append-inner":function(){var ee;for(var B=arguments.length,Y=new Array(B),Q=0;Q<B;Q++)Y[Q]=arguments[Q];return v(U,null,[(ee=n["append-inner"])==null?void 0:ee.call(n,...Y),e.menuIcon?v(gt,{class:"v-autocomplete__menu-icon",icon:e.menuIcon,onMousedown:J,onClick:jE,"aria-label":i(g.value),title:i(g.value),tabindex:"-1"},null):void 0])}})}),Xi({isFocused:s,isPristine:a,menu:f,search:I,filteredItems:A,select:_e},r)}}),Fce=j({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:je,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...Ve(),...rs({location:"top end"}),...Pt(),...Xe(),...ot(),...cr({transition:"scale-rotate-transition"})},"VBadge"),Bce=ae()({name:"VBadge",inheritAttrs:!1,props:Fce(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:i}=wt(se(e,"color")),{roundedClasses:r}=Bt(e),{t:s}=Ht(),{textColorClasses:a,textColorStyles:o}=Ln(se(e,"textColor")),{themeClasses:l}=vI(),{locationStyles:u}=so(e,!0,c=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return he(()=>{const c=Number(e.content),f=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[h,m]=Tg(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return v(e.tag,fe({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},m,{style:e.style}),{default:()=>{var g,y;return[v("div",{class:"v-badge__wrapper"},[(y=(g=t.slots).default)==null?void 0:y.call(g),v(Gn,{transition:e.transition},{default:()=>{var b,k;return[ie(v("span",fe({class:["v-badge__badge",l.value,n.value,r.value,a.value],style:[i.value,o.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":s(e.label,c),"aria-live":"polite",role:"status"},h),[e.dot?void 0:t.slots.badge?(k=(b=t.slots).badge)==null?void 0:k.call(b):e.icon?v(gt,{icon:e.icon},null):f]),[[vn,e.modelValue]])]}})])]}})}),{}}}),zce=j({color:String,density:String,...Ve()},"VBannerActions"),TA=ae()({name:"VBannerActions",props:zce(),setup(e,t){let{slots:n}=t;return Rt({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),he(()=>{var i;return v("div",{class:["v-banner-actions",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),EA=Or("v-banner-text"),Uce=j({avatar:String,bgColor:String,color:String,icon:je,lines:String,stacked:Boolean,sticky:Boolean,text:String,...ki(),...Ve(),...mn(),...Qt(),...Xa({mobile:null}),...ln(),...rs(),...ul(),...Pt(),...Xe(),...ot()},"VBanner"),Wce=ae()({name:"VBanner",props:Uce(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=wt(e,"bgColor"),{borderClasses:s}=Oi(e),{densityClasses:a}=Yn(e),{displayClasses:o,mobile:l}=Yi(e),{dimensionStyles:u}=en(e),{elevationClasses:c}=An(e),{locationStyles:f}=so(e),{positionClasses:h}=cl(e),{roundedClasses:m}=Bt(e),{themeClasses:g}=pt(e),y=se(e,"color"),b=se(e,"density");Rt({VBannerActions:{color:y,density:b}}),he(()=>{const k=!!(e.text||n.text),w=!!(e.avatar||e.icon),E=!!(w||n.prepend);return v(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},g.value,i.value,s.value,a.value,o.value,c.value,h.value,m.value,e.class],style:[r.value,u.value,f.value,e.style],role:"banner"},{default:()=>{var I;return[E&&v("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?v(tt,{key:"prepend-defaults",disabled:!w,defaults:{VAvatar:{color:y.value,density:b.value,icon:e.icon,image:e.avatar}}},n.prepend):v(qi,{key:"prepend-avatar",color:y.value,density:b.value,icon:e.icon,image:e.avatar},null)]),v("div",{class:"v-banner__content"},[k&&v(EA,{key:"text"},{default:()=>{var D;return[((D=n.text)==null?void 0:D.call(n))??e.text]}}),(I=n.default)==null?void 0:I.call(n)]),n.actions&&v(TA,{key:"actions"},n.actions)]}})})}}),Hce=j({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...ki(),...Ve(),...mn(),...ln(),...Pt(),...Za({name:"bottom-navigation"}),...Xe({tag:"header"}),...no({selectedClass:"v-btn--selected"}),...ot()},"VBottomNavigation"),jce=ae()({name:"VBottomNavigation",props:Hce(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=vI(),{borderClasses:r}=Oi(e),{backgroundColorClasses:s,backgroundColorStyles:a}=wt(se(e,"bgColor")),{densityClasses:o}=Yn(e),{elevationClasses:l}=An(e),{roundedClasses:u}=Bt(e),{ssrBootStyles:c}=eo(),f=T(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),h=Be(e,"active",e.active),{layoutItemStyles:m}=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:T(()=>"bottom"),layoutSize:T(()=>h.value?f.value:0),elementSize:f,active:h,absolute:se(e,"absolute")});return Zs(e,Yv),Rt({VBtn:{baseColor:se(e,"baseColor"),color:se(e,"color"),density:se(e,"density"),stacked:T(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),he(()=>v(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":h.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},i.value,s.value,r.value,o.value,l.value,u.value,e.class],style:[a.value,m.value,{height:Pe(f.value)},c.value,e.style]},{default:()=>[n.default&&v("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),IA=j({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Zu({origin:"center center",scrollStrategy:"block",transition:{component:Vf},zIndex:2400})},"VDialog"),Hg=ae()({name:"VDialog",props:IA(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Be(e,"modelValue"),{scopeId:s}=ao(),a=ke();function o(c){var m,g;const f=c.relatedTarget,h=c.target;if(f!==h&&((m=a.value)!=null&&m.contentEl)&&((g=a.value)!=null&&g.globalTop)&&![document,a.value.contentEl].includes(h)&&!a.value.contentEl.contains(h)){const y=ku(a.value.contentEl);if(!y.length)return;const b=y[0],k=y[y.length-1];f===b?k.focus():b.focus()}}an(()=>{document.removeEventListener("focusin",o)}),ht&&Ie(()=>r.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0});function l(){var c;n("afterEnter"),(c=a.value)!=null&&c.contentEl&&!a.value.contentEl.contains(document.activeElement)&&a.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return Ie(r,async c=>{var f;c||(await ct(),(f=a.value.activatorEl)==null||f.focus({preventScroll:!0}))}),he(()=>{const c=Ir.filterProps(e),f=fe({"aria-haspopup":"dialog"},e.activatorProps),h=fe({tabindex:-1},e.contentProps);return v(Ir,fe({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:r.value,"onUpdate:modelValue":m=>r.value=m,"aria-modal":"true",activatorProps:f,contentProps:h,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:l,onAfterLeave:u},s),{activator:i.activator,default:function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return v(tt,{root:"VDialog"},{default:()=>{var b;return[(b=i.default)==null?void 0:b.call(i,...g)]}})}})}),Xi({},a)}}),Gce=j({inset:Boolean,...IA({transition:"bottom-sheet-transition"})},"VBottomSheet"),qce=ae()({name:"VBottomSheet",props:Gce(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue");return he(()=>{const r=Hg.filterProps(e);return v(Hg,fe(r,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),Kce=j({divider:[Number,String],...Ve()},"VBreadcrumbsDivider"),AA=ae()({name:"VBreadcrumbsDivider",props:Kce(),setup(e,t){let{slots:n}=t;return he(()=>{var i;return v("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((i=n==null?void 0:n.default)==null?void 0:i.call(n))??e.divider])}),{}}}),Yce=j({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...Ve(),...Yu(),...Xe({tag:"li"})},"VBreadcrumbsItem"),xA=ae()({name:"VBreadcrumbsItem",props:Yce(),setup(e,t){let{slots:n,attrs:i}=t;const r=Ku(e,i),s=T(()=>{var u;return e.active||((u=r.isActive)==null?void 0:u.value)}),a=T(()=>s.value?e.activeColor:e.color),{textColorClasses:o,textColorStyles:l}=Ln(a);return he(()=>v(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":s.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:s.value&&e.activeClass},o.value,e.class],style:[l.value,e.style],"aria-current":s.value?"page":void 0},{default:()=>{var u,c;return[r.isLink.value?v("a",fe({class:"v-breadcrumbs-item--link",onClick:r.navigate},r.linkProps),[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),Jce=j({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:je,items:{type:Array,default:()=>[]},...Ve(),...mn(),...Pt(),...Xe({tag:"ul"})},"VBreadcrumbs"),Xce=ae()({name:"VBreadcrumbs",props:Jce(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=wt(se(e,"bgColor")),{densityClasses:s}=Yn(e),{roundedClasses:a}=Bt(e);Rt({VBreadcrumbsDivider:{divider:se(e,"divider")},VBreadcrumbsItem:{activeClass:se(e,"activeClass"),activeColor:se(e,"activeColor"),color:se(e,"color"),disabled:se(e,"disabled")}});const o=T(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return he(()=>{const l=!!(n.prepend||e.icon);return v(e.tag,{class:["v-breadcrumbs",i.value,s.value,a.value,e.class],style:[r.value,e.style]},{default:()=>{var u;return[l&&v("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?v(tt,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):v(gt,{key:"prepend-icon",start:!0,icon:e.icon},null)]),o.value.map((c,f,h)=>{var y;let{item:m,raw:g}=c;return v(U,null,[((y=n.item)==null?void 0:y.call(n,{item:m,index:f}))??v(xA,fe({key:f,disabled:f>=h.length-1},typeof m=="string"?{title:m}:m),{default:n.title?()=>{var b;return(b=n.title)==null?void 0:b.call(n,{item:m,index:f})}:void 0}),f<h.length-1&&v(AA,null,{default:n.divider?()=>{var b;return(b=n.divider)==null?void 0:b.call(n,{item:g,index:f})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}}),DA=ae()({name:"VCardActions",props:Ve(),setup(e,t){let{slots:n}=t;return Rt({VBtn:{slim:!0,variant:"text"}}),he(()=>{var i;return v("div",{class:["v-card-actions",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),Zce=j({opacity:[Number,String],...Ve(),...Xe()},"VCardSubtitle"),PA=ae()({name:"VCardSubtitle",props:Zce(),setup(e,t){let{slots:n}=t;return he(()=>v(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),OA=Or("v-card-title"),Qce=j({appendAvatar:String,appendIcon:je,prependAvatar:String,prependIcon:je,subtitle:[String,Number],title:[String,Number],...Ve(),...mn()},"VCardItem"),MA=ae()({name:"VCardItem",props:Qce(),setup(e,t){let{slots:n}=t;return he(()=>{var u;const i=!!(e.prependAvatar||e.prependIcon),r=!!(i||n.prepend),s=!!(e.appendAvatar||e.appendIcon),a=!!(s||n.append),o=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return v("div",{class:["v-card-item",e.class],style:e.style},[r&&v("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?v(tt,{key:"prepend-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):v(U,null,[e.prependAvatar&&v(qi,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&v(gt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),v("div",{class:"v-card-item__content"},[o&&v(OA,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&v(PA,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),a&&v("div",{key:"append",class:"v-card-item__append"},[n.append?v(tt,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):v(U,null,[e.appendIcon&&v(gt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&v(qi,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),ede=j({opacity:[Number,String],...Ve(),...Xe()},"VCardText"),$A=ae()({name:"VCardText",props:ede(),setup(e,t){let{slots:n}=t;return he(()=>v(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),tde=j({appendAvatar:String,appendIcon:je,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:je,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...ki(),...Ve(),...mn(),...Qt(),...ln(),...Ff(),...rs(),...ul(),...Pt(),...Yu(),...Xe(),...ot(),...Ji({variant:"elevated"})},"VCard"),nde=ae()({name:"VCard",directives:{Ripple:ss},props:tde(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=pt(e),{borderClasses:s}=Oi(e),{colorClasses:a,colorStyles:o,variantClasses:l}=to(e),{densityClasses:u}=Yn(e),{dimensionStyles:c}=en(e),{elevationClasses:f}=An(e),{loaderClasses:h}=Gu(e),{locationStyles:m}=so(e),{positionClasses:g}=cl(e),{roundedClasses:y}=Bt(e),b=Ku(e,n),k=T(()=>e.link!==!1&&b.isLink.value),w=T(()=>!e.disabled&&e.link!==!1&&(e.link||b.isClickable.value));return he(()=>{const E=k.value?"a":e.tag,I=!!(i.title||e.title!=null),D=!!(i.subtitle||e.subtitle!=null),x=I||D,P=!!(i.append||e.appendAvatar||e.appendIcon),A=!!(i.prepend||e.prependAvatar||e.prependIcon),C=!!(i.image||e.image),$=x||A||P,O=!!(i.text||e.text!=null);return ie(v(E,fe({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":w.value},r.value,s.value,a.value,u.value,f.value,h.value,g.value,y.value,l.value,e.class],style:[o.value,c.value,m.value,e.style],onClick:w.value&&b.navigate,tabindex:e.disabled?-1:void 0},b.linkProps),{default:()=>{var M;return[C&&v("div",{key:"image",class:"v-card__image"},[i.image?v(tt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},i.image):v(Qr,{key:"image-img",cover:!0,src:e.image},null)]),v(qu,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:i.loader}),$&&v(MA,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:i.item,prepend:i.prepend,title:i.title,subtitle:i.subtitle,append:i.append}),O&&v($A,{key:"text"},{default:()=>{var F;return[((F=i.text)==null?void 0:F.call(i))??e.text]}}),(M=i.default)==null?void 0:M.call(i),i.actions&&v(DA,null,{default:i.actions}),Xs(w.value,"v-card")]}}),[[Ai("ripple"),w.value&&e.ripple]])}),{}}}),ide=e=>{const{touchstartX:t,touchendX:n,touchstartY:i,touchendY:r}=e,s=.5,a=16;e.offsetX=n-t,e.offsetY=r-i,Math.abs(e.offsetY)<s*Math.abs(e.offsetX)&&(e.left&&n<t-a&&e.left(e),e.right&&n>t+a&&e.right(e)),Math.abs(e.offsetX)<s*Math.abs(e.offsetY)&&(e.up&&r<i-a&&e.up(e),e.down&&r>i+a&&e.down(e))};function rde(e,t){var i;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(i=t.start)==null||i.call(t,{originalEvent:e,...t})}function sde(e,t){var i;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(i=t.end)==null||i.call(t,{originalEvent:e,...t}),ide(t)}function ade(e,t){var i;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(i=t.move)==null||i.call(t,{originalEvent:e,...t})}function ode(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>rde(n,t),touchend:n=>sde(n,t),touchmove:n=>ade(n,t)}}function lde(e,t){var o;const n=t.value,i=n!=null&&n.parent?e.parentElement:e,r=(n==null?void 0:n.options)??{passive:!0},s=(o=t.instance)==null?void 0:o.$.uid;if(!i||!s)return;const a=ode(t.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[s]=a,BE(a).forEach(l=>{i.addEventListener(l,a[l],r)})}function ude(e,t){var s,a;const n=(s=t.value)!=null&&s.parent?e.parentElement:e,i=(a=t.instance)==null?void 0:a.$.uid;if(!(n!=null&&n._touchHandlers)||!i)return;const r=n._touchHandlers[i];BE(r).forEach(o=>{n.removeEventListener(o,r[o])}),delete n._touchHandlers[i]}const uy={mounted:lde,unmounted:ude},VA=Symbol.for("vuetify:v-window"),LA=Symbol.for("vuetify:v-window-group"),qf=j({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Ve(),...Xe(),...ot()},"VWindow"),Ra=ae()({name:"VWindow",directives:{Touch:uy},props:qf(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{isRtl:r}=on(),{t:s}=Ht(),a=Zs(e,LA),o=ke(),l=T(()=>r.value?!e.reverse:e.reverse),u=Ae(!1),c=T(()=>{const I=e.direction==="vertical"?"y":"x",x=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${I}${x}-transition`}),f=Ae(0),h=ke(void 0),m=T(()=>a.items.value.findIndex(I=>a.selected.value.includes(I.id)));Ie(m,(I,D)=>{const x=a.items.value.length,P=x-1;x<=2?u.value=I<D:I===P&&D===0?u.value=!0:I===0&&D===P?u.value=!1:u.value=I<D}),kt(VA,{transition:c,isReversed:u,transitionCount:f,transitionHeight:h,rootRef:o});const g=T(()=>e.continuous||m.value!==0),y=T(()=>e.continuous||m.value!==a.items.value.length-1);function b(){g.value&&a.prev()}function k(){y.value&&a.next()}const w=T(()=>{const I=[],D={icon:r.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:a.prev,"aria-label":s("$vuetify.carousel.prev")};I.push(g.value?n.prev?n.prev({props:D}):v(mt,D,null):v("div",null,null));const x={icon:r.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:a.next,"aria-label":s("$vuetify.carousel.next")};return I.push(y.value?n.next?n.next({props:x}):v(mt,x,null):v("div",null,null)),I}),E=T(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?b():k()},right:()=>{l.value?k():b()},start:D=>{let{originalEvent:x}=D;x.stopPropagation()}},...e.touch===!0?{}:e.touch});return he(()=>ie(v(e.tag,{ref:o,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},i.value,e.class],style:e.style},{default:()=>{var I,D;return[v("div",{class:"v-window__container",style:{height:h.value}},[(I=n.default)==null?void 0:I.call(n,{group:a}),e.showArrows!==!1&&v("div",{class:"v-window__controls"},[w.value])]),(D=n.additional)==null?void 0:D.call(n,{group:a})]}}),[[Ai("touch"),E.value]])),{group:a}}}),cde=j({color:String,cycle:Boolean,delimiterIcon:{type:je,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...qf({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),dde=ae()({name:"VCarousel",props:cde(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),{t:r}=Ht(),s=ke();let a=-1;Ie(i,l),Ie(()=>e.interval,l),Ie(()=>e.cycle,u=>{u?l():window.clearTimeout(a)}),En(o);function o(){!e.cycle||!s.value||(a=window.setTimeout(s.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(a),window.requestAnimationFrame(o)}return he(()=>{const u=Ra.filterProps(e);return v(Ra,fe({ref:s},u,{modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:Pe(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:f}=c;return v(U,null,[!e.hideDelimiters&&v("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&v(tt,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((h,m)=>{const g={id:`carousel-item-${h.id}`,"aria-label":r("$vuetify.carousel.ariaLabel.delimiter",m+1,f.items.value.length),class:["v-carousel__controls__item",f.isSelected(h.id)&&"v-btn--active"],onClick:()=>f.select(h.id,!0)};return n.item?n.item({props:g,item:h}):v(mt,fe(h,g),null)})]})]),e.progress&&v(Rf,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(f.getItemIndex(i.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),Kf=j({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Ve(),...io(),...iy()},"VWindowItem"),Fa=ae()({name:"VWindowItem",directives:{Touch:uy},props:Kf(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=Ze(VA),r=ro(e,LA),{isBooted:s}=eo();if(!i||!r)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const a=Ae(!1),o=T(()=>s.value&&(i.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!a.value||!i||(a.value=!1,i.transitionCount.value>0&&(i.transitionCount.value-=1,i.transitionCount.value===0&&(i.transitionHeight.value=void 0)))}function u(){var g;a.value||!i||(a.value=!0,i.transitionCount.value===0&&(i.transitionHeight.value=Pe((g=i.rootRef.value)==null?void 0:g.clientHeight)),i.transitionCount.value+=1)}function c(){l()}function f(g){a.value&&ct(()=>{!o.value||!a.value||!i||(i.transitionHeight.value=Pe(g.clientHeight))})}const h=T(()=>{const g=i.isReversed.value?e.reverseTransition:e.transition;return o.value?{name:typeof g!="string"?i.transition.value:g,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:m}=ry(e,r.isSelected);return he(()=>v(Gn,{transition:h.value,disabled:!s.value},{default:()=>{var g;return[ie(v("div",{class:["v-window-item",r.selectedClass.value,e.class],style:e.style},[m.value&&((g=n.default)==null?void 0:g.call(n))]),[[vn,r.isSelected.value]])]}})),{groupItem:r}}}),fde=j({...AI(),...Kf()},"VCarouselItem"),hde=ae()({name:"VCarouselItem",inheritAttrs:!1,props:fde(),setup(e,t){let{slots:n,attrs:i}=t;he(()=>{const r=Qr.filterProps(e),s=Fa.filterProps(e);return v(Fa,fe({class:["v-carousel-item",e.class]},s),{default:()=>[v(Qr,fe(i,r),n)]})})}}),mde=Or("v-code","code"),gde=j({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Ve()},"VColorPickerCanvas"),pde=Di({name:"VColorPickerCanvas",props:gde(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const i=Ae(!1),r=ke(),s=Ae(parseFloat(e.width)),a=Ae(parseFloat(e.height)),o=ke({x:0,y:0}),l=T({get:()=>o.value,set(b){var E,I;if(!r.value)return;const{x:k,y:w}=b;o.value=b,n("update:color",{h:((E=e.color)==null?void 0:E.h)??0,s:Yt(k,0,s.value)/s.value,v:1-Yt(w,0,a.value)/a.value,a:((I=e.color)==null?void 0:I.a)??1})}}),u=T(()=>{const{x:b,y:k}=l.value,w=parseInt(e.dotSize,10)/2;return{width:Pe(e.dotSize),height:Pe(e.dotSize),transform:`translate(${Pe(b-w)}, ${Pe(k-w)})`}}),{resizeRef:c}=sr(b=>{var E;if(!((E=c.el)!=null&&E.offsetParent))return;const{width:k,height:w}=b[0].contentRect;s.value=k,a.value=w});function f(b,k,w){const{left:E,top:I,width:D,height:x}=w;l.value={x:Yt(b-E,0,D),y:Yt(k-I,0,x)}}function h(b){b.type==="mousedown"&&b.preventDefault(),!e.disabled&&(m(b),window.addEventListener("mousemove",m),window.addEventListener("mouseup",g),window.addEventListener("touchmove",m),window.addEventListener("touchend",g))}function m(b){if(e.disabled||!r.value)return;i.value=!0;const k=Mae(b);f(k.clientX,k.clientY,r.value.getBoundingClientRect())}function g(){window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g),window.removeEventListener("touchmove",m),window.removeEventListener("touchend",g)}function y(){var I;if(!r.value)return;const b=r.value,k=b.getContext("2d");if(!k)return;const w=k.createLinearGradient(0,0,b.width,0);w.addColorStop(0,"hsla(0, 0%, 100%, 1)"),w.addColorStop(1,`hsla(${((I=e.color)==null?void 0:I.h)??0}, 100%, 50%, 1)`),k.fillStyle=w,k.fillRect(0,0,b.width,b.height);const E=k.createLinearGradient(0,0,0,b.height);E.addColorStop(0,"hsla(0, 0%, 0%, 0)"),E.addColorStop(1,"hsla(0, 0%, 0%, 1)"),k.fillStyle=E,k.fillRect(0,0,b.width,b.height)}return Ie(()=>{var b;return(b=e.color)==null?void 0:b.h},y,{immediate:!0}),Ie(()=>[s.value,a.value],(b,k)=>{y(),o.value={x:l.value.x*b[0]/k[0],y:l.value.y*b[1]/k[1]}},{flush:"post"}),Ie(()=>e.color,()=>{if(i.value){i.value=!1;return}o.value=e.color?{x:e.color.s*s.value,y:(1-e.color.v)*a.value}:{x:0,y:0}},{deep:!0,immediate:!0}),En(()=>y()),he(()=>v("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:h,onTouchstartPassive:h},[v("canvas",{ref:r,width:s.value,height:a.value},null),e.color&&v("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function vde(e,t){if(t){const{a:n,...i}=e;return i}return e}function yde(e,t){if(t==null||typeof t=="string"){const n=iI(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return ma(t,["r","g","b"])?n=Zr(e):ma(t,["h","s","l"])?n=XE(e):ma(t,["h","s","v"])&&(n=e),vde(n,!ma(t,["a"])&&e.a===1)}return e}const Io={h:0,s:0,v:0,a:1},jg={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:Zr,from:Pf};var DS;const bde={...jg,inputs:(DS=jg.inputs)==null?void 0:DS.slice(0,3)},Gg={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:XE,from:Nv},kde={...Gg,inputs:Gg.inputs.slice(0,3)},NA={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:iI,from:nI},wde={...NA,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Ia={rgb:bde,rgba:jg,hsl:kde,hsla:Gg,hex:wde,hexa:NA},Sde=e=>{let{label:t,...n}=e;return v("div",{class:"v-color-picker-edit__input"},[v("input",n,null),v("span",null,[t])])},_de=j({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Ia).includes(e)},modes:{type:Array,default:()=>Object.keys(Ia),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Ia).includes(t))},...Ve()},"VColorPickerEdit"),Cde=Di({name:"VColorPickerEdit",props:_de(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const i=T(()=>e.modes.map(s=>({...Ia[s],name:s}))),r=T(()=>{var o;const s=i.value.find(l=>l.name===e.mode);if(!s)return[];const a=e.color?s.to(e.color):null;return(o=s.inputs)==null?void 0:o.map(l=>{let{getValue:u,getColor:c,...f}=l;return{...s.inputProps,...f,disabled:e.disabled,value:a&&u(a),onChange:h=>{const m=h.target;m&&n("update:color",s.from(c(a??s.to(Io),m.value)))}}})});return he(()=>{var s;return v("div",{class:["v-color-picker-edit",e.class],style:e.style},[(s=r.value)==null?void 0:s.map(a=>v(Sde,a,null)),i.value.length>1&&v(mt,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const a=i.value.findIndex(o=>o.name===e.mode);n("update:mode",i.value[(a+1)%i.value.length].name)}},null)])}),{}}}),cy=Symbol.for("vuetify:v-slider");function qg(e,t,n){const i=n==="vertical",r=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return i?s.clientY-(r.top+r.height/2):s.clientX-(r.left+r.width/2)}function Tde(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const RA=j({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...Pt(),...ln({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),FA=e=>{const t=T(()=>parseFloat(e.min)),n=T(()=>parseFloat(e.max)),i=T(()=>+e.step>0?parseFloat(e.step):0),r=T(()=>Math.max(x1(i.value),x1(t.value)));function s(a){if(a=parseFloat(a),i.value<=0)return a;const o=Yt(a,t.value,n.value),l=t.value%i.value,u=Math.round((o-l)/i.value)*i.value+l;return parseFloat(Math.min(u,n.value).toFixed(r.value))}return{min:t,max:n,step:i,decimals:r,roundValue:s}},BA=e=>{let{props:t,steps:n,onSliderStart:i,onSliderMove:r,onSliderEnd:s,getActiveThumb:a}=e;const{isRtl:o}=on(),l=se(t,"reverse"),u=T(()=>t.direction==="vertical"),c=T(()=>u.value!==l.value),{min:f,max:h,step:m,decimals:g,roundValue:y}=n,b=T(()=>parseInt(t.thumbSize,10)),k=T(()=>parseInt(t.tickSize,10)),w=T(()=>parseInt(t.trackSize,10)),E=T(()=>(h.value-f.value)/m.value),I=se(t,"disabled"),D=T(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),x=T(()=>t.error||t.disabled?void 0:t.trackColor??t.color),P=T(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),A=Ae(!1),C=Ae(0),$=ke(),O=ke();function M(oe){var Y;const q=t.direction==="vertical",de=q?"top":"left",Se=q?"height":"width",_e=q?"clientY":"clientX",{[de]:pe,[Se]:N}=(Y=$.value)==null?void 0:Y.$el.getBoundingClientRect(),V=Tde(oe,_e);let B=Math.min(Math.max((V-pe-C.value)/N,0),1)||0;return(q?c.value:c.value!==o.value)&&(B=1-B),y(f.value+B*(h.value-f.value))}const F=oe=>{s({value:M(oe)}),A.value=!1,C.value=0},z=oe=>{O.value=a(oe),O.value&&(O.value.focus(),A.value=!0,O.value.contains(oe.target)?C.value=qg(oe,O.value,t.direction):(C.value=0,r({value:M(oe)})),i({value:M(oe)}))},re={passive:!0,capture:!0};function le(oe){r({value:M(oe)})}function ve(oe){oe.stopPropagation(),oe.preventDefault(),F(oe),window.removeEventListener("mousemove",le,re),window.removeEventListener("mouseup",ve)}function ye(oe){var q;F(oe),window.removeEventListener("touchmove",le,re),(q=oe.target)==null||q.removeEventListener("touchend",ye)}function Z(oe){var q;z(oe),window.addEventListener("touchmove",le,re),(q=oe.target)==null||q.addEventListener("touchend",ye,{passive:!1})}function J(oe){oe.preventDefault(),z(oe),window.addEventListener("mousemove",le,re),window.addEventListener("mouseup",ve,{passive:!1})}const K=oe=>{const q=(oe-f.value)/(h.value-f.value)*100;return Yt(isNaN(q)?0:q,0,100)},me=se(t,"showTicks"),xe=T(()=>me.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(oe=>({value:oe,position:K(oe),label:oe.toString()})):Object.keys(t.ticks).map(oe=>({value:parseFloat(oe),position:K(parseFloat(oe)),label:t.ticks[oe]})):E.value!==1/0?kr(E.value+1).map(oe=>{const q=f.value+oe*m.value;return{value:q,position:K(q)}}):[]:[]),Me=T(()=>xe.value.some(oe=>{let{label:q}=oe;return!!q})),$e={activeThumbRef:O,color:se(t,"color"),decimals:g,disabled:I,direction:se(t,"direction"),elevation:se(t,"elevation"),hasLabels:Me,isReversed:l,indexFromEnd:c,min:f,max:h,mousePressed:A,numTicks:E,onSliderMousedown:J,onSliderTouchstart:Z,parsedTicks:xe,parseMouseMove:M,position:K,readonly:se(t,"readonly"),rounded:se(t,"rounded"),roundValue:y,showTicks:me,startOffset:C,step:m,thumbSize:b,thumbColor:D,thumbLabel:se(t,"thumbLabel"),ticks:se(t,"ticks"),tickSize:k,trackColor:x,trackContainerRef:$,trackFillColor:P,trackSize:w,vertical:u};return kt(cy,$e),$e},Ede=j({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Ve()},"VSliderThumb"),Kg=ae()({name:"VSliderThumb",directives:{Ripple:ss},props:Ede(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=Ze(cy),{isRtl:s,rtlClasses:a}=on();if(!r)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:o,step:l,disabled:u,thumbSize:c,thumbLabel:f,direction:h,isReversed:m,vertical:g,readonly:y,elevation:b,mousePressed:k,decimals:w,indexFromEnd:E}=r,I=T(()=>u.value?void 0:b.value),{elevationClasses:D}=An(I),{textColorClasses:x,textColorStyles:P}=Ln(o),{pageup:A,pagedown:C,end:$,home:O,left:M,right:F,down:z,up:re}=Cg,le=[A,C,$,O,M,F,z,re],ve=T(()=>l.value?[1,2,3]:[1,5,10]);function ye(J,K){if(!le.includes(J.key))return;J.preventDefault();const me=l.value||.1,xe=(e.max-e.min)/me;if([M,F,z,re].includes(J.key)){const $e=(g.value?[s.value?M:F,m.value?z:re]:E.value!==s.value?[M,re]:[F,re]).includes(J.key)?1:-1,oe=J.shiftKey?2:J.ctrlKey?1:0;K=K+$e*me*ve.value[oe]}else if(J.key===O)K=e.min;else if(J.key===$)K=e.max;else{const Me=J.key===C?1:-1;K=K-Me*me*(xe>100?xe/10:10)}return Math.max(e.min,Math.min(e.max,K))}function Z(J){const K=ye(J,e.modelValue);K!=null&&i("update:modelValue",K)}return he(()=>{const J=Pe(E.value?100-e.position:e.position,"%");return v("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&k.value},e.class,a.value],style:[{"--v-slider-thumb-position":J,"--v-slider-thumb-size":Pe(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-label":e.name,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!y.value,"aria-orientation":h.value,onKeydown:y.value?void 0:Z},[v("div",{class:["v-slider-thumb__surface",x.value,D.value],style:{...P.value}},null),ie(v("div",{class:["v-slider-thumb__ripple",x.value],style:P.value},null),[[Ai("ripple"),e.ripple,null,{circle:!0,center:!0}]]),v(jv,{origin:"bottom center"},{default:()=>{var K;return[ie(v("div",{class:"v-slider-thumb__label-container"},[v("div",{class:["v-slider-thumb__label"]},[v("div",null,[((K=n["thumb-label"])==null?void 0:K.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?w.value:1)])])]),[[vn,f.value&&e.focused||f.value==="always"]])]}})])}),{}}}),Ide=j({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Ve()},"VSliderTrack"),zA=ae()({name:"VSliderTrack",props:Ide(),emits:{},setup(e,t){let{slots:n}=t;const i=Ze(cy);if(!i)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:r,parsedTicks:s,rounded:a,showTicks:o,tickSize:l,trackColor:u,trackFillColor:c,trackSize:f,vertical:h,min:m,max:g,indexFromEnd:y}=i,{roundedClasses:b}=Bt(a),{backgroundColorClasses:k,backgroundColorStyles:w}=wt(c),{backgroundColorClasses:E,backgroundColorStyles:I}=wt(u),D=T(()=>`inset-${h.value?"block":"inline"}-${y.value?"end":"start"}`),x=T(()=>h.value?"height":"width"),P=T(()=>({[D.value]:"0%",[x.value]:"100%"})),A=T(()=>e.stop-e.start),C=T(()=>({[D.value]:Pe(e.start,"%"),[x.value]:Pe(A.value,"%")})),$=T(()=>o.value?(h.value?s.value.slice().reverse():s.value).map((M,F)=>{var re;const z=M.value!==m.value&&M.value!==g.value?Pe(M.position,"%"):void 0;return v("div",{key:M.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":M.position>=e.start&&M.position<=e.stop,"v-slider-track__tick--first":M.value===m.value,"v-slider-track__tick--last":M.value===g.value}],style:{[D.value]:z}},[(M.label||n["tick-label"])&&v("div",{class:"v-slider-track__tick-label"},[((re=n["tick-label"])==null?void 0:re.call(n,{tick:M,index:F}))??M.label])])}):[]);return he(()=>v("div",{class:["v-slider-track",b.value,e.class],style:[{"--v-slider-track-size":Pe(f.value),"--v-slider-tick-size":Pe(l.value)},e.style]},[v("div",{class:["v-slider-track__background",E.value,{"v-slider-track__background--opacity":!!r.value||!c.value}],style:{...P.value,...I.value}},null),v("div",{class:["v-slider-track__fill",k.value],style:{...C.value,...w.value}},null),o.value&&v("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}]},[$.value])])),{}}}),Ade=j({...Ju(),...RA(),...ls(),modelValue:{type:[Number,String],default:0}},"VSlider"),Yg=ae()({name:"VSlider",props:Ade(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=ke(),{rtlClasses:s}=on(),a=FA(e),o=Be(e,"modelValue",void 0,x=>a.roundValue(x??a.min.value)),{min:l,max:u,mousePressed:c,roundValue:f,onSliderMousedown:h,onSliderTouchstart:m,trackContainerRef:g,position:y,hasLabels:b,readonly:k}=BA({props:e,steps:a,onSliderStart:()=>{i("start",o.value)},onSliderEnd:x=>{let{value:P}=x;const A=f(P);o.value=A,i("end",A)},onSliderMove:x=>{let{value:P}=x;return o.value=f(P)},getActiveThumb:()=>{var x;return(x=r.value)==null?void 0:x.$el}}),{isFocused:w,focus:E,blur:I}=as(e),D=T(()=>y(o.value));return he(()=>{const x=Nn.filterProps(e),P=!!(e.label||n.label||n.prepend);return v(Nn,fe({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||b.value,"v-slider--focused":w.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style},x,{focused:w.value}),{...n,prepend:P?A=>{var C,$;return v(U,null,[((C=n.label)==null?void 0:C.call(n,A))??(e.label?v(dl,{id:A.id.value,class:"v-slider__label",text:e.label},null):void 0),($=n.prepend)==null?void 0:$.call(n,A)])}:void 0,default:A=>{let{id:C,messagesId:$}=A;return v("div",{class:"v-slider__container",onMousedown:k.value?void 0:h,onTouchstartPassive:k.value?void 0:m},[v("input",{id:C.value,name:e.name||C.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:o.value},null),v(zA,{ref:g,start:0,stop:D.value},{"tick-label":n["tick-label"]}),v(Kg,{ref:r,"aria-describedby":$.value,focused:w.value,min:l.value,max:u.value,modelValue:o.value,"onUpdate:modelValue":O=>o.value=O,position:D.value,elevation:e.elevation,onFocus:E,onBlur:I,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),{}}}),xde=j({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...Ve()},"VColorPickerPreview"),Dde=Di({name:"VColorPickerPreview",props:xde(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const i=new AbortController;Hd(()=>i.abort());async function r(){if(!T1)return;const s=new window.EyeDropper;try{const a=await s.open({signal:i.signal}),o=nI(a.sRGBHex);n("update:color",{...e.color??Io,...o})}catch{}}return he(()=>{var s,a;return v("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[T1&&v("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[v(mt,{onClick:r,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),v("div",{class:"v-color-picker-preview__dot"},[v("div",{style:{background:QE(e.color??Io)}},null)]),v("div",{class:"v-color-picker-preview__sliders"},[v(Yg,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(s=e.color)==null?void 0:s.h,"onUpdate:modelValue":o=>n("update:color",{...e.color??Io,h:o}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&v(Yg,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((a=e.color)==null?void 0:a.a)??1,"onUpdate:modelValue":o=>n("update:color",{...e.color??Io,a:o}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}}),Pde={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},Ode={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},Mde={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},$de={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},Vde={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},Lde={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},Nde={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},Rde={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},Fde={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},Bde={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},zde={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},Ude={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},Wde={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},Hde={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},jde={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},Gde={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},qde={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},Kde={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},Yde={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},Jde={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},Xde={red:Pde,pink:Ode,purple:Mde,deepPurple:$de,indigo:Vde,blue:Lde,lightBlue:Nde,cyan:Rde,teal:Fde,green:Bde,lightGreen:zde,lime:Ude,yellow:Wde,amber:Hde,orange:jde,deepOrange:Gde,brown:qde,blueGrey:Kde,grey:Yde,shades:Jde},Zde=j({swatches:{type:Array,default:()=>Qde(Xde)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Ve()},"VColorPickerSwatches");function Qde(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const efe=Di({name:"VColorPickerSwatches",props:Zde(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return he(()=>v("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:Pe(e.maxHeight)},e.style]},[v("div",null,[e.swatches.map(i=>v("div",{class:"v-color-picker-swatches__swatch"},[i.map(r=>{const s=zi(r),a=Pf(s),o=ZE(s);return v("div",{class:"v-color-picker-swatches__color",onClick:()=>a&&n("update:color",a)},[v("div",{style:{background:o}},[e.color&&Dr(e.color,a)?v(gt,{size:"x-small",icon:"$success",color:roe(r,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),Yf=j({color:String,...ki(),...Ve(),...Qt(),...ln(),...rs(),...ul(),...Pt(),...Xe(),...ot()},"VSheet"),Ba=ae()({name:"VSheet",props:Yf(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{backgroundColorClasses:r,backgroundColorStyles:s}=wt(se(e,"color")),{borderClasses:a}=Oi(e),{dimensionStyles:o}=en(e),{elevationClasses:l}=An(e),{locationStyles:u}=so(e),{positionClasses:c}=cl(e),{roundedClasses:f}=Bt(e);return he(()=>v(e.tag,{class:["v-sheet",i.value,r.value,a.value,l.value,c.value,f.value,e.class],style:[s.value,o.value,u.value,e.style]},n)),{}}}),tfe=j({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Ia).includes(e)},modes:{type:Array,default:()=>Object.keys(Ia),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Ia).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...Zt(Yf({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),nfe=Di({name:"VColorPicker",props:tfe(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=Be(e,"mode"),n=ke(null),i=Be(e,"modelValue",void 0,l=>{if(l==null||l==="")return null;let u;try{u=Pf(zi(l))}catch{return null}return u},l=>l?yde(l,e.modelValue):null),r=T(()=>i.value?{...i.value,h:n.value??i.value.h}:null),{rtlClasses:s}=on();let a=!0;Ie(i,l=>{if(!a){a=!0;return}l&&(n.value=l.h)},{immediate:!0});const o=l=>{a=!1,n.value=l.h,i.value=l};return Wd(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Rt({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),he(()=>{const l=Ba.filterProps(e);return v(Ba,fe({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",s.value,e.class],style:[{"--v-color-picker-color-hsv":QE({...r.value??Io,a:1})},e.style]},l,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&v(pde,{key:"canvas",color:r.value,"onUpdate:color":o,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&v("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&v(Dde,{key:"preview",color:r.value,"onUpdate:color":o,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&v(Cde,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":u=>t.value=u,color:r.value,"onUpdate:color":o,disabled:e.disabled},null)]),e.showSwatches&&v(efe,{key:"swatches",color:r.value,"onUpdate:color":o,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function ife(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?v(U,null,[v("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),v("span",{class:"v-combobox__mask"},[e.substr(t,n)]),v("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const rfe=j({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...ec({filterKeys:["title"]}),...oy({hideNoData:!0,returnObject:!0}),...Zt(jf({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...cr({transition:!1})},"VCombobox"),sfe=ae()({name:"VCombobox",props:rfe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var N;let{emit:n,slots:i}=t;const{t:r}=Ht(),s=ke(),a=Ae(!1),o=Ae(!0),l=Ae(!1),u=ke(),c=ke(),f=Be(e,"menu"),h=T({get:()=>f.value,set:V=>{var B;f.value&&!V&&((B=u.value)!=null&&B.ΨopenChildren.size)||(f.value=V)}}),m=Ae(-1);let g=!1;const y=T(()=>{var V;return(V=s.value)==null?void 0:V.color}),b=T(()=>h.value?e.closeText:e.openText),{items:k,transformIn:w,transformOut:E}=ey(e),{textColorClasses:I,textColorStyles:D}=Ln(y),x=Be(e,"modelValue",[],V=>w(Mt(V)),V=>{const B=E(V);return e.multiple?B:B[0]??null}),P=Uf(),A=T(()=>!!(e.chips||i.chip)),C=T(()=>A.value||!!i.selection),$=Ae(!e.multiple&&!C.value?((N=x.value[0])==null?void 0:N.title)??"":""),O=T({get:()=>$.value,set:V=>{var B;if($.value=V??"",!e.multiple&&!C.value&&(x.value=[Ts(e,V)]),V&&e.multiple&&((B=e.delimiters)!=null&&B.length)){const Y=V.split(new RegExp(`(?:${e.delimiters.join("|")})+`));Y.length>1&&(Y.forEach(Q=>{Q=Q.trim(),Q&&de(Ts(e,Q))}),$.value="")}V||(m.value=-1),o.value=!V}}),M=T(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?x.value.length:O.value.length);Ie($,V=>{g?ct(()=>g=!1):a.value&&!h.value&&(h.value=!0),n("update:search",V)}),Ie(x,V=>{var B;!e.multiple&&!C.value&&($.value=((B=V[0])==null?void 0:B.title)??"")});const{filteredItems:F,getMatches:z}=tc(e,k,()=>o.value?"":O.value),re=T(()=>e.hideSelected?F.value.filter(V=>!x.value.some(B=>B.value===V.value)):F.value),le=T(()=>x.value.map(V=>V.value)),ve=T(()=>{var B;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&O.value===((B=re.value[0])==null?void 0:B.title))&&re.value.length>0&&!o.value&&!l.value}),ye=T(()=>e.hideNoData&&!re.value.length||e.readonly||(P==null?void 0:P.isReadonly.value)),Z=ke(),J=ay(Z,s);function K(V){g=!0,e.openOnClear&&(h.value=!0)}function me(){ye.value||(h.value=!0)}function xe(V){ye.value||(a.value&&(V.preventDefault(),V.stopPropagation()),h.value=!h.value)}function Me(V){var B;xd(V)&&((B=s.value)==null||B.focus())}function $e(V){var Q;if(xae(V)||e.readonly||P!=null&&P.isReadonly.value)return;const B=s.value.selectionStart,Y=x.value.length;if((m.value>-1||["Enter","ArrowDown","ArrowUp"].includes(V.key))&&V.preventDefault(),["Enter","ArrowDown"].includes(V.key)&&(h.value=!0),["Escape"].includes(V.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(V.key)&&(ve.value&&["Enter","Tab"].includes(V.key)&&!x.value.some(ee=>{let{value:L}=ee;return L===re.value[0].value})&&de(F.value[0]),o.value=!0),V.key==="ArrowDown"&&ve.value&&((Q=Z.value)==null||Q.focus("next")),V.key==="Enter"&&O.value&&(de(Ts(e,O.value)),C.value&&($.value="")),["Backspace","Delete"].includes(V.key)){if(!e.multiple&&C.value&&x.value.length>0&&!O.value)return de(x.value[0],!1);if(~m.value){const ee=m.value;de(x.value[m.value],!1),m.value=ee>=Y-1?Y-2:ee}else V.key==="Backspace"&&!O.value&&(m.value=Y-1)}if(e.multiple){if(V.key==="ArrowLeft"){if(m.value<0&&B>0)return;const ee=m.value>-1?m.value-1:Y-1;x.value[ee]?m.value=ee:(m.value=-1,s.value.setSelectionRange(O.value.length,O.value.length))}if(V.key==="ArrowRight"){if(m.value<0)return;const ee=m.value+1;x.value[ee]?m.value=ee:(m.value=-1,s.value.setSelectionRange(0,0))}}}function oe(){var V;e.eager&&((V=c.value)==null||V.calculateVisibleItems())}function q(){var V;a.value&&(o.value=!0,(V=s.value)==null||V.focus())}function de(V){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!V||V.props.disabled))if(e.multiple){const Y=x.value.findIndex(ee=>e.valueComparator(ee.value,V.value)),Q=B??!~Y;if(~Y){const ee=Q?[...x.value,V]:[...x.value];ee.splice(Y,1),x.value=ee}else Q&&(x.value=[...x.value,V]);e.clearOnSelect&&(O.value="")}else{const Y=B!==!1;x.value=Y?[V]:[],$.value=Y&&!C.value?V.title:"",ct(()=>{h.value=!1,o.value=!0})}}function Se(V){a.value=!0,setTimeout(()=>{l.value=!0})}function _e(V){l.value=!1}function pe(V){(V==null||V===""&&!e.multiple&&!C.value)&&(x.value=[])}return Ie(a,(V,B)=>{if(!(V||V===B)&&(m.value=-1,h.value=!1,O.value)){if(e.multiple){de(Ts(e,O.value));return}if(!C.value)return;x.value.some(Y=>{let{title:Q}=Y;return Q===O.value})?$.value="":de(Ts(e,O.value))}}),Ie(h,()=>{if(!e.hideSelected&&h.value&&x.value.length){const V=re.value.findIndex(B=>x.value.some(Y=>e.valueComparator(Y.value,B.value)));ht&&window.requestAnimationFrame(()=>{var B;V>=0&&((B=c.value)==null||B.scrollToIndex(V))})}}),Ie(()=>e.items,(V,B)=>{h.value||a.value&&!B.length&&V.length&&(h.value=!0)}),he(()=>{const V=!!(!e.hideNoData||re.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),B=x.value.length>0,Y=Na.filterProps(e);return v(Na,fe({ref:s},Y,{modelValue:O.value,"onUpdate:modelValue":[Q=>O.value=Q,pe],focused:a.value,"onUpdate:focused":Q=>a.value=Q,validationValue:x.externalValue,counterValue:M.value,dirty:B,class:["v-combobox",{"v-combobox--active-menu":h.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!C.value,"v-combobox--selecting-index":m.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:B?void 0:e.placeholder,"onClick:clear":K,"onMousedown:control":me,onKeydown:$e}),{...i,default:()=>v(U,null,[v(Qo,fe({ref:u,modelValue:h.value,"onUpdate:modelValue":Q=>h.value=Q,activator:"parent",contentClass:"v-combobox__content",disabled:ye.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:oe,onAfterLeave:q},e.menuProps),{default:()=>[V&&v(Wf,fe({ref:Z,selected:le.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Q=>Q.preventDefault(),onKeydown:Me,onFocusin:Se,onFocusout:_e,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},J,e.listProps),{default:()=>{var Q,ee,L;return[(Q=i["prepend-item"])==null?void 0:Q.call(i),!re.value.length&&!e.hideNoData&&(((ee=i["no-data"])==null?void 0:ee.call(i))??v(ts,{title:r(e.noDataText)},null)),v(Gf,{ref:c,renderless:!0,items:re.value},{default:R=>{var H;let{item:W,index:ne,itemRef:Ce}=R;const Te=fe(W.props,{ref:Ce,key:ne,active:ve.value&&ne===0?!0:void 0,onClick:()=>de(W,null)});return((H=i.item)==null?void 0:H.call(i,{item:W,index:ne,props:Te}))??v(ts,fe(Te,{role:"option"}),{prepend:ue=>{let{isSelected:Ne}=ue;return v(U,null,[e.multiple&&!e.hideSelected?v(es,{key:W.value,modelValue:Ne,ripple:!1,tabindex:"-1"},null):void 0,W.props.prependAvatar&&v(qi,{image:W.props.prependAvatar},null),W.props.prependIcon&&v(gt,{icon:W.props.prependIcon},null)])},title:()=>{var ue,Ne;return o.value?W.title:ife(W.title,(ue=z(W))==null?void 0:ue.title,((Ne=O.value)==null?void 0:Ne.length)??0)}})}}),(L=i["append-item"])==null?void 0:L.call(i)]}})]}),x.value.map((Q,ee)=>{function L(Ce){Ce.stopPropagation(),Ce.preventDefault(),de(Q,!1)}const R={"onClick:close":L,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),L(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},W=A.value?!!i.chip:!!i.selection,ne=W?Df(A.value?i.chip({item:Q,index:ee,props:R}):i.selection({item:Q,index:ee})):void 0;if(!(W&&!ne))return v("div",{key:Q.value,class:["v-combobox__selection",ee===m.value&&["v-combobox__selection--selected",I.value]],style:ee===m.value?D.value:{}},[A.value?i.chip?v(tt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Q.title}}},{default:()=>[ne]}):v(fl,fe({key:"chip",closable:e.closableChips,size:"small",text:Q.title,disabled:Q.props.disabled},R),null):ne??v("span",{class:"v-combobox__selection-text"},[Q.title,e.multiple&&ee<x.value.length-1&&v("span",{class:"v-combobox__selection-comma"},[ge(",")])])])})]),"append-inner":function(){var R;for(var Q=arguments.length,ee=new Array(Q),L=0;L<Q;L++)ee[L]=arguments[L];return v(U,null,[(R=i["append-inner"])==null?void 0:R.call(i,...ee),(!e.hideNoData||e.items.length)&&e.menuIcon?v(gt,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:xe,onClick:jE,"aria-label":r(b.value),title:r(b.value),tabindex:"-1"},null):void 0])}})}),Xi({isFocused:a,isPristine:o,menu:h,search:O,selectionIndex:m,filteredItems:F,select:de},s)}}),afe=j({modelValue:null,color:String,cancelText:{type:String,default:"$vuetify.confirmEdit.cancel"},okText:{type:String,default:"$vuetify.confirmEdit.ok"}},"VConfirmEdit"),ofe=ae()({name:"VConfirmEdit",props:afe(),emits:{cancel:()=>!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Be(e,"modelValue"),s=ke();Wt(()=>{s.value=structuredClone(Ke(r.value))});const{t:a}=Ht(),o=T(()=>Dr(r.value,s.value));function l(){r.value=s.value,n("save",s.value)}function u(){s.value=structuredClone(Ke(r.value)),n("cancel")}let c=!1;return he(()=>{var h;const f=v(U,null,[v(mt,{disabled:o.value,variant:"text",color:e.color,onClick:u,text:a(e.cancelText)},null),v(mt,{disabled:o.value,variant:"text",color:e.color,onClick:l,text:a(e.okText)},null)]);return v(U,null,[(h=i.default)==null?void 0:h.call(i,{model:s,save:l,cancel:u,isPristine:o.value,get actions(){return c=!0,f}}),!c&&f])}),{save:l,cancel:u,isPristine:o}}}),UA=j({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),WA=Symbol.for("vuetify:datatable:expanded");function Jf(e){const t=se(e,"expandOnClick"),n=Be(e,"expanded",e.expanded,o=>new Set(o),o=>[...o.values()]);function i(o,l){const u=new Set(n.value);l?u.add(o.value):u.delete(o.value),n.value=u}function r(o){return n.value.has(o.value)}function s(o){i(o,!r(o))}const a={expand:i,expanded:n,expandOnClick:t,isExpanded:r,toggleExpand:s};return kt(WA,a),a}function HA(){const e=Ze(WA);if(!e)throw new Error("foo");return e}const dy=j({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),jA=Symbol.for("vuetify:data-table-group");function fy(e){return{groupBy:Be(e,"groupBy")}}function Xf(e){const{disableSort:t,groupBy:n,sortBy:i}=e,r=ke(new Set),s=T(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t!=null&&t.value?[]:i.value));function a(c){return r.value.has(c.id)}function o(c){const f=new Set(r.value);a(c)?f.delete(c.id):f.add(c.id),r.value=f}function l(c){function f(h){const m=[];for(const g of h.items)"type"in g&&g.type==="group"?m.push(...f(g)):m.push(g);return m}return f({items:c})}const u={sortByWithGroups:s,toggleGroup:o,opened:r,groupBy:n,extractRows:l,isGroupOpen:a};return kt(jA,u),u}function GA(){const e=Ze(jA);if(!e)throw new Error("Missing group!");return e}function lfe(e,t){if(!e.length)return[];const n=new Map;for(const i of e){const r=La(i.raw,t);n.has(r)||n.set(r,[]),n.get(r).push(i)}return n}function qA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const r=lfe(e,t[0]),s=[],a=t.slice(1);return r.forEach((o,l)=>{const u=t[0],c=`${i}_${u}_${l}`;s.push({depth:n,id:c,key:u,value:l,items:a.length?qA(o,a,n+1,c):o,type:"group"})}),s}function KA(e,t){const n=[];for(const i of e)"type"in i&&i.type==="group"?(i.value!=null&&n.push(i),(t.has(i.id)||i.value==null)&&n.push(...KA(i.items,t))):n.push(i);return n}function Zf(e,t,n){return{flatItems:T(()=>{if(!t.value.length)return e.value;const r=qA(e.value,t.value.map(s=>s.key));return KA(r,n.value)})}}function Qf(e){let{page:t,itemsPerPage:n,sortBy:i,groupBy:r,search:s}=e;const a=Ft("VDataTable"),o=T(()=>({page:t.value,itemsPerPage:n.value,sortBy:i.value,groupBy:r.value,search:s.value}));let l=null;Ie(o,()=>{Dr(l,o.value)||(l&&l.search!==o.value.search&&(t.value=1),a.emit("update:options",o.value),l=o.value)},{deep:!0,immediate:!0})}const hy=j({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),YA=Symbol.for("vuetify:data-table-pagination");function my(e){const t=Be(e,"page",void 0,i=>+(i??1)),n=Be(e,"itemsPerPage",void 0,i=>+(i??10));return{page:t,itemsPerPage:n}}function gy(e){const{page:t,itemsPerPage:n,itemsLength:i}=e,r=T(()=>n.value===-1?0:n.value*(t.value-1)),s=T(()=>n.value===-1?i.value:Math.min(i.value,r.value+n.value)),a=T(()=>n.value===-1||i.value===0?1:Math.ceil(i.value/n.value));Ie([t,a],()=>{t.value>a.value&&(t.value=a.value)});function o(h){n.value=h,t.value=1}function l(){t.value=Yt(t.value+1,1,a.value)}function u(){t.value=Yt(t.value-1,1,a.value)}function c(h){t.value=Yt(h,1,a.value)}const f={page:t,itemsPerPage:n,startIndex:r,stopIndex:s,pageCount:a,itemsLength:i,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:o};return kt(YA,f),f}function ufe(){const e=Ze(YA);if(!e)throw new Error("Missing pagination!");return e}function JA(e){const t=Ft("usePaginatedItems"),{items:n,startIndex:i,stopIndex:r,itemsPerPage:s}=e,a=T(()=>s.value<=0?n.value:n.value.slice(i.value,r.value));return Ie(a,o=>{t.emit("update:currentItems",o)}),{paginatedItems:a}}const cfe={showSelectAll:!1,allSelected:()=>[],select:e=>{var i;let{items:t,value:n}=e;return new Set(n?[(i=t[0])==null?void 0:i.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},XA={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:i}=e;for(const r of t)n?i.add(r.value):i.delete(r.value);return i},selectAll:e=>{let{value:t,currentPage:n,selected:i}=e;return XA.select({items:n,value:t,selected:i})}},ZA={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:i}=e;for(const r of t)n?i.add(r.value):i.delete(r.value);return i},selectAll:e=>{let{value:t,allItems:n,selected:i}=e;return ZA.select({items:n,value:t,selected:i})}},QA=j({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:Dr}},"DataTable-select"),ex=Symbol.for("vuetify:data-table-selection");function eh(e,t){let{allItems:n,currentPage:i}=t;const r=Be(e,"modelValue",e.modelValue,k=>new Set(Mt(k).map(w=>{var E;return((E=n.value.find(I=>e.valueComparator(w,I.value)))==null?void 0:E.value)??w})),k=>[...k.values()]),s=T(()=>n.value.filter(k=>k.selectable)),a=T(()=>i.value.filter(k=>k.selectable)),o=T(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return cfe;case"all":return ZA;case"page":default:return XA}});function l(k){return Mt(k).every(w=>r.value.has(w.value))}function u(k){return Mt(k).some(w=>r.value.has(w.value))}function c(k,w){const E=o.value.select({items:k,value:w,selected:new Set(r.value)});r.value=E}function f(k){c([k],!l([k]))}function h(k){const w=o.value.selectAll({value:k,allItems:s.value,currentPage:a.value,selected:new Set(r.value)});r.value=w}const m=T(()=>r.value.size>0),g=T(()=>{const k=o.value.allSelected({allItems:s.value,currentPage:a.value});return!!k.length&&l(k)}),y=T(()=>o.value.showSelectAll),b={toggleSelect:f,select:c,selectAll:h,isSelected:l,isSomeSelected:u,someSelected:m,allSelected:g,showSelectAll:y};return kt(ex,b),b}function th(){const e=Ze(ex);if(!e)throw new Error("Missing selection!");return e}const tx=j({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),nx=Symbol.for("vuetify:data-table-sort");function nh(e){const t=Be(e,"sortBy"),n=se(e,"mustSort"),i=se(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:i}}function ih(e){const{sortBy:t,mustSort:n,multiSort:i,page:r}=e,s=l=>{if(l.key==null)return;let u=t.value.map(f=>({...f}))??[];const c=u.find(f=>f.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(f=>f.key!==l.key):c.order="desc":i.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,r&&(r.value=1)};function a(l){return!!t.value.find(u=>u.key===l.key)}const o={sortBy:t,toggleSort:s,isSorted:a};return kt(nx,o),o}function ix(){const e=Ze(nx);if(!e)throw new Error("Missing sort!");return e}function py(e,t,n,i){const r=Ht();return{sortedItems:T(()=>{var a,o;return n.value.length?dfe(t.value,n.value,r.current.value,{transform:i==null?void 0:i.transform,sortFunctions:{...e.customKeySort,...(a=i==null?void 0:i.sortFunctions)==null?void 0:a.value},sortRawFunctions:(o=i==null?void 0:i.sortRawFunctions)==null?void 0:o.value}):t.value})}}function dfe(e,t,n,i){const r=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(a=>[a,i!=null&&i.transform?i.transform(a):a]).sort((a,o)=>{var l,u;for(let c=0;c<t.length;c++){let f=!1;const h=t[c].key,m=t[c].order??"asc";if(m===!1)continue;let g=La(a[1],h),y=La(o[1],h),b=a[0].raw,k=o[0].raw;if(m==="desc"&&([g,y]=[y,g],[b,k]=[k,b]),(l=i==null?void 0:i.sortRawFunctions)!=null&&l[h]){const w=i.sortRawFunctions[h](b,k);if(w==null)continue;if(f=!0,w)return w}if((u=i==null?void 0:i.sortFunctions)!=null&&u[h]){const w=i.sortFunctions[h](g,y);if(w==null)continue;if(f=!0,w)return w}if(!f){if(g instanceof Date&&y instanceof Date)return g.getTime()-y.getTime();if([g,y]=[g,y].map(w=>w!=null?w.toString().toLocaleLowerCase():w),g!==y)return xc(g)&&xc(y)?0:xc(g)?-1:xc(y)?1:!isNaN(g)&&!isNaN(y)?Number(g)-Number(y):r.compare(g,y)}}return 0}).map(a=>{let[o]=a;return o})}const ffe=j({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function hfe(e,t){const n=e.returnObject?t:nn(t,e.itemValue),i=nn(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:i,raw:t}}function mfe(e,t){const n=[];for(const i of t)n.push(hfe(e,i));return n}function gfe(e){return{items:T(()=>mfe(e,e.items))}}const pfe=j({search:String,loading:Boolean,...Ve(),...ffe(),...QA(),...tx(),...hy({itemsPerPage:5}),...UA(),...dy(),...ec(),...Xe(),...cr({transition:{component:Cu,hideOnLeave:!0}})},"VDataIterator"),vfe=ae()({name:"VDataIterator",props:pfe(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"groupBy"),r=se(e,"search"),{items:s}=gfe(e),{filteredItems:a}=tc(e,s,r,{transform:K=>K.raw}),{sortBy:o,multiSort:l,mustSort:u}=nh(e),{page:c,itemsPerPage:f}=my(e),{toggleSort:h}=ih({sortBy:o,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:m,opened:g,extractRows:y,isGroupOpen:b,toggleGroup:k}=Xf({groupBy:i,sortBy:o}),{sortedItems:w}=py(e,a,m,{transform:K=>K.raw}),{flatItems:E}=Zf(w,i,g),I=T(()=>E.value.length),{startIndex:D,stopIndex:x,pageCount:P,prevPage:A,nextPage:C,setItemsPerPage:$,setPage:O}=gy({page:c,itemsPerPage:f,itemsLength:I}),{paginatedItems:M}=JA({items:E,startIndex:D,stopIndex:x,itemsPerPage:f}),F=T(()=>y(M.value)),{isSelected:z,select:re,selectAll:le,toggleSelect:ve}=eh(e,{allItems:s,currentPage:F}),{isExpanded:ye,toggleExpand:Z}=Jf(e);Qf({page:c,itemsPerPage:f,sortBy:o,groupBy:i,search:r});const J=T(()=>({page:c.value,itemsPerPage:f.value,sortBy:o.value,pageCount:P.value,toggleSort:h,prevPage:A,nextPage:C,setPage:O,setItemsPerPage:$,isSelected:z,select:re,selectAll:le,toggleSelect:ve,isExpanded:ye,toggleExpand:Z,isGroupOpen:b,toggleGroup:k,items:F.value,groupedItems:M.value}));return he(()=>v(e.tag,{class:["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class],style:e.style},{default:()=>{var K,me;return[(K=n.header)==null?void 0:K.call(n,J.value),v(Gn,{transition:e.transition},{default:()=>{var xe,Me;return[e.loading?v(qu,{key:"loader",name:"v-data-iterator",active:!0},{default:$e=>{var oe;return(oe=n.loader)==null?void 0:oe.call(n,$e)}}):v("div",{key:"items"},[M.value.length?(Me=n.default)==null?void 0:Me.call(n,J.value):(xe=n["no-data"])==null?void 0:xe.call(n)])]}}),(me=n.footer)==null?void 0:me.call(n,J.value)]}})),{}}});function yfe(){const e=ke([]);h0(()=>e.value=[]);function t(n,i){e.value[i]=n}return{refs:e,updateRef:t}}const bfe=j({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:je,default:"$first"},prevIcon:{type:je,default:"$prev"},nextIcon:{type:je,default:"$next"},lastIcon:{type:je,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ki(),...Ve(),...mn(),...ln(),...Pt(),...Mr(),...Xe({tag:"nav"}),...ot(),...Ji({variant:"text"})},"VPagination"),Jg=ae()({name:"VPagination",props:bfe(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=Be(e,"modelValue"),{t:s,n:a}=Ht(),{isRtl:o}=on(),{themeClasses:l}=pt(e),{width:u}=Yi(),c=Ae(-1);Rt(void 0,{scoped:!0});const{resizeRef:f}=sr(A=>{if(!A.length)return;const{target:C,contentRect:$}=A[0],O=C.querySelector(".v-pagination__list > *");if(!O)return;const M=$.width,F=O.offsetWidth+parseFloat(getComputedStyle(O).marginRight)*2;c.value=y(M,F)}),h=T(()=>parseInt(e.length,10)),m=T(()=>parseInt(e.start,10)),g=T(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:y(u.value,58));function y(A,C){const $=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((A-C*$)/C).toFixed(2)))}const b=T(()=>{if(h.value<=0||isNaN(h.value)||h.value>Number.MAX_SAFE_INTEGER)return[];if(g.value<=0)return[];if(g.value===1)return[r.value];if(h.value<=g.value)return kr(h.value,m.value);const A=g.value%2===0,C=A?g.value/2:Math.floor(g.value/2),$=A?C:C+1,O=h.value-C;if($-r.value>=0)return[...kr(Math.max(1,g.value-1),m.value),e.ellipsis,h.value];if(r.value-O>=(A?1:0)){const M=g.value-1,F=h.value-M+m.value;return[m.value,e.ellipsis,...kr(M,F)]}else{const M=Math.max(1,g.value-3),F=M===1?r.value:r.value-Math.ceil(M/2)+m.value;return[m.value,e.ellipsis,...kr(M,F),e.ellipsis,h.value]}});function k(A,C,$){A.preventDefault(),r.value=C,$&&i($,C)}const{refs:w,updateRef:E}=yfe();Rt({VPaginationBtn:{color:se(e,"color"),border:se(e,"border"),density:se(e,"density"),size:se(e,"size"),variant:se(e,"variant"),rounded:se(e,"rounded"),elevation:se(e,"elevation")}});const I=T(()=>b.value.map((A,C)=>{const $=O=>E(O,C);if(typeof A=="string")return{isActive:!1,key:`ellipsis-${C}`,page:A,props:{ref:$,ellipsis:!0,icon:!0,disabled:!0}};{const O=A===r.value;return{isActive:O,key:A,page:a(A),props:{ref:$,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:O?e.activeColor:e.color,"aria-current":O,"aria-label":s(O?e.currentPageAriaLabel:e.pageAriaLabel,A),onClick:M=>k(M,A)}}}})),D=T(()=>{const A=!!e.disabled||r.value<=m.value,C=!!e.disabled||r.value>=m.value+h.value-1;return{first:e.showFirstLastPage?{icon:o.value?e.lastIcon:e.firstIcon,onClick:$=>k($,m.value,"first"),disabled:A,"aria-label":s(e.firstAriaLabel),"aria-disabled":A}:void 0,prev:{icon:o.value?e.nextIcon:e.prevIcon,onClick:$=>k($,r.value-1,"prev"),disabled:A,"aria-label":s(e.previousAriaLabel),"aria-disabled":A},next:{icon:o.value?e.prevIcon:e.nextIcon,onClick:$=>k($,r.value+1,"next"),disabled:C,"aria-label":s(e.nextAriaLabel),"aria-disabled":C},last:e.showFirstLastPage?{icon:o.value?e.firstIcon:e.lastIcon,onClick:$=>k($,m.value+h.value-1,"last"),disabled:C,"aria-label":s(e.lastAriaLabel),"aria-disabled":C}:void 0}});function x(){var C;const A=r.value-m.value;(C=w.value[A])==null||C.$el.focus()}function P(A){A.key===Cg.left&&!e.disabled&&r.value>+e.start?(r.value=r.value-1,ct(x)):A.key===Cg.right&&!e.disabled&&r.value<m.value+h.value-1&&(r.value=r.value+1,ct(x))}return he(()=>v(e.tag,{ref:f,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":s(e.ariaLabel),onKeydown:P,"data-test":"v-pagination-root"},{default:()=>[v("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&v("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(D.value.first):v(mt,fe({_as:"VPaginationBtn"},D.value.first),null)]),v("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(D.value.prev):v(mt,fe({_as:"VPaginationBtn"},D.value.prev),null)]),I.value.map((A,C)=>v("li",{key:A.key,class:["v-pagination__item",{"v-pagination__item--is-active":A.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(A):v(mt,fe({_as:"VPaginationBtn"},A.props),{default:()=>[A.page]})])),v("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(D.value.next):v(mt,fe({_as:"VPaginationBtn"},D.value.next),null)]),e.showFirstLastPage&&v("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(D.value.last):v(mt,fe({_as:"VPaginationBtn"},D.value.last),null)])])]})),{}}}),vy=j({prevIcon:{type:je,default:"$prev"},nextIcon:{type:je,default:"$next"},firstIcon:{type:je,default:"$first"},lastIcon:{type:je,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Du=ae()({name:"VDataTableFooter",props:vy(),setup(e,t){let{slots:n}=t;const{t:i}=Ht(),{page:r,pageCount:s,startIndex:a,stopIndex:o,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=ufe(),f=T(()=>e.itemsPerPageOptions.map(h=>typeof h=="number"?{value:h,title:h===-1?i("$vuetify.dataFooter.itemsPerPageAll"):String(h)}:{...h,title:isNaN(Number(h.title))?i(h.title):h.title}));return he(()=>{var m;const h=Jg.filterProps(e);return v("div",{class:"v-data-table-footer"},[(m=n.prepend)==null?void 0:m.call(n),v("div",{class:"v-data-table-footer__items-per-page"},[v("span",null,[i(e.itemsPerPageText)]),v(ly,{items:f.value,modelValue:u.value,"onUpdate:modelValue":g=>c(Number(g)),density:"compact",variant:"outlined","hide-details":!0},null)]),v("div",{class:"v-data-table-footer__info"},[v("div",null,[i(e.pageText,l.value?a.value+1:0,o.value,l.value)])]),v("div",{class:"v-data-table-footer__pagination"},[v(Jg,fe({modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:s.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},h),null)])])}),{}}}),Vd=uoe({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const i=e.tag??"td";return v(i,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:Pe(e.height),width:Pe(e.width),maxWidth:Pe(e.maxWidth),left:Pe(e.fixedOffset||null)}},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n)]}})}),kfe=j({headers:Array},"DataTable-header"),rx=Symbol.for("vuetify:data-table-headers"),sx={title:"",sortable:!1},wfe={...sx,width:48};function Sfe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,i)=>{let r=!1;for(let s=0;s<t.length;s++)if(t[s].priority>i){t.splice(s,0,{element:n,priority:i}),r=!0;break}r||t.push({element:n,priority:i})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const i=Math.floor(t[0].priority);for(let r=0;r<t.length;r++)Math.floor(t[r].priority)===i&&(n+=1);return n},dequeue:()=>t.shift()}}function Xg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)Xg(n,t);return t}function ax(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&ax(n.children,t);return t}function _fe(e){if(e.key){if(e.key==="data-table-group")return sx;if(["data-table-expand","data-table-select"].includes(e.key))return wfe}}function yy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>yy(n,t+1))):t}function Cfe(e){let t=!1;function n(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s)if(a&&(s.fixed=!0),s.fixed)if(s.children)for(let o=s.children.length-1;o>=0;o--)n(s.children[o],!0);else t?isNaN(+s.width)&&(`${s.key}`,void 0):s.lastFixed=!0,t=!0;else if(s.children)for(let o=s.children.length-1;o>=0;o--)n(s.children[o]);else t=!1}for(let s=e.length-1;s>=0;s--)n(e[s]);function i(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!s)return a;if(s.children){s.fixedOffset=a;for(const o of s.children)a=i(o,a)}else s.fixed&&(s.fixedOffset=a,a+=parseFloat(s.width||"0")||0);return a}let r=0;for(const s of e)r=i(s,r)}function Tfe(e,t){const n=[];let i=0;const r=Sfe(e);for(;r.size()>0;){let a=r.count();const o=[];let l=1;for(;a>0;){const{element:u,priority:c}=r.dequeue(),f=t-i-yy(u);if(o.push({...u,rowspan:f??1,colspan:u.children?Xg(u).length:1}),u.children)for(const h of u.children){const m=c%1+l/Math.pow(10,i+2);r.enqueue(h,i+f+m)}l+=1,a-=1}i+=1,n.push(o)}return{columns:e.map(a=>Xg(a)).flat(),headers:n}}function ox(e){const t=[];for(const n of e){const i={..._fe(n),...n},r=i.key??(typeof i.value=="string"?i.value:null),s=i.value??r??null,a={...i,key:r,value:s,sortable:i.sortable??(i.key!=null||!!i.sort),children:i.children?ox(i.children):void 0};t.push(a)}return t}function by(e,t){const n=ke([]),i=ke([]),r=ke({}),s=ke({}),a=ke({});Wt(()=>{var y,b,k;const u=(e.headers||Object.keys(e.items[0]??{}).map(w=>({key:w,title:Ar(w)}))).slice(),c=ax(u);(y=t==null?void 0:t.groupBy)!=null&&y.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),(b=t==null?void 0:t.showSelect)!=null&&b.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),(k=t==null?void 0:t.showExpand)!=null&&k.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const f=ox(u);Cfe(f);const h=Math.max(...f.map(w=>yy(w)))+1,m=Tfe(f,h);n.value=m.headers,i.value=m.columns;const g=m.headers.flat(1);for(const w of g)w.key&&(w.sortable&&(w.sort&&(r.value[w.key]=w.sort),w.sortRaw&&(s.value[w.key]=w.sortRaw)),w.filter&&(a.value[w.key]=w.filter))});const o={headers:n,columns:i,sortFunctions:r,sortRawFunctions:s,filterFunctions:a};return kt(rx,o),o}function rh(){const e=Ze(rx);if(!e)throw new Error("Missing headers!");return e}const lx=j({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:je,default:"$sortAsc"},sortDescIcon:{type:je,default:"$sortDesc"},headerProps:{type:Object},...Xa(),...Ff()},"VDataTableHeaders"),za=ae()({name:"VDataTableHeaders",props:lx(),setup(e,t){let{slots:n}=t;const{t:i}=Ht(),{toggleSort:r,sortBy:s,isSorted:a}=ix(),{someSelected:o,allSelected:l,selectAll:u,showSelectAll:c}=th(),{columns:f,headers:h}=rh(),{loaderClasses:m}=Gu(e);function g(A,C){if(!(!e.sticky&&!A.fixed))return{position:"sticky",left:A.fixed?Pe(A.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${C})`:void 0}}function y(A){const C=s.value.find($=>$.key===A.key);return C?C.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:b,backgroundColorStyles:k}=wt(e,"color"),{displayClasses:w,mobile:E}=Yi(e),I=T(()=>({headers:h.value,columns:f.value,toggleSort:r,isSorted:a,sortBy:s.value,someSelected:o.value,allSelected:l.value,selectAll:u,getSortIcon:y})),D=T(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},w.value,m.value]),x=A=>{let{column:C,x:$,y:O}=A;const M=C.key==="data-table-select"||C.key==="data-table-expand",F=fe(e.headerProps??{},C.headerProps??{});return v(Vd,fe({tag:"th",align:C.align,class:[{"v-data-table__th--sortable":C.sortable&&!e.disableSort,"v-data-table__th--sorted":a(C),"v-data-table__th--fixed":C.fixed},...D.value],style:{width:Pe(C.width),minWidth:Pe(C.minWidth),maxWidth:Pe(C.maxWidth),...g(C,O)},colspan:C.colspan,rowspan:C.rowspan,onClick:C.sortable?()=>r(C):void 0,fixed:C.fixed,nowrap:C.nowrap,lastFixed:C.lastFixed,noPadding:M},F),{default:()=>{var le;const z=`header.${C.key}`,re={column:C,selectAll:u,isSorted:a,toggleSort:r,sortBy:s.value,someSelected:o.value,allSelected:l.value,getSortIcon:y};return n[z]?n[z](re):C.key==="data-table-select"?((le=n["header.data-table-select"])==null?void 0:le.call(n,re))??(c.value&&v(es,{modelValue:l.value,indeterminate:o.value&&!l.value,"onUpdate:modelValue":u},null)):v("div",{class:"v-data-table-header__content"},[v("span",null,[C.title]),C.sortable&&!e.disableSort&&v(gt,{key:"icon",class:"v-data-table-header__sort-icon",icon:y(C)},null),e.multiSort&&a(C)&&v("div",{key:"badge",class:["v-data-table-header__sort-badge",...b.value],style:k.value},[s.value.findIndex(ve=>ve.key===C.key)+1])])}})},P=()=>{const A=fe(e.headerProps??{}??{}),C=T(()=>f.value.filter(O=>(O==null?void 0:O.sortable)&&!e.disableSort)),$=T(()=>{if(f.value.find(M=>M.key==="data-table-select")!=null)return l.value?"$checkboxOn":o.value?"$checkboxIndeterminate":"$checkboxOff"});return v(Vd,fe({tag:"th",class:[...D.value],colspan:h.value.length+1},A),{default:()=>[v("div",{class:"v-data-table-header__content"},[v(ly,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:C.value,label:i("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>s.value=[],appendIcon:$.value,"onClick:append":()=>u(!l.value)},{...n,chip:O=>{var M;return v(fl,{onClick:(M=O.item.raw)!=null&&M.sortable?()=>r(O.item.raw):void 0,onMousedown:F=>{F.preventDefault(),F.stopPropagation()}},{default:()=>[O.item.title,v(gt,{class:["v-data-table__td-sort-icon",a(O.item.raw)&&"v-data-table__td-sort-icon-active"],icon:y(O.item.raw),size:"small"},null)]})}})])]})};he(()=>E.value?v("tr",null,[v(P,null,null)]):v(U,null,[n.headers?n.headers(I.value):h.value.map((A,C)=>v("tr",null,[A.map(($,O)=>v(x,{column:$,x:O,y:C},null))])),e.loading&&v("tr",{class:"v-data-table-progress"},[v("th",{colspan:f.value.length},[v(qu,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),Efe=j({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),Ife=ae()({name:"VDataTableGroupHeaderRow",props:Efe(),setup(e,t){let{slots:n}=t;const{isGroupOpen:i,toggleGroup:r,extractRows:s}=GA(),{isSelected:a,isSomeSelected:o,select:l}=th(),{columns:u}=rh(),c=T(()=>s([e.item]));return()=>v("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(f=>{var h,m;if(f.key==="data-table-group"){const g=i(e.item)?"$expand":"$next",y=()=>r(e.item);return((h=n["data-table-group"])==null?void 0:h.call(n,{item:e.item,count:c.value.length,props:{icon:g,onClick:y}}))??v(Vd,{class:"v-data-table-group-header-row__column"},{default:()=>[v(mt,{size:"small",variant:"text",icon:g,onClick:y},null),v("span",null,[e.item.value]),v("span",null,[ge("("),c.value.length,ge(")")])]})}if(f.key==="data-table-select"){const g=a(c.value),y=o(c.value)&&!g,b=k=>l(c.value,k);return((m=n["data-table-select"])==null?void 0:m.call(n,{props:{modelValue:g,indeterminate:y,"onUpdate:modelValue":b}}))??v("td",null,[v(es,{modelValue:g,indeterminate:y,"onUpdate:modelValue":b},null)])}return v("td",null,null)})])}}),Afe=j({index:Number,item:Object,cellProps:[Object,Function],onClick:wn(),onContextmenu:wn(),onDblclick:wn(),...Xa()},"VDataTableRow"),ky=ae()({name:"VDataTableRow",props:Afe(),setup(e,t){let{slots:n}=t;const{displayClasses:i,mobile:r}=Yi(e,"v-data-table__tr"),{isSelected:s,toggleSelect:a,someSelected:o,allSelected:l,selectAll:u}=th(),{isExpanded:c,toggleExpand:f}=HA(),{toggleSort:h,sortBy:m,isSorted:g}=ix(),{columns:y}=rh();he(()=>v("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},i.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&y.value.map((b,k)=>{const w=e.item,E=`item.${b.key}`,I=`header.${b.key}`,D={index:e.index,item:w.raw,internalItem:w,value:La(w.columns,b.key),column:b,isSelected:s,toggleSelect:a,isExpanded:c,toggleExpand:f},x={column:b,selectAll:u,isSorted:g,toggleSort:h,sortBy:m.value,someSelected:o.value,allSelected:l.value,getSortIcon:()=>""},P=typeof e.cellProps=="function"?e.cellProps({index:D.index,item:D.item,internalItem:D.internalItem,value:D.value,column:b}):e.cellProps,A=typeof b.cellProps=="function"?b.cellProps({index:D.index,item:D.item,internalItem:D.internalItem,value:D.value}):b.cellProps;return v(Vd,fe({align:b.align,class:{"v-data-table__td--expanded-row":b.key==="data-table-expand","v-data-table__td--select-row":b.key==="data-table-select"},fixed:b.fixed,fixedOffset:b.fixedOffset,lastFixed:b.lastFixed,maxWidth:r.value?void 0:b.maxWidth,noPadding:b.key==="data-table-select"||b.key==="data-table-expand",nowrap:b.nowrap,width:r.value?void 0:b.width},P,A),{default:()=>{var $,O,M,F,z;if(n[E]&&!r.value)return($=n[E])==null?void 0:$.call(n,D);if(b.key==="data-table-select")return((O=n["item.data-table-select"])==null?void 0:O.call(n,D))??v(es,{disabled:!w.selectable,modelValue:s([w]),onClick:ut(()=>a(w),["stop"])},null);if(b.key==="data-table-expand")return((M=n["item.data-table-expand"])==null?void 0:M.call(n,D))??v(mt,{icon:c(w)?"$collapse":"$expand",size:"small",variant:"text",onClick:ut(()=>f(w),["stop"])},null);const C=p(D.value);return r.value?v(U,null,[v("div",{class:"v-data-table__td-title"},[((F=n[I])==null?void 0:F.call(n,x))??b.title]),v("div",{class:"v-data-table__td-value"},[((z=n[E])==null?void 0:z.call(n,D))??C])]):C}})})]))}}),ux=j({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Xa()},"VDataTableRows"),Ua=ae()({name:"VDataTableRows",inheritAttrs:!1,props:ux(),setup(e,t){let{attrs:n,slots:i}=t;const{columns:r}=rh(),{expandOnClick:s,toggleExpand:a,isExpanded:o}=HA(),{isSelected:l,toggleSelect:u}=th(),{toggleGroup:c,isGroupOpen:f}=GA(),{t:h}=Ht(),{mobile:m}=Yi(e);return he(()=>{var g,y;return e.loading&&(!e.items.length||i.loading)?v("tr",{class:"v-data-table-rows-loading",key:"loading"},[v("td",{colspan:r.value.length},[((g=i.loading)==null?void 0:g.call(i))??h(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?v("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[v("td",{colspan:r.value.length},[((y=i["no-data"])==null?void 0:y.call(i))??h(e.noDataText)])]):v(U,null,[e.items.map((b,k)=>{var I;if(b.type==="group"){const D={index:k,item:b,columns:r.value,isExpanded:o,toggleExpand:a,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:f};return i["group-header"]?i["group-header"](D):v(Ife,fe({key:`group-header_${b.id}`,item:b},q1(n,":group-header",()=>D)),i)}const w={index:k,item:b.raw,internalItem:b,columns:r.value,isExpanded:o,toggleExpand:a,isSelected:l,toggleSelect:u},E={...w,props:fe({key:`item_${b.key??b.index}`,onClick:s.value?()=>{a(b)}:void 0,index:k,item:b,cellProps:e.cellProps,mobile:m.value},q1(n,":row",()=>w),typeof e.rowProps=="function"?e.rowProps({item:w.item,index:w.index,internalItem:w.internalItem}):e.rowProps)};return v(U,{key:E.props.key},[i.item?i.item(E):v(ky,E.props,i),o(b)&&((I=i["expanded-row"])==null?void 0:I.call(i,w))])})])}),{}}}),cx=j({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Ve(),...mn(),...Xe(),...ot()},"VTable"),Wa=ae()({name:"VTable",props:cx(),setup(e,t){let{slots:n,emit:i}=t;const{themeClasses:r}=pt(e),{densityClasses:s}=Yn(e);return he(()=>v(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},r.value,s.value,e.class],style:e.style},{default:()=>{var a,o,l;return[(a=n.top)==null?void 0:a.call(n),n.default?v("div",{class:"v-table__wrapper",style:{height:Pe(e.height)}},[v("table",null,[n.default()])]):(o=n.wrapper)==null?void 0:o.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),xfe=j({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Dfe(e,t,n,i){const r=e.returnObject?t:nn(t,e.itemValue),s=nn(t,e.itemSelectable,!0),a=i.reduce((o,l)=>(l.key!=null&&(o[l.key]=nn(t,l.value)),o),{});return{type:"item",key:e.returnObject?nn(t,e.itemValue):r,index:n,value:r,selectable:s,columns:a,raw:t}}function Pfe(e,t,n){return t.map((i,r)=>Dfe(e,i,r,n))}function wy(e,t){return{items:T(()=>Pfe(e,e.items,t.value))}}const Sy=j({...ux(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...UA(),...dy(),...kfe(),...xfe(),...QA(),...tx(),...lx(),...cx()},"DataTable"),Ofe=j({...hy(),...Sy(),...ec(),...vy()},"VDataTable"),Mfe=ae()({name:"VDataTable",props:Ofe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=fy(e),{sortBy:s,multiSort:a,mustSort:o}=nh(e),{page:l,itemsPerPage:u}=my(e),{disableSort:c}=Ha(e),{columns:f,headers:h,sortFunctions:m,sortRawFunctions:g,filterFunctions:y}=by(e,{groupBy:r,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:b}=wy(e,f),k=se(e,"search"),{filteredItems:w}=tc(e,b,k,{transform:q=>q.columns,customKeyFilter:y}),{toggleSort:E}=ih({sortBy:s,multiSort:a,mustSort:o,page:l}),{sortByWithGroups:I,opened:D,extractRows:x,isGroupOpen:P,toggleGroup:A}=Xf({groupBy:r,sortBy:s,disableSort:c}),{sortedItems:C}=py(e,w,I,{transform:q=>({...q.raw,...q.columns}),sortFunctions:m,sortRawFunctions:g}),{flatItems:$}=Zf(C,r,D),O=T(()=>$.value.length),{startIndex:M,stopIndex:F,pageCount:z,setItemsPerPage:re}=gy({page:l,itemsPerPage:u,itemsLength:O}),{paginatedItems:le}=JA({items:$,startIndex:M,stopIndex:F,itemsPerPage:u}),ve=T(()=>x(le.value)),{isSelected:ye,select:Z,selectAll:J,toggleSelect:K,someSelected:me,allSelected:xe}=eh(e,{allItems:b,currentPage:ve}),{isExpanded:Me,toggleExpand:$e}=Jf(e);Qf({page:l,itemsPerPage:u,sortBy:s,groupBy:r,search:k}),Rt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const oe=T(()=>({page:l.value,itemsPerPage:u.value,sortBy:s.value,pageCount:z.value,toggleSort:E,setItemsPerPage:re,someSelected:me.value,allSelected:xe.value,isSelected:ye,select:Z,selectAll:J,toggleSelect:K,isExpanded:Me,toggleExpand:$e,isGroupOpen:P,toggleGroup:A,items:ve.value.map(q=>q.raw),internalItems:ve.value,groupedItems:le.value,columns:f.value,headers:h.value}));return he(()=>{const q=Du.filterProps(e),de=za.filterProps(e),Se=Ua.filterProps(e),_e=Wa.filterProps(e);return v(Wa,fe({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},_e),{top:()=>{var pe;return(pe=i.top)==null?void 0:pe.call(i,oe.value)},default:()=>{var pe,N,V,B,Y,Q;return i.default?i.default(oe.value):v(U,null,[(pe=i.colgroup)==null?void 0:pe.call(i,oe.value),!e.hideDefaultHeader&&v("thead",{key:"thead"},[v(za,de,i)]),(N=i.thead)==null?void 0:N.call(i,oe.value),!e.hideDefaultBody&&v("tbody",null,[(V=i["body.prepend"])==null?void 0:V.call(i,oe.value),i.body?i.body(oe.value):v(Ua,fe(n,Se,{items:le.value}),i),(B=i["body.append"])==null?void 0:B.call(i,oe.value)]),(Y=i.tbody)==null?void 0:Y.call(i,oe.value),(Q=i.tfoot)==null?void 0:Q.call(i,oe.value)])},bottom:()=>i.bottom?i.bottom(oe.value):!e.hideDefaultFooter&&v(U,null,[v(Xu,null,null),v(Du,q,{prepend:i["footer.prepend"]})])})}),{}}}),$fe=j({...Sy(),...dy(),..._A(),...ec()},"VDataTableVirtual"),Vfe=ae()({name:"VDataTableVirtual",props:$fe(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=fy(e),{sortBy:s,multiSort:a,mustSort:o}=nh(e),{disableSort:l}=Ha(e),{columns:u,headers:c,filterFunctions:f,sortFunctions:h,sortRawFunctions:m}=by(e,{groupBy:r,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:g}=wy(e,u),y=se(e,"search"),{filteredItems:b}=tc(e,g,y,{transform:de=>de.columns,customKeyFilter:f}),{toggleSort:k}=ih({sortBy:s,multiSort:a,mustSort:o}),{sortByWithGroups:w,opened:E,extractRows:I,isGroupOpen:D,toggleGroup:x}=Xf({groupBy:r,sortBy:s,disableSort:l}),{sortedItems:P}=py(e,b,w,{transform:de=>({...de.raw,...de.columns}),sortFunctions:h,sortRawFunctions:m}),{flatItems:A}=Zf(P,r,E),C=T(()=>I(A.value)),{isSelected:$,select:O,selectAll:M,toggleSelect:F,someSelected:z,allSelected:re}=eh(e,{allItems:C,currentPage:C}),{isExpanded:le,toggleExpand:ve}=Jf(e),{containerRef:ye,markerRef:Z,paddingTop:J,paddingBottom:K,computedItems:me,handleItemResize:xe,handleScroll:Me,handleScrollend:$e}=CA(e,A),oe=T(()=>me.value.map(de=>de.raw));Qf({sortBy:s,page:Ae(1),itemsPerPage:Ae(-1),groupBy:r,search:y}),Rt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const q=T(()=>({sortBy:s.value,toggleSort:k,someSelected:z.value,allSelected:re.value,isSelected:$,select:O,selectAll:M,toggleSelect:F,isExpanded:le,toggleExpand:ve,isGroupOpen:D,toggleGroup:x,items:C.value.map(de=>de.raw),internalItems:C.value,groupedItems:A.value,columns:u.value,headers:c.value}));he(()=>{const de=za.filterProps(e),Se=Ua.filterProps(e),_e=Wa.filterProps(e);return v(Wa,fe({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},_e),{top:()=>{var pe;return(pe=i.top)==null?void 0:pe.call(i,q.value)},wrapper:()=>{var pe,N,V;return v("div",{ref:ye,onScrollPassive:Me,onScrollend:$e,class:"v-table__wrapper",style:{height:Pe(e.height)}},[v("table",null,[(pe=i.colgroup)==null?void 0:pe.call(i,q.value),!e.hideDefaultHeader&&v("thead",{key:"thead"},[v(za,fe(de,{sticky:e.fixedHeader}),i)]),!e.hideDefaultBody&&v("tbody",null,[v("tr",{ref:Z,style:{height:Pe(J.value),border:0}},[v("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),(N=i["body.prepend"])==null?void 0:N.call(i,q.value),v(Ua,fe(n,Se,{items:oe.value}),{...i,item:B=>v(SA,{key:B.internalItem.index,renderless:!0,"onUpdate:height":Y=>xe(B.internalItem.index,Y)},{default:Y=>{var ee;let{itemRef:Q}=Y;return((ee=i.item)==null?void 0:ee.call(i,{...B,itemRef:Q}))??v(ky,fe(B.props,{ref:Q,key:B.internalItem.index,index:B.internalItem.index}),i)}})}),(V=i["body.append"])==null?void 0:V.call(i,q.value),v("tr",{style:{height:Pe(K.value),border:0}},[v("td",{colspan:u.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var pe;return(pe=i.bottom)==null?void 0:pe.call(i,q.value)}})})}}),Lfe=j({itemsLength:{type:[Number,String],required:!0},...hy(),...Sy(),...vy()},"VDataTableServer"),Nfe=ae()({name:"VDataTableServer",props:Lfe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=fy(e),{sortBy:s,multiSort:a,mustSort:o}=nh(e),{page:l,itemsPerPage:u}=my(e),{disableSort:c}=Ha(e),f=T(()=>parseInt(e.itemsLength,10)),{columns:h,headers:m}=by(e,{groupBy:r,showSelect:se(e,"showSelect"),showExpand:se(e,"showExpand")}),{items:g}=wy(e,h),{toggleSort:y}=ih({sortBy:s,multiSort:a,mustSort:o,page:l}),{opened:b,isGroupOpen:k,toggleGroup:w,extractRows:E}=Xf({groupBy:r,sortBy:s,disableSort:c}),{pageCount:I,setItemsPerPage:D}=gy({page:l,itemsPerPage:u,itemsLength:f}),{flatItems:x}=Zf(g,r,b),{isSelected:P,select:A,selectAll:C,toggleSelect:$,someSelected:O,allSelected:M}=eh(e,{allItems:g,currentPage:g}),{isExpanded:F,toggleExpand:z}=Jf(e),re=T(()=>E(g.value));Qf({page:l,itemsPerPage:u,sortBy:s,groupBy:r,search:se(e,"search")}),kt("v-data-table",{toggleSort:y,sortBy:s}),Rt({VDataTableRows:{hideNoData:se(e,"hideNoData"),noDataText:se(e,"noDataText"),loading:se(e,"loading"),loadingText:se(e,"loadingText")}});const le=T(()=>({page:l.value,itemsPerPage:u.value,sortBy:s.value,pageCount:I.value,toggleSort:y,setItemsPerPage:D,someSelected:O.value,allSelected:M.value,isSelected:P,select:A,selectAll:C,toggleSelect:$,isExpanded:F,toggleExpand:z,isGroupOpen:k,toggleGroup:w,items:re.value.map(ve=>ve.raw),internalItems:re.value,groupedItems:x.value,columns:h.value,headers:m.value}));he(()=>{const ve=Du.filterProps(e),ye=za.filterProps(e),Z=Ua.filterProps(e),J=Wa.filterProps(e);return v(Wa,fe({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},J),{top:()=>{var K;return(K=i.top)==null?void 0:K.call(i,le.value)},default:()=>{var K,me,xe,Me,$e,oe;return i.default?i.default(le.value):v(U,null,[(K=i.colgroup)==null?void 0:K.call(i,le.value),!e.hideDefaultHeader&&v("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[v(za,fe(ye,{sticky:e.fixedHeader}),i)]),(me=i.thead)==null?void 0:me.call(i,le.value),!e.hideDefaultBody&&v("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(xe=i["body.prepend"])==null?void 0:xe.call(i,le.value),i.body?i.body(le.value):v(Ua,fe(n,Z,{items:x.value}),i),(Me=i["body.append"])==null?void 0:Me.call(i,le.value)]),($e=i.tbody)==null?void 0:$e.call(i,le.value),(oe=i.tfoot)==null?void 0:oe.call(i,le.value)])},bottom:()=>i.bottom?i.bottom(le.value):!e.hideDefaultFooter&&v(U,null,[v(Xu,null,null),v(Du,ve,{prepend:i["footer.prepend"]})])})})}}),Rfe=j({fluid:{type:Boolean,default:!1},...Ve(),...Qt(),...Xe()},"VContainer"),Ffe=ae()({name:"VContainer",props:Rfe(),setup(e,t){let{slots:n}=t;const{rtlClasses:i}=on(),{dimensionStyles:r}=en(e);return he(()=>v(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},i.value,e.class],style:[r.value,e.style]},n)),{}}}),dx=Mf.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),fx=Mf.reduce((e,t)=>{const n="offset"+Ar(t);return e[n]={type:[String,Number],default:null},e},{}),hx=Mf.reduce((e,t)=>{const n="order"+Ar(t);return e[n]={type:[String,Number],default:null},e},{}),yS={col:Object.keys(dx),offset:Object.keys(fx),order:Object.keys(hx)};function Bfe(e,t,n){let i=e;if(!(n==null||n===!1)){if(t){const r=t.replace(e,"");i+=`-${r}`}return e==="col"&&(i="v-"+i),e==="col"&&(n===""||n===!0)||(i+=`-${n}`),i.toLowerCase()}}const zfe=["auto","start","end","center","baseline","stretch"],Ufe=j({cols:{type:[Boolean,String,Number],default:!1},...dx,offset:{type:[String,Number],default:null},...fx,order:{type:[String,Number],default:null},...hx,alignSelf:{type:String,default:null,validator:e=>zfe.includes(e)},...Ve(),...Xe()},"VCol"),Wfe=ae()({name:"VCol",props:Ufe(),setup(e,t){let{slots:n}=t;const i=T(()=>{const r=[];let s;for(s in yS)yS[s].forEach(o=>{const l=e[o],u=Bfe(s,o,l);u&&r.push(u)});const a=r.some(o=>o.startsWith("v-col-"));return r.push({"v-col":!a||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),r});return()=>{var r;return pi(e.tag,{class:[i.value,e.class],style:e.style},(r=n.default)==null?void 0:r.call(n))}}}),_y=["start","end","center"],mx=["space-between","space-around","space-evenly"];function Cy(e,t){return Mf.reduce((n,i)=>{const r=e+Ar(i);return n[r]=t(),n},{})}const Hfe=[..._y,"baseline","stretch"],gx=e=>Hfe.includes(e),px=Cy("align",()=>({type:String,default:null,validator:gx})),jfe=[..._y,...mx],vx=e=>jfe.includes(e),yx=Cy("justify",()=>({type:String,default:null,validator:vx})),Gfe=[..._y,...mx,"stretch"],bx=e=>Gfe.includes(e),kx=Cy("alignContent",()=>({type:String,default:null,validator:bx})),bS={align:Object.keys(px),justify:Object.keys(yx),alignContent:Object.keys(kx)},qfe={align:"align",justify:"justify",alignContent:"align-content"};function Kfe(e,t,n){let i=qfe[e];if(n!=null){if(t){const r=t.replace(e,"");i+=`-${r}`}return i+=`-${n}`,i.toLowerCase()}}const Yfe=j({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:gx},...px,justify:{type:String,default:null,validator:vx},...yx,alignContent:{type:String,default:null,validator:bx},...kx,...Ve(),...Xe()},"VRow"),Jfe=ae()({name:"VRow",props:Yfe(),setup(e,t){let{slots:n}=t;const i=T(()=>{const r=[];let s;for(s in bS)bS[s].forEach(a=>{const o=e[a],l=Kfe(s,a,o);l&&r.push(l)});return r.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),r});return()=>{var r;return pi(e.tag,{class:["v-row",i.value,e.class],style:e.style},(r=n.default)==null?void 0:r.call(n))}}}),wx=Or("v-spacer","div","VSpacer"),Sx=j({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:je,default:"$next"},prevIcon:{type:je,default:"$prev"},modeIcon:{type:je,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),Zg=ae()({name:"VDatePickerControls",props:Sx(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const i=T(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),r=T(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),s=T(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),a=T(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function o(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return he(()=>v("div",{class:["v-date-picker-controls"]},[v(mt,{class:"v-date-picker-controls__month-btn",disabled:i.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),v(mt,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:r.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),v(wx,{key:"mode-spacer"},null),v("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[v(mt,{disabled:s.value,icon:e.prevIcon,variant:"text",onClick:o},null),v(mt,{disabled:a.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}}),Xfe=j({appendIcon:String,color:String,header:String,transition:String,onClick:wn()},"VDatePickerHeader"),Qg=ae()({name:"VDatePickerHeader",props:Xfe(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:i}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=wt(e,"color");function a(){n("click")}function o(){n("click:append")}return he(()=>{const l=!!(i.default||e.header),u=!!(i.append||e.appendIcon);return v("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},r.value],style:s.value,onClick:a},[i.prepend&&v("div",{key:"prepend",class:"v-date-picker-header__prepend"},[i.prepend()]),l&&v(Gn,{key:"content",name:e.transition},{default:()=>{var c;return[v("div",{key:e.header,class:"v-date-picker-header__content"},[((c=i.default)==null?void 0:c.call(i))??e.header])]}}),u&&v("div",{class:"v-date-picker-header__append"},[i.append?v(tt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=i.append)==null?void 0:c.call(i)]}}):v(mt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:o},null)])])}),{}}}),Zfe=j({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:[Number,String]},"calendar");function Qfe(e){const t=Hu(),n=Be(e,"modelValue",[],m=>Mt(m)),i=T(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),r=Be(e,"year",void 0,m=>{const g=m!=null?Number(m):t.getYear(i.value);return t.startOfYear(t.setYear(t.date(),g))},m=>t.getYear(m)),s=Be(e,"month",void 0,m=>{const g=m!=null?Number(m):t.getMonth(i.value),y=t.setYear(t.startOfMonth(t.date()),t.getYear(r.value));return t.setMonth(y,g)},m=>t.getMonth(m)),a=T(()=>{const m=Number(e.firstDayOfWeek??0);return e.weekdays.map(g=>(g+m)%7)}),o=T(()=>{const m=t.getWeekArray(s.value,e.firstDayOfWeek),g=m.flat(),y=6*7;if(e.weeksInMonth==="static"&&g.length<y){const b=g[g.length-1];let k=[];for(let w=1;w<=y-g.length;w++)k.push(t.addDays(b,w)),w%7===0&&(m.push(k),k=[])}return m});function l(m,g){return m.filter(y=>a.value.includes(t.toJsDate(y).getDay())).map((y,b)=>{const k=t.toISO(y),w=!t.isSameMonth(y,s.value),E=t.isSameDay(y,t.startOfMonth(s.value)),I=t.isSameDay(y,t.endOfMonth(s.value)),D=t.isSameDay(y,s.value);return{date:y,isoDate:k,formatted:t.format(y,"keyboardDate"),year:t.getYear(y),month:t.getMonth(y),isDisabled:h(y),isWeekStart:b%7===0,isWeekEnd:b%7===6,isToday:t.isSameDay(y,g),isAdjacent:w,isHidden:w&&!e.showAdjacentMonths,isStart:E,isSelected:n.value.some(x=>t.isSameDay(y,x)),isEnd:I,isSame:D,localized:t.format(y,"dayOfMonth")}})}const u=T(()=>{const m=t.startOfWeek(i.value,e.firstDayOfWeek),g=[];for(let b=0;b<=6;b++)g.push(t.addDays(m,b));const y=t.date();return l(g,y)}),c=T(()=>{const m=o.value.flat(),g=t.date();return l(m,g)}),f=T(()=>o.value.map(m=>m.length?ole(t,m[0]):null));function h(m){if(e.disabled)return!0;const g=t.date(m);return e.min&&t.isAfter(t.date(e.min),g)||e.max&&t.isAfter(g,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(y=>t.isSameDay(t.date(y),g)):typeof e.allowedDates=="function"?!e.allowedDates(g):!1}return{displayValue:i,daysInMonth:c,daysInWeek:u,genDays:l,model:n,weeksInMonth:o,weekDays:a,weekNumbers:f}}const _x=j({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...Zfe()},"VDatePickerMonth"),ep=ae()({name:"VDatePickerMonth",props:_x(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=ke(),{daysInMonth:s,model:a,weekNumbers:o}=Qfe(e),l=Hu(),u=Ae(),c=Ae(),f=Ae(!1),h=T(()=>f.value?e.reverseTransition:e.transition);e.multiple==="range"&&a.value.length>0&&(u.value=a.value[0],a.value.length>1&&(c.value=a.value[a.value.length-1]));const m=T(()=>{const k=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return a.value.length>=k});Ie(s,(k,w)=>{w&&(f.value=l.isBefore(k[0].date,w[0].date))});function g(k){const w=l.startOfDay(k);if(a.value.length===0?u.value=void 0:a.value.length===1&&(u.value=a.value[0],c.value=void 0),!u.value)u.value=w,a.value=[u.value];else if(c.value)u.value=k,c.value=void 0,a.value=[u.value];else{if(l.isSameDay(w,u.value)){u.value=void 0,a.value=[];return}else l.isBefore(w,u.value)?(c.value=l.endOfDay(u.value),u.value=w):c.value=l.endOfDay(w);const E=l.getDiff(c.value,u.value,"days"),I=[u.value];for(let D=1;D<E;D++){const x=l.addDays(u.value,D);I.push(x)}I.push(c.value),a.value=I}}function y(k){const w=a.value.findIndex(E=>l.isSameDay(E,k));if(w===-1)a.value=[...a.value,k];else{const E=[...a.value];E.splice(w,1),a.value=E}}function b(k){e.multiple==="range"?g(k):e.multiple?y(k):a.value=[k]}return()=>v("div",{class:"v-date-picker-month"},[e.showWeek&&v("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&v("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[ge(" ")]),o.value.map(k=>v("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[k]))]),v(Gn,{name:h.value},{default:()=>{var k;return[v("div",{ref:r,key:(k=s.value[0].date)==null?void 0:k.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays(e.firstDayOfWeek).map(w=>v("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[w])),s.value.map((w,E)=>{const I={props:{onClick:()=>b(w.date)},item:w,i:E};return m.value&&!w.isSelected&&(w.isDisabled=!0),v("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":w.isAdjacent,"v-date-picker-month__day--hide-adjacent":w.isHidden,"v-date-picker-month__day--selected":w.isSelected,"v-date-picker-month__day--week-end":w.isWeekEnd,"v-date-picker-month__day--week-start":w.isWeekStart}],"data-v-date":w.isDisabled?void 0:w.isoDate},[(e.showAdjacentMonths||!w.isAdjacent)&&v(tt,{defaults:{VBtn:{class:"v-date-picker-month__day-btn",color:(w.isSelected||w.isToday)&&!w.isDisabled?e.color:void 0,disabled:w.isDisabled,icon:!0,ripple:!1,text:w.localized,variant:w.isDisabled?w.isToday?"outlined":"text":w.isToday&&!w.isSelected?"outlined":"flat",onClick:()=>b(w.date)}}},{default:()=>{var D;return[((D=i.day)==null?void 0:D.call(i,I))??v(mt,I.props,null)]}})])})])]}})])}}),Cx=j({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number},"VDatePickerMonths"),tp=ae()({name:"VDatePickerMonths",props:Cx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Hu(),s=Be(e,"modelValue"),a=T(()=>{let o=r.startOfYear(r.date());return e.year&&(o=r.setYear(o,e.year)),kr(12).map(l=>{const u=r.format(o,"monthShort"),c=!!(e.min&&r.isAfter(r.startOfMonth(r.date(e.min)),o)||e.max&&r.isAfter(o,r.startOfMonth(r.date(e.max))));return o=r.getNextMonth(o),{isDisabled:c,text:u,value:l}})});return Wt(()=>{s.value=s.value??r.getMonth(r.date())}),he(()=>v("div",{class:"v-date-picker-months",style:{height:Pe(e.height)}},[v("div",{class:"v-date-picker-months__content"},[a.value.map((o,l)=>{var f;const u={active:s.value===l,color:s.value===l?e.color:void 0,disabled:o.isDisabled,rounded:!0,text:o.text,variant:s.value===o.value?"flat":"text",onClick:()=>c(l)};function c(h){if(s.value===h){n("update:modelValue",s.value);return}s.value=h}return((f=i.month)==null?void 0:f.call(i,{month:o,i:l,props:u}))??v(mt,fe({key:"month"},u),null)})])])),{}}}),Tx=j({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),np=ae()({name:"VDatePickerYears",props:Tx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Hu(),s=Be(e,"modelValue"),a=T(()=>{const l=r.getYear(r.date());let u=l-100,c=l+52;e.min&&(u=r.getYear(r.date(e.min))),e.max&&(c=r.getYear(r.date(e.max)));let f=r.startOfYear(r.date());return f=r.setYear(f,u),kr(c-u+1,u).map(h=>{const m=r.format(f,"year");return f=r.setYear(f,r.getYear(f)+1),{text:m,value:h}})});Wt(()=>{s.value=s.value??r.getYear(r.date())});const o=Ad();return En(async()=>{var l;await ct(),(l=o.el)==null||l.scrollIntoView({block:"center"})}),he(()=>v("div",{class:"v-date-picker-years",style:{height:Pe(e.height)}},[v("div",{class:"v-date-picker-years__content"},[a.value.map((l,u)=>{var f;const c={ref:s.value===l.value?o:void 0,active:s.value===l.value,color:s.value===l.value?e.color:void 0,rounded:!0,text:l.text,variant:s.value===l.value?"flat":"text",onClick:()=>{if(s.value===l.value){n("update:modelValue",s.value);return}s.value=l.value}};return((f=i.year)==null?void 0:f.call(i,{year:l,i:u,props:c}))??v(mt,fe({key:"month"},c),null)})])])),{}}}),ehe=Or("v-picker-title"),Ex=j({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...Yf()},"VPicker"),kS=ae()({name:"VPicker",props:Ex(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=wt(se(e,"color"));return he(()=>{const s=Ba.filterProps(e),a=!!(e.title||n.title);return v(Ba,fe(s,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var o;return[!e.hideHeader&&v("div",{key:"header",class:[i.value],style:[r.value]},[a&&v(ehe,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&v("div",{class:"v-picker__header"},[n.header()])]),v("div",{class:"v-picker__body"},[(o=n.default)==null?void 0:o.call(n)]),n.actions&&v(tt,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[v("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),the=j({header:{type:String,default:"$vuetify.datePicker.header"},...Sx(),..._x({weeksInMonth:"static"}),...Zt(Cx(),["modelValue"]),...Zt(Tx(),["modelValue"]),...Ex({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),nhe=ae()({name:"VDatePicker",props:the(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Hu(),{t:s}=Ht(),a=Be(e,"modelValue",void 0,C=>Mt(C),C=>e.multiple?C:C[0]),o=Be(e,"viewMode"),l=T(()=>{var $;const C=r.date(($=a.value)==null?void 0:$[0]);return C&&r.isValid(C)?C:r.date()}),u=ke(Number(e.month??r.getMonth(r.startOfMonth(l.value)))),c=ke(Number(e.year??r.getYear(r.startOfYear(r.setMonth(l.value,u.value))))),f=Ae(!1),h=T(()=>e.multiple&&a.value.length>1?s("$vuetify.datePicker.itemsSelected",a.value.length):a.value[0]&&r.isValid(a.value[0])?r.format(r.date(a.value[0]),"normalDateWithWeekday"):s(e.header)),m=T(()=>{let C=r.date();return C=r.setDate(C,1),C=r.setMonth(C,u.value),C=r.setYear(C,c.value),r.format(C,"monthAndYear")}),g=T(()=>`date-picker-header${f.value?"-reverse":""}-transition`),y=T(()=>{const C=r.date(e.min);return e.min&&r.isValid(C)?C:null}),b=T(()=>{const C=r.date(e.max);return e.max&&r.isValid(C)?C:null}),k=T(()=>{if(e.disabled)return!0;const C=[];if(o.value!=="month")C.push("prev","next");else{let $=r.date();if($=r.setYear($,c.value),$=r.setMonth($,u.value),y.value){const O=r.addDays(r.startOfMonth($),-1);r.isAfter(y.value,O)&&C.push("prev")}if(b.value){const O=r.addDays(r.endOfMonth($),1);r.isAfter(O,b.value)&&C.push("next")}}return C});function w(){u.value<11?u.value++:(c.value++,u.value=0,A(c.value)),P(u.value)}function E(){u.value>0?u.value--:(c.value--,u.value=11,A(c.value)),P(u.value)}function I(){o.value="month"}function D(){o.value=o.value==="months"?"month":"months"}function x(){o.value=o.value==="year"?"month":"year"}function P(C){o.value==="months"&&D(),n("update:month",C)}function A(C){o.value==="year"&&x(),n("update:year",C)}return Ie(a,(C,$)=>{const O=Mt($),M=Mt(C);if(!M.length)return;const F=r.date(O[O.length-1]),z=r.date(M[M.length-1]),re=r.getMonth(z),le=r.getYear(z);re!==u.value&&(u.value=re,P(u.value)),le!==c.value&&(c.value=le,A(c.value)),f.value=r.isBefore(F,z)}),he(()=>{const C=kS.filterProps(e),$=Zg.filterProps(e),O=Qg.filterProps(e),M=ep.filterProps(e),F=Zt(tp.filterProps(e),["modelValue"]),z=Zt(np.filterProps(e),["modelValue"]),re={header:h.value,transition:g.value};return v(kS,fe(C,{class:["v-date-picker",`v-date-picker--${o.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var le;return((le=i.title)==null?void 0:le.call(i))??v("div",{class:"v-date-picker__title"},[s(e.title)])},header:()=>i.header?v(tt,{defaults:{VDatePickerHeader:{...re}}},{default:()=>{var le;return[(le=i.header)==null?void 0:le.call(i,re)]}}):v(Qg,fe({key:"header"},O,re,{onClick:o.value!=="month"?I:void 0}),{...i,default:void 0}),default:()=>v(U,null,[v(Zg,fe($,{disabled:k.value,text:m.value,"onClick:next":w,"onClick:prev":E,"onClick:month":D,"onClick:year":x}),null),v(Cu,{hideOnLeave:!0},{default:()=>[o.value==="months"?v(tp,fe({key:"date-picker-months"},F,{modelValue:u.value,"onUpdate:modelValue":[le=>u.value=le,P],min:y.value,max:b.value,year:c.value}),null):o.value==="year"?v(np,fe({key:"date-picker-years"},z,{modelValue:c.value,"onUpdate:modelValue":[le=>c.value=le,A],min:y.value,max:b.value}),null):v(ep,fe({key:"date-picker-month"},M,{modelValue:a.value,"onUpdate:modelValue":le=>a.value=le,month:u.value,"onUpdate:month":[le=>u.value=le,P],year:c.value,"onUpdate:year":[le=>c.value=le,A],min:y.value,max:b.value}),null)]})]),actions:i.actions})}),{}}}),ihe=j({actionText:String,bgColor:String,color:String,icon:je,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...Ve(),...Qt(),...Mr({size:void 0}),...ot()},"VEmptyState"),rhe=ae()({name:"VEmptyState",props:ihe(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{themeClasses:r}=pt(e),{backgroundColorClasses:s,backgroundColorStyles:a}=wt(se(e,"bgColor")),{dimensionStyles:o}=en(e),{displayClasses:l}=Yi();function u(c){n("click:action",c)}return he(()=>{var b,k,w;const c=!!(i.actions||e.actionText),f=!!(i.headline||e.headline),h=!!(i.title||e.title),m=!!(i.text||e.text),g=!!(i.media||e.image||e.icon),y=e.size||(e.image?200:96);return v("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},r.value,s.value,l.value,e.class],style:[a.value,o.value,e.style]},[g&&v("div",{key:"media",class:"v-empty-state__media"},[i.media?v(tt,{key:"media-defaults",defaults:{VImg:{src:e.image,height:y},VIcon:{size:y,icon:e.icon}}},{default:()=>[i.media()]}):v(U,null,[e.image?v(Qr,{key:"image",src:e.image,height:y},null):e.icon?v(gt,{key:"icon",color:e.color,size:y,icon:e.icon},null):void 0])]),f&&v("div",{key:"headline",class:"v-empty-state__headline"},[((b=i.headline)==null?void 0:b.call(i))??e.headline]),h&&v("div",{key:"title",class:"v-empty-state__title"},[((k=i.title)==null?void 0:k.call(i))??e.title]),m&&v("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:Pe(e.textWidth)}},[((w=i.text)==null?void 0:w.call(i))??e.text]),i.default&&v("div",{key:"content",class:"v-empty-state__content"},[i.default()]),c&&v("div",{key:"actions",class:"v-empty-state__actions"},[v(tt,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",text:e.actionText}}},{default:()=>{var E;return[((E=i.actions)==null?void 0:E.call(i,{props:{onClick:u}}))??v(mt,{onClick:u},null)]}})])])}),{}}}),Pu=Symbol.for("vuetify:v-expansion-panel"),Ix=j({...Ve(),...iy()},"VExpansionPanelText"),ip=ae()({name:"VExpansionPanelText",props:Ix(),setup(e,t){let{slots:n}=t;const i=Ze(Pu);if(!i)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:r,onAfterLeave:s}=ry(e,i.isSelected);return he(()=>v(Lf,{onAfterLeave:s},{default:()=>{var a;return[ie(v("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&r.value&&v("div",{class:"v-expansion-panel-text__wrapper"},[(a=n.default)==null?void 0:a.call(n)])]),[[vn,i.isSelected.value]])]}})),{}}}),Ax=j({color:String,expandIcon:{type:je,default:"$expand"},collapseIcon:{type:je,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Ve(),...Qt()},"VExpansionPanelTitle"),rp=ae()({name:"VExpansionPanelTitle",directives:{Ripple:ss},props:Ax(),setup(e,t){let{slots:n}=t;const i=Ze(Pu);if(!i)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:r,backgroundColorStyles:s}=wt(e,"color"),{dimensionStyles:a}=en(e),o=T(()=>({collapseIcon:e.collapseIcon,disabled:i.disabled.value,expanded:i.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=T(()=>i.isSelected.value?e.collapseIcon:e.expandIcon);return he(()=>{var u;return ie(v("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":i.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},r.value,e.class],style:[s.value,a.value,e.style],type:"button",tabindex:i.disabled.value?-1:void 0,disabled:i.disabled.value,"aria-expanded":i.isSelected.value,onClick:e.readonly?void 0:i.toggle},[v("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,o.value),!e.hideActions&&v(tt,{defaults:{VIcon:{icon:l.value}}},{default:()=>{var c;return[v("span",{class:"v-expansion-panel-title__icon"},[((c=n.actions)==null?void 0:c.call(n,o.value))??v(gt,null,null)])]}})]),[[Ai("ripple"),e.ripple]])}),{}}}),xx=j({title:String,text:String,bgColor:String,...ln(),...io(),...Pt(),...Xe(),...Ax(),...Ix()},"VExpansionPanel"),she=ae()({name:"VExpansionPanel",props:xx(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=ro(e,Pu),{backgroundColorClasses:r,backgroundColorStyles:s}=wt(e,"bgColor"),{elevationClasses:a}=An(e),{roundedClasses:o}=Bt(e),l=T(()=>(i==null?void 0:i.disabled.value)||e.disabled),u=T(()=>i.group.items.value.reduce((h,m,g)=>(i.group.selected.value.includes(m.id)&&h.push(g),h),[])),c=T(()=>{const h=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&u.value.some(m=>m-h===1)}),f=T(()=>{const h=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&u.value.some(m=>m-h===-1)});return kt(Pu,i),he(()=>{const h=!!(n.text||e.text),m=!!(n.title||e.title),g=rp.filterProps(e),y=ip.filterProps(e);return v(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":i.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":l.value},o.value,r.value,e.class],style:[s.value,e.style]},{default:()=>[v("div",{class:["v-expansion-panel__shadow",...a.value]},null),v(tt,{defaults:{VExpansionPanelTitle:{...g},VExpansionPanelText:{...y}}},{default:()=>{var b;return[m&&v(rp,{key:"title"},{default:()=>[n.title?n.title():e.title]}),h&&v(ip,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(b=n.default)==null?void 0:b.call(n)]}})]})}),{groupItem:i}}}),ahe=["default","accordion","inset","popout"],ohe=j({flat:Boolean,...no(),...Ov(xx(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...ot(),...Ve(),...Xe(),variant:{type:String,default:"default",validator:e=>ahe.includes(e)}},"VExpansionPanels"),lhe=ae()({name:"VExpansionPanels",props:ohe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:i,prev:r}=Zs(e,Pu),{themeClasses:s}=pt(e),a=T(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Rt({VExpansionPanel:{bgColor:se(e,"bgColor"),collapseIcon:se(e,"collapseIcon"),color:se(e,"color"),eager:se(e,"eager"),elevation:se(e,"elevation"),expandIcon:se(e,"expandIcon"),focusable:se(e,"focusable"),hideActions:se(e,"hideActions"),readonly:se(e,"readonly"),ripple:se(e,"ripple"),rounded:se(e,"rounded"),static:se(e,"static")}}),he(()=>v(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},s.value,a.value,e.class],style:e.style},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n,{prev:r,next:i})]}})),{next:i,prev:r}}}),uhe=j({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...Zt(Bf({active:!0}),["location"]),...Za(),...rs(),...cr({transition:"fab-transition"})},"VFab"),che=ae()({name:"VFab",props:uhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),r=Ae(56),s=ke(),{resizeRef:a}=sr(f=>{f.length&&(r.value=f[0].target.clientHeight)}),o=T(()=>e.app||e.absolute),l=T(()=>{var f;return o.value?((f=e.location)==null?void 0:f.split(" ").shift())??"bottom":!1}),u=T(()=>{var f;return o.value?((f=e.location)==null?void 0:f.split(" ")[1])??"end":!1});ei(()=>e.app,()=>{const f=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:l,layoutSize:T(()=>e.layout?r.value+24:0),elementSize:T(()=>r.value+24),active:T(()=>e.app&&i.value),absolute:se(e,"absolute")});Wt(()=>{s.value=f.layoutItemStyles.value})});const c=ke();return he(()=>{const f=mt.filterProps(e);return v("div",{ref:c,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${l.value}`]:o.value,[`v-fab--${u.value}`]:o.value},e.class],style:[e.app?{...s.value}:{height:"inherit",width:void 0},e.style]},[v("div",{class:"v-fab__container"},[v(Gn,{appear:e.appear,transition:e.transition},{default:()=>[ie(v(mt,fe({ref:a},f,{active:void 0,location:void 0}),n),[[vn,e.active]])]})])])}),{}}}),dhe=j({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...ls({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>Mt(e).every(t=>t!=null&&typeof t=="object")},...Qu({clearable:!0})},"VFileInput"),fhe=ae()({name:"VFileInput",inheritAttrs:!1,props:dhe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{t:s}=Ht(),a=Be(e,"modelValue",e.modelValue,C=>Mt(C),C=>!e.multiple&&Array.isArray(C)?C[0]:C),{isFocused:o,focus:l,blur:u}=as(e),c=T(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=T(()=>(a.value??[]).reduce((C,$)=>{let{size:O=0}=$;return C+O},0)),h=T(()=>O1(f.value,c.value)),m=T(()=>(a.value??[]).map(C=>{const{name:$="",size:O=0}=C;return e.showSize?`${$} (${O1(O,c.value)})`:$})),g=T(()=>{var $;const C=(($=a.value)==null?void 0:$.length)??0;return e.showSize?s(e.counterSizeString,C,h.value):s(e.counterString,C)}),y=ke(),b=ke(),k=ke(),w=T(()=>o.value||e.active),E=T(()=>["plain","underlined"].includes(e.variant));function I(){var C;k.value!==document.activeElement&&((C=k.value)==null||C.focus()),o.value||l()}function D(C){var $;($=k.value)==null||$.click()}function x(C){i("mousedown:control",C)}function P(C){var $;($=k.value)==null||$.click(),i("click:control",C)}function A(C){C.stopPropagation(),I(),ct(()=>{a.value=[],$v(e["onClick:clear"],C)})}return Ie(a,C=>{(!Array.isArray(C)||!C.length)&&k.value&&(k.value.value="")}),he(()=>{const C=!!(r.counter||e.counter),$=!!(C||r.details),[O,M]=Js(n),{modelValue:F,...z}=Nn.filterProps(e),re=sy(e);return v(Nn,fe({ref:y,modelValue:a.value,"onUpdate:modelValue":le=>a.value=le,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":E.value},e.class],style:e.style,"onClick:prepend":D},O,z,{centerAffix:!E.value,focused:o.value}),{...r,default:le=>{let{id:ve,isDisabled:ye,isDirty:Z,isReadonly:J,isValid:K}=le;return v(hl,fe({ref:b,"prepend-icon":e.prependIcon,onMousedown:x,onClick:P,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},re,{id:ve.value,active:w.value||Z.value,dirty:Z.value||e.dirty,disabled:ye.value,focused:o.value,error:K.value===!1}),{...r,default:me=>{var $e;let{props:{class:xe,...Me}}=me;return v(U,null,[v("input",fe({ref:k,type:"file",readonly:J.value,disabled:ye.value,multiple:e.multiple,name:e.name,onClick:oe=>{oe.stopPropagation(),J.value&&oe.preventDefault(),I()},onChange:oe=>{if(!oe.target)return;const q=oe.target;a.value=[...q.files??[]]},onFocus:I,onBlur:u},Me,M),null),v("div",{class:xe},[!!(($e=a.value)!=null&&$e.length)&&!e.hideInput&&(r.selection?r.selection({fileNames:m.value,totalBytes:f.value,totalBytesReadable:h.value}):e.chips?m.value.map(oe=>v(fl,{key:oe,size:"small",text:oe},null)):m.value.join(", "))])])}})},details:$?le=>{var ve,ye;return v(U,null,[(ve=r.details)==null?void 0:ve.call(r,le),C&&v(U,null,[v("span",null,null),v(Hf,{active:!!((ye=a.value)!=null&&ye.length),value:g.value,disabled:e.disabled},r.counter)])])}:void 0})}),Xi({},y,b,k)}}),hhe=j({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...ki(),...Ve(),...ln(),...Za(),...Pt(),...Xe({tag:"footer"}),...ot()},"VFooter"),mhe=ae()({name:"VFooter",props:hhe(),setup(e,t){let{slots:n}=t;const i=ke(),{themeClasses:r}=pt(e),{backgroundColorClasses:s,backgroundColorStyles:a}=wt(se(e,"color")),{borderClasses:o}=Oi(e),{elevationClasses:l}=An(e),{roundedClasses:u}=Bt(e),c=Ae(32),{resizeRef:f}=sr(m=>{m.length&&(c.value=m[0].target.clientHeight)}),h=T(()=>e.height==="auto"?c.value:parseInt(e.height,10));return ei(()=>e.app,()=>{const m=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:T(()=>"bottom"),layoutSize:h,elementSize:T(()=>e.height==="auto"?void 0:h.value),active:T(()=>e.app),absolute:se(e,"absolute")});Wt(()=>{i.value=m.layoutItemStyles.value})}),he(()=>v(e.tag,{ref:f,class:["v-footer",r.value,s.value,o.value,l.value,u.value,e.class],style:[a.value,e.app?i.value:{height:Pe(e.height)},e.style]},n)),{}}}),ghe=j({...Ve(),...Sue()},"VForm"),phe=ae()({name:"VForm",props:ghe(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=_ue(e),s=ke();function a(l){l.preventDefault(),r.reset()}function o(l){const u=l,c=r.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),i("submit",u),u.defaultPrevented||c.then(f=>{var m;let{valid:h}=f;h&&((m=s.value)==null||m.submit())}),u.preventDefault()}return he(()=>{var l;return v("form",{ref:s,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:a,onSubmit:o},[(l=n.default)==null?void 0:l.call(n,r)])}),Xi(r,s)}}),vhe=j({disabled:Boolean,modelValue:{type:Boolean,default:null},...ty()},"VHover"),yhe=ae()({name:"VHover",props:vhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),{runOpenDelay:r,runCloseDelay:s}=ny(e,a=>!e.disabled&&(i.value=a));return()=>{var a;return(a=n.default)==null?void 0:a.call(n,{isHovering:i.value,props:{onMouseenter:r,onMouseleave:s}})}}}),bhe=j({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...Qt(),...Xe()},"VInfiniteScroll"),wS=Di({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:i,isIntersecting:r}=Nf();return Ie(r,async s=>{n("intersect",e.side,s)}),he(()=>v("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:i},[ge(" ")])),{}}}),khe=ae()({name:"VInfiniteScroll",props:bhe(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=ke(),s=Ae("ok"),a=Ae("ok"),o=T(()=>Pe(e.margin)),l=Ae(!1);function u(D){if(!r.value)return;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";r.value[x]=D}function c(){if(!r.value)return 0;const D=e.direction==="vertical"?"scrollTop":"scrollLeft";return r.value[D]}function f(){if(!r.value)return 0;const D=e.direction==="vertical"?"scrollHeight":"scrollWidth";return r.value[D]}function h(){if(!r.value)return 0;const D=e.direction==="vertical"?"clientHeight":"clientWidth";return r.value[D]}En(()=>{r.value&&(e.side==="start"?u(f()):e.side==="both"&&u(f()/2-h()/2))});function m(D,x){D==="start"?s.value=x:D==="end"&&(a.value=x)}function g(D){return D==="start"?s.value:a.value}let y=0;function b(D,x){l.value=x,l.value&&k(D)}function k(D){if(e.mode!=="manual"&&!l.value)return;const x=g(D);if(!r.value||["empty","loading"].includes(x))return;y=f(),m(D,"loading");function P(A){m(D,A),ct(()=>{A==="empty"||A==="error"||(A==="ok"&&D==="start"&&u(f()-y+c()),e.mode!=="manual"&&ct(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{k(D)})})})}))})}i("load",{side:D,done:P})}const{t:w}=Ht();function E(D,x){var C,$,O,M,F;if(e.side!==D&&e.side!=="both")return;const P=()=>k(D),A={side:D,props:{onClick:P,color:e.color}};return x==="error"?(C=n.error)==null?void 0:C.call(n,A):x==="empty"?(($=n.empty)==null?void 0:$.call(n,A))??v("div",null,[w(e.emptyText)]):e.mode==="manual"?x==="loading"?((O=n.loading)==null?void 0:O.call(n,A))??v(Zo,{indeterminate:!0,color:e.color},null):((M=n["load-more"])==null?void 0:M.call(n,A))??v(mt,{variant:"outlined",color:e.color,onClick:P},{default:()=>[w(e.loadMoreText)]}):((F=n.loading)==null?void 0:F.call(n,A))??v(Zo,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:I}=en(e);he(()=>{const D=e.tag,x=e.side==="start"||e.side==="both",P=e.side==="end"||e.side==="both",A=e.mode==="intersect";return v(D,{ref:r,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":x,"v-infinite-scroll--end":P}],style:I.value},{default:()=>{var C;return[v("div",{class:"v-infinite-scroll__side"},[E("start",s.value)]),x&&A&&v(wS,{key:"start",side:"start",onIntersect:b,rootMargin:o.value},null),(C=n.default)==null?void 0:C.call(n),P&&A&&v(wS,{key:"end",side:"end",onIntersect:b,rootMargin:o.value},null),v("div",{class:"v-infinite-scroll__side"},[E("end",a.value)])]}})})}}),Dx=Symbol.for("vuetify:v-item-group"),whe=j({...Ve(),...no({selectedClass:"v-item--selected"}),...Xe(),...ot()},"VItemGroup"),She=ae()({name:"VItemGroup",props:whe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{isSelected:r,select:s,next:a,prev:o,selected:l}=Zs(e,Dx);return()=>v(e.tag,{class:["v-item-group",i.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,select:s,next:a,prev:o,selected:l.value})]}})}}),_he=ae()({name:"VItem",props:io(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,select:r,toggle:s,selectedClass:a,value:o,disabled:l}=ro(e,Dx);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:i.value,selectedClass:a.value,select:r,toggle:s,value:o.value,disabled:l.value})}}}),Che=Or("v-kbd","kbd"),The=j({...Ve(),...Qt(),...bI()},"VLayout"),Ehe=ae()({name:"VLayout",props:The(),setup(e,t){let{slots:n}=t;const{layoutClasses:i,layoutStyles:r,getLayoutItem:s,items:a,layoutRef:o}=wI(e),{dimensionStyles:l}=en(e);return he(()=>{var u;return v("div",{ref:o,class:[i.value,e.class],style:[l.value,r.value,e.style]},[(u=n.default)==null?void 0:u.call(n)])}),{getLayoutItem:s,items:a}}}),Ihe=j({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Ve(),...Za()},"VLayoutItem"),Ahe=ae()({name:"VLayoutItem",props:Ihe(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:i}=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:se(e,"position"),elementSize:se(e,"size"),layoutSize:se(e,"size"),active:se(e,"modelValue"),absolute:se(e,"absolute")});return()=>{var r;return v("div",{class:["v-layout-item",e.class],style:[i.value,e.style]},[(r=n.default)==null?void 0:r.call(n)])}}}),xhe=j({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...Ve(),...Qt(),...Xe(),...cr({transition:"fade-transition"})},"VLazy"),Dhe=ae()({name:"VLazy",directives:{intersect:ju},props:xhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=en(e),r=Be(e,"modelValue");function s(a){r.value||(r.value=a)}return he(()=>ie(v(e.tag,{class:["v-lazy",e.class],style:[i.value,e.style]},{default:()=>[r.value&&v(Gn,{transition:e.transition,appear:!0},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})]}),[[Ai("intersect"),{handler:s,options:e.options},null]])),{}}}),Phe=j({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...Ve()},"VLocaleProvider"),Ohe=ae()({name:"VLocaleProvider",props:Phe(),setup(e,t){let{slots:n}=t;const{rtlClasses:i}=yoe(e);return he(()=>{var r;return v("div",{class:["v-locale-provider",i.value,e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Mhe=j({scrollable:Boolean,...Ve(),...Qt(),...Xe({tag:"main"})},"VMain"),$he=ae()({name:"VMain",props:Mhe(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=en(e),{mainStyles:r}=kI(),{ssrBootStyles:s}=eo();return he(()=>v(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[r.value,s.value,i.value,e.style]},{default:()=>{var a,o;return[e.scrollable?v("div",{class:"v-main__scroller"},[(a=n.default)==null?void 0:a.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}});function Vhe(e){let{rootEl:t,isSticky:n,layoutItemStyles:i}=e;const r=Ae(!1),s=Ae(0),a=T(()=>{const u=typeof r.value=="boolean"?"top":r.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,r.value?{[u]:Pe(s.value)}:{top:i.value.top}]});En(()=>{Ie(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),an(()=>{window.removeEventListener("scroll",l)});let o=0;function l(){const u=o>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),f=parseFloat(i.value.top??0),h=window.scrollY-Math.max(0,s.value-f),m=c.height+Math.max(s.value,f)-window.scrollY-window.innerHeight,g=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(r.value="top",s.value=f):u==="up"&&r.value==="bottom"||u==="down"&&r.value==="top"?(s.value=window.scrollY+c.top-g,r.value=!0):u==="down"&&m<=0?(s.value=0,r.value="bottom"):u==="up"&&h<=0&&(g?r.value!=="top"&&(s.value=-h+g+f,r.value="top"):(s.value=c.top+h,r.value="top")),o=window.scrollY}return{isStuck:r,stickyStyles:a}}const Lhe=100,Nhe=20;function SS(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function _S(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const i=SS(t),r=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(r-i)*Math.abs(r),n===e.length-1&&(t*=.5)}return SS(t)*1e3}function Rhe(){const e={};function t(r){Array.from(r.changedTouches).forEach(s=>{(e[s.identifier]??(e[s.identifier]=new Oae(Nhe))).push([r.timeStamp,s])})}function n(r){Array.from(r.changedTouches).forEach(s=>{delete e[s.identifier]})}function i(r){var u;const s=(u=e[r])==null?void 0:u.values().reverse();if(!s)throw new Error(`No samples for touch id ${r}`);const a=s[0],o=[],l=[];for(const c of s){if(a[0]-c[0]>Lhe)break;o.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:_S(o),y:_S(l),get direction(){const{x:c,y:f}=this,[h,m]=[Math.abs(c),Math.abs(f)];return h>m&&c>=0?"right":h>m&&c<=0?"left":m>h&&f>=0?"down":m>h&&f<=0?"up":Fhe()}}}return{addMovement:t,endTouch:n,getVelocity:i}}function Fhe(){throw new Error}function Bhe(e){let{el:t,isActive:n,isTemporary:i,width:r,touchless:s,position:a}=e;En(()=>{window.addEventListener("touchstart",w,{passive:!0}),window.addEventListener("touchmove",E,{passive:!1}),window.addEventListener("touchend",I,{passive:!0})}),an(()=>{window.removeEventListener("touchstart",w),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",I)});const o=T(()=>["left","right"].includes(a.value)),{addMovement:l,endTouch:u,getVelocity:c}=Rhe();let f=!1;const h=Ae(!1),m=Ae(0),g=Ae(0);let y;function b(x,P){return(a.value==="left"?x:a.value==="right"?document.documentElement.clientWidth-x:a.value==="top"?x:a.value==="bottom"?document.documentElement.clientHeight-x:bo())-(P?r.value:0)}function k(x){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const A=a.value==="left"?(x-g.value)/r.value:a.value==="right"?(document.documentElement.clientWidth-x-g.value)/r.value:a.value==="top"?(x-g.value)/r.value:a.value==="bottom"?(document.documentElement.clientHeight-x-g.value)/r.value:bo();return P?Math.max(0,Math.min(1,A)):A}function w(x){if(s.value)return;const P=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY,C=25,$=a.value==="left"?P<C:a.value==="right"?P>document.documentElement.clientWidth-C:a.value==="top"?A<C:a.value==="bottom"?A>document.documentElement.clientHeight-C:bo(),O=n.value&&(a.value==="left"?P<r.value:a.value==="right"?P>document.documentElement.clientWidth-r.value:a.value==="top"?A<r.value:a.value==="bottom"?A>document.documentElement.clientHeight-r.value:bo());($||O||n.value&&i.value)&&(y=[P,A],g.value=b(o.value?P:A,n.value),m.value=k(o.value?P:A),f=g.value>-20&&g.value<80,u(x),l(x))}function E(x){const P=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY;if(f){if(!x.cancelable){f=!1;return}const $=Math.abs(P-y[0]),O=Math.abs(A-y[1]);(o.value?$>O&&$>3:O>$&&O>3)?(h.value=!0,f=!1):(o.value?O:$)>3&&(f=!1)}if(!h.value)return;x.preventDefault(),l(x);const C=k(o.value?P:A,!1);m.value=Math.max(0,Math.min(1,C)),C>1?g.value=b(o.value?P:A,!0):C<0&&(g.value=b(o.value?P:A,!1))}function I(x){if(f=!1,!h.value)return;l(x),h.value=!1;const P=c(x.changedTouches[0].identifier),A=Math.abs(P.x),C=Math.abs(P.y);(o.value?A>C&&A>400:C>A&&C>3)?n.value=P.direction===({left:"right",right:"left",top:"down",bottom:"up"}[a.value]||bo()):n.value=m.value>.5}const D=T(()=>h.value?{transform:a.value==="left"?`translateX(calc(-100% + ${m.value*r.value}px))`:a.value==="right"?`translateX(calc(100% - ${m.value*r.value}px))`:a.value==="top"?`translateY(calc(-100% + ${m.value*r.value}px))`:a.value==="bottom"?`translateY(calc(100% - ${m.value*r.value}px))`:bo(),transition:"none"}:void 0);return ei(h,()=>{var A,C;const x=((A=t.value)==null?void 0:A.style.transform)??null,P=((C=t.value)==null?void 0:C.style.transition)??null;Wt(()=>{var $,O,M,F;(O=t.value)==null||O.style.setProperty("transform",(($=D.value)==null?void 0:$.transform)||"none"),(F=t.value)==null||F.style.setProperty("transition",((M=D.value)==null?void 0:M.transition)||null)}),qn(()=>{var $,O;($=t.value)==null||$.style.setProperty("transform",x),(O=t.value)==null||O.style.setProperty("transition",P)})}),{isDragging:h,dragProgress:m,dragStyles:D}}function bo(){throw new Error}const zhe=["start","end","left","right","top","bottom"],Uhe=j({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>zhe.includes(e)},sticky:Boolean,...ki(),...Ve(),...ty(),...Xa({mobile:null}),...ln(),...Za(),...Pt(),...Xe({tag:"nav"}),...ot()},"VNavigationDrawer"),Whe=ae()({name:"VNavigationDrawer",props:Uhe(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{isRtl:s}=on(),{themeClasses:a}=pt(e),{borderClasses:o}=Oi(e),{backgroundColorClasses:l,backgroundColorStyles:u}=wt(se(e,"color")),{elevationClasses:c}=An(e),{displayClasses:f,mobile:h}=Yi(e),{roundedClasses:m}=Bt(e),g=OI(),y=Be(e,"modelValue",null,K=>!!K),{ssrBootStyles:b}=eo(),{scopeId:k}=ao(),w=ke(),E=Ae(!1),{runOpenDelay:I,runCloseDelay:D}=ny(e,K=>{E.value=K}),x=T(()=>e.rail&&e.expandOnHover&&E.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),P=T(()=>Ig(e.location,s.value)),A=T(()=>e.persistent),C=T(()=>!e.permanent&&(h.value||e.temporary)),$=T(()=>e.sticky&&!C.value&&P.value!=="bottom");ei(()=>e.expandOnHover&&e.rail!=null,()=>{Ie(E,K=>i("update:rail",!K))}),ei(()=>!e.disableResizeWatcher,()=>{Ie(C,K=>!e.permanent&&ct(()=>y.value=!K))}),ei(()=>!e.disableRouteWatcher&&!!g,()=>{Ie(g.currentRoute,()=>C.value&&(y.value=!1))}),Ie(()=>e.permanent,K=>{K&&(y.value=!0)}),e.modelValue==null&&!C.value&&(y.value=e.permanent||!h.value);const{isDragging:O,dragProgress:M}=Bhe({el:w,isActive:y,isTemporary:C,width:x,touchless:se(e,"touchless"),position:P}),F=T(()=>{const K=C.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):x.value;return O.value?K*M.value:K}),z=T(()=>["top","bottom"].includes(e.location)?0:x.value),{layoutItemStyles:re,layoutItemScrimStyles:le}=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:P,layoutSize:F,elementSize:z,active:T(()=>y.value||O.value),disableTransitions:T(()=>O.value),absolute:T(()=>e.absolute||$.value&&typeof ve.value!="string")}),{isStuck:ve,stickyStyles:ye}=Vhe({rootEl:w,isSticky:$,layoutItemStyles:re}),Z=wt(T(()=>typeof e.scrim=="string"?e.scrim:null)),J=T(()=>({...O.value?{opacity:M.value*.2,transition:"none"}:void 0,...le.value}));return Rt({VList:{bgColor:"transparent"}}),he(()=>{const K=r.image||e.image;return v(U,null,[v(e.tag,fe({ref:w,onMouseenter:I,onMouseleave:D,class:["v-navigation-drawer",`v-navigation-drawer--${P.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":E.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":C.value,"v-navigation-drawer--persistent":A.value,"v-navigation-drawer--active":y.value,"v-navigation-drawer--sticky":$.value},a.value,l.value,o.value,f.value,c.value,m.value,e.class],style:[u.value,re.value,b.value,ye.value,e.style,["top","bottom"].includes(P.value)?{height:"auto"}:{}]},k,n),{default:()=>{var me,xe,Me;return[K&&v("div",{key:"image",class:"v-navigation-drawer__img"},[r.image?v(tt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},r.image):v(Qr,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),r.prepend&&v("div",{class:"v-navigation-drawer__prepend"},[(me=r.prepend)==null?void 0:me.call(r)]),v("div",{class:"v-navigation-drawer__content"},[(xe=r.default)==null?void 0:xe.call(r)]),r.append&&v("div",{class:"v-navigation-drawer__append"},[(Me=r.append)==null?void 0:Me.call(r)])]}}),v(ji,{name:"fade-transition"},{default:()=>[C.value&&(O.value||y.value)&&!!e.scrim&&v("div",fe({class:["v-navigation-drawer__scrim",Z.backgroundColorClasses.value],style:[J.value,Z.backgroundColorStyles.value],onClick:()=>{A.value||(y.value=!1)}},k),null)]})])}),{isStuck:ve}}}),Hhe=Di({name:"VNoSsr",setup(e,t){let{slots:n}=t;const i=vA();return()=>{var r;return i.value&&((r=n.default)==null?void 0:r.call(n))}}}),jhe=j({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...Qt(),...Ju(),...Af(Qu({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),Ghe=ae()({name:"VOtpInput",props:jhe(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{dimensionStyles:s}=en(e),{isFocused:a,focus:o,blur:l}=as(e),u=Be(e,"modelValue","",A=>A==null?[]:String(A).split(""),A=>A.join("")),{t:c}=Ht(),f=T(()=>Number(e.length)),h=T(()=>Array(f.value).fill(0)),m=ke(-1),g=ke(),y=ke([]),b=T(()=>y.value[m.value]);function k(){if(P(b.value.value)){b.value.value="";return}const A=u.value.slice(),C=b.value.value;A[m.value]=C;let $=null;m.value>u.value.length?$=u.value.length+1:m.value+1!==f.value&&($="next"),u.value=A,$&&Ta(g.value,$)}function w(A){const C=u.value.slice(),$=m.value;let O=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(A.key)&&(A.preventDefault(),A.key==="ArrowLeft"?O="prev":A.key==="ArrowRight"?O="next":["Backspace","Delete"].includes(A.key)&&(C[m.value]="",u.value=C,m.value>0&&A.key==="Backspace"?O="prev":requestAnimationFrame(()=>{var M;(M=y.value[$])==null||M.select()})),requestAnimationFrame(()=>{O!=null&&Ta(g.value,O)}))}function E(A,C){var O,M;C.preventDefault(),C.stopPropagation();const $=((O=C==null?void 0:C.clipboardData)==null?void 0:O.getData("Text").slice(0,f.value))??"";P($)||(u.value=$.split(""),(M=y.value)==null||M[A].blur())}function I(){u.value=[]}function D(A,C){o(),m.value=C}function x(){l(),m.value=-1}function P(A){return e.type==="number"&&/[^0-9]/g.test(A)}return Rt({VField:{color:T(()=>e.color),bgColor:T(()=>e.color),baseColor:T(()=>e.baseColor),disabled:T(()=>e.disabled),error:T(()=>e.error),variant:T(()=>e.variant)}},{scoped:!0}),Ie(u,A=>{A.length===f.value&&i("finish",A.join(""))},{deep:!0}),Ie(m,A=>{A<0||ct(()=>{var C;(C=y.value[A])==null||C.select()})}),he(()=>{var $;const[A,C]=Js(n);return v("div",fe({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},A),[v("div",{ref:g,class:"v-otp-input__content",style:[s.value]},[h.value.map((O,M)=>v(U,null,[e.divider&&M!==0&&v("span",{class:"v-otp-input__divider"},[e.divider]),v(hl,{focused:a.value&&e.focusAll||m.value===M,key:M},{...r,loader:void 0,default:()=>v("input",{ref:F=>y.value[M]=F,"aria-label":c(e.label,M+1),autofocus:M===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[M],onInput:k,onFocus:F=>D(F,M),onBlur:x,onKeydown:w,onPaste:F=>E(M,F)},null)})])),v("input",fe({class:"v-otp-input-input",type:"hidden"},C,{value:u.value.join("")}),null),v(Ir,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var O;return[((O=r.loader)==null?void 0:O.call(r))??v(Zo,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),($=r.default)==null?void 0:$.call(r)])])}),{blur:()=>{var A;(A=y.value)==null||A.some(C=>C.blur())},focus:()=>{var A;(A=y.value)==null||A[0].focus()},reset:I,isFocused:a}}});function qhe(e){return Math.floor(Math.abs(e))*Math.sign(e)}const Khe=j({scale:{type:[Number,String],default:.5},...Ve()},"VParallax"),Yhe=ae()({name:"VParallax",props:Khe(),setup(e,t){let{slots:n}=t;const{intersectionRef:i,isIntersecting:r}=Nf(),{resizeRef:s,contentRect:a}=sr(),{height:o}=Yi(),l=ke();Wt(()=>{var m;i.value=s.value=(m=l.value)==null?void 0:m.$el});let u;Ie(r,m=>{m?(u=Fv(i.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",h,{passive:!0}),h()):u.removeEventListener("scroll",h)}),an(()=>{u==null||u.removeEventListener("scroll",h)}),Ie(o,h),Ie(()=>{var m;return(m=a.value)==null?void 0:m.height},h);const c=T(()=>1-Yt(+e.scale));let f=-1;function h(){r.value&&(cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var D;const m=((D=l.value)==null?void 0:D.$el).querySelector(".v-img__img");if(!m)return;const g=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,y=u instanceof Document?window.scrollY:u.scrollTop,b=i.value.getBoundingClientRect().top+y,k=a.value.height,w=b+(k-g)/2,E=qhe((y-w)*c.value),I=Math.max(1,(c.value*(g-k)+k)/k);m.style.setProperty("transform",`translateY(${E}px) scale(${I})`)}))}return he(()=>v(Qr,{class:["v-parallax",{"v-parallax--active":r.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:h,onLoad:h},n)),{}}}),Jhe=j({...zf({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),Xhe=ae()({name:"VRadio",props:Jhe(),setup(e,t){let{slots:n}=t;return he(()=>{const i=Bs.filterProps(e);return v(Bs,fe(i,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),Zhe=j({height:{type:[Number,String],default:"auto"},...ls(),...Zt(Jv(),["multiple"]),trueIcon:{type:je,default:"$radioOn"},falseIcon:{type:je,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Qhe=ae()({name:"VRadioGroup",inheritAttrs:!1,props:Zhe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=In(),s=T(()=>e.id||`radio-group-${r}`),a=Be(e,"modelValue");return he(()=>{const[o,l]=Js(n),u=Nn.filterProps(e),c=Bs.filterProps(e),f=i.label?i.label({label:e.label,props:{for:s.value}}):e.label;return v(Nn,fe({class:["v-radio-group",e.class],style:e.style},o,u,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:s.value}),{...i,default:h=>{let{id:m,messagesId:g,isDisabled:y,isReadonly:b}=h;return v(U,null,[f&&v(dl,{id:m.value},{default:()=>[f]}),v(WI,fe(c,{id:m.value,"aria-describedby":g.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:y.value,readonly:b.value,"aria-labelledby":f?m.value:void 0,multiple:!1},l,{modelValue:a.value,"onUpdate:modelValue":k=>a.value=k}),i)])}})}),{}}}),eme=j({...Ju(),...ls(),...RA(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),tme=ae()({name:"VRangeSlider",props:eme(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=ke(),s=ke(),a=ke(),{rtlClasses:o}=on();function l($){if(!r.value||!s.value)return;const O=qg($,r.value.$el,e.direction),M=qg($,s.value.$el,e.direction),F=Math.abs(O),z=Math.abs(M);return F<z||F===z&&O<0?r.value.$el:s.value.$el}const u=FA(e),c=Be(e,"modelValue",void 0,$=>$!=null&&$.length?$.map(O=>u.roundValue(O)):[0,0]),{activeThumbRef:f,hasLabels:h,max:m,min:g,mousePressed:y,onSliderMousedown:b,onSliderTouchstart:k,position:w,trackContainerRef:E,readonly:I}=BA({props:e,steps:u,onSliderStart:()=>{i("start",c.value)},onSliderEnd:$=>{var F;let{value:O}=$;const M=f.value===((F=r.value)==null?void 0:F.$el)?[O,c.value[1]]:[c.value[0],O];!e.strict&&M[0]<M[1]&&(c.value=M),i("end",c.value)},onSliderMove:$=>{var z,re,le,ve;let{value:O}=$;const[M,F]=c.value;!e.strict&&M===F&&M!==g.value&&(f.value=O>M?(z=s.value)==null?void 0:z.$el:(re=r.value)==null?void 0:re.$el,(le=f.value)==null||le.focus()),f.value===((ve=r.value)==null?void 0:ve.$el)?c.value=[Math.min(O,F),F]:c.value=[M,Math.max(M,O)]},getActiveThumb:l}),{isFocused:D,focus:x,blur:P}=as(e),A=T(()=>w(c.value[0])),C=T(()=>w(c.value[1]));return he(()=>{const $=Nn.filterProps(e),O=!!(e.label||n.label||n.prepend);return v(Nn,fe({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||h.value,"v-slider--focused":D.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},o.value,e.class],style:e.style,ref:a},$,{focused:D.value}),{...n,prepend:O?M=>{var F,z;return v(U,null,[((F=n.label)==null?void 0:F.call(n,M))??(e.label?v(dl,{class:"v-slider__label",text:e.label},null):void 0),(z=n.prepend)==null?void 0:z.call(n,M)])}:void 0,default:M=>{var re,le;let{id:F,messagesId:z}=M;return v("div",{class:"v-slider__container",onMousedown:I.value?void 0:b,onTouchstartPassive:I.value?void 0:k},[v("input",{id:`${F.value}_start`,name:e.name||F.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),v("input",{id:`${F.value}_stop`,name:e.name||F.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),v(zA,{ref:E,start:A.value,stop:C.value},{"tick-label":n["tick-label"]}),v(Kg,{ref:r,"aria-describedby":z.value,focused:D&&f.value===((re=r.value)==null?void 0:re.$el),modelValue:c.value[0],"onUpdate:modelValue":ve=>c.value=[ve,c.value[1]],onFocus:ve=>{var ye,Z,J,K;x(),f.value=(ye=r.value)==null?void 0:ye.$el,c.value[0]===c.value[1]&&c.value[1]===g.value&&ve.relatedTarget!==((Z=s.value)==null?void 0:Z.$el)&&((J=r.value)==null||J.$el.blur(),(K=s.value)==null||K.$el.focus())},onBlur:()=>{P(),f.value=void 0},min:g.value,max:c.value[1],position:A.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),v(Kg,{ref:s,"aria-describedby":z.value,focused:D&&f.value===((le=s.value)==null?void 0:le.$el),modelValue:c.value[1],"onUpdate:modelValue":ve=>c.value=[c.value[0],ve],onFocus:ve=>{var ye,Z,J,K;x(),f.value=(ye=s.value)==null?void 0:ye.$el,c.value[0]===c.value[1]&&c.value[0]===m.value&&ve.relatedTarget!==((Z=r.value)==null?void 0:Z.$el)&&((J=s.value)==null||J.$el.blur(),(K=r.value)==null||K.$el.focus())},onBlur:()=>{P(),f.value=void 0},min:c.value[0],max:m.value,position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),nme=j({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:je,default:"$ratingEmpty"},fullIcon:{type:je,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...Ve(),...mn(),...Mr(),...Xe(),...ot()},"VRating"),ime=ae()({name:"VRating",props:nme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=Ht(),{themeClasses:r}=pt(e),s=Be(e,"modelValue"),a=T(()=>Yt(parseFloat(s.value),0,+e.length)),o=T(()=>kr(Number(e.length),1)),l=T(()=>o.value.flatMap(y=>e.halfIncrements?[y-.5,y]:[y])),u=Ae(-1),c=T(()=>l.value.map(y=>{const b=e.hover&&u.value>-1,k=a.value>=y,w=u.value>=y,I=(b?w:k)?e.fullIcon:e.emptyIcon,D=e.activeColor??e.color,x=k||w?D:e.color;return{isFilled:k,isHovered:w,icon:I,color:x}})),f=T(()=>[0,...l.value].map(y=>{function b(){u.value=y}function k(){u.value=-1}function w(){e.disabled||e.readonly||(s.value=a.value===y&&e.clearable?0:y)}return{onMouseenter:e.hover?b:void 0,onMouseleave:e.hover?k:void 0,onClick:w}})),h=T(()=>e.name??`v-rating-${In()}`);function m(y){var A,C;let{value:b,index:k,showStar:w=!0}=y;const{onMouseenter:E,onMouseleave:I,onClick:D}=f.value[k+1],x=`${h.value}-${String(b).replace(".","-")}`,P={color:(A=c.value[k])==null?void 0:A.color,density:e.density,disabled:e.disabled,icon:(C=c.value[k])==null?void 0:C.icon,ripple:e.ripple,size:e.size,variant:"plain"};return v(U,null,[v("label",{for:x,class:{"v-rating__item--half":e.halfIncrements&&b%1>0,"v-rating__item--full":e.halfIncrements&&b%1===0},onMouseenter:E,onMouseleave:I,onClick:D},[v("span",{class:"v-rating__hidden"},[i(e.itemAriaLabel,b,e.length)]),w?n.item?n.item({...c.value[k],props:P,value:b,index:k,rating:a.value}):v(mt,fe({"aria-label":i(e.itemAriaLabel,b,e.length)},P),null):void 0]),v("input",{class:"v-rating__hidden",name:h.value,id:x,type:"radio",value:b,checked:a.value===b,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function g(y){return n["item-label"]?n["item-label"](y):y.label?v("span",null,[y.label]):v("span",null,[ge(" ")])}return he(()=>{var b;const y=!!((b=e.itemLabels)!=null&&b.length)||n["item-label"];return v(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},r.value,e.class],style:e.style},{default:()=>[v(m,{value:0,index:-1,showStar:!1},null),o.value.map((k,w)=>{var E,I;return v("div",{class:"v-rating__wrapper"},[y&&e.itemLabelPosition==="top"?g({value:k,index:w,label:(E=e.itemLabels)==null?void 0:E[w]}):void 0,v("div",{class:"v-rating__item"},[e.halfIncrements?v(U,null,[v(m,{value:k-.5,index:w*2},null),v(m,{value:k,index:w*2+1},null)]):v(m,{value:k,index:w},null)]),y&&e.itemLabelPosition==="bottom"?g({value:k,index:w,label:(I=e.itemLabels)==null?void 0:I[w]}):void 0])})]})}),{}}}),rme={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function sme(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function CS(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>sh(t))}function sh(e){let t=[];if(!e)return t;const n=rme[e];if(e!==n){if(e.includes(","))return TS(e);if(e.includes("@"))return CS(e);n.includes(",")?t=TS(n):n.includes("@")?t=CS(n):n&&t.push(sh(n))}return[sme(e,t)]}function TS(e){return e.replace(/\s/g,"").split(",").map(sh)}const ame=j({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Qt(),...ln(),...ot()},"VSkeletonLoader"),ome=ae()({name:"VSkeletonLoader",props:ame(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=wt(se(e,"color")),{dimensionStyles:s}=en(e),{elevationClasses:a}=An(e),{themeClasses:o}=pt(e),{t:l}=Ht(),u=T(()=>sh(Mt(e.type).join(",")));return he(()=>{var h;const c=!n.default||e.loading,f=e.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:l(e.loadingText),role:"alert"};return v("div",fe({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},o.value,i.value,a.value],style:[r.value,c?s.value:{}]},f),[c?u.value:(h=n.default)==null?void 0:h.call(n)])}),{}}}),lme=ae()({name:"VSlideGroupItem",props:io(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=ro(e,ZI);return()=>{var r;return(r=n.default)==null?void 0:r.call(n,{isSelected:i.isSelected.value,select:i.select,toggle:i.toggle,selectedClass:i.selectedClass.value})}}});function ume(e){const t=Ae(e());let n=-1;function i(){clearInterval(n)}function r(){i(),ct(()=>t.value=e())}function s(a){const o=a?getComputedStyle(a):{transitionDuration:.2},l=parseFloat(o.transitionDuration)*1e3||200;if(i(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&i()},l)}return qn(i),{clear:i,time:t,start:s,reset:r}}const cme=j({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...rs({location:"bottom"}),...ul(),...Pt(),...Ji(),...ot(),...Zt(Zu({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),dme=ae()({name:"VSnackbar",props:cme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),{positionClasses:r}=cl(e),{scopeId:s}=ao(),{themeClasses:a}=pt(e),{colorClasses:o,colorStyles:l,variantClasses:u}=to(e),{roundedClasses:c}=Bt(e),f=ume(()=>Number(e.timeout)),h=ke(),m=ke(),g=Ae(!1),y=Ae(0),b=ke(),k=Ze(_u,void 0);ei(()=>!!k,()=>{const O=kI();Wt(()=>{b.value=O.mainStyles.value})}),Ie(i,E),Ie(()=>e.timeout,E),En(()=>{i.value&&E()});let w=-1;function E(){f.reset(),window.clearTimeout(w);const O=Number(e.timeout);if(!i.value||O===-1)return;const M=Pv(m.value);f.start(M),w=window.setTimeout(()=>{i.value=!1},O)}function I(){f.reset(),window.clearTimeout(w)}function D(){g.value=!0,I()}function x(){g.value=!1,E()}function P(O){y.value=O.touches[0].clientY}function A(O){Math.abs(y.value-O.changedTouches[0].clientY)>50&&(i.value=!1)}function C(){g.value&&x()}const $=T(()=>e.location.split(" ").reduce((O,M)=>(O[`v-snackbar--${M}`]=!0,O),{}));return he(()=>{const O=Ir.filterProps(e),M=!!(n.default||n.text||e.text);return v(Ir,fe({ref:h,class:["v-snackbar",{"v-snackbar--active":i.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},$.value,r.value,e.class],style:[b.value,e.style]},O,{modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,contentProps:fe({class:["v-snackbar__wrapper",a.value,o.value,c.value,u.value],style:[l.value],onPointerenter:D,onPointerleave:x},O.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:P,onTouchend:A,onAfterLeave:C},s),{default:()=>{var F,z;return[Xs(!1,"v-snackbar"),e.timer&&!g.value&&v("div",{key:"timer",class:"v-snackbar__timer"},[v(Rf,{ref:m,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":f.time.value},null)]),M&&v("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((F=n.text)==null?void 0:F.call(n))??e.text,(z=n.default)==null?void 0:z.call(n)]),n.actions&&v(tt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[v("div",{class:"v-snackbar__actions"},[n.actions({isActive:i})])]})]},activator:n.activator})}),Xi({},h)}}),Px=j({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:Boolean,width:{type:[Number,String],default:300}},"Line"),Ox=j({autoLineWidth:Boolean,...Px()},"VBarline"),ES=ae()({name:"VBarline",props:Ox(),setup(e,t){let{slots:n}=t;const i=In(),r=T(()=>e.id||`barline-${i}`),s=T(()=>Number(e.autoDrawDuration)||500),a=T(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),o=T(()=>parseFloat(e.lineWidth)||4),l=T(()=>Math.max(e.modelValue.length*o.value,Number(e.width))),u=T(()=>({minX:0,maxX:l.value,minY:0,maxY:parseInt(e.height,10)})),c=T(()=>e.modelValue.map(y=>nn(y,e.itemValue,y)));function f(y,b){const{minX:k,maxX:w,minY:E,maxY:I}=b,D=y.length;let x=e.max!=null?Number(e.max):Math.max(...y),P=e.min!=null?Number(e.min):Math.min(...y);P>0&&e.min==null&&(P=0),x<0&&e.max==null&&(x=0);const A=w/D,C=(I-E)/(x-P||1),$=I-Math.abs(P*C);return y.map((O,M)=>{const F=Math.abs(C*O);return{x:k+M*A,y:$-F+ +(O<0)*F,height:F,value:O}})}const h=T(()=>{const y=[],b=f(c.value,u.value),k=b.length;for(let w=0;y.length<k;w++){const E=b[w];let I=e.labels[w];I||(I=typeof E=="object"?E.value:E),y.push({x:E.x,value:String(I)})}return y}),m=T(()=>f(c.value,u.value)),g=T(()=>(Math.abs(m.value[0].x-m.value[1].x)-o.value)/2);he(()=>{const y=e.gradient.slice().length?e.gradient.slice().reverse():[""];return v("svg",{display:"block"},[v("defs",null,[v("linearGradient",{id:r.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[y.map((b,k)=>v("stop",{offset:k/Math.max(y.length-1,1),"stop-color":b||"currentColor"},null))])]),v("clipPath",{id:`${r.value}-clip`},[m.value.map(b=>v("rect",{x:b.x+g.value,y:b.y,width:o.value,height:b.height,rx:typeof e.smooth=="number"?e.smooth:e.smooth?2:0,ry:typeof e.smooth=="number"?e.smooth:e.smooth?2:0},[e.autoDraw&&v(U,null,[v("animate",{attributeName:"y",from:b.y+b.height,to:b.y,dur:`${s.value}ms`,fill:"freeze"},null),v("animate",{attributeName:"height",from:"0",to:b.height,dur:`${s.value}ms`,fill:"freeze"},null)])]))]),a.value&&v("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((b,k)=>{var w;return v("text",{x:b.x+g.value+o.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((w=n.label)==null?void 0:w.call(n,{index:k,value:b.value}))??b.value])})]),v("g",{"clip-path":`url(#${r.value}-clip)`,fill:`url(#${r.value})`},[v("rect",{x:0,y:0,width:Math.max(e.modelValue.length*o.value,Number(e.width)),height:e.height},null)])])})}});function fme(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const r=e.shift(),s=e[e.length-1];return(n?`M${r.x} ${i-r.x+2} L${r.x} ${r.y}`:`M${r.x} ${r.y}`)+e.map((a,o)=>{const l=e[o+1],u=e[o-1]||r,c=l&&hme(l,a,u);if(!l||c)return`L${a.x} ${a.y}`;const f=Math.min(IS(u,a),IS(l,a)),m=f/2<t?f/2:t,g=AS(u,a,m),y=AS(l,a,m);return`L${g.x} ${g.y}S${a.x} ${a.y} ${y.x} ${y.y}`}).join("")+(n?`L${s.x} ${i-r.x+2} Z`:"")}function Mc(e){return parseInt(e,10)}function hme(e,t,n){return Mc(e.x+n.x)===Mc(2*t.x)&&Mc(e.y+n.y)===Mc(2*t.y)}function IS(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function AS(e,t,n){const i={x:e.x-t.x,y:e.y-t.y},r=Math.sqrt(i.x*i.x+i.y*i.y),s={x:i.x/r,y:i.y/r};return{x:t.x+s.x*n,y:t.y+s.y*n}}const Mx=j({fill:Boolean,...Px()},"VTrendline"),xS=ae()({name:"VTrendline",props:Mx(),setup(e,t){let{slots:n}=t;const i=In(),r=T(()=>e.id||`trendline-${i}`),s=T(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),a=ke(0),o=ke(null);function l(b,k){const{minX:w,maxX:E,minY:I,maxY:D}=k,x=b.length,P=e.max!=null?Number(e.max):Math.max(...b),A=e.min!=null?Number(e.min):Math.min(...b),C=(E-w)/(x-1),$=(D-I)/(P-A||1);return b.map((O,M)=>({x:w+M*C,y:D-(O-A)*$,value:O}))}const u=T(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),c=T(()=>parseFloat(e.lineWidth)||4),f=T(()=>Number(e.width)),h=T(()=>{const b=Number(e.padding);return{minX:b,maxX:f.value-b,minY:b,maxY:parseInt(e.height,10)-b}}),m=T(()=>e.modelValue.map(b=>nn(b,e.itemValue,b))),g=T(()=>{const b=[],k=l(m.value,h.value),w=k.length;for(let E=0;b.length<w;E++){const I=k[E];let D=e.labels[E];D||(D=typeof I=="object"?I.value:I),b.push({x:I.x,value:String(D)})}return b});Ie(()=>e.modelValue,async()=>{if(await ct(),!e.autoDraw||!o.value)return;const b=o.value,k=b.getTotalLength();e.fill?(b.style.transformOrigin="bottom center",b.style.transition="none",b.style.transform="scaleY(0)",b.getBoundingClientRect(),b.style.transition=`transform ${s.value}ms ${e.autoDrawEasing}`,b.style.transform="scaleY(1)"):(b.style.strokeDasharray=`${k}`,b.style.strokeDashoffset=`${k}`,b.getBoundingClientRect(),b.style.transition=`stroke-dashoffset ${s.value}ms ${e.autoDrawEasing}`,b.style.strokeDashoffset="0"),a.value=k},{immediate:!0});function y(b){return fme(l(m.value,h.value),e.smooth?8:Number(e.smooth),b,parseInt(e.height,10))}he(()=>{var k;const b=e.gradient.slice().length?e.gradient.slice().reverse():[""];return v("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[v("defs",null,[v("linearGradient",{id:r.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[b.map((w,E)=>v("stop",{offset:E/Math.max(b.length-1,1),"stop-color":w||"currentColor"},null))])]),u.value&&v("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[g.value.map((w,E)=>{var I;return v("text",{x:w.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((I=n.label)==null?void 0:I.call(n,{index:E,value:w.value}))??w.value])})]),v("path",{ref:o,d:y(e.fill),fill:e.fill?`url(#${r.value})`:"none",stroke:e.fill?"none":`url(#${r.value})`},null),e.fill&&v("path",{d:y(!1),fill:"none",stroke:e.color??((k=e.gradient)==null?void 0:k[0])},null)])})}}),mme=j({type:{type:String,default:"trend"},...Ox(),...Mx()},"VSparkline"),gme=ae()({name:"VSparkline",props:mme(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:r}=Ln(se(e,"color")),s=T(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),a=T(()=>{let o=parseInt(e.height,10);return s.value&&(o+=parseInt(e.labelSize,10)*1.5),o});he(()=>{const o=e.type==="trend"?xS:ES,l=e.type==="trend"?xS.filterProps(e):ES.filterProps(e);return v(o,fe({key:e.type,class:i.value,style:r.value,viewBox:`0 0 ${e.width} ${parseInt(a.value,10)}`},l),n)})}}),pme=j({...Ve(),...wA({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),vme=ae()({name:"VSpeedDial",props:pme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),r=ke(),s=T(()=>{var u;const[o,l="center"]=((u=e.location)==null?void 0:u.split(" "))??[];return`${o} ${l}`}),a=T(()=>({[`v-speed-dial__content--${s.value.replace(" ","-")}`]:!0}));return he(()=>{const o=Qo.filterProps(e);return v(Qo,fe(o,{modelValue:i.value,"onUpdate:modelValue":l=>i.value=l,class:e.class,style:e.style,contentClass:["v-speed-dial__content",a.value,e.contentClass],location:s.value,ref:r,transition:"fade-transition"}),{...n,default:l=>v(tt,{defaults:{VBtn:{size:"small"}}},{default:()=>[v(Gn,{appear:!0,group:!0,transition:e.transition},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,l)]}})]})})}),{}}}),Ty=Symbol.for("vuetify:v-stepper"),$x=j({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),Vx=ae()({name:"VStepperActions",props:$x(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:r}=Ht();function s(){n("click:prev")}function a(){n("click:next")}return he(()=>{const o={onClick:s},l={onClick:a};return v("div",{class:"v-stepper-actions"},[v(tt,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:r(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=i.prev)==null?void 0:u.call(i,{props:o}))??v(mt,o,null)]}}),v(tt,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:r(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=i.next)==null?void 0:u.call(i,{props:l}))??v(mt,l,null)]}})])}),{}}}),Lx=Or("v-stepper-header"),yme=j({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),bme=j({...yme(),...io()},"VStepperItem"),Nx=ae()({name:"VStepperItem",directives:{Ripple:ss},props:bme(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=ro(e,Ty,!0),r=T(()=>(i==null?void 0:i.value.value)??e.value),s=T(()=>e.rules.every(h=>h()===!0)),a=T(()=>!e.disabled&&e.editable),o=T(()=>!e.disabled&&e.editable),l=T(()=>e.error||!s.value),u=T(()=>e.complete||e.rules.length>0&&s.value),c=T(()=>l.value?e.errorIcon:u.value?e.completeIcon:i.isSelected.value&&e.editable?e.editIcon:e.icon),f=T(()=>({canEdit:o.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:r.value,value:e.value}));return he(()=>{var b,k,w;const h=(!i||i.isSelected.value||u.value||o.value)&&!l.value&&!e.disabled,m=!!(e.title!=null||n.title),g=!!(e.subtitle!=null||n.subtitle);function y(){i==null||i.toggle()}return ie(v("button",{class:["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},i==null?void 0:i.selectedClass.value],disabled:!e.editable,onClick:y},[a.value&&Xs(!0,"v-stepper-item"),v(qi,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:h?e.color:void 0,size:24},{default:()=>{var E;return[((E=n.icon)==null?void 0:E.call(n,f.value))??(c.value?v(gt,{icon:c.value},null):r.value)]}}),v("div",{class:"v-stepper-item__content"},[m&&v("div",{key:"title",class:"v-stepper-item__title"},[((b=n.title)==null?void 0:b.call(n,f.value))??e.title]),g&&v("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((k=n.subtitle)==null?void 0:k.call(n,f.value))??e.subtitle]),(w=n.default)==null?void 0:w.call(n,f.value)])]),[[Ai("ripple"),e.ripple&&e.editable,null]])}),{}}}),kme=j({...Zt(qf(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),Rx=ae()({name:"VStepperWindow",props:kme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Ze(Ty,null),r=Be(e,"modelValue"),s=T({get(){var a;return r.value!=null||!i?r.value:(a=i.items.value.find(o=>i.selected.value.includes(o.id)))==null?void 0:a.value},set(a){r.value=a}});return he(()=>{const a=Ra.filterProps(e);return v(Ra,fe({_as:"VStepperWindow"},a,{modelValue:s.value,"onUpdate:modelValue":o=>s.value=o,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),wme=j({...Kf()},"VStepperWindowItem"),Fx=ae()({name:"VStepperWindowItem",props:wme(),setup(e,t){let{slots:n}=t;return he(()=>{const i=Fa.filterProps(e);return v(Fa,fe({_as:"VStepperWindowItem"},i,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),Sme=j({altLabels:Boolean,bgColor:String,completeIcon:String,editIcon:String,editable:Boolean,errorIcon:String,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},nonLinear:Boolean,flat:Boolean,...Xa()},"Stepper"),_me=j({...Sme(),...no({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...Yf(),...Af($x(),["prevText","nextText"])},"VStepper"),Cme=ae()({name:"VStepper",props:_me(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:i,next:r,prev:s,selected:a}=Zs(e,Ty),{displayClasses:o,mobile:l}=Yi(e),{completeIcon:u,editIcon:c,errorIcon:f,color:h,editable:m,prevText:g,nextText:y}=Ha(e),b=T(()=>e.items.map((E,I)=>{const D=nn(E,e.itemTitle,E),x=nn(E,e.itemValue,I+1);return{title:D,value:x,raw:E}})),k=T(()=>i.value.findIndex(E=>a.value.includes(E.id))),w=T(()=>e.disabled?e.disabled:k.value===0?"prev":k.value===i.value.length-1?"next":!1);return Rt({VStepperItem:{editable:m,errorIcon:f,completeIcon:u,editIcon:c,prevText:g,nextText:y},VStepperActions:{color:h,disabled:w,prevText:g,nextText:y}}),he(()=>{const E=Ba.filterProps(e),I=!!(n.header||e.items.length),D=e.items.length>0,x=!e.hideActions&&!!(D||n.actions);return v(Ba,fe(E,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},o.value,e.class],style:e.style}),{default:()=>{var P,A;return[I&&v(Lx,{key:"stepper-header"},{default:()=>[b.value.map((C,$)=>{let{raw:O,...M}=C;return v(U,null,[!!$&&v(Xu,null,null),v(Nx,M,{default:n[`header-item.${M.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),D&&v(Rx,{key:"stepper-window"},{default:()=>[b.value.map(C=>v(Fx,{value:C.value},{default:()=>{var $,O;return(($=n[`item.${C.value}`])==null?void 0:$.call(n,C))??((O=n.item)==null?void 0:O.call(n,C))}}))]}),(P=n.default)==null?void 0:P.call(n,{prev:s,next:r}),x&&(((A=n.actions)==null?void 0:A.call(n,{next:r,prev:s}))??v(Vx,{key:"stepper-actions","onClick:prev":s,"onClick:next":r},n))]}})}),{prev:s,next:r}}}),Tme=j({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...ls(),...zf()},"VSwitch"),Eme=ae()({name:"VSwitch",inheritAttrs:!1,props:Tme(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=Be(e,"indeterminate"),s=Be(e,"modelValue"),{loaderClasses:a}=Gu(e),{isFocused:o,focus:l,blur:u}=as(e),c=ke(),f=ht&&window.matchMedia("(forced-colors: active)").matches,h=T(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=In(),g=T(()=>e.id||`switch-${m}`);function y(){r.value&&(r.value=!1)}function b(k){var w,E;k.stopPropagation(),k.preventDefault(),(E=(w=c.value)==null?void 0:w.input)==null||E.click()}return he(()=>{const[k,w]=Js(n),E=Nn.filterProps(e),I=Bs.filterProps(e);return v(Nn,fe({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":r.value},a.value,e.class]},k,E,{modelValue:s.value,"onUpdate:modelValue":D=>s.value=D,id:g.value,focused:o.value,style:e.style}),{...i,default:D=>{let{id:x,messagesId:P,isDisabled:A,isReadonly:C,isValid:$}=D;const O={model:s,isValid:$};return v(Bs,fe({ref:c},I,{modelValue:s.value,"onUpdate:modelValue":[M=>s.value=M,y],id:x.value,"aria-describedby":P.value,type:"checkbox","aria-checked":r.value?"mixed":void 0,disabled:A.value,readonly:C.value,onFocus:l,onBlur:u},w),{...i,default:M=>{let{backgroundColorClasses:F,backgroundColorStyles:z}=M;return v("div",{class:["v-switch__track",f?void 0:F.value],style:z.value,onClick:b},[i["track-true"]&&v("div",{key:"prepend",class:"v-switch__track-true"},[i["track-true"](O)]),i["track-false"]&&v("div",{key:"append",class:"v-switch__track-false"},[i["track-false"](O)])])},input:M=>{let{inputNode:F,icon:z,backgroundColorClasses:re,backgroundColorStyles:le}=M;return v(U,null,[F,v("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":z||e.loading},e.inset||f?void 0:re.value],style:e.inset?void 0:le.value},[i.thumb?v(tt,{defaults:{VIcon:{icon:z,size:"x-small"}}},{default:()=>[i.thumb({...O,icon:z})]}):v(jv,null,{default:()=>[e.loading?v(qu,{name:"v-switch",active:!0,color:$.value===!1?void 0:h.value},{default:ve=>i.loader?i.loader(ve):v(Zo,{active:ve.isActive,color:ve.color,indeterminate:!0,size:"16",width:"2"},null)}):z&&v(gt,{key:String(z),icon:z,size:"x-small"},null)]})])])}})}})}),{}}}),Ime=j({color:String,height:[Number,String],window:Boolean,...Ve(),...ln(),...Za(),...Pt(),...Xe(),...ot()},"VSystemBar"),Ame=ae()({name:"VSystemBar",props:Ime(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{backgroundColorClasses:r,backgroundColorStyles:s}=wt(se(e,"color")),{elevationClasses:a}=An(e),{roundedClasses:o}=Bt(e),{ssrBootStyles:l}=eo(),u=T(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=Qa({id:e.name,order:T(()=>parseInt(e.order,10)),position:Ae("top"),layoutSize:u,elementSize:u,active:T(()=>!0),absolute:se(e,"absolute")});return he(()=>v(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},i.value,r.value,a.value,o.value,e.class],style:[s.value,c.value,l.value,e.style]},n)),{}}}),Ey=Symbol.for("vuetify:v-tabs"),xme=j({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Zt(Bf({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Bx=ae()({name:"VTab",props:xme(),setup(e,t){let{slots:n,attrs:i}=t;const{textColorClasses:r,textColorStyles:s}=Ln(e,"sliderColor"),a=ke(),o=ke(),l=T(()=>e.direction==="horizontal"),u=T(()=>{var f,h;return((h=(f=a.value)==null?void 0:f.group)==null?void 0:h.isSelected.value)??!1});function c(f){var m,g;let{value:h}=f;if(h){const y=(g=(m=a.value)==null?void 0:m.$el.parentElement)==null?void 0:g.querySelector(".v-tab--selected .v-tab__slider"),b=o.value;if(!y||!b)return;const k=getComputedStyle(y).color,w=y.getBoundingClientRect(),E=b.getBoundingClientRect(),I=l.value?"x":"y",D=l.value?"X":"Y",x=l.value?"right":"bottom",P=l.value?"width":"height",A=w[I],C=E[I],$=A>C?w[x]-E[x]:w[I]-E[I],O=Math.sign($)>0?l.value?"right":"bottom":Math.sign($)<0?l.value?"left":"top":"center",F=(Math.abs($)+(Math.sign($)<0?w[P]:E[P]))/Math.max(w[P],E[P])||0,z=w[P]/E[P]||0,re=1.5;ga(b,{backgroundColor:[k,"currentcolor"],transform:[`translate${D}(${$}px) scale${D}(${z})`,`translate${D}(${$/re}px) scale${D}(${(F-1)/re+1})`,"none"],transformOrigin:Array(3).fill(O)},{duration:225,easing:wu})}}return he(()=>{const f=mt.filterProps(e);return v(mt,fe({symbol:Ey,ref:a,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},f,i,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var h;return v(U,null,[((h=n.default)==null?void 0:h.call(n))??e.text,!e.hideSlider&&v("div",{ref:o,class:["v-tab__slider",r.value],style:s.value},null)])}})}),Xi({},a)}}),Dme=j({...Zt(qf(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),zx=ae()({name:"VTabsWindow",props:Dme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Ze(Ey,null),r=Be(e,"modelValue"),s=T({get(){var a;return r.value!=null||!i?r.value:(a=i.items.value.find(o=>i.selected.value.includes(o.id)))==null?void 0:a.value},set(a){r.value=a}});return he(()=>{const a=Ra.filterProps(e);return v(Ra,fe({_as:"VTabsWindow"},a,{modelValue:s.value,"onUpdate:modelValue":o=>s.value=o,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),Pme=j({...Kf()},"VTabsWindowItem"),Ux=ae()({name:"VTabsWindowItem",props:Pme(),setup(e,t){let{slots:n}=t;return he(()=>{const i=Fa.filterProps(e);return v(Fa,fe({_as:"VTabsWindowItem"},i,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Ome(e){return e?e.map(t=>Dv(t)?t:{text:t,value:t}):[]}const Mme=j({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Xv({mandatory:"force",selectedClass:"v-tab-item--selected"}),...mn(),...Xe()},"VTabs"),$me=ae()({name:"VTabs",props:Mme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=Be(e,"modelValue"),s=T(()=>Ome(e.items)),{densityClasses:a}=Yn(e),{backgroundColorClasses:o,backgroundColorStyles:l}=wt(se(e,"bgColor")),{scopeId:u}=ao();return Rt({VTab:{color:se(e,"color"),direction:se(e,"direction"),stacked:se(e,"stacked"),fixed:se(e,"fixedTabs"),sliderColor:se(e,"sliderColor"),hideSlider:se(e,"hideSlider")}}),he(()=>{const c=Au.filterProps(e),f=!!(i.window||e.items.length>0);return v(U,null,[v(Au,fe(c,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},a.value,o.value,e.class],style:[{"--v-tabs-height":Pe(e.height)},l.value,e.style],role:"tablist",symbol:Ey},u,n),{default:()=>{var h;return[((h=i.default)==null?void 0:h.call(i))??s.value.map(m=>{var g;return((g=i.tab)==null?void 0:g.call(i,{item:m}))??v(Bx,fe(m,{key:m.text,value:m.value}),{default:i[`tab.${m.value}`]?()=>{var y;return(y=i[`tab.${m.value}`])==null?void 0:y.call(i,{item:m})}:void 0})})]}}),f&&v(zx,fe({modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,key:"tabs-window"},u),{default:()=>{var h;return[s.value.map(m=>{var g;return((g=i.item)==null?void 0:g.call(i,{item:m}))??v(Ux,{value:m.value},{default:()=>{var y;return(y=i[`item.${m.value}`])==null?void 0:y.call(i,{item:m})}})}),(h=i.window)==null?void 0:h.call(i)]}})])}),{}}}),Vme=j({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...ls(),...Qu()},"VTextarea"),Lme=ae()({name:"VTextarea",directives:{Intersect:ju},inheritAttrs:!1,props:Vme(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const s=Be(e,"modelValue"),{isFocused:a,focus:o,blur:l}=as(e),u=T(()=>typeof e.counterValue=="function"?e.counterValue(s.value):(s.value||"").toString().length),c=T(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function f(O,M){var F,z;!e.autofocus||!O||(z=(F=M[0].target)==null?void 0:F.focus)==null||z.call(F)}const h=ke(),m=ke(),g=Ae(""),y=ke(),b=T(()=>e.persistentPlaceholder||a.value||e.active);function k(){var O;y.value!==document.activeElement&&((O=y.value)==null||O.focus()),a.value||o()}function w(O){k(),i("click:control",O)}function E(O){i("mousedown:control",O)}function I(O){O.stopPropagation(),k(),ct(()=>{s.value="",$v(e["onClick:clear"],O)})}function D(O){var F;const M=O.target;if(s.value=M.value,(F=e.modelModifiers)!=null&&F.trim){const z=[M.selectionStart,M.selectionEnd];ct(()=>{M.selectionStart=z[0],M.selectionEnd=z[1]})}}const x=ke(),P=ke(+e.rows),A=T(()=>["plain","underlined"].includes(e.variant));Wt(()=>{e.autoGrow||(P.value=+e.rows)});function C(){e.autoGrow&&ct(()=>{if(!x.value||!m.value)return;const O=getComputedStyle(x.value),M=getComputedStyle(m.value.$el),F=parseFloat(O.getPropertyValue("--v-field-padding-top"))+parseFloat(O.getPropertyValue("--v-input-padding-top"))+parseFloat(O.getPropertyValue("--v-field-padding-bottom")),z=x.value.scrollHeight,re=parseFloat(O.lineHeight),le=Math.max(parseFloat(e.rows)*re+F,parseFloat(M.getPropertyValue("--v-input-control-height"))),ve=parseFloat(e.maxRows)*re+F||1/0,ye=Yt(z??0,le,ve);P.value=Math.floor((ye-F)/re),g.value=Pe(ye)})}En(C),Ie(s,C),Ie(()=>e.rows,C),Ie(()=>e.maxRows,C),Ie(()=>e.density,C);let $;return Ie(x,O=>{O?($=new ResizeObserver(C),$.observe(x.value)):$==null||$.disconnect()}),an(()=>{$==null||$.disconnect()}),he(()=>{const O=!!(r.counter||e.counter||e.counterValue),M=!!(O||r.details),[F,z]=Js(n),{modelValue:re,...le}=Nn.filterProps(e),ve=sy(e);return v(Nn,fe({ref:h,modelValue:s.value,"onUpdate:modelValue":ye=>s.value=ye,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":A.value},e.class],style:e.style},F,le,{centerAffix:P.value===1&&!A.value,focused:a.value}),{...r,default:ye=>{let{id:Z,isDisabled:J,isDirty:K,isReadonly:me,isValid:xe}=ye;return v(hl,fe({ref:m,style:{"--v-textarea-control-height":g.value},onClick:w,onMousedown:E,"onClick:clear":I,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},ve,{id:Z.value,active:b.value||K.value,centerAffix:P.value===1&&!A.value,dirty:K.value||e.dirty,disabled:J.value,focused:a.value,error:xe.value===!1}),{...r,default:Me=>{let{props:{class:$e,...oe}}=Me;return v(U,null,[e.prefix&&v("span",{class:"v-text-field__prefix"},[e.prefix]),ie(v("textarea",fe({ref:y,class:$e,value:s.value,onInput:D,autofocus:e.autofocus,readonly:me.value,disabled:J.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:k,onBlur:l},oe,z),null),[[Ai("intersect"),{handler:f},null,{once:!0}]]),e.autoGrow&&ie(v("textarea",{class:[$e,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":q=>s.value=q,ref:x,readonly:!0,"aria-hidden":"true"},null),[[Le,s.value]]),e.suffix&&v("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:M?ye=>{var Z;return v(U,null,[(Z=r.details)==null?void 0:Z.call(r,ye),O&&v(U,null,[v("span",null,null),v(Hf,{active:e.persistentCounter||a.value,value:u.value,max:c.value,disabled:e.disabled},r.counter)])])}:void 0})}),Xi({},h,m,y)}}),Nme=j({withBackground:Boolean,...Ve(),...ot(),...Xe()},"VThemeProvider"),Rme=ae()({name:"VThemeProvider",props:Nme(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e);return()=>{var r;return e.withBackground?v(e.tag,{class:["v-theme-provider",i.value,e.class],style:e.style},{default:()=>{var s;return[(s=n.default)==null?void 0:s.call(n)]}}):(r=n.default)==null?void 0:r.call(n)}}}),Fme=j({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:je,iconColor:String,lineColor:String,...Ve(),...Pt(),...Mr(),...ln()},"VTimelineDivider"),Bme=ae()({name:"VTimelineDivider",props:Fme(),setup(e,t){let{slots:n}=t;const{sizeClasses:i,sizeStyles:r}=ll(e,"v-timeline-divider__dot"),{backgroundColorStyles:s,backgroundColorClasses:a}=wt(se(e,"dotColor")),{roundedClasses:o}=Bt(e,"v-timeline-divider__dot"),{elevationClasses:l}=An(e),{backgroundColorClasses:u,backgroundColorStyles:c}=wt(se(e,"lineColor"));return he(()=>v("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[v("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&v("div",{key:"dot",class:["v-timeline-divider__dot",l.value,o.value,i.value],style:r.value},[v("div",{class:["v-timeline-divider__inner-dot",a.value,o.value],style:s.value},[n.default?v(tt,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):v(gt,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),v("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),Wx=j({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:je,iconColor:String,lineInset:[Number,String],...Ve(),...Qt(),...ln(),...Pt(),...Mr(),...Xe()},"VTimelineItem"),zme=ae()({name:"VTimelineItem",props:Wx(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=en(e),r=Ae(0),s=ke();return Ie(s,a=>{var o;a&&(r.value=((o=a.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:o.getBoundingClientRect().width)??0)},{flush:"post"}),he(()=>{var a,o;return v("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":Pe(r.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${Pe(e.lineInset)})`:Pe(0)},e.style]},[v("div",{class:"v-timeline-item__body",style:i.value},[(a=n.default)==null?void 0:a.call(n)]),v(Bme,{ref:s,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&v("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((o=n.opposite)==null?void 0:o.call(n))])])}),{}}}),Ume=j({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...Af(Wx({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...Ve(),...mn(),...Xe(),...ot()},"VTimeline"),Wme=ae()({name:"VTimeline",props:Ume(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=pt(e),{densityClasses:r}=Yn(e),{rtlClasses:s}=on();Rt({VTimelineDivider:{lineColor:se(e,"lineColor")},VTimelineItem:{density:se(e,"density"),dotColor:se(e,"dotColor"),fillDot:se(e,"fillDot"),hideOpposite:se(e,"hideOpposite"),iconColor:se(e,"iconColor"),lineColor:se(e,"lineColor"),lineInset:se(e,"lineInset"),size:se(e,"size")}});const a=T(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),o=T(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return he(()=>v(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,o.value,{"v-timeline--inset-line":!!e.lineInset},i.value,r.value,a.value,s.value,e.class],style:[{"--v-timeline-line-thickness":Pe(e.lineThickness)},e.style]},n)),{}}}),Hme=j({...Ve(),...Ji({variant:"text"})},"VToolbarItems"),jme=ae()({name:"VToolbarItems",props:Hme(),setup(e,t){let{slots:n}=t;return Rt({VBtn:{color:se(e,"color"),height:"inherit",variant:se(e,"variant")}}),he(()=>{var i;return v("div",{class:["v-toolbar-items",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),Gme=j({id:String,text:String,...Zt(Zu({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Hx=ae()({name:"VTooltip",props:Gme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=Be(e,"modelValue"),{scopeId:r}=ao(),s=In(),a=T(()=>e.id||`v-tooltip-${s}`),o=ke(),l=T(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=T(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=T(()=>e.transition?e.transition:i.value?"scale-transition":"fade-transition"),f=T(()=>fe({"aria-describedby":a.value},e.activatorProps));return he(()=>{const h=Ir.filterProps(e);return v(Ir,fe({ref:o,class:["v-tooltip",e.class],style:e.style,id:a.value},h,{modelValue:i.value,"onUpdate:modelValue":m=>i.value=m,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},r),{activator:n.activator,default:function(){var b;for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return((b=n.default)==null?void 0:b.call(n,...g))??e.text}})}),Xi({},o)}}),qme=ae()({name:"VValidation",props:KI(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=YI(e,"validation");return()=>{var r;return(r=n.default)==null?void 0:r.call(n,i)}}}),Kme=Object.freeze(Object.defineProperty({__proto__:null,VAlert:pue,VAlertTitle:zI,VApp:Tle,VAppBar:jle,VAppBarNavIcon:fue,VAppBarTitle:hue,VAutocomplete:Rce,VAvatar:qi,VBadge:Bce,VBanner:Wce,VBannerActions:TA,VBannerText:EA,VBottomNavigation:jce,VBottomSheet:qce,VBreadcrumbs:Xce,VBreadcrumbsDivider:AA,VBreadcrumbsItem:xA,VBtn:mt,VBtnGroup:Lg,VBtnToggle:Xle,VCard:nde,VCardActions:DA,VCardItem:MA,VCardSubtitle:PA,VCardText:$A,VCardTitle:OA,VCarousel:dde,VCarouselItem:hde,VCheckbox:Tue,VCheckboxBtn:es,VChip:fl,VChipGroup:Due,VClassIcon:Wv,VCode:mde,VCol:Wfe,VColorPicker:nfe,VCombobox:sfe,VComponentIcon:Mg,VConfirmEdit:ofe,VContainer:Ffe,VCounter:Hf,VDataIterator:vfe,VDataTable:Mfe,VDataTableFooter:Du,VDataTableHeaders:za,VDataTableRow:ky,VDataTableRows:Ua,VDataTableServer:Nfe,VDataTableVirtual:Vfe,VDatePicker:nhe,VDatePickerControls:Zg,VDatePickerHeader:Qg,VDatePickerMonth:ep,VDatePickerMonths:tp,VDatePickerYears:np,VDefaultsProvider:tt,VDialog:Hg,VDialogBottomTransition:xle,VDialogTopTransition:Dle,VDialogTransition:Vf,VDivider:Xu,VEmptyState:rhe,VExpandTransition:Lf,VExpandXTransition:qv,VExpansionPanel:she,VExpansionPanelText:ip,VExpansionPanelTitle:rp,VExpansionPanels:lhe,VFab:che,VFabTransition:Ale,VFadeTransition:Cu,VField:hl,VFieldLabel:Ll,VFileInput:fhe,VFooter:mhe,VForm:phe,VHover:yhe,VIcon:gt,VImg:Qr,VInfiniteScroll:khe,VInput:Nn,VItem:_he,VItemGroup:She,VKbd:Che,VLabel:dl,VLayout:Ehe,VLayoutItem:Ahe,VLazy:Dhe,VLigatureIcon:ple,VList:Wf,VListGroup:Bg,VListImg:Que,VListItem:ts,VListItemAction:tce,VListItemMedia:ice,VListItemSubtitle:oA,VListItemTitle:lA,VListSubheader:uA,VLocaleProvider:Ohe,VMain:$he,VMenu:Qo,VMessages:GI,VNavigationDrawer:Whe,VNoSsr:Hhe,VOtpInput:Ghe,VOverlay:Ir,VPagination:Jg,VParallax:Yhe,VProgressCircular:Zo,VProgressLinear:Rf,VRadio:Xhe,VRadioGroup:Qhe,VRangeSlider:tme,VRating:ime,VResponsive:$g,VRow:Jfe,VScaleTransition:jv,VScrollXReverseTransition:Ole,VScrollXTransition:Ple,VScrollYReverseTransition:$le,VScrollYTransition:Mle,VSelect:ly,VSelectionControl:Bs,VSelectionControlGroup:WI,VSheet:Ba,VSkeletonLoader:ome,VSlideGroup:Au,VSlideGroupItem:lme,VSlideXReverseTransition:Lle,VSlideXTransition:Vle,VSlideYReverseTransition:Nle,VSlideYTransition:Gv,VSlider:Yg,VSnackbar:dme,VSpacer:wx,VSparkline:gme,VSpeedDial:vme,VStepper:Cme,VStepperActions:Vx,VStepperHeader:Lx,VStepperItem:Nx,VStepperWindow:Rx,VStepperWindowItem:Fx,VSvgIcon:Uv,VSwitch:Eme,VSystemBar:Ame,VTab:Bx,VTable:Wa,VTabs:$me,VTabsWindow:zx,VTabsWindowItem:Ux,VTextField:Na,VTextarea:Lme,VThemeProvider:Rme,VTimeline:Wme,VTimelineItem:zme,VToolbar:Vg,VToolbarItems:jme,VToolbarTitle:Hv,VTooltip:Hx,VValidation:qme,VVirtualScroll:Gf,VWindow:Ra,VWindowItem:Fa},Symbol.toStringTag,{value:"Module"}));function Yme(e,t){const n=t.modifiers||{},i=t.value,{once:r,immediate:s,...a}=n,o=!Object.keys(a).length,{handler:l,options:u}=typeof i=="object"?i:{handler:i,options:{attributes:(a==null?void 0:a.attr)??o,characterData:(a==null?void 0:a.char)??o,childList:(a==null?void 0:a.child)??o,subtree:(a==null?void 0:a.sub)??o}},c=new MutationObserver(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0;l==null||l(f,h),r&&jx(e,t)});s&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function jx(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const Jme={mounted:Yme,unmounted:jx};function Xme(e,t){var r,s;const n=t.value,i={passive:!((r=t.modifiers)!=null&&r.active)};window.addEventListener("resize",n,i),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:i},(s=t.modifiers)!=null&&s.quiet||n()}function Zme(e,t){var r;if(!((r=e._onResize)!=null&&r[t.instance.$.uid]))return;const{handler:n,options:i}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,i),delete e._onResize[t.instance.$.uid]}const Qme={mounted:Xme,unmounted:Zme};function Gx(e,t){const{self:n=!1}=t.modifiers??{},i=t.value,r=typeof i=="object"&&i.options||{passive:!0},s=typeof i=="function"||"handleEvent"in i?i:i.handler,a=n?e:t.arg?document.querySelector(t.arg):window;a&&(a.addEventListener("scroll",s,r),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:s,options:r,target:n?void 0:a})}function qx(e,t){var s;if(!((s=e._onScroll)!=null&&s[t.instance.$.uid]))return;const{handler:n,options:i,target:r=e}=e._onScroll[t.instance.$.uid];r.removeEventListener("scroll",n,i),delete e._onScroll[t.instance.$.uid]}function ege(e,t){t.value!==t.oldValue&&(qx(e,t),Gx(e,t))}const tge={mounted:Gx,unmounted:qx,updated:ege};function nge(e,t){const n=typeof e=="string"?be(e):e,i=ige(n,t);return{mounted:i,updated:i,unmounted(r){Y0(null,r)}}}function ige(e,t){return function(n,i,r){var f,h,m;const s=typeof t=="function"?t(i):t,a=((f=i.value)==null?void 0:f.text)??i.value??(s==null?void 0:s.text),o=Dv(i.value)?i.value:{},l=()=>a??n.textContent,u=(r.ctx===i.instance.$?(h=rge(r,i.instance.$))==null?void 0:h.provides:(m=r.ctx)==null?void 0:m.provides)??i.instance.$.provides,c=pi(e,fe(s,o),l);c.appContext=Object.assign(Object.create(null),i.instance.$.appContext,{provides:u}),Y0(c,n)}}function rge(e,t){const n=new Set,i=s=>{var a,o;for(const l of s){if(!l)continue;if(l===e||l.el&&e.el&&l.el===e.el)return!0;n.add(l);let u;if(l.suspense?u=i([l.ssContent]):Array.isArray(l.children)?u=i(l.children):(a=l.component)!=null&&a.vnode&&(u=i([(o=l.component)==null?void 0:o.subTree])),u)return u;n.delete(l)}return!1};if(!i([t.subTree]))return t;const r=Array.from(n).reverse();for(const s of r)if(s.component)return s.component;return t}const sge=nge(Hx,e=>{var t;return{activator:"parent",location:(t=e.arg)==null?void 0:t.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}}),age=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:kA,Intersect:ju,Mutate:Jme,Resize:Qme,Ripple:ss,Scroll:tge,Tooltip:sge,Touch:uy},Symbol.toStringTag,{value:"Module"}));function oge(){return(navigator.language||navigator.languages[0]).startsWith("de")?"de":"en"}const lge=SI({components:Kme,directives:age});Ti.dispatch("setLanguage",oge());const nc=TO(_ae);nc.use(Ti);nc.use(Td);nc.use(dre);nc.use(lge);nc.mount("#app");