2 lines
30 KiB
JavaScript
2 lines
30 KiB
JavaScript
import{ay as F,p as h,V as $,x as u,az as M,af as Le,aA as Ce,aB as bt,aC as Ct,aD as St,d,F as kt,W as Se,m as E,a as N,b as z,g as B,c as A,J as Ne,t as P,u as L,a7 as K,H as _t,v as $e,s as pt,r as ae,z as se,ak as wt,G as Te,y as Vt,E as Re,P as xt,aE as Bt,M as Pt,aF as Et,a3 as y,I as ee,A as le,aG as It,aH as Lt,aI as Nt,C as $t,a6 as Tt,as as Rt,ag as zt,Z as ie,S as At,aJ as Ot,aK as ke,ae as Dt,B as ze,K as Gt,aL as jt,aM as _e,N as Mt,O as Ht,aN as X,k as oe,n as Ae}from"./index-46b44c7e.js";const Oe=["top","bottom"],Wt=["start","end","left","right"];function Ft(e,t){let[n,a]=e.split(" ");return a||(a=F(Oe,n)?"start":F(Wt,n)?"top":"center"),{side:pe(n,t),align:pe(a,t)}}function pe(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function jn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Mn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Hn(e){return{side:e.align,align:e.side}}function Wn(e){return F(Oe,e.side)?"y":"x"}const De=h({border:[Boolean,Number,String]},"border");function Ge(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{borderClasses:u(()=>{const a=M(e)?e.value:e.border,s=[];if(a===!0||a==="")s.push(`${t}--border`);else if(typeof a=="string"||a===0)for(const l of String(a).split(" "))s.push(`border-${l}`);return s})}}const Ut=[null,"default","comfortable","compact"],je=h({density:{type:String,default:"default",validator:e=>Ut.includes(e)}},"density");function Me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{densityClasses:u(()=>`${t}--density-${e.density}`)}}const He=h({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function We(e){return{elevationClasses:u(()=>{const n=M(e)?e.value:e.elevation,a=[];return n==null||a.push(`elevation-${n}`),a})}}const re=h({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{roundedClasses:u(()=>{const a=M(e)?e.value:e.rounded,s=[];if(a===!0||a==="")s.push(`${t}--rounded`);else if(typeof a=="string"||a===0)for(const l of String(a).split(" "))s.push(`rounded-${l}`);return s})}}function ce(e){return Le(()=>{const t=[],n={};if(e.value.background)if(Ce(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&bt(e.value.background)){const a=Ct(e.value.background);if(a.a==null||a.a===1){const s=St(a);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Ce(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function D(e,t){const n=u(()=>({text:M(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:s}=ce(n);return{textColorClasses:a,textColorStyles:s}}function we(e,t){const n=u(()=>({background:M(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:s}=ce(n);return{backgroundColorClasses:a,backgroundColorStyles:s}}const Kt=["elevated","flat","tonal","outlined","text","plain"];function Xt(e,t){return d(kt,null,[e&&d("span",{key:"overlay",class:`${t}__overlay`},null),d("span",{key:"underlay",class:`${t}__underlay`},null)])}const Fe=h({color:String,variant:{type:String,default:"elevated",validator:e=>Kt.includes(e)}},"variant");function Yt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();const n=u(()=>{const{variant:l}=Se(e);return`${t}--variant-${l}`}),{colorClasses:a,colorStyles:s}=ce(u(()=>{const{variant:l,color:i}=Se(e);return{[["elevated","flat"].includes(l)?"background":"text"]:i}}));return{colorClasses:a,colorStyles:s,variantClasses:n}}const Ue=h({divided:Boolean,...De(),...E(),...je(),...He(),...re(),...N(),...z(),...Fe()},"VBtnGroup"),Ve=B()({name:"VBtnGroup",props:Ue(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=A(e),{densityClasses:s}=Me(e),{borderClasses:l}=Ge(e),{elevationClasses:i}=We(e),{roundedClasses:r}=ue(e);Ne({VBtn:{height:"auto",color:P(e,"color"),density:P(e,"density"),flat:!0,variant:P(e,"variant")}}),L(()=>d(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},a.value,l.value,s.value,i.value,r.value,e.class],style:e.style},n))}}),qt=h({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jt=h({value:null,disabled:Boolean,selectedClass:String},"group-item");function Qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const a=K("useGroupItem");if(!a)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=_t();$e(Symbol.for(`${t.description}:id`),s);const l=pt(t,null);if(!l){if(!n)return l;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const i=P(e,"value"),r=u(()=>!!(l.disabled.value||e.disabled));l.register({id:s,value:i,disabled:r},a),ae(()=>{l.unregister(s)});const o=u(()=>l.isSelected(s)),g=u(()=>o.value&&[l.selectedClass.value,e.selectedClass]);return se(o,b=>{a.emit("group:selected",{value:b})}),{id:s,isSelected:o,toggle:()=>l.select(s,!o.value),select:b=>l.select(s,b),selectedClass:g,value:i,disabled:r,group:l}}function Zt(e,t){let n=!1;const a=wt([]),s=Te(e,"modelValue",[],c=>c==null?[]:Ke(a,xt(c)),c=>{const v=tn(a,c);return e.multiple?v:v[0]}),l=K("useGroup");function i(c,v){const C=c,m=Symbol.for(`${t.description}:id`),k=Bt(m,l==null?void 0:l.vnode).indexOf(v);k>-1?a.splice(k,0,C):a.push(C)}function r(c){if(n)return;o();const v=a.findIndex(C=>C.id===c);a.splice(v,1)}function o(){const c=a.find(v=>!v.disabled);c&&e.mandatory==="force"&&!s.value.length&&(s.value=[c.id])}Vt(()=>{o()}),ae(()=>{n=!0});function g(c,v){const C=a.find(m=>m.id===c);if(!(v&&(C!=null&&C.disabled)))if(e.multiple){const m=s.value.slice(),w=m.findIndex(f=>f===c),k=~w;if(v=v??!k,k&&e.mandatory&&m.length<=1||!k&&e.max!=null&&m.length+1>e.max)return;w<0&&v?m.push(c):w>=0&&!v&&m.splice(w,1),s.value=m}else{const m=s.value.includes(c);if(e.mandatory&&m)return;s.value=v??!m?[c]:[]}}function b(c){if(e.multiple,s.value.length){const v=s.value[0],C=a.findIndex(k=>k.id===v);let m=(C+c)%a.length,w=a[m];for(;w.disabled&&m!==C;)m=(m+c)%a.length,w=a[m];if(w.disabled)return;s.value=[a[m].id]}else{const v=a.find(C=>!C.disabled);v&&(s.value=[v.id])}}const _={register:i,unregister:r,selected:s,select:g,disabled:P(e,"disabled"),prev:()=>b(a.length-1),next:()=>b(1),isSelected:c=>s.value.includes(c),selectedClass:u(()=>e.selectedClass),items:u(()=>a),getItemIndex:c=>en(a,c)};return $e(t,_),_}function en(e,t){const n=Ke(e,[t]);return n.length?e.findIndex(a=>a.id===n[0]):-1}function Ke(e,t){const n=[];return t.forEach(a=>{const s=e.find(i=>Re(a,i.value)),l=e[a];(s==null?void 0:s.value)!=null?n.push(s.id):l!=null&&n.push(l.id)}),n}function tn(e,t){const n=[];return t.forEach(a=>{const s=e.findIndex(l=>l.id===a);if(~s){const l=e[s];n.push(l.value!=null?l.value:s)}}),n}const Xe=Symbol.for("vuetify:v-btn-toggle"),nn=h({...Ue(),...qt()},"VBtnToggle");B()({name:"VBtnToggle",props:nn(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:a,next:s,prev:l,select:i,selected:r}=Zt(e,Xe);return L(()=>{const o=Ve.filterProps(e);return d(Ve,Pt({class:["v-btn-toggle",e.class]},o,{style:e.style}),{default:()=>{var g;return[(g=n.default)==null?void 0:g.call(n,{isSelected:a,next:s,prev:l,select:i,selected:r})]}})}),{next:s,prev:l,select:i}}});const an=h({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),J=B(!1)({name:"VDefaultsProvider",props:an(),setup(e,t){let{slots:n}=t;const{defaults:a,disabled:s,reset:l,root:i,scoped:r}=Et(e);return Ne(a,{reset:l,root:i,scoped:r,disabled:s}),()=>{var o;return(o=n.default)==null?void 0:o.call(n)}}});const sn=["x-small","small","default","large","x-large"],de=h({size:{type:[String,Number],default:"default"}},"size");function ve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return Le(()=>{let n,a;return F(sn,e.size)?n=`${t}--size-${e.size}`:e.size&&(a={width:y(e.size),height:y(e.size)}),{sizeClasses:n,sizeStyles:a}})}const ln=h({color:String,start:Boolean,end:Boolean,icon:ee,...E(),...de(),...N({tag:"i"}),...z()},"VIcon"),Q=B()({name:"VIcon",props:ln(),setup(e,t){let{attrs:n,slots:a}=t;const s=le(),{themeClasses:l}=A(e),{iconData:i}=It(u(()=>s.value||e.icon)),{sizeClasses:r}=ve(e),{textColorClasses:o,textColorStyles:g}=D(P(e,"color"));return L(()=>{var _,c;const b=(_=a.default)==null?void 0:_.call(a);return b&&(s.value=(c=Lt(b).filter(v=>v.type===Nt&&v.children&&typeof v.children=="string")[0])==null?void 0:c.children),d(i.value.component,{tag:e.tag,icon:i.value.icon,class:["v-icon","notranslate",l.value,r.value,o.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:y(e.size),height:y(e.size),width:y(e.size)},g.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[b]})}),{}}});function Ye(e,t){const n=le(),a=$t(!1);if(Tt){const s=new IntersectionObserver(l=>{e==null||e(l,s),a.value=!!l.find(i=>i.isIntersecting)},t);ae(()=>{s.disconnect()}),se(n,(l,i)=>{i&&(s.unobserve(i),a.value=!1),l&&s.observe(l)},{flush:"post"})}return{intersectionRef:n,isIntersecting:a}}const on=h({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...E(),...de(),...N({tag:"div"}),...z()},"VProgressCircular"),rn=B()({name:"VProgressCircular",props:on(),setup(e,t){let{slots:n}=t;const a=20,s=2*Math.PI*a,l=le(),{themeClasses:i}=A(e),{sizeClasses:r,sizeStyles:o}=ve(e),{textColorClasses:g,textColorStyles:b}=D(P(e,"color")),{textColorClasses:_,textColorStyles:c}=D(P(e,"bgColor")),{intersectionRef:v,isIntersecting:C}=Ye(),{resizeRef:m,contentRect:w}=Rt(),k=u(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),f=u(()=>Number(e.width)),S=u(()=>o.value?Number(e.size):w.value?w.value.width:Math.max(f.value,32)),I=u(()=>a/(1-f.value/S.value)*2),x=u(()=>f.value/S.value*I.value),O=u(()=>y((100-k.value)/100*s));return zt(()=>{v.value=l.value,m.value=l.value}),L(()=>d(e.tag,{ref:l,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":C.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},i.value,r.value,g.value,e.class],style:[o.value,b.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:k.value},{default:()=>[d("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${I.value} ${I.value}`},[d("circle",{class:["v-progress-circular__underlay",_.value],style:c.value,fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":x.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),d("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":x.value,"stroke-dasharray":s,"stroke-dashoffset":O.value},null)]),n.default&&d("div",{class:"v-progress-circular__content"},[n.default({value:k.value})])]})),{}}}),qe=h({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Je(e){return{dimensionStyles:u(()=>({height:y(e.height),maxHeight:y(e.maxHeight),maxWidth:y(e.maxWidth),minHeight:y(e.minHeight),minWidth:y(e.minWidth),width:y(e.width)}))}}const xe={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Qe=h({location:String},"location");function Ze(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:a}=ie();return{locationStyles:u(()=>{if(!e.location)return{};const{side:l,align:i}=Ft(e.location.split(" ").length>1?e.location:`${e.location} center`,a.value);function r(g){return n?n(g):0}const o={};return l!=="center"&&(t?o[xe[l]]=`calc(100% - ${r(l)}px)`:o[l]=0),i!=="center"?t?o[xe[i]]=`calc(100% - ${r(i)}px)`:o[i]=0:(l==="center"?o.top=o.left="50%":o[{top:"left",bottom:"left",left:"top",right:"top"}[l]]="50%",o.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[l]),o})}}const un=h({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...E(),...Qe({location:"top"}),...re(),...N(),...z()},"VProgressLinear"),cn=B()({name:"VProgressLinear",props:un(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=Te(e,"modelValue"),{isRtl:s,rtlClasses:l}=ie(),{themeClasses:i}=A(e),{locationStyles:r}=Ze(e),{textColorClasses:o,textColorStyles:g}=D(e,"color"),{backgroundColorClasses:b,backgroundColorStyles:_}=we(u(()=>e.bgColor||e.color)),{backgroundColorClasses:c,backgroundColorStyles:v}=we(e,"color"),{roundedClasses:C}=ue(e),{intersectionRef:m,isIntersecting:w}=Ye(),k=u(()=>parseInt(e.max,10)),f=u(()=>parseInt(e.height,10)),S=u(()=>parseFloat(e.bufferValue)/k.value*100),I=u(()=>parseFloat(a.value)/k.value*100),x=u(()=>s.value!==e.reverse),O=u(()=>e.indeterminate?"fade-transition":"slide-x-transition"),H=u(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function Y(p){if(!m.value)return;const{left:T,right:q,width:R}=m.value.getBoundingClientRect(),W=x.value?R-p.clientX+(q-R):p.clientX-T;a.value=Math.round(W/R*k.value)}return L(()=>d(e.tag,{ref:m,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},C.value,i.value,l.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?y(f.value):0,"--v-progress-linear-height":y(f.value),...r.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:I.value,onClick:e.clickable&&Y},{default:()=>[e.stream&&d("div",{key:"stream",class:["v-progress-linear__stream",o.value],style:{...g.value,[x.value?"left":"right"]:y(-f.value),borderTop:`${y(f.value/2)} dotted`,opacity:H.value,top:`calc(50% - ${y(f.value/4)})`,width:y(100-S.value,"%"),"--v-progress-linear-stream-to":y(f.value*(x.value?1:-1))}},null),d("div",{class:["v-progress-linear__background",b.value],style:[_.value,{opacity:H.value,width:y(e.stream?S.value:100,"%")}]},null),d(At,{name:O.value},{default:()=>[e.indeterminate?d("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(p=>d("div",{key:p,class:["v-progress-linear__indeterminate",p,c.value],style:v.value},null))]):d("div",{class:["v-progress-linear__determinate",c.value],style:[v.value,{width:y(I.value,"%")}]},null)]}),n.default&&d("div",{class:"v-progress-linear__content"},[n.default({value:I.value,buffer:S.value})])]})),{}}}),dn=h({loading:[Boolean,String]},"loader");function vn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{loaderClasses:u(()=>({[`${t}--loading`]:e.loading}))}}function Fn(e,t){var a;let{slots:n}=t;return d("div",{class:`${e.name}__loader`},[((a=n.default)==null?void 0:a.call(n,{color:e.color,isActive:e.active}))||d(cn,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const fn=["static","relative","fixed","absolute","sticky"],mn=h({position:{type:String,validator:e=>fn.includes(e)}},"position");function gn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{positionClasses:u(()=>e.position?`${t}--${e.position}`:void 0)}}function hn(){const e=K("useRoute");return u(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function Un(){var e,t;return(t=(e=K("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function yn(e,t){const n=Ot("RouterLink"),a=u(()=>!!(e.href||e.to)),s=u(()=>(a==null?void 0:a.value)||ke(t,"click")||ke(e,"click"));if(typeof n=="string")return{isLink:a,isClickable:s,href:P(e,"href")};const l=e.to?n.useLink(e):void 0,i=hn();return{isLink:a,isClickable:s,route:l==null?void 0:l.route,navigate:l==null?void 0:l.navigate,isActive:l&&u(()=>{var r,o,g;return e.exact?i.value?((g=l.isExactActive)==null?void 0:g.value)&&Re(l.route.value.query,i.value.query):(o=l.isExactActive)==null?void 0:o.value:(r=l.isActive)==null?void 0:r.value}),href:u(()=>e.to?l==null?void 0:l.route.value.href:e.href)}}const bn=h({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Z=!1;function Kn(e,t){let n=!1,a,s;Dt&&(ze(()=>{window.addEventListener("popstate",l),a=e==null?void 0:e.beforeEach((i,r,o)=>{Z?n?t(o):o():setTimeout(()=>n?t(o):o()),Z=!0}),s=e==null?void 0:e.afterEach(()=>{Z=!1})}),Gt(()=>{window.removeEventListener("popstate",l),a==null||a(),s==null||s()}));function l(i){var r;(r=i.state)!=null&&r.replaced||(n=!0,setTimeout(()=>n=!1))}}function Cn(e,t){se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&ze(()=>{t(!0)})},{immediate:!0})}const te=Symbol("rippleStop"),Sn=80;function Be(e,t){e.style.transform=t,e.style.webkitTransform=t}function ne(e){return e.constructor.name==="TouchEvent"}function et(e){return e.constructor.name==="KeyboardEvent"}const kn=function(e,t){var _;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=0,s=0;if(!et(e)){const c=t.getBoundingClientRect(),v=ne(e)?e.touches[e.touches.length-1]:e;a=v.clientX-c.left,s=v.clientY-c.top}let l=0,i=.3;(_=t._ripple)!=null&&_.circle?(i=.15,l=t.clientWidth/2,l=n.center?l:l+Math.sqrt((a-l)**2+(s-l)**2)/4):l=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-l*2)/2}px`,o=`${(t.clientHeight-l*2)/2}px`,g=n.center?r:`${a-l}px`,b=n.center?o:`${s-l}px`;return{radius:l,scale:i,x:g,y:b,centerX:r,centerY:o}},U={show(e,t){var v;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const a=document.createElement("span"),s=document.createElement("span");a.appendChild(s),a.className="v-ripple__container",n.class&&(a.className+=` ${n.class}`);const{radius:l,scale:i,x:r,y:o,centerX:g,centerY:b}=kn(e,t,n),_=`${l*2}px`;s.className="v-ripple__animation",s.style.width=_,s.style.height=_,t.appendChild(a);const c=window.getComputedStyle(t);c&&c.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Be(s,`translate(${r}, ${o}) scale3d(${i},${i},${i})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Be(s,`translate(${g}, ${b}) scale3d(1,1,1)`)},0)},hide(e){var l;if(!((l=e==null?void 0:e._ripple)!=null&&l.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const a=performance.now()-Number(n.dataset.activated),s=Math.max(250-a,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function tt(e){return typeof e>"u"||!!e}function G(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[te])){if(e[te]=!0,ne(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||et(e),n._ripple.class&&(t.class=n._ripple.class),ne(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{U.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var a;(a=n==null?void 0:n._ripple)!=null&&a.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Sn)}else U.show(e,n,t)}}function Pe(e){e[te]=!0}function V(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{V(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),U.hide(t)}}function nt(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let j=!1;function at(e){!j&&(e.keyCode===_e.enter||e.keyCode===_e.space)&&(j=!0,G(e))}function st(e){j=!1,V(e)}function lt(e){j&&(j=!1,V(e))}function it(e,t,n){const{value:a,modifiers:s}=t,l=tt(a);if(l||U.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=l,e._ripple.centered=s.center,e._ripple.circle=s.circle,jt(a)&&a.class&&(e._ripple.class=a.class),l&&!n){if(s.stop){e.addEventListener("touchstart",Pe,{passive:!0}),e.addEventListener("mousedown",Pe);return}e.addEventListener("touchstart",G,{passive:!0}),e.addEventListener("touchend",V,{passive:!0}),e.addEventListener("touchmove",nt,{passive:!0}),e.addEventListener("touchcancel",V),e.addEventListener("mousedown",G),e.addEventListener("mouseup",V),e.addEventListener("mouseleave",V),e.addEventListener("keydown",at),e.addEventListener("keyup",st),e.addEventListener("blur",lt),e.addEventListener("dragstart",V,{passive:!0})}else!l&&n&&ot(e)}function ot(e){e.removeEventListener("mousedown",G),e.removeEventListener("touchstart",G),e.removeEventListener("touchend",V),e.removeEventListener("touchmove",nt),e.removeEventListener("touchcancel",V),e.removeEventListener("mouseup",V),e.removeEventListener("mouseleave",V),e.removeEventListener("keydown",at),e.removeEventListener("keyup",st),e.removeEventListener("dragstart",V),e.removeEventListener("blur",lt)}function _n(e,t){it(e,t,!1)}function pn(e){delete e._ripple,ot(e)}function wn(e,t){if(t.value===t.oldValue)return;const n=tt(t.oldValue);it(e,t,n)}const Vn={mounted:_n,unmounted:pn,updated:wn},xn=h({active:{type:Boolean,default:void 0},symbol:{type:null,default:Xe},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ee,appendIcon:ee,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...De(),...E(),...je(),...qe(),...He(),...Jt(),...dn(),...Qe(),...mn(),...re(),...bn(),...de(),...N({tag:"button"}),...z(),...Fe({variant:"elevated"})},"VBtn"),Xn=B()({name:"VBtn",directives:{Ripple:Vn},props:xn(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:s}=A(e),{borderClasses:l}=Ge(e),{colorClasses:i,colorStyles:r,variantClasses:o}=Yt(e),{densityClasses:g}=Me(e),{dimensionStyles:b}=Je(e),{elevationClasses:_}=We(e),{loaderClasses:c}=vn(e),{locationStyles:v}=Ze(e),{positionClasses:C}=gn(e),{roundedClasses:m}=ue(e),{sizeClasses:w,sizeStyles:k}=ve(e),f=Qt(e,e.symbol,!1),S=yn(e,n),I=u(()=>{var p;return e.active!==void 0?e.active:S.isLink.value?(p=S.isActive)==null?void 0:p.value:f==null?void 0:f.isSelected.value}),x=u(()=>(f==null?void 0:f.disabled.value)||e.disabled),O=u(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),H=u(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function Y(p){var T;x.value||S.isLink.value&&(p.metaKey||p.ctrlKey||p.shiftKey||p.button!==0||n.target==="_blank")||((T=S.navigate)==null||T.call(S,p),f==null||f.toggle())}return Cn(S,f==null?void 0:f.select),L(()=>{var ge,he;const p=S.isLink.value?"a":e.tag,T=!!(e.prependIcon||a.prepend),q=!!(e.appendIcon||a.append),R=!!(e.icon&&e.icon!==!0),W=(f==null?void 0:f.isSelected.value)&&(!S.isLink.value||((ge=S.isActive)==null?void 0:ge.value))||!f||((he=S.isActive)==null?void 0:he.value);return Mt(d(p,{type:p==="a"?void 0:"button",class:["v-btn",f==null?void 0:f.selectedClass.value,{"v-btn--active":I.value,"v-btn--block":e.block,"v-btn--disabled":x.value,"v-btn--elevated":O.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},s.value,l.value,W?i.value:void 0,g.value,_.value,c.value,C.value,m.value,w.value,o.value,e.class],style:[W?r.value:void 0,b.value,v.value,k.value,e.style],disabled:x.value||void 0,href:S.href.value,onClick:Y,value:H.value},{default:()=>{var ye;return[Xt(!0,"v-btn"),!e.icon&&T&&d("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?d(J,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):d(Q,{key:"prepend-icon",icon:e.prependIcon},null)]),d("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&R?d(Q,{key:"content-icon",icon:e.icon},null):d(J,{key:"content-defaults",disabled:!R,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var be;return[((be=a.default)==null?void 0:be.call(a))??e.text]}})]),!e.icon&&q&&d("span",{key:"append",class:"v-btn__append"},[a.append?d(J,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):d(Q,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&d("span",{key:"loader",class:"v-btn__loader"},[((ye=a.loader)==null?void 0:ye.call(a))??d(rn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Ht("ripple"),!x.value&&e.ripple,null]])}),{}}});const Bn=h({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...E(),...z()},"VDivider"),Yn=B()({name:"VDivider",props:Bn(),setup(e,t){let{attrs:n}=t;const{themeClasses:a}=A(e),{textColorClasses:s,textColorStyles:l}=D(P(e,"color")),i=u(()=>{const r={};return e.length&&(r[e.vertical?"maxHeight":"maxWidth"]=y(e.length)),e.thickness&&(r[e.vertical?"borderRightWidth":"borderTopWidth"]=y(e.thickness)),r});return L(()=>d("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,s.value,e.class],style:[i.value,l.value,e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}});const Pn=h({fluid:{type:Boolean,default:!1},...E(),...N()},"VContainer"),qn=B()({name:"VContainer",props:Pn(),setup(e,t){let{slots:n}=t;const{rtlClasses:a}=ie();return L(()=>d(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},a.value,e.class],style:e.style},n)),{}}}),rt=(()=>X.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),ut=(()=>X.reduce((e,t)=>{const n="offset"+oe(t);return e[n]={type:[String,Number],default:null},e},{}))(),ct=(()=>X.reduce((e,t)=>{const n="order"+oe(t);return e[n]={type:[String,Number],default:null},e},{}))(),Ee={col:Object.keys(rt),offset:Object.keys(ut),order:Object.keys(ct)};function En(e,t,n){let a=e;if(!(n==null||n===!1)){if(t){const s=t.replace(e,"");a+=`-${s}`}return e==="col"&&(a="v-"+a),e==="col"&&(n===""||n===!0)||(a+=`-${n}`),a.toLowerCase()}}const In=["auto","start","end","center","baseline","stretch"],Ln=h({cols:{type:[Boolean,String,Number],default:!1},...rt,offset:{type:[String,Number],default:null},...ut,order:{type:[String,Number],default:null},...ct,alignSelf:{type:String,default:null,validator:e=>In.includes(e)},...E(),...N()},"VCol"),Jn=B()({name:"VCol",props:Ln(),setup(e,t){let{slots:n}=t;const a=u(()=>{const s=[];let l;for(l in Ee)Ee[l].forEach(r=>{const o=e[r],g=En(l,r,o);g&&s.push(g)});const i=s.some(r=>r.startsWith("v-col-"));return s.push({"v-col":!i||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),s});return()=>{var s;return Ae(e.tag,{class:[a.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}}),fe=["start","end","center"],dt=["space-between","space-around","space-evenly"];function me(e,t){return X.reduce((n,a)=>{const s=e+oe(a);return n[s]=t(),n},{})}const Nn=[...fe,"baseline","stretch"],vt=e=>Nn.includes(e),ft=me("align",()=>({type:String,default:null,validator:vt})),$n=[...fe,...dt],mt=e=>$n.includes(e),gt=me("justify",()=>({type:String,default:null,validator:mt})),Tn=[...fe,...dt,"stretch"],ht=e=>Tn.includes(e),yt=me("alignContent",()=>({type:String,default:null,validator:ht})),Ie={align:Object.keys(ft),justify:Object.keys(gt),alignContent:Object.keys(yt)},Rn={align:"align",justify:"justify",alignContent:"align-content"};function zn(e,t,n){let a=Rn[e];if(n!=null){if(t){const s=t.replace(e,"");a+=`-${s}`}return a+=`-${n}`,a.toLowerCase()}}const An=h({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:vt},...ft,justify:{type:String,default:null,validator:mt},...gt,alignContent:{type:String,default:null,validator:ht},...yt,...E(),...N()},"VRow"),Qn=B()({name:"VRow",props:An(),setup(e,t){let{slots:n}=t;const a=u(()=>{const s=[];let l;for(l in Ie)Ie[l].forEach(i=>{const r=e[i],o=zn(l,i,r);o&&s.push(o)});return s.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),s});return()=>{var s;return Ae(e.tag,{class:["v-row",a.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}});function On(e){return{aspectStyles:u(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const Dn=h({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...E(),...qe()},"VResponsive"),Zn=B()({name:"VResponsive",props:Dn(),setup(e,t){let{slots:n}=t;const{aspectStyles:a}=On(e),{dimensionStyles:s}=Je(e);return L(()=>{var l;return d("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[d("div",{class:"v-responsive__sizer",style:a.value},null),(l=n.additional)==null?void 0:l.call(n),n.default&&d("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});export{ve as A,Xt as B,qt as C,Zt as D,Jt as E,bn as F,Qt as G,yn as H,J as I,Ft as J,jn as K,Mn as L,Hn as M,Wn as N,Un as O,Kn as P,dn as Q,Vn as R,vn as S,Fn as T,qn as V,qe as a,He as b,Qe as c,mn as d,re as e,Ge as f,Je as g,We as h,Ze as i,gn as j,ue as k,Qn as l,De as m,Jn as n,Q as o,Yn as p,Xn as q,Zn as r,je as s,Me as t,we as u,D as v,Dn as w,de as x,Fe as y,Yt as z};
|