diff --git "a/312" "b/312" new file mode 100644--- /dev/null +++ "b/312" @@ -0,0 +1,24 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const ov={light:{primary:"#154EC1",secondary:"#767C88",success:"#3D9209",info:"#158DE3",danger:"#E42222",warning:"#FFD43A",backgroundPrimary:"#f6f6f6",backgroundSecondary:"#FFFFFF",backgroundElement:"#ECF0F1",backgroundBorder:"#DEE5F2",textPrimary:"#262824",textInverted:"#FFFFFF",shadow:"rgba(0, 0, 0, 0.12)",focus:"#49A8FF",transparent:"rgba(0, 0, 0, 0)"},dark:{primary:"#3472F0",secondary:"#767C88",success:"#66BE33",info:"#3EAAF8",danger:"#F34030",warning:"#FFD952",backgroundPrimary:"#050A10",backgroundSecondary:"#1F262F",backgroundElement:"#131A22",backgroundBorder:"#3D4C58",textPrimary:"#F1F1F1",textInverted:"#0B121A",shadow:"rgba(255, 255, 255, 0.12)",focus:"#49A8FF",transparent:"rgba(0, 0, 0, 0)"}},b_=Symbol("vaBreakpoint"),S_={xs:0,sm:640,md:1024,lg:1440,xl:1920},C_=()=>({enabled:!0,bodyClass:!0,thresholds:S_});/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function om(t,e){const n=new Set(t.split(","));return r=>n.has(r)}const Ht={},Ts=[],lr=()=>{},w_=()=>!1,Sd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),im=t=>t.startsWith("onUpdate:"),Jt=Object.assign,sm=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},k_=Object.prototype.hasOwnProperty,St=(t,e)=>k_.call(t,e),je=Array.isArray,_s=t=>za(t)==="[object Map]",ll=t=>za(t)==="[object Set]",iv=t=>za(t)==="[object Date]",Je=t=>typeof t=="function",Gt=t=>typeof t=="string",uo=t=>typeof t=="symbol",Pt=t=>t!==null&&typeof t=="object",mS=t=>(Pt(t)||Je(t))&&Je(t.then)&&Je(t.catch),gS=Object.prototype.toString,za=t=>gS.call(t),x_=t=>za(t).slice(8,-1),vS=t=>za(t)==="[object Object]",lm=t=>Gt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ql=om(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cd=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$_=/-(\w)/g,qr=Cd(t=>t.replace($_,(e,n)=>n?n.toUpperCase():"")),A_=/\B([A-Z])/g,rs=Cd(t=>t.replace(A_,"-$1").toLowerCase()),ja=Cd(t=>t.charAt(0).toUpperCase()+t.slice(1)),sc=Cd(t=>t?`on${ja(t)}`:""),ei=(t,e)=>!Object.is(t,e),lc=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},$c=t=>{const e=parseFloat(t);return isNaN(e)?t:e},bS=t=>{const e=Gt(t)?Number(t):NaN;return isNaN(e)?t:e};let sv;const SS=()=>sv||(sv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function se(t){if(je(t)){const e={};for(let n=0;n{if(n){const r=n.split(__);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ae(t){let e="";if(Gt(t))e=t;else if(je(t))for(let n=0;nWi(n,e))}const Be=t=>Gt(t)?t:t==null?"":je(t)||Pt(t)&&(t.toString===gS||!Je(t.toString))?JSON.stringify(t,wS,2):String(t),wS=(t,e)=>e&&e.__v_isRef?wS(t,e.value):_s(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o],i)=>(n[_f(r,i)+" =>"]=o,n),{})}:ll(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>_f(n))}:uo(e)?_f(e):Pt(e)&&!je(e)&&!vS(e)?String(e):e,_f=(t,e="")=>{var n;return uo(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** +* @vue/reactivity v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let qn;class D_{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qn,!e&&qn&&(this.index=(qn.scopes||(qn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=qn;try{return qn=this,e()}finally{qn=n}}}on(){qn=this}off(){qn=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pi()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Yo,n=Hi;try{return Yo=!0,Hi=this,this._runnings++,lv(this),this.fn()}finally{av(this),this._runnings--,Hi=n,Yo=e}}stop(){this.active&&(lv(this),av(this),this.onStop&&this.onStop(),this.active=!1)}}function V_(t){return t.value}function lv(t){t._trackId++,t._depsLength=0}function av(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const n=new Map;return n.cleanup=t,n.computed=e,n},Ac=new WeakMap,zi=Symbol(""),Ah=Symbol("");function jn(t,e,n){if(Yo&&Hi){let r=Ac.get(t);r||Ac.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=_S(()=>r.delete(n))),AS(Hi,o)}}function ao(t,e,n,r,o,i){const s=Ac.get(t);if(!s)return;let l=[];if(e==="clear")l=[...s.values()];else if(n==="length"&&je(t)){const a=Number(r);s.forEach((u,c)=>{(c==="length"||!uo(c)&&c>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(s.get(n)),e){case"add":je(t)?lm(n)&&l.push(s.get("length")):(l.push(s.get(zi)),_s(t)&&l.push(s.get(Ah)));break;case"delete":je(t)||(l.push(s.get(zi)),_s(t)&&l.push(s.get(Ah)));break;case"set":_s(t)&&l.push(s.get(zi));break}cm();for(const a of l)a&&TS(a,4);dm()}function R_(t,e){const n=Ac.get(t);return n&&n.get(e)}const F_=om("__proto__,__v_isRef,__isVue"),OS=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(uo)),uv=N_();function N_(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=vt(this);for(let i=0,s=this.length;i{t[e]=function(...n){hi(),cm();const r=vt(this)[e].apply(this,n);return dm(),pi(),r}}),t}function H_(t){uo(t)||(t=String(t));const e=vt(this);return jn(e,"has",t),e.hasOwnProperty(t)}class PS{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?LS:ES:i?DS:IS).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=je(e);if(!o){if(s&&St(uv,n))return Reflect.get(uv,n,r);if(n==="hasOwnProperty")return H_}const l=Reflect.get(e,n,r);return(uo(n)?OS.has(n):F_(n))||(o||jn(e,"get",n),i)?l:Tt(l)?s&&lm(n)?l:l.value:Pt(l)?o?VS(l):ar(l):l}}class BS extends PS{constructor(e=!1){super(!1,e)}set(e,n,r,o){let i=e[n];if(!this._isShallow){const a=pa(i);if(!Tc(r)&&!pa(r)&&(i=vt(i),r=vt(r)),!je(e)&&Tt(i)&&!Tt(r))return a?!1:(i.value=r,!0)}const s=je(e)&&lm(n)?Number(n)t,wd=t=>Reflect.getPrototypeOf(t);function pu(t,e,n=!1,r=!1){t=t.__v_raw;const o=vt(t),i=vt(e);n||(ei(e,i)&&jn(o,"get",e),jn(o,"get",i));const{has:s}=wd(o),l=r?fm:n?pm:ma;if(s.call(o,e))return l(t.get(e));if(s.call(o,i))return l(t.get(i));t!==o&&t.get(e)}function mu(t,e=!1){const n=this.__v_raw,r=vt(n),o=vt(t);return e||(ei(t,o)&&jn(r,"has",t),jn(r,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function gu(t,e=!1){return t=t.__v_raw,!e&&jn(vt(t),"iterate",zi),Reflect.get(t,"size",t)}function cv(t){t=vt(t);const e=vt(this);return wd(e).has.call(e,t)||(e.add(t),ao(e,"add",t,t)),this}function dv(t,e){e=vt(e);const n=vt(this),{has:r,get:o}=wd(n);let i=r.call(n,t);i||(t=vt(t),i=r.call(n,t));const s=o.call(n,t);return n.set(t,e),i?ei(e,s)&&ao(n,"set",t,e):ao(n,"add",t,e),this}function fv(t){const e=vt(this),{has:n,get:r}=wd(e);let o=n.call(e,t);o||(t=vt(t),o=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return o&&ao(e,"delete",t,void 0),i}function hv(){const t=vt(this),e=t.size!==0,n=t.clear();return e&&ao(t,"clear",void 0,void 0),n}function vu(t,e){return function(r,o){const i=this,s=i.__v_raw,l=vt(s),a=e?fm:t?pm:ma;return!t&&jn(l,"iterate",zi),s.forEach((u,c)=>r.call(o,a(u),a(c),i))}}function yu(t,e,n){return function(...r){const o=this.__v_raw,i=vt(o),s=_s(i),l=t==="entries"||t===Symbol.iterator&&s,a=t==="keys"&&s,u=o[t](...r),c=n?fm:e?pm:ma;return!e&&jn(i,"iterate",a?Ah:zi),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:l?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Oo(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function K_(){const t={get(i){return pu(this,i)},get size(){return gu(this)},has:mu,add:cv,set:dv,delete:fv,clear:hv,forEach:vu(!1,!1)},e={get(i){return pu(this,i,!1,!0)},get size(){return gu(this)},has:mu,add:cv,set:dv,delete:fv,clear:hv,forEach:vu(!1,!0)},n={get(i){return pu(this,i,!0)},get size(){return gu(this,!0)},has(i){return mu.call(this,i,!0)},add:Oo("add"),set:Oo("set"),delete:Oo("delete"),clear:Oo("clear"),forEach:vu(!0,!1)},r={get(i){return pu(this,i,!0,!0)},get size(){return gu(this,!0)},has(i){return mu.call(this,i,!0)},add:Oo("add"),set:Oo("set"),delete:Oo("delete"),clear:Oo("clear"),forEach:vu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=yu(i,!1,!1),n[i]=yu(i,!0,!1),e[i]=yu(i,!1,!0),r[i]=yu(i,!0,!0)}),[t,n,e,r]}const[G_,q_,Y_,X_]=K_();function kd(t,e){const n=e?t?X_:Y_:t?q_:G_;return(r,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?r:Reflect.get(St(n,o)&&o in r?n:r,o,i)}const J_={get:kd(!1,!1)},Q_={get:kd(!1,!0)},Z_={get:kd(!0,!1)},eO={get:kd(!0,!0)},IS=new WeakMap,DS=new WeakMap,ES=new WeakMap,LS=new WeakMap;function tO(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nO(t){return t.__v_skip||!Object.isExtensible(t)?0:tO(x_(t))}function ar(t){return pa(t)?t:xd(t,!1,z_,J_,IS)}function hm(t){return xd(t,!1,W_,Q_,DS)}function VS(t){return xd(t,!0,j_,Z_,ES)}function Ti(t){return xd(t,!0,U_,eO,LS)}function xd(t,e,n,r,o){if(!Pt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const s=nO(t);if(s===0)return t;const l=new Proxy(t,s===2?r:n);return o.set(t,l),l}function Zl(t){return pa(t)?Zl(t.__v_raw):!!(t&&t.__v_isReactive)}function pa(t){return!!(t&&t.__v_isReadonly)}function Tc(t){return!!(t&&t.__v_isShallow)}function RS(t){return t?!!t.__v_raw:!1}function vt(t){const e=t&&t.__v_raw;return e?vt(e):t}function rO(t){return Object.isExtensible(t)&&yS(t,"__v_skip",!0),t}const ma=t=>Pt(t)?ar(t):t,pm=t=>Pt(t)?VS(t):t;class FS{constructor(e,n,r,o){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new um(()=>e(this._value),()=>ea(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=vt(this);return(!e._cacheable||e.effect.dirty)&&ei(e._value,e._value=e.effect.run())&&ea(e,4),mm(e),e.effect._dirtyLevel>=2&&ea(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function oO(t,e,n=!1){let r,o;const i=Je(t);return i?(r=t,o=lr):(r=t.get,o=t.set),new FS(r,o,i||!o,n)}function mm(t){var e;Yo&&Hi&&(t=vt(t),AS(Hi,(e=t.dep)!=null?e:t.dep=_S(()=>t.dep=void 0,t instanceof FS?t:void 0)))}function ea(t,e=4,n){t=vt(t);const r=t.dep;r&&TS(r,e)}function Tt(t){return!!(t&&t.__v_isRef===!0)}function W(t){return NS(t,!1)}function Ne(t){return NS(t,!0)}function NS(t,e){return Tt(t)?t:new iO(t,e)}class iO{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:vt(e),this._value=n?e:ma(e)}get value(){return mm(this),this._value}set value(e){const n=this.__v_isShallow||Tc(e)||pa(e);e=n?e:vt(e),ei(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ma(e),ea(this,4))}}function m(t){return Tt(t)?t.value:t}const sO={get:(t,e,n)=>m(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return Tt(o)&&!Tt(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function HS(t){return Zl(t)?t:new Proxy(t,sO)}class lO{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>mm(this),()=>ea(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function aO(t){return new lO(t)}function Or(t){const e=je(t)?new Array(t.length):{};for(const n in t)e[n]=zS(t,n);return e}class uO{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return R_(vt(this._object),this._key)}}class cO{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function $n(t,e,n){return Tt(t)?t:Je(t)?new cO(t):Pt(t)&&arguments.length>1?zS(t,e,n):W(t)}function zS(t,e,n){const r=t[e];return Tt(r)?r:new uO(t,e,n)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Xo(t,e,n,r){try{return r?t(...r):t()}catch(o){Wa(o,e,n)}}function hr(t,e,n,r){if(Je(t)){const o=Xo(t,e,n,r);return o&&mS(o)&&o.catch(i=>{Wa(i,e,n)}),o}if(je(t)){const o=[];for(let i=0;i>>1,o=kn[r],i=va(o);iNr&&kn.splice(e,1)}function _h(t){je(t)?Os.push(...t):(!Eo||!Eo.includes(t,t.allowRecurse?Pi+1:Pi))&&Os.push(t),WS()}function pv(t,e,n=ga?Nr+1:0){for(;nva(n)-va(r));if(Os.length=0,Eo){Eo.push(...e);return}for(Eo=e,Pi=0;Pit.id==null?1/0:t.id,pO=(t,e)=>{const n=va(t)-va(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function KS(t){Th=!1,ga=!0,kn.sort(pO);try{for(Nr=0;NrGt(h)?h.trim():h)),d&&(o=n.map($c))}let l,a=r[l=sc(e)]||r[l=sc(qr(e))];!a&&i&&(a=r[l=sc(rs(e))]),a&&hr(a,t,6,o);const u=r[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,hr(u,t,6,o)}}function GS(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(o!==void 0)return o;const i=t.emits;let s={},l=!1;if(!Je(t)){const a=u=>{const c=GS(u,e,!0);c&&(l=!0,Jt(s,c))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!i&&!l?(Pt(t)&&r.set(t,null),null):(je(i)?i.forEach(a=>s[a]=null):Jt(s,i),Pt(t)&&r.set(t,s),s)}function $d(t,e){return!t||!Sd(e)?!1:(e=e.slice(2).replace(/Once$/,""),St(t,e[0].toLowerCase()+e.slice(1))||St(t,rs(e))||St(t,e))}let on=null,qS=null;function _c(t){const e=on;return on=t,qS=t&&t.type.__scopeId||null,e}function J(t,e=on,n){if(!e||t._n)return t;const r=(...o)=>{r._d&&_v(-1);const i=_c(e);let s;try{s=t(...o)}finally{_c(i),r._d&&_v(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Of(t){const{type:e,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:p,inheritAttrs:v}=t,y=_c(t);let b,S;try{if(n.shapeFlag&4){const x=o||r,k=x;b=Sr(u.call(k,x,c,d,h,f,p)),S=l}else{const x=e;b=Sr(x.length>1?x(d,{attrs:l,slots:s,emit:a}):x(d,null)),S=e.props?l:vO(l)}}catch(x){ia.length=0,Wa(x,t,1),b=he(yn)}let w=b;if(S&&v!==!1){const x=Object.keys(S),{shapeFlag:k}=w;x.length&&k&7&&(i&&x.some(im)&&(S=yO(S,i)),w=ti(w,S,!1,!0))}return n.dirs&&(w=ti(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,_c(y),b}function gO(t,e=!0){let n;for(let r=0;r{let e;for(const n in t)(n==="class"||n==="style"||Sd(n))&&((e||(e={}))[n]=t[n]);return e},yO=(t,e)=>{const n={};for(const r in t)(!im(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function bO(t,e,n){const{props:r,children:o,component:i}=t,{props:s,children:l,patchFlag:a}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?mv(r,s,u):!!s;if(a&8){const c=e.dynamicProps;for(let d=0;dt.__isSuspense;let Oh=0;const CO={name:"Suspense",__isSuspense:!0,process(t,e,n,r,o,i,s,l,a,u){if(t==null)kO(e,n,r,o,i,s,l,a,u);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}xO(t,e,n,r,o,s,l,a,u)}},hydrate:$O,create:bm,normalize:AO},wO=CO;function ya(t,e){const n=t.props&&t.props[e];Je(n)&&n()}function kO(t,e,n,r,o,i,s,l,a){const{p:u,o:{createElement:c}}=a,d=c("div"),f=t.suspense=bm(t,o,r,e,d,n,i,s,l,a);u(null,f.pendingBranch=t.ssContent,d,null,r,f,i,s),f.deps>0?(ya(t,"onPending"),ya(t,"onFallback"),u(null,t.ssFallback,e,n,r,null,i,s),Ps(f,t.ssFallback)):f.resolve(!1,!0)}function xO(t,e,n,r,o,i,s,l,{p:a,um:u,o:{createElement:c}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const f=e.ssContent,h=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:y,isHydrating:b}=d;if(v)d.pendingBranch=f,Hr(f,v)?(a(v,f,d.hiddenContainer,null,o,d,i,s,l),d.deps<=0?d.resolve():y&&(b||(a(p,h,n,r,o,null,i,s,l),Ps(d,h)))):(d.pendingId=Oh++,b?(d.isHydrating=!1,d.activeBranch=v):u(v,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),y?(a(null,f,d.hiddenContainer,null,o,d,i,s,l),d.deps<=0?d.resolve():(a(p,h,n,r,o,null,i,s,l),Ps(d,h))):p&&Hr(f,p)?(a(p,f,n,r,o,d,i,s,l),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,i,s,l),d.deps<=0&&d.resolve()));else if(p&&Hr(f,p))a(p,f,n,r,o,d,i,s,l),Ps(d,f);else if(ya(e,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Oh++,a(null,f,d.hiddenContainer,null,o,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:w}=d;S>0?setTimeout(()=>{d.pendingId===w&&d.fallback(h)},S):S===0&&d.fallback(h)}}function bm(t,e,n,r,o,i,s,l,a,u,c=!1){const{p:d,m:f,um:h,n:p,o:{parentNode:v,remove:y}}=u;let b;const S=_O(t);S&&e&&e.pendingBranch&&(b=e.pendingId,e.deps++);const w=t.props?bS(t.props.timeout):void 0,x=i,k={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Oh++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve($=!1,C=!1){const{vnode:T,activeBranch:_,pendingBranch:M,pendingId:F,effects:L,parentComponent:H,container:E}=k;let P=!1;k.isHydrating?k.isHydrating=!1:$||(P=_&&M.transition&&M.transition.mode==="out-in",P&&(_.transition.afterLeave=()=>{F===k.pendingId&&(f(M,E,i===x?p(_):i,0),_h(L))}),_&&(v(_.el)!==k.hiddenContainer&&(i=p(_)),h(_,H,k,!0)),P||f(M,E,i,0)),Ps(k,M),k.pendingBranch=null,k.isInFallback=!1;let V=k.parent,O=!1;for(;V;){if(V.pendingBranch){V.effects.push(...L),O=!0;break}V=V.parent}!O&&!P&&_h(L),k.effects=[],S&&e&&e.pendingBranch&&b===e.pendingId&&(e.deps--,e.deps===0&&!C&&e.resolve()),ya(T,"onResolve")},fallback($){if(!k.pendingBranch)return;const{vnode:C,activeBranch:T,parentComponent:_,container:M,namespace:F}=k;ya(C,"onFallback");const L=p(T),H=()=>{k.isInFallback&&(d(null,$,M,L,_,null,F,l,a),Ps(k,$))},E=$.transition&&$.transition.mode==="out-in";E&&(T.transition.afterLeave=H),k.isInFallback=!0,h(T,_,null,!0),E||H()},move($,C,T){k.activeBranch&&f(k.activeBranch,$,C,T),k.container=$},next(){return k.activeBranch&&p(k.activeBranch)},registerDep($,C){const T=!!k.pendingBranch;T&&k.deps++;const _=$.vnode.el;$.asyncDep.catch(M=>{Wa(M,$,0)}).then(M=>{if($.isUnmounted||k.isUnmounted||k.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:F}=$;Rh($,M,!1),_&&(F.el=_);const L=!_&&$.subTree.el;C($,F,v(_||$.subTree.el),_?null:p($.subTree),k,s,a),L&&y(L),ym($,F.el),T&&--k.deps===0&&k.resolve()})},unmount($,C){k.isUnmounted=!0,k.activeBranch&&h(k.activeBranch,n,$,C),k.pendingBranch&&h(k.pendingBranch,n,$,C)}};return k}function $O(t,e,n,r,o,i,s,l,a){const u=e.suspense=bm(e,r,n,t.parentNode,document.createElement("div"),null,o,i,s,l,!0),c=a(t,u.pendingBranch=e.ssContent,n,u,i,s);return u.deps===0&&u.resolve(!1,!0),c}function AO(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=vv(r?n.default:n),t.ssFallback=r?vv(n.fallback):he(yn)}function vv(t){let e;if(Je(t)){const n=Ns&&t._c;n&&(t._d=!1,A()),t=t(),n&&(t._d=!0,e=cr,yC())}return je(t)&&(t=gO(t)),t=Sr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function TO(t,e){e&&e.pendingBranch?je(t)?e.effects.push(...t):e.effects.push(t):_h(t)}function Ps(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let o=e.el;for(;!o&&e.component;)e=e.component.subTree,o=e.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,ym(r,o))}function _O(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const OO=Symbol.for("v-scx"),PO=()=>Mn(OO);function tr(t,e){return Sm(t,null,e)}const bu={};function fe(t,e,n){return Sm(t,e,n)}function Sm(t,e,{immediate:n,deep:r,flush:o,once:i,onTrack:s,onTrigger:l}=Ht){if(e&&i){const $=e;e=(...C)=>{$(...C),k()}}const a=mn,u=$=>r===!0?$:Di($,r===!1?1:void 0);let c,d=!1,f=!1;if(Tt(t)?(c=()=>t.value,d=Tc(t)):Zl(t)?(c=()=>u(t),d=!0):je(t)?(f=!0,d=t.some($=>Zl($)||Tc($)),c=()=>t.map($=>{if(Tt($))return $.value;if(Zl($))return u($);if(Je($))return Xo($,a,2)})):Je(t)?e?c=()=>Xo(t,a,2):c=()=>(h&&h(),hr(t,a,3,[p])):c=lr,e&&r){const $=c;c=()=>Di($())}let h,p=$=>{h=w.onStop=()=>{Xo($,a,4),h=w.onStop=void 0}},v;if(Od)if(p=lr,e?n&&hr(e,a,3,[c(),f?[]:void 0,p]):c(),o==="sync"){const $=PO();v=$.__watcherHandles||($.__watcherHandles=[])}else return lr;let y=f?new Array(t.length).fill(bu):bu;const b=()=>{if(!(!w.active||!w.dirty))if(e){const $=w.run();(r||d||(f?$.some((C,T)=>ei(C,y[T])):ei($,y)))&&(h&&h(),hr(e,a,3,[$,y===bu?void 0:f&&y[0]===bu?[]:y,p]),y=$)}else w.run()};b.allowRecurse=!!e;let S;o==="sync"?S=b:o==="post"?S=()=>Vn(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),S=()=>vm(b));const w=new um(c,lr,S),x=kS(),k=()=>{w.stop(),x&&sm(x.effects,w)};return e?n?b():y=w.run():o==="post"?Vn(w.run.bind(w),a&&a.suspense):w.run(),v&&v.push(k),k}function BO(t,e,n){const r=this.proxy,o=Gt(t)?t.includes(".")?QS(r,t):()=>r[t]:t.bind(r,r);let i;Je(e)?i=e:(i=e.handler,n=e);const s=Ua(this),l=Sm(o,i.bind(r),n);return s(),l}function QS(t,e){const n=e.split(".");return()=>{let r=t;for(let o=0;o{Di(r,e,n)});else if(vS(t))for(const r in t)Di(t[r],e,n);return t}function xr(t,e){if(on===null)return t;const n=Pd(on)||on.proxy,r=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),jt(()=>{t.isUnmounting=!0}),t}const or=[Function,Array],eC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},MO={name:"BaseTransition",props:eC,setup(t,{slots:e}){const n=_t(),r=ZS();return()=>{const o=e.default&&Cm(e.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const f of o)if(f.type!==yn){i=f;break}}const s=vt(t),{mode:l}=s;if(r.isLeaving)return Pf(i);const a=yv(i);if(!a)return Pf(i);const u=ba(a,s,r,n);Sa(a,u);const c=n.subTree,d=c&&yv(c);if(d&&d.type!==yn&&!Hr(a,d)){const f=ba(d,s,r,n);if(Sa(d,f),l==="out-in"&&a.type!==yn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Pf(i);l==="in-out"&&a.type!==yn&&(f.delayLeave=(h,p,v)=>{const y=tC(r,d);y[String(d.key)]=d,h[Lo]=()=>{p(),h[Lo]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return i}}},IO=MO;function tC(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ba(t,e,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=e,w=String(t.key),x=tC(n,t),k=(T,_)=>{T&&hr(T,r,9,_)},$=(T,_)=>{const M=_[1];k(T,_),je(T)?T.every(F=>F.length<=1)&&M():T.length<=1&&M()},C={mode:i,persisted:s,beforeEnter(T){let _=l;if(!n.isMounted)if(o)_=v||l;else return;T[Lo]&&T[Lo](!0);const M=x[w];M&&Hr(t,M)&&M.el[Lo]&&M.el[Lo](),k(_,[T])},enter(T){let _=a,M=u,F=c;if(!n.isMounted)if(o)_=y||a,M=b||u,F=S||c;else return;let L=!1;const H=T[Su]=E=>{L||(L=!0,E?k(F,[T]):k(M,[T]),C.delayedLeave&&C.delayedLeave(),T[Su]=void 0)};_?$(_,[T,H]):H()},leave(T,_){const M=String(t.key);if(T[Su]&&T[Su](!0),n.isUnmounting)return _();k(d,[T]);let F=!1;const L=T[Lo]=H=>{F||(F=!0,_(),H?k(p,[T]):k(h,[T]),T[Lo]=void 0,x[M]===t&&delete x[M])};x[M]=t,f?$(f,[T,L]):L()},clone(T){return ba(T,e,n,r)}};return C}function Pf(t){if(Ad(t))return t=ti(t),t.children=null,t}function yv(t){if(!Ad(t))return t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Je(n.default))return n.default()}}function Sa(t,e){t.shapeFlag&6&&t.component?Sa(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Cm(t,e=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!t.type.__asyncLoader,Ad=t=>t.type.__isKeepAlive;function DO(t,e){nC(t,"a",e)}function EO(t,e){nC(t,"da",e)}function nC(t,e,n=mn){const r=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Td(e,r,n),n){let o=n.parent;for(;o&&o.parent;)Ad(o.parent.vnode)&&LO(r,e,n,o),o=o.parent}}function LO(t,e,n,r){const o=Td(e,t,r,!0);rC(()=>{sm(r[e],o)},n)}function Td(t,e,n=mn,r=!1){if(n){const o=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...s)=>{if(n.isUnmounted)return;hi();const l=Ua(n),a=hr(e,n,t,s);return l(),pi(),a});return r?o.unshift(i):o.push(i),i}}const mo=t=>(e,n=mn)=>(!Od||t==="sp")&&Td(t,(...r)=>e(...r),n),wm=mo("bm"),dt=mo("m"),km=mo("bu"),_d=mo("u"),jt=mo("bum"),rC=mo("um"),VO=mo("sp"),RO=mo("rtg"),FO=mo("rtc");function NO(t,e=mn){Td("ec",t,e)}function Ge(t,e,n,r){let o;const i=n;if(je(t)||Gt(t)){o=new Array(t.length);for(let s=0,l=t.length;se(s,l,void 0,i));else{const s=Object.keys(t);o=new Array(s.length);for(let l=0,a=s.length;l{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return t}function D(t,e,n={},r,o){if(on.isCE||on.parent&&ta(on.parent)&&on.parent.isCE)return e!=="default"&&(n.name=e),he("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),A();const s=i&&oC(i(n)),l=te(_e,{key:n.key||s&&s.key||`_${e}`},s||(r?r():[]),s&&t._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function oC(t){return t.some(e=>Ui(e)?!(e.type===yn||e.type===_e&&!oC(e.children)):!0)?t:null}function ur(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:sc(r)]=t[r];return n}const Ph=t=>t?CC(t)?Pd(t)||t.proxy:Ph(t.parent):null,na=Jt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ph(t.parent),$root:t=>Ph(t.root),$emit:t=>t.emit,$options:t=>xm(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,vm(t.update)}),$nextTick:t=>t.n||(t.n=Ot.bind(t.proxy)),$watch:t=>BO.bind(t)}),Bf=(t,e)=>t!==Ht&&!t.__isScriptSetup&&St(t,e),HO={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=t;let u;if(e[0]!=="$"){const h=s[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return n[e];case 3:return i[e]}else{if(Bf(r,e))return s[e]=1,r[e];if(o!==Ht&&St(o,e))return s[e]=2,o[e];if((u=t.propsOptions[0])&&St(u,e))return s[e]=3,i[e];if(n!==Ht&&St(n,e))return s[e]=4,n[e];Mh&&(s[e]=0)}}const c=na[e];let d,f;if(c)return e==="$attrs"&&jn(t.attrs,"get",""),c(t);if((d=l.__cssModules)&&(d=d[e]))return d;if(n!==Ht&&St(n,e))return s[e]=4,n[e];if(f=a.config.globalProperties,St(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:o,ctx:i}=t;return Bf(o,e)?(o[e]=n,!0):r!==Ht&&St(r,e)?(r[e]=n,!0):St(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||t!==Ht&&St(t,s)||Bf(e,s)||(l=i[0])&&St(l,s)||St(r,s)||St(na,s)||St(o.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:St(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ln(){return iC().slots}function os(){return iC().attrs}function iC(){const t=_t();return t.setupContext||(t.setupContext=kC(t))}function Bh(t){return je(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function zO(t,e){const n=Bh(t);for(const r in e){if(r.startsWith("__skip"))continue;let o=n[r];o?je(o)||Je(o)?o=n[r]={type:o,default:e[r]}:o.default=e[r]:o===null&&(o=n[r]={default:e[r]}),o&&e[`__skip_${r}`]&&(o.skipFactory=!0)}return n}let Mh=!0;function jO(t){const e=xm(t),n=t.proxy,r=t.ctx;Mh=!1,e.beforeCreate&&bv(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:w,unmounted:x,render:k,renderTracked:$,renderTriggered:C,errorCaptured:T,serverPrefetch:_,expose:M,inheritAttrs:F,components:L,directives:H,filters:E}=e;if(u&&WO(u,r,null),s)for(const O in s){const N=s[O];Je(N)&&(r[O]=N.bind(n))}if(o){const O=o.call(n,n);Pt(O)&&(t.data=ar(O))}if(Mh=!0,i)for(const O in i){const N=i[O],re=Je(N)?N.bind(n,n):Je(N.get)?N.get.bind(n,n):lr,X=!Je(N)&&Je(N.set)?N.set.bind(n):lr,ke=g({get:re,set:X});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>ke.value,set:$e=>ke.value=$e})}if(l)for(const O in l)sC(l[O],r,n,O);if(a){const O=Je(a)?a.call(n):a;Reflect.ownKeys(O).forEach(N=>{Pr(N,O[N])})}c&&bv(c,t,"c");function V(O,N){je(N)?N.forEach(re=>O(re.bind(n))):N&&O(N.bind(n))}if(V(wm,d),V(dt,f),V(km,h),V(_d,p),V(DO,v),V(EO,y),V(NO,T),V(FO,$),V(RO,C),V(jt,S),V(rC,x),V(VO,_),je(M))if(M.length){const O=t.exposed||(t.exposed={});M.forEach(N=>{Object.defineProperty(O,N,{get:()=>n[N],set:re=>n[N]=re})})}else t.exposed||(t.exposed={});k&&t.render===lr&&(t.render=k),F!=null&&(t.inheritAttrs=F),L&&(t.components=L),H&&(t.directives=H)}function WO(t,e,n=lr){je(t)&&(t=Ih(t));for(const r in t){const o=t[r];let i;Pt(o)?"default"in o?i=Mn(o.from||r,o.default,!0):i=Mn(o.from||r):i=Mn(o),Tt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[r]=i}}function bv(t,e,n){hr(je(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function sC(t,e,n,r){const o=r.includes(".")?QS(n,r):()=>n[r];if(Gt(t)){const i=e[t];Je(i)&&fe(o,i)}else if(Je(t))fe(o,t.bind(n));else if(Pt(t))if(je(t))t.forEach(i=>sC(i,e,n,r));else{const i=Je(t.handler)?t.handler.bind(n):e[t.handler];Je(i)&&fe(o,i,t)}}function xm(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,l=i.get(e);let a;return l?a=l:!o.length&&!n&&!r?a=e:(a={},o.length&&o.forEach(u=>Oc(a,u,s,!0)),Oc(a,e,s)),Pt(e)&&i.set(e,a),a}function Oc(t,e,n,r=!1){const{mixins:o,extends:i}=e;i&&Oc(t,i,n,!0),o&&o.forEach(s=>Oc(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const l=UO[s]||n&&n[s];t[s]=l?l(t[s],e[s]):e[s]}return t}const UO={data:Sv,props:Cv,emits:Cv,methods:Ul,computed:Ul,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:Ul,directives:Ul,watch:GO,provide:Sv,inject:KO};function Sv(t,e){return e?t?function(){return Jt(Je(t)?t.call(this,this):t,Je(e)?e.call(this,this):e)}:e:t}function KO(t,e){return Ul(Ih(t),Ih(e))}function Ih(t){if(je(t)){const e={};for(let n=0;n1)return n&&Je(e)?e.call(r&&r.proxy):e}}const aC={},uC=()=>Object.create(aC),cC=t=>Object.getPrototypeOf(t)===aC;function XO(t,e,n,r=!1){const o={},i=uC();t.propsDefaults=Object.create(null),dC(t,e,o,i);for(const s in t.propsOptions[0])s in o||(o[s]=void 0);n?t.props=r?o:hm(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function JO(t,e,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=t,l=vt(o),[a]=t.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,h]=fC(d,e,!0);Jt(s,f),h&&l.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!a)return Pt(t)&&r.set(t,Ts),Ts;if(je(i))for(let c=0;c-1,h[1]=v<0||p-1||St(h,"default"))&&l.push(d)}}}const u=[s,l];return Pt(t)&&r.set(t,u),u}function wv(t){return t[0]!=="$"&&!Ql(t)}function kv(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function xv(t,e){return kv(t)===kv(e)}function $v(t,e){return je(e)?e.findIndex(n=>xv(n,t)):Je(e)&&xv(e,t)?0:-1}const hC=t=>t[0]==="_"||t==="$stable",$m=t=>je(t)?t.map(Sr):[Sr(t)],QO=(t,e,n)=>{if(e._n)return e;const r=J((...o)=>$m(e(...o)),n);return r._c=!1,r},pC=(t,e,n)=>{const r=t._ctx;for(const o in t){if(hC(o))continue;const i=t[o];if(Je(i))e[o]=QO(o,i,r);else if(i!=null){const s=$m(i);e[o]=()=>s}}},mC=(t,e)=>{const n=$m(e);t.slots.default=()=>n},ZO=(t,e)=>{const n=t.slots=uC();if(t.vnode.shapeFlag&32){const r=e._;r?(Jt(n,e),yS(n,"_",r,!0)):pC(e,n)}else e&&mC(t,e)},eP=(t,e,n)=>{const{vnode:r,slots:o}=t;let i=!0,s=Ht;if(r.shapeFlag&32){const l=e._;l?n&&l===1?i=!1:(Jt(o,e),!n&&l===1&&delete o._):(i=!e.$stable,pC(e,o)),s=e}else e&&(mC(t,e),s={default:1});if(i)for(const l in o)!hC(l)&&s[l]==null&&delete o[l]};function Eh(t,e,n,r,o=!1){if(je(t)){t.forEach((f,h)=>Eh(f,e&&(je(e)?e[h]:e),n,r,o));return}if(ta(r)&&!o)return;const i=r.shapeFlag&4?Pd(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=t,u=e&&e.r,c=l.refs===Ht?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==a&&(Gt(u)?(c[u]=null,St(d,u)&&(d[u]=null)):Tt(u)&&(u.value=null)),Je(a))Xo(a,l,12,[s,c]);else{const f=Gt(a),h=Tt(a);if(f||h){const p=()=>{if(t.f){const v=f?St(d,a)?d[a]:c[a]:a.value;o?je(v)&&sm(v,i):je(v)?v.includes(i)||v.push(i):f?(c[a]=[i],St(d,a)&&(d[a]=c[a])):(a.value=[i],t.k&&(c[t.k]=a.value))}else f?(c[a]=s,St(d,a)&&(d[a]=s)):h&&(a.value=s,t.k&&(c[t.k]=s))};s?(p.id=-1,Vn(p,n)):p()}}}const Vn=TO;function tP(t){return nP(t)}function nP(t,e){const n=SS();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=lr,insertStaticContent:p}=t,v=(B,R,Q,K=null,U=null,Y=null,oe=void 0,ae=null,ve=!!R.dynamicChildren)=>{if(B===R)return;B&&!Hr(B,R)&&(K=ne(B),$e(B,U,Y,!0),B=null),R.patchFlag===-2&&(ve=!1,R.dynamicChildren=null);const{type:ue,ref:Oe,shapeFlag:Re}=R;switch(ue){case al:y(B,R,Q,K);break;case yn:b(B,R,Q,K);break;case If:B==null&&S(R,Q,K,oe);break;case _e:L(B,R,Q,K,U,Y,oe,ae,ve);break;default:Re&1?k(B,R,Q,K,U,Y,oe,ae,ve):Re&6?H(B,R,Q,K,U,Y,oe,ae,ve):(Re&64||Re&128)&&ue.process(B,R,Q,K,U,Y,oe,ae,ve,Pe)}Oe!=null&&U&&Eh(Oe,B&&B.ref,Y,R||B,!R)},y=(B,R,Q,K)=>{if(B==null)r(R.el=l(R.children),Q,K);else{const U=R.el=B.el;R.children!==B.children&&u(U,R.children)}},b=(B,R,Q,K)=>{B==null?r(R.el=a(R.children||""),Q,K):R.el=B.el},S=(B,R,Q,K)=>{[B.el,B.anchor]=p(B.children,R,Q,K,B.el,B.anchor)},w=({el:B,anchor:R},Q,K)=>{let U;for(;B&&B!==R;)U=f(B),r(B,Q,K),B=U;r(R,Q,K)},x=({el:B,anchor:R})=>{let Q;for(;B&&B!==R;)Q=f(B),o(B),B=Q;o(R)},k=(B,R,Q,K,U,Y,oe,ae,ve)=>{R.type==="svg"?oe="svg":R.type==="math"&&(oe="mathml"),B==null?$(R,Q,K,U,Y,oe,ae,ve):_(B,R,U,Y,oe,ae,ve)},$=(B,R,Q,K,U,Y,oe,ae)=>{let ve,ue;const{props:Oe,shapeFlag:Re,transition:Le,dirs:Ke}=B;if(ve=B.el=s(B.type,Y,Oe&&Oe.is,Oe),Re&8?c(ve,B.children):Re&16&&T(B.children,ve,null,K,U,Mf(B,Y),oe,ae),Ke&&Si(B,null,K,"created"),C(ve,B,B.scopeId,oe,K),Oe){for(const ft in Oe)ft!=="value"&&!Ql(ft)&&i(ve,ft,null,Oe[ft],Y,B.children,K,U,Se);"value"in Oe&&i(ve,"value",null,Oe.value,Y),(ue=Oe.onVnodeBeforeMount)&&Dr(ue,K,B)}Ke&&Si(B,null,K,"beforeMount");const Qe=rP(U,Le);Qe&&Le.beforeEnter(ve),r(ve,R,Q),((ue=Oe&&Oe.onVnodeMounted)||Qe||Ke)&&Vn(()=>{ue&&Dr(ue,K,B),Qe&&Le.enter(ve),Ke&&Si(B,null,K,"mounted")},U)},C=(B,R,Q,K,U)=>{if(Q&&h(B,Q),K)for(let Y=0;Y{for(let ue=ve;ue{const ae=R.el=B.el;let{patchFlag:ve,dynamicChildren:ue,dirs:Oe}=R;ve|=B.patchFlag&16;const Re=B.props||Ht,Le=R.props||Ht;let Ke;if(Q&&Ci(Q,!1),(Ke=Le.onVnodeBeforeUpdate)&&Dr(Ke,Q,R,B),Oe&&Si(R,B,Q,"beforeUpdate"),Q&&Ci(Q,!0),ue?M(B.dynamicChildren,ue,ae,Q,K,Mf(R,U),Y):oe||N(B,R,ae,null,Q,K,Mf(R,U),Y,!1),ve>0){if(ve&16)F(ae,R,Re,Le,Q,K,U);else if(ve&2&&Re.class!==Le.class&&i(ae,"class",null,Le.class,U),ve&4&&i(ae,"style",Re.style,Le.style,U),ve&8){const Qe=R.dynamicProps;for(let ft=0;ft{Ke&&Dr(Ke,Q,R,B),Oe&&Si(R,B,Q,"updated")},K)},M=(B,R,Q,K,U,Y,oe)=>{for(let ae=0;ae{if(Q!==K){if(Q!==Ht)for(const ae in Q)!Ql(ae)&&!(ae in K)&&i(B,ae,Q[ae],null,oe,R.children,U,Y,Se);for(const ae in K){if(Ql(ae))continue;const ve=K[ae],ue=Q[ae];ve!==ue&&ae!=="value"&&i(B,ae,ue,ve,oe,R.children,U,Y,Se)}"value"in K&&i(B,"value",Q.value,K.value,oe)}},L=(B,R,Q,K,U,Y,oe,ae,ve)=>{const ue=R.el=B?B.el:l(""),Oe=R.anchor=B?B.anchor:l("");let{patchFlag:Re,dynamicChildren:Le,slotScopeIds:Ke}=R;Ke&&(ae=ae?ae.concat(Ke):Ke),B==null?(r(ue,Q,K),r(Oe,Q,K),T(R.children||[],Q,Oe,U,Y,oe,ae,ve)):Re>0&&Re&64&&Le&&B.dynamicChildren?(M(B.dynamicChildren,Le,Q,U,Y,oe,ae),(R.key!=null||U&&R===U.subTree)&&Am(B,R,!0)):N(B,R,Q,Oe,U,Y,oe,ae,ve)},H=(B,R,Q,K,U,Y,oe,ae,ve)=>{R.slotScopeIds=ae,B==null?R.shapeFlag&512?U.ctx.activate(R,Q,K,oe,ve):E(R,Q,K,U,Y,oe,ve):P(B,R,ve)},E=(B,R,Q,K,U,Y,oe)=>{const ae=B.component=dP(B,K,U);if(Ad(B)&&(ae.ctx.renderer=Pe),fP(ae),ae.asyncDep){if(U&&U.registerDep(ae,V),!B.el){const ve=ae.subTree=he(yn);b(null,ve,R,Q)}}else V(ae,B,R,Q,U,Y,oe)},P=(B,R,Q)=>{const K=R.component=B.component;if(bO(B,R,Q))if(K.asyncDep&&!K.asyncResolved){O(K,R,Q);return}else K.next=R,hO(K.update),K.effect.dirty=!0,K.update();else R.el=B.el,K.vnode=R},V=(B,R,Q,K,U,Y,oe)=>{const ae=()=>{if(B.isMounted){let{next:Oe,bu:Re,u:Le,parent:Ke,vnode:Qe}=B;{const ze=gC(B);if(ze){Oe&&(Oe.el=Qe.el,O(B,Oe,oe)),ze.asyncDep.then(()=>{B.isUnmounted||ae()});return}}let ft=Oe,G;Ci(B,!1),Oe?(Oe.el=Qe.el,O(B,Oe,oe)):Oe=Qe,Re&&lc(Re),(G=Oe.props&&Oe.props.onVnodeBeforeUpdate)&&Dr(G,Ke,Oe,Qe),Ci(B,!0);const Fe=Of(B),pe=B.subTree;B.subTree=Fe,v(pe,Fe,d(pe.el),ne(pe),B,U,Y),Oe.el=Fe.el,ft===null&&ym(B,Fe.el),Le&&Vn(Le,U),(G=Oe.props&&Oe.props.onVnodeUpdated)&&Vn(()=>Dr(G,Ke,Oe,Qe),U)}else{let Oe;const{el:Re,props:Le}=R,{bm:Ke,m:Qe,parent:ft}=B,G=ta(R);if(Ci(B,!1),Ke&&lc(Ke),!G&&(Oe=Le&&Le.onVnodeBeforeMount)&&Dr(Oe,ft,R),Ci(B,!0),Re&&bt){const Fe=()=>{B.subTree=Of(B),bt(Re,B.subTree,B,U,null)};G?R.type.__asyncLoader().then(()=>!B.isUnmounted&&Fe()):Fe()}else{const Fe=B.subTree=Of(B);v(null,Fe,Q,K,B,U,Y),R.el=Fe.el}if(Qe&&Vn(Qe,U),!G&&(Oe=Le&&Le.onVnodeMounted)){const Fe=R;Vn(()=>Dr(Oe,ft,Fe),U)}(R.shapeFlag&256||ft&&ta(ft.vnode)&&ft.vnode.shapeFlag&256)&&B.a&&Vn(B.a,U),B.isMounted=!0,R=Q=K=null}},ve=B.effect=new um(ae,lr,()=>vm(ue),B.scope),ue=B.update=()=>{ve.dirty&&ve.run()};ue.id=B.uid,Ci(B,!0),ue()},O=(B,R,Q)=>{R.component=B;const K=B.vnode.props;B.vnode=R,B.next=null,JO(B,R.props,K,Q),eP(B,R.children,Q),hi(),pv(B),pi()},N=(B,R,Q,K,U,Y,oe,ae,ve=!1)=>{const ue=B&&B.children,Oe=B?B.shapeFlag:0,Re=R.children,{patchFlag:Le,shapeFlag:Ke}=R;if(Le>0){if(Le&128){X(ue,Re,Q,K,U,Y,oe,ae,ve);return}else if(Le&256){re(ue,Re,Q,K,U,Y,oe,ae,ve);return}}Ke&8?(Oe&16&&Se(ue,U,Y),Re!==ue&&c(Q,Re)):Oe&16?Ke&16?X(ue,Re,Q,K,U,Y,oe,ae,ve):Se(ue,U,Y,!0):(Oe&8&&c(Q,""),Ke&16&&T(Re,Q,K,U,Y,oe,ae,ve))},re=(B,R,Q,K,U,Y,oe,ae,ve)=>{B=B||Ts,R=R||Ts;const ue=B.length,Oe=R.length,Re=Math.min(ue,Oe);let Le;for(Le=0;LeOe?Se(B,U,Y,!0,!1,Re):T(R,Q,K,U,Y,oe,ae,ve,Re)},X=(B,R,Q,K,U,Y,oe,ae,ve)=>{let ue=0;const Oe=R.length;let Re=B.length-1,Le=Oe-1;for(;ue<=Re&&ue<=Le;){const Ke=B[ue],Qe=R[ue]=ve?Vo(R[ue]):Sr(R[ue]);if(Hr(Ke,Qe))v(Ke,Qe,Q,null,U,Y,oe,ae,ve);else break;ue++}for(;ue<=Re&&ue<=Le;){const Ke=B[Re],Qe=R[Le]=ve?Vo(R[Le]):Sr(R[Le]);if(Hr(Ke,Qe))v(Ke,Qe,Q,null,U,Y,oe,ae,ve);else break;Re--,Le--}if(ue>Re){if(ue<=Le){const Ke=Le+1,Qe=KeLe)for(;ue<=Re;)$e(B[ue],U,Y,!0),ue++;else{const Ke=ue,Qe=ue,ft=new Map;for(ue=Qe;ue<=Le;ue++){const Mt=R[ue]=ve?Vo(R[ue]):Sr(R[ue]);Mt.key!=null&&ft.set(Mt.key,ue)}let G,Fe=0;const pe=Le-Qe+1;let ze=!1,Xe=0;const Yt=new Array(pe);for(ue=0;ue=pe){$e(Mt,U,Y,!0);continue}let Zt;if(Mt.key!=null)Zt=ft.get(Mt.key);else for(G=Qe;G<=Le;G++)if(Yt[G-Qe]===0&&Hr(Mt,R[G])){Zt=G;break}Zt===void 0?$e(Mt,U,Y,!0):(Yt[Zt-Qe]=ue+1,Zt>=Xe?Xe=Zt:ze=!0,v(Mt,R[Zt],Q,null,U,Y,oe,ae,ve),Fe++)}const rr=ze?oP(Yt):Ts;for(G=rr.length-1,ue=pe-1;ue>=0;ue--){const Mt=Qe+ue,Zt=R[Mt],To=Mt+1{const{el:Y,type:oe,transition:ae,children:ve,shapeFlag:ue}=B;if(ue&6){ke(B.component.subTree,R,Q,K);return}if(ue&128){B.suspense.move(R,Q,K);return}if(ue&64){oe.move(B,R,Q,Pe);return}if(oe===_e){r(Y,R,Q);for(let Re=0;Reae.enter(Y),U);else{const{leave:Re,delayLeave:Le,afterLeave:Ke}=ae,Qe=()=>r(Y,R,Q),ft=()=>{Re(Y,()=>{Qe(),Ke&&Ke()})};Le?Le(Y,Qe,ft):ft()}else r(Y,R,Q)},$e=(B,R,Q,K=!1,U=!1)=>{const{type:Y,props:oe,ref:ae,children:ve,dynamicChildren:ue,shapeFlag:Oe,patchFlag:Re,dirs:Le}=B;if(ae!=null&&Eh(ae,null,Q,B,!0),Oe&256){R.ctx.deactivate(B);return}const Ke=Oe&1&&Le,Qe=!ta(B);let ft;if(Qe&&(ft=oe&&oe.onVnodeBeforeUnmount)&&Dr(ft,R,B),Oe&6)ce(B.component,Q,K);else{if(Oe&128){B.suspense.unmount(Q,K);return}Ke&&Si(B,null,R,"beforeUnmount"),Oe&64?B.type.remove(B,R,Q,U,Pe,K):ue&&(Y!==_e||Re>0&&Re&64)?Se(ue,R,Q,!1,!0):(Y===_e&&Re&384||!U&&Oe&16)&&Se(ve,R,Q),K&&ye(B)}(Qe&&(ft=oe&&oe.onVnodeUnmounted)||Ke)&&Vn(()=>{ft&&Dr(ft,R,B),Ke&&Si(B,null,R,"unmounted")},Q)},ye=B=>{const{type:R,el:Q,anchor:K,transition:U}=B;if(R===_e){j(Q,K);return}if(R===If){x(B);return}const Y=()=>{o(Q),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(B.shapeFlag&1&&U&&!U.persisted){const{leave:oe,delayLeave:ae}=U,ve=()=>oe(Q,Y);ae?ae(B.el,Y,ve):ve()}else Y()},j=(B,R)=>{let Q;for(;B!==R;)Q=f(B),o(B),B=Q;o(R)},ce=(B,R,Q)=>{const{bum:K,scope:U,update:Y,subTree:oe,um:ae}=B;K&&lc(K),U.stop(),Y&&(Y.active=!1,$e(oe,B,R,Q)),ae&&Vn(ae,R),Vn(()=>{B.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&B.asyncDep&&!B.asyncResolved&&B.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},Se=(B,R,Q,K=!1,U=!1,Y=0)=>{for(let oe=Y;oeB.shapeFlag&6?ne(B.component.subTree):B.shapeFlag&128?B.suspense.next():f(B.anchor||B.el);let Z=!1;const Ve=(B,R,Q)=>{B==null?R._vnode&&$e(R._vnode,null,null,!0):v(R._vnode||null,B,R,null,null,null,Q),Z||(Z=!0,pv(),US(),Z=!1),R._vnode=B},Pe={p:v,um:$e,m:ke,r:ye,mt:E,mc:T,pc:N,pbc:M,n:ne,o:t};let qe,bt;return{render:Ve,hydrate:qe,createApp:YO(Ve,qe)}}function Mf({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Ci({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function rP(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Am(t,e,n=!1){const r=t.children,o=e.children;if(je(r)&&je(o))for(let i=0;i>1,t[n[l]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=e[s];return n}function gC(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:gC(e)}const iP=t=>t.__isTeleport,oa=t=>t&&(t.disabled||t.disabled===""),Av=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Tv=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Lh=(t,e)=>{const n=t&&t.to;return Gt(n)?e?e(n):null:n},sP={name:"Teleport",__isTeleport:!0,process(t,e,n,r,o,i,s,l,a,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:y}}=u,b=oa(e.props);let{shapeFlag:S,children:w,dynamicChildren:x}=e;if(t==null){const k=e.el=v(""),$=e.anchor=v("");h(k,n,r),h($,n,r);const C=e.target=Lh(e.props,p),T=e.targetAnchor=v("");C&&(h(T,C),s==="svg"||Av(C)?s="svg":(s==="mathml"||Tv(C))&&(s="mathml"));const _=(M,F)=>{S&16&&c(w,M,F,o,i,s,l,a)};b?_(n,$):C&&_(C,T)}else{e.el=t.el;const k=e.anchor=t.anchor,$=e.target=t.target,C=e.targetAnchor=t.targetAnchor,T=oa(t.props),_=T?n:$,M=T?k:C;if(s==="svg"||Av($)?s="svg":(s==="mathml"||Tv($))&&(s="mathml"),x?(f(t.dynamicChildren,x,_,o,i,s,l),Am(t,e,!0)):a||d(t,e,_,M,o,i,s,l,!1),b)T?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Cu(e,n,k,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const F=e.target=Lh(e.props,p);F&&Cu(e,F,null,u,0)}else T&&Cu(e,$,C,u,1)}vC(e)},remove(t,e,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:u,targetAnchor:c,target:d,props:f}=t;if(d&&i(c),s&&i(u),l&16){const h=s||!oa(f);for(let p=0;p0?cr||Ts:null,yC(),Ns>0&&cr&&cr.push(t),t}function I(t,e,n,r,o,i){return bC(q(t,e,n,r,o,i,!0))}function te(t,e,n,r,o){return bC(he(t,e,n,r,o,!0))}function Ui(t){return t?t.__v_isVNode===!0:!1}function Hr(t,e){return t.type===e.type&&t.key===e.key}const SC=({key:t})=>t??null,ac=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Gt(t)||Tt(t)||Je(t)?{i:on,r:t,k:e,f:!!n}:t:null);function q(t,e=null,n=null,r=0,o=null,i=t===_e?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&SC(e),ref:e&&ac(e),scopeId:qS,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:on};return l?(Tm(a,n),i&128&&t.normalize(a)):n&&(a.shapeFlag|=Gt(n)?8:16),Ns>0&&!s&&cr&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&cr.push(a),a}const he=aP;function aP(t,e=null,n=null,r=0,o=null,i=!1){if((!t||t===XS)&&(t=yn),Ui(t)){const l=ti(t,e,!0);return n&&Tm(l,n),Ns>0&&!i&&cr&&(l.shapeFlag&6?cr[cr.indexOf(t)]=l:cr.push(l)),l.patchFlag|=-2,l}if(gP(t)&&(t=t.__vccOpts),e){e=we(e);let{class:l,style:a}=e;l&&!Gt(l)&&(e.class=Ae(l)),Pt(a)&&(RS(a)&&!je(a)&&(a=Jt({},a)),e.style=se(a))}const s=Gt(t)?1:SO(t)?128:iP(t)?64:Pt(t)?4:Je(t)?2:0;return q(t,e,n,r,o,s,i,!0)}function we(t){return t?RS(t)||cC(t)?Jt({},t):t:null}function ti(t,e,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:l,transition:a}=t,u=e?ee(o||{},e):o,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&SC(u),ref:e&&e.ref?n&&i?je(i)?i.concat(ac(e)):[i,ac(e)]:ac(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_e?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ti(t.ssContent),ssFallback:t.ssFallback&&ti(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&r&&(c.transition=a.clone(c)),c}function Ue(t=" ",e=0){return he(al,null,t,e)}function z(t="",e=!1){return e?(A(),te(yn,null,t)):he(yn,null,t)}function Sr(t){return t==null||typeof t=="boolean"?he(yn):je(t)?he(_e,null,t.slice()):typeof t=="object"?Vo(t):he(al,null,String(t))}function Vo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ti(t)}function Tm(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(je(e))n=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Tm(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!cC(e)?e._ctx=on:o===3&&on&&(on.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Je(e)?(e={default:e,_ctx:on},n=32):(e=String(e),r&64?(n=16,e=[Ue(e)]):n=8);t.children=e,t.shapeFlag|=n}function ee(...t){const e={};for(let n=0;nmn||on;let Pc,Vh;{const t=SS(),e=(n,r)=>{let o;return(o=t[n])||(o=t[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Pc=e("__VUE_INSTANCE_SETTERS__",n=>mn=n),Vh=e("__VUE_SSR_SETTERS__",n=>Od=n)}const Ua=t=>{const e=mn;return Pc(t),t.scope.on(),()=>{t.scope.off(),Pc(e)}},Ov=()=>{mn&&mn.scope.off(),Pc(null)};function CC(t){return t.vnode.shapeFlag&4}let Od=!1;function fP(t,e=!1){e&&Vh(e);const{props:n,children:r}=t.vnode,o=CC(t);XO(t,n,o,e),ZO(t,r);const i=o?hP(t,e):void 0;return e&&Vh(!1),i}function hP(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,HO);const{setup:r}=n;if(r){const o=t.setupContext=r.length>1?kC(t):null,i=Ua(t);hi();const s=Xo(r,t,0,[t.props,o]);if(pi(),i(),mS(s)){if(s.then(Ov,Ov),e)return s.then(l=>{Rh(t,l,e)}).catch(l=>{Wa(l,t,0)});t.asyncDep=s}else Rh(t,s,e)}else wC(t,e)}function Rh(t,e,n){Je(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Pt(e)&&(t.setupState=HS(e)),wC(t,n)}let Pv;function wC(t,e,n){const r=t.type;if(!t.render){if(!e&&Pv&&!r.render){const o=r.template||xm(t).template;if(o){const{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:a}=r,u=Jt(Jt({isCustomElement:i,delimiters:l},s),a);r.render=Pv(o,u)}}t.render=r.render||lr}{const o=Ua(t);hi();try{jO(t)}finally{pi(),o()}}}const pP={get(t,e){return jn(t,"get",""),t[e]}};function kC(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,pP),slots:t.slots,emit:t.emit,expose:e}}function Pd(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(HS(rO(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in na)return na[n](t)},has(e,n){return n in e||n in na}}))}function mP(t,e=!0){return Je(t)?t.displayName||t.name:t.name||e&&t.__name}function gP(t){return Je(t)&&"__vccOpts"in t}const g=(t,e)=>oO(t,e,Od);function ut(t,e,n){const r=arguments.length;return r===2?Pt(e)&&!je(e)?Ui(e)?he(t,null,[e]):he(t,e):he(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ui(n)&&(n=[n]),he(t,e,n))}const vP="3.4.27";/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const yP="http://www.w3.org/2000/svg",bP="http://www.w3.org/1998/Math/MathML",Ro=typeof document<"u"?document:null,Bv=Ro&&Ro.createElement("template"),SP={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const o=e==="svg"?Ro.createElementNS(yP,t):e==="mathml"?Ro.createElementNS(bP,t):Ro.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:t=>Ro.createTextNode(t),createComment:t=>Ro.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ro.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,i){const s=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Bv.innerHTML=r==="svg"?`${t}`:r==="mathml"?`${t}`:t;const l=Bv.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Po="transition",Ol="animation",Hs=Symbol("_vtc"),ul=(t,{slots:e})=>ut(IO,$C(t),e);ul.displayName="Transition";const xC={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},CP=ul.props=Jt({},eC,xC),wi=(t,e=[])=>{je(t)?t.forEach(n=>n(...e)):t&&t(...e)},Mv=t=>t?je(t)?t.some(e=>e.length>1):t.length>1:!1;function $C(t){const e={};for(const L in t)L in xC||(e[L]=t[L]);if(t.css===!1)return e;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=s,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=wP(o),v=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:w,onLeave:x,onLeaveCancelled:k,onBeforeAppear:$=b,onAppear:C=S,onAppearCancelled:T=w}=e,_=(L,H,E)=>{Do(L,H?c:l),Do(L,H?u:s),E&&E()},M=(L,H)=>{L._isLeaving=!1,Do(L,d),Do(L,h),Do(L,f),H&&H()},F=L=>(H,E)=>{const P=L?C:S,V=()=>_(H,L,E);wi(P,[H,V]),Iv(()=>{Do(H,L?a:i),oo(H,L?c:l),Mv(P)||Dv(H,r,v,V)})};return Jt(e,{onBeforeEnter(L){wi(b,[L]),oo(L,i),oo(L,s)},onBeforeAppear(L){wi($,[L]),oo(L,a),oo(L,u)},onEnter:F(!1),onAppear:F(!0),onLeave(L,H){L._isLeaving=!0;const E=()=>M(L,H);oo(L,d),oo(L,f),TC(),Iv(()=>{L._isLeaving&&(Do(L,d),oo(L,h),Mv(x)||Dv(L,r,y,E))}),wi(x,[L,E])},onEnterCancelled(L){_(L,!1),wi(w,[L])},onAppearCancelled(L){_(L,!0),wi(T,[L])},onLeaveCancelled(L){M(L),wi(k,[L])}})}function wP(t){if(t==null)return null;if(Pt(t))return[Df(t.enter),Df(t.leave)];{const e=Df(t);return[e,e]}}function Df(t){return bS(t)}function oo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Hs]||(t[Hs]=new Set)).add(e)}function Do(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Hs];n&&(n.delete(e),n.size||(t[Hs]=void 0))}function Iv(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kP=0;function Dv(t,e,n,r){const o=t._endId=++kP,i=()=>{o===t._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=AC(t,e);if(!s)return r();const u=s+"end";let c=0;const d=()=>{t.removeEventListener(u,f),i()},f=h=>{h.target===t&&++c>=a&&d()};setTimeout(()=>{c(n[p]||"").split(", "),o=r(`${Po}Delay`),i=r(`${Po}Duration`),s=Ev(o,i),l=r(`${Ol}Delay`),a=r(`${Ol}Duration`),u=Ev(l,a);let c=null,d=0,f=0;e===Po?s>0&&(c=Po,d=s,f=i.length):e===Ol?u>0&&(c=Ol,d=u,f=a.length):(d=Math.max(s,u),c=d>0?s>u?Po:Ol:null,f=c?c===Po?i.length:a.length:0);const h=c===Po&&/\b(transform|all)(,|$)/.test(r(`${Po}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Ev(t,e){for(;t.lengthLv(n)+Lv(t[r])))}function Lv(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function TC(){return document.body.offsetHeight}function xP(t,e,n){const r=t[Hs];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Bc=Symbol("_vod"),_C=Symbol("_vsh"),zs={beforeMount(t,{value:e},{transition:n}){t[Bc]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Pl(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Pl(t,!0),r.enter(t)):r.leave(t,()=>{Pl(t,!1)}):Pl(t,e))},beforeUnmount(t,{value:e}){Pl(t,e)}};function Pl(t,e){t.style.display=e?t[Bc]:"none",t[_C]=!e}const $P=Symbol(""),AP=/(^|;)\s*display\s*:/;function TP(t,e,n){const r=t.style,o=Gt(n);let i=!1;if(n&&!o){if(e)if(Gt(e))for(const s of e.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&uc(r,l,"")}else for(const s in e)n[s]==null&&uc(r,s,"");for(const s in n)s==="display"&&(i=!0),uc(r,s,n[s])}else if(o){if(e!==n){const s=r[$P];s&&(n+=";"+s),r.cssText=n,i=AP.test(n)}}else e&&t.removeAttribute("style");Bc in t&&(t[Bc]=i?r.display:"",t[_C]&&(r.display="none"))}const Vv=/\s*!important$/;function uc(t,e,n){if(je(n))n.forEach(r=>uc(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=_P(t,e);Vv.test(n)?t.setProperty(rs(r),n.replace(Vv,""),"important"):t[r]=n}}const Rv=["Webkit","Moz","ms"],Ef={};function _P(t,e){const n=Ef[e];if(n)return n;let r=qr(e);if(r!=="filter"&&r in t)return Ef[e]=r;r=ja(r);for(let o=0;oLf||(DP.then(()=>Lf=0),Lf=Date.now());function LP(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;hr(VP(r,n.value),e,5,[r])};return n.value=t,n.attached=EP(),n}function VP(t,e){if(je(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const zv=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,RP=(t,e,n,r,o,i,s,l,a)=>{const u=o==="svg";e==="class"?xP(t,r,u):e==="style"?TP(t,n,r):Sd(e)?im(e)||MP(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):FP(t,e,r,u))?PP(t,e,r,i,s,l,a):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),OP(t,e,r,u))};function FP(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&zv(e)&&Je(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return zv(e)&&Gt(n)?!1:e in t}const OC=new WeakMap,PC=new WeakMap,Mc=Symbol("_moveCb"),jv=Symbol("_enterCb"),BC={name:"TransitionGroup",props:Jt({},CP,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=_t(),r=ZS();let o,i;return _d(()=>{if(!o.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!UP(o[0].el,n.vnode.el,s))return;o.forEach(zP),o.forEach(jP);const l=o.filter(WP);TC(),l.forEach(a=>{const u=a.el,c=u.style;oo(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Mc]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[Mc]=null,Do(u,s))};u.addEventListener("transitionend",d)})}),()=>{const s=vt(t),l=$C(s);let a=s.tag||_e;if(o=[],i)for(let u=0;udelete t.mode;BC.props;const HP=BC;function zP(t){const e=t.el;e[Mc]&&e[Mc](),e[jv]&&e[jv]()}function jP(t){PC.set(t,t.el.getBoundingClientRect())}function WP(t){const e=OC.get(t),n=PC.get(t),r=e.left-n.left,o=e.top-n.top;if(r||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",t}}function UP(t,e,n){const r=t.cloneNode(),o=t[Hs];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(r);const{hasTransform:s}=AC(r);return i.removeChild(r),s}const ni=t=>{const e=t.props["onUpdate:modelValue"]||!1;return je(e)?n=>lc(e,n):e};function KP(t){t.target.composing=!0}function Wv(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const pr=Symbol("_assign"),Ic={created(t,{modifiers:{lazy:e,trim:n,number:r}},o){t[pr]=ni(o);const i=r||o.props&&o.props.type==="number";lo(t,e?"change":"input",s=>{if(s.target.composing)return;let l=t.value;n&&(l=l.trim()),i&&(l=$c(l)),t[pr](l)}),n&&lo(t,"change",()=>{t.value=t.value.trim()}),e||(lo(t,"compositionstart",KP),lo(t,"compositionend",Wv),lo(t,"change",Wv))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:o}},i){if(t[pr]=ni(i),t.composing)return;const s=(o||t.type==="number")&&!/^0\d/.test(t.value)?$c(t.value):t.value,l=e??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===l)||(t.value=l))}},GP={deep:!0,created(t,e,n){t[pr]=ni(n),lo(t,"change",()=>{const r=t._modelValue,o=js(t),i=t.checked,s=t[pr];if(je(r)){const l=am(r,o),a=l!==-1;if(i&&!a)s(r.concat(o));else if(!i&&a){const u=[...r];u.splice(l,1),s(u)}}else if(ll(r)){const l=new Set(r);i?l.add(o):l.delete(o),s(l)}else s(MC(t,i))})},mounted:Uv,beforeUpdate(t,e,n){t[pr]=ni(n),Uv(t,e,n)}};function Uv(t,{value:e,oldValue:n},r){t._modelValue=e,je(e)?t.checked=am(e,r.props.value)>-1:ll(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Wi(e,MC(t,!0)))}const qP={created(t,{value:e},n){t.checked=Wi(e,n.props.value),t[pr]=ni(n),lo(t,"change",()=>{t[pr](js(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[pr]=ni(r),e!==n&&(t.checked=Wi(e,r.props.value))}},YP={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const o=ll(e);lo(t,"change",()=>{const i=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?$c(js(s)):js(s));t[pr](t.multiple?o?new Set(i):i:i[0]),t._assigning=!0,Ot(()=>{t._assigning=!1})}),t[pr]=ni(r)},mounted(t,{value:e,modifiers:{number:n}}){Kv(t,e)},beforeUpdate(t,e,n){t[pr]=ni(n)},updated(t,{value:e,modifiers:{number:n}}){t._assigning||Kv(t,e)}};function Kv(t,e,n){const r=t.multiple,o=je(e);if(!(r&&!o&&!ll(e))){for(let i=0,s=t.options.length;iString(c)===String(a)):l.selected=am(e,a)>-1}else l.selected=e.has(a);else if(Wi(js(l),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function js(t){return"_value"in t?t._value:t.value}function MC(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const _m={created(t,e,n){wu(t,e,n,null,"created")},mounted(t,e,n){wu(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){wu(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){wu(t,e,n,r,"updated")}};function XP(t,e){switch(t){case"SELECT":return YP;case"TEXTAREA":return Ic;default:switch(e){case"checkbox":return GP;case"radio":return qP;default:return Ic}}}function wu(t,e,n,r,o){const s=XP(t.tagName,n.props&&n.props.type)[o];s&&s(t,e,n,r)}const JP=["ctrl","shift","alt","meta"],QP={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>JP.some(n=>t[`${n}Key`]&&!e.includes(n))},be=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(o,...i)=>{for(let s=0;s{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=rs(o.key);if(e.some(s=>s===i||ZP[s]===i))return t(o)})},eB=Jt({patchProp:RP},SP);let Gv;function IC(){return Gv||(Gv=tP(eB))}const wa=(...t)=>{IC().render(...t)},tB=(...t)=>{const e=IC().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=rB(r);if(!o)return;const i=e._component;!Je(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,nB(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e};function nB(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function rB(t){return Gt(t)?document.querySelector(t):t}const Fh=(t,e=null)=>J(()=>[t],e),qv=t=>typeof t=="string"?ut(al,t):Ui(t)?t:te(t),oB=(t,e=null)=>Object.keys(t).reduce((n,r)=>{const o=t[r];return n[r]=typeof o=="function"?o:Fh(o,e),n},{}),iB=t=>{const e=t.render||t.ssrRender;if(!e)return;const n=e.name==="_sfc_render"||e.name==="_sfc_ssrRender";return function(...r){const o=r[0],i=o.$.slots,s=new Proxy(o,{get(a,u){return u==="$slots"?oB(i):a[u]}}),l=n?void 0:s;return e.call(l,s,...r.slice(1))}};var ku=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function sB(){this.__data__=[],this.size=0}var lB=sB;function aB(t,e){return t===e||t!==t&&e!==e}var Bd=aB,uB=Bd;function cB(t,e){for(var n=t.length;n--;)if(uB(t[n][0],e))return n;return-1}var Md=cB,dB=Md,fB=Array.prototype,hB=fB.splice;function pB(t){var e=this.__data__,n=dB(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():hB.call(e,n,1),--this.size,!0}var mB=pB,gB=Md;function vB(t){var e=this.__data__,n=gB(e,t);return n<0?void 0:e[n][1]}var yB=vB,bB=Md;function SB(t){return bB(this.__data__,t)>-1}var CB=SB,wB=Md;function kB(t,e){var n=this.__data__,r=wB(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var xB=kB,$B=lB,AB=mB,TB=yB,_B=CB,OB=xB;function cl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=OD}var Im=PD,BD=go,MD=Im,ID=Mr,DD="[object Arguments]",ED="[object Array]",LD="[object Boolean]",VD="[object Date]",RD="[object Error]",FD="[object Function]",ND="[object Map]",HD="[object Number]",zD="[object Object]",jD="[object RegExp]",WD="[object Set]",UD="[object String]",KD="[object WeakMap]",GD="[object ArrayBuffer]",qD="[object DataView]",YD="[object Float32Array]",XD="[object Float64Array]",JD="[object Int8Array]",QD="[object Int16Array]",ZD="[object Int32Array]",eE="[object Uint8Array]",tE="[object Uint8ClampedArray]",nE="[object Uint16Array]",rE="[object Uint32Array]",Ft={};Ft[YD]=Ft[XD]=Ft[JD]=Ft[QD]=Ft[ZD]=Ft[eE]=Ft[tE]=Ft[nE]=Ft[rE]=!0;Ft[DD]=Ft[ED]=Ft[GD]=Ft[LD]=Ft[qD]=Ft[VD]=Ft[RD]=Ft[FD]=Ft[ND]=Ft[HD]=Ft[zD]=Ft[jD]=Ft[WD]=Ft[UD]=Ft[KD]=!1;function oE(t){return ID(t)&&MD(t.length)&&!!Ft[BD(t)]}var iE=oE;function sE(t){return function(e){return t(e)}}var Fd=sE,Ec={exports:{}};Ec.exports;(function(t,e){var n=DC,r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i&&n.process,l=function(){try{var a=o&&o.require&&o.require("util").types;return a||s&&s.binding&&s.binding("util")}catch{}}();t.exports=l})(Ec,Ec.exports);var Nd=Ec.exports,lE=iE,aE=Fd,ry=Nd,oy=ry&&ry.isTypedArray,uE=oy?aE(oy):lE,HC=uE,cE=fD,dE=Vd,fE=Jr,hE=Mm,pE=Rd,mE=HC,gE=Object.prototype,vE=gE.hasOwnProperty;function yE(t,e){var n=fE(t),r=!n&&dE(t),o=!n&&!r&&hE(t),i=!n&&!r&&!o&&mE(t),s=n||r||o||i,l=s?cE(t.length,String):[],a=l.length;for(var u in t)(e||vE.call(t,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||pE(u,a)))&&l.push(u);return l}var zC=yE,bE=Object.prototype;function SE(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||bE;return t===n}var Dm=SE;function CE(t,e){return function(n){return t(e(n))}}var jC=CE,wE=jC,kE=wE(Object.keys,Object),xE=kE,$E=Dm,AE=xE,TE=Object.prototype,_E=TE.hasOwnProperty;function OE(t){if(!$E(t))return AE(t);var e=[];for(var n in Object(t))_E.call(t,n)&&n!="constructor"&&e.push(n);return e}var PE=OE,BE=Dd,ME=Im;function IE(t){return t!=null&&ME(t.length)&&!BE(t)}var Hd=IE,DE=zC,EE=PE,LE=Hd;function VE(t){return LE(t)?DE(t):EE(t)}var Em=VE,RE=pl,FE=Em;function NE(t,e){return t&&RE(e,FE(e),t)}var HE=NE;function zE(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var jE=zE,WE=nr,UE=Dm,KE=jE,GE=Object.prototype,qE=GE.hasOwnProperty;function YE(t){if(!WE(t))return KE(t);var e=UE(t),n=[];for(var r in t)r=="constructor"&&(e||!qE.call(t,r))||n.push(r);return n}var XE=YE,JE=zC,QE=XE,ZE=Hd;function eL(t){return ZE(t)?JE(t,!0):QE(t)}var Ga=eL,tL=pl,nL=Ga;function rL(t,e){return t&&tL(e,nL(e),t)}var oL=rL,Lc={exports:{}};Lc.exports;(function(t,e){var n=Br,r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i?n.Buffer:void 0,l=s?s.allocUnsafe:void 0;function a(u,c){if(c)return u.slice();var d=u.length,f=l?l(d):new u.constructor(d);return u.copy(f),f}t.exports=a})(Lc,Lc.exports);var WC=Lc.exports;function iL(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++no?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=r?t:qF(t,e,n)}var XF=YF,JF="\\ud800-\\udfff",QF="\\u0300-\\u036f",ZF="\\ufe20-\\ufe2f",eN="\\u20d0-\\u20ff",tN=QF+ZF+eN,nN="\\ufe0e\\ufe0f",rN="\\u200d",oN=RegExp("["+rN+JF+tN+nN+"]");function iN(t){return oN.test(t)}var bw=iN;function sN(t){return t.split("")}var lN=sN,Sw="\\ud800-\\udfff",aN="\\u0300-\\u036f",uN="\\ufe20-\\ufe2f",cN="\\u20d0-\\u20ff",dN=aN+uN+cN,fN="\\ufe0e\\ufe0f",hN="["+Sw+"]",Kh="["+dN+"]",Gh="\\ud83c[\\udffb-\\udfff]",pN="(?:"+Kh+"|"+Gh+")",Cw="[^"+Sw+"]",ww="(?:\\ud83c[\\udde6-\\uddff]){2}",kw="[\\ud800-\\udbff][\\udc00-\\udfff]",mN="\\u200d",xw=pN+"?",$w="["+fN+"]?",gN="(?:"+mN+"(?:"+[Cw,ww,kw].join("|")+")"+$w+xw+")*",vN=$w+xw+gN,yN="(?:"+[Cw+Kh+"?",Kh,ww,kw,hN].join("|")+")",bN=RegExp(Gh+"(?="+Gh+")|"+yN+vN,"g");function SN(t){return t.match(bN)||[]}var CN=SN,wN=lN,kN=bw,xN=CN;function $N(t){return kN(t)?xN(t):wN(t)}var AN=$N,TN=XF,_N=bw,ON=AN,PN=qa;function BN(t){return function(e){e=PN(e);var n=_N(e)?ON(e):void 0,r=n?n[0]:e.charAt(0),o=n?TN(n,1).join(""):e.slice(1);return r[t]()+o}}var MN=BN,IN=MN,DN=IN("toUpperCase"),Aw=DN,EN=qa,LN=Aw;function VN(t){return LN(EN(t).toLowerCase())}var RN=VN,FN=RN,NN=Hm,HN=NN(function(t,e,n){return e=e.toLowerCase(),t+(n?FN(e):e)}),zN=HN;const jN=an(zN);function WN(t){return t==null}var UN=WN;const kr=an(UN);var KN=Br,GN=function(){return KN.Date.now()},qN=GN,YN=/\s/;function XN(t){for(var e=t.length;e--&&YN.test(t.charAt(e)););return e}var JN=XN,QN=JN,ZN=/^\s+/;function eH(t){return t&&t.slice(0,QN(t)+1).replace(ZN,"")}var tH=eH,nH=tH,Ty=nr,rH=zd,_y=NaN,oH=/^[-+]0x[0-9a-f]+$/i,iH=/^0b[01]+$/i,sH=/^0o[0-7]+$/i,lH=parseInt;function aH(t){if(typeof t=="number")return t;if(rH(t))return _y;if(Ty(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ty(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=nH(t);var n=iH.test(t);return n||sH.test(t)?lH(t.slice(2),n?2:8):oH.test(t)?_y:+t}var Tw=aH,uH=nr,Rf=qN,Oy=Tw,cH="Expected a function",dH=Math.max,fH=Math.min;function hH(t,e,n){var r,o,i,s,l,a,u=0,c=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(cH);e=Oy(e)||0,uH(n)&&(c=!!n.leading,d="maxWait"in n,i=d?dH(Oy(n.maxWait)||0,e):i,f="trailing"in n?!!n.trailing:f);function h($){var C=r,T=o;return r=o=void 0,u=$,s=t.apply(T,C),s}function p($){return u=$,l=setTimeout(b,e),c?h($):s}function v($){var C=$-a,T=$-u,_=e-C;return d?fH(_,i-T):_}function y($){var C=$-a,T=$-u;return a===void 0||C>=e||C<0||d&&T>=i}function b(){var $=Rf();if(y($))return S($);l=setTimeout(b,v($))}function S($){return l=void 0,f&&r?h($):(r=o=void 0,s)}function w(){l!==void 0&&clearTimeout(l),u=0,r=a=o=l=void 0}function x(){return l===void 0?s:S(Rf())}function k(){var $=Rf(),C=y($);if(r=arguments,o=this,a=$,C){if(l===void 0)return p(a);if(d)return clearTimeout(l),l=setTimeout(b,e),h(a)}return l===void 0&&(l=setTimeout(b,e)),s}return k.cancel=w,k.flush=x,k}var _w=hH;const zm=an(_w);var pH=Jr,mH=zd,gH=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vH=/^\w*$/;function yH(t,e){if(pH(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||mH(t)?!0:vH.test(t)||!gH.test(t)||e!=null&&t in Object(e)}var bH=yH,Ow=VC,SH="Expected a function";function jm(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(SH);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(jm.Cache||Ow),n}jm.Cache=Ow;var CH=jm,wH=CH,kH=500;function xH(t){var e=wH(t,function(r){return n.size===kH&&n.clear(),r}),n=e.cache;return e}var $H=xH,AH=$H,TH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_H=/\\(\\)?/g,OH=AH(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(TH,function(n,r,o,i){e.push(o?i.replace(_H,"$1"):r||n)}),e}),PH=OH,BH=Jr,MH=bH,IH=PH,DH=qa;function EH(t,e){return BH(t)?t:MH(t,e)?[t]:IH(DH(t))}var gl=EH,LH=zd,VH=1/0;function RH(t){if(typeof t=="string"||LH(t))return t;var e=t+"";return e=="0"&&1/t==-VH?"-0":e}var jd=RH,FH=gl,NH=jd;function HH(t,e){e=FH(e,t);for(var n=0,r=e.length;t!=null&&n0&&n(l)?e>1?Bw(l,e-1,n,r,o):C3(o,l):r||(o[o.length]=l)}return o}var k3=Bw,x3=k3;function $3(t){var e=t==null?0:t.length;return e?x3(t,1):[]}var Mw=$3;const Iy=an(Mw);function A3(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var T3=A3,_3=T3,Dy=Math.max;function O3(t,e,n){return e=Dy(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Dy(r.length-e,0),s=Array(i);++o0){if(++e>=V3)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var H3=N3,z3=L3,j3=H3,W3=j3(z3),Ew=W3,U3=Mw,K3=Iw,G3=Ew;function q3(t){return G3(K3(t,void 0,U3),t+"")}var Lw=q3,Y3=g3,X3=Lw,J3=X3(function(t,e){return t==null?{}:Y3(t,e)}),Q3=J3;const Bt=an(Q3);var Z3=go,e4=Jr,t4=Mr,n4="[object String]";function r4(t){return typeof t=="string"||!e4(t)&&t4(t)&&Z3(t)==n4}var o4=r4;const Vc=an(o4);var i4=Pm,s4=Bd;function l4(t,e,n){(n!==void 0&&!s4(t[e],n)||n===void 0&&!(e in t))&&i4(t,e,n)}var Vw=l4;function a4(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),l=s.length;l--;){var a=s[t?l:++o];if(n(i[a],a,i)===!1)break}return e}}var u4=a4,c4=u4,d4=c4(),f4=d4,h4=Hd,p4=Mr;function m4(t){return p4(t)&&h4(t)}var g4=m4,v4=go,y4=Rm,b4=Mr,S4="[object Object]",C4=Function.prototype,w4=Object.prototype,Rw=C4.toString,k4=w4.hasOwnProperty,x4=Rw.call(Object);function $4(t){if(!b4(t)||v4(t)!=S4)return!1;var e=y4(t);if(e===null)return!0;var n=k4.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Rw.call(n)==x4}var Fw=$4;function A4(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Nw=A4,T4=pl,_4=Ga;function O4(t){return T4(t,_4(t))}var P4=O4,Ly=Vw,B4=WC,M4=JC,I4=UC,D4=QC,Vy=Vd,Ry=Jr,E4=g4,L4=Mm,V4=Dd,R4=nr,F4=Fw,N4=HC,Fy=Nw,H4=P4;function z4(t,e,n,r,o,i,s){var l=Fy(t,n),a=Fy(e,n),u=s.get(a);if(u){Ly(t,n,u);return}var c=i?i(l,a,n+"",t,e,s):void 0,d=c===void 0;if(d){var f=Ry(a),h=!f&&L4(a),p=!f&&!h&&N4(a);c=a,f||h||p?Ry(l)?c=l:E4(l)?c=I4(l):h?(d=!1,c=B4(a,!0)):p?(d=!1,c=M4(a,!0)):c=[]:F4(a)||Vy(a)?(c=l,Vy(l)?c=H4(l):(!R4(l)||V4(l))&&(c=D4(a))):d=!1}d&&(s.set(a,c),o(c,a,r,i,s),s.delete(a)),Ly(t,n,c)}var j4=z4,W4=RC,U4=Vw,K4=f4,G4=j4,q4=nr,Y4=Ga,X4=Nw;function Hw(t,e,n,r,o){t!==e&&K4(e,function(i,s){if(o||(o=new W4),q4(i))G4(t,e,s,n,Hw,r,o);else{var l=r?r(X4(t,s),i,s+"",t,e,o):void 0;l===void 0&&(l=i),U4(t,s,l)}},Y4)}var J4=Hw,Q4=Dw,Z4=Iw,ez=Ew;function tz(t,e){return ez(Z4(t,e,Q4),t+"")}var nz=tz,rz=Bd,oz=Hd,iz=Rd,sz=nr;function lz(t,e,n){if(!sz(n))return!1;var r=typeof e;return(r=="number"?oz(n)&&iz(e,n.length):r=="string"&&e in n)?rz(n[e],t):!1}var az=lz,uz=nz,cz=az;function dz(t){return uz(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,s&&cz(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++r1),i}),Lz(t,Fz(t),n),r&&(n=Iz(n,Nz|Hz|zz,Vz));for(var o=e.length;o--;)Dz(n,e[o]);return n}),Wz=jz;const vo=an(Wz);function Uz(t,e,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),e!==void 0&&(t=t>=e?t:e)),t}var Kz=Uz,Gz=Kz,Ff=Tw;function qz(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=Ff(n),n=n===n?n:0),e!==void 0&&(e=Ff(e),e=e===e?e:0),Gz(Ff(t),e,n)}var Yz=qz;const Ki=an(Yz);function Xz(){}var Jz=Xz;const Qz=an(Jz);var Zz=_w,e8=nr,t8="Expected a function";function n8(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError(t8);return e8(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Zz(t,e,{leading:r,maxWait:e,trailing:o})}var r8=n8;const zw=an(r8);var o8=Hm,i8=Aw,s8=o8(function(t,e,n){return t+(n?" ":"")+i8(e)}),l8=s8;const Ny=an(l8);var a8=go,u8=Mr,c8="[object Date]";function d8(t){return u8(t)&&a8(t)==c8}var f8=d8,h8=f8,p8=Fd,Hy=Nd,zy=Hy&&Hy.isDate,m8=zy?p8(zy):h8,g8=m8;const sa=an(g8);var v8=go,y8=Mr,b8="[object Number]";function S8(t){return typeof t=="number"||y8(t)&&v8(t)==b8}var C8=S8;const jy=an(C8),Yh="child:",Wm="$va:childComponents",jw=t=>Object.keys(t).reduce((e,n)=>{const r=`${Yh}${n}`;return e[r]={type:Object,required:!1,default:void 0},e},{}),Ww=t=>{const e=g(()=>Object.keys(t).reduce((r,o)=>{if(o.startsWith(Yh)){const i=o.slice(Yh.length);r[i]=t[o]}return r},{}));Pr(Wm,e)},Uw=()=>{var t;const e=(t=_t())==null?void 0:t.attrs["va-child"];if(!e)return null;const n=Mn(Wm);return n!=null&&n.value?g(()=>n.value[e]):null},w8=()=>{var t;const e=(t=_t())==null?void 0:t.attrs["va-child"];if(!e)return null;const n=Mn(Wm);return n!=null&&n.value?g(()=>{var r;return(r=n.value[e])==null?void 0:r.preset}):null},k8=/([a-z0-9])([A-Z])/g,x8=t=>t.replace(k8,"$1-$2").toLowerCase(),$8=(t,e)=>e in t?t[e]:t[x8(e)],A8=(t,e)=>{const n=t.props,r=Uw();return new Proxy(n,{get:(o,i)=>{var s,l;if(typeof i!="string")return o[i];const a=(s=r==null?void 0:r.value)==null?void 0:s[i];if(a!==void 0)return a;const u=t.vnode.props||{},c=o[i];if($8(u,i)!==void 0)return c;const f=(l=e.value)==null?void 0:l[i];return f!==void 0?f:c}})},T8=(t,e)=>{const n=t.attrs;return new Proxy(n,{get:(r,o)=>{var i;if(typeof o!="string")return r[o];if(o==="class")return Ae([e.value.class,n.class]);if(o==="style")return se([e.value.style,n.style]);const s=(i=e.value)==null?void 0:i[o];return s!==void 0?s:r[o]},ownKeys(r){return[...new Set([...Object.keys(n),...Object.keys(e.value)])]},getOwnPropertyDescriptor(r,o){return Reflect.getOwnPropertyDescriptor(e.value,o)??Reflect.getOwnPropertyDescriptor(n,o)}})},Nf="slot:",_8=(t,e)=>{const n=t.slots,r=Uw(),o=g(()=>Object.keys(e.value).reduce((i,s)=>(s.startsWith(Nf)&&(i[s.slice(Nf.length)]=e.value[s]),i),{}));return new Proxy(n,{get:(i,s)=>{var l,a;if(typeof s!="string")return i[s];const u=`${Nf}${s}`,c=(l=r==null?void 0:r.value)==null?void 0:l[u];if(c!==void 0)return Fh(qv(c));const d=i[s];if(d!==void 0)return d;const f=(a=o.value)==null?void 0:a[s];return f!==void 0?Fh(qv(f)):d},ownKeys(i){return[...new Set([...Object.keys(n),...Object.keys(o.value)])]},getOwnPropertyDescriptor(i,s){return Reflect.getOwnPropertyDescriptor(o.value,s)??Reflect.getOwnPropertyDescriptor(n,s)}})},Kw="VaLocalConfig",O8=g(()=>[]);function Um(){return Mn(Kw,O8)}function Gw(t){Pr(Kw,t)}function P8(t){const e=Um(),n=g(()=>[...e.value,t.value]);Gw(n)}const B8=typeof process<"u"?process:{},M8=B8.env||{},I8=M8.NODE_ENV||"",vl=typeof __DEV__<"u"?__DEV__:!["prod","production"].includes(I8),pt=(...t)=>(vl&&console.warn(...t),!1),D8=t=>{throw new Error(`[Vuestic] ${t}`)};let Xh=null,Ml=null;const Wy=t=>{(Ml==null?void 0:Ml._instance)===null&&(Ml=null),!(t===null&&Ml===null)&&(Ml=Xh,Xh=t)},qw=()=>Xh,Yw=(t,e=void 0)=>{var n;const r=(n=qw())==null?void 0:n._context.provides[t];return _t()?Mn(t,e):r??D8("You're using Vuestic composable outside Vue app. Since you registered Vuestic in multiple apps, composables can not be used outside setup function anymore.")},xu=t=>t&&typeof t=="object"&&!Array.isArray(t),Rc=(t,e)=>!xu(t)||!xu(e)?e:(Object.keys(e).forEach(n=>{const r=t[n],o=e[n];xu(r)&&xu(o)?t[n]=Rc(Object.create(Object.getPrototypeOf(r),Object.getOwnPropertyDescriptors(r)),o):t[n]=o}),t),E8=[{prefix:"bg",property:"background-color"},{prefix:"text",property:["color","fill"]}],L8=()=>E8,Xw=t=>({...t,get variables(){return this.presets[this.currentPresetName]},set variables(e){this.presets[this.currentPresetName]=e}}),V8=()=>Xw({threshold:150,presets:{light:ov.light,dark:ov.dark},currentPresetName:"light"}),R8=[{name:"va-unsorted",to:"swap_vert"},{name:"va-sort-asc",to:"va-arrow-up"},{name:"va-sort-desc",to:"va-arrow-down"},{name:"va-arrow-first",to:"mi-first_page"},{name:"va-arrow-last",to:"mi-last_page"},{name:"va-arrow-right",to:"mi-chevron_right"},{name:"va-arrow-left",to:"mi-chevron_left"},{name:"va-arrow-down",to:"mi-expand_more"},{name:"va-arrow-up",to:"mi-expand_less"},{name:"va-calendar",to:"mi-calendar_today"},{name:"va-delete",to:"mi-delete_outline"},{name:"va-check",to:"mi-check"},{name:"va-check-circle",to:"mi-check_circle"},{name:"va-warning",to:"mi-warning"},{name:"va-clear",to:"mi-highlight_off"},{name:"va-close",to:"mi-close"},{name:"va-loading",to:"mi-loop"},{name:"va-plus",to:"add"},{name:"va-minus",to:"remove"}],F8=[{name:"mi-{icon}",class:"material-icons",resolve:({icon:t})=>({content:t})},{name:"{icon}",class:"material-icons",resolve:({icon:t})=>({content:t})}],N8=t=>(t.aliases=t.aliases||[],t.fonts=t.fonts||[],[...t.aliases,...R8,...t.fonts,...F8]),H8=()=>N8({}),z8=()=>({VaIcon:{sizesConfig:{defaultSize:18,sizes:{small:14,medium:18,large:24}}},VaRating:{sizesConfig:{defaultSize:18,sizes:{small:14,medium:18,large:24}}},all:{},presets:{VaButton:{default:{backgroundOpacity:1,hoverBehavior:"mask",hoverOpacity:.15,pressedBehavior:"mask",pressedOpacity:.13},primary:{backgroundOpacity:.1,hoverBehavior:"opacity",hoverOpacity:.07,pressedBehavior:"opacity",pressedOpacity:.13},secondary:{backgroundOpacity:0,hoverBehavior:"opacity",hoverOpacity:.07,pressedBehavior:"opacity",pressedOpacity:.13},plain:{plain:!0,hoverBehavior:"mask",hoverOpacity:.15,pressedBehavior:"mask",pressedOpacity:.13},plainOpacity:{plain:!0,textOpacity:.6,hoverBehavior:"opacity",hoverOpacity:1,pressedBehavior:"opacity",pressedOpacity:.9}},VaInputWrapper:{solid:{background:"backgroundElement"},bordered:{class:"va-input-wrapper--bordered",background:"backgroundElement"}},VaCheckbox:{solid:{style:"--va-checkbox-background: var(--va-background-element)"}},VaRadio:{solid:{style:"--va-radio-background: var(--va-background-element)"}},VaMenu:{context:{cursor:!0,placement:"right-start",trigger:"right-click"}}}}),j8=()=>({search:"Search",noOptions:"Items not found",ok:"OK",cancel:"Cancel",uploadFile:"Upload file",undo:"Undo",dropzone:"Drop files here to upload",fileDeleted:"File deleted",closeAlert:"close alert",backToTop:"back to top",toggleDropdown:"toggle dropdown",carousel:"carousel",goPreviousSlide:"go previous slide",goNextSlide:"go next slide",goSlide:"go slide {index}",slideOf:"slide {index} of {length}",close:"close",openColorPicker:"open color picker",colorSelection:"color selection",colorName:"color {color}",decreaseCounter:"decrease counter",increaseCounter:"increase counter",selectAllRows:"select all rows",sortColumnBy:"sort column by {name}",selectRowByIndex:"select row {index}",resetDate:"reset date",nextPeriod:"next period",switchView:"switch view",previousPeriod:"previous period",removeFile:"remove file",reset:"reset",pagination:"pagination",goToTheFirstPage:"go to the first page",goToPreviousPage:"go to the previous page",goToSpecificPage:"go to the {page} page",goToSpecificPageInput:"enter the page number to go",goNextPage:"go next page",goLastPage:"go last page",currentRating:"current rating {value} of {max}",voteRating:"vote rating {value} of {max}",optionsFilter:"options filter",splitPanels:"split panels",movePaginationLeft:"move pagination left",movePaginationRight:"move pagination right",resetTime:"reset time",closeToast:"close toast",selectedOption:"Selected option",noSelectedOption:"Option is not selected",breadcrumbs:"breadcrumbs",counterValue:"counter value",selectedDate:"selected date",selectedTime:"selected time",progressState:"progress state",color:"color",next:"Next",back:"Previous",finish:"Finish",step:"step",progress:"progress",loading:"Loading",sliderValue:"Current slider value is {value}",switch:"Switch",inputField:"Input field"}),Wd=Symbol("GLOBAL_CONFIG"),W8=()=>({colors:V8(),icons:H8(),components:z8(),breakpoint:C_(),i18n:j8(),colorsClasses:L8(),routerComponent:void 0}),Jw=(t={})=>{const e=W(Rc(W8(),t));return{getGlobalConfig:()=>e.value,setGlobalConfig:i=>{const s=typeof i=="function"?i(e.value):i;e.value=Uh(s)},mergeGlobalConfig:i=>{const s=typeof i=="function"?i(e.value):i;e.value=Rc(Uh(e.value),s)},globalConfig:e}},U8=t=>{var e,n;const r=((e=_t())==null?void 0:e.appContext.provides)||((n=qw())==null?void 0:n._context.provides);if(!r)throw new Error("Vue app not found for provide");return r[Wd]=t,t};function yo(){let t=Yw(Wd);return t||(t=Jw(),U8(t)),t}const K8=(t,e)=>{const n=Um(),{globalConfig:r}=yo(),o=g(()=>e.preset),i=l=>{var a,u,c;return(c=(u=(a=r.value.components)==null?void 0:a.presets)==null?void 0:u[t.name])==null?void 0:c[l]},s=w8();return g(()=>{var l,a;const u={...(l=r.value.components)==null?void 0:l.all,...(a=r.value.components)==null?void 0:a[t.name]},c=n.value.reduce((h,p)=>p[t.name]?{...h,...p[t.name]}:h,{}),d=(s==null?void 0:s.value)||o.value||c.preset||u.preset,f=d&&i(d);return{...u,...c,...f}})},G8=t=>(e,n)=>{var r;const o=_t(),i=K8(t,e),s=g(()=>vo(i.value,Object.keys(e))),l=A8(o,i),a=T8(o,s),u=_8(o,i);o.props=l,o.attrs=a,o.slots=u;const c=(r=t.setup)==null?void 0:r.call(t,Ti(l),{...n,attrs:a,slots:u});return typeof c=="object"&&!o.exposed&&n.expose(c),c},Jh=t=>{const e=G8(t),n=iB(t);return new Proxy(t,{get(r,o){return o in t?o==="setup"?e:o==="render"||o==="ssrRender"?n:Reflect.get(r,o):Reflect.get(r,o)}})},Qh="__c",q8=t=>(t[Qh]=Jh(t[Qh]),t),bo=t=>"setup"in t?Jh(t):Qh in t?q8(t):(t.setup=()=>({}),Jh(t)),me=bo,Y8={defaultSize:48,sizes:{small:32,medium:48,large:64}},X8={defaultSize:1,sizes:{small:.75,medium:1,large:1.25}},ss={size:{type:[String,Number],default:"",validator:t=>typeof t=="string"||typeof t=="number"},sizesConfig:{type:Object,default:()=>Y8},fontSizesConfig:{type:Object,default:()=>X8}},J8=/(?\d+)(?px|rem)/i,Uy=t=>t/16-.5,Ky=t=>typeof t=="number"?`${t}px`:String(t),Q8=t=>"sizesConfig"in t,Z8=t=>{const e="size";return g(()=>{let n=t[e];if(Q8(t)){const{defaultSize:r,sizes:o}=t.sizesConfig;if(kr(n)&&(n=r),o){const i=o[n];if(i)return Ky(i)}}return Ky(n)})},ls=(t,e=(n=>(n=_t())==null?void 0:n.type.name)())=>{const{getGlobalConfig:n}=yo(),r=g(()=>{var l,a;return e?(a=(l=n().components)==null?void 0:l[e])==null?void 0:a.sizesConfig:void 0}),o=g(()=>{var l,a,u;const{defaultSize:c,sizes:d}=t.sizesConfig,f=(l=r.value)==null?void 0:l.defaultSize;if(!t.size)return`${c||f}px`;if(typeof t.size=="string"){const h=(u=(a=r.value)==null?void 0:a.sizes)==null?void 0:u[t.size],p=d[t.size];return p?`${p}px`:h?`${h}px`:t.size}return`${t.size}px`}),i=g(()=>{const{defaultSize:l,sizes:a}=t.fontSizesConfig;if(!t.size)return l;if(typeof t.size=="string"){if(t.size in a)return a[t.size];const u=t.size.match(J8);if(!u||!u.groups)throw new Error("Size prop should be either valid string or number");const{extension:c,fontSize:d}=u.groups;return c==="rem"?+d:Uy(+d)}return Uy(t.size)}),s=g(()=>`${i.value}rem`);return{sizeComputed:o,fontSizeComputed:s,fontSizeInRem:i}},Me={preset:{type:String,default:void 0}},e6=(t,e)=>e.test(t),Qw=(t,e)=>{if(typeof e!="string"&&e.global)return[...t.matchAll(e)].map(r=>r.slice(1));const n=t.match(e)||[];return n?n.length>1?n.slice(1):n:[]},Zw=/{[^}]*}/g,ek=t=>t.replace(Zw,"(.*)"),t6=t=>(t.match(Zw)||[]).map(e=>e.replace(/{|}/g,"")),n6=(t,e)=>Qw(t,ek(e)),r6=(t,e)=>{const n=t6(e),r=n6(t,e);return n.reduce((o,i,s)=>({...o,[i]:r[s]}),{})},o6=(t,e)=>(t.match(e)||[])[0]===t,i6=(t,e)=>{const n=ek(e);return o6(t,new RegExp(n))},tk=t=>typeof t.name=="string",nk=t=>t.name instanceof RegExp,s6=(t,e)=>tk(e)?i6(t,e.name):nk(e)?e6(t,e.name):!1,l6=(t,e)=>{const n=r6(t,e.name);return e.resolve&&e.resolve(n)},a6=(t,e)=>{if(e.name.global)throw new Error(`Bad icon config with name ${e.name}. Please, don't use global regex as name.`);const n=Qw(t,e.name);return e.resolveFromRegex&&e.resolveFromRegex(...n)},u6=(t,e)=>{if(tk(e))return l6(t,e);if(nk(e))return a6(t,e);throw Error("Unknown icon config")},c6=(t,e,n=[])=>{const r=e.find(o=>n.includes(o.name.toString())?!1:s6(t,o));if(!r)throw new Error(`Can not find icon config from ${t}. Please provide default config.`);return r},rk=(t,e,n=[])=>{if(!t)return;const r=c6(t,e,n),o=qh(u6(t,r),r);return n=[...n,r.name.toString()],qh(rk(o.to,e,n),o)},d6=t=>{const e=["name","to","resolve","resolveFromRegex"],n=t;return e.forEach(r=>{delete n[r]}),n},f6=(t,e)=>{const n=rk(t,e);return n===void 0?{}:d6(n)},h6=()=>{const{globalConfig:t}=yo();return{getIcon:e=>f6(e,t.value.icons)}},So=t=>t,ok=Symbol("VaAppCachePlugin"),p6=So(()=>({install(t){const e={colorContrast:{}};t.provide(ok,e)}})),m6=()=>{const t=Yw(ok);return t||{colorContrast:{}}},ik=t=>{const e=g(t),n=new Proxy(e,{get(r,o,i){if(typeof e.value=="object")return m(Reflect.get(e.value,o,i))},set(r,o,i){return Tt(e.value[o])&&!Tt(i)?e.value[o].value=i:e.value[o]=i,!0},deleteProperty(r,o){return Reflect.deleteProperty(e.value,o)},has(r,o){return typeof e.value!="object"?!1:Reflect.has(e.value,o)},ownKeys(){return typeof e.value!="object"?[]:Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ar(n)};var ht=function(){return ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=6&&(n-=6),n<1?Math.round(255*((e-t)*n+t)):n<3?Math.round(255*e):n<4?Math.round(255*((e-t)*(4-n)+t)):Math.round(255*t)},dn=function(t,e,n){e/=100;var r=(n/=100)<=.5?n*(e+1):n+e-n*e,o=2*n-r;return{r:Hf(o,r,(t/=60)+2),g:Hf(o,r,t),b:Hf(o,r,t-2)}},Km=function(t,e,n,r){return r=1-r,{r:Math.round(255*(1-t)*r),g:Math.round(255*(1-e)*r),b:Math.round(255*(1-n)*r)}},ep=function(t,e,n){t/=255,e/=255,n/=255;var r=1-Math.max(t,e,n),o=1-r,i=(o-t)/o,s=(o-e)/o,l=(o-n)/o;return{c:Math.round(100*i),m:Math.round(100*s),y:Math.round(100*l),k:Math.round(100*r)}},Us=function(t,e,n,r){r===void 0&&(r=1),t/=255,e/=255,n/=255,r=Math.min(r,1);var o=Math.max(t,e,n),i=Math.min(t,e,n),s=o-i,l=0,a=0,u=(o+i)/2;if(s===0)l=0,a=0;else{switch(o){case t:l=(e-n)/s%6;break;case e:l=(n-t)/s+2;break;case n:l=(t-e)/s+4}(l=Math.round(60*l))<0&&(l+=360),a=s/(1-Math.abs(2*u-1))}return{h:l,s:Math.round(100*a),l:Math.round(100*u),a:r}},qy=function(t,e){if(t<0&&(t+=360),t>360&&(t-=360),t===360||t===0)return t;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],o=e?r:n,i=0,s=0,l=0,a=0;return(e?n:r).find(function(u,c){return t>=u[0]&&t360||t<0)&&(t-=360*Math.floor(t/360)),t},_n=function(t){return typeof t=="string"&&(t=co.test(t)?+t.replace(co,"$1")/100:+t),isNaN(+t)||t>1?1:tt(t,6)},yl=function(t,e,n){return e.reduce(function(r,o){return Gy(Gy([],r,!0),[ht(ht({},t),{h:n===Rn.ADDITIVE?xa(t.h+o):xa(qy(qy(t.h,!1)+o,!0))})],!1)},[ht({},t)])},b6=function(t,e){return yl(t,[30,-30],e)},S6=function(t,e){return yl(t,[180],e)},C6=function(t,e){return yl(t,[150,-150],e)},w6=function(t,e){return yl(t,[120,-120],e)},k6=function(t,e){return yl(t,[60,-120,180],e)},x6=function(t,e){return yl(t,[90,-90,180],e)},Yy=Object.entries(rt).reduce(function(t,e){var n=e[0],r=e[1];if(n!==rt.HEX){var o=lk(n.split(""));t[o]=r,t["A"+o]=r}return t},{}),ir=function(t){return typeof t=="string"?function(e){var n;if(Object.keys(rt).some(function(r){if(Kl[r].test(e))return n=r,!0}),!n&&~sk.indexOf(e)&&(n=rt.HEX),!n)throw new Error(v6);return n}(t):function(e){var n,r=!1,o=lk(Object.keys(e));if(Yy[o]&&(n=Yy[o]),n&&n===rt.RGB){var i=Object.entries(e).some(function(l){return!Zh.test("".concat(l[1]))}),s=Object.entries(e).some(function(l){return!(co.test("".concat(l[1]))||!Zh.test("".concat(l[1]))&&!isNaN(+l[1])&&+l[1]<=255)});i&&s&&(r=!0),i||(n=rt.HEX)}if(!n||r)throw new Error(y6);return n}(t)},$6=((El={})[rt.HEX]=function(t){var e=(~sk.indexOf(t)?Fc[t]:t).match(Kl.HEX),n={r:$u(e[1]||e[5]),g:$u(e[2]||e[6]),b:$u(e[3]||e[7])},r=e[4]||e[8];return r!==void 0&&(n.a=$u(r)/255),n},El[rt.RGB]=function(t){var e=t.match(Kl.RGB),n=Ei(e[1]||e[5]),r=Ei(e[2]||e[6]),o=Ei(e[3]||e[7]),i=e[4]||e[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(o,255)};return i!==void 0&&(s.a=_n(i)),s},El[rt.HSL]=function(t){var e=t.match(Kl.HSL),n=xa(e[1]||e[5]),r=Nc(e[2]||e[6]),o=Nc(e[3]||e[7]),i=e[4]||e[8],s=dn(n,r,o);return i!==void 0&&(s.a=_n(i)),s},El[rt.CMYK]=function(t){var e=t.match(Kl.CMYK),n=jo(e[1]||e[6]),r=jo(e[2]||e[7]),o=jo(e[3]||e[8]),i=jo(e[4]||e[9]),s=e[5]||e[10],l=Km(n,r,o,i);return s!==void 0&&(l.a=_n(s)),l},El),A6=((Ll={})[rt.HEX]=function(t){var e={r:Ei("".concat(t.r)),g:Ei("".concat(t.g)),b:Ei("".concat(t.b))};return en(t,"a")&&(e.a=Math.min(Ei("".concat(t.a),!0),1)),e},Ll[rt.RGB]=function(t){return this.HEX(t)},Ll[rt.HSL]=function(t){var e=Nc("".concat(t.s)),n=Nc("".concat(t.l)),r=dn(xa(t.h),e,n);return en(t,"a")&&(r.a=_n(t.a)),r},Ll[rt.CMYK]=function(t){var e=jo("".concat(t.c)),n=jo("".concat(t.m)),r=jo("".concat(t.y)),o=jo("".concat(t.k)),i=Km(e,n,r,o);return en(t,"a")&&(i.a=_n(t.a)),i},Ll),Gi=function(t,e){return e===void 0&&(e=ir(t)),typeof t=="string"?$6[e](t):A6[e](t)},lt=((to={})[rt.HEX]=function(t){return{r:Au(t.r),g:Au(t.g),b:Au(t.b)}},to.HEXA=function(t){var e=lt.HEX(t);return e.a=en(t,"a")?Au(255*t.a):"0xFF",e},to[rt.RGB]=function(t){return en(t,"a")&&delete t.a,t},to.RGBA=function(t){return t.a=en(t,"a")?tt(t.a,2):1,t},to[rt.HSL]=function(t){var e=Us(t.r,t.g,t.b);return delete e.a,e},to.HSLA=function(t){var e=lt.HSL(t);return e.a=en(t,"a")?tt(t.a,2):1,e},to[rt.CMYK]=function(t){return ep(t.r,t.g,t.b)},to.CMYKA=function(t){var e=ep(t.r,t.g,t.b);return e.a=en(t,"a")?tt(t.a,2):1,e},to),Xy=function(t,e,n){var r=ir(t),o=typeof t=="string",i=Gi(t,r),s=typeof t=="string"&&en(i,"a")||typeof t!="string"&&en(t,"a"),l=Us(i.r,i.g,i.b,i.a);s||delete l.a;var a=n?l.l/(e+1):(100-l.l)/(e+1),u=Array(e).fill(null).map(function(c,d){return ht(ht({},l),{l:l.l+a*(d+1)*(1-2*+n)})});switch(r){case rt.HEX:default:return u.map(function(c){var d=dn(c.h,c.s,c.l);return s&&(d.a=c.a),o?s?st.HEX(ht(ht({},d),{a:tt(255*d.a,6)})):st.HEX(d):s?lt.HEXA(d):lt.HEX(d)});case rt.RGB:return u.map(function(c){var d=dn(c.h,c.s,c.l);return s&&(d.a=c.a),o?st.RGB(d):s?lt.RGBA(d):lt.RGB(d)});case rt.HSL:return u.map(function(c){return o?st.HSL(c):s?lt.HSLA(ht(ht({},dn(c.h,c.s,c.l)),{a:c.a})):lt.HSL(dn(c.h,c.s,c.l))})}},ms=((ki={buildHarmony:function(t,e,n){var r=ir(t),o=Gi(t,r),i=Us(o.r,o.g,o.b,o.a),s=typeof t=="string"&&en(o,"a")||typeof t!="string"&&en(t,"a"),l=typeof t=="string";switch(r){case rt.HEX:default:return s?this.HEXA(i,e,n,l):this.HEX(i,e,n,l);case rt.HSL:return s?this.HSLA(i,e,n,l):this.HSL(i,e,n,l);case rt.RGB:return s?this.RGBA(i,e,n,l):this.RGB(i,e,n,l)}}})[rt.HEX]=function(t,e,n,r){return e(t,n).map(function(o){return r?st.HEX(dn(o.h,o.s,o.l)):lt.HEX(dn(o.h,o.s,o.l))})},ki.HEXA=function(t,e,n,r){return e(t,n).map(function(o){return r?st.HEX(ht(ht({},dn(o.h,o.s,o.l)),{a:255*_n(o.a)})):lt.HEXA(ht(ht({},dn(o.h,o.s,o.l)),{a:_n(o.a)}))})},ki[rt.RGB]=function(t,e,n,r){return e(t,n).map(function(o){return r?st.RGB(dn(o.h,o.s,o.l)):lt.RGB(dn(o.h,o.s,o.l))})},ki.RGBA=function(t,e,n,r){return e(t,n).map(function(o){return r?st.RGB(ht(ht({},dn(o.h,o.s,o.l)),{a:_n(o.a)})):lt.RGBA(ht(ht({},dn(o.h,o.s,o.l)),{a:_n(o.a)}))})},ki[rt.HSL]=function(t,e,n,r){return e(t,n).map(function(o){return r?st.HSL({h:o.h,s:o.s,l:o.l}):lt.HSL(dn(o.h,o.s,o.l))})},ki.HSLA=function(t,e,n,r){return e(t,n).map(function(o){return r?st.HSL(ht(ht({},o),{a:_n(o.a)})):lt.HSLA(ht(ht({},dn(o.h,o.s,o.l)),{a:_n(o.a)}))})},ki),gs=((xi={mix:function(t,e){var n,r,o,i,s,l,a,u,c,d,f,h,p,v,y,b=t.map(function(k){var $=ir(k);return Gi(k,$)}),S=e===Rn.SUBTRACTIVE?b.map(function(k){var $,C,T,_,M,F,L,H,E,P,V,O,N,re,X=($=k.r,C=k.g,T=k.b,_=Math.min($,C,T),M=Math.min(255-$,255-C,255-T),F=$-_,L=C-_,H=T-_,E=Math.min(F,L),P=F-E,V=(L+E)/2,O=(H+L-E)/2,N=Math.max(P,V,O)/Math.max(F,L,H),re=isNaN(N)||N===1/0||N<=0?1:N,{r:P/re+M,y:V/re+M,b:O/re+M});return en(k,"a")&&(X.a=k.a),X}):null;function w(k){var $=e===Rn.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return k.reduce(function(C,T){var _=en(T,"a")?T.a:1,M={r:Math.min(C.r+T.r*_,255),b:Math.min(C.b+T.b*_,255),a:1-(1-_)*(1-C.a)},F="g"in C?C.g:C.y,L="g"in T?T.g:T.y;return ht(ht({},M),e===Rn.ADDITIVE?{g:Math.min(F+L*_,255)}:{y:Math.min(F+L*_,255)})},$)}if(e===Rn.ADDITIVE)n=w(b);else{var x=w(S);r=x.r,o=x.y,i=x.b,s=Math.min(r,o,i),l=Math.min(255-r,255-o,255-i),a=r-s,u=o-s,c=i-s,d=Math.min(u,c),f=a+u-d,h=u+d,p=2*(c-d),v=Math.max(f,h,p)/Math.max(a,u,c),y=isNaN(v)||v===1/0||v<=0?1:v,(n={r:f/y+l,g:h/y+l,b:p/y+l}).a=x.a}return{r:tt(n.r,2),g:tt(n.g,2),b:tt(n.b,2),a:br(n.a,0,1)}}})[rt.HEX]=function(t,e,n){var r=this.mix(t,e);return delete r.a,n?st.HEX(r):lt.HEX(r)},xi.HEXA=function(t,e,n){var r=this.mix(t,e);return r.a=n?255*_n(r.a):_n(r.a),n?st.HEX(r):lt.HEXA(r)},xi[rt.RGB]=function(t,e,n){var r=this.mix(t,e);return delete r.a,n?st.RGB(r):lt.RGB(r)},xi.RGBA=function(t,e,n){var r=this.mix(t,e);return n?st.RGB(r):lt.RGBA(r)},xi[rt.HSL]=function(t,e,n){var r=this.mix(t,e),o=Us(r.r,r.g,r.b);return delete r.a,delete o.a,n?st.HSL(o):lt.HSL(r)},xi.HSLA=function(t,e,n){var r=this.mix(t,e),o=Us(r.r,r.g,r.b,r.a);return n?st.HSL(o):lt.HSLA(r)},xi),Bo=function(t,e,n,r,o){var i=r(Gi(t,e));return n?o(i):i},vs=function(t,e,n,r,o,i){n<1&&(n=5);var s=function(l,a,u){var c=u-1,d=(a.r-l.r)/c,f=(a.g-l.g)/c,h=(a.b-l.b)/c,p=_n(l.a),v=(_n(a.a)-p)/c;return Array(u).fill(null).map(function(y,b){return b===0?l:b===c?a:{r:tt(l.r+d*b),g:tt(l.g+f*b),b:tt(l.b+h*b),a:tt(p+v*b,2)}})}(Gi(t),Gi(e),n);return s.map(function(l){var a=o(l);return r?i(a):a})},Gm=function(){function t(e){this.rgb=Gi(e),this.updateHSL(),this.updateCMYK()}return t.prototype.updateRGB=function(){this.rgb=ht(ht({},dn(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},t.prototype.updateRGBFromCMYK=function(){this.rgb=ht(ht({},Km(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},t.prototype.updateHSL=function(){this.hsl=Us(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},t.prototype.updateCMYK=function(){this.cmyk=ep(this.rgb.r,this.rgb.g,this.rgb.b)},t.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},t.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},t.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},t.prototype.setH=function(e){return this.hsl.h=xa(e),this.updateRGBAndCMYK()},t.prototype.setS=function(e){return this.hsl.s=br(e,0,100),this.updateRGBAndCMYK()},t.prototype.setL=function(e){return this.hsl.l=br(e,0,100),this.updateRGBAndCMYK()},t.prototype.setR=function(e){return this.rgb.r=br(e,0,255),this.updateHSLAndCMYK()},t.prototype.setG=function(e){return this.rgb.g=br(e,0,255),this.updateHSLAndCMYK()},t.prototype.setB=function(e){return this.rgb.b=br(e,0,255),this.updateHSLAndCMYK()},t.prototype.setA=function(e){return this.hsl.a=this.rgb.a=br(e,0,1),this},t.prototype.setC=function(e){return this.cmyk.c=br(e,0,100),this.updateRGBAndHSL()},t.prototype.setM=function(e){return this.cmyk.m=br(e,0,100),this.updateRGBAndHSL()},t.prototype.setY=function(e){return this.cmyk.y=br(e,0,100),this.updateRGBAndHSL()},t.prototype.setK=function(e){return this.cmyk.k=br(e,0,100),this.updateRGBAndHSL()},Object.defineProperty(t.prototype,"H",{get:function(){return tt(this.hsl.h)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"S",{get:function(){return tt(this.hsl.s)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"L",{get:function(){return tt(this.hsl.l)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R",{get:function(){return tt(this.rgb.r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"G",{get:function(){return tt(this.rgb.g)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"B",{get:function(){return tt(this.rgb.b)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"A",{get:function(){return tt(this.hsl.a,2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"C",{get:function(){return tt(this.cmyk.c)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"M",{get:function(){return tt(this.cmyk.m)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Y",{get:function(){return tt(this.cmyk.y)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"K",{get:function(){return tt(this.cmyk.k)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXObject",{get:function(){return lt.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXAObject",{get:function(){return lt.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBAObject",{get:function(){return ht(ht({},this.RGBObject),{a:this.hsl.a})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLAObject",{get:function(){return ht(ht({},this.HSLObject),{a:this.hsl.a})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKAObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K,a:this.hsl.a}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEX",{get:function(){var e=this.rgb,n={r:e.r,g:e.g,b:e.b};return st.HEX(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXA",{get:function(){var e=this.rgb,n={r:e.r,g:e.g,b:e.b,a:255*this.hsl.a};return st.HEX(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGB",{get:function(){var e=this.rgb,n={r:e.r,g:e.g,b:e.b};return st.RGB(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBA",{get:function(){var e=this.rgb,n={r:e.r,g:e.g,b:e.b,a:this.hsl.a};return st.RGB(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSL",{get:function(){var e=this.hsl,n={h:e.h,s:e.s,l:e.l};return st.HSL(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLA",{get:function(){return st.HSL(this.hsl)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYK",{get:function(){return st.CMYK(this.cmyk)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKA",{get:function(){return st.CMYK(ht(ht({},this.cmyk),{a:this.hsl.a}))},enumerable:!1,configurable:!0}),t.toHEX=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.HEX,st.HEX)},t.toHEXA=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.HEXA,st.HEX)},t.toRGB=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.RGB,st.RGB)},t.toRGBA=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.RGBA,st.RGB)},t.toHSL=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.HSL,st.HSL)},t.toHSLA=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.HSLA,st.HSL)},t.toCMYK=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.CMYK,st.CMYK)},t.toCMYKA=function(e,n){n===void 0&&(n=!0);var r=ir(e);return Bo(e,r,n,lt.CMYKA,st.CMYK)},t.getBlendHEX=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.HEX,st.HEX)},t.getBlendHEXA=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.HEXA,st.HEX)},t.getBlendRGB=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.RGB,st.RGB)},t.getBlendRGBA=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.RGBA,st.RGB)},t.getBlendHSL=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.HSL,st.HSL)},t.getBlendHSLA=function(e,n,r,o){return r===void 0&&(r=5),o===void 0&&(o=!0),vs(e,n,r,o,lt.HSLA,st.HSL)},t.getMixHEX=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.HEX(e,n,r)},t.getMixHEXA=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.HEXA(e,n,r)},t.getMixRGB=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.RGB(e,n,r)},t.getMixRGBA=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.RGBA(e,n,r)},t.getMixHSL=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.HSL(e,n,r)},t.getMixHSLA=function(e,n,r){return n===void 0&&(n=Rn.ADDITIVE),r===void 0&&(r=!0),gs.HSLA(e,n,r)},t.getShades=function(e,n){return Xy(e,n,!0)},t.getTints=function(e,n){return Xy(e,n,!1)},t.getHarmony=function(e,n,r){switch(n===void 0&&(n=Fo.COMPLEMENTARY),r===void 0&&(r=Rn.ADDITIVE),n){case Fo.ANALOGOUS:return ms.buildHarmony(e,b6,r);case Fo.SPLIT_COMPLEMENTARY:return ms.buildHarmony(e,C6,r);case Fo.TRIADIC:return ms.buildHarmony(e,w6,r);case Fo.TETRADIC:return ms.buildHarmony(e,k6,r);case Fo.SQUARE:return ms.buildHarmony(e,x6,r);default:return ms.buildHarmony(e,S6,r)}},t}();const $r=t=>{try{return new Gm(t)}catch(e){throw new Error(`Color ${t} is not valid. Please, provide valid color.`,{cause:e})}},T6=t=>/var\(--.+\)/.test(t),Hc=t=>`--va-${ka(t)}`,Jy=t=>jN(t),qm=(t,e)=>$r(t).setA(e).RGBA,Qy=t=>{const{R:e,G:n,B:r}=$r(t);return Math.sqrt(e*e*.241+n*n*.691+r*r*.068)},ak=(t,e=.4)=>$r(t).setA(e).RGBA,_6=(t,e=.4)=>$r(t).setA(e).RGBA,uk=(t,e=.2)=>$r(t).setA(e).RGBA,ck=(t,e=.3)=>$r(t).setA(e).RGBA,Oi=(t,e)=>{const n=$r(t);return e.h&&n.setH(n.H+e.h),e.s&&n.setS(n.S+e.s),e.l&&n.setL(n.L+e.l),e.a&&n.setA(n.A+e.a),n.HSLA},O6=(t,e)=>{const n=$r(t);return e.h!==void 0&&n.setH(e.h),e.s!==void 0&&n.setS(e.s),e.l!==void 0&&n.setL(e.l),e.a!==void 0&&n.setA(e.a),n.HSLA},P6=t=>{const e=Gm.toHSLA(t,!1);if(e.s<10)return Oi(e,{h:2,s:5,l:10});if(e.s<30)return Oi(e,{s:-14,l:11});if(e.h>=0&&e.h<44||e.h>=285)return Oi(e,{h:11,s:27,l:8});if(e.h>=44&&e.h<85)return Oi(e,{h:3,l:9});if(e.h>=85&&e.h<165)return Oi(e,{h:16,l:14});if(e.h>=165&&e.h<285)return Oi(e,{h:-15,s:3,l:2});throw new Error("This method should handle all colors. But it didn't for some reason.")},Ym=t=>{const e=P6(t),n=Gm.toHSLA(t);return`linear-gradient(to right, ${e}, ${n})`},B6=(t,e,n)=>{const r=qm(e,n);return`linear-gradient(0deg, ${r}, ${r}), ${t}`},M6=t=>/^#([\da-f]{3}){1,2}$|^#([\da-f]{4}){1,2}$|(rgb|hsl)a?\((\s*-?\d+%?\s*,){2}(\s*-?\d+%?\s*,?\s*\)?)(,\s*(0?\.\d+)?|1)?\)/.test(t.toLocaleLowerCase()),I6=(t,e)=>{const n=$r(t),r=$r(e),o=r.A;return o===1?r.RGBA:(o===0||(n.setR(Math.round(n.R*(1-o)+r.R*o)),n.setG(Math.round(n.G*(1-o)+r.G*o)),n.setB(Math.round(n.B*(1-o)+r.B*o))),n.RGBA)},D6=t=>t?t==="transparent"?!0:$r(t).A<=.1:!1,Xm={color:{type:String,default:""}},He=()=>{const t=yo();if(!t)throw new Error("useColors must be used in setup function or Vuestic GlobalConfigPlugin is not registered!");const{globalConfig:e}=t,n=ik({get:()=>e.value.colors.presets[e.value.colors.currentPresetName],set:y=>{r(y)}}),r=y=>{e.value.colors.presets[e.value.colors.currentPresetName]={...e.value.colors.variables,...y}},o=()=>n,i=(y,b,S)=>{if(b||(b=n.primary),y==="transparent")return"#ffffff00";if(y==="currentColor")return y;if(y!=null&&y.startsWith("on")){const x=y.slice(2);if(n[Jy(x)])return i(f(i(x)),void 0,S)}y||(y=i(b));const w=n[y]||n[Jy(y)];return w?S?`var(${Hc(y)})`:w:M6(y)||S&&T6(y)?y:(pt(`'${y}' is not a proper color! Use HEX or default color themes + names (https://vuestic.dev/en/styles/colors#default-color-themes)`),i(b))},s=y=>g({get(){return i(y)},set(b){r({[y]:b})}}),l=(y,b="va")=>Object.keys(y).filter(S=>y[S]!==void 0).reduce((S,w)=>(S[`--${b}-${ka(w)}`]=i(y[w],void 0,!0),S[`--${b}-on-${ka(w)}`]=i(f(i(y[w])),void 0,!0),S),{}),a=m6(),u=y=>typeof y!="string"?Qy(y):(a.colorContrast[y]||(a.colorContrast[y]=Qy(y)),a.colorContrast[y]),c=g(()=>u(i("textPrimary"))>255/2?"textInverted":"textPrimary"),d=g(()=>u(i("textPrimary"))>255/2?"textPrimary":"textInverted"),f=(y,b,S)=>{const w=`on${ja(String(y))}`;return n[w]?n[w]:(b=b||c.value,S=S||d.value,u(y)>e.value.colors.threshold?b:S)},h=g({get:()=>e.value.colors.currentPresetName,set:y=>{v(y)}}),p=g(()=>e.value.colors.presets),v=y=>{if(e.value.colors.currentPresetName=y,!e.value.colors.presets[y])return pt(`Preset ${y} does not exist`)};return{colors:n,currentPresetName:h,presets:p,applyPreset:v,setColors:r,getColors:o,getColor:i,getComputedColor:s,getBoxShadowColor:ak,getBoxShadowColorFromBg:_6,getHoverColor:uk,getFocusColor:ck,getGradientBackground:Ym,getTextColor:f,shiftHSLAColor:Oi,setHSLAColor:O6,colorsToCSSVariable:l,colorToRgba:qm,getStateMaskGradientBackground:B6}},dk=ie({name:"VaIcon",__name:"VaIcon",props:{...ss,...Me,name:{type:String,default:""},tag:{type:String},component:{type:Object},color:{type:String},rotation:{type:[String,Number]},spin:{type:[String,Boolean]},flip:{type:String,default:"off",validator:t=>["off","horizontal","vertical","both"].includes(t)}},setup(t){const e=t,{getColor:n}=He(),{sizeComputed:r}=ls(e),{getIcon:o}=h6(),i=g(()=>o(e.name)),s=g(()=>e.component||e.tag||i.value.component||i.value.tag||"i"),l=os(),a=g(()=>({...i.value.attrs,...vo(l,["class"])})),u=v=>{if(!(v===void 0||v===!1))return v==="counter-clockwise"?"va-icon--spin-reverse":"va-icon--spin"},c=g(()=>[i.value.class,u(e.spin??i.value.spin)]),d=g(()=>{const v=e.rotation?`rotate(${e.rotation}deg)`:"",y=e.flip==="vertical"||e.flip==="both"?-1:1,b=e.flip==="horizontal"||e.flip==="both"?-1:1;return`${e.flip==="off"?"":`scale(${y}, ${b})`} ${v}`.trim()}),f=g(()=>({transform:d.value,cursor:l.onClick?"pointer":null,color:e.color?n(e.color,void 0,!0):i.value.color,fontSize:r.value,height:r.value,lineHeight:r.value})),h=g(()=>l.tabindex??-1),p=g(()=>l.role!=="button"||h.value<0);return(v,y)=>(A(),te(zn(s.value),ee({class:["va-icon",c.value],style:f.value,"aria-hidden":p.value,notranslate:""},a.value),{default:J(()=>[D(v.$slots,"default",{},()=>[i.value.content?(A(),I(_e,{key:0},[Ue(Be(i.value.content),1)],64)):z("",!0)])]),_:3},16,["class","style","aria-hidden"]))}}),Ze=me(dk),E6=()=>{const t=_t(),e=t==null?void 0:t.appContext.app,{globalProperties:n}=e.config;return"$vaGlobalVariable"in n||(n.$vaGlobalVariable=ar({})),n.$vaGlobalVariable},fk=(t,e)=>{const n=E6();return t in n||(n[t]=e),g({get:()=>n[t],set:r=>{n[t]=r}})},Qr=()=>{const t=_t(),e=fk("uuidCounter",0);return t.$vaUuid=t.$vaUuid||`va-${e.value++}`,`va-${e.value}`},L6=t=>{const n=`message-list-${Qr()}`,r=g(()=>({id:n,role:"alert"})),o=g(()=>!!(typeof t.modelValue=="string"&&t.modelValue.length>0||Array.isArray(t.modelValue)&&t.modelValue.length>0)),i=g(()=>({"aria-describedby":o.value?n:void 0,"aria-invalid":t.hasError}));return{messageListAttributes:r,childAttributes:i}},Ye=t=>{const e=_t().props;return g(()=>{const r=e==null?void 0:e[t];return r===void 0?r:Number(r)})},V6={class:"va-message-list__list"},R6=ie({name:"VaMessageList",inheritAttrs:!1,__name:"VaMessageList",props:{modelValue:{type:[String,Array],default:""},limit:{type:[Number,String],default:1},color:{type:String},hasError:{type:Boolean,default:!1}},setup(t,{expose:e}){const n=t,{getColor:r}=He(),{childAttributes:o,messageListAttributes:i}=L6(n),s=Ye("limit"),l=g(()=>n.modelValue?Array.isArray(n.modelValue)?n.modelValue.slice(0,s.value):[n.modelValue]:[]),a=g(()=>n.color?{color:r(n.color)}:{});return e({messages:l}),(u,c)=>(A(),I(_e,null,[D(u.$slots,"default",de(we({ariaAttributes:m(o),messages:l.value,attrs:u.$attrs}))),D(u.$slots,"messages",de(we({ariaAttributes:m(i),messages:l.value})),()=>[l.value.length>0?(A(),I("div",ee({key:0,class:"va-message-list",style:a.value},m(i)),[q("ul",V6,[(A(!0),I(_e,null,Ge(l.value,(d,f)=>(A(),I("li",{key:f,class:"va-message-list__message"},[D(u.$slots,"message",de(we({messages:l.value,message:d})),()=>[t.hasError?(A(),te(m(Ze),{key:0,class:"va-message-list__icon",name:"va-warning",size:16})):z("",!0),Ue(Be(d),1)])]))),128))])],16)):z("",!0)])],64))}}),Ud=me(R6);function qi(t,e,n,r){const o=_t(),i=g(()=>{const a=e[t];return o!=null&&o.vnode.props?t in o.vnode.props&&o.vnode.props[t]!==void 0:a!==void 0});if(r===void 0)return[g({set(a){n(`update:${t}`,a)},get(){return e[t]}})];const s=e[t],l=W(s===void 0?r:s);return fe(()=>e[t],a=>{a!==void 0&&(l.value=a)}),[g({set(a){l.value=a,n(`update:${t}`,a)},get(){return i.value?e[t]:l.value}})]}const F6=t=>typeof t=="object"&&"_setter"in t,N6=(t,e)=>{if(!F6(t))return;const n=t._setter;t._setter=r=>{e(r),n(r)}},hk=Symbol("FormService"),pk=t=>{const e=Mn(hk,null);if(!e)return{forceDirty:W(!1),forceHideErrorMessages:W(!1),forceHideErrors:W(!1),forceHideLoading:W(!1),fields:g(()=>[]),registerField:()=>{},unregisterField:()=>{},immediate:g(()=>!1)};const n=Qr();return dt(()=>{e.registerField(n,t)}),jt(()=>{e.unregisterField(n)}),e},Zy=(t=[],e=null)=>(Vc(t)&&(t=[t]),t.map(n=>Ws(n)?n(e):n)),Co={name:{type:String,default:void 0},rules:{type:Array,default:()=>[]},dirty:{type:Boolean,default:!1},error:{type:Boolean,default:void 0},errorMessages:{type:[Array,String],default:void 0},errorCount:{type:[String,Number],default:1},success:{type:Boolean,default:!1},messages:{type:[Array,String],default:()=>[]},immediateValidation:{type:Boolean,default:!1},modelValue:{}},mi=["update:error","update:errorMessages","update:dirty"],_u=t=>typeof t=="object"&&typeof t.then=="function",H6=(t,e,n)=>{const r=W(e.dirty||!1);return N6(t,()=>{r.value=!0,n("update:dirty",!0)}),fe(t,(o,i)=>{o===i&&(r.value=!0)},{deep:!0}),fe(()=>e.dirty,o=>{r.value!==o&&(r.value=o)}),{isDirty:r}},z6=()=>{const t=W(!1);return{isTouched:t,onBlur:()=>{t.value=!0}}},j6=t=>{let e=!0;return(...n)=>{if(!e)return;e=!1;const r=t(...n);return Ot(()=>{e=!0}),r}},wo=(t,e,n)=>{const{reset:r,focus:o}=n,[i]=qi("error",t,e,!1),[s]=qi("errorMessages",t,e,[]),l=W(!1),{isTouched:a,onBlur:u}=z6(),c=g(()=>({"aria-invalid":i.value,"aria-errormessage":typeof s.value=="string"?s.value:s.value.join(", ")})),d=()=>{s.value=[],i.value=!1,v.value=!1,a.value=!1,l.value=!1},f=T=>{let _=!1,M=[];return T.forEach(F=>{Vc(F)?(M=[...M,F],_=!0):F===!1&&(_=!0)}),s.value=M,i.value=_,!_},h=async()=>{if(!t.rules||!t.rules.length)return!0;const T=Zy(Iy(t.rules),n.value.value),_=T.filter(F=>_u(F)),M=T.filter(F=>!_u(F));return _.length?(l.value=!0,Promise.all(_).then(F=>f([...M,...F])).finally(()=>{l.value=!1})):f(M)},p=j6(()=>{if(!t.rules||!t.rules.length)return!0;const T=Iy(t.rules),_=Zy(T,n.value.value),M=_.filter(H=>_u(H)),F=_.filter(H=>!_u(H)),L=F.some(H=>Vc(H)?H:H===!1);return M.length&&!L?(l.value=!0,Promise.all(M).then(H=>{f([...F,...H]),l.value=!1}),L):f(F)});tr(()=>p());const{isDirty:v}=H6(n.value,t,e),{forceHideErrors:y,forceHideLoading:b,forceHideErrorMessages:S,forceDirty:w,immediate:x}=pk({isTouched:a,isDirty:v,isValid:g(()=>!i.value),isLoading:l,errorMessages:s,validate:p,validateAsync:h,resetValidation:d,focus:o,reset:()=>{r(),d(),p()},value:g(()=>n.value||t.modelValue),name:$n(t,"name")}),k=g(()=>t.immediateValidation||x.value);let $=!0;const C=T=>{$=!1,T(),Ot(()=>{$=!0})};return fe(n.value,()=>{if($)return p()},{immediate:k.value}),{isDirty:v,isValid:g(()=>!i.value),isError:i,isTouched:a,isLoading:g({get:()=>y.value?!1:k.value||a.value||v.value||w.value?l.value:!1,set(T){l.value=T}}),computedError:g(()=>y.value?!1:k.value||a.value||v.value||w.value?i.value:!1),computedErrorMessages:g(()=>S.value?[]:s.value),listeners:{onBlur:u},validate:p,resetValidation:d,withoutValidation:C,validationAriaAttributes:c}},W6={class:"va-message-list-wrapper"},Kd=ie({name:"VaMessageListWrapper",__name:"VaMessageListWrapper",props:{...Co},setup(t){const e=t,n=g(()=>e.error?"danger":e.success?"success":""),r=$n(e,"error"),o=g(()=>e.error?e.errorMessages:e.messages),i=g(()=>e.error?Number(e.errorCount):99);return(s,l)=>(A(),I("div",W6,[he(m(Ud),{color:n.value,limit:i.value,"has-error":r.value,"model-value":o.value,"inherit-slots":["message"]},{default:J(a=>[D(s.$slots,"default",de(we(a)))]),_:3},8,["color","limit","has-error","model-value"])]))}}),U6=t=>{const{globalConfig:e,mergeGlobalConfig:n,setGlobalConfig:r,getGlobalConfig:o}=yo(),i=g(()=>{var s;const l=Uh(e.value),a={...l,colors:Xw(l.colors)},u=Rc(a,t.value);return(s=t.value.colors)!=null&&s.variables&&Object.keys(t.value.colors.variables).forEach(c=>{u.colors.variables[c]=t.value.colors.variables[c]}),u});return Pr(Wd,{mergeGlobalConfig:n,setGlobalConfig:r,getGlobalConfig:o,globalConfig:i}),i},la=(t,e)=>{if(!t)return null;if(!("type"in t)||t.type===al||typeof t=="string")return ut("div",e,t);if(t.type===yn)return t;if("$el"in t)return la(t.$el,e);if(t.type===wO)return ut(t.ssContent,e);if(t.type===Ca){if(t.children===null)return t;const n=la(t.children[0],e);return n&&(t.children[0]=ut(n,e)),t}if(t.type===_e)return t.children===null?t:t.children.length===1?ut(_e,t.props,[la(t.children[0],e)]):ut("div",e,t);if(typeof t.type.render=="function"){const n=ut(t);if(Array.isArray(n.children)&&n.children.length>1)return ut("div",e,n.children)}return ut(t,e)},eb=(t,e={},n={})=>{const r=t==null?void 0:t(e);if(!r)return null;const o=r.filter(i=>i.type!==yn);return o.length===0?null:o.length===1?la(o[0],n):ut("div",n,r)},mk=(t,e={},n={})=>{const r=t==null?void 0:t(e);return r?r.map(o=>la(o,n)):null},K6=ie({name:"VaCssVarsRenderer",inheritAttrs:!1,setup(t,{slots:e,attrs:n}){const{colorsToCSSVariable:r,colors:o}=He(),i=g(()=>r(o));return()=>ut(_e,n,mk(e.default,{},{style:i.value})||void 0)}}),Ya=ie({name:"VaConfig",inheritAttrs:!1,__name:"VaConfig",props:{...Me,components:{type:Object,default:()=>({})},colors:{type:Object},i18n:{type:Object}},setup(t){const e=t,n=Um(),r=g(()=>[...n.value,e.components]);Gw(r),U6(g(()=>{const i={};return e.colors&&(i.colors=e.colors),e.i18n&&(i.i18n=e.i18n),i}));const o=g(()=>!!e.colors);return(i,s)=>o.value?(A(),te(m(K6),de(ee({key:0},i.$attrs)),{default:J(()=>[D(i.$slots,"default")]),_:3},16)):D(i.$slots,"default",{key:1})}}),G6={class:"va-separator","aria-hidden":"true"},q6=ie({name:"VaSeparator",__name:"VaSeparator",setup(t){return(e,n)=>(A(),I("div",G6))}}),Y6={class:"va-spacer","aria-hidden":"true"},X6=ie({name:"VaSpacer",__name:"VaSpacer",setup(t){return(e,n)=>(A(),I("div",Y6))}}),Gd=()=>{const t=W(!1);return dt(()=>{t.value=!0}),jt(()=>{t.value=!1}),t},tp=t=>{const e=_t();let n=()=>{};const r=aO((o,i)=>(n=i,{get(){var s;return o(),(s=e.proxy)==null?void 0:s.$refs[t]},set(s){}}));return dt(n),_d(n),r},gk=t=>t.config.globalProperties,ri=(t,e,n)=>{const r=gk(t);r[e]=n},J6=(t,e)=>gk(t)[e],Q6=So((t={})=>({install(e){const n=Jw(t);t!=null&&t.componentsAll&&console.warn("Global config -> `componentsAll` was moved to Global config -> components.all. Please replace this to make it work. More info here: https://github.com/epicmaxco/vuestic-ui/issues/1967"),e.provide(Wd,n),ri(e,"$vaConfig",n)}})),as=()=>typeof window>"u",Jm=()=>!as(),vk=()=>typeof window>"u"?void 0:window,Z6={},wr=()=>as()?typeof globalThis>"u"?Z6:globalThis:window;let ej=0;const zf=(t=4)=>Math.random().toString(36).substring(2,t+2),Qm=()=>`${zf(8)}-${zf(4)}-${zf(4)}-${++ej}`,Zm=(t,e)=>{if(as())return;let n=document.getElementById(t);n?n.innerHTML=e():(n=document.createElement("style"),n.setAttribute("type","text/css"),n.setAttribute("id",t),n.innerHTML=e(),document.head.append(n))},tb=(t,e)=>`${Hc(t)}: ${e}; +`,tj=(t,e)=>{const{colors:n,getTextColor:r,getColor:o,currentPresetName:i,applyPreset:s}=He(),l=(d=n)=>{if(!d)return;const f=Object.keys(d),h=f.map(v=>`${Hc(v)}: ${d[v]}`).join(";"),p=f.map(v=>`${Hc(`on-${v}`)}: ${o(r(d[v]))}`).join(";");return`${h};${p}`},a=(d=n)=>{const f=Object.keys(d);let h=`:root { +`;return f.forEach(p=>{h+=tb(p,d[p])}),f.forEach(p=>{h+=tb(`on-${p}`,o(r(d[p])))}),h+=`} +`,h},u=g(Qm),c=d=>{if(!d||as())return;const f=a(d);Zm(`va-color-variables-${u.value}`,()=>f)};return fe(n,d=>{c(d)},{immediate:!0,deep:!0}),{colors:n,currentPresetName:i,renderCSSVariables:l,updateColors:c,renderCSSVariablesStyleContent:a}},nj=So(t=>({install(e){ri(e,"$vaColorConfig",tj())}})),yk=t=>{const e=g(Jm),n=W(null);return fe(e,()=>{e.value&&(n.value=t())},{immediate:!0}),n},qd=()=>yk(()=>window),Rt=t=>{if(t&&typeof t=="object"&&(t=m(t),!!t))return typeof t.$el<"u"?t.$el:t},np=(t,...e)=>{if(!(!t||typeof t!="object")){if("addEventListener"in t&&typeof t.addEventListener=="function"){t.addEventListener(...e);return}"parentElement"in t&&np(t.parentElement,...e)}},rp=(t,...e)=>{if(!(!t||typeof t!="object")){if("removeEventListener"in t&&typeof t.removeEventListener=="function"){t.removeEventListener(...e);return}"parentElement"in t&&rp(t.parentElement,...e)}},At=(t,e,n)=>{const r=n&&typeof n!="boolean"?n:qd(),o=typeof n=="boolean"?n:!1;fe(r,(i,s)=>{Array.isArray(t)?t.forEach(l=>{np(Rt(m(i)),l,e,o),rp(Rt(m(s)),l,e,o)}):(np(Rt(m(i)),t,e,o),rp(Rt(m(s)),t,e,o))},{immediate:!0})};function rj(){const t=ar({width:void 0,height:void 0}),e=()=>{t.width=window==null?void 0:window.innerWidth,t.height=window==null?void 0:window.innerHeight},n=g(Jm);return fe(n,r=>{r&&e()},{immediate:!0}),At("resize",e,!0),{windowSizes:t}}const us=()=>yk(()=>document),oj=t=>{var e;const n=(e=J6(t,"$vaConfig"))==null?void 0:e.globalConfig;if(!n)return pt("createBreakpointConfigPlugin: globalConfig is not defined!"),{};const r=g(()=>{const f=n.value.breakpoint;return f||pt("createBreakpointConfigPlugin: breakpointConfig is not defined!"),f??{}});if(!r.value.enabled)return{};if(!r.value.thresholds||!Object.values(r.value.thresholds).length)return pt("createBreakpointConfigPlugin: there are no defined thresholds!"),{};const{windowSizes:o}=rj(),i=g(Jm),s=g(()=>{if(!(!i.value||!o.width))return Object.entries(r.value.thresholds).reduce((f,[h,p])=>(o.width>=p&&(f=h),f),"xs")}),l=g(()=>Object.keys(r.value.thresholds).reduce((f,h)=>(f[h]=`va-screen-${h}`,f),{})),a=()=>{let f="";return Object.values(r.value.thresholds).forEach((h,p)=>{f+=`@media screen and (min-width: ${h}px) {`,f+=`:root { --va-media-ratio: ${(p+1)*.2} }`,f+=`} +`}),f},u=g(Qm);Zm(`va-helpers-media-${u.value}`,a);const c=us();fe(s,f=>{!f||!r.value.bodyClass||!c.value||(c.value.body.classList.forEach(h=>{Object.values(l.value).includes(h)&&c.value.body.classList.remove(h)}),c.value.body.classList.add(l.value[f]))},{immediate:!0});const d=g(()=>{const f=s.value==="xs",h=s.value==="sm",p=s.value==="md",v=s.value==="lg",y=s.value==="xl";return{xs:f,sm:h,md:p,lg:v,xl:y,smUp:h||p||v||y,mdUp:p||v||y,lgUp:v||y,smDown:f||h,mdDown:f||h||p,lgDown:f||h||p||v}});return ik(()=>({width:o.width,height:o.height,current:s.value,thresholds:r.value.thresholds,...d.value}))},ij=So(()=>({install(t){const e=oj(t);t.provide(b_,e),ri(t,"$vaBreakpoint",e)}})),sj=()=>{let t;return{start:(...r)=>(t=window.setTimeout(...r),t),clear:()=>t&&window.clearTimeout(t)}},nb=(t,e)=>(e&&Object.keys(e).forEach(n=>{t=t.replace(`{${n}}`,String(e[n]))}),t),yt=()=>{const{globalConfig:t}=yo(),e=g(()=>t.value.i18n);return{tp:(n,r)=>n?(n.startsWith("$t:")&&(n=e.value[n.slice(3)]||n),nb(n,r)||n):"",t(n,r){const o=e.value[n];return o?nb(o,r)||n:(pt(`${n} not found in VuesticUI i18n config`),n)}}},qt=(t,e=!1)=>{const{props:n}=_t(),{getColor:r,getTextColor:o}=He();return{textColorComputed:g(()=>{if(n.textColor)return r(n.textColor);const s=t?m(t):n.color;if(!s)return"currentColor";const l=r(s);return D6(l)?"currentColor":m(e)?l:r(o(l))})}},lj=["role","aria-live"],aj={class:"va-toast__group"},uj=["textContent"],cj={class:"va-toast__content"},dj=["innerHTML"],fj=["textContent"],hj={key:1,class:"va-toast__content"},pj=ie({name:"VaToast",__name:"VaToast",props:{...Me,title:{type:String,default:""},offsetY:{type:[Number,String],default:16},offsetX:{type:[Number,String],default:16},message:{type:[String,Function],default:""},dangerouslyUseHtmlString:{type:Boolean,default:!1},icon:{type:String,default:"close"},customClass:{type:String,default:""},duration:{type:[Number,String],default:5e3},color:{type:String,default:""},closeable:{type:Boolean,default:!0},onClose:{type:Function},onClick:{type:Function},multiLine:{type:Boolean,default:!1},position:{type:String,default:"top-right",validator:t=>["top-right","top-left","bottom-right","bottom-left"].includes(t)},render:{type:Function},ariaCloseLabel:{type:String,default:"$t:close"},role:{type:String,default:void 0},inline:{type:Boolean,default:!1}},emits:["on-click","on-close"],setup(t,{emit:e}){const n=ie({name:"VaToastRenderer",props:{render:{type:Function,required:!0}},setup:_=>()=>_.render()}),{tp:r}=yt(),o=t,i=e,s=Ne(),{getColor:l}=He(),{textColorComputed:a}=qt(g(()=>l(o.color))),u=Ye("offsetY"),c=Ye("offsetX"),d=Ye("duration"),f=W(!1),h=g(()=>o.position.includes("right")?"right":"left"),p=g(()=>o.position.includes("top")?"top":"bottom"),v=g(()=>[o.customClass,o.multiLine?"va-toast--multiline":"",o.inline?"va-toast--inline":""]),y=g(()=>({[p.value]:`${u.value}px`,[h.value]:`${c.value}px`,backgroundColor:l(o.color),color:a.value})),b=g(()=>o.role==="status"?"polite":"assertive"),S=g(()=>typeof o.message=="function"?o.message():o.message),w=()=>{var _,M;(_=s.value)==null||_.removeEventListener("transitionend",w),(M=s.value)==null||M.remove()},x=()=>{typeof o.onClick=="function"?o.onClick():i("on-click")},k=()=>{var _;f.value=!1,(_=s.value)==null||_.addEventListener("transitionend",w),typeof o.onClose=="function"?o.onClose():i("on-close")},$=sj(),C=$.clear,T=()=>{d.value>0&&$.start(()=>f.value&&k(),d.value)};return dt(()=>{f.value=!0,T()}),(_,M)=>(A(),te(ul,{name:"va-toast-fade"},{default:J(()=>[xr(q("div",{ref_key:"rootElement",ref:s,role:_.$props.role??_.$props.closeable?"alertdialog":"alert","aria-live":b.value,"aria-atomic":"true",class:Ae(["va-toast",v.value]),style:se(y.value),onMouseenter:M[0]||(M[0]=(...F)=>m(C)&&m(C)(...F)),onMouseleave:T,onClick:x},[q("div",aj,[_.$props.title?(A(),I("h2",{key:0,class:"va-toast__title",textContent:Be(_.$props.title)},null,8,uj)):z("",!0),xr(q("div",cj,[_.$props.dangerouslyUseHtmlString?(A(),I("div",{key:0,innerHTML:S.value},null,8,dj)):(A(),I("p",{key:1,textContent:Be(S.value)},null,8,fj))],512),[[zs,_.$props.message]]),_.$props.render?(A(),I("div",hj,[he(m(n),{render:_.$props.render},null,8,["render"])])):z("",!0),_.$props.closeable?(A(),te(dk,{key:2,class:"va-toast__close-icon",role:"button","aria-label":m(r)(_.$props.ariaCloseLabel),tabindex:"0",size:"1rem",name:_.$props.icon,onClick:be(k,["stop"]),onKeydown:Ce(be(k,["stop"]),["enter"])},null,8,["aria-label","name","onKeydown"])):z("",!0)])],46,lj),[[zs,f.value]])]),_:1}))}}),bk=bo(pj),Sk=5;let $a=1;wr().vaToastInstances=[];const mj=(t,e)=>{if(t.el){const n=e.includes("bottom")?-1:1;return(t.el.offsetHeight+Sk)*n}return 0},gj=(t,e,n)=>{const r=n.includes("bottom")?-1:1;return parseInt(t,10)-(e+Sk)*r},Ks=t=>{var e;return((e=t.component)==null?void 0:e.props)||{}},vj=(t,e)=>{var n;if(!t)return;if(!wr().vaToastInstances.length){$a=1;return}const r=wr().vaToastInstances.findIndex(u=>u===t);if(r<0)return;const o=Ks(t),{offsetX:i,offsetY:s,position:l}=o,a=(n=t.el)==null?void 0:n.offsetHeight;e(),wr().vaToastInstances=wr().vaToastInstances.reduce((u,c,d)=>{if(c===t)return u;if(c.component){const{offsetX:f,offsetY:h,position:p}=Ks(c);if(d>r&&i===f&&s===h&&l===p&&c.el&&a){const[y,b]=c.el.style.transform.match(/[\d-]+(?=px)/g),S=gj(b,a,p);c.el.style.transform=`translate(0, ${S}px)`}}return[...u,c]},[]),wr().vaToastInstances.length||($a=1)},yj=(t,e)=>{t&&(wa(null,t),t.remove()),t=null},bj=(t,{props:e,children:n,element:r,appContext:o}={})=>{let i=r,s;return s=he(t,{...e,onClose:()=>{vj(s,()=>yj(i)),e!=null&&e.onClose&&e.onClose()}},n),o&&(s.appContext=o),i?wa(s,i):typeof document<"u"&&wa(s,i=document.createElement("div")),{vNode:s,el:i}},Sj=t=>{if(!wr().vaToastInstances.length){$a=1;return}wr().vaToastInstances.forEach(e=>{t&&e.appContext!==t||Ks(e).onClose()})},Cj=t=>{const e=wr().vaToastInstances.find(n=>{var r;return((r=n.el)==null?void 0:r.id)===t});e&&Ks(e).onClose()},wj=t=>typeof t=="string"?{message:t}:t,kj=(t,e)=>{const{vNode:n,el:r}=bj(bk,{appContext:e,props:wj(t)}),o=Ks(n);if(r&&n.el&&o){document.body.appendChild(r.childNodes[0]);const{offsetX:i,offsetY:s,position:l}=o;n.el.style.display="flex",n.el.id="notification_"+$a;let a=0;return wr().vaToastInstances.filter(u=>{const{offsetX:c,offsetY:d,position:f}=Ks(u);return c===i&&d===s&&l===f}).forEach(u=>{a+=mj(u,l)}),n.el.style.transform=`translate(0, ${a}px)`,$a+=1,wr().vaToastInstances.push(n),n.el.id}return null},xj=t=>({init(e){return kj(e,t==null?void 0:t._context)},close(e){Cj(e)},closeAll(e=!1){Sj(e||t==null?void 0:t._context)}}),$j=So(()=>({install(t){ri(t,"$vaToast",xj(t))}})),rb={closeDropdown(){let t=this;for(;t=t.$parent;)if(t.$options.name==="VaDropdown"){t.hide();break}}},Aj=So(()=>({install(t){ri(t,"$closeDropdown",rb.closeDropdown),ri(t,"$vaDropdown",rb)}})),Tj=(t,e,n)=>{const r=_t();if(!r)throw new Error("`useButtonBackground` hook must be used only inside of setup function!");const o=r.props,{getColor:i,getGradientBackground:s}=He(),l=g(()=>o.plain?"transparent":o.gradient?s(t.value):t.value),a=g(()=>!o.plain&&n.value),u=g(()=>!o.plain&&e.value),c=g(()=>u.value&&o.pressedBehavior==="opacity"?o.pressedOpacity:a.value&&o.hoverBehavior==="opacity"?Number(o.hoverOpacity):Number(o.backgroundOpacity)),d=g(()=>a.value&&o.hoverBehavior==="mask"),f=g(()=>u.value&&o.pressedBehavior==="mask"),h=g(()=>f.value?o.pressedOpacity:d.value?Number(o.hoverOpacity):0),p=g(()=>f.value?i(o.pressedMaskColor):d.value?i(o.hoverMaskColor):"transparent");return{backgroundColor:l,backgroundColorOpacity:c,backgroundMaskOpacity:h,backgroundMaskColor:p}},cs={tag:{type:String,default:"span"},to:{type:[String,Object],default:void 0},replace:{type:Boolean,default:void 0},append:{type:Boolean,default:void 0},exact:{type:Boolean,default:void 0},activeClass:{type:String,default:void 0},exactActiveClass:{type:String,default:void 0},href:{type:String,default:void 0},target:{type:String,default:void 0},disabled:{type:Boolean,default:!1}},gi=t=>{const e=_t(),n=g(()=>e==null?void 0:e.appContext.config.globalProperties),r=g(()=>{var d;return(d=n.value)==null?void 0:d.$router}),o=g(()=>{var d;return(d=n.value)==null?void 0:d.$route}),{getGlobalConfig:i}=yo(),s=g(()=>{if(t.disabled)return t.tag;if(t.href&&!t.to)return"a";const d=i();return d.routerComponent&&t.to?d.routerComponent:t.to?"router-link":t.tag||"div"}),l=g(()=>t.disabled?!1:!!(t.href||t.to)),a=g(()=>l.value?s.value==="a"?{target:t.target,href:c.value}:{target:t.target,to:t.to,replace:t.replace,append:t.append,activeClass:t.activeClass,exact:t.exact,exactActiveClass:t.exactActiveClass}:{}),u=g(()=>{if(!r.value||!t.to)return!1;const d=r.value.resolve(t.to).href,f=r.value.currentRoute.value.path;return d.replace("#","")===f.replace("#","")}),c=g(()=>{var d;return t.href||(t.to?(d=r.value)==null?void 0:d.resolve(t.to,o.value).href:void 0)});return{isLinkTag:l,tagComputed:s,hrefComputed:c,isActiveRouterLink:u,linkAttributesComputed:a}},_j=t=>{const{linkAttributesComputed:e,isLinkTag:n}=gi(t),r=g(()=>n.value?void 0:t.type),o=g(()=>{const i={"aria-disabled":!!t.disabled,disabled:!!t.disabled};return n.value?i:{type:r.value,tabindex:t.loading||t.disabled?-1:0,...i}});return g(()=>({...e.value,...o.value}))},Oj=t=>{var e,n,r;if(as())return t;if(t>0){const o=(e=window==null?void 0:window.navigator)==null?void 0:e.userAgent,i=o&&/^((?!chrome|android).)*safari/i.test((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent),s=o&&/(version.)15|16/i.test((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent);if(i&&!s)return t<1?1-t:t}return t},Pj=(t,e,n,r)=>{const o=_t();if(!o)throw new Error("`useButtonTextColor` hook must be used only inside of setup function!");const i=o.props,{getColor:s,colorToRgba:l,getStateMaskGradientBackground:a}=He(),u=g(()=>({background:"transparent",color:t.value,"-webkit-background-clip":"text","background-clip":"text",opacity:h.value})),c=(p,v,y)=>{const b=s(p);let S;return y==="opacity"?S={color:l(t.value,v)}:S={background:a(e.value,b,v),color:v<1?l(t.value,Oj(v)):b},{...u.value,...S}},d=g(()=>c(i.hoverMaskColor,Number(i.hoverOpacity),i.hoverBehavior)),f=g(()=>c(i.pressedMaskColor,i.pressedOpacity,i.pressedBehavior)),h=g(()=>{if(!i.disabled)return i.textOpacity===1||r.value&&!n.value?1:n.value?.9:i.textOpacity});return g(()=>{const p={color:t.value,background:"transparent"};return i.plain&&Object.assign(p,u.value,{background:t.value}),i.plain?n.value?f.value:r.value?d.value:p:p})},Bj={class:"va-progress-circle__wrapper",viewBox:"0 0 40 40"},Mj=["r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Ij=ie({name:"VaProgressCircle",__name:"VaProgressCircle",props:{...ss,...Me,modelValue:{type:[Number,String],default:0},indeterminate:{type:Boolean,default:!1},thickness:{type:[Number,String],default:.06},color:{type:String,default:"primary"},ariaLabel:{type:String,default:"$t:progressState"}},setup(t){const e=t,{getColor:n}=He(),{sizeComputed:r}=ls(e),o=g(()=>Ki(Number(e.thickness),0,1)/2*100),i=g(()=>20-20*o.value/100),s=g(()=>2*Math.PI*i.value),l=g(()=>s.value*(1-Ki(Number(e.modelValue),0,100)/100)),a=g(()=>n(e.color,void 0,!0)),{tp:u}=yt(),c=g(()=>({color:a.value})),d=g(()=>({width:r.value,height:r.value})),f=g(()=>({"va-progress-circle--indeterminate":e.indeterminate})),h=g(()=>({role:"progressbar","aria-label":u(e.ariaLabel),"aria-valuenow":e.indeterminate?void 0:e.modelValue}));return(p,v)=>(A(),I("div",ee({class:["va-progress-circle",f.value],style:d.value},h.value),[(A(),I("svg",Bj,[q("circle",{class:"va-progress-circle__overlay",cx:"50%",cy:"50%",r:i.value,fill:"none",stroke:a.value,"stroke-width":o.value+"%","stroke-dasharray":s.value,"stroke-dashoffset":l.value},null,8,Mj)])),p.$slots.default?(A(),I("div",{key:0,style:se(c.value),class:"va-progress-circle__info"},[D(p.$slots,"default")],4)):z("",!0)],16))}}),bl=me(Ij),Dj={hoverBehavior:{type:String,default:"mask",validator:t=>["opacity","mask"].includes(t)},hoverOpacity:{type:[Number,String],default:.15},hoverMaskColor:{type:String,default:"textInverted"}},Ej={pressedBehavior:{type:String,default:"mask",validator:t=>["opacity","mask"].includes(t)},pressedOpacity:{type:Number,default:.13},pressedMaskColor:{type:String,default:"textPrimary"}},Xa={loading:{type:Boolean,default:!1}},Ck=t=>t instanceof HTMLElement,Kr=t=>{!t||!Ck(t)||(t.focus(),t.dispatchEvent(new FocusEvent("focus",{bubbles:!0})))},Yd=t=>{!t||!Ck(t)||(t.blur(),t.dispatchEvent(new Event("blur",{bubbles:!0})))},op=t=>{if(t.tabIndex!==-1){Kr(t);return}const e=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e&&Kr(e)},ip=(t,e,n={})=>{dt(()=>window.addEventListener(t,e,{capture:!0,...n})),jt(()=>window.removeEventListener(t,e,{capture:!0,...n}))},wk=()=>{const t=Ne(),e=()=>{t.value=document.activeElement};return dt(e),ip("focus",e),ip("blur",e),t},Xd=["focus","blur"];function ko(t,e){const n=wk(),r=g({get:()=>kr(n.value)||kr(t==null?void 0:t.value)?!1:n.value===(t==null?void 0:t.value),set:a=>{a?s():l()}}),o=a=>{e==null||e("focus",a)},i=a=>{e==null||e("blur",a)},s=()=>{t!=null&&t.value&&Kr(Rt(t==null?void 0:t.value))},l=()=>{t!=null&&t.value&&Yd(Rt(t==null?void 0:t.value))};return At("focus",o,t),At("blur",i,t),{isFocused:r,onFocus:o,onBlur:i,focus:s,blur:l}}const Sl=t=>{if(Tt(t))return g({get(){return Rt(t.value)},set(n){t.value=n}});if(t){const n=tp(t);return g({get(){return Rt(n.value)},set(r){n.value=r}})}const e=Ne();return g({set(n){e.value=Rt(n)},get(){return e.value}})};function Ja(t,e){const n=W(!1),r=()=>{e!=null&&e.value||(n.value=!0)},o=()=>{n.value=!1};e&&fe(e,s=>{s&&(n.value=!1)});const i=Sl(t);return At("mouseenter",r,i),At("mouseleave",o,i),{isHovered:n,onMouseEnter:r,onMouseLeave:o}}function Lj(t){const e=W(!1),n=()=>{e.value=!0},r=()=>{e.value=!1},o=Sl(t);return At(["mousedown","touchstart","dragstart"],n,o),At(["mouseup","mouseleave","touchend","touchcancel","drop","dragend"],r,!0),{isPressed:e,onMouseDown:n,onMouseUp:r}}const kk=(t,e=!0)=>{var n;if(Ui(t))return!0;if(!t||e&&(!Ws(t)||!((n=t())!=null&&n.length)))return!1;const r=e?t():t;return Array.isArray(r)?r.some(o=>Array.isArray(o.children)?kk(o.children,!1):o.children||o.props):!!r.children},Vj=(t="default")=>{const{slots:e}=_t();return g(()=>kk(e[t]))},ct=(t,e)=>{vl&&!t&&console.warn('You must pass the @param "prefix" to the useBem hook!');const n=g(()=>Ws(e)?e():m(e)),r=g(()=>Object.entries(m(n)).reduce((s,[l,a])=>(a&&(s[`${t}--${ka(l)}`]=!0),s),{})),o=g(()=>Object.keys(r.value)),i=g(()=>o.value.join(" "));return new Proxy({},{ownKeys(){return Reflect.ownKeys(r.value)},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(r.value,l)},get(s,l,a){switch(l){case"asArray":return o;case"asString":return i;case"asObject":return r;default:return Reflect.get(r.value,l,a)}}})},Rj=ie({name:"VaButton",__name:"VaButton",props:{...Me,...ss,...Dj,...Ej,...Xa,...cs,tag:{type:String,default:"button"},type:{type:String,default:"button"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:String,default:"primary"},textColor:{type:String,default:""},textOpacity:{type:[Number,String],default:1},backgroundOpacity:{type:[Number,String],default:1},borderColor:{type:String,default:""},gradient:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},icon:{type:String,default:""},iconRight:{type:String,default:""},iconColor:{type:String,default:""}},setup(t,{expose:e}){const n=t,{getColor:r}=He(),o=g(()=>r(n.color)),{sizeComputed:i}=ls(n),s=g(()=>{const V=/([0-9]*)(px)/.exec(i.value);return V?`${+V[1]/2}${V[2]}`:i.value}),{tagComputed:l}=gi(n),a=_j(n),{disabled:u}=Or(n),c=Ne(),{focus:d,blur:f}=ko(c),{isHovered:h}=Ja(c,u),{isPressed:p}=Lj(c),v=g(()=>n.iconColor?r(n.iconColor):_.value),y=g(()=>({color:v.value,size:n.size})),b=g(()=>({"va-button__content--loading":n.loading})),S=Vj(),w=g(()=>!!(n.iconRight&&!n.icon||!n.iconRight&&n.icon)),x=g(()=>!S.value&&w.value),k=Ye("textOpacity"),$=Ye("backgroundOpacity"),C=ct("va-button",()=>({...Bt(n,["disabled","block","loading","round","plain"]),small:n.size==="small",normal:!n.size||n.size==="medium",large:n.size==="large",opacity:k.value<1,bordered:!!n.borderColor,iconOnly:x.value,leftIcon:!x.value&&!!n.icon&&!n.iconRight,rightIcon:!x.value&&!n.icon&&!!n.iconRight})),T=g(()=>n.plain||$.value<.5),{textColorComputed:_}=qt(o,T),{backgroundColor:M,backgroundColorOpacity:F,backgroundMaskOpacity:L,backgroundMaskColor:H}=Tj(o,p,h),E=Pj(_,o,p,h),P=g(()=>({borderColor:n.borderColor?r(n.borderColor):"transparent",...E.value}));return e({focus:d,blur:f}),(V,O)=>(A(),te(zn(m(l)),ee({ref_key:"button",ref:c,class:["va-button",m(C)],style:[P.value,`--va-background-color: ${String(m(M))};--va-background-color-opacity: ${String(m(F))};--va-background-mask-color: ${String(m(H))};--va-background-mask-opacity: ${String(m(L))}`]},m(a)),{default:J(()=>[q("span",{class:Ae(["va-button__content",b.value])},[D(V.$slots,"prepend",de(we({icon:t.icon,iconAttributes:y.value})),()=>[t.icon?(A(),te(m(Ze),ee({key:0,class:"va-button__left-icon",name:t.icon},y.value),null,16,["name"])):z("",!0)]),D(V.$slots,"default"),D(V.$slots,"append",de(we({icon:t.iconRight,iconAttributes:y.value})),()=>[t.iconRight?(A(),te(m(Ze),ee({key:0,class:"va-button__right-icon",name:t.iconRight},y.value),null,16,["name"])):z("",!0)])],2),V.loading?D(V.$slots,"loading",de(ee({key:0},{size:s.value,color:m(_)})),()=>[he(m(bl),{class:"va-button__loader",size:s.value,color:m(_),thickness:.15,indeterminate:""},null,8,["size","color"])]):z("",!0)]),_:3},16,["class","style"]))}}),et=me(Rj),xk=()=>{const t=_t();return t.appContext.app?`${t.appContext.app._uid}_${t.uid}`:String(t.uid)},Vl=[],Fj=(t,e)=>{const n=xk(),r=us(),o=()=>{var s;Vl.includes(n)||(Vl.push(n),(s=r.value)==null||s.body.classList.add("va-modal-overlay-background--blurred"))},i=()=>{var s;const l=Vl.indexOf(n);l!==-1&&(Vl.splice(l,1),Vl.length===0&&((s=r.value)==null||s.body.classList.remove("va-modal-overlay-background--blurred")))};tr(()=>{t.value&&(e.value?o():i())}),jt(i)},Nj=()=>Qm(),ys=hm([]),$k=t=>{const e=Nj(),n=()=>{ys.includes(e)||ys.push(e)},r=()=>{const l=ys.findIndex(a=>a===e);l!==-1&&ys.splice(l,1)},o=g(()=>{const l=ys.findIndex(a=>a===e);return l===-1?-1:l+1}),i=g(()=>o.value===ys.length-1),s=g(()=>o.value===0);return dt(()=>{t.value&&n()}),jt(()=>{r()}),fe(t,l=>{l?n():r()}),{zIndex:o,isTop:i,isLowest:s,register:n,unregister:r}},zc=Symbol("NOT_PROVIDED"),Hj=(t,e)=>{const n=_t();return g(()=>{if(!(n!=null&&n.vnode.props))return zc;const r=e[t];return t in n.vnode.props?r:zc})},Kt={stateful:{type:Boolean,default:!1},modelValue:{type:void 0}},Ak=(t=!1)=>({stateful:{type:Boolean,default:t}}),un=["update:modelValue"],xt=(t,e,n="modelValue",r={})=>{const{eventName:o,defaultValue:i}=r,s=o||`update:${n.toString()}`,l=Hj(n,t),a="defaultValue"in r,u=W(l.value===zc?a?i:t[n]:l.value);let c;const d=()=>{c=fe(()=>t[n],h=>{u.value=h})};fe(()=>t.stateful,h=>{h?d():c==null||c()},{immediate:!0});const f=g({get:()=>t.stateful?u.value:t[n],set:h=>{t.stateful&&(u.value=h),e(s,h)}});return Object.defineProperty(f,"stateful",{get:()=>t.stateful}),Object.defineProperty(f,"userProvided",{get:()=>l.value!==zc}),{valueComputed:f}},zj=":where(a, button, input, textarea, select):not([disabled]), *[tabindex]",Tk=()=>{const t=us(),e=qd(),n=fk("trapInEl",null);let r=[],o=null,i=null;const s=h=>{var p;return((p=n.value)==null?void 0:p.contains(h.target))||!1},l=()=>{o==null||o.focus()},a=()=>{i==null||i.focus()},u=h=>{var p,v;const y=h.code==="Tab",b=h.shiftKey;if(y){if(!s(h)){h.preventDefault(),b?a():l();return}if(((p=t.value)==null?void 0:p.activeElement)===i&&!b){h.preventDefault(),l();return}((v=t.value)==null?void 0:v.activeElement)===o&&b&&(h.preventDefault(),a())}},c=h=>{n.value=h,f(),d()},d=()=>{var h;n.value&&(r=Array.from(n.value.querySelectorAll(zj)),o=r[0],i=r[r.length-1],(h=e.value)==null||h.addEventListener("keydown",u))},f=()=>{var h;r=[],o=null,i=null,(h=e.value)==null||h.removeEventListener("keydown",u)};return{trapFocus:d,freeFocus:f,trapFocusIn:c}},Rl=hm([]),jj=()=>{const t=Qr(),e=g(()=>Rl.findIndex(({id:l})=>l===String(t))),n=()=>{e.value===-1&&Rl.push({id:String(t)})},r=()=>{e.value!==-1&&Rl.splice(e.value,1)},o=g(()=>e.value!==-1&&e.value===Rl.length-1),i=g(()=>e.value===0),s=g(()=>Rl.length>1);return{modalId:t,modalLevel:e,registerModal:n,unregisterModal:r,isTopLevelModal:o,isLowestLevelModal:i,isMoreThenOneModalOpen:s}},_k="data-va-teleported-from",Ok="data-va-teleported",eg=t=>{if(!t)return null;const e=t.getAttribute(Ok);return e===null?eg(t.parentElement):document.querySelector(`[${_k}="${e}"]`)},Pk=()=>{var t;const e=xk(),n=(t=_t())==null?void 0:t.vnode.scopeId;return{teleportFromAttrs:{[_k]:e},teleportedAttrs:{[Ok]:e,[`data-v-${n}`]:""},findTeleportedFrom:eg}},jf=(t,e)=>e?e.parentElement===t?!0:t.contains(e):!1,Wj=t=>Array.isArray(t)?t:[t],Jd=(t,e)=>{ip("mousedown",n=>{const r=n.target;if(n.target.shadowRoot)return;const o=eg(r);Wj(t).some(s=>{const l=Rt(m(s));return l?o?jf(l,r)||jf(l,o):jf(l,r):!1})||e(r)})},Uj=["aria-labelledby"],Kj={key:2,class:"va-modal__inner"},Gj={class:"va-modal__header"},qj={key:0,class:"va-modal__message"},Yj={key:1,class:"va-modal__message"},Xj={key:2,class:"va-modal__footer"},Jj={key:3,class:"va-modal__footer"},Qj=ie({name:"ModalElement",inheritAttrs:!1,props:{...Me,isTransition:{type:Boolean,default:!0}},setup:(t,{slots:e,attrs:n})=>()=>{var r;return t.isTransition?ut(ul,{...n},e):(r=e.default)==null?void 0:r.call(e,n)}}),Zj=ie({name:"VaModal",inheritAttrs:!1,__name:"VaModal",props:{...jw({cancelButton:et,okButton:et,closeButton:Ze}),...Kt,modelValue:{type:Boolean,default:!1},attachElement:{type:String,default:"body"},allowBodyScroll:{type:Boolean,default:!1},disableAttachment:{type:Boolean,default:!1},title:{type:String,default:""},message:{type:String,default:""},okText:{type:String,default:"$t:ok"},cancelText:{type:String,default:"$t:cancel"},hideDefaultActions:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!1},mobileFullscreen:{type:Boolean,default:!0},noDismiss:{type:Boolean,default:!1},noOutsideDismiss:{type:Boolean,default:!1},noEscDismiss:{type:Boolean,default:!1},maxWidth:{type:String,default:""},maxHeight:{type:String,default:""},anchorClass:{type:String},size:{type:String,default:"medium"},sizesConfig:{type:Object,default:()=>({defaultSize:"medium",sizes:{small:576,medium:768,large:992,auto:"max-content"}})},fixedLayout:{type:Boolean,default:!1},withoutTransitions:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},overlayOpacity:{type:[Number,String],default:.6},showNestedOverlay:{type:Boolean,default:!1},blur:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:void 0},backgroundColor:{type:String,default:"background-secondary"},noPadding:{type:Boolean,default:!1},beforeClose:{type:Function},beforeOk:{type:Function},beforeCancel:{type:Function},ariaCloseLabel:{type:String,default:"$t:close"}},emits:[...un,"cancel","ok","before-open","open","before-close","close","click-outside"],setup(t,{expose:e,emit:n}){const r=t;Ww(r);const o=n,i=Ne(),s=Ne(),{trapFocusIn:l,freeFocus:a}=Tk(),{registerModal:u,unregisterModal:c,isTopLevelModal:d,isLowestLevelModal:f}=jj(),{getColor:h}=He(),{textColorComputed:p}=qt($n(r,"backgroundColor")),{valueComputed:v}=xt(r,o),y=g(()=>({"va-modal--fullscreen":r.fullscreen,"va-modal--mobile-fullscreen":r.mobileFullscreen,"va-modal--fixed-layout":r.fixedLayout,"va-modal--no-padding":r.noPadding})),{zIndex:b}=$k(v),S=g(()=>r.zIndex?Number(r.zIndex):b.value),w=Z8(r),x=g(()=>({maxWidth:r.maxWidth||w.value,maxHeight:r.maxHeight,color:p.value,background:h(r.backgroundColor)})),k=g(()=>({"va-modal__overlay--lowest":f.value,"va-modal__overlay--top":d.value})),$=()=>r.showNestedOverlay&&!f.value?"var(--va-modal-overlay-nested-opacity)":"var(--va-modal-overlay-opacity)",C=g(()=>{if(r.overlay)return d.value||r.showNestedOverlay?{"background-color":"var(--va-modal-overlay-color)",opacity:$()}:""}),T=()=>{v.value=!0},_=Z=>{const Ve=()=>{v.value=!1,Z==null||Z()};r.beforeClose?r.beforeClose(Ve):Ve()},M=()=>{v.value=!v.value},F=()=>{const Z=()=>{_(()=>o("cancel"))};r.beforeCancel?r.beforeCancel(Z):Z()},L=()=>{const Z=()=>{_(()=>o("ok"))};r.beforeOk?r.beforeOk(Z):Z()},H=()=>{Ot(()=>{s.value&&l(s.value)})},E=Z=>o("before-open",Z),P=Z=>o("open",Z),V=Z=>o("before-close",Z),O=Z=>o("close",Z),N=Z=>{setTimeout(()=>{Z.code==="Escape"&&!r.noEscDismiss&&!r.noDismiss&&d.value&&F()})};Jd([s],()=>{!v.value||r.noOutsideDismiss||r.noDismiss||!d.value||(o("click-outside"),F())});const re=qd();tr(()=>{var Z,Ve;v.value?(Z=re.value)==null||Z.addEventListener("keyup",N):(Ve=re.value)==null||Ve.removeEventListener("keyup",N)}),Fj($n(r,"blur"),v);const X=us(),ke=Z=>{!X.value||r.allowBodyScroll||(Z==="hidden"?X.value.body.classList.add("va-modal-open"):X.value.body.classList.remove("va-modal-open"))},$e=()=>{u(),ke("hidden")},ye=()=>{f.value&&(a(),ke("")),c()};fe(v,Z=>{Z?$e():ye()}),dt(()=>{v.value&&$e(),d.value&&H()}),jt(()=>{ye()}),fe(d,Z=>{Z&&H()},{immediate:!0}),e({show:T,hide:_,toggle:M,cancel:F,ok:L,onBeforeEnterTransition:E,onAfterEnterTransition:P,onBeforeLeaveTransition:V,onAfterLeaveTransition:O,listenKeyUp:N});const{tp:j}=yt(),{teleportFromAttrs:ce,teleportedAttrs:Se}=Pk(),ne={show:T,hide:_,toggle:M,cancel:F,ok:L};return(Z,Ve)=>(A(),I("div",{ref_key:"rootElement",ref:i,class:Ae(["va-modal-entry",Z.$props.anchorClass])},[Z.$slots.anchor?(A(),I("div",ee({key:0,class:"va-modal__anchor"},m(ce)),[D(Z.$slots,"anchor",de(we(ne)))],16)):z("",!0),(A(),te(Ca,{to:t.attachElement,disabled:Z.$props.disableAttachment},[he(m(Qj),ee({name:"va-modal",isTransition:!Z.$props.withoutTransitions,duration:300,style:{zIndex:S.value},appear:""},{...Z.$attrs,...m(Se)},{onBeforeEnter:E,onAfterEnter:P,onBeforeLeave:V,onAfterLeave:O}),{default:J(()=>[m(v)?(A(),I("div",{key:0,"aria-labelledby":t.title,class:Ae([y.value,"va-modal"]),role:"dialog","aria-modal":"true"},[Z.$props.overlay?(A(),I("div",{key:0,class:Ae(["va-modal__overlay",k.value]),style:se(C.value)},null,6)):z("",!0),q("div",{ref_key:"modalDialog",ref:s,class:"va-modal__dialog",style:se([x.value])},[Z.$props.fullscreen||Z.$props.closeButton?(A(),te(m(Ze),{key:0,"va-child":"closeButton",class:Ae([{"va-modal__close--fullscreen":Z.$props.fullscreen},"va-modal__close"]),"aria-label":m(j)(Z.$props.ariaCloseLabel),role:"button",tabindex:"0",name:"va-close",onClick:F,onKeydown:[Ce(F,["space"]),Ce(F,["enter"])]},null,8,["class","aria-label"])):z("",!0),Z.$slots.content?D(Z.$slots,"content",de(ee({key:1},ne))):(A(),I("div",Kj,[q("div",Gj,[D(Z.$slots,"header",de(we(ne)),()=>[t.title?(A(),I("div",{key:0,class:"va-modal__title",style:se({color:m(h)("primary")})},Be(Z.$props.title),5)):z("",!0)])]),Z.$props.message?(A(),I("div",qj,Be(Z.$props.message),1)):z("",!0),Z.$slots.default?(A(),I("div",Yj,[D(Z.$slots,"default",de(we(ne)))])):z("",!0),(Z.$props.cancelText||Z.$props.okText)&&!Z.$props.hideDefaultActions?(A(),I("div",Xj,[Z.$props.cancelText?(A(),te(m(et),{key:0,"va-child":"cancelButton",preset:"secondary",color:"secondary",class:"va-modal__default-cancel-button",onClick:F},{default:J(()=>[Ue(Be(m(j)(Z.$props.cancelText)),1)]),_:1})):z("",!0),he(m(et),{"va-child":"okButton",onClick:L},{default:J(()=>[Ue(Be(m(j)(Z.$props.okText)),1)]),_:1})])):z("",!0),Z.$slots.footer?(A(),I("div",Jj,[D(Z.$slots,"footer",de(we(ne)))])):z("",!0)]))],4)],10,Uj)):z("",!0)]),_:3},16,["isTransition","style"])],8,["to","disabled"]))],2))}}),tg=me(Zj),e5=t=>{var e;return((e=t.component)==null?void 0:e.props)||{}},ob=(t,e)=>{t&&(wa(null,t),t.remove()),t=null},t5=(t,{props:e,appContext:n}={})=>{const r=document==null?void 0:document.createElement("div");let o;const i=l=>{var a;(a=e==null?void 0:e.onClose)==null||a.call(e,l),ob(r)},s=l=>{var a;(a=e==null?void 0:e["onUpdate:modelValue"])==null||a.call(e,l),e!=null&&e.withoutTransitions&&!l&&Ot(()=>{ob(r)})};return o=ut(t,{...e,stateful:(e==null?void 0:e.stateful)??!0,modelValue:!0,onClose:i,"onUpdate:modelValue":s}),n&&(o.appContext=n),r&&wa(o,r),{vNode:o,el:r}},n5=t=>typeof t=="string"?{message:t}:t,Wf=(t,e)=>{const{vNode:n,el:r}=t5(tg,{appContext:e,props:n5(t)});return r&&n.el&&e5(n)&&document.body.appendChild(r.childNodes[0]),n},r5=t=>({init(e){return Wf(e,t==null?void 0:t._context)},confirm(e){return typeof e=="string"?new Promise(n=>{Wf({message:e,onOk(){n(!0)},onCancel(){n(!1)}},t==null?void 0:t._context)}):new Promise(n=>{Wf({...e,onOk(){var r;(r=e==null?void 0:e.onOk)==null||r.call(e),n(!0)},onCancel(){var r;(r=e==null?void 0:e.onCancel)==null||r.call(e),n(!1)}},t==null?void 0:t._context)})}}),o5=So(()=>({install(t){ri(t,"$vaModal",r5(t))}})),Bk=(t,e)=>{const n=Object.entries(e);return t.reduce((r,o)=>r.concat(n.map(([i,s])=>({...o,postfix:o.postfix??i,value:o.value??s}))),[])},Mk=t=>t.reduce((e,n)=>{const r=[n.property].flat().map(o=>`${o}: ${n.value};`).join("");return e+=`.va-${n.prefix}--${n.postfix} { ${r} }`,e},""),ib=(t,e)=>{const n=Bk(t,e);Zm("va-color-helpers",()=>Mk(n))},i5=()=>{if(as())return;const{globalConfig:t}=yo();return fe(()=>t.value.colorsClasses,e=>{e.length&&ib(e,t.value.colors.variables)},{immediate:!0,deep:!0}),fe(()=>t.value.colors.variables,e=>{e&&ib(t.value.colorsClasses,e)},{immediate:!0,deep:!0}),{renderColorHelpers:()=>{const e=Bk(t.value.colorsClasses,t.value.colors.variables);return Mk(e)}}},s5=So(()=>({install(t){ri(t,"$vaColorsClasses",i5())}})),Ik=Symbol("AccordionService"),l5=(t,e)=>{const n=W([]),r=()=>{const u=Math.max(n.value.length,e.value.length);return Array.from({length:u},(c,d)=>e.value[d]??!1)},o=u=>e.value[n.value.indexOf(u)]??!1,i=()=>{e.value=r()};return Pr(Ik,{registerItem:u=>{n.value.push(u),i()},unregisterItem:u=>{n.value=n.value.filter(c=>c!==u),Ot(i)},getItemValue:o,setItemValue:(u,c)=>{const d=n.value.indexOf(u);if(d===-1){pt("Accordion item is not registered yet");return}t.multiple?e.value[d]=c:e.value=r().map((f,h)=>h===d?c:!1)},props:g(()=>t)}),{items:n}},a5=()=>{const t=Mn(Ik,void 0);if(!t)return{accordionProps:W({})};const e={};return t.registerItem(e),jt(()=>t.unregisterItem(e)),{accordionItemValue:g({get:()=>t.getItemValue(e),set:r=>t.setItemValue(e,r)}),accordionProps:t.props}},u5={class:"va-accordion"},c5=ie({name:"VaAccordion",__name:"VaAccordion",props:{...Kt,...Me,modelValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},inset:{type:Boolean,default:!1},stateful:{type:Boolean,default:!0},popout:{type:Boolean,default:!1}},emits:[...un],setup(t,{expose:e,emit:n}){const r=t,o=n,{valueComputed:i}=xt(r,o,"modelValue"),{items:s}=l5(r,i);return e({collapses:s,value:i}),(u,c)=>(A(),I("div",u5,[D(u.$slots,"default")]))}}),d5=me(c5);function Dk(){return document.documentElement.clientHeight||window.innerHeight||document.body.clientHeight}function sb({coordinates:t,offsetTop:e,offsetBottom:n,target:r}){let o=!1,i=!1;const s=Dk();if(e!=null&&s)if(r===window)o=t.top<=e;else{const{top:l}=r.getBoundingClientRect();o=t.top-l<=e}if(n!=null&&s)if(r===window)i=t.bottom>=s-n;else{const{bottom:l}=r.getBoundingClientRect();i=l-t.bottom<=n}return{isTopAffixed:o,isBottomAffixed:i}}function f5(t,e){return t.isTopAffixed!==e.isTopAffixed||t.isBottomAffixed!==e.isBottomAffixed}function lb(t,e){const{target:n,element:r,offsetTop:o,offsetBottom:i,setState:s,getState:l,initialPosition:a}=e;if(!r)return;const u=!t,c=r.getBoundingClientRect(),d={offsetBottom:i,offsetTop:o,target:n},f=sb(u&&a?{coordinates:a,...d}:{coordinates:c,...d}),h=l();f5(h,f)?s({...f,width:c.width}):h.width!==c.width&&s({...h,width:c.width})}function h5(t){return t==="scroll"}function p5(t,{handler:e,useCapture:n=h5,wait:r=50}){const o=t.map(i=>{const s=zw(l=>e(i,l),r);return window.addEventListener(i,s,n(i)),()=>window.removeEventListener(i,s,n(i))});return()=>o.forEach(i=>i())}const m5=ie({name:"VaAffix",__name:"VaAffix",props:{...Me,offsetTop:{type:[Number,String],default:void 0},offsetBottom:{type:[Number,String],default:void 0},target:{type:[Object,Function],default:vk}},emits:["change"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),i=()=>typeof n.target=="function"?n.target():n.target,s=g(()=>l.value.isTopAffixed||l.value.isBottomAffixed),l=W({isTopAffixed:!1,isBottomAffixed:!1}),a=()=>l.value,u=x=>{l.value=x,r("change",s)},c=Ye("offsetTop"),d=Ye("offsetBottom"),f=()=>{const x=i();if(!x)return 0;if(c.value!==void 0){if(!(x instanceof Window)){const{top:k}=x.getBoundingClientRect();return k+c.value}return c.value}},h=()=>{const x=i();if(!x)return 0;if(d.value!==void 0){if(!(x instanceof Window)){const{bottom:k}=x.getBoundingClientRect(),{borderTopWidth:$,borderBottomWidth:C}=getComputedStyle(x),{offsetHeight:T,clientHeight:_}=x,M=T-_-parseInt($)-parseInt(C);return Dk()-(k-d.value)+M}return d.value}},p=x=>{const k=x();return k===void 0?void 0:`${k}px`},v=g(()=>[{"va-affix--affixed":s}]),y=g(()=>({top:l.value.isTopAffixed?p(f):void 0,bottom:l.value.isBottomAffixed?p(h):void 0,width:`${l.value.width}px`})),b=W(),S=(x,k)=>{const $={...n,offsetTop:c.value,offsetBottom:d.value,initialPosition:b.value,element:o.value,target:i(),setState:u,getState:a};if(!x||x==="resize")lb(x,$);else if(k&&k.target){const C=i();C===k.target||C instanceof Window?lb(x,$):u({isBottomAffixed:!1,isTopAffixed:!1})}};let w=Qz;return dt(()=>{var x;b.value=(x=o.value)==null?void 0:x.getBoundingClientRect(),w=p5(["scroll","resize"],{handler:S}),Ot(()=>{S(null)})}),jt(w),(x,k)=>(A(),I("div",{ref_key:"element",ref:o,class:"va-affix"},[q("div",{style:se({visibility:s.value?"hidden":"inherit"})},[D(x.$slots,"default")],4),s.value?(A(),I("div",{key:0,class:Ae(v.value),style:se(y.value)},[D(x.$slots,"default")],6)):z("",!0)],512))}}),g5=me(m5),Ek=t=>{const{textColorComputed:e}=qt(t);return e},Lk=t=>{let e;return t.startsWith("rgba")?e=t.substring(5,t.length-1).split(","):e=t.substring(4,t.length-1).split(","),e[0]=Number(e[0]),e[1]=Number(e[1]),e[2]=Number(e[2]),e[3]===void 0?e[3]=1:e[3]=Number(e[3]),e},ab=t=>"#"+(t[0]|256).toString(16).slice(1)+(t[1]|256).toString(16).slice(1)+(t[2]|256).toString(16).slice(1)+(t[3]*255|256).toString(16).slice(1),v5=t=>{const e=[];let n=t;for(;n;){if(!(n instanceof HTMLElement)||!n)return e;const{backgroundColor:r,willChange:o}=window.getComputedStyle(n),i=o.includes("background"),s=Lk(r);if(s[3]===1&&!i)return e.push(n),e;(s[3]!==0||i)&&e.push(n),n=n.parentElement}return e},ub="va-background-watcher",y5=(t,e)=>(t.className=ub+" "+t.className,t.addEventListener("transitionend",n=>{n.target===t&&e()}),()=>{t.className=t.className.replace(ub,""),t.removeEventListener("transitionend",e)}),b5=(t,e)=>{const n=t.map(r=>y5(r,e));return()=>{n.forEach(r=>r())}},S5=(t,e)=>{const n=e[3];if(n===1)return e;if(n===0)return t;const r=Math.round(t[0]*(1-n)+e[0]*n),o=Math.round(t[1]*(1-n)+e[1]*n),i=Math.round(t[2]*(1-n)+e[2]*n);return[r,o,i,1]},cb=t=>{let e=[0,0,0,0];for(let n=t.length-1;n>=0;n--)e=S5(e,Lk(window.getComputedStyle(t[n]).backgroundColor));return e},Vk=t=>{const e=W("#000000");let n=()=>{};return tr(()=>{if(n(),t.value){const r=v5(t.value);n=b5(r,()=>{e.value=ab(cb(r))}),e.value=ab(cb(r))}}),e},ng=t=>{if(t)return t;const e=_t(),n=Ne();return dt(()=>{n.value=e.proxy.$el??void 0}),_d(()=>{n.value=e.proxy.$el??void 0}),jt(()=>{n.value=e.proxy.$el??void 0}),n},C5=t=>{const{getColor:e}=He(),n=g(()=>!!(t.outline||t.border)),{textColorComputed:r}=qt($n(t,"color"),n),o=g(()=>e(t.color)),i=g(()=>{let c=o.value,d="none";return t.outline&&(c="transparent"),t.border&&(c="var(--va-background-primary)",d="var(--va-alert-box-shadow)"),{border:t.outline?`1px solid ${o.value}`:"",padding:t.dense?"var(--va-alert-padding-y-dense) var(--va-alert-padding-x)":"",backgroundColor:c,boxShadow:d}}),s=Ek(Vk(ng())),l=g(()=>({alignItems:t.center?"center":"",color:t.border||t.outline?s.value:r.value})),a=g(()=>({color:r.value})),u=g(()=>({backgroundColor:t.borderColor?e(t.borderColor):o.value}));return{alertStyle:i,contentStyle:l,titleStyle:a,borderStyle:u}},w5={key:1,class:"va-alert__close"},k5=["aria-label"],x5=ie({name:"VaAlert",__name:"VaAlert",props:{...Kt,...Me,modelValue:{type:Boolean,default:!0},stateful:{type:Boolean,default:!0},color:{type:String,default:"primary"},textColor:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""},closeText:{type:String,default:""},closeIcon:{type:String,default:"close"},closeable:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},center:{type:Boolean,default:!1},borderColor:{type:String,default:""},border:{type:String,default:"",validator:t=>["top","right","bottom","left",""].includes(t)}},emits:[...un],setup(t,{expose:e,emit:n}){const r=t,o=n,{contentStyle:i,titleStyle:s,alertStyle:l,borderStyle:a}=C5(r),{valueComputed:u}=xt(r,o),c=()=>{u.value=!1},d=()=>{u.value=!0},f=Ln(),h=g(()=>r.icon||f.icon),p=g(()=>r.title||f.title),v=g(()=>`va-alert__border--${r.border}`),{tp:y,t:b}=yt();return e({hide:c,show:d}),(S,w)=>(A(),te(ul,{name:"fade"},{default:J(()=>[m(u)?(A(),I("div",{key:0,class:"va-alert",style:se(m(l)),role:"alert"},[q("div",{style:se(m(a)),class:Ae([v.value,"va-alert__border"])},null,6),h.value?(A(),I("div",{key:0,style:se(m(i)),class:"va-alert__icon","aria-hidden":"true"},[D(S.$slots,"icon",{},()=>[he(m(Ze),{name:t.icon},null,8,["name"])])],4)):z("",!0),q("div",{style:se(m(i)),class:"va-alert__content"},[p.value?(A(),I("div",{key:0,style:se(m(s)),class:"va-alert__title"},[D(S.$slots,"title",{},()=>[Ue(Be(t.title),1)])],4)):z("",!0),q("span",null,[D(S.$slots,"default",{},()=>[Ue(Be(S.$props.description),1)])])],4),t.closeable?(A(),I("div",w5,[q("div",{role:"button",class:"va-alert__close--closeable",tabindex:"0","aria-label":t.closeText||m(b)("closeAlert"),style:se(m(i)),onClick:c,onKeydown:[Ce(c,["space"]),Ce(c,["enter"])]},[D(S.$slots,"close",{},()=>[t.closeText?z("",!0):(A(),te(m(Ze),{key:0,name:t.closeIcon},null,8,["name"])),Ue(" "+Be(t.closeText),1)])],44,k5)])):z("",!0)],4)):z("",!0)]),_:3}))}}),$5=me(x5),Rk={hideOnScroll:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1}};function Fk(t,e){const n=g(()=>e.value?!!t.hideOnScroll:!1),r=g(()=>{if(!(!t.bottom&&!n.value))return t.bottom&&n.value?"translateY(100%)":t.bottom?t.fixed?"translateY(-100%)":"translateY(0)":"translateY(-100%)"}),o=g(()=>t.fixed?"fixed":n.value?"absolute":void 0);return{fixedBarStyleComputed:g(()=>{const s={top:t.bottom&&(n.value||t.fixed)?"100%":void 0,transform:t.hideOnScroll||t.fixed?r.value:void 0};return o.value&&Object.assign(s,{position:o.value}),s})}}function A5(t){if(!t)throw new Error("No target was provided for `useScroll` hook!");return typeof t=="string"?document.querySelector(t):t}function Nk(t,e){const n=Ne();let r;const o=W(!1),i=W(0),s=l=>{const a=l.target,u=l.target instanceof Window?a.scrollY:a.scrollTop;o.value=i.value{r=t?window:A5(e||n.value),r==null||r.addEventListener("scroll",s,t)}),jt(()=>{r==null||r.removeEventListener("scroll",s)}),{scrollRoot:n,isScrolledDown:o}}const T5=ie({name:"VaAppBar",__name:"VaAppBar",props:{...Rk,...Me,gradient:{type:Boolean,default:!1},target:{type:[Object,String],default:""},shadowOnScroll:{type:Boolean,default:!1},shadowColor:{type:String,default:""},color:{type:String,default:"primary"}},setup(t){const e=t,{scrollRoot:n,isScrolledDown:r}=Nk(e.fixed,e.target),{fixedBarStyleComputed:o}=Fk(e,r),{getColor:i,getGradientBackground:s,getBoxShadowColor:l}=He(),a=g(()=>i(e.color)),{textColorComputed:u}=qt($n(e,"color")),c=g(()=>r.value?!!e.shadowOnScroll:!1),d=g(()=>i(e.shadowColor,a.value)),f=g(()=>{const p=l(e.shadowColor?d.value:a.value);return c.value?`var(--va-app-bar-shadow) ${p}`:""}),h=g(()=>({...o.value,background:e.gradient?s(a.value):a.value,boxShadow:f.value,color:u.value}));return(p,v)=>(A(),I("header",{ref_key:"scrollRoot",ref:n,role:"toolbar",class:"va-app-bar",style:se(h.value)},[D(p.$slots,"default")],4))}}),_5=me(T5),O5=ie({name:"VaAspectRatio",__name:"VaAspectRatio",props:{...Me,ratio:{type:[Number,String],default:"auto"},contentHeight:{type:[Number,String],default:1},contentWidth:{type:[Number,String],default:1},maxWidth:{type:[Number,String],default:0,validator:t=>Number(t)>=0}},setup(t){const e=t,n=Ye("contentHeight"),r=Ye("contentWidth"),o=g(()=>e.ratio==="auto"&&e.contentHeight===1&&e.contentWidth===1?0:isNaN(+e.ratio)?r.value/n.value:e.ratio),i=g(()=>{if(o.value)return{paddingBottom:`${1/o.value*100}%`}}),s=g(()=>e.maxWidth?`${e.maxWidth}px`:void 0);return(l,a)=>(A(),I("div",{class:"va-aspect-ratio",style:se(`--va-max-width-computed: ${String(s.value)}`)},[i.value?(A(),I("div",{key:0,style:se(i.value)},null,4)):z("",!0),D(l.$slots,"default")],4))}}),Hk=me(O5),P5=ie({name:"VaFallback",props:{fallbackSrc:{type:String},fallbackText:{type:String},fallbackIcon:{type:String},fallbackRender:{type:Function}},components:{VaIcon:Ze},emits:["fallback"],setup(t,{emit:e}){return dt(()=>{e("fallback")}),t.fallbackIcon?()=>ut(Ze,{name:t.fallbackIcon}):t.fallbackSrc?()=>ut("img",{src:t.fallbackSrc}):t.fallbackRender?()=>{var n;return ut((n=t.fallbackRender)==null?void 0:n.call(t))}:()=>ut("span",t.fallbackText)}}),Gs=me(P5);function zk(t){switch(!0){case Array.isArray(t):return t.reduce((e,n)=>({...e,[n]:null}),{});case(typeof t=="object"&&t!==null):return t;default:return{}}}function jc(t,e,n="props"){const{mixins:r,extends:o}=e;o&&jc(t,o,n),r&&r.forEach(s=>jc(t,s,n));const i=zk(e[n]);for(const s in i)t[s]=i[s]}function B5(t){return t.options?t.options:t.__vccOpts||t.__b?{...t.__vccOpts,...t.__b}:t}function M5(t,e="props"){const n=t.mixins??[],r=t.extends??[],o={};jc(o,r,e);for(let i=0;iM5(B5(t));function nt(t,e){const n=I5(t);return e?Object.keys(n).reduce((r,o)=>(e.includes(o)||n[o]===void 0||(r[o]=typeof n[o]=="string"?{}:n[o]),r),{}):n}function Li(t){return[...new Set(t.emits)]}const gt=t=>{const{props:e}=_t();return g(()=>Object.keys(t).reduce((n,r)=>(n[r]=e[r],n),{}))},D5=["src","alt"],db=nt(Gs),E5=ie({name:"VaAvatar",__name:"VaAvatar",props:{...Xa,...ss,...Me,...db,color:{type:String,default:"primary"},textColor:{type:String},square:{type:Boolean,default:!1},fontSize:{type:String,default:""},src:{type:String,default:null},icon:{type:String,default:""},alt:{type:String,default:""}},emits:["error","fallback"],setup(t,{expose:e,emit:n}){const r=t,o=n,{getColor:i}=He(),s=g(()=>i(r.color)),l=g(()=>{if(!(r.loading||r.src&&!h.value))return s.value}),{sizeComputed:a,fontSizeComputed:u}=ls(r,"VaAvatar"),{textColorComputed:c}=qt(l),d=g(()=>({fontSize:r.fontSize||u.value})),f=ct("va-avatar",()=>({...Bt(r,["square"])})),h=W(!1),p=b=>{h.value=!0,o("error",b)};fe(()=>r.src,()=>{h.value=!1});const v=g(()=>({hasError:h.value,onError:p})),y=gt(db);return e({hasLoadError:h}),(b,S)=>(A(),I("div",{class:Ae(["va-avatar",m(f)]),style:se([d.value,`--va-background-color-computed: ${String(l.value)};--va-text-color-computed: ${String(m(c))};--va-size-computed: ${String(m(a))}`])},[b.$props.loading?(A(),te(m(bl),{key:0,size:m(a),color:s.value,indeterminate:""},null,8,["size","color"])):D(b.$slots,"default",de(ee({key:1},v.value)),()=>[b.$props.src&&!h.value?(A(),I("img",{key:0,src:b.$props.src,alt:b.$props.alt,onError:p},null,40,D5)):h.value&&b.$props.src?D(b.$slots,"fallback",{key:1},()=>[he(m(Gs),ee(m(y),{onFallback:S[0]||(S[0]=w=>b.$emit("fallback"))}),null,16)]):b.$props.icon?(A(),te(m(Ze),{key:2,name:b.$props.icon},null,8,["name"])):D(b.$slots,"fallback",{key:3},()=>[he(m(Gs),ee(m(y),{onFallback:S[1]||(S[1]=w=>b.$emit("fallback"))}),null,16)])])],6))}}),Wc=me(E5),fb=nt(Wc),L5=ie({name:"VaAvatarGroup",__name:"VaAvatarGroup",props:{...ss,...Me,...fb,max:{type:[Number,String],default:0},vertical:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},restColor:{type:String,default:"secondary"}},setup(t){const e=t,n=Ye("max"),r=ct("va-avatar-group",()=>({...Bt(e,["vertical"])})),o=g(()=>n.value&&n.value<=e.options.length?e.options.slice(0,n.value):e.options),i=g(()=>{const c=e.options.length>0,d=o.value.length({...a.value,fontSize:l.value,size:s.value}));return(c,d)=>(A(),I("div",{class:Ae(["va-avatar-group",m(r)]),role:"list"},[(A(!0),I(_e,null,Ge(o.value,(f,h)=>(A(),te(m(Wc),ee({key:h},{...u.value,...f},{role:"listitem"}),null,16))),128)),i.value>0?D(c.$slots,"rest",de(ee({key:0},u.value)),()=>[he(m(Wc),ee(u.value,{color:t.restColor,class:"va-avatar-group__rest",role:"listitem"}),{default:J(()=>[Ue(" +"+Be(i.value),1)]),_:1},16,["color"])]):z("",!0)],2))}}),V5=me(L5),R5=["aria-label","onKeydown"],F5=ie({name:"VaBacktop",__name:"VaBacktop",props:{...Me,target:{type:[Object,String],default:void 0},visibilityHeight:{type:[Number,String],default:300},speed:{type:[Number,String],default:50},verticalOffset:{type:String,default:"1rem"},horizontalOffset:{type:String,default:"1rem"},color:{type:String,default:""},horizontalPosition:{type:String,default:"right",validator:t=>["right","left"].includes(t)},verticalPosition:{type:String,default:"bottom",validator:t=>["bottom","top"].includes(t)},ariaLabel:{type:String,default:"$t:backToTop"}},setup(t){const e=t,n=W(0),r=g(()=>({[e.verticalPosition]:e.verticalOffset,[e.horizontalPosition]:e.horizontalOffset}));let o;const i=Ye("visibilityHeight"),s=Ye("speed"),l=()=>{if(!e.target)return window;if(typeof e.target=="string"){const y=document.querySelector(e.target);return y||(pt(`Target element [${e.target}] is not found, falling back to window.`),window)}return e.target},a=W(!1),u=W(0),c=()=>{if(!a.value){if(a.value=!0,o instanceof Window){window.scrollTo({top:0,behavior:"smooth"});return}u.value=window.setInterval(()=>{if(o instanceof Element)if(o.scrollTop===0)clearInterval(u.value),a.value=!1;else{const y=Math.floor(o.scrollTop-s.value);o.scrollTo(0,y)}},15)}},d=()=>{n.value=o instanceof Window?o.scrollY:o.scrollTop},f=as(),h=g(()=>f?!1:n.value>i.value);f||(dt(()=>{o=l(),o.addEventListener("scroll",d,!0)}),jt(()=>o==null?void 0:o.removeEventListener("scroll",d)));const{tp:p,t:v}=yt();return(y,b)=>h.value?(A(),I("div",{key:0,class:"va-backtop",role:"button","aria-label":m(p)(y.$props.ariaLabel),tabindex:"1",style:se(r.value),onClick:c,onKeydown:Ce(be(c,["stop"]),["enter"])},[D(y.$slots,"default",{},()=>[he(m(et),{"aria-hidden":"true",icon:"va-arrow-up",color:t.color},null,8,["color"])])],44,R5)):z("",!0)}}),N5=me(F5),jk=["top","bottom"],Wk=["left","right"],H5=[...jk,...Wk],z5=["start","end","center"],j5=H5.reduce((t,e)=>(t.push(e),z5.forEach(n=>t.push(`${e}-${n}`)),t),["auto"]),W5=jk.reduce((t,e)=>(Wk.forEach(n=>{t.push(`${e}-${n}`),t.push(`${n}-${e}`)}),t),[]),Uk=[...j5,...W5],U5={"top-left":"top-start","left-top":"top-start","top-right":"top-end","right-top":"top-end","bottom-left":"bottom-start","left-bottom":"bottom-start","bottom-right":"bottom-end","right-bottom":"bottom-end"},Kk={placement:{type:String,default:"auto",validator:t=>Uk.includes(t)}},Gk=t=>{const e=g(()=>(U5[t.placement]||t.placement).split("-")),n=g(()=>{const o=e.value[0];return o==="auto"?"bottom":o}),r=g(()=>e.value[1]||"center");return{position:n,align:r}},qk=()=>{const t=r=>typeof r=="string"?!isNaN(+r)||r.endsWith("px")||r.endsWith("rem"):!1;return{isParsableMeasure:t,isParsablePositiveMeasure:r=>typeof r=="number"?r>=0:t(r)&&parseInt(r)>=0,parseSizeValue:(r,o=16)=>{const i=m(r);if(typeof i=="string"){const s=parseInt(i);return isNaN(s)?0:i.endsWith("rem")?s*m(o):s}return i}}},{isParsableMeasure:hb,parseSizeValue:pb}=qk(),K5={overlap:{type:Boolean,default:!1},placement:{type:String,default:"top-end",validator:t=>Uk.includes(t)},offset:{type:[Number,String,Array],default:0,validator:t=>Array.isArray(t)?t.every(hb):typeof t=="string"?hb(t):!isNaN(t)}},G5=(t,e)=>{if(!e.value)return{};const{position:n,align:r}=Gk(t),o=g(()=>({start:t.overlap?"-50%":"-100%",center:"-50%",end:t.overlap?"-50%":"0%"})[r.value]),i=g(()=>{if(!t.offset)return{};const a=["left","right"].includes(n.value)?"top":"left",u=a==="top"?"left":"top";if(Array.isArray(t.offset)){const[d,f]=t.offset.map(pb);return{[`margin-${a}`]:`${d}px`,[`margin-${u}`]:`${f}px`}}const c=pb(t.offset);return{[`margin-${u}`]:`${c}px`}}),s=g(()=>{const a=["left","right"].includes(n.value)?"top":"left",u=a==="top"?"left":"top";let c="0%";return u==="top"&&n.value==="bottom"&&(c="100%"),u==="left"&&n.value==="right"&&(c="100%"),{start:{[a]:"0%",[u]:c},center:{[a]:"50%",[u]:c},end:{[a]:"100%",[u]:c}}[r.value]}),l=g(()=>{const a={top:{x:o.value,y:t.overlap?"-50%":"-100%"},bottom:{x:o.value,y:t.overlap?"-50%":"0%"},left:{x:t.overlap?"-50%":"-100%",y:o.value},right:{x:t.overlap?"-50%":"0%",y:o.value}},{x:u,y:c}=a[n.value];return{transform:`translate(${u}, ${c})`}});return g(()=>({...s.value,...l.value,...i.value}))},q5={props:"prop",attrs:"prop",slots:"slot"},Y5=(t,e=["props","attrs"])=>{if(!vl)return;const n=_t();if(!n)throw new Error("`useDeprecated` hook must be used only inside of setup function!");const r=n.type.name,o=m(t);e.every(i=>{var s;const l=q5[i],a=u=>console.warn(`The '${u}' ${l} (${r} component) is deprecated! Please, check the documentation.`);if(i==="props"){const u=((s=n.propsOptions)==null?void 0:s[0])||{},c=n.props||{};return o.forEach(d=>{u[d]&&c[d]!==u[d].default&&a(d)}),!0}return Object.keys({...n[i]}).forEach(u=>{o.includes(u)&&a(u)}),!0})},X5=["aria-labelledby"],J5={class:"va-badge__text"},Q5=ie({name:"VaBadge",__name:"VaBadge",props:{...Me,...K5,color:{type:String,default:"danger"},textColor:{type:String},text:{type:[String,Number],default:""},multiLine:{type:Boolean,default:!1},visibleEmpty:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},setup(t){const e=t;Y5(["transparent"]);const n=Ln(),r=g(()=>!(e.text||e.visibleEmpty||e.dot||n.text)),o=g(()=>!!(n.default||e.dot)),i=ct("va-badge",()=>({...Bt(e,["visibleEmpty","dot","multiLine"]),empty:r.value,floating:o.value})),{getColor:s}=He(),l=g(()=>s(e.color)),{textColorComputed:a}=qt(l),u=G5(e,o),c=g(()=>({color:a.value,borderColor:l.value,backgroundColor:l.value,opacity:e.transparent?.5:1,...m(u)})),d=g(()=>e.text?String(e.text):void 0);return(f,h)=>(A(),I("div",{class:Ae(["va-badge",m(i)]),role:"status","aria-labelledby":d.value},[q("span",{class:"va-badge__text-wrapper",style:se(c.value)},[q("span",J5,[D(f.$slots,"text",{},()=>[Ue(Be(t.text),1)])])],4),D(f.$slots,"default")],10,X5))}}),Yk=me(Q5),mb=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),gb=t=>t&&Ws(t)?t():t,Xk={align:{type:String,default:"left"},vertical:{type:Boolean,default:!1}},Z5={left:"flex-start",center:"center",right:"flex-end",between:"space-between",around:"space-around"},eW={left:"flex-start",center:"center",right:"flex-end",stretch:"stretch"},tW=(t,e)=>e?"center":t?Z5[t]:"flex-start",nW=(t,e)=>e?eW[t]:"center";function Jk(t){return{alignComputed:g(()=>({display:"flex",flexDirection:t.vertical?"column":"row",justifyContent:tW(t.align,t.vertical),alignItems:nW(t.align,t.vertical)}))}}const rW=ie({name:"VaBreadcrumbs",props:{...Xk,...Me,separator:{type:String,default:"/"},color:{type:String,default:null},disabledColor:{type:String,default:"secondary"},activeColor:{type:String,default:null},separatorColor:{type:String,default:null},ariaLabel:{type:String,default:"$t:breadcrumbs"}},setup(t,{slots:e}){const{alignComputed:n}=Jk(t),{getColor:r}=He(),o=g(()=>t.separatorColor?r(t.separatorColor):null),i=g(()=>t.color?r(t.color):null),s=g(()=>t.activeColor?r(t.activeColor):null),l=(h,p)=>{const v=p&&p.type===_e&&p.children?p.children:[p];return[...h,...v.filter(y=>{var b,S;return!!((S=(b=y==null?void 0:y.type)==null?void 0:b.name)!=null&&S.match(/VaBreadcrumbsItem$/))})]},a=()=>{const h=gb(e.separator)||[t.separator];return ut("span",{"aria-hidden":!0,class:["va-breadcrumbs__separator"],style:[{color:o.value}]},h)},u=h=>{const p=h==null?void 0:h.props;return!p||!mb(p,"disabled")?!1:p.disabled===""?!0:!!p.disabled},c=W(!0),d=()=>{const h=gb(e.default);if(!h)return;const p=h.reduce(l,[])||[],v=p.length,y=x=>x===v-1,b=x=>{const k=x==null?void 0:x.props;return!k||!mb(k,"to")?!1:!!(k.to&&!k.disabled)},S=(x,k)=>ut("span",{class:["va-breadcrumbs__item",{"va-breadcrumbs__item--disabled":u(x)}],"aria-current":y(k)&&b(x)?"location":!1,style:{color:u(x)?r(t.disabledColor):y(k)?s.value:i.value}},[x]),w=[];return v&&p.forEach((x,k)=>{c.value&&!b(x)&&(c.value=!1),w.push(S(x,k)),y(k)||w.push(a())}),w},{tp:f}=yt();return()=>ut("div",{class:"va-breadcrumbs",style:n.value,role:c.value?"navigation":void 0,"aria-label":c.value?f(t.ariaLabel):void 0},d())}}),oW=ie({name:"VaBreadcrumbsItem",__name:"VaBreadcrumbsItem",props:{...cs,disabled:{type:Boolean,default:!1},label:{type:String,default:""}},setup(t){const e=t,{tagComputed:n,hrefComputed:r,isLinkTag:o}=gi(e),i=g(()=>({"va-breadcrumb-item--link":o.value}));return(s,l)=>(A(),te(zn(m(n)),{class:Ae(["va-breadcrumb-item",i.value]),"active-class":s.$props.activeClass,href:m(r),to:s.$props.to,target:s.$props.target,replace:s.$props.replace,append:s.$props.append,exact:s.$props.exact,"exact-active-class":s.$props.exactActiveClass},{default:J(()=>[D(s.$slots,"default",{},()=>[Ue(Be(t.label),1)])]),_:3},8,["class","active-class","href","to","target","replace","append","exact","exact-active-class"]))}}),iW=me(oW),sW=me(rW),vb=vo(nt(et),["block","gradient"]),lW=ie({name:"VaButtonGroup",__name:"VaButtonGroup",props:{...vb,...Me,grow:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1}},setup(t){const e=t,{getColor:n,getGradientBackground:r}=He(),o=g(()=>n(e.color)),{textColorComputed:i}=qt(o),s=gt(vb),l=g(()=>({VaButton:{...s.value,...e.gradient&&{color:"#00000000",textColor:i.value}}})),a=ct("va-button-group",()=>({square:!e.round,grow:e.grow,small:e.size==="small",large:e.size==="large"})),u=g(()=>e.gradient?r(o.value):"transparent");return(c,d)=>(A(),I("div",{class:Ae(["va-button-group",m(a)]),style:se(`--va-background-color: ${String(u.value)}`)},[he(m(Ya),{components:l.value},{default:J(()=>[D(c.$slots,"default")]),_:3},8,["components"])],6))}}),Qd=me(lW),yb=t=>{let e=null;const n=()=>zm(()=>{e==null||e(),e=null},m(t));let r=n();return Tt(t)&&fe(t,()=>{r=n()}),{debounced:o=>{e=o,r()},cancel:()=>r.cancel()}},bb=t=>{const e=t.target;return!(!(e.tagName==="INPUT"||e.tagName==="TEXTAREA")||e.attributes.getNamedItem("readonly"))},aW=t=>Array.isArray(t),uW=(t,e,n,r)=>{const o=d=>(d=d.replace(/-/g,"").toLowerCase(),d==="space"?" ":d==="rightclick"?"contextmenu":d),i=g(()=>aW(r.trigger)?r.trigger.map(d=>o(d)):[o(r.trigger)]);At("keydown",d=>{r.disabled||(d.key==="Escape"&&t.value&&(t.value=!1,d.preventDefault()),!bb(d)&&i.value.includes(o(d.key))&&(t.value=!t.value,d.preventDefault()))},e),At("keydown",d=>{r.disabled||d.key==="Escape"&&t.value&&(t.value=!1,d.preventDefault())},n),At(["click","contextmenu","dblclick"],d=>{r.disabled||bb(d)||i.value.includes(o(d.type))&&(d.preventDefault(),t.value&&r.closeOnAnchorClick?(t.value=!1,r.cursor&&setTimeout(()=>{t.value=!0},16)):t.value=!0)},e),At(["click","contextmenu","dblclick"],d=>{r.closeOnContentClick&&(t.value=!1)},n);const{debounced:s,cancel:l}=yb(Ye("hoverOverTimeout")),{debounced:a,cancel:u}=yb(Ye("hoverOutTimeout")),c=d=>{if(!r.disabled&&i.value.includes("hover"))if(d.type==="mouseleave"){if(l(),!r.isContentHoverable){t.value=!1;return}a(()=>{t.value=!1})}else u(),s(()=>{t.value=!0})};At(["mouseleave","mouseenter"],c,e),At(["mouseleave","mouseenter"],c,n)},cW=t=>{const e=W(),n=us(),r=Gd();return{anchorRef:g({set(i){e.value=Rt(i)},get(){var i,s,l;return r.value,typeof t.anchor=="string"?((i=n.value)==null?void 0:i.querySelector(t.anchor))??e.value:typeof t.anchor=="object"?t.anchor:t.anchorSelector?((s=n.value)==null?void 0:s.querySelector(t.anchorSelector))??e.value:t.innerAnchorSelector&&e.value?((l=e.value)==null?void 0:l.querySelector(t.innerAnchorSelector))??e.value:e.value}})}},dW=(t,e)=>{const n=ar({x:0,y:0});return At(["mousemove","mousedown","mouseup"],r=>{var o;if(!e.value)return;const{x:i,y:s}=((o=t.value)==null?void 0:o.getBoundingClientRect())??{x:0,y:0};n.x=r.clientX-i,n.y=r.clientY-s},t),g(()=>({getBoundingClientRect(){var r;const{x:o,y:i}=((r=t.value)==null?void 0:r.getBoundingClientRect())??{x:0,y:0},s=n.x+o,l=n.y+i;return{width:0,height:0,x:s,y:l,top:l,right:s,bottom:l,left:s}},contextElement:t.value}))},Wo=Math.min,Xn=Math.max,Uc=Math.round,Ou=Math.floor,oi=t=>({x:t,y:t}),fW={left:"right",right:"left",bottom:"top",top:"bottom"},hW={start:"end",end:"start"};function Sb(t,e,n){return Xn(t,Wo(e,n))}function Qa(t,e){return typeof t=="function"?t(e):t}function ii(t){return t.split("-")[0]}function Za(t){return t.split("-")[1]}function Qk(t){return t==="x"?"y":"x"}function Zk(t){return t==="y"?"height":"width"}function eu(t){return["top","bottom"].includes(ii(t))?"y":"x"}function ex(t){return Qk(eu(t))}function pW(t,e,n){n===void 0&&(n=!1);const r=Za(t),o=ex(t),i=Zk(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Kc(s)),[s,Kc(s)]}function mW(t){const e=Kc(t);return[sp(t),e,sp(e)]}function sp(t){return t.replace(/start|end/g,e=>hW[e])}function gW(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function vW(t,e,n,r){const o=Za(t);let i=gW(ii(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(sp)))),i}function Kc(t){return t.replace(/left|right|bottom|top/g,e=>fW[e])}function yW(t){return{top:0,right:0,bottom:0,left:0,...t}}function bW(t){return typeof t!="number"?yW(t):{top:t,right:t,bottom:t,left:t}}function Gc(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Cb(t,e,n){let{reference:r,floating:o}=t;const i=eu(e),s=ex(e),l=Zk(s),a=ii(e),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let h;switch(a){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Za(e)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const SW=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:d}=Cb(u,r,a),f=r,h={},p=0;for(let v=0;vL<=0)){var _,M;const L=(((_=i.flip)==null?void 0:_.index)||0)+1,H=k[L];if(H)return{data:{index:L,overflows:T},reset:{placement:H}};let E=(M=T.filter(P=>P.overflows[0]<=0).sort((P,V)=>P.overflows[1]-V.overflows[1])[0])==null?void 0:M.placement;if(!E)switch(h){case"bestFit":{var F;const P=(F=T.map(V=>[V.placement,V.overflows.filter(O=>O>0).reduce((O,N)=>O+N,0)]).sort((V,O)=>V[1]-O[1])[0])==null?void 0:F[0];P&&(E=P);break}case"initialPlacement":E=l;break}if(o!==E)return{reset:{placement:E}}}return{}}}};async function wW(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ii(n),l=Za(n),a=eu(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&a?-1:1,d=Qa(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),a?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const kW=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=e,a=await wW(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},xW=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:S}=y;return{x:b,y:S}}},...a}=Qa(t,e),u={x:n,y:r},c=await rg(e,a),d=eu(ii(o)),f=Qk(d);let h=u[f],p=u[d];if(i){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",S=h+c[y],w=h-c[b];h=Sb(S,h,w)}if(s){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",S=p+c[y],w=p-c[b];p=Sb(S,p,w)}const v=l.fn({...e,[f]:h,[d]:p});return{...v,data:{x:v.x-n,y:v.y-r}}}}},$W=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:i}=e,{apply:s=()=>{},...l}=Qa(t,e),a=await rg(e,l),u=ii(n),c=Za(n),d=eu(n)==="y",{width:f,height:h}=r.floating;let p,v;u==="top"||u==="bottom"?(p=u,v=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,p=c==="end"?"top":"bottom");const y=h-a.top-a.bottom,b=f-a.left-a.right,S=Wo(h-a[p],y),w=Wo(f-a[v],b),x=!e.middlewareData.shift;let k=S,$=w;if(d?$=c||x?Wo(w,b):b:k=c||x?Wo(S,y):y,x&&!c){const T=Xn(a.left,0),_=Xn(a.right,0),M=Xn(a.top,0),F=Xn(a.bottom,0);d?$=f-2*(T!==0||_!==0?T+_:Xn(a.left,a.right)):k=h-2*(M!==0||F!==0?M+F:Xn(a.top,a.bottom))}await s({...e,availableWidth:$,availableHeight:k});const C=await o.getDimensions(i.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function ds(t){return og(t)?(t.nodeName||"").toLowerCase():"#document"}function Zn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xo(t){var e;return(e=(og(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function og(t){return t instanceof Node||t instanceof Zn(t).Node}function Yr(t){return t instanceof Element||t instanceof Zn(t).Element}function Xr(t){return t instanceof HTMLElement||t instanceof Zn(t).HTMLElement}function wb(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Zn(t).ShadowRoot}function tu(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Ar(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function AW(t){return["table","td","th"].includes(ds(t))}function ig(t){const e=sg(),n=Ar(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TW(t){let e=si(t);for(;Xr(e)&&!qs(e);){if(ig(e))return e;e=si(e)}return null}function sg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qs(t){return["html","body","#document"].includes(ds(t))}function Ar(t){return Zn(t).getComputedStyle(t)}function Zd(t){return Yr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function si(t){if(ds(t)==="html")return t;const e=t.assignedSlot||t.parentNode||wb(t)&&t.host||xo(t);return wb(e)?e.host:e}function tx(t){const e=si(t);return qs(e)?t.ownerDocument?t.ownerDocument.body:t.body:Xr(e)&&tu(e)?e:tx(e)}function Aa(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=tx(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=Zn(o);return i?e.concat(s,s.visualViewport||[],tu(o)?o:[],s.frameElement&&n?Aa(s.frameElement):[]):e.concat(o,Aa(o,[],n))}function nx(t){const e=Ar(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Xr(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=Uc(n)!==i||Uc(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function lg(t){return Yr(t)?t:t.contextElement}function Bs(t){const e=lg(t);if(!Xr(e))return oi(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=nx(e);let s=(i?Uc(n.width):n.width)/r,l=(i?Uc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const _W=oi(0);function rx(t){const e=Zn(t);return!sg()||!e.visualViewport?_W:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function OW(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Zn(t)?!1:e}function Yi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=lg(t);let s=oi(1);e&&(r?Yr(r)&&(s=Bs(r)):s=Bs(t));const l=OW(i,n,r)?rx(i):oi(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const f=Zn(i),h=r&&Yr(r)?Zn(r):r;let p=f,v=p.frameElement;for(;v&&r&&h!==p;){const y=Bs(v),b=v.getBoundingClientRect(),S=Ar(v),w=b.left+(v.clientLeft+parseFloat(S.paddingLeft))*y.x,x=b.top+(v.clientTop+parseFloat(S.paddingTop))*y.y;a*=y.x,u*=y.y,c*=y.x,d*=y.y,a+=w,u+=x,p=Zn(v),v=p.frameElement}}return Gc({width:c,height:d,x:a,y:u})}const PW=[":popover-open",":modal"];function ag(t){return PW.some(e=>{try{return t.matches(e)}catch{return!1}})}function BW(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=xo(r),l=e?ag(e.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=oi(1);const c=oi(0),d=Xr(r);if((d||!d&&!i)&&((ds(r)!=="body"||tu(s))&&(a=Zd(r)),Xr(r))){const f=Yi(r);u=Bs(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function MW(t){return Array.from(t.getClientRects())}function ox(t){return Yi(xo(t)).left+Zd(t).scrollLeft}function IW(t){const e=xo(t),n=Zd(t),r=t.ownerDocument.body,o=Xn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Xn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ox(t);const l=-n.scrollTop;return Ar(r).direction==="rtl"&&(s+=Xn(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function DW(t,e){const n=Zn(t),r=xo(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=sg();(!u||u&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function EW(t,e){const n=Yi(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Xr(t)?Bs(t):oi(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function kb(t,e,n){let r;if(e==="viewport")r=DW(t,n);else if(e==="document")r=IW(xo(t));else if(Yr(e))r=EW(e,n);else{const o=rx(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Gc(r)}function ix(t,e){const n=si(t);return n===e||!Yr(n)||qs(n)?!1:Ar(n).position==="fixed"||ix(n,e)}function LW(t,e){const n=e.get(t);if(n)return n;let r=Aa(t,[],!1).filter(l=>Yr(l)&&ds(l)!=="body"),o=null;const i=Ar(t).position==="fixed";let s=i?si(t):t;for(;Yr(s)&&!qs(s);){const l=Ar(s),a=ig(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||tu(s)&&!a&&ix(t,s))?r=r.filter(c=>c!==s):o=l,s=si(s)}return e.set(t,r),r}function VW(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?ag(e)?[]:LW(e,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=kb(e,c,o);return u.top=Xn(d.top,u.top),u.right=Wo(d.right,u.right),u.bottom=Wo(d.bottom,u.bottom),u.left=Xn(d.left,u.left),u},kb(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function RW(t){const{width:e,height:n}=nx(t);return{width:e,height:n}}function FW(t,e,n){const r=Xr(e),o=xo(e),i=n==="fixed",s=Yi(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const a=oi(0);if(r||!r&&!i)if((ds(e)!=="body"||tu(o))&&(l=Zd(e)),r){const d=Yi(e,!0,i,e);a.x=d.x+e.clientLeft,a.y=d.y+e.clientTop}else o&&(a.x=ox(o));const u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return{x:u,y:c,width:s.width,height:s.height}}function Uf(t){return Ar(t).position==="static"}function xb(t,e){return!Xr(t)||Ar(t).position==="fixed"?null:e?e(t):t.offsetParent}function sx(t,e){const n=Zn(t);if(ag(t))return n;if(!Xr(t)){let o=si(t);for(;o&&!qs(o);){if(Yr(o)&&!Uf(o))return o;o=si(o)}return n}let r=xb(t,e);for(;r&&AW(r)&&Uf(r);)r=xb(r,e);return r&&qs(r)&&Uf(r)&&!ig(r)?n:r||TW(t)||n}const NW=async function(t){const e=this.getOffsetParent||sx,n=this.getDimensions,r=await n(t.floating);return{reference:FW(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HW(t){return Ar(t).direction==="rtl"}const zW={convertOffsetParentRelativeRectToViewportRelativeRect:BW,getDocumentElement:xo,getClippingRect:VW,getOffsetParent:sx,getElementRects:NW,getClientRects:MW,getDimensions:RW,getScale:Bs,isElement:Yr,isRTL:HW};function jW(t,e){let n=null,r;const o=xo(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:d,height:f}=t.getBoundingClientRect();if(l||e(),!d||!f)return;const h=Ou(c),p=Ou(o.clientWidth-(u+d)),v=Ou(o.clientHeight-(c+f)),y=Ou(u),S={rootMargin:-h+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Xn(0,Wo(1,a))||1};let w=!0;function x(k){const $=k[0].intersectionRatio;if($!==a){if(!w)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,S)}n.observe(t)}return s(!0),i}function WW(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=lg(t),c=o||i?[...u?Aa(u):[],...Aa(e)]:[];c.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=u&&l?jW(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(b=>{let[S]=b;S&&S.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),u&&!a&&h.observe(u),h.observe(e));let p,v=a?Yi(t):null;a&&y();function y(){const b=Yi(t);v&&(b.x!==v.x||b.y!==v.y||b.width!==v.width||b.height!==v.height)&&n(),v=b,p=requestAnimationFrame(y)}return n(),()=>{var b;c.forEach(S=>{o&&S.removeEventListener("scroll",n),i&&S.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,a&&cancelAnimationFrame(p)}}const UW=kW,KW=xW,GW=CW,qW=$W,YW=(t,e,n)=>{const r=new Map,o={platform:zW,...n},i={...o.platform,_c:r};return SW(t,e,{...o,platform:i})};function XW(t){return t!=null&&typeof t=="object"&&"$el"in t}function $b(t){if(XW(t)){const e=t.$el;return og(e)&&ds(e)==="#comment"?null:e}return t}function lx(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ab(t,e){const n=lx(t);return Math.round(e*n)/n}function JW(t,e,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=g(()=>{var C;return(C=m(n.open))!=null?C:!0}),i=g(()=>m(n.middleware)),s=g(()=>{var C;return(C=m(n.placement))!=null?C:"bottom"}),l=g(()=>{var C;return(C=m(n.strategy))!=null?C:"absolute"}),a=g(()=>{var C;return(C=m(n.transform))!=null?C:!0}),u=g(()=>$b(t.value)),c=g(()=>$b(e.value)),d=W(0),f=W(0),h=W(l.value),p=W(s.value),v=Ne({}),y=W(!1),b=g(()=>{const C={position:h.value,left:"0",top:"0"};if(!c.value)return C;const T=Ab(c.value,d.value),_=Ab(c.value,f.value);return a.value?{...C,transform:"translate("+T+"px, "+_+"px)",...lx(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:T+"px",top:_+"px"}});let S;function w(){u.value==null||c.value==null||YW(u.value,c.value,{middleware:i.value,placement:s.value,strategy:l.value}).then(C=>{d.value=C.x,f.value=C.y,h.value=C.strategy,p.value=C.placement,v.value=C.middlewareData,y.value=!0})}function x(){typeof S=="function"&&(S(),S=void 0)}function k(){if(x(),r===void 0){w();return}if(u.value!=null&&c.value!=null){S=r(u.value,c.value,w);return}}function $(){o.value||(y.value=!1)}return fe([i,s,l],w,{flush:"sync"}),fe([u,c],k,{flush:"sync"}),fe(o,$,{flush:"sync"}),kS()&&L_(x),{x:Ti(d),y:Ti(f),strategy:Ti(h),placement:Ti(p),middlewareData:Ti(v),isPositioned:Ti(y),floatingStyles:b,update:w}}const QW=(t,e,n,r)=>{const o=g(()=>{const{position:u,align:c}=Gk({placement:r.value.placement});return`${u.value}-${c.value}`}),i=g(()=>{const u=r.value.offset,c={mainAxis:0,crossAxis:0};return Array.isArray(u)&&(c.mainAxis=u[0],c.crossAxis=u[1]),typeof u=="number"&&(c.mainAxis=u),c}),s=g(()=>{const{autoPlacement:u,stickToEdges:c,keepAnchorWidth:d,verticalScrollOnOverflow:f}=r.value,h=[UW(i.value)];return u&&h.push(GW({boundary:n.value})),c&&h.push(KW()),(d||f)&&h.push(qW({apply({elements:p,availableHeight:v}){if(d){const b=p.reference.getBoundingClientRect().width;Object.assign(p.floating.style,{maxWidth:`${b}px`,minWidth:`${b}px`})}f&&Object.assign(p.floating.style,{maxHeight:`${v}px`})}})),h}),{floatingStyles:l,isPositioned:a}=typeof document>"u"?{floatingStyles:{},isPositioned:W(!1)}:JW(t,e,{placement:o,whileElementsMounted:WW,middleware:s,transform:!0});return{floatingStyles:g(()=>a.value?l.value:{position:"fixed"}),isPositioned:a}},ZW=(t,e)=>!e||e instanceof Window?!1:e.parentElement===t?!0:t.contains(e),eU=t=>Array.isArray(t)?t:[t],tU=(t,e,n={})=>{let r=!1;n.onlyKeyboard&&At("mousedown",o=>{r=!0,setTimeout(()=>{r=!1},200)},!0),At("focus",o=>{if(n.onlyKeyboard&&r)return;const i=o.target;if(o.target.shadowRoot)return;eU(t).some(l=>{const a=Rt(m(l));return a&&ZW(a,i)})||e(i)},!0)},Kf=t=>g(()=>typeof(t==null?void 0:t.value)=="string"?document==null?void 0:document.querySelector(t.value):Rt(t==null?void 0:t.value)),nU=ie({name:"VaDropdown",props:{...Kk,...Ak(!0),modelValue:{type:Boolean,default:!1},anchor:{type:[String,Object],default:void 0},anchorSelector:{type:String,default:""},innerAnchorSelector:{type:String,default:""},trigger:{type:[String,Array],default:()=>["click","space","enter","arrow-down","arrow-up"]},disabled:{type:Boolean},readonly:{type:Boolean},closeOnClickOutside:{type:Boolean,default:!0},closeOnFocusOutside:{type:Boolean,default:!0},closeOnAnchorClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},hoverOverTimeout:{type:[Number,String],default:30},hoverOutTimeout:{type:[Number,String],default:200},isContentHoverable:{type:Boolean,default:!0},offset:{type:[Array,Number],default:0},keepAnchorWidth:{type:Boolean,default:!1},verticalScrollOnOverflow:{type:Boolean,default:!0},cursor:{type:[Boolean,Object],default:!1},autoPlacement:{type:Boolean,default:!0},stickToEdges:{type:Boolean,default:!1},target:{type:[String,Object],default:void 0},teleport:{type:[String,Object],default:void 0},keyboardNavigation:{type:Boolean,default:!0},ariaLabel:{type:String,default:"$t:toggleDropdown"},role:{type:String,default:"button"},contentClass:{type:String,default:""}},emits:[...un,"anchor-click","anchor-right-click","content-click","click-outside","focus-outside","close","open","anchor-dblclick"],setup(t,{emit:e}){const{valueComputed:n}=xt(t,e,"modelValue");fe(n,w=>{e(w?"open":"close")});const r=Gd(),{anchorRef:o}=cW(t),i=dW(o,g(()=>!!t.cursor)),s=Sl("floating"),l=Kf(W("body")),a=Kf(g(()=>t.target)),u=Kf(g(()=>t.teleport)),c=ct("va-dropdown",()=>Bt(t,["disabled"])),d=g(()=>{if(u.value)return u.value;if(a.value)return a.value;if(o.value){const w=o.value.getRootNode();if(w instanceof ShadowRoot){const x=[...w.children].find(k=>k.tagName!=="STYLE");if(x)return x}}return l.value}),f=g(()=>r.value&&n.value);uW(n,o,s,t);const h=(w,x,k)=>{e(w,k),x&&(n.value=!1)};Jd([o,s],()=>{t.closeOnClickOutside&&n.value&&h("click-outside",t.closeOnClickOutside)}),tU([s],()=>{t.closeOnFocusOutside&&n.value&&h("focus-outside",t.closeOnFocusOutside)},{onlyKeyboard:!0});const p=g(()=>typeof t.cursor=="object"?t.cursor:t.cursor?i.value:o.value),{floatingStyles:v}=QW(p,s,a,g(()=>({placement:t.placement,offset:t.offset,autoPlacement:t.autoPlacement,stickToEdges:t.stickToEdges,keepAnchorWidth:t.keepAnchorWidth,verticalScrollOnOverflow:t.verticalScrollOnOverflow}))),y=()=>{n.value=!1},b=()=>{n.value=!0},{zIndex:S}=$k(n);return fe(n,w=>{if(t.keyboardNavigation)if(w)Ot(()=>{const x=Rt(s.value);x&&op(x)});else{if(!o.value)return;op(o.value)}}),{...yt(),...Pk(),anchorRef:o,anchorClass:c,floating:s,floatingStyles:v,showFloating:f,teleportTarget:d,isMounted:r,valueComputed:n,hide:y,show:b,zIndex:S}},render(){const t={isOpened:this.valueComputed,hide:this.hide,show:this.show,toggle:()=>this.valueComputed?this.hide():this.show(),getAnchorWidth:()=>{var r;return((r=this.anchorRef)==null?void 0:r.offsetWidth)+"px"},getAnchorHeight:()=>{var r;return((r=this.anchorRef)==null?void 0:r.offsetHeight)+"px"}},e=this.showFloating&&eb(this.$slots.default,t,{ref:"floating",class:["va-dropdown__content-wrapper",this.$props.contentClass],style:[this.floatingStyles,{zIndex:this.zIndex}],...this.teleportedAttrs}),n=eb(this.$slots.anchor,t,{ref:"anchorRef",role:this.$props.role,class:["va-dropdown",...this.anchorClass.asArray.value],style:{position:"relative"},"aria-label":this.tp(this.$props.ariaLabel),"aria-disabled":this.$props.disabled,"aria-expanded":this.$props.role&&this.$props.role!=="none"?!!this.showFloating:void 0,...this.teleportFromAttrs,...this.$attrs});if(typeof this.$props.cursor=="object"&&e)return ut(Ca,{to:this.teleportTarget,disabled:this.$props.disabled},[e]);if(!this.$props.anchorSelector&&!n){pt("VaDropdown: #anchor slot is missing");return}if(this.showFloating&&!e){pt("VaDropdown: default slot is missing");return}return ut(_e,{},[n,e&&ut(Ca,{to:this.teleportTarget,disabled:this.$props.disabled},[e])])}}),er=me(nU),rU=ie({name:"VaDropdownContent",__name:"VaDropdownContent",props:{noPadding:{type:Boolean,default:!1},background:{type:String,default:"background-secondary"},textColor:{type:String}},setup(t){const e=t,{getColor:n}=He(),{textColorComputed:r}=qt($n(e,"background")),o=g(()=>({background:n(e.background,void 0,!0),color:r.value,padding:e.noPadding?0:void 0}));return(i,s)=>(A(),I("div",{class:"va-dropdown__content",style:se(o.value),role:"listbox"},[D(i.$slots,"default")],4))}}),Xi=me(rU),Tb=t=>typeof t=="object"?t.listen:t,Gf=t=>typeof t=="object"?t.emit:t,fs=t=>{const e=()=>t.map(Gf),n=i=>`on${i.charAt(0).toUpperCase()+i.slice(1)}`;return{createListeners:i=>t.reduce((s,l)=>({...s,[n(Tb(l))]:(...a)=>i(Gf(l),...a)}),{}),createVOnListeners:i=>t.reduce((s,l)=>({...s,[Tb(l)]:(...a)=>i(Gf(l),...a)}),{}),createEmits:e}},{createEmits:oU,createVOnListeners:iU}=fs(["click"]),{createEmits:sU,createVOnListeners:lU}=fs([{listen:"click",emit:"main-button-click"}]),_b=vo(nt(et),["iconRight","block"]),Ob=nt(er),aU=ie({name:"VaButtonDropdown",__name:"VaButtonDropdown",props:{...Me,..._b,...Ob,...Kt,...Kk,modelValue:{type:Boolean,default:!1},stateful:{type:Boolean,default:!0},icon:{type:String,default:"va-arrow-down"},openedIcon:{type:String,default:"va-arrow-up"},hideIcon:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!1},iconColor:{type:String,default:""},disabled:{type:Boolean,default:!1},disableButton:{type:Boolean,default:!1},disableDropdown:{type:Boolean,default:!1},offset:{type:[Number,Array],default:2},keepAnchorWidth:{type:Boolean,default:!1},closeOnContentClick:{type:Boolean,default:!0},split:{type:Boolean},splitTo:{type:String,default:""},splitHref:{type:String,default:""},loading:{type:Boolean,default:!1},label:{type:String},ariaLabel:{type:String,default:"$t:toggleDropdown"}},emits:["update:modelValue",...oU(),...sU()],setup(t,{expose:e,emit:n}){const r=t,o=n,{valueComputed:i}=xt(r,o),s=g(()=>i.value?r.openedIcon:r.icon),l=ct("va-button-dropdown",()=>({split:r.split})),a=Ln(),u=g(()=>r.hideIcon?{}:{[(r.label||a.label)&&!r.leftIcon?"icon-right":"icon"]:s.value}),c=g(()=>{let w=["to","href","loading","icon"];const x=["plain","textOpacity","backgroundOpacity","hoverOpacity","hoverBehavior","hoverOpacity","pressedOpacity","pressedBehavior","pressedOpacity"];r.preset&&(w=[...w,...x]);const k=vo(_b,w);return Object.keys(k)}),d=g(()=>Object.entries(r).filter(([w,x])=>c.value.includes(w)).reduce((w,[x,k])=>(Object.assign(w,{[x]:k}),w),{})),f=g(()=>({to:r.splitTo,href:r.splitHref,loading:r.loading})),h=()=>{i.value=!1},p=gt(Ob),v=iU(o),y=lU(o),{t:b,tp:S}=yt();return e({hideDropdown:h}),(w,x)=>(A(),I("div",{class:Ae(["va-button-dropdown",m(l)])},[w.$props.split?(A(),te(m(Qd),de(ee({key:1},d.value)),{default:J(()=>[w.$props.leftIcon?z("",!0):(A(),te(m(et),ee({key:0,disabled:w.$props.disabled||w.$props.disableButton},f.value,ur(m(y))),{default:J(()=>[D(w.$slots,"label",{},()=>[Ue(Be(t.label),1)])]),_:3},16,["disabled"])),he(m(er),ee(m(p),{modelValue:m(i),"onUpdate:modelValue":x[1]||(x[1]=k=>Tt(i)?i.value=k:null),disabled:w.$props.disabled||w.$props.disableDropdown,teleport:w.$el}),{anchor:J(()=>[he(m(et),ee({"aria-label":w.$props.ariaLabel||m(b)("toggleDropdown"),disabled:w.$props.disabled||w.$props.disableDropdown,icon:s.value,"icon-color":w.$props.iconColor},ur(m(v)),{onKeydown:Ce(be(h,["prevent"]),["esc"])}),null,16,["aria-label","disabled","icon","icon-color","onKeydown"])]),default:J(()=>[he(m(Xi),null,{default:J(()=>[D(w.$slots,"default")]),_:3})]),_:3},16,["modelValue","disabled","teleport"]),w.$props.leftIcon?(A(),te(m(et),ee({key:1,disabled:w.$props.disabled||w.$props.disableButton},f.value,ur(m(y))),{default:J(()=>[D(w.$slots,"label",{},()=>[Ue(Be(t.label),1)])]),_:3},16,["disabled"])):z("",!0)]),_:3},16)):(A(),te(m(er),ee({key:0},m(p),{modelValue:m(i),"onUpdate:modelValue":x[0]||(x[0]=k=>Tt(i)?i.value=k:null),disabled:w.$props.disabled||w.$props.disableDropdown}),{anchor:J(()=>[he(m(et),ee({"aria-label":m(S)(w.$props.ariaLabel)},{...u.value,...d.value},ur(m(v))),{default:J(()=>[D(w.$slots,"label",{},()=>[Ue(Be(t.label),1)])]),_:3},16,["aria-label"])]),default:J(()=>[D(w.$slots,"content",{},()=>[he(m(Xi),null,{default:J(()=>[D(w.$slots,"default")]),_:3})])]),_:3},16,["modelValue","disabled"]))],2))}}),uU=me(aU),Ta=t=>[null,void 0,""].includes(t),ax=(t,e)=>{if(e.length===0)return t;const n=t[e[0]];return iM(n)?ax(n,e.slice(1)):e.length===1?n:void 0},ug=(t,e)=>e in t?t[e]:(e=e.replace(/^\./,""),ax(t,e.split("."))),ux=(t,e)=>{if(!(Ta(t)||typeof t!="object"||Array.isArray(t)))return e?typeof e=="string"?ug(t,e):typeof e=="function"?e(t):t:t},aa=t=>t!==null&&typeof t=="object",Cl={options:{type:Array,default:()=>[]},textBy:{type:[String,Function],default:"text"},valueBy:{type:[String,Function],default:""},trackBy:{type:[String,Function],default:""},disabledBy:{type:[String,Function],default:"disabled"},groupBy:{type:[String,Function],default:"group"}};function wl(t){const e=a=>{const u=t.options;for(let c=0;caa(a)?ux(a,u):a,r=a=>t.trackBy?n(a,t.trackBy):l(a),o=a=>aa(a)?n(a,t.disabledBy):!1,i=a=>{const u=n(a,t.textBy);return["number","boolean"].includes(typeof u)?String(u):u},s=a=>{if(aa(a))return n(a,t.groupBy)},l=a=>n(a,t.valueBy);return{tryResolveByValue:e,getValue:l,getText:i,getDisabled:o,getTrackBy:r,getGroupBy:s}}const Pb=nt(Qd),cU=ie({name:"VaButtonToggle",__name:"VaButtonToggle",props:{...Pb,...Me,...Cl,modelValue:{type:[String,Number,Boolean],default:""},options:{type:Array,required:!0},activeButtonTextColor:{type:String},toggleColor:{type:String,default:""},textBy:{type:[String,Function],default:"label"},valueBy:{type:[String,Function],default:"value"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,{getText:o,getTrackBy:i}=wl(n),{getColor:s,shiftHSLAColor:l}=He(),a=g(()=>s(n.color)),u=y=>i(y)===n.modelValue,c=g(()=>n.toggleColor?s(n.toggleColor):l(a.value,{l:n.plain?-16:-6})),d=g(()=>!n.preset||n.preset==="default"?{}:{backgroundOpacity:n.pressedOpacity}),f=g(()=>({color:c.value,textColor:n.activeButtonTextColor,...d.value})),h=(y={})=>{const b={icon:y.icon,iconRight:y.iconRight};return u(y)?{...u(y)&&f.value,...b}:b},p=gt(Pb),v=y=>r("update:modelValue",i(y));return(y,b)=>(A(),te(m(Qd),ee({class:"va-button-toggle"},m(p)),{default:J(()=>[(A(!0),I(_e,null,Ge(t.options,S=>(A(),te(m(et),ee({key:m(i)(S),"aria-pressed":u(S)},h(S),{onClick:w=>v(S)}),{default:J(()=>[Ue(Be(m(o)(S)),1)]),_:2},1040,["aria-pressed","onClick"]))),128))]),_:1},16))}}),dU=me(cU),fU=ie({name:"VaCard",__name:"VaCard",props:{...cs,...Me,tag:{type:String,default:"div"},square:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},bordered:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:""},stripe:{type:Boolean,default:!1},stripeColor:{type:String,default:""},gradient:{type:Boolean,default:!1},textColor:{type:String},color:{type:String,default:"background-secondary"}},setup(t){const e=t,{getColor:n}=He(),{isLinkTag:r,tagComputed:o,hrefComputed:i}=gi(e),{textColorComputed:s}=qt(g(()=>n(e.color))),l=g(()=>n(e.stripeColor)),a=ct("va-card",()=>({...Bt(e,["square","outlined","disabled","stripe"]),noBorder:!e.bordered,link:r.value})),u=g(()=>({background:e.gradient&&e.color?Ym(n(e.color)):n(e.color),color:s.value}));return(c,d)=>(A(),te(zn(m(o)),{class:Ae(["va-card",m(a)]),style:se([u.value,`--va-stripe-color-computed: ${String(l.value)}`]),href:m(i),target:t.target,to:c.to,replace:c.replace,exact:c.exact,"active-class":c.activeClass,"exact-active-class":c.exactActiveClass},{default:J(()=>[D(c.$slots,"default")]),_:3},8,["class","style","href","target","to","replace","exact","active-class","exact-active-class"]))}}),hU={class:"va-card__content"},pU=ie({name:"VaCardContent",__name:"VaCardContent",setup(t){return(e,n)=>(A(),I("div",hU,[D(e.$slots,"default")]))}}),mU=ie({name:"VaCardTitle",__name:"VaCardTitle",props:{...Me,textColor:{type:String}},setup(t){const e=t,{getColor:n}=He(),r=g(()=>({color:e.textColor?n(e.textColor):""}));return(o,i)=>(A(),I("div",{class:"va-card-title va-card__title",style:se(r.value)},[D(o.$slots,"default",{},void 0,!0)],4))}}),hs=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},gU=hs(mU,[["__scopeId","data-v-5cd66b25"]]),vU=ie({name:"VaCardActions",__name:"VaCardActions",props:{...Xk,...Me},setup(t){const e=t,{alignComputed:n}=Jk(e),r=ct("va-card__actions",()=>({...Bt(e,["vertical"])}));return(o,i)=>(A(),I("div",{class:Ae(["va-card__actions",m(r)]),style:se(m(n))},[D(o.$slots,"default")],6))}}),yU=ie({name:"VaCardBlock",__name:"VaCardBlock",props:{horizontal:{type:Boolean,default:!1}},setup(t){const e=t,n=g(()=>({"va-card-block--horizontal":e.horizontal}));return(r,o)=>(A(),I("div",{class:Ae(["va-card-block",n.value])},[D(r.$slots,"default")],2))}}),bU=me(pU),SU=me(gU),CU=me(vU),wU=me(yU),kU=me(fU),xU=(t,e)=>{const n=a=>{e.value=a},r=()=>{if(t.infinite&&e.value<=0){e.value=t.items.length-1;return}e.value-=1},o=()=>{if(t.infinite&&e.value>=t.items.length-1){e.value=0;return}e.value+=1},i=g(()=>t.items.length>1),s=g(()=>e.value>0||t.infinite),l=g(()=>e.value{let n=-1;const r=()=>{t.autoscroll&&(clearInterval(n),n=setInterval(()=>{e.value+=1,e.value>=t.items.length&&(e.value=0)},t.autoscrollInterval))};let o;const i=()=>{t.autoscroll&&(clearInterval(n),o=setTimeout(()=>{r(),clearTimeout(o)},t.autoscrollPauseDuration))},s=()=>{clearInterval(n),clearTimeout(o)};dt(()=>r()),jt(()=>s());const l=h=>(...p)=>{i(),h(...p)},a=W({transition:void 0}),u=W(0),c=g(()=>t.effect==="fade"?{...a.value,transition:"none"}:t.vertical?{...a.value,transform:`translateY(${u.value*-100}%)`}:{...a.value,transform:`translateX(${u.value*-100}%)`}),d={isAnimating:!1,speed:.3,order:[],move(h,p){const v=t.items.length-1,y=t.items.length;p===0&&h===v?(this.order.push({to:y}),this.order.push({to:0,animate:!1})):p===v&&h===0?(this.order.push({to:y,animate:!1}),this.order.push({to:p})):this.order.push({to:p}),this.isAnimating||this.runAnimation()},runAnimation(){this.isAnimating=!0;const h=this.order.shift();if(!h){this.isAnimating=!1;return}u.value=h==null?void 0:h.to,h.animate||h.animate===void 0?(a.value.transition=`all ${this.speed}s linear`,setTimeout(()=>{this.runAnimation()},this.speed*1e3)):(a.value.transition="none",setTimeout(()=>{this.runAnimation()},16))}};fe(e,(h,p)=>{d.move(p,h)});const f=g(()=>t.effect==="fade"?[t.items[e.value]]:t.infinite||t.autoscroll?[...t.items,t.items[0]]:t.items);return{start:r,pause:i,stop:s,withPause:l,computedSlidesStyle:c,slides:f}},AU=()=>{const{setHSLAColor:t,getColor:e}=He();return{computedColor:g(()=>t(e("background-element"),{a:.7})),computedHoverColor:g(()=>t(e("primary"),{a:.7})),computedActiveColor:g(()=>e("primary"))}},TU={src:{type:String,required:!0},alt:{type:String,default:""},title:{type:String,default:""},sizes:{type:String,default:""},srcset:{type:String,default:""},draggable:{type:Boolean,default:!0},loading:{type:String},crossorigin:{type:String},decoding:{type:String},fetchpriority:{type:String,default:"auto"},referrerpolicy:{type:String}},_U=t=>g(()=>Bt(t,["src","alt","title","sizes","srcset","loading","referrerpolicy","fetchpriority","decoding","crossorigin","draggable"])),cx=(t,e=W({}),n=W([]),r=!0)=>{const o=W(),i=()=>{var c;(c=o.value)==null||c.disconnect()},s=c=>{var d;const f=Rt(m(c));f&&((d=o.value)==null||d.observe(f))},l=c=>{c.forEach(s)},a=()=>{o.value=new IntersectionObserver(t,e.value)},u=g(()=>!r||!(typeof window<"u"&&"IntersectionObserver"in window));return fe([n,e],([c])=>{u.value||(i(),c&&(a(),Array.isArray(c)?l(c):s(c)))},{immediate:!0}),jt(i),{isIntersectionDisabled:u}},OU=["aria-busy"],PU={key:0,class:"va-image__overlay"},BU={key:1,class:"va-image__error"},MU={key:2,class:"va-image__loader"},IU={key:3,class:"va-image__placeholder"},DU=["src"],Bb=nt(Gs),EU=ie({name:"VaImage",__name:"VaImage",props:{...Me,...TU,...Bb,ratio:{type:[Number,String],default:"auto",validator:t=>typeof t=="number"?t>0:t==="auto"},fit:{type:String,default:"cover"},maxWidth:{type:[Number,String],default:0,validator:t=>Number(t)>=0},lazy:{type:Boolean,default:!1},placeholderSrc:{type:String,default:""}},emits:["loaded","error","fallback"],setup(t,{emit:e}){const n=t,r=e,o=W(),i=W(),s=W(),l=g(()=>s.value||n.src),a=W(1),u=W(1),c=W(!1),d=W(!1),f=()=>{var X;c.value=!0,b.value&&(c.value=!1,s.value=(X=i.value)==null?void 0:X.currentSrc,$(),r("loaded",l.value))},h=X=>{d.value=!0,c.value=!1,r("error",X||l.value)},p=W(!1),v=(X,ke)=>{X.forEach($e=>{$e.isIntersecting&&(p.value=!0,x(),ke.disconnect())})},{isIntersectionDisabled:y}=cx(v,void 0,o,n.lazy),b=g(()=>y.value||p.value),S=Gd(),w=g(()=>!n.lazy||n.lazy&&S.value&&b.value),x=()=>{!n.src||c.value&&y.value||!b.value||(c.value=!0,d.value=!1,Ot(()=>{var X;if((X=i.value)!=null&&X.complete){if(!i.value.naturalWidth){h();return}f()}}))};let k;const $=()=>{clearTimeout(k),c.value&&(k=window.setTimeout($,100));const{naturalHeight:X,naturalWidth:ke}=i.value||{};X&&ke&&(a.value=X,u.value=ke)};wm(x),jt(()=>clearTimeout(k)),fe(()=>n.src,x);const C=Ln(),T=g(()=>{var X;return((X=C==null?void 0:C.placeholder)==null?void 0:X.call(C))||n.placeholderSrc}),_=g(()=>{var X;return c.value&&!((X=C==null?void 0:C.loader)!=null&&X.call(C))}),M=g(()=>{var X;return d.value&&!((X=C==null?void 0:C.error)!=null&&X.call(C))&&!N.value}),F=g(()=>(_.value||M.value)&&T.value),L=g(()=>!(c.value||d.value)),H=_U(n),E=g(()=>({...Bt(n,["ratio","maxWidth"]),contentWidth:a.value,contentHeight:u.value})),P=gt(Bb),V=X=>!!Object.values(X||{}).filter(ke=>ke).length,O=g(()=>{var X,ke,$e,ye;return V((ye=($e=(ke=(X=yo())==null?void 0:X.globalConfig)==null?void 0:ke.value)==null?void 0:$e.components)==null?void 0:ye.VaFallback)}),N=g(()=>V(P.value)||O.value),re=g(()=>n.fit);return(X,ke)=>(A(),te(m(Hk),ee({ref_key:"root",ref:o,class:"va-image"},E.value,{style:`--va-fit-computed: ${String(re.value)}`}),{default:J(()=>[xr(q("picture",{class:"va-image__content","aria-busy":c.value},[X.$slots.sources?D(X.$slots,"sources",{key:0}):z("",!0),w.value?(A(),I("img",ee({key:1,ref_key:"image",ref:i},m(H),{onError:h,onLoad:f}),null,16)):z("",!0)],8,OU),[[zs,L.value]]),X.$slots.default&&L.value?(A(),I("div",PU,[D(X.$slots,"default")])):z("",!0),d.value&&(X.$slots.error||N.value)?(A(),I("div",BU,[D(X.$slots,"error",{},()=>[he(m(Gs),ee(m(P),{onFallback:ke[0]||(ke[0]=$e=>X.$emit("fallback"))}),null,16)])])):z("",!0),c.value&&X.$slots.loader?(A(),I("div",MU,[D(X.$slots,"loader")])):z("",!0),F.value?(A(),I("div",IU,[D(X.$slots,"placeholder",{},()=>[X.$props.placeholderSrc?(A(),I("img",{key:0,src:X.$props.placeholderSrc,alt:""},null,8,DU)):z("",!0)])])):z("",!0)]),_:3},16,["style"]))}}),cg=me(EU),LU=ie({name:"VaHover",__name:"VaHover",props:{...Ak(!0),...Me,disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1}},emits:[...un],setup(t,{emit:e}){const n=t,r=e,{valueComputed:o}=xt(n,r),i=()=>{n.disabled||(o.value=!0)},s=()=>{n.disabled||(o.value=!1)};return(l,a)=>(A(),I("div",{class:"va-hover",onMouseenter:i,onMouseleave:s},[D(l.$slots,"default",de(we({hover:m(o)})))],32))}}),dc=me(LU),VU=["mousedown","mousemove"],RU=["touchstart","touchmove"],dg={vertical:["","all","vertical"],horizontal:["","all","horizontal"]},FU=[...dg.vertical,"up","down"],NU=[...dg.horizontal,"left","right"],HU={swipable:{type:Boolean,default:!1},swipeDistance:{type:Number,default:75},swipeDirection:{type:String,default:"all"}},zU=(t,e,n)=>{const r=W(!1),o=ar({start:{x:0,y:0},end:{x:0,y:0}}),i=ar({start:0,end:0}),s=(p,v)=>{let y;if(VU.includes(p.type)&&(y=p),RU.includes(p.type)){const b=p;y=b.changedTouches[b.changedTouches.length-1]}y&&(o[v].x=y.pageX,o[v].y=y.pageY,i[v]=new Date().getTime())},l=p=>{!t.swipable||r.value||(r.value=!0,s(p,"start"))},a=p=>{r.value&&s(p,"end")},u=()=>{["start","end"].forEach(p=>{o[p].x=0,o[p].y=0,i[p]=0}),r.value=!1},c=ar({vertical:!1,horizontal:!1});tr(()=>{c.horizontal=NU.includes(t.swipeDirection),c.vertical=FU.includes(t.swipeDirection)});const d=p=>c[p==="x"?"horizontal":"vertical"]&&o.start[p]&&o.end[p]?Math.trunc(o.start[p]-o.end[p]):0,f=(p,v)=>v===t.swipeDirection||dg[p].includes(t.swipeDirection)?v:"",h=ar({direction:"",duration:0});return fe(o,()=>{const p=d("x"),v=d("y");if((p||v)&&[p,v].some(y=>Math.abs(y)>=t.swipeDistance)){if(Math.abs(p)>=Math.abs(v)&&c.horizontal){const y=p>0?"left":"right";h.direction=f("horizontal",y)}else if(Math.abs(p)0?"down":"up";h.direction=f("vertical",y)}h.duration=i.end-i.start,u()}},{deep:!0}),fe(h,()=>n(h),{deep:!0}),t.swipable&&(At(["touchstart","mousedown"],l,e),At(["touchmove","mousemove"],a,e),At(["touchcancel","mouseup","touchend","mouseleave"],u,e)),{swipeState:h}},jU=["aria-label"],WU={key:1,class:"va-carousel__indicators"},UU={class:"va-carousel__content"},KU=["aria-hidden","aria-current","aria-label"],Mb=nt(cg,["src","alt"]),GU=ie({name:"VaCarousel",__name:"VaCarousel",props:{...HU,...Kt,...Me,...Mb,stateful:{type:Boolean,default:!0},modelValue:{type:Number,default:0},items:{type:Array,required:!0},autoscroll:{type:Boolean,default:!1},autoscrollInterval:{type:[Number,String],default:5e3},autoscrollPauseDuration:{type:[Number,String],default:2e3},infinite:{type:Boolean,default:!0},fadeKeyframe:{type:String,default:"va-carousel-fade-appear 1s"},arrows:{type:Boolean,default:!0},indicators:{type:Boolean,default:!0},indicatorTrigger:{type:String,default:"click",validator:t=>["click","hover","none"].includes(t)},vertical:{type:Boolean,default:!1},height:{type:String,default:"300px"},effect:{type:String,default:"transition",validator:t=>["fade","transition"].includes(t)},color:{type:String,default:"primary"},ratio:{type:[Number,String]},ariaLabel:{type:String,default:"$t:carousel"},ariaPreviousLabel:{type:String,default:"$t:goPreviousSlide"},ariaNextLabel:{type:String,default:"$t:goNextSlide"},ariaGoToSlideLabel:{type:String,default:"$t:goSlide"},ariaSlideOfLabel:{type:String,default:"$t:slideOf"}},emits:[...un],setup(t,{expose:e,emit:n}){const r=t,o=n,{valueComputed:i}=xt(r,o,"modelValue"),s=Ye("autoscrollInterval"),l=Ye("autoscrollPauseDuration"),a=Ye("ratio"),{goTo:u,next:c,prev:d,doShowNextButton:f,doShowPrevButton:h,doShowDirectionButtons:p}=xU(r,i),{withPause:v,computedSlidesStyle:y,slides:b}=$U({items:r.items,autoscrollInterval:s.value,autoscrollPauseDuration:l.value,autoscroll:r.autoscroll,infinite:r.infinite,effect:r.effect,vertical:r.vertical,fadeKeyframe:r.fadeKeyframe},i),S=g(()=>r.items.length&&r.items.every(O=>!!O&&typeof O=="object"&&!!(O!=null&&O.src))),w=O=>O===i.value,x=g(()=>({animation:r.effect==="fade"?"fadeKeyframe":void 0})),k=Ne();zU(r,k,O=>{switch(O.direction){case"right":case"up":h.value&&d();break;case"left":case"down":f.value&&c()}});const C=O=>r.indicatorTrigger==="hover"?{onmouseover:()=>u(O)}:r.indicatorTrigger==="click"?{onclick:()=>u(O)}:{},{tp:T,t:_}=yt(),{computedActiveColor:M,computedColor:F,computedHoverColor:L}=AU(),H=gt(Mb),E=v(u),P=v(d),V=v(c);return e({currentSlide:i,goTo:u,next:c,prev:d,goToWithPause:E,prevWithPause:P,nextWithPause:V}),(O,N)=>(A(),I("div",{class:Ae(["va-carousel",{"va-carousel--vertical":O.$props.vertical,[`va-carousel--${O.$props.effect}`]:!0}]),style:se({height:m(a)?"auto":t.height}),role:"region","aria-label":m(T)(O.$props.ariaLabel)},[O.$props.arrows&&m(p)?(A(),I(_e,{key:0},[m(h)?(A(),I("div",{key:0,class:"va-carousel__arrow va-carousel__arrow--left",onClick:N[0]||(N[0]=(...re)=>m(P)&&m(P)(...re)),onKeydown:N[1]||(N[1]=Ce(be((...re)=>m(P)&&m(P)(...re),["stop"]),["enter"]))},[D(O.$slots,"prev-arrow",{},()=>[he(m(dc),{stateful:""},{default:J(({hover:re})=>[he(m(et),{color:m(re?L:F),icon:t.vertical?"va-arrow-up":"va-arrow-left","aria-label":m(T)(O.$props.ariaPreviousLabel)},null,8,["color","icon","aria-label"])]),_:1})])],32)):z("",!0),m(f)?(A(),I("div",{key:1,class:"va-carousel__arrow va-carousel__arrow--right",onClick:N[2]||(N[2]=(...re)=>m(V)&&m(V)(...re)),onKeydown:N[3]||(N[3]=Ce(be((...re)=>m(V)&&m(V)(...re),["stop"]),["enter"]))},[D(O.$slots,"next-arrow",{},()=>[he(m(dc),{stateful:""},{default:J(({hover:re})=>[he(m(et),{color:m(re?L:F),icon:t.vertical?"va-arrow-down":"va-arrow-right","aria-label":m(T)(O.$props.ariaNextLabel)},null,8,["color","icon","aria-label"])]),_:1})])],32)):z("",!0)],64)):z("",!0),O.$props.indicators?(A(),I("div",WU,[(A(!0),I(_e,null,Ge(O.$props.items,(re,X)=>(A(),I("div",ee({class:["va-carousel__indicator",{"va-carousel__indicator--active":w(X)}],key:X},C(X)),[D(O.$slots,"indicator",de(we({item:re,index:X,goTo:m(E),isActive:w(X)})),()=>[he(m(dc),{stateful:""},{default:J(({hover:ke})=>[he(m(et),{"aria-label":m(T)(O.$props.ariaGoToSlideLabel,{index:X+1}),round:"",color:w(X)?m(M):m(ke?L:F)},{default:J(()=>[Ue(Be(X+1),1)]),_:2},1032,["aria-label","color"])]),_:2},1024)])],16))),128))])):z("",!0),q("div",UU,[q("div",{ref_key:"slidesContainer",ref:k,class:"va-carousel__slides",style:se(m(y)),role:"list"},[(A(!0),I(_e,null,Ge(m(b),(re,X)=>(A(),I("div",{key:re,role:"listitem",class:"va-carousel__slide",style:se(x.value),"aria-hidden":!w(X),"aria-current":w(X),"aria-label":m(T)(O.$props.ariaSlideOfLabel,{index:X+1,length:m(b).length})},[D(O.$slots,"default",de(we({item:re,index:X,goTo:m(E),isActive:w(X)})),()=>[he(m(cg),ee(m(H),{src:S.value?re.src:re,alt:S.value?re.alt:"",draggable:!1}),null,16,["src","alt"])])],12,KU))),128))],4)])],14,jU))}}),qU=me(GU),fg={...Kt,...Xa,...Co,arrayValue:{type:[String,Boolean,Object,Number],default:null},label:{type:String,default:""},leftLabel:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},indeterminate:{type:Boolean,default:!1},indeterminateValue:{type:null,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},ef=[...mi,"update:modelValue","focus","blur"],YU=t=>{const e=[t.falseValue,t.trueValue];if(t.indeterminate&&e.push(t.indeterminateValue),new Set(e).size!==e.length)throw new Error("falseValue, trueValue, indeterminateValue props should have strictly different values, which is not the case.")},hg=(t,e,{input:n,label:r,container:o})=>{YU(t);const i=()=>h(()=>{e("update:modelValue",!1),p()}),s=()=>{var F;(F=Rt(n.value))==null||F.focus()},{valueComputed:l}=xt(t,e),{computedError:a,computedErrorMessages:u,validate:c,validationAriaAttributes:d,listeners:f,withoutValidation:h,resetValidation:p,isDirty:v,isTouched:y,isError:b,isLoading:S,isValid:w}=wo(t,e,{reset:i,focus:s,value:l}),{isFocused:x}=ko(),k=F=>{e("blur",F),x.value=!1,f.onBlur()},$=F=>{x.value=!0,e("focus",F)},C=g(()=>t.indeterminate&&l.value===t.indeterminateValue),T=g(()=>t.arrayValue!==void 0&&t.arrayValue!==null),_=g(()=>{var F;return T.value?(F=t.modelValue)==null?void 0:F.includes(t.arrayValue):l.value===t.trueValue});return{isDirty:v,isTouched:y,isError:b,isLoading:S,isValid:w,isChecked:_,isIndeterminate:C,onBlur:k,onFocus:$,toggleSelection:()=>{if(!(t.readonly||t.disabled||t.loading)){if(T.value){t.modelValue?Array.isArray(t.modelValue)?t.modelValue.includes(t.arrayValue)?e("update:modelValue",t.modelValue.filter(F=>F!==t.arrayValue)):e("update:modelValue",t.modelValue.concat(t.arrayValue)):e("update:modelValue",t.modelValue===t.arrayValue?[]:[t.modelValue,t.arrayValue]):e("update:modelValue",[t.arrayValue]);return}if(t.indeterminate){C.value?l.value=t.trueValue:_.value?l.value=t.falseValue:l.value=t.indeterminateValue;return}_.value?l.value=t.falseValue:l.value=t.trueValue}},reset:i,focus:s,computedError:a,computedErrorMessages:u,validationAriaAttributes:d}};var Ib;function kl(){const t=W(!1);let e=!1;return{hasKeyboardFocus:t,keyboardFocusListeners:{mousedown:()=>{e=!0},focus:()=>{e||(t.value=!0),e=!1},blur:()=>{t.value=!1,e=!1}}}}let lp=!1;(Ib=vk())==null||Ib.addEventListener("mousedown",()=>{lp=!0,setTimeout(()=>{lp=!1},300)});function XU(){const t=W(!1);return{hasKeyboardFocus:t,keyboardFocusListeners:{focus:()=>{lp||(t.value=!0)},blur:()=>{t.value=!1}}}}const JU=["id","indeterminate","value","checked"],QU=["for"],Db=[Boolean,Array,String,Object],ZU=ie({name:"VaCheckbox",__name:"VaCheckbox",props:{...fg,...Me,modelValue:{type:Db,default:!1},color:{type:String,default:"primary"},checkedIcon:{type:String,default:"va-check"},indeterminate:{type:Boolean,default:!1},indeterminateValue:{type:Db,default:null},indeterminateIcon:{type:String,default:"remove"},id:{type:String,default:""},name:{type:String,default:""},ariaLabel:{type:String,default:void 0},vertical:{type:Boolean,default:!1}},emits:ef,setup(t,{expose:e,emit:n}){const r=t,o=n,i={container:Ne(),input:Ne(),label:Ne()},{isChecked:s,computedError:l,isIndeterminate:a,computedErrorMessages:u,validationAriaAttributes:c,toggleSelection:d,onBlur:f,onFocus:h,isDirty:p,isTouched:v,isError:y,isLoading:b,isValid:S}=hg(r,o,i),{getColor:w}=He(),{hasKeyboardFocus:x,keyboardFocusListeners:k}=kl(),{textColorComputed:$}=qt(g(()=>w(r.color))),C=g(()=>s.value||a.value),T=g(()=>({"va-checkbox--selected":s.value,"va-checkbox--readonly":r.readonly,"va-checkbox--disabled":r.disabled,"va-checkbox--indeterminate":r.indeterminate,"va-checkbox--error":l.value,"va-checkbox--left-label":r.leftLabel,"va-checkbox--on-keyboard-focus":x.value})),_=()=>{switch(!0){case!r.label:return"";case r.vertical:return"var(--va-checkbox-vertical-padding)";case!!r.arrayValue:return"var(--va-checkbox-horizontal-padding)";case r.leftLabel:return"var(--va-checkbox-right-padding)";default:return"var(--va-checkbox-left-padding)"}},M=g(()=>({color:l.value?w("danger"):r.success?w("success"):"",padding:_()})),F=g(()=>{const N={background:C.value?w(r.color):"",borderColor:C.value?w(r.color):""};return l.value&&(N.borderColor=w("danger")),r.success&&(N.borderColor=w("success")),N}),L=g(()=>r.indeterminate&&a.value?r.indeterminateIcon:r.checkedIcon),H=Qr(),E=g(()=>r.id||String(H)),P=g(()=>r.name||String(H)),V=g(()=>({name:P.value,disabled:r.disabled,readonly:r.readonly,tabindex:r.disabled?-1:0,"aria-label":r.ariaLabel,"aria-disabled":r.disabled,"aria-readOnly":r.readonly,"aria-checked":C.value,...c.value})),O=g(()=>r.vertical?"--va-checkbox-display-flex":"var(--va-checkbox-display)");return e({toggleSelection:d,isDirty:p,isTouched:v,isError:y,isLoading:b,isValid:S}),(N,re)=>(A(),te(m(Kd),{class:Ae(["va-checkbox",T.value]),disabled:N.disabled,success:N.success,messages:N.messages,error:m(l),"error-messages":m(u),"error-count":N.errorCount,style:se(`--va-display-val: ${String(O.value)}`)},{default:J(()=>[q("div",{ref:"container",class:"va-checkbox__input-container",onClick:re[6]||(re[6]=(...X)=>m(d)&&m(d)(...X)),onBlur:re[7]||(re[7]=(...X)=>m(f)&&m(f)(...X))},[q("div",{class:"va-checkbox__square",style:se(F.value),onSelectstart:re[4]||(re[4]=be(()=>{},["prevent"]))},[q("input",ee({ref:"input",type:"checkbox",class:"va-checkbox__input",id:E.value,indeterminate:t.indeterminate,value:N.label,checked:C.value},V.value,ur(m(k),!0),{onFocus:re[0]||(re[0]=(...X)=>m(h)&&m(h)(...X)),onBlur:re[1]||(re[1]=(...X)=>m(f)&&m(f)(...X)),onClick:re[2]||(re[2]=be(()=>{},["stop","prevent"])),onKeypress:re[3]||(re[3]=be((...X)=>m(d)&&m(d)(...X),["prevent"]))}),null,16,JU),C.value?(A(),te(m(Ze),{key:0,class:"va-checkbox__icon",name:L.value,color:m($)},null,8,["name","color"])):z("",!0)],36),N.label||N.$slots.label?(A(),I("label",{key:0,ref:"label",class:"va-checkbox__label",for:E.value,style:se(M.value),onBlur:re[5]||(re[5]=(...X)=>m(f)&&m(f)(...X))},[D(N.$slots,"label",{},()=>[Ue(Be(N.label),1)])],44,QU)):z("",!0)],544)]),_:3},8,["class","disabled","success","messages","error","error-messages","error-count","style"]))}}),nu=me(ZU),eK={class:"va-chip__content"},tK=ie({name:"VaChip",__name:"VaChip",props:{...cs,...Xm,...Kt,...Me,modelValue:{type:Boolean,default:!0},closeable:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},square:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},icon:{type:String,default:""},tag:{type:String,default:"span"},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},ariaCloseLabel:{type:String,default:"$t:close"}},emits:[...un,"focus"],setup(t,{expose:e,emit:n}){const r=t,o=n,{getColor:i}=He(),s=g(()=>i(r.color)),l=g(()=>r.outline?s.value:""),a=g(()=>!!(r.outline||r.flat)),{textColorComputed:u}=qt(s,a),{hasKeyboardFocus:c,keyboardFocusListeners:d}=kl(),f=g(()=>{if(!(!r.shadow||r.flat||r.outline||r.disabled||c.value))return`0 0.125rem 0.19rem 0 ${ak(s.value)}`}),{valueComputed:h}=xt(r,o),{tagComputed:p,hrefComputed:v}=gi(r),{isHovered:y,onMouseEnter:b,onMouseLeave:S}=Ja(),w=()=>{r.disabled||(h.value=!1)},x=g(()=>r.size),k=g(()=>r.disabled?-1:0),$=ct("va-chip",()=>({...Bt(r,["disabled","readonly","square"]),small:r.size==="small",large:r.size==="large"})),C=g(()=>{const _={color:u.value,borderColor:l.value,background:"",boxShadow:f.value};return r.outline||r.flat?c.value?_.background=ck(s.value):!r.readonly&&y.value&&(_.background=uk(s.value)):_.background=s.value,_}),{tp:T}=yt();return e({close:w}),(_,M)=>m(h)?(A(),te(zn(m(p)),{key:0,class:Ae(["va-chip",m($)]),href:m(v),target:_.target,to:_.to,replace:_.replace,exact:_.exact,"active-class":_.activeClass,"exact-active-class":_.exactActiveClass,style:se(C.value)},{default:J(()=>[q("span",ee({class:"va-chip__inner",onFocus:M[0]||(M[0]=F=>_.$emit("focus")),onMouseenter:M[1]||(M[1]=(...F)=>m(b)&&m(b)(...F)),onMouseleave:M[2]||(M[2]=(...F)=>m(S)&&m(S)(...F))},ur(m(d),!0)),[t.icon?(A(),te(m(Ze),{key:0,class:"va-chip__icon",name:t.icon,size:x.value},null,8,["name","size"])):z("",!0),q("span",eK,[D(_.$slots,"default")]),t.closeable?(A(),te(m(Ze),{key:1,role:"button",name:"va-close",class:"va-chip__close-icon","aria-label":m(T)(_.$props.ariaCloseLabel),tabindex:k.value,size:x.value,onClick:be(w,["stop"]),onKeydown:[Ce(be(w,["stop"]),["enter"]),Ce(be(w,["stop"]),["space"])]},null,8,["aria-label","tabindex","size","onKeydown"])):z("",!0)],16)]),_:3},8,["href","target","to","replace","exact","active-class","exact-active-class","class","style"])):z("",!0)}}),nK=me(tK),Ys=(t,e)=>{let n;const r=o=>{o.forEach(i=>{const s=m(i);s&&(n==null||n.observe(s))})};return fe(t,o=>{n==null||n.disconnect(),r(Array.isArray(o)?o:[o])}),dt(()=>{n=new ResizeObserver(e),r(Array.isArray(t)?t:[t])}),jt(()=>n==null?void 0:n.disconnect()),n},rK={class:"va-collapse__header__text"},oK=["id","aria-labelledby"],iK={class:"va-collapse__content"},sK=ie({name:"VaCollapse",__name:"VaCollapse",props:{...Me,...Kt,modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},header:{type:String,default:""},icon:{type:String,default:""},color:{type:String,default:void 0},bodyColor:{type:String,default:void 0},textColor:{type:String,default:""},bodyTextColor:{type:String,default:""},iconColor:{type:String,default:"secondary"},colorAll:{type:Boolean,default:!1},stateful:{type:Boolean,default:!0}},emits:["update:modelValue",...ef],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),{valueComputed:s}=xt(r,o,"modelValue"),{getColor:l,getTextColor:a,setHSLAColor:u}=He(),{accordionProps:c,accordionItemValue:d}=a5(),f=g({get(){return s.userProvided||kr(d)?s.value:d.value},set(P){kr(d)||(d.value=P),s.value=P}});s.userProvided&&!kr(d)&&(d.value=s.value);const h=W();Ys([i],([P])=>{h.value=P.contentRect.height??0});const p=g(()=>f.value?h.value:0),v=()=>{const P=p.value/1e3*.2;return`${P>.2?P:.2}s`},y=g(()=>r.bodyColor?l(r.bodyColor):r.color&&r.colorAll?u(l(r.color),{a:.07}):void 0),b=g(()=>r.color?l(r.color):void 0),S=Qr(),w=g(()=>`header-${S}`),x=g(()=>`panel-${S}`),k=g(()=>r.disabled?-1:0),$=g(()=>({id:w.value,tabindex:k.value,"aria-controls":x.value,"aria-expanded":f.value,"aria-disabled":r.disabled,role:"button"})),C=W(!1);fe(p,(P,V)=>{V!==void 0&&C.value!==!0&&(C.value=!0)});const T=P=>{P.propertyName==="height"&&P.target===P.currentTarget&&(C.value=!1)},_=ct("va-collapse",()=>({...Bt(r,["disabled"]),expanded:f.value,active:f.value,popout:!!(c.value.popout&&f.value),inset:!!(c.value.inset&&f.value),"height-changing":C.value,"colored-body":!!y.value,"colored-header":!!b.value})),M=()=>{r.disabled||(f.value=!f.value)},{textColorComputed:F}=qt(b),L=g(()=>({color:F.value,backgroundColor:b.value})),H=g(()=>!!(f.value||C.value)),E=g(()=>({height:`${p.value}px`,transitionDuration:v(),background:f.value?y.value:"",color:r.bodyTextColor?l(r.bodyTextColor):y.value?l(a(y.value)):"currentColor"}));return e({toggle:M}),(P,V)=>(A(),I("div",{class:Ae(["va-collapse",m(_)])},[q("div",{class:"va-collapse__header-wrapper",onClick:M,onKeydown:[Ce(M,["enter"]),Ce(M,["space"])]},[D(P.$slots,"header",de(we({value:f.value,bind:$.value,attributes:$.value,attrs:$.value,iconAttrs:{class:["va-collapse__expand-icon",f.value?"a-collapse__expand-icon--expanded":"a-collapse__expand-icon--collapsed"]},text:t.header})),()=>[q("div",ee($.value,{class:"va-collapse__header",style:L.value}),[t.icon?(A(),te(m(Ze),{key:0,class:"va-collapse__header__icon",name:t.icon},null,8,["name"])):z("",!0),D(P.$slots,"header-content",de(we({header:t.header})),()=>[q("div",rK,Be(t.header),1)]),D(P.$slots,"expand-icon",{},()=>[he(m(Ze),{class:Ae(["va-collapse__expand-icon",f.value?"va-collapse__expand-icon--expanded":"va-collapse__expand-icon--collapsed"]),name:"va-arrow-down"},null,8,["class"])])],16)])],32),q("div",{class:Ae(["va-collapse__body-wrapper",{"va-collapse__body-wrapper--bordered":!P.$slots.body&&!P.$slots.header}]),style:se(E.value),onTransitionend:T},[H.value?(A(),I("div",{key:0,class:"va-collapse__body",ref_key:"body",ref:i,role:"region",id:x.value,"aria-labelledby":w.value},[D(P.$slots,"body",{},()=>[q("div",iK,[D(P.$slots,"default",{},()=>[D(P.$slots,"content")])])])],8,oK)):z("",!0)],38)],2))}}),lK=me(sK),aK=ie({name:"VaColorIndicator",__name:"VaColorIndicator",props:{...Kt,...Me,modelValue:{type:Boolean,default:null},color:{type:String,default:""},square:{type:Boolean,default:!1},size:{type:String,default:"1rem"}},emits:[...un],setup(t,{emit:e}){const n=t,r=e,{valueComputed:o}=xt(n,r),{getColor:i}=He(),{hasKeyboardFocus:s,keyboardFocusListeners:l}=kl(),a=g(()=>i(n.color)),u=g(()=>n.square?"0px":"50%"),c=g(()=>({backgroundColor:a.value,height:n.size,width:n.size})),d=g(()=>({"va-color-indicator--selected":o.value,"va-color-indicator--on-keyboard-focus":s.value})),f=()=>{o.value=!o.value};return(h,p)=>(A(),I("div",ee({class:["va-color-indicator",d.value],style:[c.value,`--va-border-radius-computed: ${String(u.value)}`],onClick:f,onKeydown:[Ce(f,["enter"]),Ce(f,["space"])]},ur(m(l),!0)),[q("div",{class:"va-color-indicator__core",style:se(c.value)},null,4)],16))}}),pg=me(aK);var Ms=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vi=function(t,e,n,r,o,i,s,l,a,u){var c=this;c.numeralDecimalMark=t||".",c.numeralIntegerScale=e>0?e:0,c.numeralDecimalScale=n>=0?n:2,c.numeralThousandsGroupStyle=r||Vi.groupStyle.thousand,c.numeralPositiveOnly=!!o,c.stripLeadingZeroes=i!==!1,c.prefix=s||s===""?s:"",c.signBeforePrefix=!!l,c.tailPrefix=!!a,c.delimiter=u||u===""?u:",",c.delimiterRE=u?new RegExp("\\"+u,"g"):""};Vi.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"};Vi.prototype={getRawValue:function(t){return t.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(t){var e=this,n,r,o,i,s="";switch(t=t.replace(/[A-Za-z]/g,"").replace(e.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",e.numeralPositiveOnly?"":"-").replace("M",e.numeralDecimalMark),e.stripLeadingZeroes&&(t=t.replace(/^(-)?0+(?=\d)/,"$1")),r=t.slice(0,1)==="-"?"-":"",typeof e.prefix<"u"?e.signBeforePrefix?o=r+e.prefix:o=e.prefix+r:o=r,i=t,t.indexOf(e.numeralDecimalMark)>=0&&(n=t.split(e.numeralDecimalMark),i=n[0],s=e.numeralDecimalMark+n[1].slice(0,e.numeralDecimalScale)),r==="-"&&(i=i.slice(1)),e.numeralIntegerScale>0&&(i=i.slice(0,e.numeralIntegerScale)),e.numeralThousandsGroupStyle){case Vi.groupStyle.lakh:i=i.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+e.delimiter);break;case Vi.groupStyle.wan:i=i.replace(/(\d)(?=(\d{4})+$)/g,"$1"+e.delimiter);break;case Vi.groupStyle.thousand:i=i.replace(/(\d)(?=(\d{3})+$)/g,"$1"+e.delimiter);break}return e.tailPrefix?r+i.toString()+(e.numeralDecimalScale>0?s.toString():"")+e.prefix:o+i.toString()+(e.numeralDecimalScale>0?s.toString():"")}};var uK=Vi,dx=function(t,e,n){var r=this;r.date=[],r.blocks=[],r.datePattern=t,r.dateMin=e.split("-").reverse().map(function(o){return parseInt(o,10)}),r.dateMin.length===2&&r.dateMin.unshift(0),r.dateMax=n.split("-").reverse().map(function(o){return parseInt(o,10)}),r.dateMax.length===2&&r.dateMax.unshift(0),r.initBlocks()};dx.prototype={initBlocks:function(){var t=this;t.datePattern.forEach(function(e){e==="Y"?t.blocks.push(4):t.blocks.push(2)})},getISOFormatDate:function(){var t=this,e=t.date;return e[2]?e[2]+"-"+t.addLeadingZero(e[1])+"-"+t.addLeadingZero(e[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(t){var e=this,n="";return t=t.replace(/[^\d]/g,""),e.blocks.forEach(function(r,o){if(t.length>0){var i=t.slice(0,r),s=i.slice(0,1),l=t.slice(r);switch(e.datePattern[o]){case"d":i==="00"?i="01":parseInt(s,10)>3?i="0"+s:parseInt(i,10)>31&&(i="31");break;case"m":i==="00"?i="01":parseInt(s,10)>1?i="0"+s:parseInt(i,10)>12&&(i="12");break}n+=i,t=l}}),this.getFixedDateString(n)},getFixedDateString:function(t){var e=this,n=e.datePattern,r=[],o=0,i=0,s=0,l=0,a=0,u=0,c,d,f,h=!1;t.length===4&&n[0].toLowerCase()!=="y"&&n[1].toLowerCase()!=="y"&&(l=n[0]==="d"?0:2,a=2-l,c=parseInt(t.slice(l,l+2),10),d=parseInt(t.slice(a,a+2),10),r=this.getFixedDate(c,d,0)),t.length===8&&(n.forEach(function(v,y){switch(v){case"d":o=y;break;case"m":i=y;break;default:s=y;break}}),u=s*2,l=o<=s?o*2:o*2+2,a=i<=s?i*2:i*2+2,c=parseInt(t.slice(l,l+2),10),d=parseInt(t.slice(a,a+2),10),f=parseInt(t.slice(u,u+4),10),h=t.slice(u,u+4).length===4,r=this.getFixedDate(c,d,f)),t.length===4&&(n[0]==="y"||n[1]==="y")&&(a=n[0]==="m"?0:2,u=2-a,d=parseInt(t.slice(a,a+2),10),f=parseInt(t.slice(u,u+2),10),h=t.slice(u,u+2).length===2,r=[0,d,f]),t.length===6&&(n[0]==="Y"||n[1]==="Y")&&(a=n[0]==="m"?0:4,u=2-.5*a,d=parseInt(t.slice(a,a+2),10),f=parseInt(t.slice(u,u+4),10),h=t.slice(u,u+4).length===4,r=[0,d,f]),r=e.getRangeFixedDate(r),e.date=r;var p=r.length===0?t:n.reduce(function(v,y){switch(y){case"d":return v+(r[0]===0?"":e.addLeadingZero(r[0]));case"m":return v+(r[1]===0?"":e.addLeadingZero(r[1]));case"y":return v+(h?e.addLeadingZeroForYear(r[2],!1):"");case"Y":return v+(h?e.addLeadingZeroForYear(r[2],!0):"")}},"");return p},getRangeFixedDate:function(t){var e=this,n=e.datePattern,r=e.dateMin||[],o=e.dateMax||[];return!t.length||r.length<3&&o.length<3||n.find(function(i){return i.toLowerCase()==="y"})&&t[2]===0?t:o.length&&(o[2]t[2]||r[2]===t[2]&&(r[1]>t[1]||r[1]===t[1]&&r[0]>t[0]))?r:t},getFixedDate:function(t,e,n){return t=Math.min(t,31),e=Math.min(e,12),n=parseInt(n||0,10),(e<7&&e%2===0||e>8&&e%2===1)&&(t=Math.min(t,e===2?this.isLeapYear(n)?29:28:30)),[t,e,n]},isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},addLeadingZero:function(t){return(t<10?"0":"")+t},addLeadingZeroForYear:function(t,e){return e?(t<10?"000":t<100?"00":t<1e3?"0":"")+t:(t<10?"0":"")+t}};var cK=dx,fx=function(t,e){var n=this;n.time=[],n.blocks=[],n.timePattern=t,n.timeFormat=e,n.initBlocks()};fx.prototype={initBlocks:function(){var t=this;t.timePattern.forEach(function(){t.blocks.push(2)})},getISOFormatTime:function(){var t=this,e=t.time;return e[2]?t.addLeadingZero(e[0])+":"+t.addLeadingZero(e[1])+":"+t.addLeadingZero(e[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){var t=this;return String(t.timeFormat)==="12"?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(t){var e=this,n="";t=t.replace(/[^\d]/g,"");var r=e.getTimeFormatOptions();return e.blocks.forEach(function(o,i){if(t.length>0){var s=t.slice(0,o),l=s.slice(0,1),a=t.slice(o);switch(e.timePattern[i]){case"h":parseInt(l,10)>r.maxHourFirstDigit?s="0"+l:parseInt(s,10)>r.maxHours&&(s=r.maxHours+"");break;case"m":case"s":parseInt(l,10)>r.maxMinutesFirstDigit?s="0"+l:parseInt(s,10)>r.maxMinutes&&(s=r.maxMinutes+"");break}n+=s,t=a}}),this.getFixedTimeString(n)},getFixedTimeString:function(t){var e=this,n=e.timePattern,r=[],o=0,i=0,s=0,l=0,a=0,u=0,c,d,f;return t.length===6&&(n.forEach(function(h,p){switch(h){case"s":o=p*2;break;case"m":i=p*2;break;case"h":s=p*2;break}}),u=s,a=i,l=o,c=parseInt(t.slice(l,l+2),10),d=parseInt(t.slice(a,a+2),10),f=parseInt(t.slice(u,u+2),10),r=this.getFixedTime(f,d,c)),t.length===4&&e.timePattern.indexOf("s")<0&&(n.forEach(function(h,p){switch(h){case"m":i=p*2;break;case"h":s=p*2;break}}),u=s,a=i,c=0,d=parseInt(t.slice(a,a+2),10),f=parseInt(t.slice(u,u+2),10),r=this.getFixedTime(f,d,c)),e.time=r,r.length===0?t:n.reduce(function(h,p){switch(p){case"s":return h+e.addLeadingZero(r[2]);case"m":return h+e.addLeadingZero(r[1]);case"h":return h+e.addLeadingZero(r[0])}},"")},getFixedTime:function(t,e,n){return n=Math.min(parseInt(n||0,10),60),e=Math.min(e,60),t=Math.min(t,60),[t,e,n]},addLeadingZero:function(t){return(t<10?"0":"")+t}};var dK=fx,hx=function(t,e){var n=this;n.delimiter=e||e===""?e:" ",n.delimiterRE=e?new RegExp("\\"+e,"g"):"",n.formatter=t};hx.prototype={setFormatter:function(t){this.formatter=t},format:function(t){var e=this;e.formatter.clear(),t=t.replace(/[^\d+]/g,""),t=t.replace(/^\+/,"B").replace(/\+/g,"").replace("B","+"),t=t.replace(e.delimiterRE,"");for(var n="",r,o=!1,i=0,s=t.length;i0,a="";return n===0?t:(e.forEach(function(u,c){if(t.length>0){var d=t.slice(0,u),f=t.slice(u);l?a=o[i?c-1:c]||a:a=r,i?(c>0&&(s+=a),s+=d):(s+=d,d.length===u&&c0?e.numeralIntegerScale:0,t.numeralDecimalScale=e.numeralDecimalScale>=0?e.numeralDecimalScale:2,t.numeralDecimalMark=e.numeralDecimalMark||".",t.numeralThousandsGroupStyle=e.numeralThousandsGroupStyle||"thousand",t.numeralPositiveOnly=!!e.numeralPositiveOnly,t.stripLeadingZeroes=e.stripLeadingZeroes!==!1,t.signBeforePrefix=!!e.signBeforePrefix,t.tailPrefix=!!e.tailPrefix,t.swapHiddenInput=!!e.swapHiddenInput,t.numericOnly=t.creditCard||t.date||!!e.numericOnly,t.uppercase=!!e.uppercase,t.lowercase=!!e.lowercase,t.prefix=t.creditCard||t.date?"":e.prefix||"",t.noImmediatePrefix=!!e.noImmediatePrefix,t.prefixLength=t.prefix.length,t.rawValueTrimPrefix=!!e.rawValueTrimPrefix,t.copyDelimiter=!!e.copyDelimiter,t.initValue=e.initValue!==void 0&&e.initValue!==null?e.initValue.toString():"",t.delimiter=e.delimiter||e.delimiter===""?e.delimiter:e.date?"/":e.time?":":e.numeral?",":(e.phone," "),t.delimiterLength=t.delimiter.length,t.delimiterLazyShow=!!e.delimiterLazyShow,t.delimiters=e.delimiters||[],t.blocks=e.blocks||[],t.blocksLength=t.blocks.length,t.root=typeof Ms=="object"&&Ms?Ms:window,t.document=e.document||t.root.document,t.maxLength=0,t.backspace=!1,t.result="",t.onValueChanged=e.onValueChanged||function(){},t}},vK=gK,$t=function(t,e){var n=this,r=!1;if(typeof t=="string"?(n.element=document.querySelector(t),r=document.querySelectorAll(t).length>1):typeof t.length<"u"&&t.length>0?(n.element=t[0],r=t.length>1):n.element=t,!n.element)throw new Error("[cleave.js] Please check the element");if(r)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch{}e.initValue=n.element.value,n.properties=$t.DefaultProperties.assign({},e),n.init()};$t.prototype={init:function(){var t=this,e=t.properties;if(!e.numeral&&!e.phone&&!e.creditCard&&!e.time&&!e.date&&e.blocksLength===0&&!e.prefix){t.onInput(e.initValue);return}e.maxLength=$t.Util.getMaxLength(e.blocks),t.isAndroid=$t.Util.isAndroid(),t.lastInputValue="",t.isBackward="",t.onChangeListener=t.onChange.bind(t),t.onKeyDownListener=t.onKeyDown.bind(t),t.onFocusListener=t.onFocus.bind(t),t.onCutListener=t.onCut.bind(t),t.onCopyListener=t.onCopy.bind(t),t.initSwapHiddenInput(),t.element.addEventListener("input",t.onChangeListener),t.element.addEventListener("keydown",t.onKeyDownListener),t.element.addEventListener("focus",t.onFocusListener),t.element.addEventListener("cut",t.onCutListener),t.element.addEventListener("copy",t.onCopyListener),t.initPhoneFormatter(),t.initDateFormatter(),t.initTimeFormatter(),t.initNumeralFormatter(),(e.initValue||e.prefix&&!e.noImmediatePrefix)&&t.onInput(e.initValue)},initSwapHiddenInput:function(){var t=this,e=t.properties;if(e.swapHiddenInput){var n=t.element.cloneNode(!0);t.element.parentNode.insertBefore(n,t.element),t.elementSwapHidden=t.element,t.elementSwapHidden.type="hidden",t.element=n,t.element.id=""}},initNumeralFormatter:function(){var t=this,e=t.properties;e.numeral&&(e.numeralFormatter=new $t.NumeralFormatter(e.numeralDecimalMark,e.numeralIntegerScale,e.numeralDecimalScale,e.numeralThousandsGroupStyle,e.numeralPositiveOnly,e.stripLeadingZeroes,e.prefix,e.signBeforePrefix,e.tailPrefix,e.delimiter))},initTimeFormatter:function(){var t=this,e=t.properties;e.time&&(e.timeFormatter=new $t.TimeFormatter(e.timePattern,e.timeFormat),e.blocks=e.timeFormatter.getBlocks(),e.blocksLength=e.blocks.length,e.maxLength=$t.Util.getMaxLength(e.blocks))},initDateFormatter:function(){var t=this,e=t.properties;e.date&&(e.dateFormatter=new $t.DateFormatter(e.datePattern,e.dateMin,e.dateMax),e.blocks=e.dateFormatter.getBlocks(),e.blocksLength=e.blocks.length,e.maxLength=$t.Util.getMaxLength(e.blocks))},initPhoneFormatter:function(){var t=this,e=t.properties;if(e.phone)try{e.phoneFormatter=new $t.PhoneFormatter(new e.root.Cleave.AsYouTypeFormatter(e.phoneRegionCode),e.delimiter)}catch{throw new Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(t){var e=this,n=t.which||t.keyCode;e.lastInputValue=e.element.value,e.isBackward=n===8},onChange:function(t){var e=this,n=e.properties,r=$t.Util;e.isBackward=e.isBackward||t.inputType==="deleteContentBackward";var o=r.getPostDelimiter(e.lastInputValue,n.delimiter,n.delimiters);e.isBackward&&o?n.postDelimiterBackspace=o:n.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var t=this,e=t.properties;t.lastInputValue=t.element.value,e.prefix&&e.noImmediatePrefix&&!t.element.value&&this.onInput(e.prefix),$t.Util.fixPrefixCursor(t.element,e.prefix,e.delimiter,e.delimiters)},onCut:function(t){$t.Util.checkFullSelection(this.element.value)&&(this.copyClipboardData(t),this.onInput(""))},onCopy:function(t){$t.Util.checkFullSelection(this.element.value)&&this.copyClipboardData(t)},copyClipboardData:function(t){var e=this,n=e.properties,r=$t.Util,o=e.element.value,i="";n.copyDelimiter?i=o:i=r.stripDelimiters(o,n.delimiter,n.delimiters);try{t.clipboardData?t.clipboardData.setData("Text",i):window.clipboardData.setData("Text",i),t.preventDefault()}catch{}},onInput:function(t){var e=this,n=e.properties,r=$t.Util,o=r.getPostDelimiter(t,n.delimiter,n.delimiters);if(!n.numeral&&n.postDelimiterBackspace&&!o&&(t=r.headStr(t,t.length-n.postDelimiterBackspace.length)),n.phone){n.prefix&&(!n.noImmediatePrefix||t.length)?n.result=n.prefix+n.phoneFormatter.format(t).slice(n.prefix.length):n.result=n.phoneFormatter.format(t),e.updateValueState();return}if(n.numeral){n.prefix&&n.noImmediatePrefix&&t.length===0?n.result="":n.result=n.numeralFormatter.format(t),e.updateValueState();return}if(n.date&&(t=n.dateFormatter.getValidatedDate(t)),n.time&&(t=n.timeFormatter.getValidatedTime(t)),t=r.stripDelimiters(t,n.delimiter,n.delimiters),t=r.getPrefixStrippedValue(t,n.prefix,n.prefixLength,n.result,n.delimiter,n.delimiters,n.noImmediatePrefix,n.tailPrefix,n.signBeforePrefix),t=n.numericOnly?r.strip(t,/[^\d]/g):t,t=n.uppercase?t.toUpperCase():t,t=n.lowercase?t.toLowerCase():t,n.prefix&&(n.tailPrefix?t=t+n.prefix:t=n.prefix+t,n.blocksLength===0)){n.result=t,e.updateValueState();return}n.creditCard&&e.updateCreditCardPropsByValue(t),t=r.headStr(t,n.maxLength),n.result=r.getFormattedValue(t,n.blocks,n.blocksLength,n.delimiter,n.delimiters,n.delimiterLazyShow),e.updateValueState()},updateCreditCardPropsByValue:function(t){var e=this,n=e.properties,r=$t.Util,o;r.headStr(n.result,4)!==r.headStr(t,4)&&(o=$t.CreditCardDetector.getInfo(t,n.creditCardStrictMode),n.blocks=o.blocks,n.blocksLength=n.blocks.length,n.maxLength=r.getMaxLength(n.blocks),n.creditCardType!==o.type&&(n.creditCardType=o.type,n.onCreditCardTypeChanged.call(e,n.creditCardType)))},updateValueState:function(){var t=this,e=$t.Util,n=t.properties;if(t.element){var r=t.element.selectionEnd,o=t.element.value,i=n.result;if(r=e.getNextCursorPosition(r,o,i,n.delimiter,n.delimiters),t.isAndroid){window.setTimeout(function(){t.element.value=i,e.setSelection(t.element,r,n.document,!1),t.callOnValueChanged()},1);return}t.element.value=i,n.swapHiddenInput&&(t.elementSwapHidden.value=t.getRawValue()),e.setSelection(t.element,r,n.document,!1),t.callOnValueChanged()}},callOnValueChanged:function(){var t=this,e=t.properties;e.onValueChanged.call(t,{target:{name:t.element.name,value:e.result,rawValue:t.getRawValue()}})},setPhoneRegionCode:function(t){var e=this,n=e.properties;n.phoneRegionCode=t,e.initPhoneFormatter(),e.onChange()},setRawValue:function(t){var e=this,n=e.properties;t=t!=null?t.toString():"",n.numeral&&(t=t.replace(".",n.numeralDecimalMark)),n.postDelimiterBackspace=!1,e.element.value=t,e.onInput(t)},getRawValue:function(){var t=this,e=t.properties,n=$t.Util,r=t.element.value;return e.rawValueTrimPrefix&&(r=n.getPrefixStrippedValue(r,e.prefix,e.prefixLength,e.result,e.delimiter,e.delimiters,e.noImmediatePrefix,e.tailPrefix,e.signBeforePrefix)),e.numeral?r=e.numeralFormatter.getRawValue(r):r=n.stripDelimiters(r,e.delimiter,e.delimiters),r},getISOFormatDate:function(){var t=this,e=t.properties;return e.date?e.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var t=this,e=t.properties;return e.time?e.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){var t=this;t.element.removeEventListener("input",t.onChangeListener),t.element.removeEventListener("keydown",t.onKeyDownListener),t.element.removeEventListener("focus",t.onFocusListener),t.element.removeEventListener("cut",t.onCutListener),t.element.removeEventListener("copy",t.onCopyListener)},toString:function(){return"[Cleave Object]"}};$t.NumeralFormatter=uK;$t.DateFormatter=cK;$t.TimeFormatter=dK;$t.PhoneFormatter=fK;$t.CreditCardDetector=hK;$t.Util=mK;$t.DefaultProperties=vK;(typeof Ms=="object"&&Ms?Ms:window).Cleave=$t;var yK=$t;const Eb={creditCard:{creditCard:!0},date:{date:!0,datePattern:["d","m","Y"]},time:{time:!0,timePattern:["h","m"],timeFormat:"24"},numeral:{numeral:!0,numeralThousandsGroupStyle:"thousand"}},bK={mask:{type:[String,Object],default:""},returnRaw:{type:Boolean,default:!0}},SK=(t,e,n)=>{const r=W(),o=c=>typeof c=="string"?Eb[c]?{...Eb[c]}:null:{...c},i=()=>{r.value&&r.value.destroy()},s=g(()=>o(e.mask)),l=g(()=>s.value&&Object.keys(s.value).length);tr(()=>{i(),t.value&&(!l.value||!s.value||(r.value=new yK(t.value,s.value),r.value.properties.onValueChanged=({target:{rawValue:c,value:d}})=>{e.returnRaw?n.value=c:n.value=d}))}),jt(()=>{i()});const a=g(()=>r.value&&e.returnRaw&&n.value===r.value.getRawValue()?r.value.getFormattedValue():n.value);return{cleave:r,cleaveEnabled:l,computedValue:a,onInput:c=>{const d=c.target.value;l.value||(n.value=d)}}},CK={key:0,class:"va-input-label__required-mark"},px=ie({name:"VaInputLabel",__name:"VaInputLabel",props:{label:{type:String,default:""},requiredMark:{type:Boolean,default:!1},color:{type:String,default:"primary"}},setup(t){const{getColor:e}=He();return(n,r)=>(A(),I("label",{"aria-hidden":"true",class:"va-input-label",style:se({color:m(e)(n.$props.color,void 0,!0)})},[D(n.$slots,"default",de(we({label:t.label,requiredMark:t.requiredMark,color:m(e)(n.$props.color)})),()=>[Ue(Be(t.label)+" ",1),t.requiredMark?(A(),I("span",CK," * ")):z("",!0)])],4))}}),wK={label:{type:String,default:""},inputAriaLabel:{type:String,default:"$t:inputField"},inputAriaLabelledby:{type:String},inputAriaDescribedby:{type:String}},kK=t=>{const e=Qr(),n=`input-label-${e}`,r=`input-character-count-${e}`,o=g(()=>({"aria-label":t.label!==""?t.label:t.inputAriaLabel,"aria-labelledby":t.inputAriaLabelledby?t.inputAriaLabelledby:n,"aria-describedby":t.inputAriaDescribedby?t.inputAriaDescribedby:r}));return{labelId:n,characterCountId:r,ariaAttributes:o}},xK=t=>ie({name:"ProxySlots",props:{inheritSlots:{type:Array,required:!0}},render(){var e;const n=((e=this.$parent)==null?void 0:e.$slots)||{},o=(this.$props.inheritSlots||Object.keys(n)).reduce((i,s)=>(n[s]&&(i[s]=n[s]),i),{});return ut(t,this.$attrs,{...o,...this.$slots})}}),vi={disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},mx=(t,e)=>({computedClasses:ct(t,g(()=>Bt(e,["disabled","readonly"])))}),mg=t=>{const e=wk(),n=ng(t?Sl(t):void 0);let r=null;const o=g({get(){var i;if(!e.value)return!1;if(e.value===n.value)return!0;const s=(i=n.value)==null?void 0:i.contains(e.value);return s&&(r=e.value),s},set(i){var s;let l=r??n.value;(s=n.value)!=null&&s.contains(l)||(l=n.value),i?l==null||l.focus():l==null||l.blur()}});return Object.assign(o,{focusIfNothingIfFocused:()=>{e.value===document.body&&(o.value=!0)},focusPreviousElement:()=>{r?r.focus():document.body.focus()}})},Lb=nt(px),$K=ie({name:"VaInputWrapper",components:{VaMessageList:xK(Ud),VaIcon:Ze,VaInputLabel:px},props:{...Me,...wK,...vi,...Co,...Lb,modelValue:{type:null,default:""},counter:{type:Boolean},maxLength:{type:[Number,String],default:void 0},label:{type:String,default:""},placeholder:{type:String,default:""},color:{type:String,default:"primary"},background:{type:String},success:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},requiredMark:{type:Boolean,default:!1},innerLabel:{type:Boolean,default:!1}},emits:["click","click-prepend","click-append","click-prepend-inner","click-append-inner","click-field","update:modelValue"],setup(t,{emit:e,slots:n}){const{getColor:r}=He(),[o]=qi("modelValue",t,e,""),i=W(),s=mg(),l=g(()=>t.counter&&typeof o.value=="string"?o.value.length:void 0),a=ct("va-input-wrapper",()=>({...Bt(t,["success","error","disabled","readonly"]),focused:!!s.value,labeled:!!(t.label||n.label),labeledInner:!!(t.label||n.label)&&t.innerLabel})),u=g(()=>r(t.color)),c=g(()=>t.background?r(t.background):"#ffffff00"),d=g(()=>t.error?t.errorMessages:t.messages),{textColorComputed:f}=qt(c),h=Ye("maxLength"),p=g(()=>t.error?"danger":t.success?"success":""),v=g(()=>t.error?Number(t.errorCount):99),y=g(()=>l.value!==void 0),b=g(()=>h.value!==void 0?`${l.value}/${h.value}`:l.value),{labelId:S,characterCountId:w,ariaAttributes:x}=kK(t),k=gt(Lb);return{inputRef:i,focus:()=>{s.value=!0},blur:()=>{s.value=!1},labelId:S,characterCountId:w,ariaAttributes:x,vModel:o,counterValue:l,vaInputLabelProps:k,wrapperClass:a,textColorComputed:f,isCounterVisible:y,counterComputed:b,colorComputed:u,backgroundComputed:c,messagesColor:p,messagesComputed:d,errorLimit:v}}}),AK={class:"va-input-wrapper__fieldset va-input-wrapper__size-keeper"},TK={class:"va-input-wrapper__container"},_K={class:"va-input-wrapper__text"},OK=["placeholder","readonly","disabled"],PK=["id"],BK={class:"va-input-wrapper__counter"};function MK(t,e,n,r,o,i){const s=so("VaInputLabel"),l=so("va-icon"),a=so("va-message-list");return A(),I("div",{class:Ae(["va-input-wrapper",t.wrapperClass]),onClick:e[6]||(e[6]=u=>t.$emit("click",u)),style:se(`--va-background-computed: ${String(t.backgroundComputed)};--va-color-computed: ${String(t.colorComputed)};--va-text-color-computed: ${String(t.textColorComputed)}`)},[q("fieldset",AK,[he(a,{color:t.messagesColor,"model-value":t.messagesComputed,limit:t.errorLimit,"inherit-slots":["message","messages"]},{default:J(({ariaAttributes:u})=>[(t.$props.label||t.$slots.label)&&!t.$props.innerLabel?(A(),te(s,ee({key:0,class:"va-input-wrapper__label va-input-wrapper__label--outer"},t.vaInputLabelProps,{id:t.labelId}),{default:J(c=>[D(t.$slots,"label",de(we(c)))]),_:3},16,["id"])):z("",!0),q("div",TK,[t.$slots.prepend?(A(),I("div",{key:0,class:"va-input-wrapper__prepend-inner",onClick:e[0]||(e[0]=c=>t.$emit("click-prepend"))},[D(t.$slots,"prepend")])):z("",!0),q("div",{onClick:e[4]||(e[4]=c=>t.$emit("click-field",c)),class:"va-input-wrapper__field"},[t.$slots.prependInner?(A(),I("div",{key:0,class:"va-input-wrapper__prepend-inner",ref:"container",onClick:e[1]||(e[1]=c=>t.$emit("click-prepend-inner",c))},[D(t.$slots,"prependInner")],512)):z("",!0),q("div",_K,[(t.$props.label||t.$slots.label)&&t.$props.innerLabel?(A(),te(s,ee({key:0,class:"va-input-wrapper__label va-input-wrapper__label--inner"},t.vaInputLabelProps,{id:t.labelId}),{default:J(c=>[D(t.$slots,"label",de(we(c)))]),_:3},16,["id"])):z("",!0),D(t.$slots,"default",de(we({ariaAttributes:{...u,...t.ariaAttributes},value:t.vModel})),()=>[xr(q("input",ee({...u,...t.ariaAttributes},{"onUpdate:modelValue":e[2]||(e[2]=c=>t.vModel=c),ref:"inputRef",placeholder:t.$props.placeholder,readonly:t.$props.readonly,disabled:t.$props.disabled}),null,16,OK),[[_m,t.vModel]])])]),t.success?(A(),te(l,{key:1,color:"success",name:"va-check-circle",class:"va-input-wrapper__icon va-input-wrapper__icon--success"})):z("",!0),t.error?(A(),te(l,{key:2,color:"danger",name:"va-warning",class:"va-input-wrapper__icon va-input-wrapper__icon--error"})):z("",!0),t.$props.loading?(A(),te(l,{key:3,color:t.$props.color,name:"va-loading",spin:"counter-clockwise",class:"va-input-wrapper__icon va-input-wrapper__icon--loading"},null,8,["color"])):z("",!0),D(t.$slots,"icon"),t.$slots.appendInner?(A(),I("div",{key:4,class:"va-input-wrapper__append-inner",onClick:e[3]||(e[3]=c=>t.$emit("click-append-inner",c))},[D(t.$slots,"appendInner")])):z("",!0)]),t.$slots.append?(A(),I("div",{key:1,class:"va-input-wrapper__append-inner",onClick:e[5]||(e[5]=c=>t.$emit("click-append"))},[D(t.$slots,"append")])):z("",!0)]),t.isCounterVisible?(A(),I("div",{key:1,class:"va-input-wrapper__counter-wrapper",id:t.characterCountId},[D(t.$slots,"counter",de(we({valueLength:t.counterValue,maxLength:t.$props.maxLength})),()=>[q("div",BK,Be(t.counterComputed),1)])],8,PK)):z("",!0)]),_:3},8,["color","model-value","limit"])])],6)}const IK=hs($K,[["render",MK]]),Wn=me(IK),Vb=(...t)=>(...e)=>t.forEach(n=>n(...e)),DK={autofocus:{type:Boolean,default:!1}},EK=(t,e)=>{const n=()=>{Kr(Rt(t.value))},r=()=>{Yd(Rt(t.value))};return dt(()=>{e.autofocus&&n()}),{focus:n,blur:r}},ru={clearable:{type:Boolean,default:!1},clearableIcon:{type:String,default:"va-clear"},clearValue:{type:String,default:""}},tf=["clear"],nf=(t,e,n,r)=>{const{isFocused:o,onFocus:i,onBlur:s}=ko(n),l=[null,void 0,t.clearValue],a=g(()=>t.clearable&&!t.disabled&&!t.readonly&&!l.includes(e.value)),u=g(()=>o!=null&&o.value?t.color||"primary":r!=null&&r.value?"danger":t.success?"success":"secondary"),c=g(()=>({name:t.clearableIcon,color:u.value,size:"medium",tabindex:a.value?0:-1}));return{canBeCleared:a,clearIconColor:u,clearIconProps:c,onFocus:i,onBlur:s}},LK=t=>{if(!vl)return;const e=_t();if(!e)throw new Error("`useDeprecated` hook must be used only inside of setup function!");t.forEach(n=>{const r=n();typeof r=="string"&&pt(`(${e.type.name} component) ${r}`)})},VK=["value"],Rb=nt(Wn),{createEmits:RK,createListeners:FK}=fs(["change","keyup","keypress","keydown","focus","blur","input"]),{createEmits:NK,createListeners:HK}=fs(["click","click-prepend","click-append","click-prepend-inner","click-append-inner"]),zK=ie({name:"VaInput",inheritAttrs:!1,__name:"VaInput",props:{...Rb,...vi,...DK,...Co,...ru,...bK,...Me,...Kt,placeholder:{type:String,default:""},tabindex:{type:[String,Number],default:0},modelValue:{type:[Number,String],default:""},type:{type:String,default:"text"},inputClass:{type:String,default:""},pattern:{type:String},inputmode:{type:String,default:"text"},counter:{type:Boolean,default:!1},ariaResetLabel:{type:String,default:"$t:reset"},strictBindInputValue:{type:Boolean,default:!1}},emits:["update:modelValue",...mi,...tf,...RK(),...NK(),...un],setup(t,{expose:e,emit:n}){const r=t,o=n;LK([()=>r.type!=="textarea"||'Use VaTextarea component instead of VaInput with type="textarea"']);const i=Ne(),{valueComputed:s}=xt(r,o,"modelValue"),l=()=>k(()=>{s.value=r.clearValue,o("clear"),$()}),{focus:a,blur:u}=EK(i,r),c=Ln(),d=g(()=>{const ye=["icon"];return Object.keys(c).filter(j=>!ye.includes(j))}),{tp:f}=yt(),{isValid:h,isTouched:p,isDirty:v,computedError:y,computedErrorMessages:b,listeners:{onBlur:S},validationAriaAttributes:w,isLoading:x,withoutValidation:k,resetValidation:$}=wo(r,o,{reset:l,focus:a,value:s}),{modelValue:C}=Or(r),{canBeCleared:T,clearIconProps:_}=nf(r,C,i,y),{computedValue:M,onInput:F}=SK(i,r,s),L=FK(o),H={...L,onBlur:Vb(S,L.onBlur),onInput:Vb(F,L.onInput)},E=ye=>{if(!r.strictBindInputValue)return;const j=i.value;if(!j)return;const ce=j.selectionStart||0,Se=j.selectionEnd||0;j.value!==ye&&(j.value=String(ye)),j.setSelectionRange(ce,Se)};fe(M,ye=>{E(String(ye))},{immediate:!0}),At("input",()=>{E(String(s.value))},i);const P=g(()=>r.disabled?-1:r.tabindex),V=os(),O=g(()=>({"aria-label":r.inputAriaLabel||r.label,"aria-labelledby":r.inputAriaLabelledby,"aria-required":r.requiredMark,tabindex:P.value,class:r.inputClass,"aria-disabled":r.disabled,"aria-readonly":r.readonly,...w.value,...vo(V,["class","style"])})),N=g(()=>({...O.value,...Bt(r,["type","disabled","readonly","placeholder","pattern","inputmode","minlength","maxlength"])})),re=g(()=>r.counter&&typeof M.value=="string"?M.value.length:void 0),X=ye=>{!ye.target||!("tagName"in ye.target)||ye.target.tagName==="INPUT"||ye.target.tagName==="TEXTAREA"||a()},ke=gt(Rb),$e=HK(o);return e({isValid:h,isDirty:v,isTouched:p,isLoading:x,computedError:y,computedErrorMessages:b,reset:l,focus:a,blur:u,value:s,withoutValidation:k,resetValidation:$}),(ye,j)=>(A(),te(m(Wn),ee({...m($e),...m(ke)},{class:["va-input",ye.$attrs.class],style:ye.$attrs.style,loading:ye.$props.loading||m(x),error:m(y),"error-messages":m(b),"error-count":ye.errorCount,"counter-value":re.value,onClick:X}),vn({icon:J(ce=>[m(T)?(A(),te(m(Ze),ee({key:0,role:"button","aria-label":m(f)(ye.$props.ariaResetLabel)},m(_),{onClick:be(l,["stop"]),onKeydown:[Ce(be(l,["stop"]),["enter"]),Ce(be(l,["stop"]),["space"])]}),null,16,["aria-label","onKeydown"])):z("",!0),D(ye.$slots,"icon",de(we(ce)))]),default:J(()=>[ye.$slots.content?z("",!0):(A(),I("input",ee({key:0,ref_key:"input",ref:i,class:"va-input__content__input"},{...N.value,...H},{value:m(M)}),null,16,VK))]),_:2},[Ge(d.value,ce=>({name:ce,fn:J(Se=>[D(ye.$slots,ce,de(we(Se)))])}))]),1040,["class","style","loading","error","error-messages","error-count","counter-value"]))}}),gg=me(zK),jK={class:"va-color-input"},Fb=nt(gg),WK=ie({name:"VaColorInput",__name:"VaColorInput",props:{...Fb,...Kt,...Me,modelValue:{type:String,default:null},disabled:{type:Boolean,default:!1},indicator:{type:String,default:"dot",validator:t=>["dot","square"].includes(t)},ariaOpenColorPickerLabel:{type:String,default:"$t:openColorPicker"}},emits:[...un],setup(t,{emit:e}){const n=t,r=e,o=Ne(),{valueComputed:i}=xt(n,r),s=()=>{var d;return!n.disabled&&((d=o.value)==null?void 0:d.click())},l=g(()=>n.disabled?-1:0),a=g({get:()=>n.modelValue,set:zw(d=>r("update:modelValue",d),500)}),u=gt(Fb),{tp:c}=yt();return(d,f)=>(A(),I("div",jK,[he(m(gg),ee(m(u),{modelValue:m(i),"onUpdate:modelValue":f[0]||(f[0]=h=>Tt(i)?i.value=h:null),class:"va-color-input__input",tabindex:l.value}),{appendInner:J(()=>[he(m(pg),{class:"va-color-input__dot",role:"button","aria-label":m(c)(d.$props.ariaOpenColorPickerLabel),"aria-disabled":d.$props.disabled,tabindex:l.value,color:m(i),indicator:d.$props.indicator,size:"16px",onClick:s,onKeydown:[Ce(s,["space"]),Ce(s,["enter"])]},null,8,["aria-label","aria-disabled","tabindex","color","indicator"])]),_:1},16,["modelValue","tabindex"]),xr(q("input",{ref_key:"colorPicker",ref:o,type:"color",class:"va-color-input__hidden-input","aria-hidden":"true",tabindex:"-1","onUpdate:modelValue":f[1]||(f[1]=h=>a.value=h)},null,512),[[Ic,a.value]])]))}}),UK=me(WK),KK=["aria-label"],GK=ie({name:"VaColorPalette",__name:"VaColorPalette",props:{...Kt,...Me,modelValue:{type:String,default:null},palette:{type:Array,default:()=>[]},indicator:{type:String,default:"dot",validator:t=>["dot","square"].includes(t)},ariaLabel:{type:String,default:"$t:colorSelection"},ariaIndicatorLabel:{type:String,default:"$t:color"}},emits:[...un],setup(t,{emit:e}){const n=t,r=e,{valueComputed:o}=xt(n,r),i=l=>o.value===l,{tp:s}=yt();return(l,a)=>(A(),I("ul",{class:"va-color-palette",role:"listbox","aria-label":m(s)(l.$props.ariaLabel)},[(A(!0),I(_e,null,Ge(t.palette,(u,c)=>(A(),te(m(pg),{key:c,role:"option","aria-label":m(s)(l.$props.ariaIndicatorLabel,{color:u}),"aria-selected":i(u),tabindex:"0",modelValue:i(u),color:u,square:t.indicator==="square","onUpdate:modelValue":d=>o.value=u},null,8,["aria-label","aria-selected","modelValue","color","square","onUpdate:modelValue"]))),128))],8,KK))}}),qK=me(GK),YK={name:"VaContent"},XK={class:"va-typography-block"};function JK(t,e,n,r,o,i){return A(),I("div",XK,[D(t.$slots,"default")])}const QK=hs(YK,[["render",JK]]),ZK=me(QK),up=t=>typeof t=="number"?`${t}px`:t;function eG(t){fe([()=>t.step,()=>t.min,()=>t.max],()=>{const n=Number(t.modelValue),r=Number(t.max),o=Number(t.min),i=Number(t.step);if(Number.isNaN(n)){pt("The value is not a number or cannot be reduced to a number.");return}o&&r&&o>r&&pt(`The maximum value (${r}) can not be less than the minimum value (${o}).`),o&&nr&&pt(`The value of the counter (${n}) can not be greater than the maximum value (${r}).`),o&&r&&i>r-o&&pt(`The value of the step (${i}) can not be greater than the difference (${r-o}) between maximum value (${r}) and minimum value (${o}).`)},{immediate:!0})}const gx=t=>Number(t.toPrecision(13)),tG=(t,e)=>{const n=gx(t%e);return n===0||n===e};function Nb(t,e){let n=-1,r=-1;const o=()=>{var l;(l=e.onStart)==null||l.call(e),clearTimeout(n),n=setTimeout(()=>{r=setInterval(()=>{var a;return(a=e.onUpdate)==null?void 0:a.call(e)},e.interval||100)},m(e.delay)||500)},i=()=>{var l;clearTimeout(n),clearInterval(r),(l=e.onEnd)==null||l.call(e)},s=Sl(t);At(["mousedown","touchstart","dragstart"],o,s),At(["mouseup","mouseleave","touchend","touchcancel","drop","dragend","blur"],i,!0)}const nG=["value","aria-live"],{createEmits:rG,createListeners:oG}=fs(["change"]),{createEmits:iG,createListeners:sG}=fs([{listen:"click-prepend",emit:"click:decrease-button"},{listen:"click-append",emit:"click:increase-button"},{listen:"click-prepend-inner",emit:"click:decrease-icon"},{listen:"click-append-inner",emit:"click:increase-icon"}]),Hb=nt(Wn),lG=ie({name:"VaCounter",inheritAttrs:!1,__name:"VaCounter",props:{...vi,...Kt,...Me,...ru,...Hb,modelValue:{type:[String,Number],default:0},manualInput:{type:Boolean,default:!1},min:{type:[Number,String]},max:{type:[Number,String]},step:{type:[Number,String],default:1},color:{type:String,default:"primary"},increaseIcon:{type:String,default:"va-plus"},decreaseIcon:{type:String,default:"va-minus"},buttons:{type:Boolean,default:!1},flat:{type:Boolean,default:!0},rounded:{type:Boolean,default:!1},margins:{type:[String,Number],default:"4px"},longPressDelay:{type:[Number,String],default:500},ariaLabel:{type:String,default:"$t:counterValue"},ariaDecreaseLabel:{type:String,default:"$t:decreaseCounter"},ariaIncreaseLabel:{type:String,default:"$t:increaseCounter"}},emits:["update:modelValue",...mi,...rG(),...iG(),...Xd],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),{min:s=W(void 0),max:l=W(void 0),step:a}=Or(r),u=Ye("longPressDelay"),{isFocused:c,focus:d,blur:f}=ko(i,o),{valueComputed:h}=xt(r,o);function p(Y){return parseFloat(Number(Y).toFixed(10))}const v=g({get(){return h.value},set(Y){h.value=p(Y)}}),y=()=>w(()=>{o("update:modelValue",r.clearValue),o("clear"),x()}),{computedError:b,computedErrorMessages:S,withoutValidation:w,resetValidation:x,listeners:k,isDirty:$,isTouched:C}=wo(r,o,{reset:y,focus:d,value:v}),T=({target:Y})=>{v.value=Number(Y==null?void 0:Y.value)},_=({target:Y})=>{F(Number(Y==null?void 0:Y.value))},M=Y=>typeof s.value>"u"||!Number(a.value)?Y:gx(Number(s.value)+Number(a.value)*((Number(Y)-Number(s.value))/Number(a.value))),F=Y=>{if(typeof s.value<"u"&&YNumber(l.value)){v.value=M(Number(l.value));return}v.value=M(Y)},L=g(()=>kr(s.value)?!1:Number(v.value)<=Number(s.value)),H=g(()=>kr(l.value)?!1:a.value?Number(v.value)>Number(l.value)-Number(a.value):Number(v.value)>=Number(l.value)),E=g(()=>r.disabled?-1:0),P=g(()=>L.value||r.disabled),V=g(()=>H.value||r.disabled),O=()=>{P.value||F(Number(v.value)-Number(a.value))},N=()=>{V.value||F(Number(v.value)+Number(a.value))};Nb(tp("decreaseButtonRef"),{onUpdate:O,delay:u}),Nb(tp("increaseButtonRef"),{onUpdate:N,delay:u});const{getColor:re}=He(),X=g(()=>re(r.color)),ke=g(()=>({class:{"va-counter__icon--inactive":P.value},color:X.value,icon:r.decreaseIcon,plain:!0,disabled:P.value,readonly:r.readonly,tabindex:-1,"aria-label":Z(r.ariaDecreaseLabel),...!P.value&&{onClick:O}})),$e=g(()=>({class:{"va-counter__icon--inactive":V.value},color:X.value,icon:r.increaseIcon,plain:!0,disabled:V.value,readonly:r.readonly,tabindex:-1,"aria-label":Z(r.ariaIncreaseLabel),...!V.value&&{onClick:N}})),ye=g(()=>(typeof r.margins=="string"?parseFloat(r.margins):r.margins)===0),j=()=>c.value?r.color:"background-border",ce=g(()=>({...Bt(r,["color","textColor"]),round:r.rounded,preset:r.flat?"secondary":"",borderColor:r.flat?j():""})),Se=g(()=>({...ce.value,icon:r.decreaseIcon,disabled:P.value,"aria-label":Z(r.ariaDecreaseLabel),...!P.value&&{onClick:O}})),ne=g(()=>({...ce.value,icon:r.increaseIcon,disabled:V.value,"aria-label":Z(r.ariaIncreaseLabel),...!V.value&&{onClick:N}})),{tp:Z}=yt(),Ve=os(),Pe=Ln(),qe=g(()=>({tabindex:E.value,"aria-label":Z(r.ariaLabel),"aria-valuemin":Number(s.value),"aria-valuemax":Number(l.value),...vo(Ve,["class","style"]),...Bt(r,["disabled","min","max","step"]),readonly:r.readonly||!r.manualInput})),bt=g(()=>[Ve.class,{"va-counter--input-square":ye.value},{"va-counter--content-slot":Pe.content&&r.buttons}].filter(Boolean)),B=g(()=>({...Ve.style||{}})),R=g(()=>up(r.margins));eG(r);const Q=sG(o),K=oG(o),U=gt(Hb);return e({isDirty:$,isTouched:C,focus:d,blur:f,decreaseCount:O,increaseCount:N,reset:y}),(Y,oe)=>(A(),te(m(Wn),ee({class:"va-counter"},{...m(Q),...m(U),...m(k)},{class:bt.value,style:B.value,focused:m(c),error:m(b),"error-messages":m(S),onKeydown:[Ce(be(N,["prevent"]),["up"]),Ce(be(N,["prevent"]),["right"]),Ce(be(O,["prevent"]),["down"]),Ce(be(O,["prevent"]),["left"])]}),vn({default:J(()=>[Y.$slots.content?z("",!0):(A(),I("input",ee({key:0,ref_key:"input",ref:i,class:"va-input__content__input",type:"number",inputmode:"decimal"},{...qe.value,...m(K)},{value:v.value,"aria-live":Y.$props.disabled?"off":"polite",onInput:T,onChange:_}),null,16,nG))]),_:2},[Y.$props.buttons?{name:"prepend",fn:J(ae=>[q("div",{class:"va-counter__prepend-wrapper",style:se({marginRight:R.value}),onMousedown:oe[0]||(oe[0]=be((...ve)=>m(d)&&m(d)(...ve),["prevent"]))},[D(Y.$slots,"decreaseAction",de(we({...ae,decreaseCount:O})),()=>[he(m(et),ee({class:"va-counter__button-decrease"},Se.value,{ref:"decreaseButtonRef"}),null,16)])],36)]),key:"0"}:{name:"prependInner",fn:J(ae=>[q("div",{class:"va-counter__prepend-inner",onMousedown:oe[1]||(oe[1]=be((...ve)=>m(d)&&m(d)(...ve),["prevent"]))},[D(Y.$slots,"decreaseAction",de(we({...ae,decreaseCount:O})),()=>[he(m(et),ee(ke.value,{ref:"decreaseButtonRef"}),null,16)])],32)]),key:"1"},Y.$props.buttons?{name:"append",fn:J(ae=>[q("div",{class:"va-counter__append-wrapper",style:se({marginLeft:R.value}),onMousedown:oe[2]||(oe[2]=be((...ve)=>m(d)&&m(d)(...ve),["prevent"]))},[D(Y.$slots,"increaseAction",de(we({...ae,increaseCount:N})),()=>[he(m(et),ee({class:"va-counter__button-increase"},ne.value,{ref:"increaseButtonRef"}),null,16)])],36)]),key:"2"}:{name:"appendInner",fn:J(ae=>[q("div",{class:"va-counter__append-inner",onMousedown:oe[3]||(oe[3]=be((...ve)=>m(d)&&m(d)(...ve),["prevent"]))},[D(Y.$slots,"increaseAction",de(we({...ae,increaseCount:N})),()=>[he(m(et),ee($e.value,{ref:"increaseButtonRef"}),null,16)])],32)]),key:"3"},Y.$slots.content?{name:"default",fn:J(ae=>[q("div",{ref_key:"input",ref:i,tabindex:"0",class:"va-counter__content-wrapper"},[D(Y.$slots,"content",de(we({...ae,value:Number(v.value)})))],512)]),key:"4"}:void 0]),1040,["class","style","focused","error","error-messages","onKeydown"]))}}),aG=me(lG),vx={currentPage:{type:Number}},yx=()=>({items:{type:Array,default:()=>[]}}),bx={selectable:{type:Boolean,default:!1}},Sx={itemsTrackBy:{type:[String,Function],default:""}},Cx=t=>{const e=t.length===2||t.length===3,n=t.every(o=>["asc","desc",null].includes(o)),r=t.length===new Set(t).size;return e&&n&&r},uG={...yx(),columns:{type:Array,default:()=>[]},sortingOptions:{type:Array,default:()=>["asc","desc",null],validator:Cx}},wx=(t,e,n)=>{const r=typeof t=="string"?{key:t}:t,o=r.sortingOptions?Cx(r.sortingOptions):!0;return o||pt(`The "sortingOptions" array in the column with "${r.key}" key is invalid. For this column, the "sortingOptions" value is taken as for the table: ${JSON.stringify(n.sortingOptions)}.`),{source:t,initialIndex:e,key:r.key,name:r.name||r.key,label:r.label||Ny(r.key),thTitle:r.thTitle||r.headerTitle||r.label||Ny(r.key),sortable:r.sortable||!1,sortingFn:r.sortingFn,displayFormatFn:r.displayFormatFn,sortingOptions:o&&r.sortingOptions||n.sortingOptions,thAlign:r.thAlign||r.alignHead||"left",thVerticalAlign:r.thVerticalAlign||r.verticalAlignHead||"middle",tdAlign:r.tdAlign||r.align||"left",tdVerticalAlign:r.tdVerticalAlign||r.verticalAlign||"middle",width:r.width,tdClass:r.tdClass||r.classes,thClass:r.thClass||r.headerClasses,tdStyle:r.tdStyle||r.style,thStyle:r.thStyle||r.headerStyle}},cG=t=>Object.keys(qh({},...t.items)).map((e,n)=>wx(e,n,t)),dG=t=>t.columns.map((e,n)=>wx(e,n,t)),fG=t=>({columnsComputed:g(()=>t.columns.length===0?cG(t):dG(t))}),xl={delay:{type:Number,default:0,validator:t=>t>=0}};function hG(t,e){const n=$n(e,"delay")??0,r=W(!0);let o;return function(...i){const s=()=>t.apply(this,i);return m(n)?(r.value&&(r.value=!1,setTimeout(()=>r.value=!0,m(n)),o=s()),o):s()}}function vg(t,e){const n=$n(e,"delay")??0;if(!m(n))return t;const r=W(!0),o=W(),i=W(),s=W();return fe(t,()=>{o.value=t.value;const l=setTimeout(()=>{s.value=o.value},m(n));r.value?(r.value=!1,s.value=t.value,i.value=t.value,clearTimeout(l),setTimeout(()=>r.value=!0,m(n))):s.value=i.value},{immediate:!0}),s}const pG={...xl,...vx,perPage:{type:Number}},mG=(t,e)=>{const n=g(()=>{if(!e.perPage||e.perPage<0)return t.value;if(!e.currentPage||e.currentPage<0)return t.value.slice(0,e.perPage);const o=e.perPage*(e.currentPage-1);return t.value.slice(o,o+e.perPage)});return{paginatedRows:vg(n,e)}},kx=(t,e)=>typeof e=="function"?e(t):ug(t,e)||t,gG=()=>({...yx(),...Sx}),vG=(t,e,n,r)=>{var o;const i=ug(n,r.key);return{rowIndex:t,rowKey:e,rowData:n,column:r,source:i,value:((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}},yG=(t,e,n,r)=>{const o=kx(t,n);return{initialIndex:e,itemKey:o,source:t,cells:r.map(i=>vG(e,o,t,i)),rowData:t}},bG=(t,e)=>{const n=W({});return{rowsComputed:g(()=>e.items.map((o,i)=>({...yG(o,i,e.itemsTrackBy,t.value),toggleRowDetails:s=>{typeof s=="boolean"?n.value[i]=s:n.value[i]=!n.value[i]},isExpandableRowVisible:!!n.value[i]})))}},SG={...bx,...Sx,modelValue:{type:Array},selectMode:{type:String,default:"multiple"}},CG=(t,e,n)=>{const r=W([]),o=g({get(){return e.modelValue===void 0?r.value:e.modelValue},set(C){e.modelValue===void 0&&(r.value=C),n("update:modelValue",C)}}),i=W(-1);fe(()=>e.selectMode,(C,T)=>{C==="single"&&T==="multiple"&&(o.value=[],y(-1))}),fe(t,()=>{y(-1)}),fe(o,(C,T=[])=>{n("selectionChange",{currentSelectedItems:C,previousSelectedItems:T})},{immediate:!0});const s=C=>kx(C,e.itemsTrackBy),l=g(()=>!t.value.some(({source:C})=>o.value.includes(s(C)))),a=g(()=>t.value.length===0?!1:t.value.every(({source:C})=>o.value.includes(s(C)))),u=g(()=>!l.value&&!a.value);function c(C){return o.value.includes(s(C.source))}function d(){o.value=[...new Set([...o.value,...t.value.map(C=>s(C.source))])]}function f(){const C=t.value.map(T=>s(T.source));o.value=o.value.filter(T=>!C.includes(T))}function h(C){o.value=[...o.value,s(C.source)]}function p(C){o.value=[s(C.source)]}function v(C){const T=o.value.findIndex(_=>_===s(C.source));o.value=[...o.value.slice(0,T),...o.value.slice(T+1)]}function y(C){if(C===-1)i.value=-1;else{const T=t.value.find(_=>_.initialIndex===C);T?i.value=t.value.indexOf(T):i.value=-1}}function b(C){let T,_;return c(t.value[i.value])?(T=Math.min(i.value,C),_=Math.max(i.value,C)):(T=Math.min(i.value+1,C),_=Math.max(i.value-1,C)),t.value.slice(T,_+1)}function S(C){const T=C.map(M=>s(M.source));if(l.value){o.value=T;return}if(T.every(M=>o.value.includes(M))){o.value=o.value.filter(M=>!T.includes(M));return}o.value=[...new Set([...o.value,...T])]}function w(C){e.selectable&&(c(C)?(v(C),e.selectMode==="single"?y(-1):y(C.initialIndex)):(e.selectMode==="single"?p(C):h(C),y(C.initialIndex)))}function x(C){e.selectable&&w(C)}function k(C){if(!e.selectable)return;if(e.selectMode==="single"||i.value===-1)return w(C);const T=t.value.indexOf(C);S(b(T)),y(-1)}function $(){a.value?f():d(),y(-1)}return{ctrlSelectRow:x,shiftSelectRows:k,toggleRowSelection:w,toggleBulkSelection:$,isRowSelected:c,noRowsSelected:l,severalRowsSelected:u,allRowsSelected:a}},no="--va-data-table",xx=t=>typeof t=="function",$x={...bx,selectedColor:{type:String,default:"primary"},allowFooterSorting:{type:Boolean,default:!1},stickyHeader:{type:Boolean,default:!1},stickyFooter:{type:Boolean,default:!1},height:{type:[String,Number]}},wG=t=>xx(t)?t():t,kG=t=>xx(t)?t():t,Ax=t=>{const{getColor:e,getFocusColor:n,getHoverColor:r}=He(),o=g(()=>e(t.selectedColor));return{CSSVariables:g(()=>({hoverColor:r(o.value),selectedColor:t.selectable?n(o.value):void 0,tableHeight:t.height?up(t.height):"var(--va-data-table-height)",theadBg:t.stickyHeader?"var(--va-data-table-thead-background, var(--va-data-table-header-background))":"var(--va-data-table-thead-background)",tfootBg:t.stickyFooter?"var(--va-data-table-tfoot-background, var(--va-data-table-header-background))":"var(--va-data-table-tfoot-background)"})),getHeaderCSSVariables:u=>({[`${no}-width`]:u.width&&up(u.width),[`${no}-align`]:u.thAlign,[`${no}-vertical-align`]:u.thVerticalAlign,[`${no}-cursor`]:u.sortable?"pointer":"default"}),getCellCSSVariables:u=>({[`${no}-align`]:u.column.tdAlign,[`${no}-vertical-align`]:u.column.tdVerticalAlign}),getFooterCSSVariables:u=>({[`${no}-align`]:u.thAlign,[`${no}-vertical-align`]:u.thVerticalAlign,[`${no}-cursor`]:t.allowFooterSorting&&u.sortable?"pointer":"default"}),getClass:wG,getStyle:kG}},zb=t=>typeof t=="function",jb=t=>t!==null&&typeof t=="object",xG={rowBind:{type:null},cellBind:{type:null}},$G=t=>({getRowBind:r=>zb(t.rowBind)?t.rowBind(r.source,r.initialIndex):jb(t.rowBind)?t.rowBind:{},getCellBind:(r,o)=>zb(t.cellBind)?t.cellBind(r.source,o.source,r.column,o.initialIndex):jb(t.cellBind)?t.cellBind:{}}),AG={...vx,animated:{type:Boolean,default:!0}},TG=(t,e)=>{const n=W("shuffle"),r=g(()=>t.animated?`table-transition-${n.value}`:""),o=W(e.value.length),i=g(()=>e.value.length!==o.value);return fe(e,(s,l)=>{const a=!!(s.length&&l.length);n.value=s.length>50||i.value&&a?"fade":"shuffle",o.value=s.length}),fe(()=>t.currentPage,()=>{i.value||(n.value="shuffle")}),r},_G={...xl,filter:{type:String,default:""},filterMethod:{type:Function}},OG=(t,e,n)=>{const r=g(()=>!t.value.length||e.filter===""&&!e.filterMethod?t.value:t.value.filter(i=>i.cells.some(s=>typeof e.filterMethod=="function"?e.filterMethod(s.source,s):new RegExp(e.filter,"i").test(s.value)))),o=vg(r,e);return fe(o,()=>{n("filtered",{items:o.value.map(i=>i.source),itemsIndexes:o.value.map(i=>i.initialIndex)})}),r.value.length!==t.value.length&&n("filtered",{items:r.value.map(i=>i.source),itemsIndexes:r.value.map(i=>i.initialIndex)}),{filteredRows:o}},PG={...xl,sortBy:{type:String},columnSorted:{type:Object},sortingOrder:{type:[String,null]},disableClientSideSorting:{type:Boolean,default:!1}},BG=(t,e,n,r)=>{const o=W(""),i=g({get(){return n.sortBy===void 0?o.value:n.sortBy},set(p){n.sortBy===void 0&&(o.value=p),r("update:sortBy",p)}}),s=W(null),l=g({get(){return n.sortingOrder===void 0?s.value:n.sortingOrder},set(p){n.sortingOrder===void 0&&(s.value=p),r("update:sortingOrder",p)}}),a=(p,v)=>{if(typeof p=="string"&&typeof v=="string")return p.localeCompare(v);if(typeof p=="number"&&typeof v=="number")return p-v;const y=parseFloat(p),b=parseFloat(v);return!isNaN(y)&&!isNaN(b)?y-b:isNaN(y)?isNaN(b)?0:1:-1},u=g(()=>{if(n.disableClientSideSorting||e.value.length<=1)return e.value;const p=t.value.findIndex(({name:b,sortable:S})=>i.value===b&&S),v=t.value[p];if(!v)return e.value;const y=l.value==="desc"?-1:1;return[...e.value].sort((b,S)=>{if(l.value===null)return b.initialIndex-S.initialIndex;{const w=b.cells[p].source,x=S.cells[p].source;return y*(typeof v.sortingFn=="function"?v.sortingFn(w,x):a(w,x))}})});fe(u,()=>{r("sorted",{sortBy:i.value,sortingOrder:l.value,items:u.value.map(p=>p.source),itemsIndexes:u.value.map(p=>p.initialIndex)})});const c=(p,v)=>{const y=v.findIndex(b=>b===p);return y!==-1?v[(y+1)%v.length]:v[0]};function d(p){let v;p.name===i.value?v=c(l.value,p.sortingOptions):(i.value=p.name,v=p.sortingOptions[0]),l.value=v,r("columnSorted",{columnName:p.name,value:v,column:p})}const f=hG(d,n),h=g(()=>l.value==="asc"?"va-sort-asc":l.value==="desc"?"va-sort-desc":"va-unsorted");return{sortBySync:i,sortingOrderSync:l,toggleSorting:f,sortedRows:u,sortingOrderIconName:h}},MG=t=>{const e=m(t);return Rt(e)},fc=()=>{const t=Ne();return g({get(){return MG(t)},set(e){t.value=e}})},IG={scrollTopMargin:{type:[Number,String],default:0},scrollBottomMargin:{type:[Number,String],default:0}},DG=["scroll:top","scroll:bottom"],EG=(t,e)=>{var n;const r=(n=_t())==null?void 0:n.vnode.props,o=(r==null?void 0:r["onScroll:top"])!==void 0,i=(r==null?void 0:r["onScroll:bottom"])!==void 0,s=fc(),l=fc(),a=fc(),u=Ye("scrollTopMargin"),c=Ye("scrollBottomMargin"),d=g(()=>!!s.value),f=v=>{v.forEach(y=>{y.isIntersecting&&(y.target===l.value?e("scroll:top"):e("scroll:bottom"))})},h=g(()=>{const v=[];return d.value&&(l.value&&v.push(l.value),a.value&&v.push(a.value)),v}),p=g(()=>({root:s.value,rootMargin:`${u.value??0}px 0px ${c.value??0}px 0px`}));return cx(f,p,h),{scrollContainer:s,topTrigger:l,bottomTrigger:a,doRenderTopTrigger:o,doRenderBottomTrigger:i}},LG={class:"va-data-table__table-tr"},VG={key:0,scope:"col",class:"va-data-table__table-th va-data-table__table-cell-select"},RG=["title","onClick","onKeydown"],FG={class:"va-data-table__table-th-wrapper"},NG={key:0},HG=ie({name:"VaDataTableThRow",__name:"VaDataTableThRow",props:{...$x,selectMode:{type:String,default:"multiple"},allRowsSelected:{type:Boolean,default:!1},severalRowsSelected:{type:Boolean,default:!1},columns:{type:Array,required:!0},isFooter:{type:Boolean,default:!1},sortBySync:{type:String,required:!0},sortingOrderIconName:{type:String,required:!0},sortingOrderSync:{type:String,default:null},ariaSelectAllRowsLabel:{type:String,default:"$t:selectAllRows"},ariaSortColumnByLabel:{type:String,default:"$t:sortColumnBy"}},emits:["toggleBulkSelection","toggleSorting"],setup(t,{emit:e}){const n=t,r=e,{t:o,tp:i}=yt(),{getFooterCSSVariables:s,getHeaderCSSVariables:l,getClass:a,getStyle:u}=Ax(n),c=y=>{const b=n.sortingOrderSync&&n.sortBySync===y.name?n.sortingOrderSync==="asc"?"ascending":"descending":"none",S=y.sortable?i(n.ariaSortColumnByLabel,{name:y.label}):void 0;return{"aria-sort":b,"aria-label":S}},d=y=>{n.isFooter&&!n.allowFooterSorting||!y.sortable||r("toggleSorting",y)},f=()=>r("toggleBulkSelection"),h=y=>[y.width?{minWidth:y.width,maxWidth:y.width}:{},n.isFooter?s(y):l(y),u(y.thStyle)],p=g(()=>n.isFooter?"footer":"header"),v=g(()=>n.selectMode==="multiple");return(y,b)=>(A(),I("tr",LG,[y.$props.selectable?(A(),I("th",VG,[v.value?(A(),te(m(nu),{key:0,class:"va-data-table__table-cell-checkbox","model-value":y.$props.severalRowsSelected?"idl":y.$props.allRowsSelected,"aria-label":m(i)(y.$props.ariaSelectAllRowsLabel),"true-value":!0,"false-value":!1,color:y.$props.selectedColor,"indeterminate-value":"idl",indeterminate:"","onUpdate:modelValue":f},null,8,["model-value","aria-label","color"])):z("",!0)])):z("",!0),(A(!0),I(_e,null,Ge(t.columns,S=>(A(),I("th",ee({key:S.name,scope:"col",class:["va-data-table__table-th",m(a)(S.thClass)],title:S.thTitle,style:h(S)},c(S),{onClick:be(w=>d(S),["exact"]),onKeydown:Ce(be(w=>d(S),["stop"]),["enter"])}),[q("div",FG,[`${p.value}(${S.name})`in y.$slots?(A(),I("span",NG,[D(y.$slots,`${p.value}(${S.name})`,de(we({label:S.label,key:S.key})))])):D(y.$slots,p.value,de(ee({key:1},{label:S.label,key:S.key})),()=>[q("span",null,Be(S.label),1)]),S.sortable?(A(),te(m(Ze),{key:2,class:Ae(["va-data-table__table-th-sorting-icon",{active:t.sortBySync===S.name&&t.sortingOrderSync!==null}]),size:"small",role:S.sortable?"button":void 0,tabindex:S.sortable?0:-1,name:t.sortingOrderIconName,onSelectstart:be(()=>{},["prevent"])},null,8,["class","role","tabindex","name"])):z("",!0)])],16,RG))),128))]))}}),cp=me(HG),{isParsablePositiveMeasure:zG,parseSizeValue:Wb}=qk(),Ub=(t,e)=>{const n=zG(t);return!n&&pt(`[va-virtual-scroller] ${e} should be number or parsable int greater or equal to 0. Provided: ${t}.`),n},jG={horizontal:{type:Boolean,default:!1},itemSize:{type:[Number,String],default:0,validator:t=>Ub(t,"itemSize")},wrapperSize:{type:[Number,String],default:100,validator:t=>t==="auto"||Ub(t,"wrapperSize")}},WG=(t,e)=>{const n=Ne(),r=Ne(),o=g(()=>t.horizontal?"clientWidth":"clientHeight"),i=g(()=>{var h;return t.wrapperSize==="auto"?((h=r.value)==null?void 0:h[o.value])||0:Wb(t.wrapperSize,s)}),s=W(16);At("resize",()=>{s.value=parseFloat(getComputedStyle(document.documentElement).fontSize),u()},!0);const a=W(0),u=()=>{if(!n.value)return;const h=[],v=n.value.children.length;for(let y=0;yy+b,0)/(v-1)):0},c=_t();dt(()=>{var h,p;n.value||(n.value=(p=(h=c==null?void 0:c.parent)==null?void 0:h.refs)==null?void 0:p.list),u()}),fe(e,u),fe(i,u);let d=0;const f=g(()=>{const h=Wb(t.itemSize,s),p=Math.max(h,a.value,1);return Math.abs(d/p*100-100)>5||d===0?(d=p,p):d});return{list:n,wrapper:r,itemSize:f,wrapperSize:i}},UG={trackBy:{type:[String,Number,Function],default:""}},KG=t=>({getKey:(n,r,o)=>{if(t.trackBy&&n&&typeof n=="object"&&!Ws(t.trackBy)){const i=Array.isArray(n);let s;if(i&&!isNaN(+t.trackBy)&&(s=n[+t.trackBy]),i||(s=n[t.trackBy]),s||s===0)return s;pt(`${i?"Index":"Key"} '${t.trackBy}' wasn't found in provided ${i?"array":"object"}: `,n)}return Ws(t.trackBy)?t.trackBy(n):o}}),GG=ie({name:"VaVirtualScroller",__name:"VaVirtualScroller",props:{...UG,...jG,items:{type:Array,default:()=>[]},bench:{type:[Number,String],default:10,validator:t=>Number(t)>=0},disabled:{type:Boolean,default:!1},table:{type:Boolean,default:!1}},emits:["scroll:bottom"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=W(0),s=Ye("bench"),l=g(()=>r.horizontal?"scrollLeft":"scrollTop"),a=()=>{c.value&&(i.value=c.value[l.value])};r.disabled||At("scroll",a,!0);const{list:u,wrapper:c,itemSize:d,wrapperSize:f}=WG(r,i),{getKey:h}=KG(r),p=(H,E,P)=>h(H,E,P);fe(i,H=>{H+f.value===C.value&&o("scroll:bottom")});const v=g(()=>Math.max(0,Math.floor(i.value/d.value)-s.value)),y=g(()=>{var H;return(H=r.items)!=null&&H.length?r.disabled?r.items.length:Math.min(r.items.length-v.value,Math.ceil(f.value/d.value)+s.value*2):0}),b=g(()=>v.value+y.value),S=g(()=>{var H;return(H=r.items)!=null&&H.length?r.items.slice(v.value,b.value):[]}),w=g(()=>r.horizontal?"width":"height"),x=g(()=>r.table&&r.disabled),k=g(()=>({[w.value]:x.value||!f.value?void 0:`${f.value}px`})),$=ct("va-virtual-scroller",()=>({...Bt(r,["horizontal"])})),C=g(()=>{var H;return(((H=r.items)==null?void 0:H.length)??0)*d.value}),T=g(()=>({[w.value]:x.value?void 0:`${C.value}px`})),_=g(()=>v.value*d.value),M=g(()=>({transform:`translate${r.horizontal?"X":"Y"}(${_.value}px)`})),F=g(()=>r.horizontal?"left":"top");return e({scrollToAttribute:F,virtualScrollTo:H=>{var E;!H&&H!==0||(E=c.value)==null||E.scrollTo({[F.value]:H*d.value})}}),(H,E)=>(A(),I("div",{ref_key:"wrapper",ref:c,class:Ae(["va-virtual-scroller",m($)]),style:se(k.value)},[D(H.$slots,"content",de(we({containerStyleComputed:T.value,listStyleComputed:M.value,renderBuffer:S.value,uniqueKey:p,currentListOffset:_.value})),()=>[q("div",{class:"va-virtual-scroller__container",style:se(T.value)},[q("div",{ref_key:"list",ref:u,role:"list",class:"va-virtual-scroller__list",style:se(M.value)},[(A(!0),I(_e,null,Ge(S.value,(P,V)=>D(H.$slots,"default",de(ee({key:p(P,V)},{item:P,index:v.value+V})))),128))],4)],4)])],6))}}),rf=me(GG),qG={key:0,class:"va-inner-loading__overlay","aria-hidden":"true"},YG=ie({name:"VaInnerLoading",__name:"VaInnerLoading",props:{...Xa,...Me,color:{type:String},icon:{type:String,default:"va-loading"},size:{type:[Number,String],default:30}},setup(t){const e=t,{getColor:n}=He(),r=g(()=>n(e.color)),o=g(()=>({"va-inner-loading--active":e.loading})),i=g(()=>({"aria-busy":e.loading}));return(s,l)=>(A(),I("div",ee({class:["va-inner-loading",o.value],"aria-live":"polite"},i.value),[D(s.$slots,"default"),s.$props.loading?(A(),I("div",qG,[D(s.$slots,"loading",{},()=>[he(m(Ze),{class:"va-inner-loading__spinner",spin:"counter-clockwise",color:r.value,size:s.$props.size,name:s.$props.icon},null,8,["color","size","name"])])])):z("",!0)],16))}}),Tx=me(YG),XG={key:0},JG={ref:"list",class:"va-data-table__table-tbody"},QG={key:"showNoDataHtml",class:"va-data-table__table-tr"},ZG=["innerHTML"],e9={key:"showNoDataFilteredHtml",class:"va-data-table__table-tr"},t9=["innerHTML"],n9=["onClick","onDblclick","onContextmenu"],r9={key:0,class:"va-data-table__grid-column-header"},Kb=nt(rf,["items","trackBy","horizontal","disabled","table"]),Gb=nt(cp),o9=ie({name:"VaDataTable",inheritAttrs:!1,__name:"VaDataTable",props:{...Me,...Kb,...AG,...xG,...IG,...PG,...$x,...uG,..._G,...pG,...gG(),...SG,...xl,...Bt(Gb,["ariaSelectAllRowsLabel","ariaSortColumnByLabel"]),hoverable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingColor:{type:String,default:"primary"},noDataHtml:{type:String,default:"No items"},noDataFilteredHtml:{type:String,default:"No items match the provided filtering condition"},hideDefaultHeader:{type:Boolean,default:!1},footerClone:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},virtualScroller:{type:Boolean,default:!1},virtualTrackBy:{type:[String,Number],default:"initialIndex"},grid:{type:Boolean,default:!1},gridColumns:{type:[Number,String],default:0},wrapperSize:{type:[Number,String],default:"auto"},ariaSelectRowLabel:{type:String,default:"$t:selectRowByIndex"}},emits:["update:modelValue","update:sortBy","update:sortingOrder","filtered","sorted","selectionChange","row:click","row:dblclick","row:contextmenu","columnSorted",...DG],setup(t,{emit:e}){const{tp:n}=yt(),r=t,o=e,{columnsComputed:i}=fG(r),{rowsComputed:s}=bG(i,r),{filteredRows:l}=OG(s,r,o),{sortBySync:a,sortingOrderSync:u,toggleSorting:c,sortedRows:d,sortingOrderIconName:f}=BG(i,l,r,o),{paginatedRows:h}=mG(d,r),{ctrlSelectRow:p,shiftSelectRows:v,toggleBulkSelection:y,isRowSelected:b,severalRowsSelected:S,allRowsSelected:w,toggleRowSelection:x}=CG(h,r,o),{CSSVariables:k,getCellCSSVariables:$,getClass:C,getStyle:T}=Ax(r),{getRowBind:_,getCellBind:M}=$G(r),F=TG(r,h),L=g(()=>r.items.length===0),H=g(()=>h.value.length===0),E=(Pe,qe,bt)=>{o(Pe,{event:qe,item:bt.source,itemIndex:bt.initialIndex,row:bt}),r.selectable&&r.grid&&x(bt)},P=g(()=>({...vo(N,["class","style"]),class:Bt(r,["striped","selectable","hoverable","clickable"])})),V=gt(Kb),O=g(()=>({...V.value,items:h.value,trackBy:r.virtualTrackBy,disabled:!r.virtualScroller,table:!0})),N=os(),re=g(()=>({class:[{"va-data-table--sticky":r.stickyHeader||r.stickyFooter},{"va-data-table--scroll":!!r.height},{"va-data-table--virtual-scroller":ne.value},{"va-data-table--grid":r.grid},N.class],style:[N.style],...O.value})),X=gt(Gb),ke=g(()=>({...X.value,columns:i.value,sortingOrderIconName:f.value,severalRowsSelected:S.value,sortingOrderSync:u.value,allRowsSelected:w.value,sortBySync:a.value})),{scrollContainer:$e,topTrigger:ye,bottomTrigger:j,doRenderTopTrigger:ce,doRenderBottomTrigger:Se}=EG(r,o),ne=g(()=>r.virtualScroller&&!r.grid),Z=g(()=>r.gridColumns||"var(--va-data-table-grid-tbody-columns)"),Ve=(Pe,qe)=>qe.displayFormatFn?qe.displayFormatFn(Pe.value):Pe.value;return(Pe,qe)=>(A(),te(m(rf),ee({class:"va-data-table"},re.value,{ref_key:"scrollContainer",ref:$e,style:`--va-css-variables-selected-color: ${String(m(k).selectedColor)};--va-css-variables-hover-color: ${String(m(k).hoverColor)};--va-css-variables-table-height: ${String(m(k).tableHeight)};--va-css-variables-thead-bg: ${String(m(k).theadBg)};--va-css-variables-tfoot-bg: ${String(m(k).tfootBg)};--va-grid-columns-count: ${String(Z.value)}`}),{content:J(({uniqueKey:bt,renderBuffer:B,currentListOffset:R,listStyleComputed:Q,containerStyleComputed:K})=>[he(m(Tx),{"aria-live":"polite",style:se(K),loading:t.loading,color:t.loadingColor},{default:J(()=>[m(ce)?(A(),I("div",{key:0,ref_key:"topTrigger",ref:ye,class:"va-data-table__scroll-trigger"},null,512)):z("",!0),q("table",ee({class:"va-data-table__table",style:Q},P.value),["colgroup"in Pe.$slots?(A(),I("colgroup",XG,[D(Pe.$slots,"colgroup",de(we(m(i))))])):z("",!0),q("thead",{class:Ae(["va-data-table__table-thead",{"va-data-table__table-thead--sticky":Pe.$props.stickyHeader}]),style:se({top:ne.value&&Pe.$props.stickyHeader?`-${R}px`:void 0})},[D(Pe.$slots,"headerPrepend"),D(Pe.$slots,"header",{},()=>[t.hideDefaultHeader?z("",!0):(A(),te(m(cp),ee({key:0},ke.value,{onToggleBulkSelection:m(y),onToggleSorting:m(c)}),vn({_:2},[Ge(Pe.$slots,(U,Y)=>({name:Y,fn:J(oe=>[D(Pe.$slots,Y,de(we(oe)))])}))]),1040,["onToggleBulkSelection","onToggleSorting"]))]),D(Pe.$slots,"headerAppend")],6),q("tbody",JG,[D(Pe.$slots,"bodyPrepend"),he(HP,{name:ne.value?"":m(F),css:!Pe.$props.virtualScroller,appear:!Pe.$props.virtualScroller},{default:J(()=>[L.value?(A(),I("tr",QG,[q("td",{class:"va-data-table__table-td no-data",colspan:"99999",innerHTML:t.noDataHtml},null,8,ZG)])):H.value?(A(),I("tr",e9,[q("td",{class:"va-data-table__table-td no-data",colspan:"99999",innerHTML:t.noDataFilteredHtml},null,8,t9)])):z("",!0),(A(!0),I(_e,null,Ge(B,(U,Y)=>(A(),I(_e,{key:`table-row_${bt(U,Y)}`},[q("tr",ee({class:["va-data-table__table-tr",[{selected:m(b)(U),"va-data-table__table-tr--expanded":U.isExpandableRowVisible}]]},m(_)(U),{onClick:oe=>E("row:click",oe,U),onDblclick:oe=>E("row:dblclick",oe,U),onContextmenu:oe=>E("row:contextmenu",oe,U)}),[Pe.selectable&&!Pe.$props.grid?(A(),I("td",{class:"va-data-table__table-td va-data-table__table-cell-select",key:`selectable_${bt(U,Y)}`,onSelectstart:qe[0]||(qe[0]=be(()=>{},["prevent"]))},[he(m(nu),{class:"va-data-table__table-cell-checkbox","model-value":m(b)(U),color:Pe.selectedColor,"aria-label":m(n)(Pe.$props.ariaSelectRowLabel,{index:U.initialIndex}),onClick:[be(oe=>m(v)(U),["shift","exact","stop"]),be(oe=>m(p)(U),["ctrl","exact","stop"]),be(oe=>m(p)(U),["exact","stop"])]},null,8,["model-value","color","aria-label","onClick"])],32)):z("",!0),(A(!0),I(_e,null,Ge(U.cells,(oe,ae)=>(A(),I("td",ee({key:`table-cell_${oe.column.name+oe.rowIndex}`,class:["va-data-table__table-td",m(C)(oe.column.tdClass)],style:[oe.column.width?{minWidth:oe.column.width,maxWidth:oe.column.width}:{},m($)(oe),m(T)(oe.column.tdStyle)]},m(M)(oe,U)),[`cell(${oe.column.name})`in Pe.$slots?D(Pe.$slots,`cell(${oe.column.name})`,de(ee({key:0},{...oe,row:U,isExpanded:U.isExpandableRowVisible}))):D(Pe.$slots,"cell",de(ee({key:1},{cell:oe,row:U})),()=>[Pe.$props.grid?(A(),I("span",r9,Be(m(i)[ae].label),1)):z("",!0),Ue(" "+Be(Ve(oe,m(i)[ae])),1)])],16))),128))],16,n9),U.isExpandableRowVisible?(A(),I("td",{class:"va-data-table__table-expanded-content",colspan:"99999",key:bt(U,Y)},[D(Pe.$slots,"expandableRow",de(we(U)))])):z("",!0)],64))),128))]),_:2},1032,["name","css","appear"]),D(Pe.$slots,"bodyAppend")],512),["footer","footerPrepend","footerAppend"].some(U=>Pe.$slots[U])||t.footerClone&&!Pe.$props.grid?(A(),I("tfoot",{key:1,class:Ae(["va-data-table__table-tfoot",{"va-data-table__table-tfoot--sticky":Pe.$props.stickyFooter}]),style:se({bottom:ne.value&&Pe.$props.stickyFooter?`${R}px`:void 0})},[D(Pe.$slots,"footerPrepend"),D(Pe.$slots,"footer",{},()=>[t.hideDefaultHeader?z("",!0):(A(),te(m(cp),ee({key:0},ke.value,{"is-footer":"",onToggleBulkSelection:m(y),onToggleSorting:m(c)}),vn({_:2},[Ge(Pe.$slots,(U,Y)=>({name:Y,fn:J(oe=>[D(Pe.$slots,Y,de(we(oe)))])}))]),1040,["onToggleBulkSelection","onToggleSorting"]))]),D(Pe.$slots,"footerAppend")],6)):z("",!0)],16),m(Se)?(A(),I("div",{key:1,ref_key:"bottomTrigger",ref:j,class:"va-data-table__scroll-trigger"},null,512)):z("",!0)]),_:2},1032,["style","loading","color"])]),_:3},16,["style"]))}}),i9=me(o9),qb=t=>t===null?!1:typeof t=="object"&&("start"in t||"end"in t),s9=(t,e)=>{const n=W(t.value),r=g({get:()=>n.value,set:i=>{if(e.value&&(t.value=i),!i){t.value=i;return}qb(i)?i.end!==null&&(t.value=i):t.value=i,n.value=i}});return fe(t,i=>{n.value=i}),{valueComputed:r,reset:()=>{n.value&&qb(n.value)&&(n.value=t.value)}}},Yb=t=>new Date(Date.parse(t)),Xb=t=>sa(t)&&!isNaN(t.getTime()),l9=t=>{const e=s=>{const l=s.split(t.delimiter);return l.length<2?!1:l.every(a=>{const u=(t.parseDate||Yb)(a);return Xb(u)})},n=s=>s.includes(t.rangeDelimiter),r=W(!0),o=s=>{const l=s.split("."),a=(l==null?void 0:l.length)===3?l.reverse().join("-"):s,u=(t.parseDate||Yb)(a);return r.value=Xb(u),u};return{parseDateInputValue:s=>{if(r.value=!0,t.parse)return t.parse(s,r);if(e(s))return s.split(t.delimiter).map(o);if(n(s)){const[l,a]=s.split(t.rangeDelimiter).map(o);return{start:l,end:a}}return o(s)},isValid:r}},a9=t=>{const e=Date.parse(t);return!isNaN(e)&&!t.includes(" ")},u9=t=>t.endsWith("GMT"),c9=t=>{const e=new Date(t);return!isNaN(e.getTime())},d9=(t,e)=>u9(e)?t.toUTCString():a9(e)?t.toISOString():c9(e)?t.toString():null,qf=t=>t===null?!1:typeof t=="object"&&("start"in t||"end"in t),Yf=t=>t===null?!1:Array.isArray(t),Jb=t=>t===null?!1:typeof t=="string"||typeof t=="number"||t instanceof Date,f9=(t,e,n,r,o)=>{const i=(c,d)=>{if(o)return o(d);if(typeof c=="string"){const f=d9(d,c);return f||r(d)}return typeof c=="number"?d.getTime():d},s=c=>c instanceof Date?c:new Date(c),l=g(()=>t.value===null||t.value===void 0?null:typeof t.value=="string"?n(t.value):typeof t.value=="number"?new Date(t.value):t.value),a=g({get:()=>{if(l.value===null||l.value===void 0)return null;if(Yf(l.value))return l.value.map(s);if(qf(l.value)){const{start:c,end:d}=l.value;return{start:c?s(c):null,end:d?s(d):null}}return s(l.value)},set(c){var d,f;if(c==null){t.value=c;return}if(Yf(c)&&(Yf(t.value)||kr(t.value))){const h=t.value;t.value=c.map((p,v)=>i((h==null?void 0:h[v])||(h==null?void 0:h[0]),p));return}if(qf(c)&&(qf(t.value)||kr(t.value))){const{start:h,end:p}=c;t.value={start:h?i((d=t.value)==null?void 0:d.start,h):null,end:p?i((f=t.value)==null?void 0:f.start,p):null};return}if(Jb(c)&&(Jb(t.value)||kr(t.value))){t.value=i(t.value,c);return}throw console.log({inputDate:c,modelValue:t.value}),new Error("Input date is not the same as date from props")}});return{text:g({get:()=>a.value===null||a.value===void 0?"":r(a.value),set:c=>{t.value=n(c)}}),normalized:a}},h9=(t,e)=>(t==null?void 0:t.toDateString())===(e==null?void 0:e.toDateString()),_x=(t,e)=>(t==null?void 0:t.getFullYear())===(e==null?void 0:e.getFullYear()),p9=(t,e)=>_x(t,e)&&(t==null?void 0:t.getMonth())===(e==null?void 0:e.getMonth()),m9=t=>{const e=new Date;return e.setFullYear(t),e},Xs=t=>t===null?!1:typeof t=="object"&&("start"in t||"end"in t),of=t=>sa(t),sf=t=>Array.isArray(t),Ox=0,Px=11,g9=t=>t.month===Px?{...t,year:t.year+1,month:Ox}:{...t,month:t.month+1},v9=t=>t.month===Ox?{...t,year:t.year-1,month:Px}:{...t,month:t.month-1},y9=t=>sa(t)?t:sa(t==null?void 0:t.start)?t.start:Array.isArray(t)&&sa(t[0])?t[0]:new Date,Bx=(t,e,n)=>{const r=y9(t.modelValue),o={type:"day",year:r.getFullYear(),month:r.getMonth(),...n},i=W(o),s=g({get(){return{...i.value,...t.view}},set(u){i.value=u,e("update:view",u)}});return{syncView:s,next:()=>{s.value.type==="day"?s.value=g9(s.value):s.value.type==="month"&&(s.value={...s.value,year:s.value.year+1})},prev:()=>{s.value.type==="day"?s.value=v9(s.value):s.value.type==="month"&&(s.value={...s.value,year:s.value.year-1})}}},b9=["onKeypress"],yg=ie({name:"VaDatePickerCell",__name:"VaDatePickerCell",props:{otherMonth:{type:Boolean,default:!1},today:{type:Boolean,default:!1},inRange:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},weekend:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},highlightWeekend:{type:Boolean,default:!1},highlightToday:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:"primary"}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=()=>{n.disabled||r("click")},{getColor:i}=He(),s=g(()=>i(n.color)),{textColorComputed:l}=qt(s);return(a,u)=>t.hidden?(A(),I("div",{key:0,class:"va-date-picker-cell va-date-picker-cell_clear",style:se(`--va-bg: ${String(s.value)};--va-text-color-computed: ${String(m(l))}`)},null,4)):(A(),I("div",{key:1,class:Ae(["va-date-picker-cell",{"va-date-picker-cell_other-month":t.otherMonth,"va-date-picker-cell_today":t.highlightToday&&t.today,"va-date-picker-cell_in-range":t.inRange,"va-date-picker-cell_disabled":t.disabled,"va-date-picker-cell_highlighted-weekend":t.highlightWeekend&&t.weekend,"va-date-picker-cell_selected":t.selected,"va-date-picker-cell_focused":t.focused,"va-date-picker-cell_readonly":t.readonly}]),onClick:o,onKeypress:Ce(be(o,["prevent","stop"]),["space","enter"]),style:se(`--va-bg: ${String(s.value)};--va-text-color-computed: ${String(m(l))}`)},[D(a.$slots,"default")],46,b9))}});function Qb(t){return t===void 0}const bg=({rowSize:t,start:e,end:n,onSelected:r,onFocusIndex:o})=>{const i=W(-1);let s=!1;return{focusedCellIndex:i,containerAttributes:{onFocus:()=>{if(s)return;s=!1;const f=o===void 0?m(e)||0:m(o);i.value=f},onKeydown:f=>{if(["ArrowRight","ArrowLeft","ArrowDown","ArrowUp","Enter","Space"].includes(f.key)&&(f.preventDefault(),f.stopPropagation()),f.key==="Enter"||f.key==="Space"){if(r===void 0)return;r(i.value);return}f.key==="ArrowRight"&&(i.value+=1),f.key==="ArrowLeft"&&(i.value-=1),f.key==="ArrowDown"&&(i.value+=t),f.key==="ArrowUp"&&(i.value-=t),!Qb(e)&&i.valuem(n)-1&&(i.value=m(n)-1)},onBlur:()=>{s=!1,i.value=-1},onMousedown:()=>{s=!0},tabindex:0}}},S9=(t,e)=>{if(e==="single")return t;if(e==="range")return{start:t,end:null};if(e==="multiple")return[t];if(e==="auto")return t;throw new Error("Unknown mode")},hc=(t,e)=>{throw Error(`Incorrect modelValue for mode ${e}. Got ${JSON.stringify(t)}`)},C9=t=>of(t)?"single":Xs(t)?"range":sf(t)?"multiple":hc(t,"auto"),Zb=t=>t.start&&t.end&&t.start>t.end?{start:t.end,end:t.start}:t,w9=(t,e,n)=>({updateModelValue:o=>{if(!t.modelValue){e("update:modelValue",S9(o,t.mode));return}const i=t.mode==="auto"?C9(t.modelValue):t.mode;if(i==="single"){if(!of(t.modelValue))return hc(t.modelValue,i);e("update:modelValue",o)}else if(i==="range"){if(!Xs(t.modelValue))return hc(t.modelValue,i);if(t.modelValue.end&&n(t.modelValue.end,o))return e("update:modelValue",{start:t.modelValue.start,end:null});if(t.modelValue.start&&n(t.modelValue.start,o))return e("update:modelValue",{start:null,end:t.modelValue.end});if(t.modelValue.end===null)return e("update:modelValue",Zb({start:t.modelValue.start,end:o}));if(t.modelValue.start===null)return e("update:modelValue",Zb({end:t.modelValue.end,start:o}));e("update:modelValue",{start:o,end:null})}else if(i==="multiple"){if(!sf(t.modelValue))return hc(t.modelValue,i);!!t.modelValue.find(l=>n(l,o))?e("update:modelValue",t.modelValue.filter(l=>!n(l,o))):e("update:modelValue",[...t.modelValue,o].sort((l,a)=>l.getTime()-a.getTime()))}}}),k9=t=>({month:p9,day:h9,year:_x})[t],Sg=(t,e,n,r)=>{const o=k9(t),i=n.allowedDays||n.allowedMonths||n.allowedYears,s=p=>i===void 0?!1:!i(p),l=W(-1),a=g(()=>e.value[l.value]),{updateModelValue:u}=w9(n,r,o),c=p=>{n.readonly||s(p)||(u(p),r(`click:${t}`,p))},d=p=>o(new Date,p),f=p=>n.modelValue?of(n.modelValue)?o(n.modelValue,p):sf(n.modelValue)?!!n.modelValue.find(v=>o(v,p)):Xs(n.modelValue)?o(n.modelValue.start,p)||o(n.modelValue.end,p):!1:!1,h=p=>{if(!n.modelValue||!Xs(n.modelValue))return!1;if(n.modelValue.start&&n.modelValue.end)return n.modelValue.startp;const v=n.modelValue.start||n.modelValue.end;return v&&a.value?v=p:a.value<=p:!1};return fe(a,p=>{r(`hover:${t}`,p)}),{hoveredIndex:l,hoveredValue:a,onClick:c,isToday:d,isSelected:f,isInRange:h}},Xf=(t,e)=>new Date(t,e+1,0).getDate(),x9=(t,e)=>new Date(t,e,1).getDay(),Jf=t=>Array.from(Array(t).keys()).map(e=>e+1),$9=(t,e)=>{const r=c=>{var d;return!e||!((d=e.firstWeekday)!=null&&d.value)?c:e.firstWeekday.value.toLowerCase()==="monday"?c===0?6:c-1:c},o=g(()=>r(x9(t.value.year,t.value.month))),i=()=>{if(o.value===0)return[];const c=Xf(t.value.year,t.value.month-1);return Jf(c).slice(-o.value).map(f=>new Date(t.value.year,t.value.month-1,f))},s=()=>Jf(Xf(t.value.year,t.value.month)).map(d=>new Date(t.value.year,t.value.month,d)),l=g(()=>[...i(),...s()]),a=g(()=>l.value.length);return{calendarDates:g(()=>{const c=l.value,d=7*6-c.length,f=Xf(t.value.year,t.value.month+1),h=Jf(f);return[...c,...h.slice(0,d).map(p=>new Date(t.value.year,t.value.month+1,p))]}),currentMonthStartIndex:o,currentMonthEndIndex:a}},A9=["onMouseenter"],T9={class:"va-date-picker-cell__day"},Pu=ie({name:"VaDayPicker",__name:"VaDayPicker",props:{monthNames:{type:Array,required:!0},weekdayNames:{type:Array,required:!0},firstWeekday:{type:String,default:"Sunday"},hideWeekDays:{type:Boolean,default:!1},view:{type:Object,default:()=>({type:"day"})},modelValue:{type:[Date,Array,Object]},mode:{type:String,default:"auto"},showOtherMonths:{type:Boolean,default:!1},allowedDays:{type:Function},weekends:{type:Function},highlightWeekend:{type:Boolean,default:!1},highlightToday:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:"primary"}},emits:["update:modelValue","hover:day","click:day"],setup(t,{emit:e}){const n=t,r=e,{firstWeekday:o,weekdayNames:i,view:s}=Or(n),{calendarDates:l,currentMonthStartIndex:a,currentMonthEndIndex:u}=$9(s,{firstWeekday:o}),c=g(()=>o.value.toLowerCase()==="sunday"?i.value:[...i.value.slice(1),i.value[0]]),{hoveredIndex:d,onClick:f,isToday:h,isSelected:p,isInRange:v}=Sg("day",l,n,r),y=g(()=>n.showOtherMonths?0:a.value),b=g(()=>n.showOtherMonths?l.value.length:u.value),{focusedCellIndex:S,containerAttributes:w}=bg({rowSize:7,start:y,end:b,onSelected:C=>f(l.value[C])});fe(S,C=>{d.value=C}),fe(d,C=>{S.value=C});const x=C=>n.view.month!==C.getMonth(),k=C=>n.allowedDays===void 0?!1:!n.allowedDays(C),$=C=>n.weekends===void 0?C.getDay()===6||C.getDay()===0:n.weekends(C);return(C,T)=>(A(),I("div",ee({class:"va-day-picker"},m(w)),[t.hideWeekDays?z("",!0):(A(!0),I(_e,{key:0},Ge(c.value,_=>(A(),I("div",{key:_,class:"va-day-picker__weekday"},[D(C.$slots,"weekday",{},()=>[Ue(Be(_),1)])]))),128)),(A(!0),I(_e,null,Ge(m(l),(_,M)=>(A(),I("div",{class:"va-day-picker__calendar__day-wrapper",key:M,onMouseenter:F=>d.value=M,onMouseleave:T[0]||(T[0]=F=>d.value=-1)},[he(yg,{hidden:x(_)&&!t.showOtherMonths,today:m(h)(_),selected:m(p)(_),"in-range":m(v)(_),"other-month":x(_),weekend:$(_),disabled:k(_),focused:m(d)===M,"highlight-today":t.highlightToday,"highlight-weekend":t.highlightWeekend,readonly:C.$props.readonly,color:t.color,onClick:F=>{m(f)(_),S.value=M}},{default:J(()=>[q("span",T9,[D(C.$slots,"day",de(we({date:_})),()=>[Ue(Be(_.getDate()),1)])])]),_:2},1032,["hidden","today","selected","in-range","other-month","weekend","disabled","focused","highlight-today","highlight-weekend","readonly","color","onClick"])],40,A9))),128))],16))}}),_9={key:0,class:"va-date-picker-header va-date-picker__header"},O9={class:"va-date-picker__header__text"},P9={class:"va-date-picker__header__month"},Bu=ie({name:"VaDatePickerHeader",__name:"VaDatePickerHeader",props:{monthNames:{type:Array,required:!0},view:{type:Object},color:{type:String},disabled:{type:Boolean,default:!1},ariaNextPeriodLabel:{type:String,default:"$t:nextPeriod"},ariaPreviousPeriodLabel:{type:String,default:"$t:previousPeriod"},ariaSwitchViewLabel:{type:String,default:"$t:switchView"}},emits:["update:view"],setup(t,{emit:e}){const n=t,r=e,{syncView:o,prev:i,next:s}=Bx(n,r),l=()=>{o.value.type==="day"?o.value={...o.value,type:"month"}:o.value.type==="month"&&(o.value={...o.value,type:"year"})},a=d=>{o.value=d},u=Ek(Vk(ng())),{tp:c}=yt();return(d,f)=>m(o).type!=="year"?(A(),I("div",_9,[D(d.$slots,"buttonPrev",de(we({onClick:m(i)})),()=>[he(m(et),{"va-child":"prevButton",disabled:d.$props.disabled,icon:"va-arrow-left",preset:"plain",size:"small",color:t.color,textColor:m(u),"aria-label":m(c)(d.$props.ariaPreviousPeriodLabel),round:"",onClick:m(i)},null,8,["disabled","color","textColor","aria-label","onClick"])]),q("div",O9,[D(d.$slots,"header",de(we({year:m(o).year,month:m(o).month,monthNames:t.monthNames,view:m(o),changeView:a,switchView:l})),()=>[he(m(et),{"va-child":"middleButton",disabled:d.$props.disabled,preset:"plain",size:"small",color:t.color,textColor:m(u),"aria-label":m(c)(d.$props.ariaSwitchViewLabel),onClick:l},{default:J(()=>[D(d.$slots,"year",de(we({year:m(o).year})),()=>[Ue(Be(m(o).year),1)]),m(o).type==="day"?D(d.$slots,"month",de(ee({key:0},{month:m(o).month})),()=>[q("span",P9,Be(t.monthNames[m(o).month]),1)]):z("",!0)]),_:3},8,["disabled","color","textColor","aria-label"])])]),D(d.$slots,"buttonNext",de(we({onClick:m(s)})),()=>[he(m(et),{"va-child":"nextButton",disabled:d.$props.disabled,icon:"va-arrow-right",preset:"plain",size:"small",color:t.color,textColor:m(u),"aria-label":m(c)(d.$props.ariaNextPeriodLabel),onClick:m(s),round:""},null,8,["disabled","color","textColor","aria-label","onClick"])])])):z("",!0)}}),B9=["onMouseenter"],Mu=ie({name:"VaMonthPicker",__name:"VaMonthPicker",props:{modelValue:{type:[Date,Array,Object]},monthNames:{type:Array,required:!0},view:{type:Object,default:()=>({type:"month"})},allowedMonths:{type:Function,default:void 0},highlightToday:{type:Boolean,default:!0},mode:{type:String,default:"auto"},readonly:{type:Boolean,default:!1},color:{type:String,default:"primary"}},emits:["update:modelValue","hover:month","click:month"],setup(t,{emit:e}){const n=t,r=e,{view:o}=Or(n),i=g(()=>Array.from(Array(12).keys()).map(p=>new Date(o.value.year,p))),{hoveredIndex:s,onClick:l,isToday:a,isSelected:u,isInRange:c}=Sg("month",i,n,r),d=p=>n.allowedMonths===void 0?!1:!n.allowedMonths(p),{focusedCellIndex:f,containerAttributes:h}=bg({rowSize:3,start:0,end:i.value.length,onSelected:p=>l(i.value[p])});return fe(f,p=>{s.value=p}),fe(s,p=>{f.value=p}),(p,v)=>(A(),I("div",ee({class:"va-month-picker"},m(h)),[(A(!0),I(_e,null,Ge(i.value,(y,b)=>(A(),I("div",{key:b,class:"va-month-picker__month-wrapper",onMouseenter:S=>s.value=b,onMouseleave:v[0]||(v[0]=S=>s.value=-1)},[he(yg,{"in-range":!!m(c)(y),selected:!!m(u)(y),disabled:!!d(y),today:!!m(a)(y),focused:m(s)===b,"highlight-today":t.highlightToday,readonly:p.$props.readonly,color:t.color,onClick:S=>{m(l)(y),f.value=b}},{default:J(()=>[D(p.$slots,"month",de(we({monthIndex:b,month:t.monthNames[b]})),()=>[Ue(Be(t.monthNames[b]),1)])]),_:2},1032,["in-range","selected","disabled","today","focused","highlight-today","readonly","color","onClick"])],40,B9))),128))],16))}}),Iu=ie({name:"VaYearPicker",__name:"VaYearPicker",props:{modelValue:{type:[Date,Array,Object]},allowedYears:{type:Function,default:void 0},highlightToday:{type:Boolean,default:!0},startYear:{type:[Number,String],default:1970},mode:{type:String,default:"auto"},view:{type:Object,default:()=>({type:"year"})},endYear:{type:[Number,String],default:()=>new Date().getFullYear()+50},readonly:{type:Boolean,default:!1},color:{type:String,default:"primary"}},emits:["update:modelValue","hover:year","click:year"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),{view:i}=Or(n),s=(x,k)=>{const $=k-x+1;return Array.from(Array($).keys()).map(C=>m9(x+C))},l=Ye("startYear"),a=Ye("endYear"),u=g(()=>s(l.value,a.value)),c=x=>{if(!o.value)return;const k=o.value.scrollHeight,$=o.value.offsetHeight,C=k/u.value.length*x,T=k/u.value.length,_=C-o.value.scrollTop;_<0?o.value.scrollTo({top:C}):_>$&&o.value.scrollTo({top:C-$+T})},d=x=>{if(!o.value)return;const k=o.value.scrollHeight,$=o.value.offsetHeight,C=k/u.value.length*x;o.value.scrollTo({top:C-$/2})};dt(()=>{const x=u.value.findIndex(k=>k.getFullYear()===i.value.year);d(x)});const{hoveredIndex:f,onClick:h,isToday:p,isSelected:v,isInRange:y}=Sg("year",u,n,r),b=x=>n.allowedYears===void 0?!1:!n.allowedYears(x),{focusedCellIndex:S,containerAttributes:w}=bg({rowSize:1,start:0,end:u.value.length,onFocusIndex:g(()=>u.value.findIndex(x=>x.getFullYear()===i.value.year)),onSelected:x=>h(u.value[x])});return fe(S,x=>x!==-1&&c(x)),fe(S,x=>{f.value=x}),fe(f,x=>{S.value=x}),(x,k)=>(A(),I("div",ee({ref_key:"rootNode",ref:o,class:"va-year-picker"},m(w),{onKeydown:k[1]||(k[1]=Ce(be(()=>{},["prevent"]),["space"]))}),[(A(!0),I(_e,null,Ge(u.value,($,C)=>(A(),te(yg,{key:$.toString(),"in-range":m(y)($),selected:m(v)($),disabled:b($),today:m(p)($),focused:m(S)===C,"highlight-today":t.highlightToday,readonly:x.$props.readonly,color:t.color,onClick:T=>{m(h)($),S.value=C},onMouseenter:T=>f.value=C,onMouseleave:k[0]||(k[0]=T=>f.value=-1)},{default:J(()=>[Ue(Be($.getFullYear()),1)]),_:2},1032,["in-range","selected","disabled","today","focused","highlight-today","readonly","color","onClick","onMouseenter"]))),128))],16))}}),M9={class:"va-date-picker__picker-wrapper"},I9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],D9=["SU","MO","TU","WE","TH","FR","SA"],qc=ie({name:"VaDatePicker",__name:"VaDatePicker",props:{...jw({prevButton:et,nextButton:et,middleButton:et}),...Kt,...Me,...nt(Bu),...nt(Pu),...nt(Mu),...nt(Iu),modelValue:{type:[Date,Array,Object]},monthNames:{type:Array,default:I9},weekdayNames:{type:Array,default:D9},view:{type:Object},type:{type:String,default:"day"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:String,default:void 0},weekendsColor:{type:String,default:void 0}},emits:[...un,...Li(Bu),...Li(Iu),...Li(Pu),...Li(Mu)],setup(t,{expose:e,emit:n}){const r=t;Ww(r);const o=n,i=W(),{valueComputed:s}=xt(r,o),{syncView:l}=Bx(r,o,{type:r.type}),a=g(()=>({"va-date-picker_without-week-days":r.hideWeekDays,"va-date-picker_disabled":r.disabled})),u=$=>{r.readonly||r.type==="day"&&(s.value=$)},c=$=>{o("click:month",$);const C=$.getFullYear(),T=$.getMonth();r.type!=="month"&&(l.value={type:"day",year:C,month:T})},d=$=>{r.type==="month"&&(s.value=$)},f=$=>{o("click:year",$);const C=$.getFullYear();r.type!=="year"&&(l.value={type:"month",year:C,month:l.value.month})},h=$=>{r.type==="year"&&(s.value=$)},{colorsToCSSVariable:p}=He(),v=g(()=>({...p({color:r.color,"weekends-color":r.weekendsColor},"va-date-picker")})),y=()=>{var $;return($=i.value)==null?void 0:$.$el.focus()};fe(l,($,C)=>{$.type!==C.type&&Ot(y)});const b=$=>r.readonly&&r.type===$,S=gt(nt(Pu)),w=gt(nt(Bu)),x=gt(nt(Mu)),k=gt(nt(Iu));return e({focus:y,focusCurrentPicker:y}),($,C)=>(A(),I("div",{class:Ae(["va-date-picker",a.value]),style:se(v.value)},[he(Bu,ee(m(w),{view:m(l),"onUpdate:view":C[0]||(C[0]=T=>Tt(l)?l.value=T:null)}),vn({_:2},[Ge($.$slots,(T,_)=>({name:_,fn:J(M=>[D($.$slots,_,de(we(M)))])}))]),1040,["view"]),q("div",M9,[m(l).type==="day"?(A(),te(Pu,ee({key:0,ref_key:"currentPicker",ref:i},m(S),{"model-value":m(s),view:m(l),readonly:$.$props.disabled||b("day"),"onUpdate:modelValue":u,"onHover:day":C[1]||(C[1]=T=>$.$emit("hover:day",T)),"onClick:day":C[2]||(C[2]=T=>$.$emit("click:day",T))}),vn({_:2},[Ge($.$slots,(T,_)=>({name:_,fn:J(M=>[D($.$slots,_,de(we(M)))])}))]),1040,["model-value","view","readonly"])):z("",!0),m(l).type==="month"?(A(),te(Mu,ee({key:1,ref_key:"currentPicker",ref:i},m(x),{view:m(l),"model-value":m(s),readonly:$.$props.disabled||b("month"),"onUpdate:modelValue":d,"onHover:month":C[3]||(C[3]=T=>$.$emit("hover:month",T)),"onClick:month":c}),vn({_:2},[Ge($.$slots,(T,_)=>({name:_,fn:J(M=>[D($.$slots,_,de(we(M)))])}))]),1040,["view","model-value","readonly"])):z("",!0),m(l).type==="year"?(A(),te(Iu,ee({key:2,ref_key:"currentPicker",ref:i},m(k),{view:m(l),"model-value":m(s),readonly:$.$props.disabled||b("year"),"onHover:year":C[4]||(C[4]=T=>$.$emit("hover:year",T)),"onUpdate:modelValue":h,"onClick:year":f}),vn({_:2},[Ge($.$slots,(T,_)=>({name:_,fn:J(M=>[D($.$slots,_,de(we(M)))])}))]),1040,["view","model-value","readonly"])):z("",!0)])],6))}}),Mx=nt(er,["innerAnchorSelector","stateful","keyboardNavigation","modelValue"]),Cr={...Mx,modelValue:{},closeOnChange:{type:Boolean,default:null},isOpen:{type:Boolean,default:void 0}},Cg=["update:isOpen"],wg=function(t,e,n={}){const[r]=qi("isOpen",t,e,!1),o=g(()=>t.closeOnChange!==null?t.closeOnChange:m(n.defaultCloseOnValueUpdate||!1));return fe(()=>t.modelValue,()=>{o.value&&(r.value=!1)}),{dropdownProps:gt(Mx),isOpenSync:r}},e0=nt(Wn,["focused","maxLength","counterValue"]),t0=nt(qc),E9=ie({name:"VaDateInput",inheritAttrs:!1,__name:"VaDateInput",props:{...Cr,...ru,...e0,...t0,...Co,...Me,clearValue:{type:Date,default:void 0},modelValue:{type:[Date,Array,Object,String,Number]},resetOnClose:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!1},offset:{...Cr.offset,default:()=>[2,0]},format:{type:Function},formatDate:{type:Function,default:t=>t.toLocaleDateString()},formatValue:{type:Function},parse:{type:Function},parseDate:{type:Function},delimiter:{type:String,default:", "},rangeDelimiter:{type:String,default:" ~ "},manualInput:{type:Boolean,default:!1},color:{type:String,default:"primary"},leftIcon:{type:Boolean,default:!1},icon:{type:String,default:"va-calendar"},ariaToggleDropdownLabel:{type:String,default:"$t:toggleDropdown"},ariaResetLabel:{type:String,default:"$t:resetDate"},ariaSelectedDateLabel:{type:String,default:"$t:selectedDate"}},emits:[...Xd,...Li(qc),...tf,...mi,...un,...Cg,"update:text"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),s=W(),{resetOnClose:l}=Or(r),{trapFocusIn:a,freeFocus:u}=Tk(),c=()=>{const pe=Rt(s.value);if(!pe){u();return}a(pe)};fe([s],()=>{c()});const{valueComputed:d}=xt(r,o),{isOpenSync:f,dropdownProps:h}=wg(r,o,{defaultCloseOnValueUpdate:g(()=>!(Array.isArray(v.value)||Xs(v.value)&&v.value.end===null))}),p=g(()=>!l.value),{valueComputed:v,reset:y}=s9(d,p);fe(f,pe=>{!pe&&!p.value&&y()});const{isFocused:b,focus:S,blur:w,onFocus:x,onBlur:k}=ko(i),$=mg(s),C=pe=>pe?r.formatDate(pe):"...",{parseDateInputValue:T,isValid:_}=l9(r);fe(v,()=>{_.value=!0});const M=pe=>{if(r.format)return r.format(v.value);if(sf(pe))return pe.map(ze=>r.formatDate(ze)).join(r.delimiter);if(of(pe))return r.formatDate(pe);if(Xs(pe))return C(pe.start)+r.rangeDelimiter+C(pe.end);if(pe==null)return"";throw new Error("VaDatePicker: Invalid model value. Value should be Date, Date[] or { start: Date, end: Date | null }, got "+typeof pe)},{text:F,normalized:L}=f9(v,$n(r,"mode"),T,M,r.formatValue),H=g(()=>_.value?v.value?F.value:r.clearValue?M(r.clearValue):"":""),E=({target:pe})=>{if(r.disabled)return;const ze=T(pe.value);_.value&&(v.value=ze)},P=()=>Ve(()=>{d.value=r.clearValue,o("clear"),Pe()}),V=()=>{f.value=!1,S()},O=()=>{Ot(()=>{var pe;return(pe=s.value)==null?void 0:pe.focusCurrentPicker()})},N=()=>{f.value?O():S()},re=pe=>f.value?!1:r.disabled||r.readonly?!0:pe===void 0?!1:r.manualInput&&(pe==null?void 0:pe.code)!=="Space",X=pe=>{re(pe instanceof KeyboardEvent?pe:void 0)||(f.value=!f.value,Ot(N))},ke=()=>{r.disabled||r.readonly||(f.value=!0,Ot(O))},{isDirty:$e,isTouched:ye,computedError:j,computedErrorMessages:ce,listeners:Se,validationAriaAttributes:ne,validate:Z,withoutValidation:Ve,resetValidation:Pe}=wo(r,o,{reset:P,focus:S,value:v});fe(f,pe=>{pe||(ye.value=!0)});const qe=g(()=>!_.value&&v.value!==r.clearValue||j.value),bt=Ln(),B=g(()=>{const pe=[r.leftIcon&&"prependInner",(!r.leftIcon||r.clearable)&&"icon"];return Object.keys(bt).filter(ze=>!pe.includes(ze))}),{canBeCleared:R,clearIconProps:Q,onFocus:K,onBlur:U}=nf(r,v),Y=g(()=>r.disabled?{}:r.manualInput?{cursor:"text"}:{cursor:"pointer"}),oe=g(()=>r.manualInput?r.disabled||r.readonly?-1:0:-1),ae=g(()=>({role:oe.value===0?"button":"none",ariaHidden:oe.value===-1,name:r.icon,color:"secondary",tabindex:oe.value})),ve=gt(e0),ue=g(()=>({...ve.value,focused:b.value||$.value,error:qe.value,errorMessages:ce.value,readonly:r.readonly||!r.manualInput})),Oe=g(()=>({focus:()=>{r.disabled||(x(),!r.readonly&&K())},blur:()=>{r.disabled||(k(),!r.readonly&&(U(),Se.onBlur()))}})),{tp:Re}=yt(),Le=os(),Ke=g(()=>({readonly:r.readonly||!r.manualInput,disabled:r.disabled,tabindex:r.disabled?-1:0,placeholder:r.placeholder,value:H.value,ariaLabel:r.label||Re(r.ariaSelectedDateLabel),ariaRequired:r.requiredMark,ariaDisabled:r.disabled,ariaReadOnly:r.readonly,...ne.value,...vo(Le,["class","style"])})),Qe=g(()=>({...h.value,stateful:!1,innerAnchorSelector:".va-input-wrapper__field",trigger:["click","right-click","enter","space"]})),ft=ue,G=Oe,Fe=gt(t0);return e({valueText:H,valueWithoutText:L,valueDate:L,focus:S,blur:w,reset:P,validate:Z,showDropdown:ke,hideAndFocus:V,toggleDropdown:X,focusDatePicker:O,isDirty:$e,isTouched:ye}),(pe,ze)=>(A(),te(m(er),ee({modelValue:m(f),"onUpdate:modelValue":ze[9]||(ze[9]=Xe=>Tt(f)?f.value=Xe:null),class:["va-date-input",pe.$attrs.class],style:pe.$attrs.style},Qe.value,{onOpen:O,role:"none"}),{anchor:J(()=>[D(pe.$slots,"input",de(we({valueText:H.value,inputAttributes:Ke.value,inputWrapperProps:m(ft),inputListeners:m(G)})),()=>[he(m(Wn),ee({class:"va-date-input__anchor",style:Y.value},m(ft),ur(m(G)),{"model-value":H.value,onChange:E}),vn({icon:J(()=>[m(R)?(A(),te(m(Ze),ee({key:0,"aria-label":m(Re)(pe.$props.ariaResetLabel)},{...ae.value,...m(Q)},{onClick:be(P,["stop"]),onKeydown:[Ce(be(P,["stop"]),["enter"]),Ce(be(P,["stop"]),["space"])]}),null,16,["aria-label","onKeydown"])):z("",!0),!pe.$props.leftIcon&&pe.$props.icon?(A(),te(m(Ze),ee({key:1,"aria-label":m(Re)(pe.$props.ariaToggleDropdownLabel)},ae.value),null,16,["aria-label"])):z("",!0)]),_:2},[Ge(B.value,Xe=>({name:Xe,fn:J(Yt=>[D(pe.$slots,Xe,de(we(Yt)))])})),pe.$slots.prependInner||pe.$props.leftIcon?{name:"prependInner",fn:J(Xe=>[D(pe.$slots,"prependInner",de(we(Xe))),pe.$props.leftIcon?(A(),te(m(Ze),ee({key:0,"aria-label":m(Re)(pe.$props.ariaToggleDropdownLabel)},ae.value),null,16,["aria-label"])):z("",!0)]),key:"0"}:void 0]),1040,["style","model-value"])])]),default:J(()=>[he(m(Xi),{class:"va-date-input__dropdown-content",onKeydown:ze[8]||(ze[8]=Ce(Xe=>m(S)(),["esc"])),role:"dialog"},{default:J(()=>[he(qc,ee({ref_key:"datePicker",ref:s},m(Fe),{modelValue:m(L),"onUpdate:modelValue":ze[0]||(ze[0]=Xe=>Tt(L)?L.value=Xe:null),"onClick:day":ze[1]||(ze[1]=Xe=>pe.$emit("click:day",Xe)),"onClick:month":ze[2]||(ze[2]=Xe=>pe.$emit("click:month",Xe)),"onClick:year":ze[3]||(ze[3]=Xe=>pe.$emit("click:year",Xe)),"onHover:day":ze[4]||(ze[4]=Xe=>pe.$emit("hover:day",Xe)),"onHover:month":ze[5]||(ze[5]=Xe=>pe.$emit("hover:month",Xe)),"onHover:year":ze[6]||(ze[6]=Xe=>pe.$emit("hover:year",Xe)),"onUpdate:view":ze[7]||(ze[7]=Xe=>{pe.$nextTick(()=>c()),pe.$emit("update:view",Xe)})}),vn({_:2},[Ge(pe.$slots,(Xe,Yt)=>({name:Yt,fn:J(rr=>[D(pe.$slots,Yt,de(we(rr)))])}))]),1040,["modelValue"])]),_:3})]),_:3},16,["modelValue","class","style"]))}}),L9=me(E9),V9=me(qc),R9=["aria-orientation"],F9={key:0,class:"va-divider__text"},Du="va-divider",N9=ie({name:"VaDivider",__name:"VaDivider",props:{...Me,vertical:{type:Boolean,default:!1},dashed:{type:Boolean,default:!1},inset:{type:Boolean,default:!1},orientation:{type:String,default:"center",validator:t=>["left","right","center"].includes(t)},color:{type:String,default:"backgroundBorder"}},setup(t){const e=t,{getColor:n}=He(),r=g(()=>n(e.color)),o=Ln(),i=g(()=>!!o.default),s=g(()=>({[`${Du}--vertical`]:e.vertical,[`${Du}--inset`]:e.inset,[`${Du}--${e.orientation}`]:e.orientation&&!e.vertical,[`${Du}--dashed`]:e.dashed}));return(l,a)=>(A(),I("div",{role:"separator",class:Ae(["va-divider",s.value]),"aria-orientation":t.vertical?"vertical":"horizontal","aria-hidden":!0,style:se(`--va-color-computed: ${String(r.value)}`)},[i.value&&!t.vertical?(A(),I("div",F9,[D(l.$slots,"default")])):z("",!0)],14,R9))}}),Ix=me(N9),ou=Symbol("VaFileUpload"),H9=ie({name:"VaList",__name:"VaList",props:{...Me,fit:{type:Boolean,default:!1}},setup(t){const e=t,n=g(()=>({"va-list--fit":e.fit}));return(r,o)=>(A(),I("div",{class:Ae(["va-list",n.value]),role:"list"},[D(r.$slots,"default")],2))}}),z9=ie({name:"VaListItem",__name:"VaListItem",props:{...cs,...Me,tag:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},emits:["focus","click"],setup(t,{emit:e}){const n=t,r=g(()=>n.disabled?-1:0),o=ct("va-list-item",()=>({...Bt(n,["disabled"])})),{tagComputed:i,hrefComputed:s}=gi(n);return(l,a)=>(A(),te(zn(m(i)),{class:Ae(["va-list-item",m(o)]),role:"listitem",href:m(s),target:l.target,to:l.to,replace:l.replace,exact:l.exact,"active-class":l.activeClass,"exact-active-class":l.exactActiveClass,tabindex:r.value},{default:J(()=>[q("div",{class:"va-list-item__inner",onClick:a[0]||(a[0]=u=>l.$emit("click")),onFocus:a[1]||(a[1]=u=>l.$emit("focus"))},[D(l.$slots,"default")],32)]),_:3},8,["href","target","to","replace","exact","active-class","exact-active-class","class","tabindex"]))}}),j9=ie({name:"VaListLabel",__name:"VaListLabel",props:{...Me,color:{type:String,default:"primary"}},setup(t){const e=t,{getColor:n}=He(),r=g(()=>({color:n(e.color)}));return(o,i)=>(A(),I("div",{class:"va-list-label",style:se(r.value)},[D(o.$slots,"default")],4))}}),W9=ie({name:"VaListItemLabel",__name:"VaListItemLabel",props:{...Me,caption:{type:Boolean,default:!1},lines:{type:[Number,String],default:1}},setup(t){const e=t,n=Ye("lines"),r=g(()=>({"va-list-item-label--caption":e.caption})),o=g(()=>({"-webkit-line-clamp":n.value}));return(i,s)=>(A(),I("div",{class:Ae(["va-list-item-label",r.value]),style:se(o.value)},[D(i.$slots,"default")],6))}}),U9=ie({name:"VaListItemSection",__name:"VaListItemSection",props:{...Me,icon:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1}},setup(t){const e=t,n=g(()=>({"va-list-item-section--main":!e.icon&&!e.avatar,"va-list-item-section--icon":e.icon,"va-list-item-section--avatar":e.avatar}));return(r,o)=>(A(),I("div",{class:Ae(["va-list-item-section",n.value])},[D(r.$slots,"default")],2))}}),K9=ie({name:"VaListSeparator",__name:"VaListSeparator",props:{...Me,fit:{type:Boolean,default:!1},spaced:{type:Boolean,default:!1}},setup(t){const e=t,n=g(()=>({"va-list-separator--offset":!e.fit,"va-list-separator--spaced":e.spaced}));return(r,o)=>(A(),I("div",{"aria-hidden":"true",class:Ae(["va-list-separator",n.value])},null,2))}}),lf=me(z9),G9=me(j9),q9=me(W9),Js=me(U9),Y9=me(K9),Dx=me(H9),X9={key:0,class:"va-progress-bar__info"},J9=ie({name:"VaProgressBar",__name:"VaProgressBar",props:{...Me,modelValue:{type:[Number,String],default:0},indeterminate:{type:Boolean,default:!1},color:{type:String,default:"primary"},size:{type:[Number,String],default:"medium"},buffer:{type:[Number,String],default:100},rounded:{type:Boolean,default:!0},reverse:{type:Boolean,default:!1},contentInside:{type:Boolean,default:!1},showPercent:{type:Boolean,default:!1},max:{type:[Number,String],default:100},ariaLabel:{type:String,default:"$t:progressState"}},setup(t){const e=t,{getColor:n,getHoverColor:r}=He(),o=g(()=>n(e.color)),{textColorComputed:i}=qt(o),s=g(()=>typeof e.size=="string"&&["small","medium","large"].includes(e.size)),l=()=>{if(typeof e.size=="number")return`${e.size}px`;if(!s.value)return e.size},{tp:a}=yt(),u=g(()=>100/Number(e.max)*Number(e.modelValue)),c=g(()=>({"va-progress-bar--square":!e.rounded,[`va-progress-bar--${e.size}`]:s.value})),d=g(()=>({"--va-progress-bar-color":o.value,"--va-progress-bar-background-color":r(o.value)})),f=g(()=>({height:l()})),h=g(()=>({width:`${e.indeterminate?100:Ki(Number(e.buffer),0,100)}%`,color:i.value,[e.reverse?"right":"left"]:0})),p=g(()=>({marginLeft:e.reverse?"auto":void 0,width:`${Ki(u.value,0,100)}%`})),v=g(()=>({animationDirection:e.reverse?"reverse":"normal"})),y=g(()=>({role:"progressbar","aria-label":a(e.ariaLabel),"aria-valuenow":e.indeterminate?void 0:e.modelValue}));return(b,S)=>(A(),I("div",ee({class:["va-progress-bar",c.value],style:d.value},y.value),[b.$props.contentInside?z("",!0):(A(),I("div",X9,[D(b.$slots,"default",de(we({value:b.$props.modelValue})),()=>[b.$props.showPercent?(A(),I(_e,{key:0},[Ue(Be(b.$props.modelValue)+"% ",1)],64)):z("",!0)])])),q("div",{class:"va-progress-bar__wrapper",style:se(f.value)},[q("div",{class:"va-progress-bar__buffer",style:se(h.value)},[b.$props.contentInside?D(b.$slots,"default",de(ee({key:0},{value:b.$props.modelValue})),()=>[b.$props.showPercent?(A(),I(_e,{key:0},[Ue(Be(b.$props.modelValue)+"% ",1)],64)):z("",!0)]):z("",!0)],4),t.indeterminate?(A(),I(_e,{key:0},[q("div",{class:"va-progress-bar__progress--indeterminate-start",style:se(v.value)},null,4),q("div",{class:"va-progress-bar__progress--indeterminate-end",style:se(v.value)},null,4)],64)):(A(),I("div",{key:1,class:"va-progress-bar__progress",style:se(p.value)},null,4))],4)],16))}}),Ex=me(J9),iu=(t,e)=>{const n=Mn(t);if(!n)throw new Error(e);return n},Q9={class:"va-file-upload-undo__text"},Z9="The VaFileUploadUndo component should be used in the context of VaFileUpload component",eq=ie({name:"VaFileUploadUndo",__name:"VaFileUploadUndo",props:{vertical:{type:Boolean,default:!1}},emits:["recover"],setup(t,{emit:e}){const n=t,r=W(100),{undoDuration:o,undoButtonText:i,deletedFileMessage:s}=iu(ou,Z9),l=ct("va-file-upload-undo",()=>({vertical:n.vertical})),a=g(()=>`${o.value??0}ms`);return dt(()=>{const u=setTimeout(()=>{r.value=0,clearTimeout(u)},0)}),(u,c)=>(A(),I(_e,null,[he(m(Ex),{"model-value":r.value,rounded:!1,class:"va-file-upload-undo-progress-bar",style:se(`--va-undo-duration-style: ${String(a.value)}`)},null,8,["model-value","style"]),q("div",{class:Ae(["va-file-upload-undo",m(l)]),style:se(`--va-undo-duration-style: ${String(a.value)}`)},[q("span",Q9,Be(m(s)),1),he(m(et),{class:"va-file-upload-undo__button","aria-label":m(i),size:"small",outline:"",onClick:c[0]||(c[0]=d=>u.$emit("recover"))},{default:J(()=>[Ue(Be(m(i)),1)]),_:1},8,["aria-label"])],6)],64))}}),Lx=me(eq),tq={class:"va-file-upload-list-item__content"},nq={key:0,class:"va-file-upload-list-item__name"},rq={class:"va-file-upload-list-item__size"},oq="The VaFileUploadListItem component should be used in the context of VaFileUpload component",iq=ie({name:"VaFileUploadListItem",__name:"VaFileUploadListItem",props:{file:{type:Object,default:null},color:{type:String,default:"success"},ariaRemoveFileLabel:{type:String,default:"$t:removeFile"}},emits:["remove"],setup(t,{emit:e}){const{tp:n}=yt(),r=e,{undo:o,disabled:i,undoDuration:s}=iu(ou,oq),{onFocus:l,onBlur:a}=ko(),u=W(!1),c=()=>{o.value?(u.value=!0,setTimeout(()=>{u.value&&(r("remove"),u.value=!1)},s.value??0)):(r("remove"),u.value=!1)},d=()=>{u.value=!1},f=ct("va-file-upload-list-item",()=>({undo:u.value}));return(h,p)=>(A(),te(m(lf),{class:Ae(["va-file-upload-list-item",m(f)]),tabindex:"-1",disabled:m(i),"aria-disabled":m(i)},{default:J(()=>[u.value&&m(o)?(A(),te(m(Js),{key:0},{default:J(()=>[he(m(Lx),{onRecover:d})]),_:1})):(A(),te(m(Js),{key:1},{default:J(()=>[q("div",tq,[t.file&&t.file.name?(A(),I("div",nq,Be(t.file&&t.file.name),1)):z("",!0),q("div",rq,Be(t.file&&t.file.size),1),m(i)?z("",!0):(A(),te(m(et),{key:1,flat:"",color:"danger",icon:"clear",class:"va-file-upload-list-item__delete","aria-label":m(n)(h.$props.ariaRemoveFileLabel),onClick:be(c,["stop"]),onKeydown:[Ce(be(c,["stop"]),["enter"]),Ce(be(c,["stop"]),["space"])],onFocus:m(l),onBlur:m(a)},null,8,["aria-label","onKeydown","onFocus","onBlur"]))])]),_:1}))]),_:1},8,["class","disabled","aria-disabled"]))}}),Vx=me(iq),sq=["src","alt"],lq={class:"va-file-upload-gallery-item__overlay"},aq=["title"],uq="The VaFileUploadGalleryItem component should be used in the context of VaFileUpload component",cq=ie({name:"VaFileUploadGalleryItem",__name:"VaFileUploadGalleryItem",props:{file:{type:Object,default:null},color:{type:String,default:"success"},ariaRemoveFileLabel:{type:String,default:"$t:removeFile"}},emits:["remove"],setup(t,{emit:e}){const n=t,r=e,{undo:o,disabled:i,undoDuration:s}=iu(ou,uq),{isFocused:l,onFocus:a,onBlur:u}=ko(),c=W(""),d=W(!1),f=g(()=>({backgroundColor:qm(n.color,.7)})),h=ct("va-file-upload-gallery-item",()=>({notImage:!c.value,focused:l.value,undo:d.value})),p=()=>{o.value?(d.value=!0,setTimeout(()=>{d.value&&(r("remove"),d.value=!1)},s.value??0)):(r("remove"),d.value=!1)},v=()=>{d.value=!1},y=()=>{if(!(!n.file.name||!n.file.image)){if(n.file.image.url)c.value=n.file.image.url;else if(n.file.image instanceof File){const x=new FileReader;x.readAsDataURL(n.file.image),x.onload=k=>{var $,C;(($=k.target)==null?void 0:$.result).includes("image")&&(c.value=(C=k.target)==null?void 0:C.result)}}}};dt(y),fe(()=>n.file,y);const{t:b,tp:S}=yt(),{textColorComputed:w}=qt($n(n,"color"));return(x,k)=>(A(),te(m(lf),{class:Ae(["va-file-upload-gallery-item",m(h)]),tabindex:"-1",disabled:m(i),"aria-disabled":m(i),onFocus:m(a),onBlur:m(u)},{default:J(()=>[d.value&&m(o)?(A(),te(m(Js),{key:0},{default:J(()=>[he(m(Lx),{vertical:"",onRecover:v})]),_:1})):(A(),te(m(Js),{key:1},{default:J(()=>[c.value?(A(),I("img",{key:0,src:c.value,alt:t.file.name||"",class:"va-file-upload-gallery-item__image"},null,8,sq)):z("",!0),q("div",lq,[q("div",{class:"va-file-upload-gallery-item__overlay-background",style:se(f.value)},null,4),t.file&&t.file.name?(A(),I("div",{key:0,class:"va-file-upload-gallery-item__name",title:t.file.name,style:se({color:m(w)})},Be(t.file.name),13,aq)):z("",!0),m(i)?z("",!0):(A(),te(m(et),{key:1,flat:"",color:"danger",icon:"va-delete",class:"va-file-upload-gallery-item__delete","aria-label":m(S)(x.$props.ariaRemoveFileLabel),onClick:p,onFocus:m(a),onBlur:m(u)},null,8,["aria-label","onFocus","onBlur"]))])]),_:1}))]),_:1},8,["class","disabled","aria-disabled","onFocus","onBlur"]))}}),Rx=me(cq),dq={class:"va-file-upload-single-item__name"},fq="The VaFileUploadSingleItem component should be used in the context of VaFileUpload component",hq=ie({name:"VaFileUploadSingleItem",__name:"VaFileUploadSingleItem",props:{file:{type:Object,default:null},ariaRemoveFileLabel:{type:String,default:"$t:removeFile"}},emits:["remove"],setup(t,{emit:e}){const{t:n,tp:r}=yt(),{disabled:o}=iu(ou,fq);return(i,s)=>(A(),te(m(lf),{disabled:m(o),"aria-disabled":m(o),class:"va-file-upload-single-item",tabindex:"-1"},{default:J(()=>[he(m(Js),{class:"va-file-upload-single-item__content"},{default:J(()=>[q("div",dq,Be(t.file&&t.file.name),1),m(o)?z("",!0):(A(),te(m(et),{key:0,class:"va-file-upload-single-item__button","aria-label":m(r)(i.$props.ariaRemoveFileLabel),size:"small",color:"danger",preset:"secondary",onClick:s[0]||(s[0]=l=>i.$emit("remove"))},{default:J(()=>[Ue(" Delete ")]),_:1},8,["aria-label"]))]),_:1})]),_:1},8,["disabled","aria-disabled"]))}}),Fx=me(hq),n0=nt(Rx),r0=nt(Vx),o0=nt(Fx),pq=ie({name:"VaFileUploadList",__name:"VaFileUploadList",props:{type:{type:String,default:""},files:{type:Array,default:null},...n0,...r0,...o0},emits:["remove","removeSingle"],setup(t,{emit:e}){const n=t,r=g(()=>n.files.map(o)),o=c=>({name:c.name||c.url||"",size:i(c.size),date:s(new Date),image:c}),i=c=>{if(c===0)return"0 Bytes";if(!c)return"";const d=1024,f=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],h=Math.floor(Math.log(c)/Math.log(d));return parseFloat((c/Math.pow(d,h)).toFixed(2))+" "+f[h]},s=(c=new Date)=>c.toLocaleDateString("en-US",{hour:"2-digit",minute:"2-digit",month:"short",day:"numeric",year:"numeric"}),l=gt(n0),a=gt(r0),u=gt(o0);return(c,d)=>(A(),te(m(Dx),{class:Ae(["va-file-upload-list",`va-file-upload-list--${t.type}`]),role:t.type!=="single"?"list":void 0},{default:J(()=>[t.type==="list"?(A(!0),I(_e,{key:0},Ge(r.value,(f,h)=>(A(),te(m(Vx),ee({key:f.name},m(a),{file:f,role:"listitem",onRemove:p=>c.$emit("remove",h)}),null,16,["file","onRemove"]))),128)):z("",!0),t.type==="gallery"?(A(!0),I(_e,{key:1},Ge(r.value,(f,h)=>(A(),te(m(Rx),ee(m(l),{key:f.name,file:f,role:"listitem",onRemove:p=>c.$emit("remove",h)}),null,16,["file","onRemove"]))),128)):z("",!0),t.type==="single"&&r.value.length?(A(),te(m(Fx),ee({key:2},m(u),{file:r.value[r.value.length-1],onRemove:d[0]||(d[0]=f=>c.$emit("removeSingle"))}),null,16,["file"])):z("",!0)]),_:1},8,["role","class"]))}}),Nx=me(pq),mq={class:"va-file-upload__field"},gq={key:0,class:"va-file-upload__field__text"},vq=["accept","multiple","disabled"],i0=nt(Nx),yq=ie({name:"VaFileUpload",__name:"VaFileUpload",props:{...Me,...i0,fileTypes:{type:String,default:""},dropzone:{type:Boolean,default:!1},hideFileList:{type:Boolean,default:!1},color:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},undo:{type:Boolean,default:!1},undoDuration:{type:[Number,String],default:3e3},undoButtonText:{type:String,default:"$t:undo"},dropZoneText:{type:String,default:"$t:dropzone"},uploadButtonText:{type:String,default:"$t:uploadFile"},deletedFileMessage:{type:String,default:"$t:fileDeleted"},modelValue:{type:[Object,Array],default:()=>[]},type:{type:String,default:"list",validator:t=>["list","gallery","single"].includes(t)}},emits:["update:modelValue","file-removed","file-added"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),i=W(!1),s=W(!1),{getColor:l,shiftHSLAColor:a}=He(),u=g(()=>l(n.color)),c=g(()=>({backgroundColor:n.dropzone?a(u.value,{a:s.value?-.82:-.92}):"transparent"})),d=ct("va-file-upload",()=>({dropzone:n.dropzone,disabled:n.disabled})),f=g({get(){return Array.isArray(n.modelValue)?n.modelValue:[n.modelValue]},set(k){n.type==="single"?r("update:modelValue",k[0]):r("update:modelValue",k)}}),h=k=>k.filter($=>{const C=$.name||$.url;if(!C)return!1;if($.url||["audio/*","video/*","image/*"].find(L=>n.fileTypes.includes(L)))return!0;const M=C.substring(C.lastIndexOf(".")+1).toLowerCase(),F=n.fileTypes.includes(M);return F||(i.value=!0),F}),p=k=>{var $,C;const T=(($=k.target)==null?void 0:$.files)||((C=k.dataTransfer)==null?void 0:C.files);if(!T)return;const _=n.fileTypes?h(Array.from(T)):T;f.value=n.type==="single"?_:[...f.value,..._],r("file-added",_)},v=k=>{p(k),o.value&&(o.value.value="")},y=k=>{if(k in f.value){const $=f.value[k];f.value=f.value.filter((C,T)=>T!==k),r("file-removed",$)}},b=()=>{if(f.value.length>0){const k=f.value[0];f.value=[],r("file-removed",k)}},S=()=>{o.value&&o.value.click()};dt(()=>{if(Array.isArray(f.value)){const k=h(f.value);k.length!==f.value.length&&(f.value=k)}});const{tp:w}=yt();Pr(ou,{undo:$n(n,"undo"),disabled:$n(n,"disabled"),undoDuration:Ye("undoDuration"),undoButtonText:g(()=>w(n.undoButtonText)),deletedFileMessage:g(()=>w(n.deletedFileMessage))});const x=gt(i0);return(k,$)=>(A(),I("div",{class:Ae(["va-file-upload",m(d)]),style:se(c.value)},[D(k.$slots,"default",{},()=>[q("div",mq,[t.dropzone?(A(),I("div",gq,Be(m(w)(t.dropZoneText)),1)):z("",!0),he(m(et),{class:"va-file-upload__field__button",disabled:t.disabled,"aria-disabled":t.disabled,color:u.value,style:se({"pointer-events":s.value?"none":void 0}),onChange:v,onClick:S},{default:J(()=>[Ue(Be(m(w)(t.uploadButtonText)),1)]),_:1},8,["disabled","aria-disabled","color","style"])])]),q("input",{ref_key:"fileInputRef",ref:o,type:"file",class:"va-file-upload__field__input",tabindex:-1,"aria-hidden":"true",accept:t.fileTypes,multiple:t.type!=="single",disabled:t.disabled,onChange:v,onDragenter:$[0]||($[0]=C=>s.value=!0),onDragleave:$[1]||($[1]=C=>s.value=!1)},null,40,vq),f.value.length&&!k.$props.hideFileList?(A(),te(m(Nx),ee({key:0},m(x),{type:t.type,files:f.value,color:u.value,onRemove:y,onRemoveSingle:b}),null,16,["type","files","color"])):z("",!0),he(m(tg),{modelValue:i.value,"onUpdate:modelValue":$[2]||($[2]=C=>i.value=C),"hide-default-actions":"",title:"File validation",message:"File type is incorrect!"},null,8,["modelValue"])],6))}}),bq=me(yq),Sq=t=>{const e=W(new Map);return{immediate:g(()=>t.immediate),fields:g(()=>[...e.value.values()]),forceHideErrors:g(()=>t.hideErrors),forceHideErrorMessages:g(()=>t.hideErrorMessages),forceHideLoading:g(()=>t.hideLoading),forceDirty:W(!1),registerField:(n,r)=>{e.value.set(n,r)},unregisterField:n=>{e.value.delete(n)}}},Cq=t=>{const e=Sq(t);Pr(hk,e);const{fields:n,forceDirty:r}=e,o=g(()=>n.value.map(w=>m(w.name)).filter(Boolean)),i=g(()=>n.value.reduce((w,x)=>(m(x.name)&&(w[m(x.name)]=x),w),{})),s=g(()=>n.value.reduce((w,x)=>(m(x.name)&&(w[m(x.name)]=x.value),w),{})),l=g(()=>n.value.every(w=>m(w.isValid))),a=g(()=>n.value.some(w=>m(w.isLoading))),u=g(()=>n.value.map(w=>m(w.errorMessages)).flat()),c=g(()=>n.value.reduce((w,x)=>(m(x.name)&&(w[m(x.name)]=m(x.errorMessages)),w),{})),d=g({get(){return n.value.some(w=>m(w.isDirty))||r.value},set(w){r.value=w,n.value.forEach(x=>{x.isDirty=w})}}),f=g({get(){return console.log(n.value),n.value.some(w=>w.isTouched)},set(w){n.value.forEach(x=>{x.isTouched=w})}}),h=()=>(d.value=!0,n.value.reduce((w,x)=>x.validate()&&w,!0)),p=()=>(d.value=!0,Promise.all(n.value.map(w=>w.validateAsync())).then(w=>w.every(Boolean))),v=()=>{d.value=!1,n.value.forEach(w=>w.reset())},y=()=>{d.value=!1,n.value.forEach(w=>w.resetValidation())},b=()=>{var w;(w=n.value[0])==null||w.focus()},S=()=>{const w=n.value.find(x=>!x.isValid);w==null||w.focus()};return pk({name:$n(t,"name"),isValid:l,isLoading:a,isDirty:d,isTouched:f,validate:h,validateAsync:p,reset:v,resetValidation:y,focus:b,errorMessages:u}),{immediate:g(()=>t.immediate),isDirty:d,isTouched:f,formData:s,fields:n,fieldsNamed:i,fieldNames:o,isValid:l,isLoading:a,errorMessages:u,errorMessagesNamed:c,validate:h,validateAsync:p,reset:v,resetValidation:y,focus:b,focusInvalidField:S}},Un={stateful:!0},wq={VaInput:Un,VaSelect:Un,VaCheckbox:Un,VaRadio:Un,VaDatePicker:Un,VaTimePicker:Un,VaColorPicker:Un,VaSlider:Un,VaSwitch:Un,VaFileUpload:Un,VaRating:Un,VaDateInput:Un,VaTimeInput:Un},kq=ie({name:"VaForm",__name:"VaForm",props:{...Me,autofocus:{type:Boolean,default:!1},immediate:{type:Boolean,default:!1},tag:{type:String,default:"form"},trigger:{type:String,default:"blur"},modelValue:{type:Boolean,default:!0},hideErrors:{type:Boolean,default:!1},hideErrorMessages:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},stateful:{type:Boolean,default:!1},name:{type:String,default:void 0}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Cq(r);fe(i.isValid,C=>{o("update:modelValue",C)}),fe(()=>r.autofocus,C=>{C&&i.focus()}),dt(()=>{r.autofocus&&i.focus()}),fe(i.fields,C=>{C.length&&r.immediate&&i.validate()},{immediate:!0}),P8(g(()=>r.stateful?wq:{}));const{immediate:s,isDirty:l,isTouched:a,formData:u,fields:c,fieldsNamed:d,fieldNames:f,isValid:h,isLoading:p,errorMessages:v,errorMessagesNamed:y,validate:b,validateAsync:S,reset:w,resetValidation:x,focus:k,focusInvalidField:$}=i;return e({immediate:s,isDirty:l,formData:u,fields:c,fieldsNamed:d,fieldNames:f,isValid:h,isTouched:a,isLoading:p,errorMessages:v,errorMessagesNamed:y,validate:b,validateAsync:S,reset:w,resetValidation:x,focus:k,focusInvalidField:$}),(C,T)=>(A(),te(zn(t.tag),ee({class:"va-form",onSubmit:T[0]||(T[0]=_=>C.$attrs.action===void 0&&_.preventDefault())},C.$attrs),{default:J(()=>[D(C.$slots,"default",de(we({isValid:m(h),validate:m(b)})))]),_:3},16))}}),xq=me(kq),$q=(t=0)=>new Promise(e=>setTimeout(e,t)),Aq=(t,e,n)=>{const r=()=>{var i;(i=e.value)==null||i.addEventListener("scroll",n.value,{passive:!0})},o=()=>{var i;(i=e.value)==null||i.removeEventListener("scroll",n.value)};return dt(()=>{e.value&&(e.value.style.overflowY="scroll",t.reverse&&(e.value.scrollTop=e.value.scrollHeight),r())}),jt(o),{addScrollListener:r,removeScrollListener:o}},Tq={class:"va-infinite-scroll__spinner__default"},_q=ie({name:"VaInfiniteScroll",__name:"VaInfiniteScroll",props:{...Me,load:{type:Function,required:!0},offset:{type:[Number,String],default:500},reverse:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},scrollTarget:{type:[String,Object],default:null},debounce:{type:[Number,String],default:100},tag:{type:String,default:"div"}},emits:["onload","onerror"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),i=Ne(),s=W(!1),l=W(!1),a=W(!1),u=W(),c=W(0),d=W(0),f=g(()=>{var H;let E;return typeof n.scrollTarget=="string"?E=document.querySelector(n.scrollTarget):E=n.scrollTarget||((H=o.value)==null?void 0:H.parentElement),E||document.body}),{addScrollListener:h,removeScrollListener:p}=Aq(n,f,u),v=Ye("offset"),y=Ye("debounce"),{getColor:b}=He(),S=g(()=>l.value?b("danger"):b("primary")),w=g(()=>{var H;return((H=i.value)==null?void 0:H.offsetHeight)||0}),x=g(()=>v.value+w.value),k=()=>{n.disabled||(s.value=!1,p())},$=()=>{n.disabled||h()},C=()=>{const{scrollTop:H,scrollHeight:E,clientHeight:P}=f.value;c.value=E-H;const V=H-d.value;if(d.value=H,n.disabled||l.value||s.value)return;if(a.value){a.value=!1;return}n.reverse&&V>0||!n.reverse&&V<0||(n.reverse?H:E-H-P)>x.value||(s.value=!0,n.load().then(M).catch(L))},T=H=>{a.value=!0,f.value.scrollTop=H},_=()=>{const{scrollTop:H,scrollHeight:E,clientHeight:P}=f.value;if(n.reverse){const V=E-H=w.value;if(V&&O)return;E-c.value>w.value?T(E-c.value):T(w.value)}n.reverse||!(E-H-P>=w.value)&&T(E-P-w.value)},M=()=>{_(),s.value=!1,r("onload")},F=()=>{_(),a.value=!1,l.value=!1,s.value=!1,r("onerror")},L=()=>{k(),l.value=!0,$q(1200).then(F).then($)};return fe(()=>y.value,H=>{u.value=zm(C,H)},{immediate:!0}),fe(()=>n.disabled,H=>{H?k():$()}),(H,E)=>(A(),te(zn(H.$props.tag),{ref_key:"element",ref:o,role:"feed",class:Ae(["va-infinite-scroll",{"va-infinite-scroll--reversed":H.$props.reverse}]),"aria-busy":s.value},{default:J(()=>[D(H.$slots,"default"),q("div",{ref_key:"spinnerSlotContainer",ref:i,class:Ae(["va-infinite-scroll__spinner",{"va-infinite-scroll__spinner--invisible":!s.value}])},[H.$props.disabled?z("",!0):D(H.$slots,"loading",{key:0},()=>[q("div",Tq,[he(m(bl),{size:"small",thickness:.15,color:S.value,indeterminate:""},null,8,["color"])])])],2)]),_:3},8,["class","aria-busy"]))}}),Oq=me(_q),Pq={top:[0,1,2],left:[0,3,6],right:[2,5,8],bottom:[6,7,8]},Bq=["left","right","top","bottom"],Mq=t=>{const e=()=>[...Bq].sort((r,o)=>(t[r].order??0)-(t[o].order??0)),n=(r,o,i)=>{o.forEach(s=>{r[s]=i})};return g(()=>{const r=e(),o=[".",".",".",".",".",".",".",".","."].map(()=>"content");return r.forEach(i=>{n(o,Pq[i],i)}),['"'+o.slice(0,3).join(" ")+'"','"'+o.slice(3,6).join(" ")+'"','"'+o.slice(6,9).join(" ")+'"'].join(" ")})},Iq={top:{type:Object,default:()=>({order:2})},right:{type:Object,default:()=>({order:1})},left:{type:Object,default:()=>({order:1})},bottom:{type:Object,default:()=>({order:2})}},Hx="VaLayout",Dq=t=>{const e=W({top:null,right:null,bottom:null,left:null}),n=g(()=>{const{top:o,right:i,bottom:s,left:l}=e.value,{top:a,right:u,bottom:c,left:d}=t;return{top:o&&!a.absolute?o.sizes.height:0,right:i&&!u.absolute?i.sizes.width:0,bottom:s&&!c.absolute?s.sizes.height:0,left:l&&!d.absolute?l.sizes.width:0}}),r=g(()=>({top:t.top.order||0,right:t.right.order||0,bottom:t.bottom.order||0,left:t.left.order||0}));return Pr(Hx,{items:e,paddings:n,orders:r}),{paddings:n,orders:r,items:e}},Eq=(t,e)=>{const n=Mn(Hx,null);if(!n)throw new Error("VaLayoutChild must be used inside VaLayout");return tr(()=>{e.value?n.items.value[t]={sizes:e.value}:n.items.value[t]=null}),jt(()=>{n.items.value[t]=null}),{paddings:g(()=>Object.keys(n.paddings.value).reduce((r,o)=>(n.orders.value[o]>n.orders.value[t]&&(r[o]=n.paddings.value[o]),r),{}))}},Lq={},Vq={class:"va-layout__absolute-area-wrapper"};function Rq(t,e){return A(),I("div",Vq,[D(t.$slots,"default")])}const Fq=hs(Lq,[["render",Rq]]),Nq=ie({name:"VaLayoutSizeKeeper",__name:"VaResizeObserver",emits:{resize:t=>!0},setup(t,{emit:e}){const n=e,r=W();let o=null;return fe(r,i=>{o&&o.disconnect(),o=new ResizeObserver(([s])=>{n("resize",s.contentRect)}),o.observe(i)}),(i,s)=>(A(),I("div",{class:"va-resize-observer",ref_key:"el",ref:r},[D(i.$slots,"default")],512))}}),s0=ie({name:"VaLayoutFixedWrapper",__name:"VaLayoutFixedWrapper",props:{area:{type:String,required:!0}},setup(t){const e=t,n=W(null),r=g(()=>e.area==="top"||e.area==="bottom"?"vertical":"horizontal"),o=l=>l?l+"px":"0px",i=g(()=>r.value==="vertical"?{width:`calc(100% - ${o(s.value.left)} - ${o(s.value.right)})`,[e.area]:0}:{height:`calc(100% - ${o(s.value.top)} - ${o(s.value.bottom)})`,[e.area]:0}),{paddings:s}=Eq(e.area,n);return g(()=>Object.keys(s.value).reduce((l,a)=>a===e.area?l:{...l,[a]:`${s.value[a]}px`},{})),(l,a)=>(A(),I("div",{class:"va-layout-fixed-wrapper",style:se([[{height:n.value&&r.value==="vertical"?n.value.height+"px":"auto",width:n.value&&r.value==="horizontal"?n.value.width+"px":"auto"}],`--va-styles-width: ${String(i.value.width)};--va-styles-height: ${String(i.value.height)}`])},[he(Nq,{class:Ae(["va-layout-fixed-wrapper__content",`va-layout-fixed-wrapper__content--${t.area}`]),style:se(n.value?{}:{position:"relative"}),onResize:a[0]||(a[0]=u=>n.value=u)},{default:J(()=>[D(l.$slots,"default")]),_:3},8,["class","style"])],4))}}),Hq=ie({name:"VaLayoutArea",__name:"VaLayoutArea",props:{area:{type:String,required:!0},config:{type:Object,required:!0}},emits:["overlay-click"],setup(t,{emit:e}){const n=t,r=g(()=>n.config.absolute||!1),o=g(()=>n.config.fixed||!1),i=g(()=>n.config.overlay||!1),s=g(()=>(n.config.order||0)+1);return(l,a)=>(A(),I(_e,null,[r.value?(A(),te(Fq,{key:0,style:se(`--va-props-area: ${String(l.$props.area)};--va-z-index: ${String(s.value)};--va-z-index-1: ${String(s.value-1)}`)},{default:J(()=>[q("div",{class:Ae(`va-layout-area va-layout__area va-layout__area--${t.area}`)},[o.value?(A(),te(s0,{key:0,area:t.area},{default:J(()=>[D(l.$slots,"default")]),_:3},8,["area"])):D(l.$slots,"default",{key:1})],2)]),_:3},8,["style"])):(A(),I("div",{key:1,class:Ae(`va-layout-area va-layout__area va-layout__area--${t.area}`),style:se(`--va-props-area: ${String(l.$props.area)};--va-z-index: ${String(s.value)};--va-z-index-1: ${String(s.value-1)}`)},[o.value?(A(),te(s0,{key:0,area:t.area},{default:J(()=>[D(l.$slots,"default")]),_:3},8,["area"])):D(l.$slots,"default",{key:1})],6)),he(ul,{style:se(`--va-props-area: ${String(l.$props.area)};--va-z-index: ${String(s.value)};--va-z-index-1: ${String(s.value-1)}`)},{default:J(()=>[i.value?(A(),I("div",{key:0,class:Ae(["va-layout-area__overlay",{"va-layout-area__overlay--fixed":o.value}]),onClick:a[0]||(a[0]=u=>l.$emit("overlay-click"))},null,2)):z("",!0)]),_:1},8,["style"])],64))}}),zq={class:"va-layout__area va-layout__area--content"},l0=["top","left","right","bottom"],jq=ie({name:"VaLayout",__name:"VaLayout",props:{...Iq,allowBodyScrollOnOverlay:{type:Boolean,default:!1}},emits:["top-overlay-click","left-overlay-click","right-overlay-click","bottom-overlay-click"],setup(t,{emit:e}){const n=t,{paddings:r}=Dq(n),o=g(()=>!n.allowBodyScrollOnOverlay&&l0.some(c=>{var d;return(d=n[c])==null?void 0:d.overlay})),i=us();tr(()=>{var c;const d=(c=i.value)==null?void 0:c.body;d&&(o.value?d.style.overflow="hidden":d.style.overflow="")});const s=Mq(n),l=Ln(),a=g(()=>[l.top?"min-content":"0fr","1fr",l.bottom?"min-content":"0fr"].filter(Boolean).join(" ")),u=g(()=>[l.left?"min-content":"0fr","1fr",l.right?"min-content":"0fr"].filter(Boolean).join(" "));return(c,d)=>(A(),I("div",{class:"va-layout",style:se(`--va-horizontal-template: ${String(u.value)};--va-vertical-template: ${String(a.value)};--va-template-area: ${String(m(s))};--va-paddings-top-px: ${m(r).top+"px"};--va-paddings-bottom-px: ${m(r).bottom+"px"};--va-paddings-left-px: ${m(r).left+"px"};--va-paddings-right-px: ${m(r).right+"px"}`)},[(A(),I(_e,null,Ge(l0,f=>he(Hq,{key:f,area:f,config:c.$props[f]||{},onOverlayClick:h=>c.$emit(`${f}-overlay-click`)},{default:J(()=>[D(c.$slots,f)]),_:2},1032,["area","config","onOverlayClick"])),64)),q("div",zq,[D(c.$slots,"default",{},()=>[D(c.$slots,"content")])])],4))}}),Wq=bo(jq),Uq={class:"va-navbar__left"},Kq={class:"va-navbar__center"},Gq={class:"va-navbar__right"},qq=ie({name:"VaNavbar",__name:"VaNavbar",props:{...Rk,...Me,color:{type:String,default:"background-secondary"},textColor:{type:String},shape:{type:Boolean,default:!1},shadowed:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},setup(t){const e=t,{scrollRoot:n,isScrolledDown:r}=Nk(e.fixed),{fixedBarStyleComputed:o}=Fk(e,r),{getColor:i,shiftHSLAColor:s}=He(),l=g(()=>i(e.color)),{textColorComputed:a}=qt(l),u=g(()=>({borderTopColor:s(l.value,{h:-1,s:-11,l:10})})),c=g(()=>({...o.value,backgroundColor:l.value,color:a.value,fill:a.value})),d=ct("va-navbar",()=>({shadowed:e.shadowed,bordered:e.bordered}));return(f,h)=>(A(),I("header",{ref_key:"scrollRoot",ref:n,class:Ae(["va-navbar",m(d)]),style:se(c.value)},[D(f.$slots,"default",{},()=>[q("div",Uq,[D(f.$slots,"left")]),q("div",Kq,[D(f.$slots,"center")]),q("div",Gq,[D(f.$slots,"right")])]),t.shape?(A(),I("div",{key:0,class:"va-navbar__background-shape",style:se(u.value)},null,4)):z("",!0)],6))}}),Yq=ie({name:"VaNavbarItem",props:{}}),Xq={class:"va-navbar__item"};function Jq(t,e,n,r,o,i){return A(),I("div",Xq,[D(t.$slots,"default")])}const Qq=hs(Yq,[["render",Jq]]),Zq=me(qq),e7=me(Qq),t7=["role"],n7=["value","checked","aria-checked","onChange"],r7=q("span",{"aria-hidden":"true",class:"va-radio__icon"},[q("span",{class:"va-radio__icon__background"}),q("span",{class:"va-radio__icon__dot"})],-1),o7=ie({name:"VaRadio",__name:"VaRadio",props:{...fg,...Me,...Cl,modelValue:{type:[Boolean,Array,String,Object,Number],default:null},options:{type:Array,default:()=>[]},name:{type:String,default:""},label:{type:String,default:void 0},leftLabel:{type:Boolean,default:!1},color:{type:String,default:"primary"},option:{type:[Object,String,Number],default:void 0},vertical:{type:Boolean,default:!1}},emits:ef,setup(t,{emit:e}){const n=t,r=e,{getColor:o}=He(),i={container:Ne(),input:Ne(),label:Ne()},{computedError:s,computedErrorMessages:l,validationAriaAttributes:a,onBlur:u,onFocus:c}=hg(n,r,i),{getText:d,getDisabled:f,getValue:h}=wl(n),p=E=>n.options.length>0?d(E):n.label??d(E),v=E=>f(E)||n.disabled,y=g(()=>n.options.length===0&&!n.option),b=E=>y.value?n.modelValue:n.modelValue===h(E),S=g(()=>y.value?[{}]:n.option?[n.option]:n.options),w=E=>({"va-radio--left-label":n.leftLabel,"va-radio--selected":b(E),"va-radio--readonly":n.readonly,"va-radio--disabled":n.disabled,"va-radio--indeterminate":n.indeterminate,"va-radio--error":s.value,"va-radio--single-option":y.value}),x=(E,P)=>{var V;if(y.value){r("update:modelValue",((V=P==null?void 0:P.target)==null?void 0:V.checked)||!1);return}r("update:modelValue",E)},k=g(()=>({color:s.value?o("danger"):""}));g(()=>{const E={background:o(n.color),borderColor:o(n.color)};return s.value&&(E.borderColor=o("danger")),E});const $=g(()=>({backgroundColor:o(n.color)})),C=g(()=>({borderColor:s.value?o("danger"):o(n.color),backgroundColor:o(n.color)})),T=g(()=>({borderColor:s.value?o("danger"):o(n.color)})),_=Qr(),M=g(()=>n.name||_),F=E=>{const P=v(E);return{name:M.value,disabled:P,readonly:n.readonly,tabindex:P?-1:0}},L=g(()=>n.vertical?"column":"row"),H=g(()=>{var E;return((E=n.options)==null?void 0:E.length)>0?"radiogroup":""});return(E,P)=>(A(),te(m(Kd),{disabled:E.disabled,success:E.success,messages:E.messages,error:m(s),"error-messages":m(l),"error-count":E.errorCount,onBlur:m(u),style:se(`--va-flex-direction: ${String(L.value)};--va-label-style-color: ${String(k.value.color)};--va-icon-computed-styles-border-color: ${String(T.value.borderColor)};--va-icon-dot-computed-styles-border-color: ${String(C.value.borderColor)};--va-icon-dot-computed-styles-background-color: ${String(C.value.backgroundColor)};--va-icon-background-computed-styles-background-color: ${String($.value.backgroundColor)}`)},{default:J(({ariaAttributes:V})=>[q("div",ee({ref:"container",class:"va-radio",role:H.value},V),[(A(!0),I(_e,null,Ge(S.value,(O,N)=>(A(),I("label",{key:N,class:Ae([w(O),"va-radio__square"])},[q("input",ee({ref_for:!0,ref:"input",class:"va-radio__input",type:"radio",role:"radio",value:b(O),checked:b(O),"aria-checked":b(O)},{...F(O),...V},{onChange:re=>x(m(h)(O),re),onFocus:P[0]||(P[0]=(...re)=>m(c)&&m(c)(...re)),onBlur:P[1]||(P[1]=(...re)=>m(u)&&m(u)(...re))}),null,16,n7),D(E.$slots,"icon",de(we({value:b(O),text:p(O),disabled:v(O),index:N})),()=>[r7]),p(O)||E.$slots.default?(A(),I("div",{key:0,ref_for:!0,ref:"label",class:"va-radio__text"},[D(E.$slots,"default",de(we({value:b(O),text:p(O),disabled:v(O),index:N})),()=>[Ue(Be(p(O)),1)])],512)):z("",!0)],2))),128))],16,t7)]),_:3},8,["disabled","success","messages","error","error-messages","error-count","onBlur","style"]))}}),zx=me(o7),i7={class:"va-switch__inner"},s7={class:"va-switch__checker-wrapper"},l7={class:"va-switch__checker"},a7={class:"va-switch__checker-circle"},u7=["id"],c7=ie({name:"VaSwitch",__name:"VaSwitch",props:{...fg,...Me,id:{type:String,default:""},name:{type:String,default:""},modelValue:{type:[Number,Boolean,Array,String,Object],default:!1},trueLabel:{type:String,default:null},falseLabel:{type:String,default:null},trueInnerLabel:{type:String,default:null},falseInnerLabel:{type:String,default:null},ariaLabel:{type:String,default:"$t:switch"},color:{type:String,default:"primary"},offColor:{type:String,default:"background-element"},size:{type:String,default:"medium",validator:t=>["medium","small","large"].includes(t)}},emits:[...ef,"focus","blur","update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i={container:Ne(),input:Ne(),label:Ne()},{getColor:s}=He(),{hasKeyboardFocus:l,keyboardFocusListeners:a}=kl(),{isChecked:u,computedError:c,isIndeterminate:d,computedErrorMessages:f,validationAriaAttributes:h,toggleSelection:p,onBlur:v,onFocus:y,reset:b,focus:S,isDirty:w,isTouched:x,isLoading:k,isError:$}=hg(r,o,i),C=g(()=>s(u.value?r.color:r.offColor)),{textColorComputed:T}=qt(C),_=g(()=>r.trueInnerLabel&&u.value?r.trueInnerLabel:r.falseInnerLabel&&!u.value?r.falseInnerLabel:""),M=g(()=>r.trueLabel&&u.value?r.trueLabel:r.falseLabel&&!u.value?r.falseLabel:r.label),F=ct("va-switch",()=>({...Bt(r,["readonly","disabled","leftLabel"]),checked:u.value,indeterminate:d.value,small:r.size==="small",large:r.size==="large",error:c.value,keyboardFocus:l.value})),L=g(()=>({lineHeight:f.value.length?1:0})),H=g(()=>({small:"15px",medium:"20px",large:"25px"})[r.size]),E=g(()=>({borderColor:c.value?s("danger"):"",backgroundColor:C.value})),P=g(()=>({color:c.value?s("danger"):""})),V=g(()=>({color:T.value,"text-align":u.value?"left":"right"})),O=Ln(),N=Qr(),re=g(()=>`aria-label-id-${N}`),X=g(()=>({id:r.id||void 0,name:r.name||void 0,disabled:r.disabled,readonly:r.readonly,"aria-disabled":r.disabled,"aria-readonly":r.readonly,"aria-checked":!!r.modelValue,"aria-label":O.default?void 0:r.ariaLabel,"aria-labelledby":M.value||O.default?re.value:void 0,tabindex:r.disabled?-1:0,checked:u.value,...h.value})),ke=()=>{var ye;(ye=i.input.value)==null||ye.click()},$e=i.input;return e({focus:S,reset:b,isDirty:w,isTouched:x,isLoading:k,isError:$}),(ye,j)=>(A(),te(m(Kd),{class:Ae(["va-switch",m(F)]),style:se(L.value),disabled:ye.$props.disabled,success:ye.$props.success,messages:ye.$props.messages,error:m(c),"error-messages":m(f),"error-count":ye.$props.errorCount},{default:J(()=>[q("div",{ref:"container",class:"va-switch__container",tabindex:"-1",onBlur:j[5]||(j[5]=(...ce)=>m(v)&&m(v)(...ce)),onClick:j[6]||(j[6]=(...ce)=>m(p)&&m(p)(...ce))},[q("div",i7,[q("input",ee({ref_key:"input",ref:$e,type:"checkbox",class:"va-switch__input",role:"switch"},X.value,ur(m(a),!0),{onFocus:j[0]||(j[0]=(...ce)=>m(y)&&m(y)(...ce)),onBlur:j[1]||(j[1]=(...ce)=>m(v)&&m(v)(...ce)),onKeypress:Ce(ke,["enter"])}),null,16),q("div",{class:"va-switch__track","aria-hidden":"true",style:se(E.value)},[_.value||ye.$slots.innerLabel?(A(),I("div",{key:0,class:"va-switch__track-label",style:se(V.value)},[D(ye.$slots,"innerLabel",{},()=>[Ue(Be(_.value),1)])],4)):z("",!0),q("div",s7,[q("div",l7,[D(ye.$slots,"checker",de(we({value:m(u)})),()=>[q("div",a7,[ye.$props.loading?(A(),te(m(bl),{key:0,indeterminate:"",size:H.value,color:E.value.backgroundColor},null,8,["size","color"])):z("",!0)])])])])],4)]),M.value||ye.$slots.default?(A(),I("div",{key:0,ref:"label",class:"va-switch__label",style:se(P.value),id:re.value,onBlur:j[2]||(j[2]=(...ce)=>m(v)&&m(v)(...ce)),onClick:j[3]||(j[3]=(...ce)=>m(p)&&m(p)(...ce)),onKeydown:j[4]||(j[4]=Ce(be((...ce)=>m(p)&&m(p)(...ce),["stop"]),["enter"]))},[D(ye.$slots,"default",{},()=>[Ue(Be(M.value),1)])],44,u7)):z("",!0)],544)]),_:3},8,["class","style","disabled","success","messages","error","error-messages","error-count"]))}}),jx=me(c7),af=()=>{const t=Ne([]),e=r=>{r&&t.value.push(r)},n=r=>o=>{o&&(t.value[r]=o)};return km(()=>{t.value=[]}),{itemRefs:t,setItemRef:e,setItemRefByIndex:n}},d7={class:"va-option-list__list"},f7=ie({name:"VaOptionList",__name:"VaOptionList",props:{...Me,...Cl,...Co,...Kt,type:{type:String,default:"checkbox",validator:t=>["radio","checkbox","switch"].includes(t)},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},defaultValue:{type:[String,Number,Boolean,Object,Array]},name:{type:String,default:""},color:{type:String,default:"primary"},leftLabel:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array]}},emits:[...un,...mi,"clear"],setup(t,{expose:e,emit:n}){const r=t,o=n,{valueComputed:i}=xt(r,o,"modelValue",{defaultValue:r.defaultValue}),{getValue:s,getText:l,getTrackBy:a,getDisabled:u}=wl(r),{itemRefs:c,setItemRef:d}=af(),f=g(()=>r.type==="radio"),h=g({get(){const $=f.value?null:[];return i.value||$},set($){r.readonly||(f.value&&!Array.isArray($)?i.value=$&&s($):i.value=Array.isArray($)?$.map(s):[$&&s($)])}}),p=$=>r.disabled||u($),v=()=>w(()=>{i.value=null,o("clear"),x()}),y=()=>{const $=Array.isArray(c.value)&&c.value.find(C=>!C.disabled);$&&typeof $.focus=="function"&&$.focus()},{computedError:b,computedErrorMessages:S,withoutValidation:w,resetValidation:x}=wo(r,o,{reset:v,focus:y,value:i}),k=g(()=>Bt(r,["name","color","readonly","leftLabel"]));return dt(()=>{vl&&r.type!=="radio"&&!Array.isArray(r.modelValue)&&console.warn(`Prop 'modelValue = ${r.modelValue}' has not a proper type! + For component property 'type = ${r.type}' it must be of type 'array'.`)}),e({focus:y,reset:v}),($,C)=>(A(),te(m(Kd),{error:m(b),"error-messages":m(S),"error-count":$.$props.errorCount},{default:J(()=>[q("ul",d7,[(A(!0),I(_e,null,Ge($.$props.options,T=>(A(),I("li",{key:m(a)(T)},[D($.$slots,"default",de(we({option:T,selectedValue:h.value,isDisabled:p,getText:m(l),getValue:m(s)})),()=>[$.$props.type==="radio"?(A(),te(m(zx),ee({key:0,ref_for:!0,ref:m(d),modelValue:h.value,"onUpdate:modelValue":C[0]||(C[0]=_=>h.value=_),label:m(l)(T),disabled:p(T),option:m(s)(T)},k.value),null,16,["modelValue","label","disabled","option"])):$.$props.type==="checkbox"?(A(),te(m(nu),ee({key:1,ref_for:!0,ref:m(d),modelValue:h.value,"onUpdate:modelValue":C[1]||(C[1]=_=>h.value=_),label:m(l)(T),disabled:p(T),"array-value":m(s)(T)},k.value),null,16,["modelValue","label","disabled","array-value"])):(A(),te(m(jx),ee({key:2,ref_for:!0,ref:m(d),modelValue:h.value,"onUpdate:modelValue":C[2]||(C[2]=_=>h.value=_),label:m(l)(T),disabled:p(T),"array-value":m(s)(T)},k.value),null,16,["modelValue","label","disabled","array-value"]))])]))),128))])]),_:3},8,["error","error-messages","error-count"]))}}),h7=me(f7),p7=(t=1,e,n,r=!1)=>{let o=0;if(n===0&&(n=1),e>n&&(e=n),e===0)o=1,e=n>10?10:n;else{const s=e/2;t-s<=0||t>n?o=1:o=t+s>n?n-e+1:Math.ceil(t-s)}const i=[];for(let s=0;s=7&&pt("[va-pagination] To work in a proper way, the `boundaryNumbers` prop needs at least 7 visible pages to be set via the `visiblePages` prop (first, last, 2 boundaries, current, previous, next)."):r&&(o!==1&&i.splice(0,2,1,"..."),i[i.length-1]!==n&&i.splice(-2,2,"...",n)),i},m7=["aria-label","onKeydown"],g7=["aria-label"],v7=ie({name:"VaPagination",__name:"VaPagination",props:{...Kt,...Me,modelValue:{type:Number,default:1},visiblePages:{type:[Number,String],default:0},pages:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},color:{type:String,default:"primary"},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},boundaryLinks:{type:Boolean,default:!0},boundaryNumbers:{type:Boolean,default:!1},directionLinks:{type:Boolean,default:!0},input:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},total:{type:[Number,String],default:null},pageSize:{type:[Number,String],default:null},boundaryIconLeft:{type:String,default:"va-arrow-first"},boundaryIconRight:{type:String,default:"va-arrow-last"},directionIconLeft:{type:String,default:"va-arrow-left"},directionIconRight:{type:String,default:"va-arrow-right"},gapped:{type:Boolean,default:!1},borderColor:{type:String,default:""},rounded:{type:Boolean,default:!1},activePageColor:{type:String,default:""},activeButtonProps:{type:Object,default:()=>({})},buttonProps:{type:Object,default:()=>({})},buttonsPreset:{type:String,default:"primary"},ariaLabel:{type:String,default:"$t:pagination"},ariaGoToTheFirstPageLabel:{type:String,default:"$t:goToTheFirstPage"},ariaGoToPreviousPageLabel:{type:String,default:"$t:goToPreviousPage"},ariaGoToSpecificPageLabel:{type:String,default:"$t:goToSpecificPage"},ariaGoToSpecificPageInputLabel:{type:String,default:"$t:goToSpecificPageInput"},ariaGoToNextPageLabel:{type:String,default:"$t:goNextPage"},ariaGoToLastPageLabel:{type:String,default:"$t:goLastPage"}},emits:[...un],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),s=W(""),l=g(()=>!!((f.value||f.value===0)&&h.value)),{valueComputed:a}=xt(r,o),u=g({get:()=>l.value?Math.ceil(a.value/h.value)||1:a.value,set:j=>{a.value=j}}),c=Ye("visiblePages"),d=Ye("pages"),f=Ye("total"),h=Ye("pageSize"),p=g(()=>{const{boundaryNumbers:j}=r,ce=u.value||1,Se=l.value?Math.ceil(f.value/h.value):d.value;return p7(ce,c.value,Se,j)}),v=g(()=>l.value?Math.ceil(f.value/h.value)||1:+d.value),y=g(()=>!!c.value&&v.value>c.value||r.input),b=g(()=>{const{boundaryLinks:j,boundaryNumbers:ce}=r;return y.value&&j&&!ce}),S=g(()=>y.value&&r.directionLinks),w=g(()=>v.value>1||!r.hideOnSinglePage&&v.value<=1),x=()=>{s.value=String(u.value),Ot(()=>{var j;return(j=i.value)==null?void 0:j.setSelectionRange(0,i.value.value.length)})},{setItemRefByIndex:k,itemRefs:$}=af(),C=j=>{var ce;if(j==="..."||j===u.value)return;const Se=Ki(j,1,v.value);u.value=l.value?(Se-1)*h.value+1:Se,(ce=$.value[j-1])==null||ce.focus()},T=()=>{var j;s.value="",(j=i.value)==null||j.blur()},_=()=>{if(+s.value===u.value&&T(),!s.value.length)return;let j=Number.parseInt(s.value);switch(!0){case j<1:j=1;break;case j>v.value:j=v.value;break;case isNaN(j):j=u.value;break}C(j),T()},{getColor:M,colorToRgba:F}=He(),L=g(()=>{const{color:j,buttonsPreset:ce}=Or(r);if(!j.value)return"transparent";switch(ce.value){case"default":return M(j.value);case void 0:case"primary":return F(M(j.value),.1);default:return"transparent"}}),H=g(()=>({cursor:"default",color:M(r.color),opacity:r.disabled?.4:1,borderColor:L.value}));fe([l,()=>d.value],()=>{if(vl&&l.value&&d.value)throw new Error("Please, use either `total` and `page-size` props, or `pages`.")});const E=g(()=>({disabled:r.disabled,placeholder:`${u.value}/${v.value}`})),P=g(()=>({size:r.size,preset:r.buttonsPreset,color:r.color,borderColor:r.borderColor,round:r.rounded,...r.buttonProps})),V=g(()=>({preset:r.buttonsPreset==="default"?"primary":"default",color:r.activePageColor||r.color,...r.activeButtonProps})),O=j=>!isNaN(+j)&&j===u.value?Object.assign({},P.value,V.value):P.value,N=g(()=>r.input&&!r.boundaryLinks&&!r.directionLinks),re=ct("va-pagination__input",()=>({sm:r.size==="small"&&N.value,md:r.size==="medium"&&N.value,lg:r.size==="large"&&N.value,auto:!N.value})),X=ct("va-pagination",()=>({...Bt(r,["gapped","rounded","disabled"]),bordered:!!r.borderColor})),ke=()=>C(u.value+1),$e=()=>C(u.value-1),{tp:ye}=yt();return e({goNextPage:ke,goPrevPage:$e}),(j,ce)=>w.value?(A(),I("nav",{key:0,class:Ae(["va-pagination",m(X)]),"aria-label":m(ye)(j.$props.ariaLabel),onKeydown:[Ce(be($e,["stop"]),["left"]),Ce(be(ke,["stop"]),["right"]),Ce(be($e,["stop"]),["up"]),Ce(be(ke,["stop"]),["down"])]},[b.value?D(j.$slots,"firstPageLink",de(ee({key:0},{onClick:()=>C(1),disabled:j.$props.disabled||u.value===1})),()=>[b.value?(A(),te(m(et),ee({key:0,"aria-label":m(ye)(j.$props.ariaGoToTheFirstPageLabel),disabled:j.$props.disabled||u.value===1,icon:j.$props.boundaryIconLeft},P.value,{onClick:ce[0]||(ce[0]=Se=>C(1))}),null,16,["aria-label","disabled","icon"])):z("",!0)]):z("",!0),S.value?D(j.$slots,"prevPageLink",de(ee({key:1},{onClick:$e,disabled:j.$props.disabled||u.value===1})),()=>[S.value?(A(),te(m(et),ee({key:0,"aria-label":m(ye)(j.$props.ariaGoToPreviousPageLabel),disabled:j.$props.disabled||u.value===1,icon:j.$props.directionIconLeft},P.value,{onClick:$e}),null,16,["aria-label","disabled","icon"])):z("",!0)]):z("",!0),j.$props.input?xr((A(),I("input",ee({key:3,"onUpdate:modelValue":ce[1]||(ce[1]=Se=>s.value=Se),ref_key:"htmlInput",ref:i,class:["va-pagination__input va-button",m(re)],"aria-label":m(ye)(j.$props.ariaGoToSpecificPageInputLabel),style:H.value},E.value,{onKeydown:Ce(_,["enter"]),onFocus:x,onBlur:_}),null,16,g7)),[[_m,s.value]]):D(j.$slots,"default",{key:2},()=>[(A(!0),I(_e,null,Ge(p.value,(Se,ne)=>(A(),te(m(et),ee({key:ne,ref_for:!0,ref:m(k)(ne),class:{"va-button--ellipsis":Se==="...","va-button--current":Se===u.value},"aria-label":m(ye)(j.$props.ariaGoToSpecificPageLabel,{page:Se}),"aria-current":Se===u.value,disabled:j.$props.disabled||Se==="..."},O(Se),{onClick:Z=>C(Se)}),{default:J(()=>[Ue(Be(Se),1)]),_:2},1040,["class","aria-label","aria-current","disabled","onClick"]))),128))]),S.value?D(j.$slots,"nextPageLink",de(ee({key:4},{onClick:ke,disabled:j.$props.disabled||u.value===v.value})),()=>[S.value?(A(),te(m(et),ee({key:0,"aria-label":m(ye)(j.$props.ariaGoToNextPageLabel),disabled:j.$props.disabled||u.value===v.value,icon:j.$props.directionIconRight},P.value,{onClick:ke}),null,16,["aria-label","disabled","icon"])):z("",!0)]):z("",!0),b.value?D(j.$slots,"lastPageLink",de(ee({key:5},{onClick:()=>C(v.value),disabled:j.$props.disabled||u.value===v.value})),()=>[b.value?(A(),te(m(et),ee({key:0,"aria-label":m(ye)(j.$props.ariaGoToLastPageLabel),disabled:j.$props.disabled||u.value===v.value,icon:j.$props.boundaryIconRight},P.value,{onClick:ce[2]||(ce[2]=Se=>C(v.value))}),null,16,["aria-label","disabled","icon"])):z("",!0)]):z("",!0)],42,m7)):z("",!0)}}),y7=me(v7),b7=()=>{const t=qd(),e=new Proxy(t.value||{},{get:(r,o,i)=>{var s,l;if(o==="scrollTop")return(s=t.value)==null?void 0:s.scrollY;if(o==="scrollLeft")return(l=t.value)==null?void 0:l.scrollX;const a=Reflect.get(r,o,i);return typeof a=="function"?a.bind(r):a}}),n=r=>r?r.scrollHeight>r.clientHeight?r:n(r.parentElement):e;return{getScrollableParent:n}},S7={class:"va-parallax__image-container"},C7=["src","alt"],w7={class:"va-parallax__item-container"},k7=ie({name:"VaParallax",__name:"VaParallax",props:{...Me,target:{type:[Object,String]},src:{type:String,default:"",required:!0},alt:{type:String,default:"parallax"},height:{type:[Number,String],default:400},reversed:{type:Boolean,default:!1},speed:{type:[Number,String],default:.5,validator:t=>{const e=Number(t);return e>=0&&e<=1}}},setup(t){const e=t,n=Ne(),r=Ne(),o=W(0),i=W(0),s=W(0),l=W(0),a=W(0),u=W(0),c=W(0),d=W(!1),f=g(()=>({height:b.value+"px"})),h=g(()=>({display:"block",transform:`translate(-50%, ${i.value}px)`,opacity:d.value?1:0,top:e.reversed?0:"auto"})),{getScrollableParent:p}=b7(),v=g(()=>{var T;if(!e.target)return p((T=n.value)==null?void 0:T.parentElement);if(e.target instanceof HTMLElement)return e.target;const _=document.querySelector(e.target);return _||(pt("VaParallax target prop got wrong selector. Target is null"),null)}),y=g(()=>{var T;return((T=r.value)==null?void 0:T.naturalHeight)||0}),b=Ye("height"),S=Ye("speed"),w=()=>{var T,_;const M=((T=n.value)==null?void 0:T.getBoundingClientRect())||{top:0};a.value=((_=v.value)==null?void 0:_.scrollTop)||0,s.value=y.value-b.value,o.value=M.top+a.value,u.value=window.innerHeight,c.value=a.value+u.value},x=()=>{w(),l.value=(c.value-o.value)/(b.value+u.value),i.value=Math.round(s.value*l.value)*S.value,e.reversed&&(i.value=-i.value)},k=()=>{var T,_;(T=v.value)==null||T.addEventListener("scroll",x),(_=v.value)==null||_.addEventListener("resize",x)},$=()=>{var T,_;(T=v.value)==null||T.removeEventListener("scroll",x),(_=v.value)==null||_.removeEventListener("resize",x)};return dt(()=>{var T,_;(T=r.value)!=null&&T.complete?(x(),k()):(_=r.value)==null||_.addEventListener("load",()=>{x(),k()},!1),d.value=!0}),jt($),(T,_)=>(A(),I("div",{ref_key:"rootElement",ref:n,class:"va-parallax",style:se(f.value)},[q("div",S7,[q("img",{ref_key:"img",ref:r,class:"va-parallax__image",src:T.$props.src,alt:T.$props.alt,style:se(h.value)},null,12,C7)]),q("div",w7,[D(T.$slots,"default")])],4))}}),x7=me(k7),$7={key:0,"aria-hidden":"true",class:"va-popover__icon"},A7={key:1},T7={key:0,class:"va-popover__title"},_7={key:1,class:"va-popover__body"},Qf=nt(er,["closeOnClickOutside"]),O7=ie({name:"VaPopover",__name:"VaPopover",props:{...Qf,...Me,trigger:{...Qf.trigger,default:["hover","enter","space","arrow-down","arrow-up"]},color:{type:String,default:"#1b1a1f"},textColor:{type:String},icon:{type:String,default:""},title:{type:String,default:""},message:{type:String,default:""},autoHide:{type:Boolean,default:!0},offset:{type:[Array,Number],default:4},contentClass:{type:String,default:""}},setup(t){const e=t,n=gt(Qf),{getColor:r,getBoxShadowColor:o}=He(),i=Ln(),{textColorComputed:s}=qt(g(()=>r(e.color))),l=g(()=>e.icon||i.icon),a=g(()=>e.title||i.title),u=g(()=>e.message||i.body),c=g(()=>a.value||u.value),d=g(()=>({boxShadow:`var(--va-popover-content-box-shadow) ${o(r(e.color))}`,backgroundColor:r(e.color),color:s.value}));return(f,h)=>(A(),te(m(er),ee(m(n),{"model-value":f.modelValue,"close-on-click-outside":t.autoHide,offset:f.$props.offset,"content-class":f.$props.contentClass,class:"va-popover"}),{default:J(()=>[q("div",{style:se(d.value),class:"va-popover__content",role:"tooltip"},[l.value?(A(),I("div",$7,[D(f.$slots,"icon",{},()=>[he(m(Ze),{name:f.$props.icon,color:m(s)},null,8,["name","color"])])])):z("",!0),c.value?(A(),I("div",A7,[a.value?(A(),I("div",T7,[D(f.$slots,"title",{},()=>[Ue(Be(f.$props.title),1)])])):z("",!0),u.value?(A(),I("div",_7,[D(f.$slots,"body",{},()=>[Ue(Be(f.$props.message),1)])])):z("",!0)])):z("",!0)],4)]),anchor:J(()=>[D(f.$slots,"default")]),_:3},16,["model-value","close-on-click-outside","offset","content-class"]))}}),P7=me(O7);var tn=(t=>(t[t.EMPTY=0]="EMPTY",t[t.HALF=.5]="HALF",t[t.FULL=1]="FULL",t))(tn||{});const B7=()=>{const t=_t();if(!t)throw new Error("useRating hooks must be used on top of setup function");return{props:t.props,emit:t.emit}},M7={...Kt,modelValue:{type:Number,default:0},clearable:{type:Boolean,default:!1},hover:{type:Boolean,default:!1}},I7=t=>{const{emit:e}=B7(),{isHovered:n,onMouseEnter:r,onMouseLeave:o}=Ja(),{valueComputed:i}=xt(t,e),s=W(0),l=g(()=>!t.disabled&&!t.readonly&&t.hover&&n.value?s.value:i.value);return{visibleValue:l,modelValue:i,hoveredValue:s,isHovered:n,onMouseEnter:r,onMouseLeave:o,onItemValueUpdate:(d,f)=>{const h=d+f;if(t.clearable&&i.value===h){i.value=0;return}i.value=h},onItemHoveredValueUpdate:(d,f)=>{t.hover&&(s.value=d+f)},getItemValue:d=>{const f=l.value-d;return Ki(f,tn.EMPTY,tn.FULL)}}},Wx={unselectedColor:{type:String},color:{type:String,default:"primary"},modelValue:{type:Number}},Ux=t=>{const{getColor:e,getFocusColor:n,getTextColor:r}=He(),o=g(()=>e(t.color)),i=g(()=>t.unselectedColor?e(t.unselectedColor):n(e(t.color))),s=g(()=>t.modelValue===tn.HALF?`linear-gradient(90deg, ${o.value} 50%, ${i.value} 50%`:t.modelValue===tn.EMPTY?i.value:o.value),l=g(()=>t.modelValue===tn.FULL?e(r(o.value)):e(r(i.value)));return{computedColor:o,backgroundComputed:s,textColorComputed:l}},D7=["tabindex","onKeydown"],Kx=ie({name:"VaRatingItem",__name:"VaRatingItem",props:{modelValue:{type:Number,default:0},icon:{type:String,default:"star"},halfIcon:{type:String,default:"star_half"},emptyIcon:{type:String,default:"star_outline"},halves:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:[String,Number],default:"medium"},unselectedColor:{type:String},color:{type:String,default:"primary"}},emits:["update:modelValue","click","hover"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),[i]=qi("modelValue",n,r,tn.EMPTY),s=W(null),l=g(()=>n.hover&&!n.disabled&&!n.readonly&&s.value||i.value),{getColor:a}=He(),u=g(()=>a(n.unselectedColor&&l.value===tn.EMPTY?n.unselectedColor:n.color)),c=v=>{if(!o.value)return;const{offsetX:y}=v,b=o.value.clientWidth;n.halves?s.value=y/b<=tn.HALF?tn.HALF:tn.FULL:s.value=tn.FULL},d=()=>{s.value=null},f=()=>{i.value=s.value||tn.FULL,r("click",s.value||tn.FULL)};fe(s,()=>r("hover",s.value||tn.EMPTY));const h=g(()=>n.halves&&l.value===tn.HALF?n.halfIcon:l.value===tn.EMPTY?n.emptyIcon:n.icon),p=g(()=>n.disabled?-1:n.tabindex);return(v,y)=>(A(),I("div",{ref_key:"rootEl",ref:o,role:"button",class:"va-rating-item",tabindex:p.value,onKeydown:[Ce(f,["enter"]),Ce(be(f,["prevent"]),["space"])],onMousemove:c,onMouseleave:d,onClick:f},[D(v.$slots,"default",de(we({value:l.value,onClick:f})),()=>[he(m(Ze),{class:"va-rating-item__wrapper",tabindex:"-1",tag:"button",name:h.value,size:v.$props.size,color:u.value},null,8,["name","size","color"])])],40,D7))}}),Gx=ie({name:"VaRatingItemNumberButton",__name:"VaRatingItemNumberButton",props:{...Wx,...ss,itemNumber:{type:Number,required:!0},modelValue:{type:Number,required:!0}},setup(t){const e=t,{textColorComputed:n,backgroundComputed:r}=Ux(e),{sizeComputed:o,fontSizeComputed:i,fontSizeInRem:s}=ls(e,"VaRating");return(l,a)=>(A(),I("button",{class:"va-rating__number-item",tabindex:"-1","aria-hidden":"true",style:se({background:m(r),color:m(n),width:m(o),height:m(o),fontSize:m(i),borderRadius:`${parseInt(m(i))*.125}rem`})},Be(t.itemNumber),5))}}),E7=["aria-label"],a0=nt(Kx,["modelValue","itemNumber"]),u0=nt(Gx,["modelValue","itemNumber"]),L7=ie({name:"VaRating",__name:"VaRating",props:{...u0,...M7,...Wx,...vi,...a0,...Me,modelValue:{type:Number,default:0},numbers:{type:Boolean,default:!1},halves:{type:Boolean,default:!1},max:{type:[Number,String],default:5},texts:{type:Array,default:()=>[]},ariaLabel:{type:String,default:"$t:currentRating"},ariaItemLabel:{type:String,default:"$t:voteRating"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,{computedClasses:r}=mx("va-rating",n),{visibleValue:o,modelValue:i,hoveredValue:s,isHovered:l,onMouseEnter:a,onMouseLeave:u,onItemValueUpdate:c,onItemHoveredValueUpdate:d,getItemValue:f}=I7(n),h=g(()=>!n.disabled&&!n.readonly),p=C=>{const T=Number(n.max),_=n.halves?tn.HALF:tn.FULL,M=o.value+_*C,F=n.clearable?0:_;M>=F&&M<=T?c(o.value,_*C):Mh.value?0:void 0),k=gt(a0),$=gt(u0);return(C,T)=>(A(),I("div",{class:Ae(["va-rating",m(r)]),"aria-label":m(v)(C.$props.ariaLabel,{max:C.$props.max,value:C.$props.modelValue})},[q("div",{class:"va-rating__item-wrapper",onKeyup:[T[0]||(T[0]=Ce(_=>p(-1),["left"])),T[1]||(T[1]=Ce(_=>p(1),["right"]))],onMouseenter:T[2]||(T[2]=(..._)=>m(a)&&m(a)(..._)),onMouseleave:T[3]||(T[3]=(..._)=>m(u)&&m(u)(..._))},[(A(!0),I(_e,null,Ge(Number(C.$props.max),_=>(A(),te(Kx,ee({key:_,class:"va-rating__item"},m(k),{"aria-label":m(v)(C.$props.ariaItemLabel,{max:C.$props.max,value:_}),"model-value":m(f)(_-1),tabindex:x.value,disabled:C.$props.disabled,readonly:C.$props.readonly,onHover:M=>h.value&&m(d)(_-1,M),"onUpdate:modelValue":M=>h.value&&m(c)(_-1,M)}),{default:J(({value:M,onClick:F})=>[D(C.$slots,"item",de(we({value:M,onClick:F,index:_})),()=>[C.$props.numbers?(A(),te(Gx,ee({key:0},m($),{"model-value":M,"item-number":_}),null,16,["model-value","item-number"])):z("",!0)])]),_:2},1040,["aria-label","model-value","tabindex","disabled","readonly","onHover","onUpdate:modelValue"]))),128))],32),C.$props.texts&&C.$props.texts.length===C.$props.max?(A(),I("span",{key:0,class:"va-rating__text-wrapper",style:se({color:m(b)})},Be(C.$props.texts[Math.round(m(o))-1]),5)):z("",!0)],10,E7))}}),V7=me(L7),R7=t=>t.offsetTop,F7=t=>t.offsetTop+t.offsetHeight,N7=t=>t.offsetTop+t.offsetHeight/2,H7=(t,e,n)=>{const r=e.offsetHeight,o=e.scrollTop,i=R7(t)-e.offsetTop,s=N7(t)-e.offsetTop,l=F7(t)-e.offsetTop;if(n==="start")return i;if(n==="end")return l-r;if(n==="center")return s-r/2;if(n==="any"){if(i-o<0)return i;if(l-o>r)return l-r}},z7=(t,e={scrollTarget:t.parentElement,verticalAlignment:"any",smooth:!1})=>{const n=e.scrollTarget||t.parentElement,r=H7(t,n,e.verticalAlignment);r!==void 0&&n.scroll({top:r,behavior:e.smooth?"smooth":"auto"})},j7=["aria-selected"],W7={key:1,class:"va-select-option__highlighted"},U7=ie({name:"VaSelectOption",__name:"VaSelectOption",props:{...Xm,disabled:{type:Boolean,default:!1},option:{type:[Number,String,Boolean,Object],default:()=>({})},getText:{type:Function,required:!0},getTrackBy:{type:Function,required:!0},currentOption:{type:[String,Number,Boolean,Object],default:null},getSelectedState:{type:Function,required:!0},search:{type:String,default:""},highlightMatchedText:{type:Boolean,default:!0},inputFocused:{type:Boolean,default:!1},minSearchChars:{type:[Number,String],default:0}},setup(t,{expose:e}){const n=t,{getColor:r,getHoverColor:o}=He(),i=Ye("minSearchChars"),s=g(()=>aa(n.option)?n.option.icon:void 0),l=g(()=>r(n.color)),a=g(()=>n.getText(n.option)),u=g(()=>{const p={start:a.value,searchedSubString:"",end:""};if(!a.value||!n.search||!n.highlightMatchedText||n.search.lengthn.getSelectedState(n.option)),d=g(()=>typeof n.option=="string"?n.option===n.currentOption:n.getTrackBy(n.currentOption)===n.getTrackBy(n.option)),f=ct("va-select-option",()=>({selected:c.value})),h=g(()=>({color:c.value?r(n.color):"inherit",backgroundColor:d.value?o(r(n.color)):"transparent",cursor:n.disabled?"default":void 0,opacity:n.disabled?"var(--va-select-option-list-option-disabled-opacity)":void 0}));return e({isFocused:d,isSelected:c}),(p,v)=>(A(),I("div",{role:"option",class:Ae(["va-select-option",m(f)]),style:se(h.value),"aria-selected":c.value},[D(p.$slots,"option-content",{},()=>[s.value?(A(),te(m(Ze),{key:0,size:"small",class:"va-select-option__icon",name:s.value},null,8,["name"])):z("",!0),Ue(" "+Be(u.value.start)+" ",1),u.value.searchedSubString?(A(),I("span",W7,Be(u.value.searchedSubString),1)):z("",!0),Ue(" "+Be(u.value.end),1)]),xr(he(m(Ze),{class:"va-select-option__selected-icon",size:"small",name:"va-check",color:l.value},null,8,["color"]),[[zs,c.value]])],14,j7))}}),c0=me(U7),K7=()=>{const t=Ne({}),e=n=>r=>{if(r)return t.value[n]=r,String(n)};return km(()=>{t.value={}}),{itemRefs:t,setItemRef:e}},G7=["tabindex","onKeydown","aria-multiselectable"],q7={key:0,class:"va-select-option-list__group-name",role:"presentation"},Y7={key:0,class:"va-select-option-list--empty"},X7=ie({name:"VaSelectOptionList",__name:"VaSelectOptionList",props:{...Xm,...Me,...Cl,...xl,noOptionsText:{type:String,default:"Items not found"},getSelectedState:{type:Function,required:!0},multiple:{type:Boolean,default:!1},search:{type:String,default:""},tabindex:{type:[String,Number],default:0},hoveredOption:{type:[String,Number,Boolean,Object],default:null},virtualScroller:{type:Boolean,default:!0},highlightMatchedText:{type:Boolean,default:!0},minSearchChars:{type:[Number,String],default:0},autoSelectFirstOption:{type:Boolean,default:!1},selectedTopShown:{type:Boolean,default:!1},doShowAllOptions:{type:Boolean,default:!1}},emits:["select-option","update:hoveredOption","no-previous-option-to-hover","scroll-bottom"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),s=()=>{var ne;(ne=i.value)==null||ne.focus({preventScroll:!0})},l=g(()=>{var ne;return((ne=i.value)==null?void 0:ne.clientHeight)??200}),a=()=>o("scroll-bottom"),u=ne=>{const Z=ne.target;Z&&Z.scrollTop+Z.clientHeight===Z.scrollHeight&&a()},c=W(""),d=g(()=>r.hoveredOption??null),f=(ne,Z)=>{o("update:hoveredOption",ne),c.value=Z},{getText:h,getGroupBy:p,getTrackBy:v,getDisabled:y}=wl(r),b=Ye("minSearchChars"),S=g(()=>{var ne;const Z=r.getSelectedState,Ve=(ne=r.options)==null?void 0:ne.find(Pe=>Z(Pe));return Ve?h(Ve):""}),w=g(()=>{var ne;return S.value.toLowerCase()===((ne=r.search)==null?void 0:ne.toLowerCase())}),x=g(()=>{if(r.doShowAllOptions&&w.value||!r.search||r.search.lengthh(Z).toUpperCase().includes(ne))}),k=g(()=>r.groupBy?x.value.reduce((ne,Z)=>{const Ve=p(Z);return Ve?(ne[Ve]||(ne[Ve]=[]),ne[Ve].push(Z)):ne._noGroup.push(Z),ne},{_noGroup:[]}):{_noGroup:x.value}),$=vg(k,r),C=ne=>!Ta(ne),T=ne=>{ne===d.value||C(ne)&&y(ne)||f(ne??null,"mouse")},_=ne=>{f(ne??null,"keyboard")},M=()=>{const ne=V.value&&typeof V.value=="object"?{...V.value}:V.value;o("select-option"),r.selectedTopShown&&T(ne)},F=g(()=>Object.values($.value).flat()),L=g(()=>x.value.some(ne=>p(ne))?F.value:x.value),H=g(()=>L.value.findIndex(ne=>C(d.value)&&v(ne)===v(d.value))),E=g(()=>({...Bt(r,["getSelectedState","color","search","highlightMatchedText"]),minSearchChars:b.value,getText:h,getTrackBy:v})),P=(ne,Z=!1)=>{const Ve=[...L.value||[]],Pe=Z?Ve.reverse():Ve,qe=Z?ne*-1-1:ne;return Pe.slice(qe).find(bt=>!y(bt))},V=g(()=>{const ne=H.value-1,Z=L.value[ne];if(C(Z)&&!(ne===0&&y(Z)))return P(H.value-1,!0)}),O=ne=>{T(ne),o("select-option")},N=ne=>{r.selectedTopShown||T(ne)},re=ne=>{r.selectedTopShown&&T(ne)},X=()=>{if(!C(d.value)){_(P(0,!0));return}C(V.value)?_(V.value):o("no-previous-option-to-hover")},ke=()=>{if(!C(d.value)){$e();return}const ne=H.value+1,Z=L.value[ne];C(Z)&&!(ne===L.value.length-1&&y(Z))&&_(P(H.value+1))},$e=()=>_(P(0)),{itemRefs:ye,setItemRef:j}=K7(),ce=Ne(),Se=ne=>{var Z;if(!C(ne))return;const Ve=Rt(ye.value[v(ne)]);Ve&&z7(Ve);const Pe=(Z=ce.value)==null?void 0:Z[0];r.virtualScroller&&Pe.virtualScrollTo(H.value)};return fe(()=>r.hoveredOption,ne=>{(!c.value||c.value==="keyboard")&&C(ne)&&Se(ne)}),fe(x,()=>{r.autoSelectFirstOption&&$e()},{immediate:!0}),e({focusPreviousOption:X,focusNextOption:ke,focusFirstOption:$e,scrollToOption:Se,focus:s}),(ne,Z)=>(A(),I("div",{ref_key:"root",ref:i,class:"va-select-option-list",tabindex:t.tabindex,onKeydown:[Ce(be(X,["stop","prevent"]),["up"]),Ce(be(X,["stop","prevent"]),["left"]),Ce(be(ke,["stop","prevent"]),["down"]),Ce(be(ke,["stop","prevent"]),["right"]),Ce(be(M,["stop","prevent"]),["enter"]),Ce(be(M,["stop","prevent"]),["space"])],onScrollPassive:u,role:"listbox","aria-multiselectable":ne.$props.multiple},[(A(!0),I(_e,null,Ge(m($),(Ve,Pe)=>(A(),I(_e,{key:Pe},[Pe!=="_noGroup"?(A(),I("span",q7,Be(Pe),1)):z("",!0),ne.$props.virtualScroller?(A(),te(m(rf),{key:1,ref_for:!0,ref_key:"virtualScrollerRef",ref:ce,items:Ve,"track-by":m(v),"wrapper-size":l.value,"onScroll:bottom":a},{default:J(({item:qe,index:bt})=>[D(ne.$slots,"default",de(we({option:qe,index:bt,selectOption:(B=qe)=>O(B)})),()=>[he(m(c0),ee({option:qe,"current-option":d.value,disabled:m(y)(qe)},E.value,{onClick:be(M,["stop"]),onMouseenter:B=>re(qe),onMousemove:B=>N(qe)}),null,16,["option","current-option","disabled","onMouseenter","onMousemove"])])]),_:2},1032,["items","track-by","wrapper-size"])):(A(!0),I(_e,{key:2},Ge(Ve,(qe,bt)=>D(ne.$slots,"default",de(ee({key:m(v)(qe)},{option:qe,index:bt,selectOption:O})),()=>[he(m(c0),ee({ref_for:!0,ref:m(j)(m(v)(qe)),"current-option":d.value,option:qe,disabled:m(y)(qe)},E.value,{onClick:be(M,["stop"]),onMouseenter:B=>re(qe),onMousemove:B=>N(qe)}),{"option-content":J(()=>[D(ne.$slots,"option-content",de(we({option:qe,index:bt})))]),_:2},1040,["current-option","option","disabled","onMouseenter","onMousemove"])])),128))],64))),128)),x.value.length?z("",!0):(A(),I("div",Y7,Be(t.noOptionsText),1))],40,G7))}}),J7=me(X7),Q7={key:0,class:"va-select-content__placeholder"},Z7=["placeholder"],eY={key:0,class:"va-select-content__option"},tY={key:1,class:"va-select-content__separator"},nY=["placeholder","disabled","readonly"],rY=ie({name:"VaSelectContent",__name:"VaSelectContent",props:{...vi,ariaAttributes:{type:Object},value:{type:Array,required:!0},valueString:{type:String},separator:{type:String,default:", "},placeholder:{type:String,default:""},tabindex:{type:[String,Number],default:0},hiddenSelectedOptionsAmount:{type:[Number,String],default:0},isAllOptionsShown:{type:Boolean,default:!1},autocomplete:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},getText:{type:Function,required:!0},autocompleteInputValue:{type:String,default:""}},emits:["toggle-hidden","autocomplete-input","focus-prev","focus-next","select-option","delete-last-selected"],setup(t,{emit:e}){const n=t,r=e,o=W(),i=g(()=>n.placeholder&&!n.valueString),s=()=>r("toggle-hidden"),{value:l,focused:a}=Or(n),u=g({get:()=>n.autocompleteInputValue,set:v=>r("autocomplete-input",v)}),c=Ye("hiddenSelectedOptionsAmount");dt(()=>{n.multiple||n.autocomplete&&(u.value=n.valueString)}),fe(a,v=>{var y,b;!n.autocomplete||!v||(u.value?(y=o.value)==null||y.setSelectionRange(0,u.value.length):(b=o.value)==null||b.focus())});const d=v=>{n.multiple&&l.value.length&&v.key==="Backspace"&&!u.value&&r("delete-last-selected")},f=v=>{var y;n.autocomplete&&((y=o.value)==null||y.focus(),v.stopPropagation())},h=v=>aa(v)?v.icon:void 0,p=g(()=>n.multiple?l.value:l.value[0]);return(v,y)=>(A(),I("div",{class:"va-select-content",onClick:f},[i.value&&!v.$props.autocomplete?(A(),I("span",Q7,[q("input",ee(t.ariaAttributes,{placeholder:v.$props.placeholder,readonly:""}),null,16,Z7)])):n.autocomplete&&!n.multiple?z("",!0):D(v.$slots,"content",de(ee({key:1},{value:p.value,valueString:v.$props.valueString,valueArray:v.$props.value,tabindex:v.$props.tabindex,ariaAttributes:t.ariaAttributes})),()=>[(A(!0),I(_e,null,Ge(v.$props.value,(b,S)=>(A(),I(_e,{key:S},[b!==""?(A(),I("span",eY,[D(v.$slots,"option-content",de(we({option:b,index:S,selectOption:()=>{}})),()=>[h(b)?(A(),te(m(Ze),{key:0,size:"small",class:"va-select-option__icon",name:h(b)},null,8,["name"])):z("",!0),Ue(" "+Be(t.getText(b)),1)])])):z("",!0),Su.value=b),class:"va-select-content__autocomplete",ref_key:"autocompleteInput",ref:o,autocomplete:"off","aria-autocomplete":"list",placeholder:v.$props.placeholder,disabled:v.$props.disabled,readonly:v.$props.readonly,onKeydown:[y[1]||(y[1]=Ce(be(b=>v.$emit("focus-prev"),["stop","prevent"]),["up"])),y[2]||(y[2]=Ce(be(b=>v.$emit("focus-next"),["stop","prevent"]),["down"])),y[3]||(y[3]=Ce(be(b=>v.$emit("select-option"),["stop","prevent"]),["enter"])),d]}),null,16,nY)),[[_m,u.value]]):z("",!0),D(v.$slots,"hiddenOptionsBadge",de(we({amount:t.hiddenSelectedOptionsAmount,isShown:v.$props.isAllOptionsShown,toggle:s})),()=>[m(c)&&!v.$props.isAllOptionsShown?(A(),te(m(Yk),{key:0,class:"va-select-content__state-icon",color:"info",text:`+${m(c)}`,tabindex:v.$props.tabindex,onClick:be(s,["stop"])},null,8,["text","tabindex"])):z("",!0)]),D(v.$slots,"hideOptionsButton",de(we({isShown:v.$props.isAllOptionsShown,toggle:s})),()=>[v.$props.isAllOptionsShown?(A(),te(m(Ze),{key:0,role:"button",class:"va-select-content__state-icon",size:"small",name:"reply",tabindex:v.$props.tabindex,onClick:be(s,["stop"])},null,8,["tabindex"])):z("",!0)])]))}}),oY=me(rY),iY={maxVisibleOptions:{type:Number||String,default:0}},sY=(t,e)=>{const n=$n(t,"modelValue"),r=W(!1),o=W([]),i=W([]),s=g(()=>i.value.length),l=g(()=>[...o.value,...i.value]),a=g(()=>!t.maxVisibleOptions||r.value?l.value:o.value);return fe(n,()=>{if(!Array.isArray(n.value)){o.value=[e(n.value)],i.value=[];return}const c=n.value.filter(d=>!Ta(d)).map(e);t.maxVisibleOptions?(o.value=c.slice(0,t.maxVisibleOptions),i.value=c.slice(t.maxVisibleOptions)):(o.value=[...c],i.value=[])},{immediate:!0}),{toggleHiddenOptionsState:()=>r.value=!r.value,isAllOptionsShown:r,visibleSelectedOptions:a,hiddenSelectedOptionsAmount:s,allSelectedOptions:l}},lY={dropdownIcon:{type:[String,Object],default:()=>({open:"va-arrow-down",close:"va-arrow-up"}),validator:t=>typeof t=="string"?!0:Object.entries(t).every(([e,n])=>["open","close"].includes(e)&&typeof n=="string")}},aY=(t,e)=>{const n=g(()=>t.dropdownIcon?typeof t.dropdownIcon=="string"?t.dropdownIcon:e.value?t.dropdownIcon.close:t.dropdownIcon.open:""),{getHoverColor:r,getColor:o}=He(),i=g(()=>o("secondary")),s=g(()=>t.readonly?r(i.value):i.value);return{toggleIcon:n,toggleIconColor:s}},uY={separator:{type:String,default:", "}},cY=(t,e,n)=>g(()=>{var r;return(r=e.value)!=null&&r.length&&e.value.map(n).join(t.separator)||t.clearValue}),dY={autocomplete:{type:Boolean,default:!1}},fY=(t,e,n,r,o)=>{const i=l=>l!=null&&l.length?o(l.at(-1)):"";e.autocomplete&&!e.multiple&&(t.value=i(n.value)),fe(n,(l,a)=>{if(!e.autocomplete)return;const u=i(l),c=i(a);u!==c&&(t.value=e.multiple?"":u,e.multiple||(r.value=!1))}),fe(t,l=>{e.autocomplete&&l&&l!==i(n.value)&&(r.value=!0)});const s=()=>{t.value=e.multiple?"":i(n.value)};return fe(r,(l,a)=>{e.autocomplete&&(!l||a)&&s()}),t},hY=()=>({popupId:`combobox-controls-${Qr()}`}),pY={maxSelections:{type:[Number,String],default:void 0}};function mY(t,e){return{exceedsMaxSelections:()=>e.value===void 0||isNaN(+e.value)?!1:t.value.length>=Number(e.value),addOption:o=>[...t.value,o]}}const d0=nt(Wn),gY=ie({name:"VaSelect",__name:"VaSelect",props:{...d0,...Me,...Cl,...Co,...Xa,...pY,...ru,...vi,...iY,...lY,...xl,...uY,...dY,...Cr,modelValue:{type:[String,Number,Array,Object,Boolean],default:void 0},placement:{...Cr.placement,default:"bottom"},keepAnchorWidth:{...Cr.keepAnchorWidth,default:!0},offset:{...Cr.offset,default:[1,0]},closeOnContentClick:{...Cr.closeOnContentClick,default:!1},trigger:{...Cr.trigger,default:()=>["click","right-click","space","enter"]},allowCreate:{type:[Boolean,String],default:!1,validator:t=>[!0,!1,"unique"].includes(t)},color:{type:String,default:"primary"},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},width:{type:String,default:"100%"},maxHeight:{type:String,default:"256px"},noOptionsText:{type:String,default:"$t:noOptions"},hideSelected:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:0},virtualScroller:{type:Boolean,default:!1},selectedTopShown:{type:Boolean,default:!1},highlightMatchedText:{type:Boolean,default:!0},minSearchChars:{type:[Number,String],default:0},autoSelectFirstOption:{type:Boolean,default:!1},placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:"$t:search"},ariaLabel:{type:String,default:"$t:select"},ariaSearchLabel:{type:String,default:"$t:optionsFilter"},ariaClearLabel:{type:String,default:"$t:reset"},search:{type:String,default:void 0}},emits:["update:modelValue","update-search","create-new","scroll-bottom","update:search",...Cg,...mi,...tf],setup(t,{expose:e,emit:n}){const r=t,o=n,{tp:i,t:s}=yt(),l=Ne(),a=Ne(),u=Ne(),c=mg(a),{getValue:d,getText:f,getTrackBy:h,tryResolveByValue:p}=wl(r),v=ge=>f(p(ge)),y=()=>o("scroll-bottom"),[b]=qi("search",r,o,""),S=g(()=>r.searchable||r.allowCreate&&!r.autocomplete);fe(b,ge=>{o("update-search",ge),r.autocomplete||(ye.value=null)});const w=ge=>{if(Ta(ge)||typeof ge=="object")return ge;const wt=r.options.find(mt=>ge===d(mt));return wt===void 0?(pt(`[VaSelect]: can not find option in options list (${JSON.stringify(r.options)}) by provided value (${JSON.stringify(ge)})!`),ge):wt},{toggleHiddenOptionsState:x,isAllOptionsShown:k,visibleSelectedOptions:$,hiddenSelectedOptionsAmount:C,allSelectedOptions:T}=sY(r,w),_=g({get(){if(r.multiple)return T.value;const ge=w(r.modelValue);return Array.isArray(ge)&&(pt("Model value should be a string, number, boolean or an object for a single Select."),ge.length)?ge.at(-1):ge},set(ge){Array.isArray(ge)?o("update:modelValue",ge.map(d)):o("update:modelValue",d(ge))}}),M=cY(r,$,v),{canBeCleared:F,clearIconProps:L,onFocus:H,onBlur:E}=nf(r,_),P=g(()=>F.value?r.multiple&&Array.isArray(_.value)?!!_.value.length:!0:!1),V=g(()=>r.options?r.selectedTopShown?r.options.slice().sort((ge,wt)=>{const mt=N(ge),Wt=N(wt);return mt&&Wt?0:mt&&!Wt?-1:1}):r.hideSelected?r.options.filter(ge=>!N(ge)):r.options:[]),O=g(()=>Array.isArray(_.value)?_.value.map(ge=>p(ge)):p(_.value)),N=ge=>Array.isArray(O.value)?!Ta(O.value.find(wt=>re(wt,ge))):re(O.value,ge),re=(ge,wt)=>{const mt=d(ge),Wt=d(wt);return mt===Wt?!0:typeof mt=="string"&&typeof Wt=="string"?mt===Wt:mt===null||Wt===null?!1:typeof mt=="object"&&typeof Wt=="object"?h(mt)===h(Wt):!1},X=ge=>Array.isArray(ge.value),ke=ge=>{if(ye.value===null){R();return}if(S.value&&(b.value=""),r.multiple&&X(_)){const{exceedsMaxSelections:wt,addOption:mt}=mY(_,W(r.maxSelections));if(N(ge))_.value=_.value.filter(_o=>!re(ge,_o));else{if(wt())return;_.value=mt(ge)}}else _.value=ge,R();cn()},$e=()=>{var ge;const wt=(ge=r.options)==null?void 0:ge.some(Wt=>[b.value,Mt.value].includes(f(Wt)));!((r.allowCreate==="unique"||r.autocomplete)&&wt)&&(o("create-new",b.value||Mt.value),b.value="",Mt.value="")},ye=W(null),j=()=>{if(!Z.value){bt();return}ke(ye.value)},ce=()=>{const ge=!!r.allowCreate&&(b.value||Mt.value);ye.value!==null?j():ge&&$e()},Se=()=>{var ge;return(ge=l.value)==null?void 0:ge.focusPreviousOption()},ne=()=>{var ge;return(ge=l.value)==null?void 0:ge.focusNextOption()},{isOpenSync:Z,dropdownProps:Ve}=wg(r,o,{defaultCloseOnValueUpdate:g(()=>!r.multiple)}),Pe=g(()=>({...Ve.value,stateful:!1,innerAnchorSelector:".va-input-wrapper__field"})),qe=g({get:()=>Z.value,set:ge=>{ge?bt():B()}}),bt=()=>{r.disabled||r.readonly||(Z.value=!0,ve(),U())},B=()=>{Z.value=!1,r.autocomplete||(b.value=""),Ot(()=>{rv(),c.focusIfNothingIfFocused()})},R=()=>{B(),c.value=!0},Q=()=>{var ge;(ge=u.value)==null||ge.focus()},K=()=>{var ge,wt;(ge=l.value)==null||ge.focus(),!r.modelValue&&((wt=l.value)==null||wt.focusFirstOption())},U=async()=>{await Ot(),S.value?Q():K()},Y=()=>{qe.value||(E(),m_.onBlur(),c.value?c.value=!1:rv())},oe=g(()=>r.disabled?-1:r.tabindex),ae=g(()=>r.disabled||r.autocomplete?-1:0),ve=()=>{const ge=_.value;if(typeof ge!="object"&&Array.isArray(ge)&&!ge.length)return;const mt=Array.isArray(ge)?ge[ge.length-1]:ge;ye.value=mt,Ot(()=>{var Wt;return(Wt=l.value)==null?void 0:Wt.scrollToOption(mt)})};let ue="",Oe;const Re=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter"," "],Le=ge=>{if(Re.some(Wt=>Wt===ge.key))return;const wt=ge.key.length===1,mt=ge.key==="Backspace"||ge.key==="Delete";if(clearTimeout(Oe),mt?ue=ue?ue.slice(0,-1):"":wt&&(ue+=ge.key),S.value){b.value=ue;return}if(ue){const Wt=r.options.find(_o=>f(_o).toLowerCase().startsWith(ue.toLowerCase()));Wt&&(ye.value=Wt)}Oe=setTimeout(()=>{ue=""},1e3)},Ke=Ye("minSearchChars"),Qe=g(()=>({...Bt(r,["textBy","trackBy","groupBy","valueBy","disabledBy","color","virtualScroller","highlightMatchedText","delay","selectedTopShown"]),autoSelectFirstOption:r.autoSelectFirstOption||r.autocomplete,search:b.value||Mt.value,tabindex:oe.value,selectedValue:_.value,options:V.value,getSelectedState:N,noOptionsText:i(r.noOptionsText),doShowAllOptions:To.value,minSearchChars:Ke.value})),{toggleIcon:ft,toggleIconColor:G}=aY(r,Z),Fe=g(()=>c.value||Z.value),pe=Ln(),ze=ct("va-select-anchor",()=>({nowrap:!!(r.maxVisibleOptions&&!pe.content)})),Xe=gt(d0),Yt=g(()=>({...Xe.value,error:d_.value,errorMessages:f_.value,focused:Fe.value,"aria-label":r.ariaLabel||(r.modelValue?`${s("selectedOption")}: ${r.modelValue}`:s("noSelectedOption"))})),rr=g(()=>({...Bt(r,["placeholder","autocomplete","multiple","disabled","readonly"]),tabindex:oe.value,value:$.value,valueString:M.value,hiddenSelectedOptionsAmount:C.value,isAllOptionsShown:k.value,focused:c.value,autocompleteInputValue:Mt.value,getText:v})),Mt=fY(b,r,$,Z,f),Zt=ge=>Mt.value=ge,To=W(!0);fe(qe,()=>{To.value=!0}),fe(b,()=>{To.value=!1});const _l=()=>{r.disabled||Kr(Rt(a.value))},hu=()=>{qe.value&&(qe.value=!1),Ot(()=>{r.disabled||Yd(Rt(a.value))})},bi=()=>h_(()=>{r.multiple?_.value=Array.isArray(r.clearValue)?r.clearValue:[]:_.value=r.clearValue,b.value="",o("clear"),p_(),Ot(()=>{c.value=!0})}),cn=ge=>{r.autocomplete&&!r.disabled&&!r.readonly&&(c.value=!0,Z.value=!0)},u_=ge=>{if(r.disabled||r.readonly)return;const wt=ge.target&&"tagName"in ge.target&&ge.target.tagName==="INPUT";ge.code==="Space"&&wt||(ge.preventDefault(),qe.value=!qe.value)},c_=()=>{Array.isArray(_.value)&&(_.value=_.value.slice(0,-1))},{validate:rv,computedError:d_,computedErrorMessages:f_,withoutValidation:h_,resetValidation:p_,validationAriaAttributes:Tie,listeners:m_,isTouched:g_}=wo(r,o,{reset:bi,focus:_l,value:_});fe(Z,ge=>{ge||(g_.value=!0)});const{popupId:Af}=hY(),Tf=b,v_=H;return e({focus:_l,blur:hu,reset:bi}),(ge,wt)=>(A(),te(m(er),ee({ref:"dropdown",modelValue:qe.value,"onUpdate:modelValue":wt[4]||(wt[4]=mt=>qe.value=mt),class:"va-select va-select__dropdown va-select-dropdown"},Pe.value,{role:"combobox","inner-anchor-selector":".va-input-wrapper__field","keyboard-navigation":!1}),{anchor:J(()=>[he(m(Wn),ee(Yt.value,{ref_key:"input",ref:a,class:["va-select__anchor va-select-anchor__input",m(ze)],"aria-haspopup":"listbox","model-value":m(M),readonly:!0,"aria-label":ge.$props.ariaLabel,"aria-controls":m(Af),"aria-owns":m(Af),onFocus:m(v_),onBlur:Y}),vn({icon:J(()=>[P.value?(A(),te(m(Ze),ee({key:0,role:"button","aria-label":m(i)(ge.$props.ariaClearLabel)},m(L),{onClick:be(bi,["stop"]),onKeydown:[Ce(be(bi,["stop"]),["enter"]),Ce(be(bi,["stop"]),["space"])]}),null,16,["aria-label","onKeydown"])):z("",!0)]),appendInner:J(()=>[he(m(Ze),{color:m(G),name:m(ft),class:"va-select__toggle-icon",role:"button",tabindex:ae.value,"aria-expanded":qe.value,onKeydown:Ce(u_,["enter"])},null,8,["color","name","tabindex","aria-expanded"])]),default:J(({ariaAttributes:mt})=>[he(m(oY),ee(rr.value,{ariaAttributes:mt,separator:ge.$props.separator,onToggleHidden:m(x),onAutocompleteInput:Zt,onFocusPrev:Se,onFocusNext:ne,onSelectOption:ce,onDeleteLastSelected:c_}),vn({_:2},[Ge(ge.$slots,(Wt,_o)=>({name:_o,fn:J(y_=>[D(ge.$slots,_o,de(we(y_)))])}))]),1040,["ariaAttributes","separator","onToggleHidden"])]),_:2},[Ge(ge.$slots,(mt,Wt)=>({name:Wt,fn:J(_o=>[D(ge.$slots,Wt,de(we(_o)))])}))]),1040,["class","model-value","aria-label","aria-controls","aria-owns","onFocus"])]),default:J(()=>[he(m(Xi),{class:"va-select-dropdown__content",style:se({width:ge.$props.width}),onKeydown:Ce(R,["esc"]),role:"dialog"},{default:J(()=>[S.value?(A(),te(m(Wn),{key:0,ref_key:"searchBar",ref:u,class:"va-select-dropdown__content-search-input",modelValue:m(Tf),"onUpdate:modelValue":wt[0]||(wt[0]=mt=>Tt(Tf)?Tf.value=mt:null),"aria-label":m(i)(ge.$props.ariaSearchLabel),tabindex:oe.value,placeholder:m(i)(ge.$props.searchPlaceholderText),preset:"bordered",onKeydown:[Ce(be(Se,["stop","prevent"]),["up"]),Ce(be(Se,["stop","prevent"]),["left"]),Ce(be(ne,["stop","prevent"]),["down"]),Ce(be(ne,["stop","prevent"]),["right"]),Ce(be(ce,["prevent"]),["enter"])],onFocus:wt[1]||(wt[1]=mt=>ye.value=null)},null,8,["modelValue","aria-label","tabindex","placeholder","onKeydown"])):z("",!0),he(m(J7),ee({ref_key:"optionList",ref:l,class:"va-select-dropdown__options-wrapper",hoveredOption:ye.value,"onUpdate:hoveredOption":wt[2]||(wt[2]=mt=>ye.value=mt),style:{maxHeight:ge.$props.maxHeight},id:m(Af)},Qe.value,{onSelectOption:j,onNoPreviousOptionToHover:Q,onKeydown:[wt[3]||(wt[3]=Ce(be(mt=>u.value&&u.value.focus(),["stop","prevent"]),["tab"])),Le],onScrollBottom:y}),{default:J(mt=>[D(ge.$slots,"option",de(we(mt)))]),"option-content":J(mt=>[D(ge.$slots,"option-content",de(we(mt)))]),_:3},16,["hoveredOption","style","id"])]),_:3},8,["style"])]),_:3},16,["modelValue"]))}}),vY=me(gY),yY={key:0,class:"va-skeleton__wave"},bY=ie({name:"VaSkeleton",__name:"VaSkeleton",props:{color:{type:String,default:"backgroundElement"},delay:{type:[Number,String],default:100},tag:{type:String,default:"div"},animation:{type:String,default:"pulse"},lines:{type:[String,Number],default:1},height:{type:[String],default:"5em"},width:{type:[String],default:"100%"},lineGap:{type:String,default:"8px"},lastLineWidth:{type:[String],default:"75%"},variant:{type:String,default:"squared"},ariaLabel:{type:String,default:"$t:loading"}},setup(t){const e=t,n=W(!1),r=Ye("delay");let o;dt(()=>{clearTimeout(o),setTimeout(()=>{n.value=!0},r.value)}),jt(()=>{clearTimeout(o)});const i=g(()=>e.variant==="text"?`${e.lines}em`:e.height),s=g(()=>e.variant==="circle"?i.value:e.width),{getColor:l}=He(),a=g(()=>l(e.color));g(()=>`-${e.lineGap}`);const u=ct("va-skeleton",()=>({lines:Number(e.lines)>1,text:e.variant==="text",circle:e.variant==="circle",hidden:!n.value,pulse:e.animation==="pulse",wave:e.animation==="wave"})),c=g(()=>e.variant==="circle"?"50%":e.variant==="rounded"?`var(--va-skeleton-border-radius, calc(${i.value} / 5))`:"0px"),{tp:d}=yt(),f=os(),h=g(()=>[...Object.keys(u),f.class]);return(p,v)=>(A(),te(zn(t.tag),{class:Ae(["va-skeleton",h.value]),role:"status","aria-live":"polite","aria-label":m(d)(p.$props.ariaLabel),"aria-atomic":"true",style:se(`--va-color-computed: ${String(a.value)};--va-height-computed: ${String(i.value)};--va-width-computed: ${String(s.value)};--va-border-radius: ${String(c.value)};--va-line-gap: ${String(t.lineGap)};--va-last-line-width: ${String(t.lastLineWidth)}`)},{default:J(()=>[D(p.$slots,"default"),t.animation==="wave"?(A(),I("div",yY)):z("",!0)]),_:3},8,["aria-label","class","style"]))}}),SY=ie({name:"VaSkeletonGroup",__name:"VaSkeletonGroup",props:{color:{type:String,default:"backgroundElement"},delay:{type:[Number,String],default:100},animation:{type:String,default:"pulse"},lines:{type:[Number,String],default:1},lineGap:{type:String,default:"8px"},lastLineWidth:{type:[String],default:"75%"}},setup(t){const e=t,n=W(!1),r=Ye("delay");let o;dt(()=>{o=setTimeout(()=>{n.value=!0},r.value)}),wm(()=>{clearTimeout(o)});const i=ct("va-skeleton-group",()=>({hidden:n.value===!1})),s=g(()=>({...e,delay:0}));return(l,a)=>(A(),te(m(Ya),{components:{VaSkeleton:s.value}},{default:J(()=>[q("div",ee({class:["va-skeleton-group",m(i)]},l.$attrs),[D(l.$slots,"default",{},void 0,!0)],16)]),_:3},8,["components"]))}}),CY=hs(SY,[["__scopeId","data-v-597bab9a"]]),wY=me(bY),kY=me(CY),qx=Symbol("VaSidebar"),xY=t=>{Pr(qx,t)},$Y=()=>Mn(qx,{color:"background-element"}),AY=t=>{const e=W(null);return Ys([t],()=>{var n;e.value=((n=t.value)==null?void 0:n.clientWidth)??null}),tr(()=>{var n;e.value=((n=t.value)==null?void 0:n.clientWidth)??null}),e},TY=ie({name:"VaSidebar",__name:"VaSidebar",props:{...Me,activeColor:{type:String,default:"primary"},hoverColor:{type:String,default:void 0},hoverOpacity:{type:[Number,String],default:.2,validator:t=>Number(t)>=0&&Number(t)<=1},borderColor:{type:String,default:void 0},color:{type:String,default:"background-element"},textColor:{type:String},gradient:{type:Boolean,default:!1},minimized:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},width:{type:String,default:"16rem"},minimizedWidth:{type:String,default:"4rem"},modelValue:{type:Boolean,default:!0},animated:{type:[Boolean,String],default:!0},closeOnClickOutside:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,{getColor:i}=He();xY(r);const s=W(!1),l=g(()=>r.minimized||r.hoverable&&!s.value),a=W(),u=AY(a),c=g(()=>r.modelValue===!0||u.value===null?!0:u.value>0),d=W(),f=()=>r.modelValue?l.value?r.minimizedWidth:r.width:0,h=g(()=>l.value?r.minimizedWidth:r.width);tr(()=>{const k=f();setTimeout(()=>{d.value=k})});const p=g(()=>i(r.color)),{textColorComputed:v}=qt(p),y=g(()=>{const k=i(p.value);return{color:v.value,backgroundColor:k,backgroundImage:r.gradient?Ym(k):void 0,overflowX:u.value===d.value?void 0:"hidden",width:d.value,minWidth:d.value}}),b=ct("va-sidebar",()=>({minimized:l.value,animated:!!r.animated,"animated-right":r.animated==="right","animated-left":r.animated==="left"||r.animated===!0})),S=k=>{s.value=r.hoverable&&k},w=Ne();Jd([w],()=>{r.closeOnClickOutside&&r.modelValue&&setTimeout(()=>{o("update:modelValue",!1)},0)});const x=g(()=>({textColor:r.textColor,activeColor:r.activeColor,hoverColor:r.hoverColor,borderColor:r.borderColor,hoverOpacity:r.hoverOpacity}));return e({isMinimized:l,isHovered:s,updateHoverState:S,rootElement:w,menu:a,doShowMenu:c,menuWidth:h,sidebarWidth:d}),(k,$)=>(A(),I("aside",{ref_key:"rootElement",ref:w,class:Ae(["va-sidebar",m(b)]),style:se(y.value),onMouseenter:$[0]||($[0]=C=>S(!0)),onMouseleave:$[1]||($[1]=C=>S(!1))},[xr(q("div",{class:"va-sidebar__menu",ref_key:"menu",ref:a,style:se({width:h.value,minWidth:h.value})},[he(m(Ya),{components:{VaSidebarItem:x.value}},{default:J(()=>[D(k.$slots,"default")]),_:3},8,["components"])],4),[[zs,c.value]])],38))}}),_Y=me(TY),OY=ie({name:"VaSidebarItem",__name:"VaSidebarItem",props:{...cs,...Me,active:{type:Boolean,default:!1},textColor:{type:String,default:void 0},activeColor:{type:String,default:"primary"},hoverColor:{type:String,default:void 0},hoverOpacity:{type:[Number,String],default:.2},borderColor:{type:String,default:void 0},disabled:{type:Boolean,default:!1}},setup(t){const e=t,n=fc(),r=$Y(),{isHovered:o}=Ja(n,$n(e,"disabled")),{getColor:i,getHoverColor:s,getFocusColor:l}=He(),{hasKeyboardFocus:a,keyboardFocusListeners:u}=kl(),c=g(()=>e.active&&!o.value&&!a.value?i(e.activeColor):a.value?l(i(e.hoverColor||e.activeColor)):"#ffffff00"),d=g(()=>I6(i(r==null?void 0:r.color),c.value)),{textColorComputed:f}=qt(d),h=g(()=>{const y={color:f.value};if(e.disabled)return y;if((o.value||e.active||a.value)&&(y.backgroundColor=c.value),e.active){const b={...r,...e};y.borderColor=i(b.borderColor||b.activeColor)}return a.value&&(y.backgroundColor=l(i(e.hoverColor||e.activeColor))),o.value&&(y.backgroundColor=s(i(e.hoverColor||e.activeColor),Number(e.hoverOpacity))),y}),{tagComputed:p,linkAttributesComputed:v}=gi(e);return(y,b)=>(A(),te(zn(m(p)),ee({ref_key:"rootElement",ref:n,class:["va-sidebar__item va-sidebar-item",{"va-sidebar-item--active":y.$props.active,"va-sidebar-item--disabled":y.$props.disabled}],tabindex:y.$props.disabled?-1:0,style:h.value},m(v),ur(m(u))),{default:J(()=>[D(y.$slots,"default")]),_:3},16,["tabindex","class","style"]))}}),PY={class:"va-sidebar__item__content va-sidebar-item-content"},BY=ie({name:"VaSidebarItemContent",__name:"VaSidebarItemContent",setup(t){return(e,n)=>(A(),I("div",PY,[D(e.$slots,"default")]))}}),MY={class:"va-sidebar__title va-sidebar-item-title"},IY=ie({name:"VaSidebarItemTitle",__name:"VaSidebarItemTitle",setup(t){return(e,n)=>(A(),I("div",MY,[D(e.$slots,"default")]))}}),DY=me(BY),EY=me(IY),LY=me(OY),f0=(t,e,n,r,o)=>{(Array.isArray(t)&&!o||!Array.isArray(t)&&o)&&pt(`The type "${Array.isArray(t)?"array":typeof t}" of prop "model-value" does not match prop "range = ${o}".`),r{sr&&pt(`The value of the slider is ${s}, the maximum value is ${r}, the value of this slider can not be greater than the maximum value`)};return Array.isArray(t)?t.map(i):i(t),!0},VY={key:0,class:"va-slider__input-wrapper","aria-hidden":"true"},RY=["id"],FY={key:2,class:"va-input__label","aria-hidden":"true"},NY=["tabindex","onFocus"],HY=["tabindex"],zY={key:3,class:"va-input__label--inverse","aria-hidden":"true"},jY=["id"],WY={key:5,class:"va-slider__input-wrapper"},UY=ie({name:"VaSlider",__name:"VaSlider",props:{...Kt,...Me,range:{type:Boolean,default:!1},modelValue:{type:[Number,Array],default:0},trackLabel:{type:[Function,String]},color:{type:String,default:"primary"},trackColor:{type:String,default:""},labelColor:{type:String,default:""},trackLabelVisible:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},label:{type:String,default:""},invertLabel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},pins:{type:Boolean,default:!1},iconPrepend:{type:String,default:""},iconAppend:{type:String,default:""},vertical:{type:Boolean,default:!1},showTrack:{type:Boolean,default:!0},ariaLabel:{type:String,default:"$t:sliderValue"}},emits:["drag-start","drag-end","change","update:modelValue"],setup(t,{emit:e}){const n=t,r=e,{getColor:o,getHoverColor:i}=He(),s=Ne(),l=Ne(),{setItemRefByIndex:a,itemRefs:u}=af(),c=W(!1),d=W(!1),f=W(0),h=W(0),p=n.range?[0,100]:0,{valueComputed:v}=xt(n,r,"modelValue",{defaultValue:p}),y=W(0),b=W(!1),S=Ye("min"),w=Ye("max"),x=Ye("step"),k=g(()=>n.vertical?[1,0]:[0,1]),$=g(()=>n.vertical?"bottom":"left"),C=g(()=>n.vertical?"height":"width"),T=g(()=>Array.isArray(O.value)&&O.value[1]-x.valueArray.isArray(O.value)&&O.value[0]+x.value>O.value[1]),M=ct("va-slider",()=>({...Bt(n,["disabled","readonly","vertical"]),active:c.value,horizontal:!n.vertical,grabbing:b.value})),F=ct("va-slider__handler",()=>({onFocus:!n.range&&(d.value||c.value),inactive:!c.value})),L=g(()=>({color:n.labelColor?o(n.labelColor):o(n.color)})),H=g(()=>({backgroundColor:n.trackColor?o(n.trackColor):i(o(n.color))})),E=g(()=>{if(Array.isArray(O.value)){const G=(O.value[0]-S.value)/(w.value-S.value)*100,Fe=(O.value[1]-S.value)/(w.value-S.value)*100;return{[$.value]:`${G}%`,[C.value]:`${Fe-G}%`,backgroundColor:o(n.color),visibility:n.showTrack?"visible":"hidden"}}else{const G=(O.value-S.value)/(w.value-S.value)*100;return{[C.value]:`${G}%`,backgroundColor:o(n.color),visibility:n.showTrack?"visible":"hidden"}}}),P=g(()=>{if(Array.isArray(O.value)){const G=(O.value[0]-S.value)/(w.value-S.value)*100,Fe=(O.value[1]-S.value)/(w.value-S.value)*100;return[{[$.value]:`${G}%`,backgroundColor:ce(0)?o(n.color):"#ffffff",borderColor:o(n.color)},{[$.value]:`${Fe}%`,backgroundColor:ce(1)?o(n.color):"#ffffff",borderColor:o(n.color)}]}else{const G=(O.value-S.value)/(w.value-S.value)*100;return{[$.value]:`${G}%`,backgroundColor:ce(0)?o(n.color):"#ffffff",borderColor:o(n.color)}}}),V=G=>n.range?P.value[G]:P.value,O=g({get:()=>v.value,set:G=>{d.value||r("change",G),v.value=G}}),N=G=>n.range&&G!==void 0?O.value[G]:O.value,re=g(()=>{const G=(w.value-S.value)/x.value;return h.value/G}),X=g(()=>{const G=`${x.value}`.split(".")[1];return G?Math.pow(10,G.length):1}),ke=g(()=>(w.value-S.value)/x.value-1),$e=g(()=>Array.isArray(O.value)?[(O.value[0]-S.value)/x.value*re.value,(O.value[1]-S.value)/x.value*re.value]:(O.value-S.value)/x.value*re.value),ye=g(()=>[0,h.value]),j=g(()=>[S.value,w.value]),ce=G=>!c.value&&!d.value||n.disabled||n.readonly?!1:n.range?y.value===G:y.value===0,Se=(G,Fe=y.value)=>{var pe,ze;if(G.preventDefault(),!Fe){if(!n.range)Fe=0;else if(Array.isArray($e.value)){const Xe="touches"in G?G.touches[0]:G;Fe=R(Xe)>($e.value[1]-$e.value[0])/2+$e.value[0]?1:0}}Array.isArray(O.value)&&(y.value=Fe),Array.isArray(O.value)?(pe=u.value[Fe])==null||pe.focus():(ze=l.value)==null||ze.focus(),d.value=!0,r("drag-start")},ne=G=>{!b.value||!d.value||n.disabled||n.readonly||(G.preventDefault(),"touches"in G?oe(R(G.touches[0])):oe(R(G)))},Z=()=>{!n.disabled&&!n.readonly&&(d.value&&(r("drag-end"),r("change",O.value)),d.value=!1,b.value=!1)},Ve=(G,Fe,pe)=>Math.max(Math.min(Fe,pe),G),Pe=G=>{var Fe,pe;if(![u.value[0],u.value[1],l.value].includes(document.activeElement)||n.disabled||n.readonly)return;const ze=(Yt,rr)=>{if(Array.isArray(O.value)){const Mt=O.value[rr]+(Yt?x.value:-x.value),Zt=Ve(S.value,Mt,w.value);O.value=[rr===0?Zt:O.value[0],rr===1?Zt:O.value[1]]}else{const Mt=O.value+(Yt?x.value:-x.value),Zt=Ve(S.value,Mt,w.value);O.value=Zt}};["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(G.key)&&G.preventDefault();const Xe=Yt=>Yt===document.activeElement;if(n.range&&Array.isArray(O.value)){const Yt=cn=>n.vertical&&Xe(u.value[0])&&cn.key==="ArrowUp",rr=cn=>n.vertical&&Xe(u.value[0])&&cn.key==="ArrowDown",Mt=cn=>n.vertical&&Xe(u.value[1])&&cn.key==="ArrowUp",Zt=cn=>n.vertical&&Xe(u.value[1])&&cn.key==="ArrowDown",To=cn=>!n.vertical&&Xe(u.value[0])&&cn.key==="ArrowLeft",_l=cn=>!n.vertical&&Xe(u.value[0])&&cn.key==="ArrowRight",hu=cn=>!n.vertical&&Xe(u.value[1])&&cn.key==="ArrowLeft",bi=cn=>!n.vertical&&Xe(u.value[1])&&cn.key==="ArrowRight";switch(!0){case((Zt(G)||hu(G))&&T.value&&O.value[0]!==S.value):(Fe=u.value[0])==null||Fe.focus(),ze(0,0);break;case((Yt(G)||_l(G))&&_.value&&O.value[1]!==w.value):(pe=u.value[1])==null||pe.focus(),ze(1,1);break;case((rr(G)||To(G))&&O.value[0]!==S.value):ze(0,0);break;case((Mt(G)||bi(G))&&O.value[1]!==w.value):ze(1,1);break;case((Zt(G)||hu(G))&&O.value[1]!==S.value):ze(0,1);break;case((Yt(G)||_l(G))&&O.value[0]!==w.value):ze(1,0);break}}else n.vertical?(G.key==="ArrowDown"&&ze(0,0),G.key==="ArrowUp"&&ze(1,0)):(G.key==="ArrowLeft"&&ze(0,0),G.key==="ArrowRight"&&ze(1,0))},qe=G=>Array.isArray(O.value)?G*x.value>O.value[0]&&G*x.valuex.value/(w.value-S.value)*100),B=G=>({backgroundColor:qe(G)?o(n.color):i(o(n.color)),[$.value]:`${G*bt.value}%`,transition:b.value?"none":"var(--va-slider-pin-transition)"}),R=G=>(Q(),n.vertical?f.value-G.clientY:G.clientX-f.value),Q=()=>{s.value&&(h.value=s.value[n.vertical?"offsetHeight":"offsetWidth"],f.value=s.value.getBoundingClientRect()[$.value])},K=G=>(x.value*X.value*G+S.value*X.value)/X.value,U=(G,Fe)=>n.trackLabel?typeof n.trackLabel=="function"?n.trackLabel(G,Fe):n.trackLabel:G,Y=G=>{const Fe=y.value;Array.isArray(O.value)?ae(O.value[Fe],G)&&(Fe===0?O.value=[G,O.value[1]]:O.value=[O.value[0],G]):Gw.value?O.value=w.value:ae(O.value,G)&&(O.value=G)},oe=G=>{const Fe=ye.value,pe=j.value,ze=Array.isArray(O.value)?u.value[y.value]:l.value;if(ze==null||ze.focus(),G>=Fe[0]&&G<=Fe[1]){const Xe=K(Math.round(G/re.value));y.value?Array.isArray($e.value)&&Array.isArray(O.value)&&G<=$e.value[0]?(O.value=[Xe,O.value[0]],y.value=0):Y(Xe):Array.isArray($e.value)&&Array.isArray(O.value)&&G>=$e.value[1]?(O.value=[O.value[1],Xe],y.value=1):Y(Xe)}else GJSON.stringify(G)!==JSON.stringify(Fe),ve=G=>{if(n.disabled||n.readonly)return;const Fe="touches"in G?R(G.touches[0]):R(G);Array.isArray($e.value)&&(y.value=Fe>($e.value[1]-$e.value[0])/2+$e.value[0]?1:0),b.value=!0,oe(Fe),Se(G,y.value)},ue=()=>{document.addEventListener("mousemove",ne),document.addEventListener("touchmove",ne,{passive:!1}),document.addEventListener("mouseup",Z),document.addEventListener("mouseleave",Z),document.addEventListener("touchcancel",Z),document.addEventListener("touchend",Z),document.addEventListener("keydown",Pe)},Oe=()=>{document.removeEventListener("mousemove",ne),document.removeEventListener("touchmove",ne),document.removeEventListener("mouseup",Z),document.removeEventListener("mouseleave",Z),document.removeEventListener("touchcancel",Z),document.removeEventListener("touchend",Z),document.removeEventListener("keydown",Pe)},Re=Qr(),Le=g(()=>`aria-label-id-${Re}`),{tp:Ke}=yt(),Qe=Ln(),ft=g(()=>({role:"slider","aria-valuemin":S.value,"aria-valuemax":w.value,"aria-label":!Qe.label&&!n.label?Ke(n.ariaLabel,{value:String(O.value)}):void 0,"aria-labelledby":Qe.label||n.label?Le.value:void 0,"aria-orientation":n.vertical?"vertical":"horizontal","aria-disabled":n.disabled,"aria-readonly":n.readonly,"aria-valuenow":Array.isArray(O.value)?void 0:O.value,"aria-valuetext":Array.isArray(O.value)?String(O.value):void 0}));return dt(()=>{f0(O.value,x.value,S.value,w.value,n.range)&&(Q(),ue())}),jt(Oe),fe([O,()=>x.value,()=>S.value,()=>w.value,()=>n.range],([G,Fe,pe,ze,Xe])=>{f0(G,Fe,pe,ze,Xe)}),fe(b,G=>{document.documentElement.style.cursor=G?"grabbing":""}),(G,Fe)=>(A(),I("div",ee({class:["va-slider",m(M)]},ft.value),[(t.vertical?G.$slots.append:G.$slots.prepend)?(A(),I("div",VY,[D(G.$slots,t.vertical?"append":"prepend")])):z("",!0),(G.$slots.label||t.label)&&!t.invertLabel?(A(),I("span",{key:1,class:"va-input__label",id:Le.value,style:se(L.value)},[D(G.$slots,"label",{},()=>[Ue(Be(t.label),1)])],12,RY)):z("",!0),(t.vertical?t.iconAppend:t.iconPrepend)?(A(),I("span",FY,[he(m(Ze),{name:t.vertical?t.iconAppend:t.iconPrepend,color:m(o)(G.$props.color),size:16},null,8,["name","color"])])):z("",!0),q("div",{ref_key:"sliderContainer",ref:s,class:"va-slider__container",onMousedown:ve,onTouchstart:ve},[q("div",{class:"va-slider__track","aria-hidden":"true",style:se(H.value)},null,4),t.pins?(A(!0),I(_e,{key:0},Ge(ke.value,(pe,ze)=>(A(),I("div",{key:ze,class:Ae(["va-slider__mark",{"va-slider__mark--active":qe(pe)}]),style:se(B(pe))},null,6))),128)):z("",!0),G.$props.range?(A(),I(_e,{key:1},[q("div",{ref:"process",class:Ae(["va-slider__track va-slider__track--selected",{"va-slider__track--active":c.value}]),"aria-hidden":"true",style:se(E.value)},null,6),(A(!0),I(_e,null,Ge(k.value,pe=>(A(),I("div",{key:"dot"+pe,ref_for:!0,ref:m(a)(pe),class:Ae(["va-slider__handler",m(F)]),style:se(V(pe)),tabindex:t.disabled||t.readonly?void 0:0,onFocus:ze=>(c.value=!0,y.value=pe),onBlur:Fe[0]||(Fe[0]=ze=>c.value=!1)},[ce(pe)?(A(),I("div",{key:0,style:se({backgroundColor:m(o)(G.$props.color)}),class:"va-slider__handler__dot--focus"},null,4)):z("",!0),t.trackLabelVisible?(A(),I("div",{key:1,style:se(L.value),class:"va-slider__handler__dot--value"},[D(G.$slots,"trackLabel",de(we({value:N(pe),order:pe})),()=>[Ue(Be(U(N(pe),pe)),1)])],4)):z("",!0)],46,NY))),128))],64)):(A(),I(_e,{key:2},[q("div",{ref:"process","aria-hidden":"true",class:Ae(["va-slider__track va-slider__track--selected",{"va-slider__track--active":c.value}]),style:se(E.value)},null,6),q("div",{ref_key:"dot",ref:l,class:Ae(["va-slider__handler",m(F)]),style:se(P.value),tabindex:G.$props.disabled||G.$props.readonly?void 0:0,onFocus:Fe[1]||(Fe[1]=pe=>c.value=!0),onBlur:Fe[2]||(Fe[2]=pe=>c.value=!1)},[ce(0)?(A(),I("div",{key:0,class:"va-slider__handler__dot--focus",style:se({backgroundColor:m(o)(G.$props.color)})},null,4)):z("",!0),t.trackLabelVisible?(A(),I("div",{key:1,class:"va-slider__handler__dot--value",style:se(L.value)},[D(G.$slots,"trackLabel",de(we({value:N()})),()=>[Ue(Be(U(N())),1)])],4)):z("",!0)],46,HY)],64))],544),(t.vertical?t.iconPrepend:t.iconAppend)?(A(),I("span",zY,[he(m(Ze),{name:t.vertical?t.iconPrepend:t.iconAppend,color:m(o)(G.$props.color),size:16},null,8,["name","color"])])):z("",!0),(G.$slots.label||t.label)&&t.invertLabel?(A(),I("span",{key:4,class:"va-input__label va-input__label--inverse",style:se(L.value),id:Le.value},[D(G.$slots,"label",{},()=>[Ue(Be(t.label),1)])],12,jY)):z("",!0),(t.vertical?G.$slots.prepend:G.$slots.append)?(A(),I("div",WY,[D(G.$slots,t.vertical?"prepend":"append")])):z("",!0)],16))}}),KY=me(UY),GY={vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},qY=(t,e,n)=>{const r=W(!1),o=W(0),i=W(0),s=W(0),l=(d,f)=>{const h=d.type===f?d:d.changedTouches[0];return n.vertical?h.pageY:h.pageX},a=d=>{n.disabled||!t.value||(r.value=!0,o.value=l(d,"mousedown"),i.value=e.value)},u=d=>{if(!r.value)return;const h=l(d,"mousemove")-o.value;s.value=i.value+Math.floor(h/t.value*100)},c=()=>{r.value=!1};return At(["mousemove","touchmove"],u),At(["mouseup","touchcancel"],c),{isDragging:r,startDragging:a,currentSplitterPosition:s}},YY=["aria-label"],XY={class:"va-split__dragger"},JY=ie({name:"VaSplit",__name:"VaSplit",props:{...Me,...GY,...Kt,modelValue:{type:Number,default:50,validator:t=>t<=100},maximization:{type:Boolean,default:!1},maximizeStart:{type:Boolean,default:!1},limits:{type:Array,default:()=>[0,0]},snapping:{type:Array,default:void 0},snappingRange:{type:[Number,String],default:4},ariaLabel:{type:String,default:"$t:splitPanels"}},emits:[...un],setup(t,{emit:e}){const n=t,r=e,o=Ne(),{valueComputed:i}=xt(n,r),s=W(),l=W(16),a=()=>{var E;const{width:P,height:V}=((E=o.value)==null?void 0:E.getBoundingClientRect())||{width:0,height:0};s.value=n.vertical?V:P,l.value=parseFloat(getComputedStyle(document.documentElement).fontSize)};dt(a),Ys([o],a);const u=(E,P)=>{let V="",O="";if(jy(E))return E;switch(E.split("").filter(N=>N&&N!==" ").forEach(N=>{isNaN(+N)?O+=N:V+=N}),O){case"%":return+V;case"px":return+V/s.value*100;case"rem":return+V*l.value/s.value*100;case"any":return["min","snapping"].includes(P)?0:100;case"":return 100;default:return pt("Invalid limits measure!"),0}},c=E=>{if(E==="undefined"||!s.value)return;let P=0,V=100;return(Vc(E)||jy(E))&&(P=u(E,"min")),Array.isArray(E)&&(P=u(E[0],"min"),V=u(E[1],"max")),P>V&&(pt(`Min panels size can not be larger than max one! Passed limit: ${E}.`),V=P),{min:P??0,max:V??100}},d=g(()=>c(n.limits[0])??{min:0,max:100}),f=g(()=>c(n.limits[1])??{min:0,max:100}),h=g(()=>{const E=!(d.value.min+f.value.min>100);return E||pt("The sum of different panels min sizes should be lesser or equal to 100% of the container size!"),E?f.value.min:100-d.value.min}),p=g(()=>(Math.ceil(f.value.max+d.value.max)<100&&pt("The sum of different panels max sizes should be equal to 100% of the container size!"),{start:{min:d.value.min,max:Math.min(d.value.max,100-h.value)},end:{min:h.value,max:Math.min(f.value.max,100-d.value.min)}})),v=E=>E>=p.value.start.min&&E>=p.value.end.min&&E<=p.value.start.max&&E<=p.value.end.max,y=g(()=>{if(!Array.isArray(n.snapping)||!s.value)return;let E=n.snapping.map(V=>u(V,"snapping"));if(!E.every(v)){const V=E.filter(v);pt(`Some of the snapping marks (${E}) are not in allowed range (${Object.values(p.value.start).join("-")} / ${Object.values(p.value.end).join("-")}) and will be removed (${V})!`),E=V}return E.every((V,O,N)=>N[O+1]?Math.abs(V-N[O+1])>Number(n.snappingRange):!0)||pt("Distance between some snapping marks is lesser than snapping range!"),E}),b=g(()=>u(n.snappingRange,"snapping")),S=W(i.value),w=g(()=>{if(y.value){const E=y.value.find(P=>S.value+b.value>P&&S.value-b.value{!n.maximization||n.disabled||(S.value=n.maximizeStart?p.value.start.max:100-p.value.end.max)};fe(i,E=>{(E100-p.value.end.min)&&pt("Incorrect `modelValue`. Check current `limits` prop value."),S.value=E},{immediate:!0}),fe($,E=>{S.value=E}),fe(x,E=>{E||(i.value=w.value),document.documentElement.style.cursor=E?"var(--va-split-dragging-cursor)":""});const T=g(()=>n.vertical?"height":"width"),_=E=>{let P=E==="start"?w.value:100-w.value;return P<0&&(P=0),P>100&&(P=100),{[T.value]:`${P}%`}},M=g(()=>n.disabled?{}:x.value?{cursor:"var(--va-split-dragging-cursor)"}:{cursor:n.vertical?"var(--va-split-vertical-dragger-cursor)":"var(--va-split-horizontal-dragger-cursor)"}),F=ct("va-split",()=>({horizontal:!n.vertical,vertical:n.vertical,dragging:x.value})),{t:L,tp:H}=yt();return(E,P)=>(A(),I("section",{ref_key:"splitPanelsContainer",ref:o,class:Ae(["va-split",m(F)]),"aria-label":m(H)(E.$props.ariaLabel)},[q("div",{class:"va-split__panel",style:se(_("start"))},[D(E.$slots,"start",de(we({containerSize:s.value})))],4),q("div",XY,[q("div",{class:"va-split__dragger__overlay",style:se(M.value),onMousedown:P[0]||(P[0]=be((...V)=>m(k)&&m(k)(...V),["prevent"])),onTouchstart:P[1]||(P[1]=be((...V)=>m(k)&&m(k)(...V),["prevent"])),onDblclick:be(C,["prevent"]),onContextmenu:P[2]||(P[2]=be(()=>{},["prevent"])),onDragstart:P[3]||(P[3]=be(()=>{},["prevent"]))},[D(E.$slots,"grabber",{},()=>[he(m(Ix),{class:"va-split__dragger__default",vertical:!E.$props.vertical},null,8,["vertical"])])],36)]),q("div",{class:"va-split__panel",style:se(_("end"))},[D(E.$slots,"end",de(we({containerSize:s.value})))],4)],10,YY))}}),QY=me(JY),Yx=Symbol("TabsView"),ZY=["aria-disabled"],eX=q("div",{class:"va-tabs__slider"},null,-1),tX=[eX],nX={class:"va-tabs__tabs-items"},rX={class:"va-tabs__content"},Mo=t=>(t==null?void 0:t.clientWidth)||0,oX=ie({name:"VaTabs",__name:"VaTabs",props:{...Kt,...Me,modelValue:{type:[String,Number],default:null},left:{type:Boolean,default:!0},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},grow:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideSlider:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},color:{type:String,default:"primary"},prevIcon:{type:String,default:"va-arrow-left"},nextIcon:{type:String,default:"va-arrow-right"},ariaMoveRightLabel:{type:String,default:"$t:movePaginationLeft"},ariaMoveLeftLabel:{type:String,default:"$t:movePaginationRight"}},emits:["update:modelValue","click:next","click:prev"],setup(t,{expose:e,emit:n}){const{tp:r}=yt(),o=t,i=n,s=Ne(),l=Ne(),a=Ne(),u=W([]),c=W(null),d=W(null),f=W(0),h=W(0),p=W(!1),v=W(0),y=W(0),b=W(!1),{valueComputed:S}=xt(o,i),w=ar({VaTab:{color:o.color}}),x=g(()=>{const{left:j,right:ce,center:Se,grow:ne,disabled:Z}=o;return{"va-tabs__container--left":j&&!ce&&!Se&&!ne,"va-tabs__container--right":ce,"va-tabs__container--center":Se,"va-tabs__container--grow":ne,"va-tabs__container--disabled":Z}}),k=g(()=>({"va-tabs--vertical":o.vertical})),{getColor:$}=He(),C=g(()=>$(o.color)),T=g(()=>o.hideSlider?{display:"none"}:{backgroundColor:C.value,height:o.vertical?`${c.value}px`:"",width:o.vertical?"":`${d.value}px`,transform:`translateY(-${h.value}px) translateX(${f.value}px)`,transition:b.value?"var(--va-tabs-slider-wrapper-transition)":""}),_=g(()=>o.vertical?{transform:"translateX(0px)"}:{transform:`translateX(${y.value-v.value}px)`,transition:b.value?"var(--va-tabs-slider-transition)":"",position:o.hidePagination?"unset":"absolute"}),M=g(()=>v.value===0),F=g(()=>{const j=u.value[u.value.length-1],ce=m(j.leftSidePosition),Se=m(j.rightSidePosition),ne=Mo(l.value);return Se<=v.value+ne||ce<=v.value}),L=()=>{d.value=0,c.value=0},H=j=>{const ce=Mo(l.value),Se=m(j.leftSidePosition),ne=m(j.rightSidePosition);if(!p.value){v.value=0;return}if(!(Se-v.value>=0&&ne-v.value<=ce)){if(Se-v.value<0){v.value=Se;return}if(ne-v.value>ce){v.value=ne-ce;return}v.value=0}},E=()=>{if(y.value=0,!p.value)return;const j=Mo(l.value),ce=Mo(a.value);o.right?y.value=ce-j:o.center&&(y.value=Math.floor((ce-j)/2))},P=()=>{L(),u.value.forEach(j=>{var ce;j.updateSidePositions();const Se=(((ce=j.name)==null?void 0:ce.value)||j.id)===S.value;j.isActive=j.isActiveRouterLink||Se,j.isActive&&(H(j),re(j))}),E()},V=()=>{const j=Mo(a.value),ce=Mo(s.value);requestAnimationFrame(()=>{p.value=!!(a.value&&s.value&&j>ce)})},O=()=>{var j,ce;const Se=Mo(l.value);let ne=v.value-Se;for(let Z=0;Zne&&Ve=v.value){ne=Ve;break}}v.value=Math.max(0,ne),i("click:prev")},N=()=>{var j;const ce=Mo(l.value),Se=v.value+ce;let ne=Se;for(let Pe=0;PeSe&&(ne=m(u.value[Pe].leftSidePosition),v.value{var ce;const Se=m(j.tabElement),ne=(Se==null?void 0:Se.offsetTop)||0,Z=(Se==null?void 0:Se.offsetLeft)||0,Ve=(Se==null?void 0:Se.clientHeight)||0,Pe=(Se==null?void 0:Se.clientWidth)||0;if(o.vertical){const bt=(((ce=l.value)==null?void 0:ce.clientHeight)||0)-ne-Ve;h.value=Math.max(bt,0),c.value=Ve,f.value=0,d.value=0}else f.value=Z,d.value=Pe,h.value=0,c.value=0},X=()=>{b.value||requestAnimationFrame(()=>{b.value=!0})},ke=j=>{var ce;j&&(S.value=((ce=j.name)==null?void 0:ce.value)||j.id,o.stateful&&P())},$e=j=>{var ce;const Se=u.value.push(j)-1;j.id=((ce=j.name)==null?void 0:ce.value)||Se},ye=j=>{u.value=u.value.filter(ce=>ce.id!==j.id),u.value.forEach((ce,Se)=>{var ne;ce.id=((ne=ce.name)==null?void 0:ne.value)||Se})};return Pr(Yx,{parentDisabled:o.disabled,selectTab:ke,moveToTab:H,registerTab:$e,unregisterTab:ye}),fe(()=>o.modelValue,P),Ys([s],V),Ys([l],P),dt(()=>{requestAnimationFrame(()=>{X()})}),e({selectTab:ke,moveToTab:H,movePaginationLeft:O,movePaginationRight:N}),(j,ce)=>(A(),I("div",{class:Ae(["va-tabs",k.value])},[q("div",{ref_key:"wrapper",ref:s,class:"va-tabs__wrapper",role:"tablist","aria-disabled":j.$props.disabled},[p.value&&!j.$props.hidePagination?(A(),te(m(et),{key:0,class:"va-tabs__pagination","aria-label":m(r)(j.$props.ariaMoveLeftLabel),size:"medium",disabled:M.value,color:t.color,preset:"secondary",icon:j.$props.prevIcon,onClick:O},null,8,["aria-label","disabled","color","icon"])):z("",!0),q("div",{ref_key:"container",ref:l,class:Ae(["va-tabs__container",x.value])},[q("div",{ref_key:"tabs",ref:a,class:"va-tabs__tabs",style:se(_.value)},[q("div",{class:"va-tabs__slider-wrapper","aria-hidden":"true",style:se(T.value)},tX,4),he(m(Ya),{components:w},{default:J(()=>[q("div",nX,[D(j.$slots,"tabs")])]),_:3},8,["components"])],4)],2),p.value&&!j.$props.hidePagination?(A(),te(m(et),{key:1,class:"va-tabs__pagination","aria-label":m(r)(j.$props.ariaMoveRightLabel),size:"medium",color:t.color,disabled:F.value,preset:"secondary",icon:j.$props.nextIcon,onClick:N},null,8,["aria-label","color","disabled","icon"])):z("",!0)],8,ZY),q("div",rX,[D(j.$slots,"default")])],2))}}),iX=me(oX),sX=["tabindex"],lX=["textContent"],aX=ie({name:"VaTab",__name:"VaTab",props:{...cs,...Me,selected:{type:Boolean,default:!1},color:{type:String,default:""},icon:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean},name:{type:[String,Number]},tag:{type:String,default:"div"}},emits:["click","keydown-enter","focus"],setup(t,{emit:e}){const n=t,r=e,o=Ne(),i=g(()=>Rt(o.value)),s=W(!1),l=W(!1),a=W(0),u=W(0),{keyboardFocusListeners:c,hasKeyboardFocus:d}=kl(),{tagComputed:f,hrefComputed:h,isActiveRouterLink:p}=gi(n),v=g(()=>({"va-tab--disabled":n.disabled})),{parentDisabled:y,selectTab:b,moveToTab:S,registerTab:w,unregisterTab:x}=Mn(Yx,{parentDisabled:!1,tabsList:[],selectTab:P=>P,moveToTab:P=>P,registerTab:P=>P,unregisterTab:P=>P}),k=g(()=>n.disabled||y?-1:0),{getColor:$}=He(),C=g(()=>$(n.color)),T=g(()=>({color:l.value||s.value?C.value:"inherit"})),_=P=>{l.value=P},M=()=>{var P,V;const O=((P=i.value)==null?void 0:P.offsetLeft)||0,N=((V=i.value)==null?void 0:V.offsetWidth)||0;a.value=O+N,u.value=O},F=()=>{b(E),r("click")},L=()=>{b(E),r("keydown-enter")},H=()=>{d.value&&S(E),r("focus")},E={name:g(()=>n.name),id:null,tabElement:i,isActive:s,tabIndexComputed:k,isActiveRouterLink:p,rightSidePosition:a,leftSidePosition:u,onTabClick:F,onTabKeydown:L,onFocus:H,updateSidePositions:M};return dt(()=>{w(E)}),jt(()=>{x(E)}),(P,V)=>(A(),te(zn(m(f)),{ref_key:"rootElement",ref:o,class:Ae(["va-tab",v.value]),role:"tab","aria-selected":s.value,"aria-disabled":P.$props.disabled||m(y),href:m(h),target:P.target,to:P.to,replace:P.replace,exact:P.exact,"active-class":P.activeClass,"exact-active-class":P.exactActiveClass,style:se(T.value),onMouseenter:V[0]||(V[0]=O=>_(!0)),onMouseleave:V[1]||(V[1]=O=>_(!1))},{default:J(()=>[q("div",ee({class:"va-tab__content",tabindex:k.value,onFocus:H,onClick:F,onKeydown:Ce(L,["enter"])},ur(m(c),!0)),[D(P.$slots,"default",{},()=>[t.icon?(A(),te(m(Ze),{key:0,class:"va-tab__icon",size:"small",name:t.icon},null,8,["name"])):z("",!0),q("span",{class:"va-tab__label",textContent:Be(t.label)},null,8,lX)])],16,sX)]),_:3},40,["aria-selected","aria-disabled","href","target","to","replace","exact","active-class","exact-active-class","class","style"]))}}),uX=me(aX),kg=(t,...e)=>typeof t=="function"?t(...e):t,cX={class:"va-stepper__default-controls"},dX=ie({name:"VaStepperControls",__name:"VaStepperControls",props:{modelValue:{type:[Number,String],required:!0},steps:{type:Array,required:!0},nextDisabled:{type:Boolean,required:!0},stepControls:{type:Object,required:!0},finishButtonHidden:{type:Boolean,default:!1}},setup(t){const e=t,{t:n}=yt(),r=g(()=>{const i=e.steps[Number(e.modelValue)];return kg(i.isLoading)||!1}),o=g(()=>{const i=e.steps.length-1;return Number(e.modelValue)>=i});return(i,s)=>(A(),I("div",cX,[he(m(et),{preset:"primary",disabled:Number(i.$props.modelValue)<=0,loading:r.value,onClick:s[0]||(s[0]=l=>i.$props.stepControls.prevStep())},{default:J(()=>[Ue(Be(m(n)("back")),1)]),_:1},8,["disabled","loading"]),o.value?i.$props.finishButtonHidden?z("",!0):(A(),te(m(et),{key:1,onClick:s[2]||(s[2]=l=>i.$props.stepControls.finish()),loading:r.value},{default:J(()=>[Ue(Be(m(n)("finish")),1)]),_:1},8,["loading"])):(A(),te(m(et),{key:0,onClick:s[1]||(s[1]=l=>i.$props.stepControls.nextStep()),disabled:i.$props.nextDisabled,loading:r.value},{default:J(()=>[Ue(Be(m(n)("next")),1)]),_:1},8,["disabled","loading"]))]))}}),Cs=t=>kg(t.hasError,t)||!1,fX={class:"va-stepper__step-button__icon"},hX=ie({name:"VaStepperStepButton",__name:"VaStepperStepButton",props:{modelValue:{type:Number,required:!0},step:{type:Object,required:!0},color:{type:String,required:!0},stepIndex:{type:[Number,String],required:!0},navigationDisabled:{type:Boolean,required:!0},nextDisabled:{type:Boolean,required:!0},focus:{type:Object,required:!0},stepControls:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=Ne(),o=g(()=>Cs(n.step)),i=Ye("stepIndex"),s=g(()=>o.value&&n.modelValue===i.value),l=g(()=>kg(n.step.isLoading)||!1),{getColor:a}=He(),u=g(()=>a(o.value?"danger":n.color)),c=p=>n.nextDisabled&&p>n.modelValue,{t:d}=yt(),f=ct("va-stepper__step-button",()=>({active:n.modelValue>=i.value,disabled:n.step.disabled||c(i.value),"navigation-disabled":n.navigationDisabled,error:s.value}));fe(()=>n.focus,()=>{n.focus.trigger&&Ot(()=>{var p;return(p=r.value)==null?void 0:p.focus()})},{deep:!0});const h=g(()=>({tabindex:n.focus.stepIndex===i.value&&!n.navigationDisabled?0:void 0,"aria-disabled":n.step.disabled||c(i.value)?!0:void 0,"aria-current":n.modelValue===n.stepIndex?d("step"):void 0}));return(p,v)=>(A(),I("li",ee({ref_key:"stepElement",ref:r,class:["va-stepper__step-button",m(f)],onClick:v[0]||(v[0]=y=>!p.$props.navigationDisabled&&p.$props.stepControls.setStep(m(i))),onKeyup:[v[1]||(v[1]=Ce(y=>!p.$props.navigationDisabled&&p.$props.stepControls.setStep(m(i)),["enter"])),v[2]||(v[2]=Ce(y=>!p.$props.navigationDisabled&&p.$props.stepControls.setStep(m(i)),["space"]))]},h.value,{style:`--va-stepper-color: ${String(u.value)}`}),[q("div",fX,[l.value?(A(),te(m(bl),{key:0,color:"currentColor",indeterminate:"",size:"small"})):t.step.icon?(A(),te(m(Ze),{key:1,name:t.step.icon,size:"1.3rem"},null,8,["name"])):(A(),I(_e,{key:2},[Ue(Be(m(i)+1),1)],64))]),Ue(" "+Be(t.step.label),1)],16))}}),pX={class:"va-stepper__step-content"},mX={class:"va-stepper__controls"},gX=ie({name:"VaStepper",__name:"VaStepper",props:{...Kt,modelValue:{type:Number,default:0},steps:{type:Array,default:()=>[],required:!0},color:{type:String,default:"primary"},vertical:{type:Boolean,default:!1},navigationDisabled:{type:Boolean,default:!1},controlsHidden:{type:Boolean,default:!1},nextDisabled:{type:Boolean,default:!1},nextDisabledOnError:{type:Boolean,default:!1},finishButtonHidden:{type:Boolean,default:!1},ariaLabel:{type:String,default:"$t:progress"},linear:{type:Boolean,default:!1},finishStep:{type:Object}},emits:["update:modelValue","finish","update:steps"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),{valueComputed:s}=xt(r,o,"modelValue"),l=g(()=>r.finishStep?[...r.steps,r.finishStep]:r.steps),a=P=>r.finishStep?P===l.value.length-1:!1,u=W({trigger:!1,stepIndex:r.navigationDisabled?-1:r.modelValue}),{getColor:c}=He(),d=P=>r.nextDisabledOnError&&Cs(l.value[P])?!0:r.nextDisabled,f=(P,V)=>{for(;P>=0&&P{for(;P>=0&&P{var V;const O=l.value[P],N=l.value[s.value],re=f(P,-1);if(O.disabled)return!1;if(r.linear&&P{await p(P)&&(s.value=P)},y=P=>{r.navigationDisabled||(P==="next"?b(1):S(1))},b=(P=1)=>{const V=u.value.stepIndex+P;if(!d(V)){if(V{const V=u.value.stepIndex-P;if(V>=0){if(l.value[V].disabled){S(P+1);return}u.value.stepIndex=V,u.value.trigger=!0}else for(let O=l.value.length-1;O>=0;O--)if(!l.value[O].disabled&&!d(O)){u.value.stepIndex=O,u.value.trigger=!0;break}},w=()=>{requestAnimationFrame(()=>{var P;(P=i.value)!=null&&P.contains(document.activeElement)||(u.value.stepIndex=r.modelValue,u.value.trigger=!1)})};fe(()=>r.modelValue,()=>{u.value.stepIndex=r.modelValue,u.value.trigger=!1});const x=(P=0)=>{const V=s.value+1+P;l.value[V]&&(l.value[V].disabled&&x(P+1),v(V))},k=(P=0)=>{const V=s.value-1-P;l.value[V]&&(l.value[V].disabled&&k(P+1),v(V))},C={setStep:v,nextStep:x,prevStep:k,finish:async()=>{await p(r.steps.length-1)&&o("finish")}},T=(P,V)=>({...C,focus:u,isActive:r.modelValue===V,isCompleted:r.modelValue>V,isLastStep:l.value.length-1===V,isNextStepDisabled:d(V),isPrevStepDisabled:V===0,index:V,step:P,hasError:Cs(P)}),{tp:_}=yt(),M=()=>{u.value.stepIndex=r.modelValue,u.value.trigger=!0},F=g(()=>({role:"group","aria-label":_(r.ariaLabel),"aria-orientation":r.vertical?"vertical":"horizontal"}));function L(P){return Cs(l.value[P])?"danger":c(r.color)}return e({modelValue:s,focusedStep:u,getIterableSlotData:T,stepControls:C,nextStep:x,prevStep:k,setStep:v,setFocus:y,completeStep:P=>{const V={...l.value};P===!0&&(V[r.modelValue].hasError=!1),V[r.modelValue].completed=P??!0,o("update:steps",V)},setError:P=>{const V={...l.value};V[r.modelValue].hasError=P??!0,V[r.modelValue].completed=!P,o("update:steps",V)}}),(P,V)=>(A(),I("div",ee({class:["va-stepper",{"va-stepper--vertical":P.$props.vertical}]},F.value),[q("ol",{class:Ae(["va-stepper__navigation",{"va-stepper__navigation--vertical":P.$props.vertical}]),ref_key:"stepperNavigation",ref:i,onClick:M,onKeyup:[Ce(M,["enter"]),Ce(M,["space"]),V[0]||(V[0]=Ce(O=>y("prev"),["left"])),V[1]||(V[1]=Ce(O=>y("next"),["right"]))],onFocusout:w},[(A(!0),I(_e,null,Ge(l.value,(O,N)=>(A(),I(_e,{key:N+O.label},[a(N)?z("",!0):(A(),I(_e,{key:0},[N>0?D(P.$slots,"divider",de(ee({key:0},T(O,N))),()=>[q("span",{class:Ae(["va-stepper__divider",{"va-stepper__divider--vertical":P.$props.vertical}]),"aria-hidden":"true"},null,2)]):z("",!0),D(P.$slots,`step-button-${N}`,de(we(T(O,N))),()=>[he(hX,{stepIndex:N,color:L(N),modelValue:m(s),nextDisabled:t.nextDisabled,step:O,stepControls:C,navigationDisabled:t.navigationDisabled,focus:u.value},null,8,["stepIndex","color","modelValue","nextDisabled","step","navigationDisabled","focus"])])],64))],64))),128))],34),q("div",{class:Ae(["va-stepper__step-content-wrapper",{"va-stepper__step-content-wrapper--vertical":P.$props.vertical}])},[q("div",pX,[D(P.$slots,`step-content-${a(m(s))?"finish":m(s)}`,de(we(T(l.value[m(s)],m(s)))))]),q("div",mX,[D(P.$slots,"controls",de(we(T(l.value[m(s)],m(s)))),()=>[t.controlsHidden?z("",!0):(A(),te(dX,{key:0,modelValue:m(s),nextDisabled:d(m(s)),steps:l.value,stepControls:C,finishButtonHidden:t.finishButtonHidden},null,8,["modelValue","nextDisabled","steps","finishButtonHidden"]))])])],2)],16))}}),vX=me(gX),yX=t=>{const e=t.match(/[0-9]{1,2}/g);return e?e.map(n=>Number(n)):[]},bX=t=>{const e=t.match(/pm|am/i);return e?+(e[0].toLowerCase()==="pm"):null},SX=t=>{const e=new Date,[n,r,o]=yX(t),i=bX(t);if(!n)return null;const s=i!==null&&n<=12,l=s&&!!i,a=s&&n===12?0:n;return e.setHours(Math.min(a||0,s?12:24)+(l?12:0)),e.setMinutes(Math.min(r||0,60)),e.setSeconds(Math.min(o||0,60)),e},CX=t=>{const e=()=>t.parse||SX,n=W(!0),r=i=>{const l=e()(i);return l||(n.value=!1),l};return{parse:i=>(n.value=!0,r(i)),isValid:n}},wX=t=>{const e=o=>o?t.ampm?o.toLocaleTimeString("en-US"):o.toLocaleTimeString("en-GB"):"",n=(o,i,s)=>o.split(":").slice(i,s).join(":"),r=o=>{if(t.view==="seconds")return e(o);const[i,s]=e(o).split(" ");return t.view==="minutes"?s?[n(i,0,2),s].join(" "):n(i,0,2):t.view==="hours"?s?[n(i,0,1),s].join(" "):n(i,0,1):""};return{format:o=>t.format?t.format(o):r(o)}},Qs=t=>t.value?t.value:new Date(new Date().setHours(0,0,0,0)),xg=t=>Array.from(Array(t).keys()),h0=t=>(t===0?12:t)-+(t>12)*12,kX=(t,e=!1)=>(t===12?0:t)+Number(e)*12,xX=(t,e,n)=>{const r=g(()=>t.ampm?12:24),o=g(()=>{let s=xg(r.value);return t.hoursFilter&&(s=s.filter(l=>t.hoursFilter(t.ampm?l+12*Number(n.value):l))),s.map(l=>t.ampm?h0(l):l)}),i=g({get:()=>{if(!e.value)return-1;if(t.ampm){const l=h0(e.value.getHours()-12*Number(n.value));return o.value.findIndex(a=>a===l)}const s=e.value.getHours();return o.value.findIndex(l=>l===s)},set:s=>{if(t.readonly)return;const l=t.ampm?kX(o.value[s],n.value):o.value[s];e.value=new Date(Qs(e).setHours(l))}});return g(()=>({items:o.value,activeItem:i}))},$X=(t,e)=>{const n=g(()=>{const o=xg(60);return t.minutesFilter?o.filter(t.minutesFilter):o}),r=g({get:()=>{if(!e.value)return-1;const o=e.value.getMinutes();return n.value.findIndex(i=>i===o)},set:o=>{if(t.readonly)return;const i=n.value[o];e.value=new Date(Qs(e).setMinutes(i))}});return g(()=>({items:n.value,activeItem:r}))},AX=(t,e)=>{const n=g(()=>{const o=xg(60);return t.secondsFilter?o.filter(t.secondsFilter):o}),r=g({get:()=>{if(!e.value)return-1;const o=e.value.getSeconds();return n.value.findIndex(i=>i===o)},set:o=>{if(t.readonly)return;const i=n.value[o];e.value=new Date(Qs(e).setSeconds(i))}});return g(()=>({items:n.value,activeItem:r}))},TX=(t,e,n)=>g(()=>({items:["AM","PM"],activeItem:g({get:()=>e.value?Number(n.value):-1,set:r=>{n.value=!!r;const o=Qs(e).getHours();let i=n.value?o+12:o;n.value&&o<=12&&(i=o+12),!n.value&&o>=12&&(i=o-12);const s=!t.hoursFilter||t.hoursFilter(i);t.periodUpdatesModelValue&&s&&(e.value=new Date(Qs(e).setHours(i)))}})})),_X=(t,e)=>{const{view:n}=Or(t),r=W(!1);fe(e,()=>{r.value=Qs(e).getHours()>=12},{immediate:!0});const o=xX(t,e,r),i=$X(t,e),s=AX(t,e),l=TX(t,e,r);return{columns:g(()=>{const u=[];return n.value==="hours"?u.push(o.value):n.value==="minutes"?u.push(o.value,i.value):n.value==="seconds"&&u.push(o.value,i.value,s.value),t.ampm&&!t.hidePeriodSwitch&&u.push(l.value),u}),isPM:r}},OX=ie({name:"VaTimePickerColumnCell",__name:"VaTimePickerColumnCell",setup(t){const{isHovered:e,onMouseEnter:n,onMouseLeave:r}=Ja(),{getTextColor:o,getColor:i}=He(),s=g(()=>e.value?{color:i(o(i("background-secondary"))),background:i("background-secondary")}:void 0);return(l,a)=>(A(),I("div",{onMouseenter:a[0]||(a[0]=(...u)=>m(n)&&m(n)(...u)),onMouseleave:a[1]||(a[1]=(...u)=>m(r)&&m(r)(...u)),style:se(s.value)},[D(l.$slots,"default")],36))}}),PX=["onClick"],BX=ie({name:"VaTimePickerColumn",__name:"VaTimePickerColumn",props:{items:{type:Array,default:()=>[]},activeItemIndex:{type:Number,default:0},cellHeight:{type:[Number,String],default:30}},emits:["item-selected","update:activeItemIndex",...Xd],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),{focus:s,blur:l}=ko(i,o),[a]=qi("activeItemIndex",r,o),u=Ye("cellHeight");fe(a,b=>{c(b)}),dt(()=>c(a.value,!1));const c=(b,S=!0)=>{Ot(()=>{var w,x;(x=(w=i.value)==null?void 0:w.scrollTo)==null||x.call(w,{behavior:S?"smooth":"auto",top:b*u.value})})},d=b=>{a.value=(a.value+(b||1))%r.items.length,Ot(()=>c(a.value))},f=b=>{a.value=(a.value-1+r.items.length)%r.items.length,Ot(()=>c(a.value))},h=b=>{a.value=b},p=b=>Number.isInteger(b)?Number(b)<10?`0${b}`:`${b}`:b,v=()=>{const b=i.value.scrollTop,S=Math.max((b-b%u.value)/u.value,b/u.value);return S>=r.items.length?r.items.length-1:S<0?0:a.value*u.valueb?Math.floor(S):Math.round(S)},y=zm(()=>{i.value&&a.value!==-1&&(a.value=v())},200);return e({focus:s,blur:l}),(b,S)=>(A(),I("div",{ref_key:"rootElement",ref:i,tabindex:"0",class:"va-time-picker-column",onKeydown:[S[0]||(S[0]=Ce(be(w=>d(),["stop","prevent"]),["down"])),S[1]||(S[1]=Ce(be(w=>d(5),["stop","prevent"]),["space"])),S[2]||(S[2]=Ce(be(w=>f(),["stop","prevent"]),["up"]))]},[(A(!0),I(_e,null,Ge(t.items,(w,x)=>(A(),te(OX,{key:w,onScrollPassive:m(y),onTouchmovePassive:m(y),onMousewheelPassive:m(y)},{default:J(()=>[q("div",{class:Ae(["va-time-picker-cell",{"va-time-picker-cell--active":x===b.$props.activeItemIndex}]),onClick:k=>h(x)},[D(b.$slots,"cell",de(we({item:w,index:x,activeItemIndex:t.activeItemIndex,items:t.items,formattedItem:p(w)})),()=>[Ue(Be(p(w)),1)])],10,PX)]),_:2},1032,["onScrollPassive","onTouchmovePassive","onMousewheelPassive"]))),128))],544))}}),MX=me(BX),IX=(t,e)=>g(()=>Object.entries(e()).reduce((n,[r,o])=>(n[`--${t}-${ka(r)}`]=o,n),{})),pc=ie({name:"VaTimePicker",__name:"VaTimePicker",props:{...Kt,...vi,...Me,modelValue:{type:Date,required:!1},ampm:{type:Boolean,default:!1},hidePeriodSwitch:{type:Boolean,default:!1},periodUpdatesModelValue:{type:Boolean,default:!0},view:{type:String,default:"minutes"},hoursFilter:{type:Function},minutesFilter:{type:Function},secondsFilter:{type:Function},framed:{type:Boolean,default:!1},cellHeight:{type:[Number,String],default:30},visibleCellsCount:{type:[Number,String],default:7}},emits:[...un],setup(t,{expose:e,emit:n}){const r=t,o=n,{valueComputed:i}=xt(r,o),{columns:s,isPM:l}=_X(r,i),a=Ye("cellHeight"),u=Ye("visibleCellsCount"),{setItemRef:c,itemRefs:d}=af(),f=W(),h=(x=0)=>{var k;(k=d.value[x])==null||k.focus()},p=x=>{var k;x?(k=d.value[x])==null||k.blur():d.value.forEach($=>$==null?void 0:$.blur())},{computedClasses:v}=mx("va-time-picker",r),y=()=>{const x=((f==null?void 0:f.value)||0)+1;f.value=x%s.value.length,h(f.value)},b=()=>{const x=((f==null?void 0:f.value)||0)-1+s.value.length;f.value=x%s.value.length,h(f.value)},S=g(()=>({...v,"va-time-picker--framed":r.framed})),w=IX("va-time-picker",()=>{const x=(u.value-1)/2*a.value;return{height:`${a.value*u.value}px`,"cell-height":`${a.value}px`,"column-gap-height":`${x}px`}});return e({focus:h,blur:p,focusNext:y,focusPrev:b}),(x,k)=>(A(),I("div",{class:Ae(["va-time-picker",S.value]),style:se(m(w))},[(A(!0),I(_e,null,Ge(m(s),($,C)=>(A(),te(m(MX),{key:C,ref_for:!0,ref:m(c),items:$.items,tabindex:x.disabled?-1:0,"cell-height":m(a),activeItemIndex:$.activeItem.value,"onUpdate:activeItemIndex":T=>$.activeItem.value=T,onKeydown:[k[0]||(k[0]=Ce(be(T=>y(),["stop","prevent"]),["right"])),k[1]||(k[1]=Ce(be(T=>y(),["exact","stop","prevent"]),["tab"])),k[2]||(k[2]=Ce(be(T=>b(),["stop","prevent"]),["left"])),k[3]||(k[3]=Ce(be(T=>b(),["shift","stop","prevent"]),["tab"]))],onFocus:T=>f.value=C},null,8,["items","tabindex","cell-height","activeItemIndex","onUpdate:activeItemIndex","onFocus"]))),128))],6))}});function DX(t,e){let n=-1,r=-1;const o=l=>{var a;(a=e.onStart)==null||a.call(e,l),clearTimeout(n),n=setTimeout(()=>{r=setInterval(()=>{var u;return(u=e.onUpdate)==null?void 0:u.call(e,l)},e.interval||100)},m(e.delay)||500)},i=l=>{var a;clearTimeout(n),clearInterval(r),(a=e.onEnd)==null||a.call(e,l)},s=Sl(t);At(["keydown"],o,s),At(["keyup","blur"],i,!0)}const p0=nt(Wn,["focused","maxLength","counterValue"]),EX=ie({name:"VaTimeInput",inheritAttrs:!1,__name:"VaTimeInput",props:{...p0,...Cr,...Me,...ru,...nt(pc),...Co,...Kt,closeOnContentClick:{type:Boolean,default:!1},offset:{...Cr.offset,default:()=>[2,0]},placement:{...Cr.placement,default:"bottom-end"},modelValue:{type:Date,default:void 0},clearValue:{type:Date,default:null},format:{type:Function},parse:{type:Function},manualInput:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!1},icon:{type:String,default:"schedule"},ariaLabel:{type:String,default:"$t:selectedTime"},ariaResetLabel:{type:String,default:"$t:resetTime"},ariaToggleDropdownLabel:{type:String,default:"$t:toggleDropdown"}},emits:[...Xd,...mi,...tf,...un,...Cg,"update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),s=Ne(),{isOpenSync:l,dropdownProps:a}=wg(r,o,{defaultCloseOnValueUpdate:g(()=>Array.isArray(r.view)&&r.view.length===1)}),{valueComputed:u}=xt(r,o),{parse:c,isValid:d}=CX(r),{format:f}=wX(r),h=g(()=>f(u.value||r.clearValue)),p=g({get(){return r.disabled||r.readonly?!1:l.value},set(K){l.value=K,Ot(K?()=>{var U;return(U=s.value)==null?void 0:U.focus()}:()=>{var U;return(U=i.value)==null?void 0:U.focus()})}}),{isFocused:v,focus:y,blur:b,onFocus:S,onBlur:w}=ko(i),x=K=>{var U;if(r.disabled)return;const Y=(U=K.target)==null?void 0:U.value;if(!Y)return k();const oe=c(Y);d.value&&oe?u.value=oe:(u.value=void 0,d.value=!0)},k=()=>M(()=>{o("update:modelValue",r.clearValue),o("clear"),F(),Se()}),{computedError:$,computedErrorMessages:C,listeners:T,validationAriaAttributes:_,withoutValidation:M,resetValidation:F,isDirty:L,isTouched:H}=wo(r,o,{reset:k,focus:y,value:u});fe(p,K=>{K||(H.value=!0)});const{canBeCleared:E,clearIconProps:P,onFocus:V,onBlur:O}=nf(r,h),N=g(()=>E.value&&h.value!==f(r.clearValue)),re=gt(p0),X=g(()=>({...re.value,focused:v.value,error:$.value,errorMessages:C.value,readonly:r.readonly||!r.manualInput,modelValue:h.value})),ke={seconds:1e3,minutes:1e3*60,hours:1e3*60*60},$e=K=>{"key"in K&&(K.key==="ArrowDown"&&(u.value=new Date(Number(u.value)-ke[r.view]),K.preventDefault()),K.key==="ArrowUp"&&(u.value=new Date(Number(u.value)+ke[r.view]),K.preventDefault()))};DX(i,{onStart:$e,onUpdate:$e});const ye={onFocus:()=>{r.disabled||(S(),!r.readonly&&V())},onBlur:()=>{r.disabled||(w(),!r.readonly&&(O(),T.onBlur()))}},j=Ln(),ce=g(()=>{const K=[r.leftIcon&&"prependInner",(!r.leftIcon||r.clearable)&&"icon"];return Object.keys(j).filter(U=>!K.includes(U))}),Se=()=>{p.value=!1},ne=(K,U,Y)=>{p.value=!0},Z=K=>l.value?!1:r.disabled||r.readonly?!0:K===void 0?!1:r.manualInput&&(K==null?void 0:K.code)!=="Space",Ve=K=>{Z(K instanceof KeyboardEvent?K:void 0)||(p.value=!p.value)},Pe=g(()=>r.disabled?{}:r.manualInput?{cursor:"text"}:{cursor:"pointer"}),qe=g(()=>r.manualInput?r.disabled||r.readonly?-1:0:-1),bt=g(()=>({role:"button","aria-hidden":!1,name:r.icon,color:"secondary",tabindex:qe.value})),{tp:B}=yt();os();const R=g(()=>({...a.value,innerAnchorSelector:".va-input-wrapper__field",trigger:["click","right-click","space","enter"]})),Q=gt(nt(pc));return e({isFocused:v,isValid:d,value:u,isDirty:L,isTouched:H,focus:y,blur:b,reset:k,withoutValidation:M,resetValidation:F,toggleDropdown:Ve,showDropdown:ne,hideDropdown:Se}),(K,U)=>(A(),te(m(er),ee({modelValue:p.value,"onUpdate:modelValue":U[1]||(U[1]=Y=>p.value=Y),class:["va-time-input",K.$attrs.class],style:K.$attrs.style},R.value),{anchor:J(()=>[he(m(Wn),ee({class:"va-time-input__anchor",ref_key:"input",ref:i,style:Pe.value},{...X.value,...m(_),...ye},{onChange:x}),vn({icon:J(()=>[N.value?(A(),te(m(Ze),ee({key:0,class:"va-time-input__clear-button"},{...bt.value,...m(P)},{"aria-label":m(B)(K.$props.ariaResetLabel),onClick:be(k,["stop"]),onKeydown:[Ce(be(k,["stop"]),["enter"]),Ce(be(k,["stop"]),["space"])]}),null,16,["aria-label","onKeydown"])):z("",!0),!K.$props.leftIcon&&K.$props.icon?(A(),te(m(Ze),ee({key:1,class:"va-time-input__right-button va-time-input__side-button","aria-label":m(B)(K.$props.ariaToggleDropdownLabel)},bt.value),null,16,["aria-label"])):z("",!0)]),_:2},[Ge(ce.value,Y=>({name:Y,fn:J(oe=>[D(K.$slots,Y,de(we({...oe,toggleDropdown:Ve,showDropdown:ne,hideDropdown:Se,isOpen:m(l),focus:m(y)})))])})),K.$slots.prependInner||K.$props.leftIcon?{name:"prependInner",fn:J(Y=>[D(K.$slots,"prependInner",de(we({...Y,toggleDropdown:Ve,showDropdown:ne,hideDropdown:Se,isOpen:m(l),focus:m(y)}))),K.$props.leftIcon?(A(),te(m(Ze),ee({key:0,class:"va-time-input__left-button va-time-input__side-button","aria-label":m(B)(K.$props.ariaToggleDropdownLabel)},bt.value),null,16,["aria-label"])):z("",!0)]),key:"0"}:void 0]),1040,["style"])]),default:J(()=>[he(m(Xi),{"no-padding":"",onKeydown:[Ce(be(Se,["prevent"]),["esc"]),Ce(be(Se,["prevent"]),["enter"])]},{default:J(()=>[he(pc,ee({ref_key:"timePicker",ref:s},m(Q),{modelValue:m(u),"onUpdate:modelValue":U[0]||(U[0]=Y=>Tt(u)?u.value=Y:null)}),null,16,["modelValue"])]),_:1},8,["onKeydown"])]),_:3},16,["modelValue","class","style"]))}}),LX=me(EX),m0=t=>t==null?void 0:t.props,g0=t=>{var e;return!!((e=t==null?void 0:t.props)!=null&&e.active)||!1},VX=t=>t.type===_e,RX=t=>t&&t.length===0;function FX(t){var e;const n=(e=t.default)==null?void 0:e.call(t);return!n||RX(n)?[]:VX(n[0])?n[0].children:n}const NX=t=>{const e=FX(t.slots);return e.forEach((n,r)=>{m0(n)||(n.props={});const o=m0(n);o.vertical=t.props.vertical,t.props.centered&&(o.inverted=!!(r%2)),r===0&&(o.isFirst=!0),r===e.length-1&&(o.isLast=!0);const i=o.active;if(!i)return;r===0&&(o.activePrevious=i),r===e.length-1&&(o.activeNext=i),g0(e[r-1])&&(o.activePrevious=!0),g0(e[r+1])&&(o.activeNext=!0)}),e},Eu="va-timeline",HX={name:Eu,props:{...Me,vertical:{type:Boolean},centered:{type:Boolean},alignTop:{type:Boolean}},setup(t,{slots:e}){return()=>ut("div",{class:{[Eu]:!0,[`${Eu}--vertical`]:t.vertical,[`${Eu}--align-top`]:t.alignTop}},NX({props:t,slots:e}))}},zX=me(HX),ro="va-timeline-separator",jX=ie({name:ro,props:{...Me,color:{type:String,default:"primary"},vertical:{type:Boolean},active:{type:Boolean},activePrevious:{type:Boolean},activeNext:{type:Boolean}},setup(t){const{getColor:e}=He();return()=>ut("div",{class:{[ro]:!0,[`${ro}--vertical`]:t.vertical}},[ut("div",{class:{[`${ro}__line`]:!0,[`${ro}__line--active`]:t.activePrevious},style:{backgroundColor:e(t.activePrevious?t.color:"divider")}}),ut("div",{class:{[`${ro}__center`]:!0,[`${ro}__center--active`]:t.active},style:{backgroundColor:e(t.active?t.color:"divider")}}),ut("div",{class:{[`${ro}__line`]:!0,[`${ro}__line--active`]:t.activeNext},style:{backgroundColor:e(t.activeNext?t.color:"divider")}})])}}),Xx=me(jX),$i="va-timeline-item",v0=nt(Xx),WX=ie({name:$i,props:{...Me,...v0,color:{type:String,default:"primary"},isFirst:{type:Boolean},isLast:{type:Boolean},inverted:{type:Boolean}},setup(t,{slots:e}){const n=[ut(Xx,{...gt(v0).value})],r=t.inverted?e.after:e.before;r&&n.unshift(ut("div",{class:`${$i}__before`},r()));const o=t.inverted?e.before:e.after;return o&&n.push(ut("div",{class:`${$i}__after`},o())),()=>ut("div",{class:[{[$i]:!0},{[`${$i}--vertical`]:t.vertical},{[`${$i}--is-first`]:t.isFirst},{[`${$i}--is-last`]:t.isLast}]},n)}}),UX=me(WX),KX=me(pc),GX={nodes:{type:Array,default:[]},stateful:{type:Boolean,default:!0},selectable:{type:Boolean,default:!1},selectionType:{type:String,default:"leaf",validator:t=>["leaf","independent"].includes(t)},valueBy:{type:[String,Function],default:"id"},textBy:{type:[String,Function],default:"label"},trackBy:{type:[String,Function],default:"id"},iconBy:{type:[String,Function],default:"icon"},disabledBy:{type:[String,Function],default:"disabled"},expandedBy:{type:[String,Function],default:"expanded"},checkedBy:{type:[String,Function],default:"checked"},childrenBy:{type:[String,Function],default:"children"},expandAll:{type:Boolean,default:!1},expanded:{type:Array,default:[]},expandNodeBy:{type:String,default:"leaf"},filter:{type:String,default:""},filterMethod:{type:Function,default:void 0},checked:{type:Array,default:[]},color:{type:String,default:"primary"}},qX=["update:modelValue","update:checked","update:expanded","update:selected"],YX=t=>{const e=f=>{const h=typeof f;return h==="string"||h==="number"},n=(f,h)=>!h||e(f)?f:ux(f,h),r=f=>n(f,t.valueBy),o=f=>t.valueBy&&t.nodes.find(h=>f===r(h))||f,i=f=>n(f,t.textBy),s=f=>n(f,t.checkedBy),l=f=>n(f,t.disabledBy),a=f=>n(f,t.expandedBy),u=f=>n(f,t.trackBy),c=f=>n(f,t.childrenBy)??[],d=(f,h)=>{f.forEach(p=>{const v=p.children||[];v.length&&d(v,h),h(p)})};return{getText:i,getValue:r,getChecked:s,getTrackBy:u,getChildren:c,getDisabled:l,getExpanded:a,iterateNodes:d,getNodeByValue:o,getNodeProperty:n}},Jx=Symbol("TreeView"),XX=(t,e)=>{const{emit:n,toggleNode:r,toggleCheckbox:o}=e,i=y=>(y==null?void 0:y.getAttribute("aria-expanded"))==="true",s=y=>{var b;return((b=y==null?void 0:y.parentElement)==null?void 0:b.closest(".va-tree-node"))||null},l=y=>y==null?void 0:y.previousElementSibling,a=y=>{if(!y)return null;let b=l(y),S=i(b)&&f(b);if(S)do if(i(S)){if(S=f(S),S)continue;break}else{b=S;break}while(!0);return b||s(y)},u=y=>y==null?void 0:y.nextElementSibling,c=y=>{if(!y)return null;let b=u(y);const S=i(y);if(!b){let w=s(y);do if(u(w)){b=u(w);break}else{if(w=s(w),w)continue;break}while(!0)}return S?d(y):b},d=y=>{var b;return((b=y==null?void 0:y.querySelector(".va-tree-node-children"))==null?void 0:b.firstElementChild)||null},f=y=>{var b;return((b=y==null?void 0:y.querySelector(".va-tree-node-children"))==null?void 0:b.lastElementChild)||null},h=(y,b,S)=>{var w,x;const k=i(y);b==="left"?k?r(S):(w=s(y))==null||w.focus():k?(x=d(y))==null||x.focus():r(S)},p=(y,b)=>{var S,w;b==="up"?(S=a(y))==null||S.focus():(w=c(y))==null||w.focus()};return{handleKeyboardNavigation:(y,b)=>{const S=y.target;switch(y.code){case"ArrowUp":p(S,"up");break;case"ArrowRight":h(S,"right",b);break;case"ArrowDown":p(S,"down");break;case"ArrowLeft":h(S,"left",b);break;case"Space":if(t.selectable){const w=typeof b.checked<"u"?!b.checked:null;o(b,w)}else n("update:selected",b);break;case"Escape":t.selectable||n("update:selected",null),S.blur();break;default:S.blur()}}}},JX=XX,QX=(t,e)=>{const{getColor:n}=He(),r=g(()=>n(t.color)),o=g(()=>t.selectionType==="leaf"),{getText:i,getValue:s,getChecked:l,getTrackBy:a,getChildren:u,getDisabled:c,getExpanded:d,iterateNodes:f,getNodeProperty:h}=YX(t),{nodes:p,expandAll:v,filter:y,filterMethod:b,textBy:S}=Or(t),{valueComputed:w}=xt(t,e,"expanded"),{valueComputed:x}=xt(t,e,"checked"),k=W(),$=g({get:()=>k.value,set:O=>{const N=s(O);k.value!==N&&(k.value=N,e("update:selected",O))}}),C=(O,N,re)=>{re?O.value=O.value.concat(N).filter((X,ke,$e)=>$e.indexOf(X)===ke):O.value=O.value.filter(X=>!N.includes(X))},T=(O,N)=>{let re=N===null?!0:N;N&&O.indeterminate&&(re=!1);const X=[s(O)];if(o.value&&O.hasChildren){const ke=$e=>{$e.forEach(ye=>{if(ye.disabled)return;const j=u(ye);j.length&&ke(j),X.push(s(ye))})};ke(u(O))}C(x,X,re)},_=O=>{O.hasChildren&&C(w,[s(O)],!O.expanded)},M=({node:O,level:N,children:re=[],computedFilterMethod:X})=>{var ke;const $e=s(O);let ye=!0;const j=!!re.length,ce=c(O)||!1;let Se=!1,ne=x.value.includes($e)||!1;if(o.value&&j){const Z=re.every(Ve=>Ve.checked);ne=Z,Se=!Z&&re.some(Ve=>Ve.indeterminate||Ve.checked),Se&&(ne=null)}return y.value&&(ye=(re==null?void 0:re.some(Z=>Z.matchesFilter))||((ke=X.value)==null?void 0:ke.call(X,O,y.value,S.value))),{...O,level:N,checked:ne,children:re,disabled:ce,expanded:w.value.includes($e)||!1,hasChildren:j,matchesFilter:ye,indeterminate:Se}},F=g(()=>b!=null&&b.value?b.value:(O,N)=>i(O).toLowerCase().includes(N.toLowerCase())),L=(O,N=0)=>O.map(re=>{const X=u(re);if(X.length){const ke=L(X,N+1);return M({node:re,level:N,children:ke,computedFilterMethod:F})}return M({node:re,level:N,computedFilterMethod:F})}),H=O=>O.filter(N=>(N.children&&(N.children=H(N.children)),N.children.length===0&&(N.hasChildren=!1),N.matchesFilter)),{handleKeyboardNavigation:E}=JX(t,{emit:e,toggleCheckbox:T,toggleNode:_});Pr(Jx,{selectedNodeComputed:$,colorComputed:r,iconBy:t.iconBy,selectable:t.selectable,expandNodeBy:t.expandNodeBy,getText:i,getValue:s,getTrackBy:a,toggleNode:_,toggleCheckbox:T,getNodeProperty:h,handleKeyboardNavigation:E});const P=g(()=>L(p.value));return(()=>{const O=[],N=[];f(p.value,re=>{(v.value||d(re))&&O.push(s(re)),l(re)&&N.push(s(re))}),O.length&&C(w,O,!0),N.length&&C(x,N,!0)})(),{treeItems:g(()=>H(P.value)),getText:i,getTrackBy:a,toggleCheckbox:T}},ZX=QX,eJ=["role","aria-expanded","aria-disabled","aria-checked","tabindex"],tJ={class:"va-tree-node-root"},nJ={key:2,class:"va-tree-node-content__item"},rJ=["aria-hidden"],oJ="The VaTreeNode component should be used in the context of VaTreeView component",iJ=ie({name:"VaTreeNode",__name:"VaTreeNode",props:{node:{type:Object,required:!0}},setup(t){const e=t,{iconBy:n,selectable:r,expandNodeBy:o,colorComputed:i,selectedNodeComputed:s,getText:l,getTrackBy:a,toggleNode:u,toggleCheckbox:c,getNodeProperty:d,handleKeyboardNavigation:f}=iu(Jx,oJ),h=g(()=>l(e.node)||""),p=g(()=>e.node.hasChildren?!!e.node.expanded:void 0),v=g(()=>d(e.node,n)),y=g(()=>e.node.hasChildren?"group":"treeitem"),b=ct("va-tree-node",()=>({disabled:!!e.node.disabled,checked:!!e.node.checked,hasChildren:!!e.node.hasChildren,[`level-${e.node.level}`]:!0,[`expand-by-${o}`]:!0})),S=ct("va-tree-node-children",()=>({expanded:!!p.value})),w=ct("va-tree-node-content",()=>({indent:e.node.hasChildren===!1})),x=ct("va-tree-node-content",()=>({clickable:e.node.hasChildren===!0&&o==="node"})),k=g(()=>e.node.disabled?-1:0),$=C=>{o===(o==="node"&&C==="leaf"?"node":C)&&u(e.node),s.value=e.node};return(C,T)=>{const _=so("va-tree-node",!0);return A(),I("div",{class:Ae(["va-tree-node",m(b)]),role:y.value,"aria-expanded":p.value,"aria-disabled":C.$props.node.disabled,"aria-checked":!!C.$props.node.checked,tabindex:k.value,onKeydown:[T[4]||(T[4]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["up"])),T[5]||(T[5]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["right"])),T[6]||(T[6]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["down"])),T[7]||(T[7]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["left"])),T[8]||(T[8]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["space"])),T[9]||(T[9]=Ce(be(M=>m(f)(M,C.$props.node),["stop","prevent"]),["esc"]))]},[q("div",tJ,[q("div",{class:Ae(["va-tree-node-content",m(w)]),onClick:T[3]||(T[3]=M=>$("node"))},[C.$props.node.hasChildren?(A(),I("div",{key:0,class:"va-tree-node-content__item va-tree-node-content__item--leaf",onClick:T[0]||(T[0]=be(M=>$("leaf"),["stop"]))},[D(C.$slots,"icon-toggle",de(we(C.$props.node)),()=>[he(m(Ze),{name:p.value?"keyboard_arrow_down":"keyboard_arrow_right",size:"20px"},null,8,["name"])])])):z("",!0),m(r)?(A(),I("div",{key:1,class:"va-tree-node-content__item",onClick:T[2]||(T[2]=be(()=>{},["stop"]))},[D(C.$slots,"checkbox",de(we(C.$props.node)),()=>[he(m(nu),{"model-value":C.$props.node.checked,color:m(i),indeterminate:"","onUpdate:modelValue":T[1]||(T[1]=M=>m(c)(C.$props.node,M)),class:"va-tree-node__checkbox"},null,8,["model-value","color"])])])):z("",!0),v.value?(A(),I("div",nJ,[D(C.$slots,"icon",de(we(C.$props.node)),()=>[he(m(Ze),{name:v.value,size:"small"},null,8,["name"])])])):z("",!0),q("div",{class:Ae(["va-tree-node-content__body",m(x)])},[D(C.$slots,"content",de(we(C.$props.node)),()=>[Ue(Be(h.value),1)])],2)],2)]),xr(q("div",{"aria-hidden":!C.$props.node.expanded,class:Ae(["va-tree-node-children",m(S)])},[(A(!0),I(_e,null,Ge(C.$props.node.children,M=>(A(),te(_,{key:m(a)(M),node:M},vn({_:2},[Ge(C.$slots,(F,L)=>({name:L,fn:J(H=>[D(C.$slots,L,de(we(H)))])}))]),1032,["node"]))),128))],10,rJ),[[zs,C.$props.node.hasChildren]])],42,eJ)}}}),sJ=me(iJ),lJ={class:"va-tree-view",role:"tree"},aJ=ie({name:"VaTreeView",__name:"VaTreeView",props:{...GX},emits:[...qX],setup(t,{emit:e}){const n=t,r=e,{treeItems:o,getTrackBy:i}=ZX(n,r);return(s,l)=>(A(),I("div",lJ,[s.$props.filter&&!m(o).length?D(s.$slots,"not-found",{key:0},()=>[Ue("No matching nodes found")]):(A(!0),I(_e,{key:1},Ge(m(o),a=>(A(),te(m(sJ),{key:m(i)(a),node:a},vn({_:2},[Ge(s.$slots,(u,c)=>({name:c,fn:J(d=>[D(s.$slots,c,de(we(d)))])}))]),1032,["node"]))),128))]))}}),uJ=me(aJ),cJ={class:"va-scroll-container__content"},dJ=ie({name:"VaScrollContainer",__name:"VaScrollContainer",props:{...ss,vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},color:{type:String,default:"secondary"},rtl:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},sizesConfig:{type:Object,default:()=>({defaultSize:4,sizes:{small:4,medium:6,large:8}})},size:{type:String,default:"small",validator:t=>["small","medium","large"].includes(t)}},setup(t){const e=t,{getColor:n}=He(),{sizeComputed:r}=ls(e),o=g(()=>e.horizontal?"auto":"hidden"),i=g(()=>e.vertical?"auto":"hidden"),s=g(()=>{const u=n(e.color);return e.gradient?`linear-gradient(0deg, var(--va-scroll-container-scrollbar-gradient-to) 0%, ${u} 100%)`:u}),l=g(()=>r.value),a=g(()=>e.rtl?"rtl":"ltr");return(u,c)=>(A(),I("div",{class:"va-scroll-container",style:se(`--va-scroll-color: ${String(s.value)};--va-scrollbar-size: ${String(l.value)};--va-overflow-x: ${String(o.value)};--va-overflow-y: ${String(i.value)};--va-scrollbar-position: ${String(a.value)}`)},[q("div",cJ,[D(u.$slots,"default")])],4))}}),fJ=me(dJ),hJ={class:"va-viewer-content"},pJ=ie({name:"VaViewer",inheritAttrs:!1,__name:"VaViewer",setup(t,{expose:e}){const n=W(),r=W(),o=Gd(),i=W(!0),s=g(()=>o.value&&!i.value),l=()=>i.value=!1,a=()=>i.value=!0,u=Ln(),c=()=>{u.anchor||l()};Jd([n,r],a);const d=us(),f=g(()=>{var h;return(h=d.value)==null?void 0:h.body});return e({openViewer:l,closeViewer:a}),(h,p)=>(A(),I(_e,null,[q("div",ee({class:"va-viewer"},h.$attrs,{onClick:c}),[D(h.$slots,"anchor",de(we({openViewer:l}))),h.$slots.anchor?z("",!0):D(h.$slots,"default",{key:0})],16),s.value?(A(),te(Ca,{key:0,to:f.value},[q("div",hJ,[q("div",{ref_key:"content",ref:n,class:"va-viewer-content__main-area"},[h.$slots.image?z("",!0):D(h.$slots,"default",{key:0}),D(h.$slots,"image")],512),q("div",{ref_key:"controls",ref:r,class:"va-viewer-content__controls-panel"},[D(h.$slots,"controls"),D(h.$slots,"close",de(we({close:a})),()=>[q("button",{class:"va-viewer-content__close-button",onClick:a},[he(m(Ze),{name:"close",color:"backgroundPrimary"})])])],512)])],8,["to"])):z("",!0)],64))}}),mJ=me(pJ),gJ=ie({name:"VaValue",props:{defaultValue:{type:null,required:!1,default:!1}},setup(t,{slots:e}){const n=W(t.defaultValue),r=new Proxy(n,{get(o,i){return i==="value"?o.value:o[i]},set(o,i,s){return i==="value"&&(o.value=s),!0}});return()=>ut(_e,[mk(e.default,r)])}}),vJ=me(gJ),yJ=t=>{const e=document.createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="auto";const{font:n}=window.getComputedStyle(t);return e.style.font=n,e.textContent="Vuestic",e.style.zIndex="-1",e.style.pointerEvents="none",e.style.opacity="0",e.ariaHidden="true",e.innerText=t.value,e},bJ=(t,e)=>{const n=W(),r=W();return fe(t,o=>{var i,s;o&&(n.value=yJ(o),(s=(i=t.value)==null?void 0:i.parentElement)==null||s.appendChild(n.value))}),Ys(n,o=>{!o||!t.value||(r.value=o[0].contentRect.height)}),fe(e,o=>{n.value&&(n.value.innerText=String(o),n.value.innerHTML+=" ;")}),r},SJ=["rows","loading","ariaLabel"],y0=t=>{if(t>0)return!0;throw new Error(`\`minRows|maxRows\` must be a positive integer greater than 0, but ${t} is provided`)},{createEmits:CJ,createListeners:wJ}=fs(["input","change","click","update:modelValue"]),b0=nt(Wn),kJ=ie({name:"VaTextarea",__name:"VaTextarea",props:{...vi,...b0,...Kt,...Co,modelValue:{type:[String,Number],default:""},placeholder:{type:String},autosize:{type:Boolean,default:!1},minRows:{type:[Number,String],default:1,validator:y0},maxRows:{type:[Number,String],validator:y0},resize:{type:Boolean,default:!0},clearValue:{type:[String],default:""}},emits:[...CJ(),...mi],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Ne(),{valueComputed:s}=xt(r,o,"modelValue",{defaultValue:""}),l=()=>{Kr(i.value)},a=()=>{Yd(i.value)},u=()=>S(()=>{o("update:modelValue",r.clearValue),o("clear"),b()}),{isDirty:c,isTouched:d,computedError:f,computedErrorMessages:h,listeners:p,validationAriaAttributes:v,isLoading:y,resetValidation:b,withoutValidation:S}=wo(r,o,{value:s,focus:l,reset:u}),w=g(()=>r.resize&&!r.autosize),x=W(r.minRows),k=bJ(i,s);function $(){let F=parseFloat(String(r.minRows)),L=parseFloat(String(r.maxRows));if(F=isNaN(F)?1:F,L=isNaN(L)?1/0:L,!r.autosize){x.value=Math.max(L,Math.min(F,L??0));return}if(!k.value||!i.value)return;const H=getComputedStyle(i.value),E=k.value,P=parseFloat(H.lineHeight),V=Math.max(F*P,F+Math.round(P)),O=L*P||1/0,N=Math.max(V,Math.min(O,E??0));x.value=Math.round(N/P),i.value.style.height=`${N+1}px`}tr(()=>{$()});const C=g(()=>({resize:w.value?void 0:"none"})),T=g(()=>({...Bt(r,["disabled","readonly","placeholder","ariaLabel"])})),_=gt(b0),M=wJ(o);return e({isDirty:c,isTouched:d,isLoading:y,computedError:f,computedErrorMessages:h,reset:u,focus:l,blur:a,value:s,withoutValidation:S,resetValidation:b}),(F,L)=>(A(),te(m(Wn),ee({class:"va-textarea"},m(_),{error:m(f),"error-messages":m(h)}),{default:J(()=>[q("div",{class:Ae(["va-textarea__resize-wrapper",{"va-textarea__resize-wrapper--resizable":w.value}])},[xr(q("textarea",ee({"onUpdate:modelValue":L[0]||(L[0]=H=>Tt(s)?s.value=H:null)},{...T.value,...m(M),...m(v),...m(p)},{class:["va-textarea__textarea",{"va-textarea__textarea--autosize":t.autosize}],ref_key:"textarea",ref:i,rows:x.value,style:C.value,loading:m(y),ariaLabel:F.$props.label}),null,16,SJ),[[Ic,m(s)]])],2)]),_:1},16,["error","error-messages"]))}}),xJ=bo(kJ),S0='[role="menuitem"]:not([aria-disabled="true"])',$J='[role="menuitem"]:focus',AJ=t=>({role:"menuitem",tabindex:-1,"aria-disabled":!!t.disabled}),TJ=()=>({role:"menu",tabindex:0}),_J=t=>{At("keydown",({key:e})=>{if(!t.value)return;const n=t.value.querySelectorAll(S0),r=t.value.querySelector($J);if(n.length){if(!r){const o=t.value.querySelector(S0);o&&Kr(o);return}if(e==="ArrowDown"||e==="ArrowRight"){const o=Array.from(n).indexOf(r);Kr(n[o+1])}if(e==="ArrowUp"||e==="ArrowLeft"){const o=Array.from(n).indexOf(r);Kr(n[o-1])}}},t)},OJ={class:"va-menu-item__cell va-menu-item__cell--left"},PJ={class:"va-menu-item__cell va-menu-item__cell--center"},BJ={class:"va-menu-item__content"},MJ={class:"va-menu-item__cell va-menu-item__cell--right"},Qx=ie({name:"VaMenuItem",__name:"VaMenuItem",props:{name:{type:String,default:""},icon:{type:String,defatult:""},rightIcon:{type:String,defatult:""},disabled:{type:Boolean,default:!1}},emits:["selected"],setup(t,{emit:e}){const{hasKeyboardFocus:n,keyboardFocusListeners:r}=XU();return(o,i)=>(A(),I("tr",ee({class:"va-menu-item"},m(AJ)({disabled:t.disabled}),ur(m(r),!0),{class:{"va-menu-item--disabled":t.disabled,"va-menu-item--keyboard-focus":m(n)},onClick:i[0]||(i[0]=s=>o.$emit("selected")),onKeydown:i[1]||(i[1]=Ce(s=>o.$emit("selected"),["enter","space"]))}),[q("td",OJ,[D(o.$slots,"left-icon",{},()=>[t.icon?(A(),te(m(Ze),{key:0,class:"va-menu-item__icon--left",name:t.icon},null,8,["name"])):z("",!0)])]),q("td",PJ,[D(o.$slots,"default",{},()=>[q("a",BJ,Be(t.name),1)])]),q("td",MJ,[D(o.$slots,"right-icon",{},()=>[t.rightIcon?(A(),te(m(Ze),{key:0,class:"va-menu-item__icon--right",name:t.rightIcon},null,8,["name"])):z("",!0)])])],16))}}),IJ={class:"va-menu-list__group-name"},DJ=ie({name:"VaMenuGroup",__name:"VaMenuGroup",props:{groupName:{type:String,required:!0},color:{type:String,default:"secondary"}},setup(t){const e=t,{getColor:n}=He(),r=g(()=>n(e.color));return(o,i)=>(A(),I(_e,null,[q("div",{class:"va-menu-list__group-name-wrapper",colspan:"99999",style:se(`--va-color-computed: ${String(r.value)}`)},[q("span",IJ,Be(t.groupName),1)],4),D(o.$slots,"default",{style:se(`--va-color-computed: ${String(r.value)}`)},void 0,!0)],64))}}),Zx=hs(DJ,[["__scopeId","data-v-4dd1ae9a"]]),EJ={colspan:"9999"},LJ=ie({name:"VaMenuList",__name:"VaMenuList",props:{...Cl,options:{type:Array,default:()=>[]}},emits:["selected"],setup(t,{emit:e}){const n=t,r=W();_J(r);const{getText:o,getValue:i,getDisabled:s,getGroupBy:l,getTrackBy:a}=wl(n),u=g(()=>n.options.reduce((h,p)=>{const v=l(p);return v?(h[v]||(h[v]=[]),h[v].push(p)):h._noGroup.push(p),h},{_noGroup:[]})),c=h=>Array.isArray(h)&&h[0].type===_e?h[0].children:h,d=h=>typeof h.type=="object"&&"name"in h.type&&typeof h.type.name=="string"?h.type.name:"",f=h=>typeof h.type=="string"?h.type:typeof h.type=="object"&&"name"in h.type&&typeof h.type.name=="string"?h.type.name:String(h.key);return(h,p)=>(A(),I("table",ee({class:"va-menu-list",ref_key:"container",ref:r},m(TJ)()),[q("tbody",null,[h.$slots.default?(A(!0),I(_e,{key:0},Ge(c(h.$slots.default()),v=>(A(),I(_e,null,[d(v)==="VaMenuItem"?(A(),te(zn(v),{key:f(v)+"menuitem"})):d(v)==="VaDropdown"?(A(),te(zn(v),{key:f(v)+"menu-dropdown"})):(A(),I("td",{colspan:"999",key:f(v),class:"va-menu-list__virtual-td"},[(A(),te(zn(v)))]))],64))),256)):D(h.$slots,"default",{key:1},()=>[(A(!0),I(_e,null,Ge(u.value,(v,y)=>(A(),I(_e,{key:y},[y!=="_noGroup"?D(h.$slots,"group",{key:0},()=>[q("tr",null,[q("td",EJ,[he(Zx,{"group-name":y},null,8,["group-name"])])])]):z("",!0),(A(!0),I(_e,null,Ge(v,b=>(A(),te(Qx,{key:m(a)(b),name:m(o)(b),icon:b.icon,"right-icon":b.rightIcon,disabled:m(s)(b),onSelected:S=>h.$emit("selected",m(i)(b),b)},{"left-icon":J(S=>[D(h.$slots,"left-icon",de(we(S)))]),"right-icon":J(S=>[D(h.$slots,"right-icon",de(we(S)))]),_:2},1032,["name","icon","right-icon","disabled","onSelected"]))),128))],64))),128))])])],16))}}),uf=bo(LJ),VJ=bo(Qx),RJ=bo(Zx),FJ=t=>{tr(()=>{t.value&&Ot(()=>{Kr(Rt(t.value))})})},C0=nt(uf),NJ=Li(uf),w0=nt(er),HJ=Li(er),zJ=ie({name:"VaMenu",__name:"VaMenu",props:{...Me,...C0,...w0,stickToEdges:{type:Boolean,default:!0}},emits:[...HJ,...NJ],setup(t,{expose:e,emit:n}){const r=W(),o=W();FJ(r);const i=()=>{var u;(u=o.value)==null||u.hide(),Ot(()=>{var c;const d=Rt((c=o.value)==null?void 0:c.anchorRef);d&&op(d)})},s=u=>{u.key==="Escape"&&i(),(u.key==="ArrowDown"||u.key==="ArrowUp")&&u.preventDefault()},l=gt(C0),a=gt(w0);return e({close:i}),(u,c)=>(A(),te(m(er),ee(m(a),{ref_key:"dropdown",ref:o}),{anchor:J(()=>[D(u.$slots,"anchor")]),default:J(()=>[he(m(Xi),{onKeydown:s},{default:J(()=>[he(m(uf),ee({onKeydown:c[0]||(c[0]=Ce(be(()=>{},["prevent","stop"]),["enter","space"]))},m(l),{ref_key:"menuList",ref:r,onSelected:c[1]||(c[1]=d=>{u.$emit("selected",d),i()})}),vn({_:2},[u.$slots.default?{name:"default",fn:J(()=>[D(u.$slots,"default")]),key:"0"}:void 0]),1040)]),_:3})]),_:3},16))}}),jJ=bo(zJ),WJ={rules:()=>[],dirty:!1,errorCount:1,success:!1,messages:()=>[],immediateValidation:!1},UJ={stateful:!1},KJ=ie({__name:"VaFormField",props:zO({stateful:{type:Boolean},modelValue:{},name:{},rules:{},dirty:{type:Boolean},error:{type:Boolean},errorMessages:{},errorCount:{},success:{type:Boolean},messages:{},immediateValidation:{type:Boolean},clearValue:{}},{...UJ,...WJ}),emits:["update:error","update:errorMessages","update:dirty","update:modelValue"],setup(t,{emit:e}){const n=t,r=e,{valueComputed:o}=xt(n,r,"modelValue"),i=()=>{o.value=n.clearValue},s=()=>{},{computedError:l,computedErrorMessages:a,validate:u,isDirty:c,isLoading:d,isValid:f,resetValidation:h,validationAriaAttributes:p,listeners:v}=wo(n,r,{reset:i,focus:s,value:o}),y=g(()=>l.value?a.value:n.messages),b=g(()=>f.value?n.success?"success":"":"danger"),S=W(o.value);tr(()=>{S.value=o.value});const w=()=>new Proxy(S,{get(x,k){return k==="ref"?S.value:Reflect.get(x,k)},set(x,k,$){return k==="ref"?(S.value=$,o.value=$,!0):Reflect.set(o,k,$)}});return(x,k)=>(A(),te(m(Ud),{"model-value":y.value,"has-error":!m(f),color:b.value},vn({default:J(({ariaAttributes:$,attrs:C})=>[D(x.$slots,"default",de(we({error:m(l),errorMessages:y.value,messages:y.value,validate:m(u),isDirty:m(c),isLoading:m(d),isValid:m(f),resetValidation:m(h),validationAriaAttributes:m(p),...m(v),value:w(),modelValue:w(),ariaAttributes:$,bind:{...C,...$,...m(v)}})))]),_:2},[Ge(["message","messages"],$=>({name:$,fn:J(C=>[D(x.$slots,$,de(we(C)))])}))]),1032,["model-value","has-error","color"]))}}),GJ=bo(KJ),qJ=Object.freeze(Object.defineProperty({__proto__:null,VaAccordion:d5,VaAffix:g5,VaAlert:$5,VaAppBar:_5,VaAspectRatio:Hk,VaAvatar:Wc,VaAvatarGroup:V5,VaBacktop:N5,VaBadge:Yk,VaBreadcrumbs:sW,VaBreadcrumbsItem:iW,VaButton:et,VaButtonDropdown:uU,VaButtonGroup:Qd,VaButtonToggle:dU,VaCard:kU,VaCardActions:CU,VaCardBlock:wU,VaCardContent:bU,VaCardTitle:SU,VaCarousel:qU,VaCheckbox:nu,VaChip:nK,VaCollapse:lK,VaColorIndicator:pg,VaColorInput:UK,VaColorPalette:qK,VaConfig:Ya,VaContent:ZK,VaCounter:aG,VaDataTable:i9,VaDateInput:L9,VaDatePicker:V9,VaDivider:Ix,VaDropdown:er,VaDropdownContent:Xi,VaFallback:Gs,VaFileUpload:bq,VaForm:xq,VaFormField:GJ,VaHover:dc,VaIcon:Ze,VaImage:cg,VaInfiniteScroll:Oq,VaInnerLoading:Tx,VaInput:gg,VaInputWrapper:Wn,VaLayout:Wq,VaList:Dx,VaListItem:lf,VaListItemLabel:q9,VaListItemSection:Js,VaListLabel:G9,VaListSeparator:Y9,VaMenu:jJ,VaMenuGroup:RJ,VaMenuItem:VJ,VaMenuList:uf,VaMessageList:Ud,VaModal:tg,VaNavbar:Zq,VaNavbarItem:e7,VaOptionList:h7,VaPagination:y7,VaParallax:x7,VaPopover:P7,VaProgressBar:Ex,VaProgressCircle:bl,VaRadio:zx,VaRating:V7,VaScrollContainer:fJ,VaSelect:vY,VaSeparator:q6,VaSidebar:_Y,VaSidebarItem:LY,VaSidebarItemContent:DY,VaSidebarItemTitle:EY,VaSkeleton:wY,VaSkeletonGroup:kY,VaSlider:KY,VaSpacer:X6,VaSplit:QY,VaStepper:vX,VaSwitch:jx,VaTab:uX,VaTabs:iX,VaTextarea:xJ,VaTimeInput:LX,VaTimePicker:KX,VaTimeline:zX,VaTimelineItem:UX,VaToast:bk,VaTreeView:uJ,VaValue:vJ,VaViewer:mJ,VaVirtualScroller:rf},Symbol.toStringTag,{value:"Module"})),YJ=t=>typeof t=="function",Io=(t,e,...n)=>{YJ(e)?t.use(e(...n)):t.use(e)},XJ=So((t={})=>({install(e){const{config:n}=t;Wy(e),Object.entries(qJ).forEach(([r,o])=>{e.component(r,o)}),Io(e,Q6(n)),Io(e,p6),Io(e,nj(n)),Io(e,s5),Io(e,ij),Io(e,Aj),Io(e,$j),Io(e,o5),Wy(null)}})),e$=1024;let JJ=0,Zf=class{constructor(e,n){this.from=e,this.to=n}};class it{constructor(e={}){this.id=JJ++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=En.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}it.closedBy=new it({deserialize:t=>t.split(" ")});it.openedBy=new it({deserialize:t=>t.split(" ")});it.group=new it({deserialize:t=>t.split(" ")});it.isolate=new it({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});it.contextHash=new it({perNode:!0});it.lookAhead=new it({perNode:!0});it.mounted=new it({perNode:!0});class Yc{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[it.mounted.id]}}const QJ=Object.create(null);class En{constructor(e,n,r,o=0){this.name=e,this.props=n,this.id=r,this.flags=o}static define(e){let n=e.props&&e.props.length?Object.create(null):QJ,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),o=new En(e.name||"",n,e.id,r);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return o}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(it.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let o of r.split(" "))n[o]=e[r];return r=>{for(let o=r.prop(it.group),i=-1;i<(o?o.length:0);i++){let s=n[i<0?r.name:o[i]];if(s)return s}}}}En.none=new En("",Object.create(null),0,8);class cf{constructor(e){this.types=e;for(let n=0;n0;for(let a=this.cursor(s|ln.IncludeAnonymous);;){let u=!1;if(a.from<=i&&a.to>=o&&(!l&&a.type.isAnonymous||n(a)!==!1)){if(a.firstChild())continue;u=!0}for(;u&&r&&(l||!a.type.isAnonymous)&&r(a),!a.nextSibling();){if(!a.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:Tg(En.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,o)=>new Et(this.type,n,r,o,this.propValues),e.makeTree||((n,r,o)=>new Et(En.none,n,r,o)))}static build(e){return nQ(e)}}Et.empty=new Et(En.none,[],[],0);class $g{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $g(this.buffer,this.index)}}class li{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return En.none}toString(){let e=[];for(let n=0;n0));a=s[a+3]);return l}slice(e,n,r){let o=this.buffer,i=new Uint16Array(n-e),s=0;for(let l=e,a=0;l=e&&ne;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function _a(t,e,n,r){for(var o;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?l.length:-1;e!=u;e+=n){let c=l[e],d=a[e]+s.from;if(t$(o,r,d,d+c.length)){if(c instanceof li){if(i&ln.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,n,r-d,o);if(f>-1)return new Uo(new ZJ(s,c,e,d),null,f)}else if(i&ln.IncludeAnonymous||!c.type.isAnonymous||Ag(c)){let f;if(!(i&ln.IgnoreMounts)&&(f=Yc.get(c))&&!f.overlay)return new mr(f.tree,d,e,s);let h=new mr(c,d,e,s);return i&ln.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,o)}}}if(i&ln.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+n:e=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let o;if(!(r&ln.IgnoreOverlays)&&(o=Yc.get(this._tree))&&o.overlay){let i=e-this.from;for(let{from:s,to:l}of o.overlay)if((n>0?s<=i:s=i:l>i))return new mr(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function x0(t,e,n,r){let o=t.cursor(),i=[];if(!o.firstChild())return i;if(n!=null){for(let s=!1;!s;)if(s=o.type.is(n),!o.nextSibling())return i}for(;;){if(r!=null&&o.type.is(r))return i;if(o.type.is(e)&&i.push(o.node),!o.nextSibling())return r==null?i:[]}}function dp(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class ZJ{constructor(e,n,r,o){this.parent=e,this.buffer=n,this.index=r,this.start=o}}class Uo extends n${get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],e,n-this.context.start,r);return i<0?null:new Uo(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&ln.ExcludeBuffers)return null;let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return i<0?null:new Uo(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Uo(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Uo(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,o=this.index+4,i=r.buffer[this.index+3];if(i>o){let s=r.buffer[this.index+1];e.push(r.slice(o,i,s)),n.push(0)}return new Et(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function r$(t){if(!t.length)return null;let e=0,n=t[0];for(let i=1;in.from||s.to=e){let l=new mr(s.tree,s.overlay[0].from+i.from,-1,i);(o||(o=[r])).push(_a(l,e,n,!1))}}return o?r$(o):r}class fp{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof mr)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:o}=this.buffer;return this.type=n||o.set.types[o.buffer[e]],this.from=r+o.buffer[e+1],this.to=r+o.buffer[e+2],!0}yield(e){return e?e instanceof mr?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:o}=this.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],e,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&ln.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ln.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ln.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let o=r<0?0:this.stack[r]+4;if(this.index!=o)return this.yieldBuf(n.findChild(o,this.index,-1,0,4))}else{let o=n.buffer[this.index+3];if(o<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(o)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:o}=this;if(o){if(e>0){if(this.index-1)for(let i=n+e,s=e<0?-1:r._tree.children.length;i!=s;i+=e){let l=r._tree.children[i];if(this.mode&ln.IncludeAnonymous||l instanceof li||!l.type.isAnonymous||Ag(l))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==o){if(o==this.index)return s;n=s,r=i+1;break e}o=this.stack[--i]}for(let o=r;o=0;i--){if(i<0)return dp(this.node,e,o);let s=r[n.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[o]&&e[o]!=s.name)return!1;o--}}return!0}}function Ag(t){return t.children.some(e=>e instanceof li||!e.type.isAnonymous||Ag(e))}function nQ(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:o=e$,reused:i=[],minRepeatType:s=r.types.length}=t,l=Array.isArray(n)?new $g(n,n.length):n,a=r.types,u=0,c=0;function d(k,$,C,T,_,M){let{id:F,start:L,end:H,size:E}=l,P=c;for(;E<0;)if(l.next(),E==-1){let X=i[F];C.push(X),T.push(L-k);return}else if(E==-3){u=F;return}else if(E==-4){c=F;return}else throw new RangeError(`Unrecognized record size: ${E}`);let V=a[F],O,N,re=L-k;if(H-L<=o&&(N=y(l.pos-$,_))){let X=new Uint16Array(N.size-N.skip),ke=l.pos-N.size,$e=X.length;for(;l.pos>ke;)$e=b(N.start,X,$e);O=new li(X,H-N.start,r),re=N.start-k}else{let X=l.pos-E;l.next();let ke=[],$e=[],ye=F>=s?F:-1,j=0,ce=H;for(;l.pos>X;)ye>=0&&l.id==ye&&l.size>=0?(l.end<=ce-o&&(p(ke,$e,L,j,l.end,ce,ye,P),j=ke.length,ce=l.end),l.next()):M>2500?f(L,X,ke,$e):d(L,X,ke,$e,ye,M+1);if(ye>=0&&j>0&&j-1&&j>0){let Se=h(V);O=Tg(V,ke,$e,0,ke.length,0,H-L,Se,Se)}else O=v(V,ke,$e,H-L,P-H)}C.push(O),T.push(re)}function f(k,$,C,T){let _=[],M=0,F=-1;for(;l.pos>$;){let{id:L,start:H,end:E,size:P}=l;if(P>4)l.next();else{if(F>-1&&H=0;E-=3)L[P++]=_[E],L[P++]=_[E+1]-H,L[P++]=_[E+2]-H,L[P++]=P;C.push(new li(L,_[2]-H,r)),T.push(H-k)}}function h(k){return($,C,T)=>{let _=0,M=$.length-1,F,L;if(M>=0&&(F=$[M])instanceof Et){if(!M&&F.type==k&&F.length==T)return F;(L=F.prop(it.lookAhead))&&(_=C[M]+F.length+L)}return v(k,$,C,T,_)}}function p(k,$,C,T,_,M,F,L){let H=[],E=[];for(;k.length>T;)H.push(k.pop()),E.push($.pop()+C-_);k.push(v(r.types[F],H,E,M-_,L-M)),$.push(_-C)}function v(k,$,C,T,_=0,M){if(u){let F=[it.contextHash,u];M=M?[F].concat(M):[F]}if(_>25){let F=[it.lookAhead,_];M=M?[F].concat(M):[F]}return new Et(k,$,C,T,M)}function y(k,$){let C=l.fork(),T=0,_=0,M=0,F=C.end-o,L={size:0,start:0,skip:0};e:for(let H=C.pos-k;C.pos>H;){let E=C.size;if(C.id==$&&E>=0){L.size=T,L.start=_,L.skip=M,M+=4,T+=4,C.next();continue}let P=C.pos-E;if(E<0||P=s?4:0,O=C.start;for(C.next();C.pos>P;){if(C.size<0)if(C.size==-3)V+=4;else break e;else C.id>=s&&(V+=4);C.next()}_=O,T+=E,M+=V}return($<0||T==k)&&(L.size=T,L.start=_,L.skip=M),L.size>4?L:void 0}function b(k,$,C){let{id:T,start:_,end:M,size:F}=l;if(l.next(),F>=0&&T4){let H=l.pos-(F-4);for(;l.pos>H;)C=b(k,$,C)}$[--C]=L,$[--C]=M-k,$[--C]=_-k,$[--C]=T}else F==-3?u=T:F==-4&&(c=T);return C}let S=[],w=[];for(;l.pos>0;)d(t.start||0,t.bufferStart||0,S,w,-1,0);let x=(e=t.length)!==null&&e!==void 0?e:S.length?w[0]+S[0].length:0;return new Et(a[t.topID],S.reverse(),w.reverse(),x)}const $0=new WeakMap;function mc(t,e){if(!t.isAnonymous||e instanceof li||e.type!=t)return 1;let n=$0.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof Et)){n=1;break}n+=mc(t,r)}$0.set(e,n)}return n}function Tg(t,e,n,r,o,i,s,l,a){let u=0;for(let p=r;p=c)break;$+=C}if(w==x+1){if($>c){let C=p[x];h(C.children,C.positions,0,C.children.length,v[x]+S);continue}d.push(p[x])}else{let C=v[w-1]+p[w-1].length-k;d.push(Tg(t,p,v,x,w,k,C,null,a))}f.push(k+S-i)}}return h(e,n,r,o,0),(l||a)(d,f,s)}class ji{constructor(e,n,r,o,i=!1,s=!1){this.from=e,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let o=[new ji(0,e.length,e,0,!1,r)];for(let i of n)i.to>e.length&&o.push(i);return o}static applyChanges(e,n,r=128){if(!n.length)return e;let o=[],i=1,s=e.length?e[0]:null;for(let l=0,a=0,u=0;;l++){let c=l=r)for(;s&&s.from=f.from||d<=f.to||u){let h=Math.max(f.from,a)-u,p=Math.min(f.to,d)-u;f=h>=p?null:new ji(h,p,f.tree,f.offset+u,l>0,!!c)}if(f&&o.push(f),s.to>d)break;s=inew Zf(o.from,o.to)):[new Zf(0,0)]:[new Zf(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let o=this.startParse(e,n,r);for(;;){let i=o.advance();if(i)return i}}}class rQ{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new it({perNode:!0});var A0={};class Xc{constructor(e,n,r,o,i,s,l,a,u,c=0,d){this.p=e,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=s,this.buffer=l,this.bufferBase=a,this.curContext=u,this.lookAhead=c,this.parent=d}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let o=e.parser.context;return new Xc(e,[],n,r,r,0,[],0,o?new T0(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,o=e&65535,{parser:i}=this.p,s=i.dynamicPrecedence(o);if(s&&(this.score+=s),r==0){this.pushState(i.getGoto(this.state,o,!0),this.reducePos),o=2e3&&!(!((n=this.p.parser.nodeSet.types[o])===null||n===void 0)&&n.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(o,a)}storeNode(e,n,r,o=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[l-4]==0&&s.buffer[l-1]>-1){if(n==r)return;if(s.buffer[l-2]>=n){s.buffer[l-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(e,n,r,o);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,o>4&&(o-=4);this.buffer[s]=e,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=o}}shift(e,n,r,o){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=o,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,o,4);else{let i=e,{parser:s}=this.p;(o>this.pos||n<=s.maxNode)&&(this.pos=o,s.stateFlag(i,1)||(this.reducePos=o)),this.pushState(i,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,o,4)}}apply(e,n,r,o){e&65536?this.reduce(e):this.shift(e,n,r,o)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(n,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),o=e.bufferBase+n;for(;e&&o==e.bufferBase;)e=e.parent;return new Xc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new oQ(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let o=[];for(let i=0,s;ia&1&&l==s)||o.push(n[i],s)}n=o}let r=[];for(let o=0;o>19,o=n&65535,i=this.stack.length-r*3;if(i<0||e.getGoto(this.stack[i],o,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(o,i)=>{if(!n.includes(o))return n.push(o),e.allActions(o,s=>{if(!(s&393216))if(s&65536){let l=(s>>19)-i;if(l>1){let a=s&65535,u=this.stack.length-l*3;if(u>=0&&e.getGoto(this.stack[u],a,!1)>=0)return l<<19|65536|a}}else{let l=r(s,i+1);if(l!=null)return l}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class T0{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class oQ{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=o}}class Jc{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new Jc(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Jc(this.stack,this.pos,this.index)}}function Vu(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,o=0;r=92&&s--,s>=34&&s--;let a=s-32;if(a>=46&&(a-=46,l=!0),i+=a,l)break;i*=46}n?n[o++]=i:n=new e(i)}return n}class gc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _0=new gc;class iQ{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_0,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,o=this.rangeIndex,i=this.pos+e;for(;ir.to:i>=r.to;){if(o==this.ranges.length-1)return null;let s=this.ranges[++o];i+=s.from-r.to,r=s}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,o;if(n>=0&&n=this.chunk2Pos&&rl.to&&(this.chunk2=this.chunk2.slice(0,l.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=_0,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let o of this.ranges){if(o.from>=n)break;o.to>e&&(r+=this.input.read(Math.max(o.from,e),Math.min(o.to,n)))}return r}}class Is{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;sQ(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}Is.prototype.contextual=Is.prototype.fallback=Is.prototype.extend=!1;Is.prototype.fallback=Is.prototype.extend=!1;function sQ(t,e,n,r,o,i){let s=0,l=1<0){let p=t[h];if(a.allows(p)&&(e.token.value==-1||e.token.value==p||lQ(p,e.token.value,o,i))){e.acceptToken(p);break}}let c=e.next,d=0,f=t[s+2];if(e.next<0&&f>d&&t[u+f*3-3]==65535){s=t[u+f*3-1];continue e}for(;d>1,p=u+h+(h<<1),v=t[p],y=t[p+1]||65536;if(c=y)d=h+1;else{s=t[p+2],e.advance();continue e}}break}}function O0(t,e,n){for(let r=e,o;(o=t[r])!=65535;r++)if(o==n)return r-e;return-1}function lQ(t,e,n,r){let o=O0(n,r,e);return o<0||O0(n,r,t)e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class aQ{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?P0(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?P0(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(i instanceof Et){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+i.length}}}class uQ{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new gc)}getActions(e){let n=0,r=null,{parser:o}=e.p,{tokenizers:i}=o,s=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let u=0;ud.end+25&&(a=Math.max(d.lookAhead,a)),d.value!=0)){let f=n;if(d.extended>-1&&(n=this.addActions(e,d.extended,d.end,n)),n=this.addActions(e,d.value,d.end,n),!c.extend&&(r=d,n>f))break}}for(;this.actions.length>n;)this.actions.pop();return a&&e.setLookAhead(a),!r&&e.pos==this.stream.end&&(r=new gc,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new gc,{pos:r,p:o}=e;return n.start=r,n.end=Math.min(r+1,o.stream.end),n.value=r==o.stream.end?o.parser.eofTerm:0,n}updateCachedToken(e,n,r){let o=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(o,e),r),e.value>-1){let{parser:i}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,n,r,o){for(let i=0;ie.bufferLength*4?new aQ(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],o,i;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(l);else{if(this.advanceStack(l,r,e))continue;{o||(o=[],i=[]),o.push(l);let a=this.tokens.getMainToken(l);i.push(a.value,a.end)}}break}}if(!r.length){let s=o&&fQ(o);if(s)return Kn&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Kn&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&o){let s=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,i,r);if(s)return Kn&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((l,a)=>a.score-l.score);r.length>s;)r.pop();r.some(l=>l.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((l.score-u.score||l.buffer.length-u.buffer.length)>0)r.splice(a--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let d=this.fragments.nodeAt(o);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?i.getGoto(e.state,d.type.id):-1;if(f>-1&&d.length&&(!u||(d.prop(it.contextHash)||0)==c))return e.useNode(d,f),Kn&&console.log(s+this.stackID(e)+` (via reuse of ${i.getName(d.type.id)})`),!0;if(!(d instanceof Et)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof Et&&d.positions[0]==0)d=h;else break}}let l=i.stateSlot(e.state,4);if(l>0)return e.reduce(l),Kn&&console.log(s+this.stackID(e)+` (via always-reduce ${i.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let u=0;uo?n.push(p):r.push(p)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return B0(e,n),!0}}runRecovery(e,n,r){let o=null,i=!1;for(let s=0;s ":"";if(l.deadEnd&&(i||(i=!0,l.restart(),Kn&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,r))))continue;let d=l.split(),f=c;for(let h=0;d.forceReduce()&&h<10&&(Kn&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Kn&&(f=this.stackID(d)+" -> ");for(let h of l.recoverByInsert(a))Kn&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>l.pos?(u==l.pos&&(u++,a=0),l.recoverByDelete(a,u),Kn&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),B0(l,r)):(!o||o.scoree.topRules[l][1]),o=[];for(let l=0;l=0)i(c,a,l[u++]);else{let d=l[u+-c];for(let f=-c;f>0;f--)i(l[u++],a,d);u++}}}this.nodeSet=new cf(n.map((l,a)=>En.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:o[a],top:r.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=e$;let s=Vu(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Is(s,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let o=new cQ(this,e,n,r);for(let i of this.wrappers)o=i(o,e,n,r);return o}getGoto(e,n,r=!1){let o=this.goto;if(n>=o[0])return-1;for(let i=o[n+1];;){let s=o[i++],l=s&1,a=o[i++];if(l&&r)return a;for(let u=i+(s>>1);i0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),o=r?n(r):void 0;for(let i=this.stateSlot(e,1);o==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=io(this.data,i+2);else break;o=n(io(this.data,i+1))}return o}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=io(this.data,r+2);else break;if(!(this.data[r+2]&1)){let o=this.data[r+1];n.some((i,s)=>s&1&&i==o)||n.push(this.data[r],o)}}return n}configure(e){let n=Object.assign(Object.create(Qc.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let o=e.tokenizers.find(i=>i.from==r);return o?o.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,o)=>{let i=e.specializers.find(l=>l.from==r.external);if(!i)return r;let s=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[o]=M0(s),s})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let i of e.split(" ")){let s=n.indexOf(i);s>=0&&(r[s]=!0)}let o=null;for(let i=0;ir)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.external(n,r)<<1|e}return t.get}let hQ=0;class Fr{constructor(e,n,r){this.set=e,this.base=n,this.modified=r,this.id=hQ++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new Fr([],null,[]);if(n.set.push(n),e)for(let r of e.set)n.set.push(r);return n}static defineModifier(){let e=new Zc;return n=>n.modified.indexOf(e)>-1?n:Zc.get(n.base||n,n.modified.concat(e).sort((r,o)=>r.id-o.id))}}let pQ=0;class Zc{constructor(){this.instances=[],this.id=pQ++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(l=>l.base==e&&mQ(n,l.modified));if(r)return r;let o=[],i=new Fr(o,e,n);for(let l of n)l.instances.push(i);let s=gQ(n);for(let l of e.set)if(!l.modified.length)for(let a of s)o.push(Zc.get(l,a));return i}}function mQ(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function gQ(t){let e=[[]];for(let n=0;nr.length-n.length)}function o$(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let o of n.split(" "))if(o){let i=[],s=2,l=o;for(let d=0;;){if(l=="..."&&d>0&&d+3==o.length){s=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+o);if(i.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==o.length)break;let h=o[d++];if(d==o.length&&h=="!"){s=0;break}if(h!="/")throw new RangeError("Invalid path: "+o);l=o.slice(d)}let a=i.length-1,u=i[a];if(!u)throw new RangeError("Invalid path: "+o);let c=new ed(r,s,a>0?i.slice(0,a):null);e[u]=c.sort(e[u])}}return i$.add(e)}const i$=new it;let ed=class{constructor(e,n,r,o){this.tags=e,this.mode=n,this.context=r,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let s=o;for(let l of i)for(let a of l.set){let u=n[a.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function vQ(t,e){let n=null;for(let r of t){let o=r.style(e);o&&(n=n?n+" "+o:o)}return n}function yQ(t,e,n,r=0,o=t.length){let i=new bQ(r,Array.isArray(e)?e:[e],n);i.highlightRange(t.cursor(),r,o,"",i.highlighters),i.flush(o)}class bQ{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,o,i){let{type:s,from:l,to:a}=e;if(l>=r||a<=n)return;s.isTop&&(i=this.highlighters.filter(h=>!h.scope||h.scope(s)));let u=o,c=SQ(e)||ed.empty,d=vQ(i,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(o+=(o?" ":"")+d)),this.startSpan(Math.max(n,l),u),c.opaque)return;let f=e.tree&&e.tree.prop(it.mounted);if(f&&f.overlay){let h=e.node.enter(f.overlay[0].from+l,1),p=this.highlighters.filter(y=>!y.scope||y.scope(f.tree.type)),v=e.firstChild();for(let y=0,b=l;;y++){let S=y=w||!e.nextSibling())););if(!S||w>r)break;b=S.to+l,b>n&&(this.highlightRange(h.cursor(),Math.max(n,S.from+l),Math.min(r,b),"",p),this.startSpan(Math.min(r,b),u))}v&&e.parent()}else if(e.firstChild()){f&&(o="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,o,i),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}}function SQ(t){let e=t.type.prop(i$);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Te=Fr.define,Ru=Te(),No=Te(),I0=Te(No),D0=Te(No),Ho=Te(),Fu=Te(Ho),th=Te(Ho),Rr=Te(),Ai=Te(Rr),Er=Te(),Lr=Te(),hp=Te(),Fl=Te(hp),Nu=Te(),xe={comment:Ru,lineComment:Te(Ru),blockComment:Te(Ru),docComment:Te(Ru),name:No,variableName:Te(No),typeName:I0,tagName:Te(I0),propertyName:D0,attributeName:Te(D0),className:Te(No),labelName:Te(No),namespace:Te(No),macroName:Te(No),literal:Ho,string:Fu,docString:Te(Fu),character:Te(Fu),attributeValue:Te(Fu),number:th,integer:Te(th),float:Te(th),bool:Te(Ho),regexp:Te(Ho),escape:Te(Ho),color:Te(Ho),url:Te(Ho),keyword:Er,self:Te(Er),null:Te(Er),atom:Te(Er),unit:Te(Er),modifier:Te(Er),operatorKeyword:Te(Er),controlKeyword:Te(Er),definitionKeyword:Te(Er),moduleKeyword:Te(Er),operator:Lr,derefOperator:Te(Lr),arithmeticOperator:Te(Lr),logicOperator:Te(Lr),bitwiseOperator:Te(Lr),compareOperator:Te(Lr),updateOperator:Te(Lr),definitionOperator:Te(Lr),typeOperator:Te(Lr),controlOperator:Te(Lr),punctuation:hp,separator:Te(hp),bracket:Fl,angleBracket:Te(Fl),squareBracket:Te(Fl),paren:Te(Fl),brace:Te(Fl),content:Rr,heading:Ai,heading1:Te(Ai),heading2:Te(Ai),heading3:Te(Ai),heading4:Te(Ai),heading5:Te(Ai),heading6:Te(Ai),contentSeparator:Te(Rr),list:Te(Rr),quote:Te(Rr),emphasis:Te(Rr),strong:Te(Rr),link:Te(Rr),monospace:Te(Rr),strikethrough:Te(Rr),inserted:Te(),deleted:Te(),changed:Te(),invalid:Te(),meta:Nu,documentMeta:Te(Nu),annotation:Te(Nu),processingInstruction:Te(Nu),definition:Fr.defineModifier(),constant:Fr.defineModifier(),function:Fr.defineModifier(),standard:Fr.defineModifier(),local:Fr.defineModifier(),special:Fr.defineModifier()};s$([{tag:xe.link,class:"tok-link"},{tag:xe.heading,class:"tok-heading"},{tag:xe.emphasis,class:"tok-emphasis"},{tag:xe.strong,class:"tok-strong"},{tag:xe.keyword,class:"tok-keyword"},{tag:xe.atom,class:"tok-atom"},{tag:xe.bool,class:"tok-bool"},{tag:xe.url,class:"tok-url"},{tag:xe.labelName,class:"tok-labelName"},{tag:xe.inserted,class:"tok-inserted"},{tag:xe.deleted,class:"tok-deleted"},{tag:xe.literal,class:"tok-literal"},{tag:xe.string,class:"tok-string"},{tag:xe.number,class:"tok-number"},{tag:[xe.regexp,xe.escape,xe.special(xe.string)],class:"tok-string2"},{tag:xe.variableName,class:"tok-variableName"},{tag:xe.local(xe.variableName),class:"tok-variableName tok-local"},{tag:xe.definition(xe.variableName),class:"tok-variableName tok-definition"},{tag:xe.special(xe.variableName),class:"tok-variableName2"},{tag:xe.definition(xe.propertyName),class:"tok-propertyName tok-definition"},{tag:xe.typeName,class:"tok-typeName"},{tag:xe.namespace,class:"tok-namespace"},{tag:xe.className,class:"tok-className"},{tag:xe.macroName,class:"tok-macroName"},{tag:xe.propertyName,class:"tok-propertyName"},{tag:xe.operator,class:"tok-operator"},{tag:xe.comment,class:"tok-comment"},{tag:xe.meta,class:"tok-meta"},{tag:xe.invalid,class:"tok-invalid"},{tag:xe.punctuation,class:"tok-punctuation"}]);const CQ=o$({String:xe.string,Number:xe.number,"True False":xe.bool,PropertyName:xe.propertyName,Null:xe.null,",":xe.separator,"[ ]":xe.squareBracket,"{ }":xe.brace}),wQ=Qc.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[CQ],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});class kt{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=Zs(this,e,n);let o=[];return this.decompose(0,e,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),zr.from(o,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Zs(this,e,n);let r=[];return this.decompose(e,n,r,0),zr.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),o=new ua(this),i=new ua(e);for(let s=n,l=n;;){if(o.next(s),i.next(s),s=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(l+=o.value.length,o.done||l>=r)return!0}}iter(e=1){return new ua(this,e)}iterRange(e,n=this.length){return new l$(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let o=this.line(e).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new a$(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?kt.empty:e.length<=32?new Xt(e):zr.from(Xt.split(e,[]))}}class Xt extends kt{constructor(e,n=kQ(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,o){for(let i=0;;i++){let s=this.text[i],l=o+s.length;if((n?r:l)>=e)return new xQ(o,l,r,s);o=l+1,r++}}decompose(e,n,r,o){let i=e<=0&&n>=this.length?this:new Xt(E0(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(o&1){let s=r.pop(),l=vc(i.text,s.text.slice(),0,i.length);if(l.length<=32)r.push(new Xt(l,s.length+i.length));else{let a=l.length>>1;r.push(new Xt(l.slice(0,a)),new Xt(l.slice(a)))}}else r.push(i)}replace(e,n,r){if(!(r instanceof Xt))return super.replace(e,n,r);[e,n]=Zs(this,e,n);let o=vc(this.text,vc(r.text,E0(this.text,0,e)),n),i=this.length+r.length-(n-e);return o.length<=32?new Xt(o,i):zr.from(Xt.split(o,[]),i)}sliceString(e,n=this.length,r=` +