aircox-radiocampus/radiocampus/static/aircox/index.js
2024-11-18 11:26:12 +01:00

3 lines
168 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{reactive as rn,computed as m,defineComponent as me,ref as se,watch as we,onMounted as nn,onUnmounted as Bn,toRefs as Oo,inject as Mr,watchEffect as Ws,provide as kr,nextTick as hr,unref as w,openBlock as p,createBlock as le,resolveDynamicComponent as Ot,normalizeProps as mr,mergeProps as pt,renderSlot as U,normalizeClass as E,withCtx as ee,createVNode as G,createElementVNode as M,createElementBlock as D,toDisplayString as re,createCommentVNode as B,Fragment as ie,renderList as he,normalizeStyle as jt,withKeys as wa,withDirectives as Vt,toRef as Fr,guardReactiveProps as Sn,createTextVNode as Ue,isRef as lr,Transition as Bs,resolveComponent as Ie,resolveDirective as Po,toHandlers as So,withModifiers as Qe,vShow as Vr,vModelText as To,createApp as Yo}from"vue";var Me="top",Le="bottom",Ne="right",ke="left",Vn="auto",Cr=[Me,Le,Ne,ke],zt="start",br="end",Io="clippingParents",Vs="viewport",ur="popper",xo="reference",_a=Cr.reduce(function(e,t){return e.concat([t+"-"+zt,t+"-"+br])},[]),zs=[].concat(Cr,[Vn]).reduce(function(e,t){return e.concat([t,t+"-"+zt,t+"-"+br])},[]),Ao="beforeRead",Eo="read",Lo="afterRead",No="beforeMain",Fo="main",Ro="afterMain",jo="beforeWrite",Ho="write",Wo="afterWrite",Bo=[Ao,Eo,Lo,No,Fo,Ro,jo,Ho,Wo];function Ge(e){return e?(e.nodeName||"").toLowerCase():null}function Pe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){var t=Pe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=Pe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zn(e){if(typeof ShadowRoot>"u")return!1;var t=Pe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vo(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!Ae(s)||!Ge(s)||(Object.assign(s.style,n),Object.keys(a).forEach(function(i){var o=a[i];o===!1?s.removeAttribute(i):s.setAttribute(i,o===!0?"":o)}))})}function zo(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],s=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),o=i.reduce(function(l,u){return l[u]="",l},{});!Ae(a)||!Ge(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}const Uo={name:"applyStyles",enabled:!0,phase:"write",fn:Vo,effect:zo,requires:["computeStyles"]};function Ke(e){return e.split("-")[0]}var kt=Math.max,zr=Math.min,Ut=Math.round;function Tn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Us(){return!/^((?!chrome|android).)*safari/i.test(Tn())}function Kt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,s=1;t&&Ae(e)&&(a=e.offsetWidth>0&&Ut(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ut(n.height)/e.offsetHeight||1);var i=Pt(e)?Pe(e):window,o=i.visualViewport,l=!Us()&&r,u=(n.left+(l&&o?o.offsetLeft:0))/a,c=(n.top+(l&&o?o.offsetTop:0))/s,f=n.width/a,v=n.height/s;return{width:f,height:v,top:c,right:u+f,bottom:c+v,left:u,x:u,y:c}}function Un(e){var t=Kt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ks(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&zn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function et(e){return Pe(e).getComputedStyle(e)}function Ko(e){return["table","td","th"].indexOf(Ge(e))>=0}function gt(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function an(e){return Ge(e)==="html"?e:e.assignedSlot||e.parentNode||(zn(e)?e.host:null)||gt(e)}function $a(e){return!Ae(e)||et(e).position==="fixed"?null:e.offsetParent}function Go(e){var t=/firefox/i.test(Tn()),r=/Trident/i.test(Tn());if(r&&Ae(e)){var n=et(e);if(n.position==="fixed")return null}var a=an(e);for(zn(a)&&(a=a.host);Ae(a)&&["html","body"].indexOf(Ge(a))<0;){var s=et(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Or(e){for(var t=Pe(e),r=$a(e);r&&Ko(r)&&et(r).position==="static";)r=$a(r);return r&&(Ge(r)==="html"||Ge(r)==="body"&&et(r).position==="static")?t:r||Go(e)||t}function Kn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gr(e,t,r){return kt(e,zr(t,r))}function qo(e,t,r){var n=gr(e,t,r);return n>r?r:n}function Gs(){return{top:0,right:0,bottom:0,left:0}}function qs(e){return Object.assign({},Gs(),e)}function Zs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Zo=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,qs(typeof t!="number"?t:Zs(t,Cr))};function Xo(e){var t,r=e.state,n=e.name,a=e.options,s=r.elements.arrow,i=r.modifiersData.popperOffsets,o=Ke(r.placement),l=Kn(o),u=[ke,Ne].indexOf(o)>=0,c=u?"height":"width";if(!(!s||!i)){var f=Zo(a.padding,r),v=Un(s),h=l==="y"?Me:ke,g=l==="y"?Le:Ne,C=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],$=i[l]-r.rects.reference[l],y=Or(s),I=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,R=C/2-$/2,O=f[h],S=I-v[c]-f[g],N=I/2-v[c]/2+R,T=gr(O,N,S),F=l;r.modifiersData[n]=(t={},t[F]=T,t.centerOffset=T-N,t)}}function Jo(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ks(t.elements.popper,a)&&(t.elements.arrow=a))}const Qo={name:"arrow",enabled:!0,phase:"main",fn:Xo,effect:Jo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gt(e){return e.split("-")[1]}var el={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tl(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Ut(r*a)/a||0,y:Ut(n*a)/a||0}}function Da(e){var t,r=e.popper,n=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,v=i.x,h=v===void 0?0:v,g=i.y,C=g===void 0?0:g,$=typeof c=="function"?c({x:h,y:C}):{x:h,y:C};h=$.x,C=$.y;var y=i.hasOwnProperty("x"),I=i.hasOwnProperty("y"),R=ke,O=Me,S=window;if(u){var N=Or(r),T="clientHeight",F="clientWidth";if(N===Pe(r)&&(N=gt(r),et(N).position!=="static"&&o==="absolute"&&(T="scrollHeight",F="scrollWidth")),N=N,a===Me||(a===ke||a===Ne)&&s===br){O=Le;var W=f&&N===S&&S.visualViewport?S.visualViewport.height:N[T];C-=W-n.height,C*=l?1:-1}if(a===ke||(a===Me||a===Le)&&s===br){R=Ne;var V=f&&N===S&&S.visualViewport?S.visualViewport.width:N[F];h-=V-n.width,h*=l?1:-1}}var z=Object.assign({position:o},u&&el),Y=c===!0?tl({x:h,y:C},Pe(r)):{x:h,y:C};if(h=Y.x,C=Y.y,l){var j;return Object.assign({},z,(j={},j[O]=I?"0":"",j[R]=y?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+C+"px)":"translate3d("+h+"px, "+C+"px, 0)",j))}return Object.assign({},z,(t={},t[O]=I?C+"px":"",t[R]=y?h+"px":"",t.transform="",t))}function rl(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,s=r.adaptive,i=s===void 0?!0:s,o=r.roundOffsets,l=o===void 0?!0:o,u={placement:Ke(t.placement),variation:Gt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Da(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Da(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rl,data:{}};var Ar={passive:!0};function al(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,s=a===void 0?!0:a,i=n.resize,o=i===void 0?!0:i,l=Pe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",r.update,Ar)}),o&&l.addEventListener("resize",r.update,Ar),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Ar)}),o&&l.removeEventListener("resize",r.update,Ar)}}const sl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:al,data:{}};var il={left:"right",right:"left",bottom:"top",top:"bottom"};function Rr(e){return e.replace(/left|right|bottom|top/g,function(t){return il[t]})}var ol={start:"end",end:"start"};function Ma(e){return e.replace(/start|end/g,function(t){return ol[t]})}function Gn(e){var t=Pe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qn(e){return Kt(gt(e)).left+Gn(e).scrollLeft}function ll(e,t){var r=Pe(e),n=gt(e),a=r.visualViewport,s=n.clientWidth,i=n.clientHeight,o=0,l=0;if(a){s=a.width,i=a.height;var u=Us();(u||!u&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:s,height:i,x:o+qn(e),y:l}}function ul(e){var t,r=gt(e),n=Gn(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=kt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=kt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+qn(e),l=-n.scrollTop;return et(a||r).direction==="rtl"&&(o+=kt(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:o,y:l}}function Zn(e){var t=et(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Xs(e){return["html","body","#document"].indexOf(Ge(e))>=0?e.ownerDocument.body:Ae(e)&&Zn(e)?e:Xs(an(e))}function yr(e,t){var r;t===void 0&&(t=[]);var n=Xs(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),s=Pe(n),i=a?[s].concat(s.visualViewport||[],Zn(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(yr(an(i)))}function Yn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cl(e,t){var r=Kt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ka(e,t,r){return t===Vs?Yn(ll(e,r)):Pt(t)?cl(t,r):Yn(ul(gt(e)))}function dl(e){var t=yr(an(e)),r=["absolute","fixed"].indexOf(et(e).position)>=0,n=r&&Ae(e)?Or(e):e;return Pt(n)?t.filter(function(a){return Pt(a)&&Ks(a,n)&&Ge(a)!=="body"}):[]}function fl(e,t,r,n){var a=t==="clippingParents"?dl(e):[].concat(t),s=[].concat(a,[r]),i=s[0],o=s.reduce(function(l,u){var c=ka(e,u,n);return l.top=kt(c.top,l.top),l.right=zr(c.right,l.right),l.bottom=zr(c.bottom,l.bottom),l.left=kt(c.left,l.left),l},ka(e,i,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Js(e){var t=e.reference,r=e.element,n=e.placement,a=n?Ke(n):null,s=n?Gt(n):null,i=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2,l;switch(a){case Me:l={x:i,y:t.y-r.height};break;case Le:l={x:i,y:t.y+t.height};break;case Ne:l={x:t.x+t.width,y:o};break;case ke:l={x:t.x-r.width,y:o};break;default:l={x:t.x,y:t.y}}var u=a?Kn(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case zt:l[u]=l[u]-(t[c]/2-r[c]/2);break;case br:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function wr(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,s=r.strategy,i=s===void 0?e.strategy:s,o=r.boundary,l=o===void 0?Io:o,u=r.rootBoundary,c=u===void 0?Vs:u,f=r.elementContext,v=f===void 0?ur:f,h=r.altBoundary,g=h===void 0?!1:h,C=r.padding,$=C===void 0?0:C,y=qs(typeof $!="number"?$:Zs($,Cr)),I=v===ur?xo:ur,R=e.rects.popper,O=e.elements[g?I:v],S=fl(Pt(O)?O:O.contextElement||gt(e.elements.popper),l,c,i),N=Kt(e.elements.reference),T=Js({reference:N,element:R,strategy:"absolute",placement:a}),F=Yn(Object.assign({},R,T)),W=v===ur?F:N,V={top:S.top-W.top+y.top,bottom:W.bottom-S.bottom+y.bottom,left:S.left-W.left+y.left,right:W.right-S.right+y.right},z=e.modifiersData.offset;if(v===ur&&z){var Y=z[a];Object.keys(V).forEach(function(j){var Z=[Ne,Le].indexOf(j)>=0?1:-1,L=[Me,Le].indexOf(j)>=0?"y":"x";V[j]+=Y[L]*Z})}return V}function hl(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,s=r.rootBoundary,i=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?zs:l,c=Gt(n),f=c?o?_a:_a.filter(function(g){return Gt(g)===c}):Cr,v=f.filter(function(g){return u.indexOf(g)>=0});v.length===0&&(v=f);var h=v.reduce(function(g,C){return g[C]=wr(e,{placement:C,boundary:a,rootBoundary:s,padding:i})[Ke(C)],g},{});return Object.keys(h).sort(function(g,C){return h[g]-h[C]})}function vl(e){if(Ke(e)===Vn)return[];var t=Rr(e);return[Ma(e),t,Ma(t)]}function pl(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,i=r.altAxis,o=i===void 0?!0:i,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,v=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,C=r.allowedAutoPlacements,$=t.options.placement,y=Ke($),I=y===$,R=l||(I||!g?[Rr($)]:vl($)),O=[$].concat(R).reduce(function(X,ce){return X.concat(Ke(ce)===Vn?hl(t,{placement:ce,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:C}):ce)},[]),S=t.rects.reference,N=t.rects.popper,T=new Map,F=!0,W=O[0],V=0;V<O.length;V++){var z=O[V],Y=Ke(z),j=Gt(z)===zt,Z=[Me,Le].indexOf(Y)>=0,L=Z?"width":"height",q=wr(t,{placement:z,boundary:c,rootBoundary:f,altBoundary:v,padding:u}),Q=Z?j?Ne:ke:j?Le:Me;S[L]>N[L]&&(Q=Rr(Q));var fe=Rr(Q),ae=[];if(s&&ae.push(q[Y]<=0),o&&ae.push(q[Q]<=0,q[fe]<=0),ae.every(function(X){return X})){W=z,F=!1;break}T.set(z,ae)}if(F)for(var k=g?3:1,K=function(ce){var ve=O.find(function(de){var pe=T.get(de);if(pe)return pe.slice(0,ce).every(function(Ce){return Ce})});if(ve)return W=ve,"break"},A=k;A>0;A--){var ue=K(A);if(ue==="break")break}t.placement!==W&&(t.modifiersData[n]._skip=!0,t.placement=W,t.reset=!0)}}const ml={name:"flip",enabled:!0,phase:"main",fn:pl,requiresIfExists:["offset"],data:{_skip:!1}};function Ca(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Oa(e){return[Me,Ne,Le,ke].some(function(t){return e[t]>=0})}function gl(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,i=wr(t,{elementContext:"reference"}),o=wr(t,{altBoundary:!0}),l=Ca(i,n),u=Ca(o,a,s),c=Oa(l),f=Oa(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const yl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gl};function bl(e,t,r){var n=Ke(e),a=[ke,Me].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=s[0],o=s[1];return i=i||0,o=(o||0)*a,[ke,Ne].indexOf(n)>=0?{x:o,y:i}:{x:i,y:o}}function wl(e){var t=e.state,r=e.options,n=e.name,a=r.offset,s=a===void 0?[0,0]:a,i=zs.reduce(function(c,f){return c[f]=bl(f,t.rects,s),c},{}),o=i[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const _l={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wl};function $l(e){var t=e.state,r=e.name;t.modifiersData[r]=Js({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dl={name:"popperOffsets",enabled:!0,phase:"read",fn:$l,data:{}};function Ml(e){return e==="x"?"y":"x"}function kl(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,s=a===void 0?!0:a,i=r.altAxis,o=i===void 0?!1:i,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,v=r.tether,h=v===void 0?!0:v,g=r.tetherOffset,C=g===void 0?0:g,$=wr(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Ke(t.placement),I=Gt(t.placement),R=!I,O=Kn(y),S=Ml(O),N=t.modifiersData.popperOffsets,T=t.rects.reference,F=t.rects.popper,W=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,V=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(N){if(s){var j,Z=O==="y"?Me:ke,L=O==="y"?Le:Ne,q=O==="y"?"height":"width",Q=N[O],fe=Q+$[Z],ae=Q-$[L],k=h?-F[q]/2:0,K=I===zt?T[q]:F[q],A=I===zt?-F[q]:-T[q],ue=t.elements.arrow,X=h&&ue?Un(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Gs(),ve=ce[Z],de=ce[L],pe=gr(0,T[q],X[q]),Ce=R?T[q]/2-k-pe-ve-V.mainAxis:K-pe-ve-V.mainAxis,Xe=R?-T[q]/2+k+pe+de+V.mainAxis:A+pe+de+V.mainAxis,Fe=t.elements.arrow&&Or(t.elements.arrow),Te=Fe?O==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Ye=(j=z==null?void 0:z[O])!=null?j:0,st=Q+Ce-Ye-Te,xt=Q+Xe-Ye,Be=gr(h?zr(fe,st):fe,Q,h?kt(ae,xt):ae);N[O]=Be,Y[O]=Be-Q}if(o){var bt,wt=O==="x"?Me:ke,_t=O==="x"?Le:Ne,Re=N[S],it=S==="y"?"height":"width",ot=Re+$[wt],lt=Re-$[_t],ut=[Me,ke].indexOf(y)!==-1,ct=(bt=z==null?void 0:z[S])!=null?bt:0,dt=ut?ot:Re-T[it]-F[it]-ct+V.altAxis,$t=ut?Re+T[it]+F[it]-ct-V.altAxis:lt,At=h&&ut?qo(dt,Re,$t):gr(h?dt:ot,Re,h?$t:lt);N[S]=At,Y[S]=At-Re}t.modifiersData[n]=Y}}const Cl={name:"preventOverflow",enabled:!0,phase:"main",fn:kl,requiresIfExists:["offset"]};function Ol(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pl(e){return e===Pe(e)||!Ae(e)?Gn(e):Ol(e)}function Sl(e){var t=e.getBoundingClientRect(),r=Ut(t.width)/e.offsetWidth||1,n=Ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Tl(e,t,r){r===void 0&&(r=!1);var n=Ae(t),a=Ae(t)&&Sl(t),s=gt(t),i=Kt(e,a,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ge(t)!=="body"||Zn(s))&&(o=Pl(t)),Ae(t)?(l=Kt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=qn(s))),{x:i.left+o.scrollLeft-l.x,y:i.top+o.scrollTop-l.y,width:i.width,height:i.height}}function Yl(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(o){if(!r.has(o)){var l=t.get(o);l&&a(l)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),n}function Il(e){var t=Yl(e);return Bo.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function xl(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Al(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function Sa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function El(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?Pa:a;return function(o,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,s),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},f=[],v=!1,h={state:c,setOptions:function(y){var I=typeof y=="function"?y(c.options):y;C(),c.options=Object.assign({},s,c.options,I),c.scrollParents={reference:Pt(o)?yr(o):o.contextElement?yr(o.contextElement):[],popper:yr(l)};var R=Il(Al([].concat(n,c.options.modifiers)));return c.orderedModifiers=R.filter(function(O){return O.enabled}),g(),h.update()},forceUpdate:function(){if(!v){var y=c.elements,I=y.reference,R=y.popper;if(Sa(I,R)){c.rects={reference:Tl(I,Or(R),c.options.strategy==="fixed"),popper:Un(R)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(V){return c.modifiersData[V.name]=Object.assign({},V.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var S=c.orderedModifiers[O],N=S.fn,T=S.options,F=T===void 0?{}:T,W=S.name;typeof N=="function"&&(c=N({state:c,options:F,name:W,instance:h})||c)}}}},update:xl(function(){return new Promise(function($){h.forceUpdate(),$(c)})}),destroy:function(){C(),v=!0}};if(!Sa(o,l))return h;h.setOptions(u).then(function($){!v&&u.onFirstUpdate&&u.onFirstUpdate($)});function g(){c.orderedModifiers.forEach(function($){var y=$.name,I=$.options,R=I===void 0?{}:I,O=$.effect;if(typeof O=="function"){var S=O({state:c,name:y,instance:h,options:R}),N=function(){};f.push(S||N)}})}function C(){f.forEach(function($){return $()}),f=[]}return h}}var Ll=[sl,Dl,nl,Uo,_l,ml,Cl,Qo,yl],Nl=El({defaultModifiers:Ll}),Fl=Object.defineProperty,Rl=(e,t,r)=>t in e?Fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t,r)=>(Rl(e,typeof t!="symbol"?t+"":t,r),r),Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jl=Object.prototype,Hl=jl.hasOwnProperty;function Wl(e,t){return e!=null&&Hl.call(e,t)}var Bl=Wl,Vl=Array.isArray,He=Vl,zl=typeof Er=="object"&&Er&&Er.Object===Object&&Er,ei=zl,Ul=ei,Kl=typeof self=="object"&&self&&self.Object===Object&&self,Gl=Ul||Kl||Function("return this")(),qe=Gl,ql=qe,Zl=ql.Symbol,sn=Zl,Ta=sn,ti=Object.prototype,Xl=ti.hasOwnProperty,Jl=ti.toString,cr=Ta?Ta.toStringTag:void 0;function Ql(e){var t=Xl.call(e,cr),r=e[cr];try{e[cr]=void 0;var n=!0}catch{}var a=Jl.call(e);return n&&(t?e[cr]=r:delete e[cr]),a}var eu=Ql,tu=Object.prototype,ru=tu.toString;function nu(e){return ru.call(e)}var au=nu,Ya=sn,su=eu,iu=au,ou="[object Null]",lu="[object Undefined]",Ia=Ya?Ya.toStringTag:void 0;function uu(e){return e==null?e===void 0?lu:ou:Ia&&Ia in Object(e)?su(e):iu(e)}var Ze=uu;function cu(e){return e!=null&&typeof e=="object"}var We=cu,du=Ze,fu=We,hu="[object Symbol]";function vu(e){return typeof e=="symbol"||fu(e)&&du(e)==hu}var Xn=vu,pu=He,mu=Xn,gu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yu=/^\w*$/;function bu(e,t){if(pu(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mu(e)?!0:yu.test(e)||!gu.test(e)||t!=null&&e in Object(t)}var Jn=bu;function wu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var nt=wu,_u=Ze,$u=nt,Du="[object AsyncFunction]",Mu="[object Function]",ku="[object GeneratorFunction]",Cu="[object Proxy]";function Ou(e){if(!$u(e))return!1;var t=_u(e);return t==Mu||t==ku||t==Du||t==Cu}var Tt=Ou,Pu=qe,Su=Pu["__core-js_shared__"],Tu=Su,wn=Tu,xa=function(){var e=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yu(e){return!!xa&&xa in e}var Iu=Yu,xu=Function.prototype,Au=xu.toString;function Eu(e){if(e!=null){try{return Au.call(e)}catch{}try{return e+""}catch{}}return""}var ri=Eu,Lu=Tt,Nu=Iu,Fu=nt,Ru=ri,ju=/[\\^$.*+?()[\]{}|]/g,Hu=/^\[object .+?Constructor\]$/,Wu=Function.prototype,Bu=Object.prototype,Vu=Wu.toString,zu=Bu.hasOwnProperty,Uu=RegExp("^"+Vu.call(zu).replace(ju,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ku(e){if(!Fu(e)||Nu(e))return!1;var t=Lu(e)?Uu:Hu;return t.test(Ru(e))}var Gu=Ku;function qu(e,t){return e==null?void 0:e[t]}var Zu=qu,Xu=Gu,Ju=Zu;function Qu(e,t){var r=Ju(e,t);return Xu(r)?r:void 0}var Yt=Qu,ec=Yt,tc=ec(Object,"create"),on=tc,Aa=on;function rc(){this.__data__=Aa?Aa(null):{},this.size=0}var nc=rc;function ac(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sc=ac,ic=on,oc="__lodash_hash_undefined__",lc=Object.prototype,uc=lc.hasOwnProperty;function cc(e){var t=this.__data__;if(ic){var r=t[e];return r===oc?void 0:r}return uc.call(t,e)?t[e]:void 0}var dc=cc,fc=on,hc=Object.prototype,vc=hc.hasOwnProperty;function pc(e){var t=this.__data__;return fc?t[e]!==void 0:vc.call(t,e)}var mc=pc,gc=on,yc="__lodash_hash_undefined__";function bc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gc&&t===void 0?yc:t,this}var wc=bc,_c=nc,$c=sc,Dc=dc,Mc=mc,kc=wc;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=_c;Xt.prototype.delete=$c;Xt.prototype.get=Dc;Xt.prototype.has=Mc;Xt.prototype.set=kc;var Cc=Xt;function Oc(){this.__data__=[],this.size=0}var Pc=Oc;function Sc(e,t){return e===t||e!==e&&t!==t}var Jt=Sc,Tc=Jt;function Yc(e,t){for(var r=e.length;r--;)if(Tc(e[r][0],t))return r;return-1}var ln=Yc,Ic=ln,xc=Array.prototype,Ac=xc.splice;function Ec(e){var t=this.__data__,r=Ic(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ac.call(t,r,1),--this.size,!0}var Lc=Ec,Nc=ln;function Fc(e){var t=this.__data__,r=Nc(t,e);return r<0?void 0:t[r][1]}var Rc=Fc,jc=ln;function Hc(e){return jc(this.__data__,e)>-1}var Wc=Hc,Bc=ln;function Vc(e,t){var r=this.__data__,n=Bc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var zc=Vc,Uc=Pc,Kc=Lc,Gc=Rc,qc=Wc,Zc=zc;function Qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qt.prototype.clear=Uc;Qt.prototype.delete=Kc;Qt.prototype.get=Gc;Qt.prototype.has=qc;Qt.prototype.set=Zc;var un=Qt,Xc=Yt,Jc=qe,Qc=Xc(Jc,"Map"),Qn=Qc,Ea=Cc,ed=un,td=Qn;function rd(){this.size=0,this.__data__={hash:new Ea,map:new(td||ed),string:new Ea}}var nd=rd;function ad(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sd=ad,id=sd;function od(e,t){var r=e.__data__;return id(t)?r[typeof t=="string"?"string":"hash"]:r.map}var cn=od,ld=cn;function ud(e){var t=ld(this,e).delete(e);return this.size-=t?1:0,t}var cd=ud,dd=cn;function fd(e){return dd(this,e).get(e)}var hd=fd,vd=cn;function pd(e){return vd(this,e).has(e)}var md=pd,gd=cn;function yd(e,t){var r=gd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var bd=yd,wd=nd,_d=cd,$d=hd,Dd=md,Md=bd;function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}er.prototype.clear=wd;er.prototype.delete=_d;er.prototype.get=$d;er.prototype.has=Dd;er.prototype.set=Md;var ea=er,ni=ea,kd="Expected a function";function ta(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kd);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(ta.Cache||ni),r}ta.Cache=ni;var Cd=ta,Od=Cd,Pd=500;function Sd(e){var t=Od(e,function(n){return r.size===Pd&&r.clear(),n}),r=t.cache;return t}var Td=Sd,Yd=Td,Id=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xd=/\\(\\)?/g,Ad=Yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Id,function(r,n,a,s){t.push(a?s.replace(xd,"$1"):n||r)}),t}),Ed=Ad;function Ld(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Nd=Ld,La=sn,Fd=Nd,Rd=He,jd=Xn,Hd=1/0,Na=La?La.prototype:void 0,Fa=Na?Na.toString:void 0;function ai(e){if(typeof e=="string")return e;if(Rd(e))return Fd(e,ai)+"";if(jd(e))return Fa?Fa.call(e):"";var t=e+"";return t=="0"&&1/e==-Hd?"-0":t}var Wd=ai,Bd=Wd;function Vd(e){return e==null?"":Bd(e)}var zd=Vd,Ud=He,Kd=Jn,Gd=Ed,qd=zd;function Zd(e,t){return Ud(e)?e:Kd(e,t)?[e]:Gd(qd(e))}var si=Zd,Xd=Ze,Jd=We,Qd="[object Arguments]";function ef(e){return Jd(e)&&Xd(e)==Qd}var tf=ef,Ra=tf,rf=We,ii=Object.prototype,nf=ii.hasOwnProperty,af=ii.propertyIsEnumerable,sf=Ra(function(){return arguments}())?Ra:function(e){return rf(e)&&nf.call(e,"callee")&&!af.call(e,"callee")},ra=sf,of=9007199254740991,lf=/^(?:0|[1-9]\d*)$/;function uf(e,t){var r=typeof e;return t=t??of,!!t&&(r=="number"||r!="symbol"&&lf.test(e))&&e>-1&&e%1==0&&e<t}var na=uf,cf=9007199254740991;function df(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cf}var aa=df,ff=Xn,hf=1/0;function vf(e){if(typeof e=="string"||ff(e))return e;var t=e+"";return t=="0"&&1/e==-hf?"-0":t}var dn=vf,pf=si,mf=ra,gf=He,yf=na,bf=aa,wf=dn;function _f(e,t,r){t=pf(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var i=wf(t[n]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&bf(a)&&yf(i,a)&&(gf(e)||mf(e)))}var oi=_f,$f=Bl,Df=oi;function Mf(e,t){return e!=null&&Df(e,t,$f)}var li=Mf,kf=Ze,Cf=We,Of="[object Date]";function Pf(e){return Cf(e)&&kf(e)==Of}var Sf=Pf;function Tf(e){return function(t){return e(t)}}var ui=Tf,_r={},Yf={get exports(){return _r},set exports(e){_r=e}};(function(e,t){var r=ei,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===n,i=s&&r.process,o=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=o})(Yf,_r);var If=Sf,xf=ui,ja=_r,Ha=ja&&ja.isDate,Af=Ha?xf(Ha):If,Ef=Af,Lf=Ze,Nf=He,Ff=We,Rf="[object String]";function jf(e){return typeof e=="string"||!Nf(e)&&Ff(e)&&Lf(e)==Rf}var Ve=jf;function Hf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ci=Hf,Wf=un;function Bf(){this.__data__=new Wf,this.size=0}var Vf=Bf;function zf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Uf=zf;function Kf(e){return this.__data__.get(e)}var Gf=Kf;function qf(e){return this.__data__.has(e)}var Zf=qf,Xf=un,Jf=Qn,Qf=ea,eh=200;function th(e,t){var r=this.__data__;if(r instanceof Xf){var n=r.__data__;if(!Jf||n.length<eh-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qf(n)}return r.set(e,t),this.size=r.size,this}var rh=th,nh=un,ah=Vf,sh=Uf,ih=Gf,oh=Zf,lh=rh;function tr(e){var t=this.__data__=new nh(e);this.size=t.size}tr.prototype.clear=ah;tr.prototype.delete=sh;tr.prototype.get=ih;tr.prototype.has=oh;tr.prototype.set=lh;var sa=tr,uh="__lodash_hash_undefined__";function ch(e){return this.__data__.set(e,uh),this}var dh=ch;function fh(e){return this.__data__.has(e)}var hh=fh,vh=ea,ph=dh,mh=hh;function Ur(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vh;++t<r;)this.add(e[t])}Ur.prototype.add=Ur.prototype.push=ph;Ur.prototype.has=mh;var gh=Ur;function yh(e,t){return e.has(t)}var bh=yh,wh=gh,_h=ci,$h=bh,Dh=1,Mh=2;function kh(e,t,r,n,a,s){var i=r&Dh,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var f=-1,v=!0,h=r&Mh?new wh:void 0;for(s.set(e,t),s.set(t,e);++f<o;){var g=e[f],C=t[f];if(n)var $=i?n(C,g,f,t,e,s):n(g,C,f,e,t,s);if($!==void 0){if($)continue;v=!1;break}if(h){if(!_h(t,function(y,I){if(!$h(h,I)&&(g===y||a(g,y,r,n,s)))return h.push(I)})){v=!1;break}}else if(!(g===C||a(g,C,r,n,s))){v=!1;break}}return s.delete(e),s.delete(t),v}var di=kh,Ch=qe,Oh=Ch.Uint8Array,fi=Oh;function Ph(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var Sh=Ph;function Th(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Yh=Th,Wa=sn,Ba=fi,Ih=Jt,xh=di,Ah=Sh,Eh=Yh,Lh=1,Nh=2,Fh="[object Boolean]",Rh="[object Date]",jh="[object Error]",Hh="[object Map]",Wh="[object Number]",Bh="[object RegExp]",Vh="[object Set]",zh="[object String]",Uh="[object Symbol]",Kh="[object ArrayBuffer]",Gh="[object DataView]",Va=Wa?Wa.prototype:void 0,_n=Va?Va.valueOf:void 0;function qh(e,t,r,n,a,s,i){switch(r){case Gh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Kh:return!(e.byteLength!=t.byteLength||!s(new Ba(e),new Ba(t)));case Fh:case Rh:case Wh:return Ih(+e,+t);case jh:return e.name==t.name&&e.message==t.message;case Bh:case zh:return e==t+"";case Hh:var o=Ah;case Vh:var l=n&Lh;if(o||(o=Eh),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=Nh,i.set(e,t);var c=xh(o(e),o(t),n,a,s,i);return i.delete(e),c;case Uh:if(_n)return _n.call(e)==_n.call(t)}return!1}var Zh=qh;function Xh(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Jh=Xh,Qh=Jh,ev=He;function tv(e,t,r){var n=t(e);return ev(e)?n:Qh(n,r(e))}var rv=tv;function nv(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}var av=nv;function sv(){return[]}var iv=sv,ov=av,lv=iv,uv=Object.prototype,cv=uv.propertyIsEnumerable,za=Object.getOwnPropertySymbols,dv=za?function(e){return e==null?[]:(e=Object(e),ov(za(e),function(t){return cv.call(e,t)}))}:lv,fv=dv;function hv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var vv=hv,qt={},pv={get exports(){return qt},set exports(e){qt=e}};function mv(){return!1}var gv=mv;(function(e,t){var r=qe,n=gv,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,o=i?r.Buffer:void 0,l=o?o.isBuffer:void 0,u=l||n;e.exports=u})(pv,qt);var yv=Ze,bv=aa,wv=We,_v="[object Arguments]",$v="[object Array]",Dv="[object Boolean]",Mv="[object Date]",kv="[object Error]",Cv="[object Function]",Ov="[object Map]",Pv="[object Number]",Sv="[object Object]",Tv="[object RegExp]",Yv="[object Set]",Iv="[object String]",xv="[object WeakMap]",Av="[object ArrayBuffer]",Ev="[object DataView]",Lv="[object Float32Array]",Nv="[object Float64Array]",Fv="[object Int8Array]",Rv="[object Int16Array]",jv="[object Int32Array]",Hv="[object Uint8Array]",Wv="[object Uint8ClampedArray]",Bv="[object Uint16Array]",Vv="[object Uint32Array]",ne={};ne[Lv]=ne[Nv]=ne[Fv]=ne[Rv]=ne[jv]=ne[Hv]=ne[Wv]=ne[Bv]=ne[Vv]=!0;ne[_v]=ne[$v]=ne[Av]=ne[Dv]=ne[Ev]=ne[Mv]=ne[kv]=ne[Cv]=ne[Ov]=ne[Pv]=ne[Sv]=ne[Tv]=ne[Yv]=ne[Iv]=ne[xv]=!1;function zv(e){return wv(e)&&bv(e.length)&&!!ne[yv(e)]}var Uv=zv,Kv=Uv,Gv=ui,Ua=_r,Ka=Ua&&Ua.isTypedArray,qv=Ka?Gv(Ka):Kv,ia=qv,Zv=vv,Xv=ra,Jv=He,Qv=qt,ep=na,tp=ia,rp=Object.prototype,np=rp.hasOwnProperty;function ap(e,t){var r=Jv(e),n=!r&&Xv(e),a=!r&&!n&&Qv(e),s=!r&&!n&&!a&&tp(e),i=r||n||a||s,o=i?Zv(e.length,String):[],l=o.length;for(var u in e)(t||np.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ep(u,l)))&&o.push(u);return o}var hi=ap,sp=Object.prototype;function ip(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sp;return e===r}var oa=ip;function op(e,t){return function(r){return e(t(r))}}var vi=op,lp=vi,up=lp(Object.keys,Object),cp=up,dp=oa,fp=cp,hp=Object.prototype,vp=hp.hasOwnProperty;function pp(e){if(!dp(e))return fp(e);var t=[];for(var r in Object(e))vp.call(e,r)&&r!="constructor"&&t.push(r);return t}var mp=pp,gp=Tt,yp=aa;function bp(e){return e!=null&&yp(e.length)&&!gp(e)}var Pr=bp,wp=hi,_p=mp,$p=Pr;function Dp(e){return $p(e)?wp(e):_p(e)}var la=Dp,Mp=rv,kp=fv,Cp=la;function Op(e){return Mp(e,Cp,kp)}var Pp=Op,Ga=Pp,Sp=1,Tp=Object.prototype,Yp=Tp.hasOwnProperty;function Ip(e,t,r,n,a,s){var i=r&Sp,o=Ga(e),l=o.length,u=Ga(t),c=u.length;if(l!=c&&!i)return!1;for(var f=l;f--;){var v=o[f];if(!(i?v in t:Yp.call(t,v)))return!1}var h=s.get(e),g=s.get(t);if(h&&g)return h==t&&g==e;var C=!0;s.set(e,t),s.set(t,e);for(var $=i;++f<l;){v=o[f];var y=e[v],I=t[v];if(n)var R=i?n(I,y,v,t,e,s):n(y,I,v,e,t,s);if(!(R===void 0?y===I||a(y,I,r,n,s):R)){C=!1;break}$||($=v=="constructor")}if(C&&!$){var O=e.constructor,S=t.constructor;O!=S&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof S=="function"&&S instanceof S)&&(C=!1)}return s.delete(e),s.delete(t),C}var xp=Ip,Ap=Yt,Ep=qe,Lp=Ap(Ep,"DataView"),Np=Lp,Fp=Yt,Rp=qe,jp=Fp(Rp,"Promise"),Hp=jp,Wp=Yt,Bp=qe,Vp=Wp(Bp,"Set"),zp=Vp,Up=Yt,Kp=qe,Gp=Up(Kp,"WeakMap"),qp=Gp,In=Np,xn=Qn,An=Hp,En=zp,Ln=qp,pi=Ze,rr=ri,qa="[object Map]",Zp="[object Object]",Za="[object Promise]",Xa="[object Set]",Ja="[object WeakMap]",Qa="[object DataView]",Xp=rr(In),Jp=rr(xn),Qp=rr(An),em=rr(En),tm=rr(Ln),Dt=pi;(In&&Dt(new In(new ArrayBuffer(1)))!=Qa||xn&&Dt(new xn)!=qa||An&&Dt(An.resolve())!=Za||En&&Dt(new En)!=Xa||Ln&&Dt(new Ln)!=Ja)&&(Dt=function(e){var t=pi(e),r=t==Zp?e.constructor:void 0,n=r?rr(r):"";if(n)switch(n){case Xp:return Qa;case Jp:return qa;case Qp:return Za;case em:return Xa;case tm:return Ja}return t});var rm=Dt,$n=sa,nm=di,am=Zh,sm=xp,es=rm,ts=He,rs=qt,im=ia,om=1,ns="[object Arguments]",as="[object Array]",Lr="[object Object]",lm=Object.prototype,ss=lm.hasOwnProperty;function um(e,t,r,n,a,s){var i=ts(e),o=ts(t),l=i?as:es(e),u=o?as:es(t);l=l==ns?Lr:l,u=u==ns?Lr:u;var c=l==Lr,f=u==Lr,v=l==u;if(v&&rs(e)){if(!rs(t))return!1;i=!0,c=!1}if(v&&!c)return s||(s=new $n),i||im(e)?nm(e,t,r,n,a,s):am(e,t,l,r,n,a,s);if(!(r&om)){var h=c&&ss.call(e,"__wrapped__"),g=f&&ss.call(t,"__wrapped__");if(h||g){var C=h?e.value():e,$=g?t.value():t;return s||(s=new $n),a(C,$,r,n,s)}}return v?(s||(s=new $n),sm(e,t,r,n,a,s)):!1}var cm=um,dm=cm,is=We;function mi(e,t,r,n,a){return e===t?!0:e==null||t==null||!is(e)&&!is(t)?e!==e&&t!==t:dm(e,t,r,n,mi,a)}var gi=mi,fm=sa,hm=gi,vm=1,pm=2;function mm(e,t,r,n){var a=r.length,s=a,i=!n;if(e==null)return!s;for(e=Object(e);a--;){var o=r[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){o=r[a];var l=o[0],u=e[l],c=o[1];if(i&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new fm;if(n)var v=n(u,c,l,e,t,f);if(!(v===void 0?hm(c,u,vm|pm,n,f):v))return!1}}return!0}var gm=mm,ym=nt;function bm(e){return e===e&&!ym(e)}var yi=bm,wm=yi,_m=la;function $m(e){for(var t=_m(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,wm(a)]}return t}var Dm=$m;function Mm(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var bi=Mm,km=gm,Cm=Dm,Om=bi;function Pm(e){var t=Cm(e);return t.length==1&&t[0][2]?Om(t[0][0],t[0][1]):function(r){return r===e||km(r,e,t)}}var Sm=Pm,Tm=si,Ym=dn;function Im(e,t){t=Tm(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ym(t[r++])];return r&&r==n?e:void 0}var wi=Im,xm=wi;function Am(e,t,r){var n=e==null?void 0:xm(e,t);return n===void 0?r:n}var Mt=Am;function Em(e,t){return e!=null&&t in Object(e)}var Lm=Em,Nm=Lm,Fm=oi;function Rm(e,t){return e!=null&&Fm(e,t,Nm)}var jm=Rm,Hm=gi,Wm=Mt,Bm=jm,Vm=Jn,zm=yi,Um=bi,Km=dn,Gm=1,qm=2;function Zm(e,t){return Vm(e)&&zm(t)?Um(Km(e),t):function(r){var n=Wm(r,e);return n===void 0&&n===t?Bm(r,e):Hm(t,n,Gm|qm)}}var Xm=Zm;function Jm(e){return e}var ua=Jm;function Qm(e){return function(t){return t==null?void 0:t[e]}}var eg=Qm,tg=wi;function rg(e){return function(t){return tg(t,e)}}var ng=rg,ag=eg,sg=ng,ig=Jn,og=dn;function lg(e){return ig(e)?ag(og(e)):sg(e)}var ug=lg,cg=Sm,dg=Xm,fg=ua,hg=He,vg=ug;function pg(e){return typeof e=="function"?e:e==null?fg:typeof e=="object"?hg(e)?dg(e[0],e[1]):cg(e):vg(e)}var _i=pg;function mg(e){return function(t,r,n){for(var a=-1,s=Object(t),i=n(t),o=i.length;o--;){var l=i[e?o:++a];if(r(s[l],l,s)===!1)break}return t}}var gg=mg,yg=gg,bg=yg(),$i=bg,wg=$i,_g=la;function $g(e,t){return e&&wg(e,t,_g)}var Di=$g,Dg=Pr;function Mg(e,t){return function(r,n){if(r==null)return r;if(!Dg(r))return e(r,n);for(var a=r.length,s=t?a:-1,i=Object(r);(t?s--:++s<a)&&n(i[s],s,i)!==!1;);return r}}var kg=Mg,Cg=Di,Og=kg,Pg=Og(Cg),Sg=Pg,Tg=Sg;function Yg(e,t){var r;return Tg(e,function(n,a,s){return r=t(n,a,s),!r}),!!r}var Ig=Yg,xg=Jt,Ag=Pr,Eg=na,Lg=nt;function Ng(e,t,r){if(!Lg(r))return!1;var n=typeof t;return(n=="number"?Ag(r)&&Eg(t,r.length):n=="string"&&t in r)?xg(r[t],e):!1}var ca=Ng,Fg=ci,Rg=_i,jg=Ig,Hg=He,Wg=ca;function Bg(e,t,r){var n=Hg(e)?Fg:jg;return r&&Wg(e,t,r)&&(t=void 0),n(e,Rg(t))}var Vg=Bg,zg=Ze,Ug=We,Kg="[object Boolean]";function Gg(e){return e===!0||e===!1||Ug(e)&&zg(e)==Kg}var qg=Gg,Zg=Ze,Xg=We,Jg="[object Number]";function Qg(e){return typeof e=="number"||Xg(e)&&Zg(e)==Jg}var je=Qg,ey=Yt,ty=function(){try{var e=ey(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Mi=ty,os=Mi;function ry(e,t,r){t=="__proto__"&&os?os(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var fn=ry,ny=fn,ay=Jt,sy=Object.prototype,iy=sy.hasOwnProperty;function oy(e,t,r){var n=e[t];(!(iy.call(e,t)&&ay(n,r))||r===void 0&&!(t in e))&&ny(e,t,r)}var ly=oy,uy=fn,cy=Di,dy=_i;function fy(e,t){var r={};return t=dy(t),cy(e,function(n,a,s){uy(r,a,t(n,a,s))}),r}var hy=fy;function vy(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ki=vy,py=ki,ls=Math.max;function my(e,t,r){return t=ls(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=ls(n.length-t,0),i=Array(s);++a<s;)i[a]=n[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=n[a];return o[t]=r(i),py(e,this,o)}}var gy=my;function yy(e){return function(){return e}}var by=yy,wy=by,us=Mi,_y=ua,$y=us?function(e,t){return us(e,"toString",{configurable:!0,enumerable:!1,value:wy(t),writable:!0})}:_y,Dy=$y,My=800,ky=16,Cy=Date.now;function Oy(e){var t=0,r=0;return function(){var n=Cy(),a=ky-(n-r);if(r=n,a>0){if(++t>=My)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Py=Oy,Sy=Dy,Ty=Py,Yy=Ty(Sy),Iy=Yy,xy=ua,Ay=gy,Ey=Iy;function Ly(e,t){return Ey(Ay(e,t,xy),e+"")}var da=Ly;function Ny(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Fy=Ny,Ry=nt,jy=oa,Hy=Fy,Wy=Object.prototype,By=Wy.hasOwnProperty;function Vy(e){if(!Ry(e))return Hy(e);var t=jy(e),r=[];for(var n in e)n=="constructor"&&(t||!By.call(e,n))||r.push(n);return r}var zy=Vy,Uy=hi,Ky=zy,Gy=Pr;function qy(e){return Gy(e)?Uy(e,!0):Ky(e)}var fa=qy,Zy=da,Xy=Jt,Jy=ca,Qy=fa,Ci=Object.prototype,eb=Ci.hasOwnProperty,tb=Zy(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Jy(t[0],t[1],a)&&(n=1);++r<n;)for(var s=t[r],i=Qy(s),o=-1,l=i.length;++o<l;){var u=i[o],c=e[u];(c===void 0||Xy(c,Ci[u])&&!eb.call(e,u))&&(e[u]=s[u])}return e}),cs=tb,rb=fn,nb=Jt;function ab(e,t,r){(r!==void 0&&!nb(e[t],r)||r===void 0&&!(t in e))&&rb(e,t,r)}var Oi=ab,Kr={},sb={get exports(){return Kr},set exports(e){Kr=e}};(function(e,t){var r=qe,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===n,i=s?r.Buffer:void 0,o=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,v=o?o(f):new u.constructor(f);return u.copy(v),v}e.exports=l})(sb,Kr);var ds=fi;function ib(e){var t=new e.constructor(e.byteLength);return new ds(t).set(new ds(e)),t}var ob=ib,lb=ob;function ub(e,t){var r=t?lb(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var cb=ub;function db(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fb=db,hb=nt,fs=Object.create,vb=function(){function e(){}return function(t){if(!hb(t))return{};if(fs)return fs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),pb=vb,mb=vi,gb=mb(Object.getPrototypeOf,Object),Pi=gb,yb=pb,bb=Pi,wb=oa;function _b(e){return typeof e.constructor=="function"&&!wb(e)?yb(bb(e)):{}}var $b=_b,Db=Pr,Mb=We;function kb(e){return Mb(e)&&Db(e)}var Cb=kb,Ob=Ze,Pb=Pi,Sb=We,Tb="[object Object]",Yb=Function.prototype,Ib=Object.prototype,Si=Yb.toString,xb=Ib.hasOwnProperty,Ab=Si.call(Object);function Eb(e){if(!Sb(e)||Ob(e)!=Tb)return!1;var t=Pb(e);if(t===null)return!0;var r=xb.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Si.call(r)==Ab}var Lb=Eb;function Nb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ti=Nb,Fb=ly,Rb=fn;function jb(e,t,r,n){var a=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var o=t[s],l=n?n(r[o],e[o],o,r,e):void 0;l===void 0&&(l=e[o]),a?Rb(r,o,l):Fb(r,o,l)}return r}var Hb=jb,Wb=Hb,Bb=fa;function Vb(e){return Wb(e,Bb(e))}var zb=Vb,hs=Oi,Ub=Kr,Kb=cb,Gb=fb,qb=$b,vs=ra,ps=He,Zb=Cb,Xb=qt,Jb=Tt,Qb=nt,e1=Lb,t1=ia,ms=Ti,r1=zb;function n1(e,t,r,n,a,s,i){var o=ms(e,r),l=ms(t,r),u=i.get(l);if(u){hs(e,r,u);return}var c=s?s(o,l,r+"",e,t,i):void 0,f=c===void 0;if(f){var v=ps(l),h=!v&&Xb(l),g=!v&&!h&&t1(l);c=l,v||h||g?ps(o)?c=o:Zb(o)?c=Gb(o):h?(f=!1,c=Ub(l,!0)):g?(f=!1,c=Kb(l,!0)):c=[]:e1(l)||vs(l)?(c=o,vs(o)?c=r1(o):(!Qb(o)||Jb(o))&&(c=qb(l))):f=!1}f&&(i.set(l,c),a(c,l,n,s,i),i.delete(l)),hs(e,r,c)}var a1=n1,s1=sa,i1=Oi,o1=$i,l1=a1,u1=nt,c1=fa,d1=Ti;function Yi(e,t,r,n,a){e!==t&&o1(t,function(s,i){if(a||(a=new s1),u1(s))l1(e,t,i,r,Yi,n,a);else{var o=n?n(d1(e,i),s,i+"",e,t,a):void 0;o===void 0&&(o=s),i1(e,i,o)}},c1)}var Ii=Yi,f1=Ii,gs=nt;function xi(e,t,r,n,a,s){return gs(e)&&gs(t)&&(s.set(t,e),f1(e,t,void 0,xi,s),s.delete(t)),e}var h1=xi,v1=da,p1=ca;function m1(e){return v1(function(t,r){var n=-1,a=r.length,s=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,i&&p1(r[0],r[1],i)&&(s=a<3?void 0:s,a=1),t=Object(t);++n<a;){var o=r[n];o&&e(t,o,n,s)}return t})}var g1=m1,y1=Ii,b1=g1,w1=b1(function(e,t,r,n){y1(e,t,r,n)}),_1=w1,$1=ki,D1=da,M1=h1,k1=_1,C1=D1(function(e){return e.push(void 0,M1),$1(k1,void 0,e)}),$r=C1;function O1(e){return e&&e.length?e[0]:void 0}var Ai=O1;function P1(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Rt=P1;const S1=e=>Object.prototype.toString.call(e).slice(8,-1),Ht=e=>Ef(e)&&!isNaN(e.getTime()),tt=e=>S1(e)==="Object",Ei=li,ys=(e,t)=>Vg(t,r=>li(e,r)),J=(e,t,r="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${r}${e}`;return e},Ee=e=>Array.isArray(e),Je=e=>Ee(e)&&e.length>0,Gr=e=>e==null?null:document&&Ve(e)?document.querySelector(e):e.$el??e,ht=(e,t,r,n=void 0)=>{e.removeEventListener(t,r,n)},vt=(e,t,r,n=void 0)=>(e.addEventListener(t,r,n),()=>ht(e,t,r,n)),jr=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Nr=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Li=(e,...t)=>{const r={};let n;for(n in e)t.includes(n)||(r[n]=e[n]);return r},Ni=(e,t)=>{const r={};return t.forEach(n=>{n in e&&(r[n]=e[n])}),r};function T1(e,t,r){return Math.min(Math.max(e,t),r)}var qr={},Y1={get exports(){return qr},set exports(e){qr=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(Y1,qr);const I1=Qs(qr);var Zr={},x1={get exports(){return Zr},set exports(e){Zr=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}e.exports=t.default})(x1,Zr);const bs=Qs(Zr);function A1(e,t){var r=F1(t);return r.formatToParts?L1(r,e):N1(r,e)}var E1={year:0,month:1,day:2,hour:3,minute:4,second:5};function L1(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var s=E1[r[a].type];s>=0&&(n[s]=parseInt(r[a].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function N1(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Dn={};function F1(e){if(!Dn[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";Dn[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Dn[e]}function Fi(e,t,r,n,a,s,i){var o=new Date(0);return o.setUTCFullYear(e,t,r),o.setUTCHours(n,a,s,i),o}var ws=36e5,R1=6e4,Mn={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function j1(e,t,r){var n,a;if(!e||(n=Mn.timezoneZ.exec(e),n))return 0;var s;if(n=Mn.timezoneHH.exec(e),n)return s=parseInt(n[1],10),_s(s)?-(s*ws):NaN;if(n=Mn.timezoneHHMM.exec(e),n){s=parseInt(n[1],10);var i=parseInt(n[2],10);return _s(s,i)?(a=Math.abs(s)*ws+i*R1,s>0?-a:a):NaN}if(B1(e)){t=new Date(t||Date.now());var o=H1(t),l=Nn(o,e),u=W1(t,l,e);return-u}return NaN}function H1(e){return Fi(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Nn(e,t){var r=A1(e,t),n=Fi(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,n-a}function W1(e,t,r){var n=e.getTime(),a=n-t,s=Nn(new Date(a),r);if(t===s)return t;a-=s-t;var i=Nn(new Date(a),r);return s===i?s:Math.max(s,i)}function _s(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var $s={};function B1(e){if($s[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),$s[e]=!0,!0}catch{return!1}}var V1=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const z1=V1;var kn=36e5,Ds=6e4,U1=2,$e={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:z1};function K1(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?U1:I1(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=G1(e),s=q1(a.date,n),i=s.year,o=s.restDateString,l=Z1(o,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,f;if(a.time&&(c=X1(a.time),isNaN(c)))return new Date(NaN);if(a.timeZone||r.timeZone){if(f=j1(a.timeZone||r.timeZone,new Date(u+c)),isNaN(f))return new Date(NaN)}else f=bs(new Date(u+c)),f=bs(new Date(u+c+f));return new Date(u+c+f)}else return new Date(NaN)}function G1(e){var t={},r=$e.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=$e.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=$e.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function q1(e,t){var r=$e.YYY[t],n=$e.YYYYY[t],a;if(a=$e.YYYY.exec(e)||n.exec(e),a){var s=a[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(a=$e.YY.exec(e)||r.exec(e),a){var i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function Z1(e,t){if(t===null)return null;var r,n,a,s;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=$e.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,ks(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=$e.DDD.exec(e),r){n=new Date(0);var i=parseInt(r[1],10);return ew(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(r=$e.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var o=parseInt(r[2],10);return ks(t,a,o)?(n.setUTCFullYear(t,a,o),n):new Date(NaN)}if(r=$e.Www.exec(e),r)return s=parseInt(r[1],10)-1,Cs(t,s)?Ms(t,s):new Date(NaN);if(r=$e.WwwD.exec(e),r){s=parseInt(r[1],10)-1;var l=parseInt(r[2],10)-1;return Cs(t,s,l)?Ms(t,s,l):new Date(NaN)}return null}function X1(e){var t,r,n;if(t=$e.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Cn(r)?r%24*kn:NaN;if(t=$e.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Cn(r,n)?r%24*kn+n*Ds:NaN;if(t=$e.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Cn(r,n,a)?r%24*kn+n*Ds+a*1e3:NaN}return null}function Ms(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,s=t*7+r+1-a;return n.setUTCDate(n.getUTCDate()+s),n}var J1=[31,28,31,30,31,30,31,31,30,31,30,31],Q1=[31,29,31,30,31,30,31,31,30,31,30,31];function Ri(e){return e%400===0||e%4===0&&e%100!==0}function ks(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=Ri(e);if(n&&r>Q1[t]||!n&&r>J1[t])return!1}return!0}function ew(e,t){if(t<1)return!1;var r=Ri(e);return!(r&&t>366||!r&&t>365)}function Cs(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Cn(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}function ye(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Hr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hr=function(r){return typeof r}:Hr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hr(e)}function at(e){ye(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Hr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function nr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var tw={};function ha(){return tw}function St(e,t){var r,n,a,s,i,o,l,u;ye(1,arguments);var c=ha(),f=nr((r=(n=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(o=i.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=at(e),h=v.getDay(),g=(h<f?7:0)+h-f;return v.setDate(v.getDate()-g),v.setHours(0,0,0,0),v}function Os(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var rw=6048e5;function nw(e,t,r){ye(2,arguments);var n=St(e,r),a=St(t,r),s=n.getTime()-Os(n),i=a.getTime()-Os(a);return Math.round((s-i)/rw)}function aw(e){ye(1,arguments);var t=at(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function sw(e){ye(1,arguments);var t=at(e);return t.setDate(1),t.setHours(0,0,0,0),t}function iw(e,t){return ye(1,arguments),nw(aw(e),sw(e),t)+1}function ow(e,t){var r,n,a,s,i,o,l,u;ye(1,arguments);var c=at(e),f=c.getFullYear(),v=ha(),h=nr((r=(n=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(o=i.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&a!==void 0?a:v.firstWeekContainsDate)!==null&&n!==void 0?n:(l=v.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setFullYear(f+1,0,h),g.setHours(0,0,0,0);var C=St(g,t),$=new Date(0);$.setFullYear(f,0,h),$.setHours(0,0,0,0);var y=St($,t);return c.getTime()>=C.getTime()?f+1:c.getTime()>=y.getTime()?f:f-1}function lw(e,t){var r,n,a,s,i,o,l,u;ye(1,arguments);var c=ha(),f=nr((r=(n=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(o=i.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),v=ow(e,t),h=new Date(0);h.setFullYear(v,0,f),h.setHours(0,0,0,0);var g=St(h,t);return g}var uw=6048e5;function cw(e,t){ye(1,arguments);var r=at(e),n=St(r,t).getTime()-lw(r,t).getTime();return Math.round(n/uw)+1}function Xr(e){return ye(1,arguments),St(e,{weekStartsOn:1})}function dw(e){ye(1,arguments);var t=at(e),r=t.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var a=Xr(n),s=new Date(0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);var i=Xr(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function fw(e){ye(1,arguments);var t=dw(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Xr(r);return n}var hw=6048e5;function vw(e){ye(1,arguments);var t=at(e),r=Xr(t).getTime()-fw(t).getTime();return Math.round(r/hw)+1}function _e(e,t){ye(2,arguments);var r=at(e),n=nr(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Jr(e,t){ye(2,arguments);var r=at(e),n=nr(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+n+1,0);var i=s.getDate();return a>=i?s:(r.setFullYear(s.getFullYear(),s.getMonth(),a),r)}function Ps(e,t){ye(2,arguments);var r=nr(t);return Jr(e,r*12)}const pw={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function mw({monthComps:e,prevMonthComps:t,nextMonthComps:r},n){const a=[],{firstDayOfWeek:s,firstWeekday:i,isoWeeknumbers:o,weeknumbers:l,numDays:u,numWeeks:c}=e,f=i+(i<s?ge:0)-s;let v=!0,h=!1,g=!1,C=0;const $=new Intl.DateTimeFormat(n.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let y=t.numDays-f+1,I=t.numDays-y+1,R=Math.floor((y-1)/ge+1),O=1,S=t.numWeeks,N=1,T=t.month,F=t.year;const W=new Date,V=W.getDate(),z=W.getMonth()+1,Y=W.getFullYear();for(let j=1;j<=l0;j++){for(let Z=1,L=s;Z<=ge;Z++,L+=L===ge?1-ge:1){v&&L===i&&(y=1,I=e.numDays,R=Math.floor((y-1)/ge+1),O=Math.floor((u-y)/ge+1),S=1,N=c,T=e.month,F=e.year,v=!1,h=!0);const q=n.getDateFromParams(F,T,y,0,0,0,0),Q=n.getDateFromParams(F,T,y,12,0,0,0),fe=n.getDateFromParams(F,T,y,23,59,59,999),ae=q,k=`${J(F,4)}-${J(T,2)}-${J(y,2)}`,K=Z,A=ge-Z,ue=l[j-1],X=o[j-1],ce=y===V&&T===z&&F===Y,ve=h&&y===1,de=h&&y===u,pe=j===1,Ce=j===c,Xe=Z===1,Fe=Z===ge,Te=Xi(F,T,y);a.push({locale:n,id:k,position:++C,label:y.toString(),ariaLabel:$.format(new Date(F,T-1,y)),day:y,dayFromEnd:I,weekday:L,weekdayPosition:K,weekdayPositionFromEnd:A,weekdayOrdinal:R,weekdayOrdinalFromEnd:O,week:S,weekFromEnd:N,weekPosition:j,weeknumber:ue,isoWeeknumber:X,month:T,year:F,date:ae,startDate:q,endDate:fe,noonDate:Q,dayIndex:Te,isToday:ce,isFirstDay:ve,isLastDay:de,isDisabled:!h,isFocusable:!h,isFocused:!1,inMonth:h,inPrevMonth:v,inNextMonth:g,onTop:pe,onBottom:Ce,onLeft:Xe,onRight:Fe,classes:[`id-${k}`,`day-${y}`,`day-from-end-${I}`,`weekday-${L}`,`weekday-position-${K}`,`weekday-ordinal-${R}`,`weekday-ordinal-from-end-${O}`,`week-${S}`,`week-from-end-${N}`,{"is-today":ce,"is-first-day":ve,"is-last-day":de,"in-month":h,"in-prev-month":v,"in-next-month":g,"on-top":pe,"on-bottom":Ce,"on-left":Xe,"on-right":Fe}]}),h&&de?(h=!1,g=!0,y=1,I=u,R=1,O=Math.floor((u-y)/ge+1),S=1,N=r.numWeeks,T=r.month,F=r.year):(y++,I--,R=Math.floor((y-1)/ge+1),O=Math.floor((u-y)/ge+1))}S++,N--}return a}function gw(e,t,r,n){const a=e.reduce((s,i,o)=>{const l=Math.floor(o/7);let u=s[l];return u||(u={id:`week-${l+1}`,title:"",week:i.week,weekPosition:i.weekPosition,weeknumber:i.weeknumber,isoWeeknumber:i.isoWeeknumber,weeknumberDisplay:t?i.weeknumber:r?i.isoWeeknumber:void 0,days:[]},s[l]=u),u.days.push(i),s},Array(e.length/ge));return a.forEach(s=>{const i=s.days[0],o=s.days[s.days.length-1];i.month===o.month?s.title=`${n.formatDate(i.date,"MMMM YYYY")}`:i.year===o.year?s.title=`${n.formatDate(i.date,"MMM")} - ${n.formatDate(o.date,"MMM YYYY")}`:s.title=`${n.formatDate(i.date,"MMM YYYY")} - ${n.formatDate(o.date,"MMM YYYY")}`}),a}function yw(e,t){return e.days.map(r=>({label:t.formatDate(r.date,t.masks.weekdays),weekday:r.weekday}))}function bw(e,t){return`${t}.${J(e,2)}`}function ji(e,t,r){return Ni(r.getDateParts(r.toDate(e)),pw[t])}function Hi({day:e,week:t,month:r,year:n},a,s,i){if(s==="daily"&&e){const o=new Date(n,r-1,e),l=_e(o,a);return{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear()}}else if(s==="weekly"&&t){const l=i.getMonthParts(r,n).firstDayOfMonth,u=_e(l,(t-1+a)*7),c=i.getDateParts(u);return{week:c.week,month:c.month,year:c.year}}else{const o=new Date(n,r-1,1),l=Jr(o,a);return{month:l.getMonth()+1,year:l.getFullYear()}}}function ze(e){return e!=null&&e.month!=null&&e.year!=null}function Fn(e,t){return!ze(e)||!ze(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function Qr(e,t){return!ze(e)||!ze(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function ww(e,t,r){return(e||!1)&&!Fn(e,t)&&!Qr(e,r)}function _w(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function $w(e,t,r,n){if(!ze(e)||!ze(t))return[];const a=[];for(;!Qr(e,t);)a.push(e),e=Hi(e,1,r,n);return a}function Wi(e){const{day:t,week:r,month:n,year:a}=e;let s=`${a}-${J(n,2)}`;return r&&(s=`${s}-w${r}`),t&&(s=`${s}-${J(t,2)}`),s}function Dw(e,t){const{month:r,year:n,showWeeknumbers:a,showIsoWeeknumbers:s}=e,i=new Date(n,r-1,15),o=t.getMonthParts(r,n),l=t.getPrevMonthParts(r,n),u=t.getNextMonthParts(r,n),c=mw({monthComps:o,prevMonthComps:l,nextMonthComps:u},t),f=gw(c,a,s,t),v=yw(f[0],t);return{id:Wi(e),month:r,year:n,monthTitle:t.formatDate(i,t.masks.title),shortMonthLabel:t.formatDate(i,"MMM"),monthLabel:t.formatDate(i,"MMMM"),shortYearLabel:n.toString().substring(2),yearLabel:n.toString(),monthComps:o,prevMonthComps:l,nextMonthComps:u,days:c,weeks:f,weekdays:v}}function Mw(e,t){const{day:r,week:n,view:a,trimWeeks:s}=e,i={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let o=i.days.find(u=>u.inMonth);r?o=i.days.find(u=>u.day===r&&u.inMonth)||o:n&&(o=i.days.find(u=>u.week===n&&u.inMonth));const l=i.weeks[o.week-1];i.viewWeeks=[l],i.viewDays=[o],i.week=o.week,i.weekTitle=l.title,i.day=o.day,i.dayTitle=o.ariaLabel,i.title=i.dayTitle;break}case"weekly":{i.week=n||1;const o=i.weeks[i.week-1];i.viewWeeks=[o],i.viewDays=o.days,i.weekTitle=o.title,i.title=i.weekTitle;break}default:{i.title=i.monthTitle,i.viewWeeks=i.weeks.slice(0,s?i.monthComps.numWeeks:void 0),i.viewDays=i.days;break}}return i}class Ss{constructor(t,r,n){x(this,"keys",[]),x(this,"store",{}),this.size=t,this.createKey=r,this.createItem=n}get(...t){const r=this.createKey(...t);return this.store[r]}getOrSet(...t){const r=this.createKey(...t);if(this.store[r])return this.store[r];const n=this.createItem(...t);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(r),this.store[r]=n,n}}class Wt{constructor(t,r=new en){x(this,"order"),x(this,"locale"),x(this,"start",null),x(this,"end",null),x(this,"repeat",null);var n;this.locale=r;const{start:a,end:s,span:i,order:o,repeat:l}=t;Ht(a)&&(this.start=r.getDateParts(a)),Ht(s)?this.end=r.getDateParts(s):this.start!=null&&i&&(this.end=r.getDateParts(_e(this.start.date,i-1))),this.order=o??0,l&&(this.repeat=new tn({from:(n=this.start)==null?void 0:n.date,...l},{locale:this.locale}))}static fromMany(t,r){return(Ee(t)?t:[t]).filter(n=>n).map(n=>Wt.from(n,r))}static from(t,r){if(t instanceof Wt)return t;const n={start:null,end:null};return t!=null&&(Ee(t)?(n.start=t[0]??null,n.end=t[1]??null):tt(t)?Object.assign(n,t):(n.start=t,n.end=t)),n.start!=null&&(n.start=new Date(n.start)),n.end!=null&&(n.end=new Date(n.end)),new Wt(n,r)}get opts(){const{order:t,locale:r}=this;return{order:t,locale:r}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:r}=this;return t&&r&&t.year===r.year&&t.month===r.month&&t.day===r.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var r,n;return((r=this.start)==null?void 0:r.dayIndex)===t.dayIndex||!!((n=this.repeat)!=null&&n.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var r,n;return this.intersectsDayRange(((r=t.start)==null?void 0:r.dayIndex)??-1/0,((n=t.end)==null?void 0:n.dayIndex)??1/0)}intersectsDayRange(t,r){return!(this.start&&this.start.dayIndex>r||this.end&&this.end.dayIndex<t)}}class kw{constructor(){x(this,"records",{})}render(t,r,n){var a,s,i,o;let l=null;const u=n[0].dayIndex,c=n[n.length-1].dayIndex;return r.hasRepeat?n.forEach(f=>{var v,h;if(r.startsOnDay(f)){const g=r.daySpan<1/0?r.daySpan:1;l={startDay:f.dayIndex,startTime:((v=r.start)==null?void 0:v.time)??0,endDay:f.dayIndex+g-1,endTime:((h=r.end)==null?void 0:h.time)??Wr},this.getRangeRecords(t).push(l)}}):r.intersectsDayRange(u,c)&&(l={startDay:((a=r.start)==null?void 0:a.dayIndex)??-1/0,startTime:((s=r.start)==null?void 0:s.time)??-1/0,endDay:((i=r.end)==null?void 0:i.dayIndex)??1/0,endTime:((o=r.end)==null?void 0:o.time)??1/0},this.getRangeRecords(t).push(l)),l}getRangeRecords(t){let r=this.records[t.key];return r||(r={ranges:[],data:t},this.records[t.key]=r),r.ranges}getCell(t,r){return this.getCells(r).find(s=>s.data.key===t)}cellExists(t,r){const n=this.records[t];return n==null?!1:n.ranges.some(a=>a.startDay<=r&&a.endDay>=r)}getCells(t){const r=Object.values(this.records),n=[],{dayIndex:a}=t;return r.forEach(({data:s,ranges:i})=>{i.filter(o=>o.startDay<=a&&o.endDay>=a).forEach(o=>{const l=a===o.startDay,u=a===o.endDay,c=l?o.startTime:0,f=new Date(t.startDate.getTime()+c),v=u?o.endTime:Wr,h=new Date(t.endDate.getTime()+v),g=c===0&&v===Wr,C=s.order||0;n.push({...o,data:s,onStart:l,onEnd:u,startTime:c,startDate:f,endTime:v,endDate:h,allDay:g,order:C})})}),n.sort((s,i)=>s.order-i.order),n}}const rt={ar:{dow:7,L:"D/M/YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};rt.en=rt["en-US"];rt.es=rt["es-ES"];rt.no=rt.nb;rt.zh=rt["zh-CN"];const Cw=Object.entries(rt).reduce((e,[t,{dow:r,L:n}])=>(e[t]={id:t,firstDayOfWeek:r,masks:{L:n}},e),{}),Ow="MMMM YYYY",Pw="W",Sw="MMM",Tw="h A",Yw=["L","YYYY-MM-DD","YYYY/MM/DD"],Iw=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],xw=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],Aw=["h:mm A"],Ew=["HH:mm"],Lw="WWW, MMM D, YYYY",Nw=["L","YYYY-MM-DD","YYYY/MM/DD"],Fw="iso",Rw="YYYY-MM-DDTHH:mm:ss.SSSZ",jw={title:Ow,weekdays:Pw,navMonths:Sw,hours:Tw,input:Yw,inputDateTime:Iw,inputDateTime24hr:xw,inputTime:Aw,inputTime24hr:Ew,dayPopover:Lw,data:Nw,model:Fw,iso:Rw},Hw=300,Ww=60,Bw=80,Vw={maxSwipeTime:Hw,minHorizontalSwipeDistance:Ww,maxVerticalSwipeDistance:Bw},zw={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:Vw,masks:jw,locales:Cw,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Rn=rn(zw),Uw=m(()=>hy(Rn.locales,e=>(e.masks=$r(e.masks,Rn.masks),e))),mt=e=>typeof window<"u"&&Ei(window.__vcalendar__,e)?Mt(window.__vcalendar__,e):Mt(Rn,e),Kw=12,Gw=5;function qw(e,t){const r=new Intl.DateTimeFormat().resolvedOptions().locale;let n;Ve(e)?n=e:Ei(e,"id")&&(n=e.id),n=(n||r).toLowerCase();const a=Object.keys(t),s=l=>a.find(u=>u.toLowerCase()===l);n=s(n)||s(n.substring(0,2))||r;const i={...t["en-IE"],...t[n],id:n,monthCacheSize:Kw,pageCacheSize:Gw};return tt(e)?$r(e,i):i}class en{constructor(t=void 0,r){x(this,"id"),x(this,"daysInWeek"),x(this,"firstDayOfWeek"),x(this,"masks"),x(this,"timezone"),x(this,"hourLabels"),x(this,"dayNames"),x(this,"dayNamesShort"),x(this,"dayNamesShorter"),x(this,"dayNamesNarrow"),x(this,"monthNames"),x(this,"monthNamesShort"),x(this,"relativeTimeNames"),x(this,"amPm",["am","pm"]),x(this,"monthCache"),x(this,"pageCache");const{id:n,firstDayOfWeek:a,masks:s,monthCacheSize:i,pageCacheSize:o}=qw(t,Uw.value);this.monthCache=new Ss(i,g0,y0),this.pageCache=new Ss(o,Wi,Dw),this.id=n,this.daysInWeek=ge,this.firstDayOfWeek=T1(a,1,ge),this.masks=s,this.timezone=r||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=On("long",this.id),this.dayNamesShort=On("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(l=>l.substring(0,2)),this.dayNamesNarrow=On("narrow",this.id),this.monthNames=Es("long",this.id),this.monthNamesShort=Es("short",this.id),this.relativeTimeNames=_0(this.id)}formatDate(t,r){return C0(t,r,this)}parseDate(t,r){return Ls(t,r,this)}toDate(t,r={}){const n=new Date(NaN);let a=n;const{fillDate:s,mask:i,patch:o,rules:l}=r;if(je(t)?(r.type="number",a=new Date(+t)):Ve(t)?(r.type="string",a=t?Ls(t,i||"iso",this):n):Ht(t)?(r.type="date",a=new Date(t.getTime())):va(t)&&(r.type="object",a=this.getDateFromParts(t)),a&&(o||l)){let u=this.getDateParts(a);if(o&&s!=null){const c=this.getDateParts(this.toDate(s));u=this.getDateParts(this.toDate({...c,...Ni(u,o0[o])}))}l&&(u=k0(u,l)),a=this.getDateFromParts(u)}return a||n}toDateOrNull(t,r={}){const n=this.toDate(t,r);return isNaN(n.getTime())?null:n}fromDate(t,{type:r,mask:n}={}){switch(r){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,n||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return Wt.from(t,this)}ranges(t){return Wt.fromMany(t,this)}getDateParts(t){return m0(t,this)}getDateFromParts(t){return Qi(t,this.timezone)}getDateFromParams(t,r,n,a,s,i,o){return this.getDateFromParts({year:t,month:r,day:n,hours:a,minutes:s,seconds:i,milliseconds:o})}getPage(t){const r=this.pageCache.getOrSet(t,this);return Mw(t,r)}getMonthParts(t,r){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(t,r,n)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,r){return t===1?this.getMonthParts(12,r-1):this.getMonthParts(t-1,r)}getNextMonthParts(t,r){return t===12?this.getMonthParts(1,r+1):this.getMonthParts(t+1,r)}getHourLabels(){return w0().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var Ft=(e=>(e.Any="any",e.All="all",e))(Ft||{}),Bi=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Bi||{}),Vi=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Vi||{}),zi=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(zi||{});class Zw{constructor(t,r,n){x(this,"validated",!0),this.type=t,this.interval=r,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:r}=t;switch(this.type){case"days":return pa(this.from.date,r)%this.interval===0;case"weeks":return v0(this.from.date,r)%this.interval===0;case"months":return p0(this.from.date,r)%this.interval===0;case"years":return Ji(this.from.date,r)%this.interval===0;default:return!1}}}class ar{constructor(t,r,n,a){x(this,"components",[]),this.type=t,this.validator=n,this.getter=a,this.components=this.normalizeComponents(r)}static create(t,r){switch(t){case"days":return new Xw(r);case"weekdays":return new Jw(r);case"weeks":return new Qw(r);case"months":return new e0(r);case"years":return new t0(r)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Ee(t))return[];const r=[];return t.forEach(n=>{if(!this.validator(n)){console.error(`Component value ${n} in invalid for "${this.type}" rule. This rule will be skipped.`);return}r.push(n)}),r}passes(t){return this.getter(t).some(a=>this.components.includes(a))}}class Xw extends ar{constructor(t){super("days",t,a0,({day:r,dayFromEnd:n})=>[r,-n])}}class Jw extends ar{constructor(t){super("weekdays",t,jn,({weekday:r})=>[r])}}class Qw extends ar{constructor(t){super("weeks",t,s0,({week:r,weekFromEnd:n})=>[r,-n])}}class e0 extends ar{constructor(t){super("months",t,i0,({month:r})=>[r])}}class t0 extends ar{constructor(t){super("years",t,je,({year:r})=>[r])}}class r0{constructor(t,r){x(this,"components"),this.type=t,this.components=this.normalizeComponents(r)}normalizeArrayConfig(t){const r=[];return t.forEach((n,a)=>{if(je(n)){if(a===0)return;if(!Ts(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!jn(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],n])}else Ee(n)&&r.push(...this.normalizeArrayConfig(n))}),r}normalizeComponents(t){const r=[];return t.forEach((n,a)=>{if(je(n)){if(a===0)return;if(!Ts(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!jn(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],n])}else Ee(n)&&r.push(...this.normalizeArrayConfig(n))}),r}passes(t){const{weekday:r,weekdayOrdinal:n,weekdayOrdinalFromEnd:a}=t;return this.components.some(([s,i])=>(s===n||s===-a)&&r===i)}}class n0{constructor(t){x(this,"type","function"),x(this,"validated",!0),this.fn=t,Tt(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class tn{constructor(t,r={},n){x(this,"validated",!0),x(this,"config"),x(this,"type",Ft.Any),x(this,"from"),x(this,"until"),x(this,"rules",[]),x(this,"locale",new en),this.parent=n,r.locale&&(this.locale=r.locale),this.config=t,Tt(t)?(this.type=Ft.All,this.rules=[new n0(t)]):Ee(t)?(this.type=Ft.Any,this.rules=t.map(a=>new tn(a,r,this))):tt(t)?(this.type=Ft.All,this.from=t.from?this.locale.getDateParts(t.from):n==null?void 0:n.from,this.until=t.until?this.locale.getDateParts(t.until):n==null?void 0:n.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const r=[];if(t.every&&(Ve(t.every)&&(t.every=[1,`${t.every}s`]),Ee(t.every))){const[n=1,a=Bi.Days]=t.every;r.push(new Zw(a,n,this.from))}return Object.values(Vi).forEach(n=>{n in t&&r.push(ar.create(n,t[n]))}),Object.values(zi).forEach(n=>{n in t&&r.push(new r0(n,t[n]))}),t.on!=null&&(Ee(t.on)||(t.on=[t.on]),r.push(new tn(t.on,{locale:this.locale},this.parent))),r}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===Ft.Any?this.rules.some(r=>r.passes(t)):this.rules.every(r=>r.passes(t)):!0}}function a0(e){return je(e)?e>=1&&e<=31:!1}function jn(e){return je(e)?e>=1&&e<=7:!1}function s0(e){return je(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function i0(e){return je(e)?e>=1&&e<=12:!1}function Ts(e){return!(!je(e)||e<-5||e>5||e===0)}const o0={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},ge=7,l0=6,Ui=1e3,Ki=Ui*60,Gi=Ki*60,Wr=Gi*24,u0=[31,28,31,30,31,30,31,31,30,31,30,31],c0=["L","iso"],vr={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},qi=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d0=/\[([^]*?)\]/gm,Ys={D(e){return e.day},DD(e){return J(e.day,2)},d(e){return e.weekday-1},dd(e){return J(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return J(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return J(e.year,4)},h(e){return e.hours%12||12},hh(e){return J(e.hours%12||12,2)},H(e){return e.hours},HH(e){return J(e.hours,2)},m(e){return e.minutes},mm(e){return J(e.minutes,2)},s(e){return e.seconds},ss(e){return J(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return J(Math.round(e.milliseconds/10),2)},SSS(e){return J(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${J(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${J(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${J(Math.floor(Math.abs(t)/60),2)}:${J(Math.abs(t)%60,2)}`}},ft=/\d\d?/,f0=/\d{3}/,h0=/\d{4}/,dr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Is=()=>{},xs=e=>(t,r,n)=>{const a=n[e].indexOf(r.charAt(0).toUpperCase()+r.substr(1).toLowerCase());~a&&(t.month=a)},te={D:[ft,(e,t)=>{e.day=t}],Do:[new RegExp(ft.source+dr.source),(e,t)=>{e.day=parseInt(t,10)}],d:[ft,Is],W:[dr,Is],M:[ft,(e,t)=>{e.month=t-1}],MMM:[dr,xs("monthNamesShort")],MMMM:[dr,xs("monthNames")],YY:[ft,(e,t)=>{const n=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[h0,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[f0,(e,t)=>{e.milliseconds=t}],h:[ft,(e,t)=>{e.hours=t}],m:[ft,(e,t)=>{e.minutes=t}],s:[ft,(e,t)=>{e.seconds=t}],a:[dr,(e,t,r)=>{const n=t.toLowerCase();n===r.amPm[0]?e.isPm=!1:n===r.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const r=`${t}`.match(/([+-]|\d\d)/gi);if(r){const n=+r[1]*60+parseInt(r[2],10);e.timezoneOffset=r[0]==="+"?n:-n}}]};te.DD=te.D;te.dd=te.d;te.WWWW=te.WWW=te.WW=te.W;te.MM=te.M;te.mm=te.m;te.hh=te.H=te.HH=te.h;te.ss=te.s;te.A=te.a;te.ZZZZ=te.ZZZ=te.ZZ=te.Z;function Zi(e,t){return(Je(e)&&e||[Ve(e)&&e||"YYYY-MM-DD"]).map(r=>c0.reduce((n,a)=>n.replace(a,t.masks[a]||""),r))}function va(e){return tt(e)&&"year"in e&&"month"in e&&"day"in e}function As(e,t=1){const r=e.getDay()+1,n=r>=t?t-r:-(7-(t-r));return _e(e,n)}function Xi(e,t,r){const n=Date.UTC(e,t-1,r);return pa(new Date(0),new Date(n))}function pa(e,t){return Math.round((t.getTime()-e.getTime())/Wr)}function v0(e,t){return Math.ceil(pa(As(e),As(t))/7)}function Ji(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function p0(e,t){return Ji(e,t)*12+(t.getMonth()-e.getMonth())}function Qi(e,t=""){const r=new Date,{year:n=r.getFullYear(),month:a=r.getMonth()+1,day:s=r.getDate(),hours:i=0,minutes:o=0,seconds:l=0,milliseconds:u=0}=e;if(t){const c=`${J(n,4)}-${J(a,2)}-${J(s,2)}T${J(i,2)}:${J(o,2)}:${J(l,2)}.${J(u,3)}`;return K1(c,{timeZone:t})}return new Date(n,a-1,s,i,o,l,u)}function m0(e,t){let r=new Date(e.getTime());t.timezone&&(r=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),r.setMilliseconds(e.getMilliseconds()));const n=r.getMilliseconds(),a=r.getSeconds(),s=r.getMinutes(),i=r.getHours(),o=n+a*Ui+s*Ki+i*Gi,l=r.getMonth()+1,u=r.getFullYear(),c=t.getMonthParts(l,u),f=r.getDate(),v=c.numDays-f+1,h=r.getDay()+1,g=Math.floor((f-1)/7+1),C=Math.floor((c.numDays-f)/7+1),$=Math.ceil((f+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),y=c.numWeeks-$+1,I=c.weeknumbers[$],R=Xi(u,l,f);return{milliseconds:n,seconds:a,minutes:s,hours:i,time:o,day:f,dayFromEnd:v,weekday:h,weekdayOrdinal:g,weekdayOrdinalFromEnd:C,week:$,weekFromEnd:y,weeknumber:I,month:l,year:u,date:r,dateTime:r.getTime(),dayIndex:R,timezoneOffset:0,isValid:!0}}function g0(e,t,r){return`${t}-${e}-${r}`}function y0(e,t,r){const n=t%4===0&&t%100!==0||t%400===0,a=new Date(t,e-1,1),s=a.getDay()+1,i=e===2&&n?29:u0[e-1],o=r-1,l=iw(a,{weekStartsOn:o}),u=[],c=[];for(let f=0;f<l;f++){const v=_e(a,f*7);u.push(cw(v,{weekStartsOn:o})),c.push(vw(v))}return{firstDayOfWeek:r,firstDayOfMonth:a,inLeapYear:n,firstWeekday:s,numDays:i,numWeeks:l,month:e,year:t,weeknumbers:u,isoWeeknumbers:c}}function b0(){const e=[];for(let a=0;a<ge;a++)e.push(Qi({year:2020,month:1,day:5+a,hours:12}));return e}function On(e,t=void 0){const r=new Intl.DateTimeFormat(t,{weekday:e});return b0().map(n=>r.format(n))}function w0(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function _0(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],r=new Intl.RelativeTimeFormat(e);return t.reduce((n,a)=>{const s=r.formatToParts(100,a);return n[a]=s[1].unit,n},{})}function eo(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Es(e,t=void 0){const r=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return eo().map(n=>r.format(n))}function $0(e,t,r){return je(t)?t===e:Ee(t)?t.includes(e):Tt(t)?t(e,r):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function pr(e,t,r){const n=[],[a,s,i]=t;for(let o=a;o<=s;o++)(r==null||$0(o,r,e))&&n.push({value:o,label:J(o,i)});return n}function D0(e,t){return{milliseconds:pr(e,vr.milliseconds,t.milliseconds),seconds:pr(e,vr.seconds,t.seconds),minutes:pr(e,vr.minutes,t.minutes),hours:pr(e,vr.hours,t.hours)}}function M0(e,t,r,n){const s=pr(e,t,n).reduce((i,o)=>{if(o.disabled)return i;if(isNaN(i))return o.value;const l=Math.abs(i-r);return Math.abs(o.value-r)<l?o.value:i},NaN);return isNaN(s)?r:s}function k0(e,t){const r={...e};return Object.entries(t).forEach(([n,a])=>{const s=vr[n],i=e[n];r[n]=M0(e,s,i,a)}),r}function Ls(e,t,r){return Zi(t,r).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let s=e;if(s.length>1e3)return!1;let i=!0;const o={};if(a.replace(qi,c=>{if(te[c]){const f=te[c],v=s.search(f[0]);~v?s.replace(f[0],h=>(f[1](o,h,r),s=s.substr(v+h.length),h)):i=!1}return te[c]?"":c.slice(1,c.length-1)}),!i)return!1;const l=new Date;o.hours!=null&&(o.isPm===!0&&+o.hours!=12?o.hours=+o.hours+12:o.isPm===!1&&+o.hours==12&&(o.hours=0));let u;return o.timezoneOffset!=null?(o.minutes=+(o.minutes||0)-+o.timezoneOffset,u=new Date(Date.UTC(o.year||l.getFullYear(),o.month||0,o.day||1,o.hours||0,o.minutes||0,o.seconds||0,o.milliseconds||0))):u=r.getDateFromParts({year:o.year||l.getFullYear(),month:(o.month||0)+1,day:o.day||1,hours:o.hours||0,minutes:o.minutes||0,seconds:o.seconds||0,milliseconds:o.milliseconds||0}),u}).find(a=>a)||new Date(e)}function C0(e,t,r){if(e==null)return"";let n=Zi(t,r)[0];/Z$/.test(n)&&(r.timezone="utc");const a=[];n=n.replace(d0,(i,o)=>(a.push(o),"??"));const s=r.getDateParts(e);return n=n.replace(qi,i=>i in Ys?Ys[i](s,r):i.slice(1,i.length-1)),n.replace(/\?\?/g,()=>a.shift())}let O0=0;class to{constructor(t,r,n){x(this,"key",""),x(this,"hashcode",""),x(this,"highlight",null),x(this,"content",null),x(this,"dot",null),x(this,"bar",null),x(this,"event",null),x(this,"popover",null),x(this,"customData",null),x(this,"ranges"),x(this,"hasRanges",!1),x(this,"order",0),x(this,"pinPage",!1),x(this,"maxRepeatSpan",0),x(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++O0),this.locale=n,r.normalizeGlyphs(this),this.ranges=n.ranges(a??[]),this.hasRanges=!!Je(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,i)=>Math.max(s,i),0)}intersectsRange({start:t,end:r}){if(t==null||r==null)return!1;const n=this.ranges.filter(i=>!i.hasRepeat);for(const i of n)if(i.intersectsDayRange(t.dayIndex,r.dayIndex))return!0;const a=this.ranges.filter(i=>i.hasRepeat);if(!a.length)return!1;let s=t;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(_e(s.date,-this.maxRepeatSpan)));s.dayIndex<=r.dayIndex;){for(const i of a)if(i.startsOnDay(s))return!0;s=this.locale.getDateParts(_e(s.date,1))}return!1}}function Hn(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Dr(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function ro(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function no(e){const{visibility:t}=e,r=t==="click",n=t==="hover",a=t==="hover-focus",s=t==="focus";e.autoHide=!r;let i=!1,o=!1;const l=g=>{r&&(ro({...e,target:e.target||g.currentTarget}),g.stopPropagation())},u=g=>{i||(i=!0,(n||a)&&Hn({...e,target:e.target||g.currentTarget}))},c=()=>{i&&(i=!1,(n||a&&!o)&&Dr(e))},f=g=>{o||(o=!0,(s||a)&&Hn({...e,target:e.target||g.currentTarget}))},v=g=>{o&&!jr(g.currentTarget,g.relatedTarget)&&(o=!1,(s||a&&!i)&&Dr(e))},h={};switch(e.visibility){case"click":h.click=l;break;case"hover":h.mousemove=u,h.mouseleave=c;break;case"focus":h.focusin=f,h.focusout=v;break;case"hover-focus":h.mousemove=u,h.mouseleave=c,h.focusin=f,h.focusout=v;break}return h}const Ns=e=>{const t=Gr(e);if(t==null)return;const r=t.popoverHandlers;!r||!r.length||(r.forEach(n=>n()),delete t.popoverHandlers)},Fs=(e,t)=>{const r=Gr(e);if(r==null)return;const n=[],a=no(t);Object.entries(a).forEach(([s,i])=>{n.push(vt(r,s,i))}),r.popoverHandlers=n},ao={mounted(e,t){const{value:r}=t;r&&Fs(e,r)},updated(e,t){const{oldValue:r,value:n}=t,a=r==null?void 0:r.visibility,s=n==null?void 0:n.visibility;a!==s&&(a&&(Ns(e),s||Dr(r)),s&&Fs(e,n))},unmounted(e){Ns(e)}},P0=(e,t,{maxSwipeTime:r,minHorizontalSwipeDistance:n,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Tt(t))return null;let s=0,i=0,o=null,l=!1;function u(f){const v=f.changedTouches[0];s=v.screenX,i=v.screenY,o=new Date().getTime(),l=!0}function c(f){if(!l||!o)return;l=!1;const v=f.changedTouches[0],h=v.screenX-s,g=v.screenY-i;if(new Date().getTime()-o<r&&Math.abs(h)>=n&&Math.abs(g)<=a){const $={toLeft:!1,toRight:!1};h<0?$.toLeft=!0:$.toRight=!0,t($)}}return vt(e,"touchstart",u,{passive:!0}),vt(e,"touchend",c,{passive:!0}),()=>{ht(e,"touchstart",u),ht(e,"touchend",c)}},Br={},S0=(e,t=10)=>{Br[e]=Date.now()+t},T0=(e,t)=>{if(e in Br){const r=Br[e];if(Date.now()<r)return;delete Br[e]}t()};function so(){return typeof window<"u"}function Y0(e){return so()&&e in window}function I0(e){const t=se(!1),r=m(()=>t.value?"dark":"light");let n,a;function s(h){t.value=h.matches}function i(){Y0("matchMedia")&&(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",s),t.value=n.matches)}function o(){const{selector:h=":root",darkClass:g="dark"}=e.value,C=document.querySelector(h);t.value=C.classList.contains(g)}function l(h){const{selector:g=":root",darkClass:C="dark"}=h;if(so()&&g&&C){const $=document.querySelector(g);$&&(a=new MutationObserver(o),a.observe($,{attributes:!0,attributeFilter:["class"]}),t.value=$.classList.contains(C))}}function u(){f();const h=typeof e.value;h==="string"&&e.value.toLowerCase()==="system"?i():h==="object"?l(e.value):t.value=!!e.value}const c=we(()=>e.value,()=>u(),{immediate:!0});function f(){n&&(n.removeEventListener("change",s),n=void 0),a&&(a.disconnect(),a=void 0)}function v(){f(),c()}return Bn(()=>v()),{isDark:t,displayMode:r,cleanup:v}}const x0=["base","start","end","startEnd"],A0=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],E0={base:{},start:{},end:{}};function ma(e,t,r=E0){let n=e,a={};t===!0||Ve(t)?(n=Ve(t)?t:n,a={...r}):tt(t)&&(ys(t,x0)?a={...t}:a={base:{...t},start:{...t},end:{...t}});const s=$r(a,{start:a.startEnd,end:a.startEnd},r);return Object.entries(s).forEach(([i,o])=>{let l=n;o===!0||Ve(o)?(l=Ve(o)?o:l,s[i]={color:l}):tt(o)&&(ys(o,A0)?s[i]={...o}:s[i]={}),$r(s[i],{color:l})}),s}class L0{constructor(){x(this,"type","highlight")}normalizeConfig(t,r){return ma(t,r,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:r,onEnd:n},a){const{key:s,highlight:i}=t;if(!i)return;const{highlights:o}=a,{base:l,start:u,end:c}=i;r&&n?o.push({...u,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]}):r?(o.push({...l,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${l.fillMode}`,l.class]}),o.push({...u,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})):n?(o.push({...l,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${l.fillMode}`,l.class]}),o.push({...c,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):o.push({...l,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})}}class ga{constructor(t,r){x(this,"type",""),x(this,"collectionType",""),this.type=t,this.collectionType=r}normalizeConfig(t,r){return ma(t,r)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:r,onEnd:n},a){const{key:s}=t,i=t[this.type];if(!s||!i)return;const o=a[this.collectionType],{base:l,start:u,end:c}=i;r?o.push({...u,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${u.color} vc-attr`,u.class]}):n?o.push({...c,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):o.push({...l,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${l.color} vc-attr`,l.class]})}}class N0 extends ga{constructor(){super("content","content")}normalizeConfig(t,r){return ma("base",r)}}class F0 extends ga{constructor(){super("dot","dots")}}class R0 extends ga{constructor(){super("bar","bars")}}class j0{constructor(t){x(this,"color"),x(this,"renderers",[new N0,new L0,new F0,new R0]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(r=>{const n=r.type;t[n]!=null&&(t[n]=r.normalizeConfig(this.color,t[n]))})}prepareRender(t={}){return this.renderers.forEach(r=>{r.prepareRender(t)}),t}render(t,r){this.renderers.forEach(n=>{n.render(t,r)})}}const io=Symbol("__vc_base_context__"),oo={color:{type:String,default:()=>mt("color")},isDark:{type:[Boolean,String,Object],default:()=>mt("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function lo(e){const t=m(()=>e.color??""),r=m(()=>e.isDark??!1),{displayMode:n}=I0(r),a=m(()=>new j0(t.value)),s=m(()=>{if(e.locale instanceof en)return e.locale;const v=tt(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new en(v,e.timezone)}),i=m(()=>s.value.masks),o=m(()=>e.minDate),l=m(()=>e.maxDate),u=m(()=>{const v=e.disabledDates?[...e.disabledDates]:[];return o.value!=null&&v.push({start:null,end:_e(s.value.toDate(o.value),-1)}),l.value!=null&&v.push({start:_e(s.value.toDate(l.value),1),end:null}),s.value.ranges(v)}),c=m(()=>new to({key:"disabled",dates:u.value,order:100},a.value,s.value)),f={color:t,isDark:r,displayMode:n,theme:a,locale:s,masks:i,minDate:o,maxDate:l,disabledDates:u,disabledAttribute:c};return kr(io,f),f}function H0(e){return Mr(io,()=>lo(e),!0)}function uo(e){return`__vc_slot_${e}__`}function co(e,t={}){Object.keys(e).forEach(r=>{kr(uo(t[r]??r),e[r])})}function fo(e){return Mr(uo(e),null)}const W0={...oo,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>mt("titlePosition")},navVisibility:{type:String,default:()=>mt("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},B0=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],ho=Symbol("__vc_calendar_context__");function V0(e,{slots:t,emit:r}){const n=se(null),a=se(null),s=se(new Date().getDate()),i=se(!1),o=se(Symbol()),l=se(Symbol()),u=se(e.view),c=se([]),f=se("");let v=null,h=null;co(t);const{theme:g,color:C,displayMode:$,locale:y,masks:I,minDate:R,maxDate:O,disabledAttribute:S,disabledDates:N}=H0(e),T=m(()=>e.rows*e.columns),F=m(()=>e.step||T.value),W=m(()=>Ai(c.value)??null),V=m(()=>Rt(c.value)??null),z=m(()=>e.minPage||(R.value?A(R.value):null)),Y=m(()=>e.maxPage||(O.value?A(O.value):null)),j=m(()=>e.navVisibility),Z=m(()=>!!e.showWeeknumbers),L=m(()=>!!e.showIsoWeeknumbers),q=m(()=>u.value==="monthly"),Q=m(()=>u.value==="weekly"),fe=m(()=>u.value==="daily"),ae=()=>{i.value=!0,r("transition-start")},k=()=>{i.value=!1,r("transition-end"),v&&(v.resolve(!0),v=null)},K=(_,d,b=u.value)=>Hi(_,d,b,y.value),A=_=>ji(_,u.value,y.value),ue=_=>{!S.value||!Ce.value||(_.isDisabled=Ce.value.cellExists(S.value.key,_.dayIndex))},X=_=>{_.isFocusable=_.inMonth&&_.day===s.value},ce=(_,d)=>{for(const b of _)for(const P of b.days)if(d(P)===!1)return},ve=m(()=>c.value.reduce((_,d)=>(_.push(...d.viewDays),_),[])),de=m(()=>{const _=[];return(e.attributes||[]).forEach((d,b)=>{!d||!d.dates||_.push(new to({...d,order:d.order||0},g.value,y.value))}),S.value&&_.push(S.value),_}),pe=m(()=>Je(de.value)),Ce=m(()=>{const _=new kw;return de.value.forEach(d=>{d.ranges.forEach(b=>{_.render(d,b,ve.value)})}),_}),Xe=m(()=>ve.value.reduce((_,d)=>(_[d.dayIndex]={day:d,cells:[]},_[d.dayIndex].cells.push(...Ce.value.getCells(d)),_),{})),Fe=(_,d)=>{const b=e.showWeeknumbers||e.showIsoWeeknumbers;return b==null?"":qg(b)?b?"left":"":b.startsWith("right")?d>1?"right":b:_>1?"left":b},Te=()=>{var _,d;if(!pe.value)return null;const b=de.value.find(oe=>oe.pinPage)||de.value[0];if(!b||!b.hasRanges)return null;const[P]=b.ranges,H=((_=P.start)==null?void 0:_.date)||((d=P.end)==null?void 0:d.date);return H?A(H):null},Ye=()=>{if(ze(W.value))return W.value;const _=Te();return ze(_)?_:A(new Date)},st=(_,d={})=>{const{view:b=u.value,position:P=1,force:H}=d,oe=P>0?1-P:-(T.value+P);let be=K(_,oe,b),Oe=K(be,T.value-1,b);return H||(Fn(be,z.value)?be=z.value:Qr(Oe,Y.value)&&(be=K(Y.value,1-T.value)),Oe=K(be,T.value-1)),{fromPage:be,toPage:Oe}},xt=(_,d,b="")=>{if(b==="none"||b==="fade")return b;if((_==null?void 0:_.view)!==(d==null?void 0:d.view))return"fade";const P=Qr(d,_),H=Fn(d,_);return!P&&!H?"fade":b==="slide-v"?H?"slide-down":"slide-up":H?"slide-right":"slide-left"},Be=(_={})=>new Promise((d,b)=>{const{position:P=1,force:H=!1,transition:oe}=_,be=ze(_.page)?_.page:Ye(),{fromPage:Oe}=st(be,{position:P,force:H}),Et=[];for(let Lt=0;Lt<T.value;Lt++){const yn=K(Oe,Lt),De=Lt+1,bn=Math.ceil(De/e.columns),xr=e.rows-bn+1,ir=De%e.columns||e.columns,or=e.columns-ir+1,Co=Fe(ir,or);Et.push(y.value.getPage({...yn,view:u.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:De,row:bn,rowFromEnd:xr,column:ir,columnFromEnd:or,showWeeknumbers:Z.value,showIsoWeeknumbers:L.value,weeknumberPosition:Co}))}f.value=xt(c.value[0],Et[0],oe),c.value=Et,f.value&&f.value!=="none"?v={resolve:d,reject:b}:d(!0)}),bt=_=>{const d=W.value??A(new Date);return K(d,_)},wt=(_,d={})=>{const b=ze(_)?_:A(_);return Object.assign(d,st(b,{...d,force:!0})),$w(d.fromPage,d.toPage,u.value,y.value).map(H=>ww(H,z.value,Y.value)).some(H=>H)},_t=(_,d={})=>wt(bt(_),d),Re=m(()=>_t(-F.value)),it=m(()=>_t(F.value)),ot=async(_,d={})=>!d.force&&!wt(_,d)?!1:(d.fromPage&&!_w(d.fromPage,W.value)&&(Dr({id:o.value,hideDelay:0}),d.view&&(S0("view",10),u.value=d.view),await Be({...d,page:d.fromPage,position:1,force:!0}),r("did-move",c.value)),!0),lt=(_,d={})=>ot(bt(_),d),ut=()=>lt(-F.value),ct=()=>lt(F.value),dt=_=>{const d=q.value?".in-month":"",b=`.id-${y.value.getDayId(_)}${d}`,P=`${b}.vc-focusable, ${b} .vc-focusable`,H=n.value;if(H){const oe=H.querySelector(P);if(oe)return oe.focus(),!0}return!1},$t=async(_,d={})=>dt(_)?!0:(await ot(_,d),dt(_)),At=(_,d)=>{s.value=_.day,r("dayclick",_,d)},pn=(_,d)=>{r("daymouseenter",_,d)},sr=(_,d)=>{r("daymouseleave",_,d)},mn=(_,d)=>{s.value=_.day,a.value=_,_.isFocused=!0,r("dayfocusin",_,d)},Sr=(_,d)=>{a.value=null,_.isFocused=!1,r("dayfocusout",_,d)},Tr=(_,d)=>{r("daykeydown",_,d);const b=_.noonDate;let P=null;switch(d.key){case"ArrowLeft":{P=_e(b,-1);break}case"ArrowRight":{P=_e(b,1);break}case"ArrowUp":{P=_e(b,-7);break}case"ArrowDown":{P=_e(b,7);break}case"Home":{P=_e(b,-_.weekdayPosition+1);break}case"End":{P=_e(b,_.weekdayPositionFromEnd);break}case"PageUp":{d.altKey?P=Ps(b,-1):P=Jr(b,-1);break}case"PageDown":{d.altKey?P=Ps(b,1):P=Jr(b,1);break}}P&&(d.preventDefault(),$t(P).catch())},gn=_=>{const d=a.value;d!=null&&Tr(d,_)},Yr=(_,d)=>{r("weeknumberclick",_,d)};Be({page:e.initialPage,position:e.initialPagePosition}),nn(()=>{!e.disablePageSwipe&&n.value&&(h=P0(n.value,({toLeft:_=!1,toRight:d=!1})=>{_?ct():d&&ut()},mt("touch")))}),Bn(()=>{c.value=[],h&&h()}),we(()=>y.value,()=>{Be()}),we(()=>T.value,()=>Be()),we(()=>e.view,()=>u.value=e.view),we(()=>u.value,()=>{T0("view",()=>{Be()}),r("update:view",u.value)}),we(()=>s.value,()=>{ce(c.value,_=>X(_))}),Ws(()=>{r("update:pages",c.value),ce(c.value,_=>{ue(_),X(_)})});const Ir={emit:r,containerRef:n,focusedDay:a,inTransition:i,navPopoverId:o,dayPopoverId:l,view:u,pages:c,transitionName:f,theme:g,color:C,displayMode:$,locale:y,masks:I,attributes:de,disabledAttribute:S,disabledDates:N,attributeContext:Ce,days:ve,dayCells:Xe,count:T,step:F,firstPage:W,lastPage:V,canMovePrev:Re,canMoveNext:it,minPage:z,maxPage:Y,isMonthly:q,isWeekly:Q,isDaily:fe,navVisibility:j,showWeeknumbers:Z,showIsoWeeknumbers:L,getDateAddress:A,canMove:wt,canMoveBy:_t,move:ot,moveBy:lt,movePrev:ut,moveNext:ct,onTransitionBeforeEnter:ae,onTransitionAfterEnter:k,tryFocusDate:dt,focusDate:$t,onKeydown:gn,onDayKeydown:Tr,onDayClick:At,onDayMouseenter:pn,onDayMouseleave:sr,onDayFocusin:mn,onDayFocusout:Sr,onWeeknumberClick:Yr};return kr(ho,Ir),Ir}function It(){const e=Mr(ho);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const z0=me({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let r;const n=se();let a=null,s=null;const i=rn({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function o(k){k&&(i.direction=k.split("-")[0])}function l({placement:k,options:K}){o(k||(K==null?void 0:K.placement))}const u=m(()=>({placement:i.placement,strategy:i.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:l},...i.modifiers||[]],onFirstUpdate:l})),c=m(()=>{const k=i.direction==="left"||i.direction==="right";let K="";if(i.placement){const A=i.placement.split("-");A.length>1&&(K=A[1])}return["start","top","left"].includes(K)?k?"top":"left":["end","bottom","right"].includes(K)?k?"bottom":"right":k?"middle":"center"});function f(){s&&(s.destroy(),s=null)}function v(){hr(()=>{const k=Gr(i.target);!k||!n.value||(s&&s.state.elements.reference!==k&&f(),s?s.update():s=Nl(k,n.value,u.value))})}function h(k){Object.assign(i,Li(k,"force"))}function g(k,K){clearTimeout(r),k>0?r=setTimeout(K,k):K()}function C(k){return!k||!s?!1:Gr(k)===s.state.elements.reference}async function $(k={}){i.force||(k.force&&(i.force=!0),g(k.showDelay??e.showDelay,()=>{i.isVisible&&(i.force=!1),h({...k,isVisible:!0}),v()}))}function y(k={}){s&&(k.target&&!C(k.target)||i.force||(k.force&&(i.force=!0),g(k.hideDelay??e.hideDelay,()=>{i.isVisible||(i.force=!1),i.isVisible=!1})))}function I(k={}){k.target!=null&&(i.isVisible&&C(k.target)?y(k):$(k))}function R(k){if(!s)return;const K=s.state.elements.reference;if(!n.value||!K)return;const A=k.target;jr(n.value,A)||jr(K,A)||y({force:!0})}function O(k){(k.key==="Esc"||k.key==="Escape")&&y()}function S({detail:k}){!k.id||k.id!==e.id||$(k)}function N({detail:k}){!k.id||k.id!==e.id||y(k)}function T({detail:k}){!k.id||k.id!==e.id||I(k)}function F(){vt(document,"keydown",O),vt(document,"click",R),vt(document,"show-popover",S),vt(document,"hide-popover",N),vt(document,"toggle-popover",T)}function W(){ht(document,"keydown",O),ht(document,"click",R),ht(document,"show-popover",S),ht(document,"hide-popover",N),ht(document,"toggle-popover",T)}function V(k){t("before-show",k)}function z(k){i.force=!1,t("after-show",k)}function Y(k){t("before-hide",k)}function j(k){i.force=!1,f(),t("after-hide",k)}function Z(k){k.stopPropagation()}function L(){i.isHovered=!0,i.isInteractive&&["hover","hover-focus"].includes(i.visibility)&&$()}function q(){if(i.isHovered=!1,!s)return;const k=s.state.elements.reference;i.autoHide&&!i.isFocused&&(!k||k!==document.activeElement)&&["hover","hover-focus"].includes(i.visibility)&&y()}function Q(){i.isFocused=!0,i.isInteractive&&["focus","hover-focus"].includes(i.visibility)&&$()}function fe(k){["focus","hover-focus"].includes(i.visibility)&&(!k.relatedTarget||!jr(n.value,k.relatedTarget))&&(i.isFocused=!1,!i.isHovered&&i.autoHide&&y())}function ae(){a!=null&&(a.disconnect(),a=null)}return we(()=>n.value,k=>{ae(),k&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(k))}),we(()=>i.placement,o,{immediate:!0}),nn(()=>{F()}),Bn(()=>{f(),ae(),W()}),{...Oo(i),popoverRef:n,alignment:c,hide:y,setupPopper:v,beforeEnter:V,afterEnter:z,beforeLeave:Y,afterLeave:j,onClick:Z,onMouseOver:L,onMouseLeave:q,onFocusIn:Q,onFocusOut:fe}}}),yt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};function U0(e,t,r,n,a,s){return p(),D("div",{class:E(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...i)=>e.onClick&&e.onClick(...i)),onMouseover:t[1]||(t[1]=(...i)=>e.onMouseOver&&e.onMouseOver(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.onMouseLeave&&e.onMouseLeave(...i)),onFocusin:t[3]||(t[3]=(...i)=>e.onFocusIn&&e.onFocusIn(...i)),onFocusout:t[4]||(t[4]=(...i)=>e.onFocusOut&&e.onFocusOut(...i))},[G(Bs,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:ee(()=>[e.isVisible?(p(),D("div",pt({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[U(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[Ue(re(e.data),1)]),M("span",{class:E(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):B("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const ya=yt(z0,[["render",U0]]),K0={class:"vc-day-popover-row"},G0={key:0,class:"vc-day-popover-row-indicator"},q0={class:"vc-day-popover-row-label"},Z0=me({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,r=m(()=>{const{content:n,highlight:a,dot:s,bar:i,popover:o}=t.attribute;return o&&o.hideIndicator?null:n?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${n.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:null});return(n,a)=>(p(),D("div",K0,[w(r)?(p(),D("div",G0,[M("span",{class:E(w(r).class)},null,2)])):B("",!0),M("div",q0,[U(n.$slots,"default",{},()=>[Ue(re(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),X0={inheritAttrs:!1},xe=me({...X0,__name:"CalendarSlot",props:{name:null},setup(e){const r=fo(e.name);return(n,a)=>w(r)?(p(),le(Ot(w(r)),mr(pt({key:0},n.$attrs)),null,16)):U(n.$slots,"default",{key:1})}}),J0={class:"vc-day-popover-container"},Q0={key:0,class:"vc-day-popover-header"},e_=me({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:r,color:n,masks:a,locale:s}=It();function i(l,u){return s.value.formatDate(l,u)}function o(l){return s.value.formatDate(l.date,a.value.dayPopover)}return(l,u)=>(p(),le(ya,{id:w(t),class:E([`vc-${w(n)}`,`vc-${w(r)}`])},{default:ee(({data:{day:c,attributes:f},hide:v})=>[G(xe,{name:"day-popover",day:c,"day-title":o(c),attributes:f,format:i,masks:w(a),hide:v},{default:ee(()=>[M("div",J0,[w(a).dayPopover?(p(),D("div",Q0,re(o(c)),1)):B("",!0),(p(!0),D(ie,null,he(f,h=>(p(),le(Z0,{key:h.key,attribute:h},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),t_={},r_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},n_=M("polyline",{points:"9 18 15 12 9 6"},null,-1),a_=[n_];function s_(e,t){return p(),D("svg",r_,a_)}const i_=yt(t_,[["render",s_]]),o_={},l_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},u_=M("polyline",{points:"15 18 9 12 15 6"},null,-1),c_=[u_];function d_(e,t){return p(),D("svg",l_,c_)}const f_=yt(o_,[["render",d_]]),h_={},v_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},p_=M("polyline",{points:"6 9 12 15 18 9"},null,-1),m_=[p_];function g_(e,t){return p(),D("svg",v_,m_)}const y_=yt(h_,[["render",g_]]),b_={},w_={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},__=M("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),$_=[__];function D_(e,t){return p(),D("svg",w_,$_)}const M_=yt(b_,[["render",D_]]),k_=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:y_,IconChevronLeft:f_,IconChevronRight:i_,IconClock:M_},Symbol.toStringTag,{value:"Module"})),Zt=me({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,r=m(()=>t.width||t.size),n=m(()=>t.height||t.size),a=m(()=>k_[`Icon${t.name}`]);return(s,i)=>(p(),le(Ot(w(a)),{width:w(r),height:w(n),class:"vc-base-icon"},null,8,["width","height"]))}}),C_=["disabled"],O_={key:1,class:"vc-title-wrapper"},P_={type:"button",class:"vc-title"},S_=["disabled"],vo=me({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:r,navVisibility:n,canMovePrev:a,movePrev:s,canMoveNext:i,moveNext:o}=It(),l=m(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),u=m(()=>{const{page:C}=t;return{id:r.value,visibility:n.value,placement:l.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:C},isInteractive:!0}}),c=m(()=>t.page.titlePosition.includes("left")),f=m(()=>t.page.titlePosition.includes("right")),v=m(()=>t.layout?t.layout:c.value?"tu-pn":f.value?"pn-tu":"p-tu-n;"),h=m(()=>({prev:v.value.includes("p")&&!t.hideArrows,title:v.value.includes("t")&&!t.hideTitle,next:v.value.includes("n")&&!t.hideArrows})),g=m(()=>({gridTemplateColumns:v.value.split("").map($=>{switch($){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(C,$)=>(p(),D("div",{class:E(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:jt(w(g))},[w(h).prev?(p(),D("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!w(a),onClick:$[0]||($[0]=(...y)=>w(s)&&w(s)(...y)),onKeydown:$[1]||($[1]=wa((...y)=>w(s)&&w(s)(...y),["space","enter"]))},[G(xe,{name:"header-prev-button",disabled:!w(a)},{default:ee(()=>[G(Zt,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,C_)):B("",!0),w(h).title?(p(),D("div",O_,[G(xe,{name:"header-title-wrapper"},{default:ee(()=>[Vt((p(),D("button",P_,[G(xe,{name:"header-title",title:e.page.title},{default:ee(()=>[M("span",null,re(e.page.title),1)]),_:1},8,["title"])])),[[w(ao),w(u)]])]),_:1})])):B("",!0),w(h).next?(p(),D("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!w(i),onClick:$[2]||($[2]=(...y)=>w(o)&&w(o)(...y)),onKeydown:$[3]||($[3]=wa((...y)=>w(o)&&w(o)(...y),["space","enter"]))},[G(xe,{name:"header-next-button",disabled:!w(i)},{default:ee(()=>[G(Zt,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,S_)):B("",!0)],6))}}),po=Symbol("__vc_page_context__");function T_(e){const{locale:t,getDateAddress:r,canMove:n}=It();function a(o,l){const{month:u,year:c}=r(new Date);return eo().map((f,v)=>{const h=v+1;return{month:h,year:o,id:bw(h,o),label:t.value.formatDate(f,l),ariaLabel:t.value.formatDate(f,"MMMM"),isActive:h===e.value.month&&o===e.value.year,isCurrent:h===u&&o===c,isDisabled:!n({month:h,year:o},{position:e.value.position})}})}function s(o,l){const{year:u}=r(new Date),{position:c}=e.value,f=[];for(let v=o;v<=l;v+=1){const h=[...Array(12).keys()].some(g=>n({month:g+1,year:v},{position:c}));f.push({year:v,id:v.toString(),label:v.toString(),ariaLabel:v.toString(),isActive:v===e.value.year,isCurrent:v===u,isDisabled:!h})}return f}const i={page:e,getMonthItems:a,getYearItems:s};return kr(po,i),i}function mo(){const e=Mr(po);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Y_={class:"vc-nav-header"},I_=["disabled"],x_=["disabled"],A_={class:"vc-nav-items"},E_=["data-id","aria-label","disabled","onClick","onKeydown"],L_=me({__name:"CalendarNav",setup(e){const{masks:t,move:r}=It(),{page:n,getMonthItems:a,getYearItems:s}=mo(),i=se(!0),o=12,l=se(n.value.year),u=se(v(n.value.year)),c=se(null);function f(){setTimeout(()=>{if(c.value==null)return;const A=c.value.querySelector(".vc-nav-item:not(:disabled)");A&&A.focus()},10)}function v(A){return Math.floor(A/o)}function h(){i.value=!i.value}function g(A){return A*o}function C(A){return o*(A+1)-1}function $(){Q.value&&(i.value&&I(),O())}function y(){fe.value&&(i.value&&R(),S())}function I(){l.value--}function R(){l.value++}function O(){u.value--}function S(){u.value++}const N=m(()=>a(l.value,t.value.navMonths).map(A=>({...A,click:()=>r({month:A.month,year:A.year},{position:n.value.position})}))),T=m(()=>a(l.value-1,t.value.navMonths)),F=m(()=>T.value.some(A=>!A.isDisabled)),W=m(()=>a(l.value+1,t.value.navMonths)),V=m(()=>W.value.some(A=>!A.isDisabled)),z=m(()=>s(g(u.value),C(u.value)).map(A=>({...A,click:()=>{l.value=A.year,i.value=!0,f()}}))),Y=m(()=>s(g(u.value-1),C(u.value-1))),j=m(()=>Y.value.some(A=>!A.isDisabled)),Z=m(()=>s(g(u.value+1),C(u.value+1))),L=m(()=>Z.value.some(A=>!A.isDisabled)),q=m(()=>i.value?N.value:z.value),Q=m(()=>i.value?F.value:j.value),fe=m(()=>i.value?V.value:L.value),ae=m(()=>Ai(z.value.map(A=>A.year))),k=m(()=>Rt(z.value.map(A=>A.year))),K=m(()=>i.value?l.value:`${ae.value} - ${k.value}`);return Ws(()=>{l.value=n.value.year,f()}),we(()=>l.value,A=>u.value=v(A)),nn(()=>f()),(A,ue)=>(p(),D("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[M("div",Y_,[M("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!w(Q),onClick:$,onKeydown:ue[0]||(ue[0]=X=>w(Nr)(X,$))},[G(xe,{name:"nav-prev-button",move:$,disabled:!w(Q)},{default:ee(()=>[G(Zt,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,I_),M("button",{type:"button",class:"vc-nav-title vc-focus",onClick:h,onKeydown:ue[1]||(ue[1]=X=>w(Nr)(X,h))},re(w(K)),33),M("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!w(fe),onClick:y,onKeydown:ue[2]||(ue[2]=X=>w(Nr)(X,y))},[G(xe,{name:"nav-next-button",move:y,disabled:!w(fe)},{default:ee(()=>[G(Zt,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,x_)]),M("div",A_,[(p(!0),D(ie,null,he(w(q),X=>(p(),D("button",{key:X.label,type:"button","data-id":X.id,"aria-label":X.ariaLabel,class:E(["vc-nav-item vc-focus",[X.isActive?"is-active":X.isCurrent?"is-current":""]]),disabled:X.isDisabled,onClick:X.click,onKeydown:ce=>w(Nr)(ce,X.click)},re(X.label),43,E_))),128))])],512))}}),go=me({__name:"CalendarPageProvider",props:{page:null},setup(e){return T_(Fr(e,"page")),(r,n)=>U(r.$slots,"default")}}),N_=me({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:r,displayMode:n}=It();return(a,s)=>(p(),le(ya,{id:w(t),class:E(["vc-nav-popover-container",`vc-${w(r)}`,`vc-${w(n)}`])},{default:ee(({data:i})=>[G(go,{page:i.page},{default:ee(()=>[G(xe,{name:"nav"},{default:ee(()=>[G(L_)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),F_=me({directives:{popover:ao},components:{CalendarSlot:xe},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:r,attributeContext:n,dayPopoverId:a,onDayClick:s,onDayMouseenter:i,onDayMouseleave:o,onDayFocusin:l,onDayFocusout:u,onDayKeydown:c}=It(),f=m(()=>e.day),v=m(()=>n.value.getCells(f.value)),h=m(()=>v.value.map(L=>L.data)),g=m(()=>({...f.value,attributes:h.value,attributeCells:v.value}));function C({data:L},{popovers:q}){const{key:Q,customData:fe,popover:ae}=L;if(!ae)return;const k=cs({key:Q,customData:fe,attribute:L},{...ae},{visibility:ae.label?"hover":"click",placement:"bottom",isInteractive:!ae.label});q.splice(0,0,k)}const $=m(()=>{const L={...r.value.prepareRender({}),popovers:[]};return v.value.forEach(q=>{r.value.render(q,L),C(q,L)}),L}),y=m(()=>$.value.highlights),I=m(()=>!!Je(y.value)),R=m(()=>$.value.content),O=m(()=>$.value.dots),S=m(()=>!!Je(O.value)),N=m(()=>$.value.bars),T=m(()=>!!Je(N.value)),F=m(()=>$.value.popovers),W=m(()=>F.value.map(L=>L.attribute)),V=fo("day-content"),z=m(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!V},{"is-not-in-month":!e.day.inMonth}]),Y=m(()=>{let L;f.value.isFocusable?L="0":L="-1";const q=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},Mt(Rt(y.value),"contentClass"),Mt(Rt(R.value),"class")||""],Q={...Mt(Rt(y.value),"contentStyle"),...Mt(Rt(R.value),"style")};return{class:q,style:Q,tabindex:L,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),j=m(()=>({click(L){s(g.value,L)},mouseenter(L){i(g.value,L)},mouseleave(L){o(g.value,L)},focusin(L){l(g.value,L)},focusout(L){u(g.value,L)},keydown(L){c(g.value,L)}})),Z=m(()=>Je(F.value)?cs({id:a.value,data:{day:f,attributes:W.value}},...F.value):null);return{attributes:h,attributeCells:v,bars:N,dayClasses:z,dayContentProps:Y,dayContentEvents:j,dayPopover:Z,glyphs:$,dots:O,hasDots:S,hasBars:T,highlights:y,hasHighlights:I,locale:t,popovers:F}}}),R_={key:0,class:"vc-highlights vc-day-layer"},j_={key:1,class:"vc-day-layer vc-day-box-center-bottom"},H_={class:"vc-dots"},W_={key:2,class:"vc-day-layer vc-day-box-center-bottom"},B_={class:"vc-bars"};function V_(e,t,r,n,a,s){const i=Ie("CalendarSlot"),o=Po("popover");return p(),D("div",{class:E(e.dayClasses)},[e.hasHighlights?(p(),D("div",R_,[(p(!0),D(ie,null,he(e.highlights,({key:l,wrapperClass:u,class:c,style:f})=>(p(),D("div",{key:l,class:E(u)},[M("div",{class:E(c),style:jt(f)},null,6)],2))),128))])):B("",!0),G(i,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:ee(()=>[Vt((p(),D("div",pt(e.dayContentProps,So(e.dayContentEvents,!0)),[Ue(re(e.day.label),1)],16)),[[o,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(p(),D("div",j_,[M("div",H_,[(p(!0),D(ie,null,he(e.dots,({key:l,class:u,style:c})=>(p(),D("span",{key:l,class:E(u),style:jt(c)},null,6))),128))])])):B("",!0),e.hasBars?(p(),D("div",W_,[M("div",B_,[(p(!0),D(ie,null,he(e.bars,({key:l,class:u,style:c})=>(p(),D("span",{key:l,class:E(u),style:jt(c)},null,6))),128))])])):B("",!0)],2)}const z_=yt(F_,[["render",V_]]),U_={class:"vc-weekdays"},K_=["onClick"],G_={inheritAttrs:!1},q_=me({...G_,__name:"CalendarPage",setup(e){const{page:t}=mo(),{onWeeknumberClick:r}=It();return(n,a)=>(p(),D("div",{class:E(["vc-pane",`row-${w(t).row}`,`row-from-end-${w(t).rowFromEnd}`,`column-${w(t).column}`,`column-from-end-${w(t).columnFromEnd}`]),ref:"pane"},[G(vo,{page:w(t),"is-lg":"","hide-arrows":""},null,8,["page"]),M("div",{class:E(["vc-weeks",{[`vc-show-weeknumbers-${w(t).weeknumberPosition}`]:w(t).weeknumberPosition}])},[M("div",U_,[(p(!0),D(ie,null,he(w(t).weekdays,({weekday:s,label:i},o)=>(p(),D("div",{key:o,class:E(`vc-weekday vc-weekday-${s}`)},re(i),3))),128))]),(p(!0),D(ie,null,he(w(t).viewWeeks,s=>(p(),D("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[w(t).weeknumberPosition?(p(),D("div",{key:0,class:E(["vc-weeknumber",`is-${w(t).weeknumberPosition}`])},[M("span",{class:E(["vc-weeknumber-content"]),onClick:i=>w(r)(s,i)},re(s.weeknumberDisplay),9,K_)],2)):B("",!0),(p(!0),D(ie,null,he(s.days,i=>(p(),le(z_,{key:i.id,day:i},null,8,["day"]))),128))]))),128))],2)],2))}}),Z_=me({components:{CalendarHeader:vo,CalendarPage:q_,CalendarNavPopover:N_,CalendarDayPopover:e_,CalendarPageProvider:go,CalendarSlot:xe},props:W0,emit:B0,setup(e,{emit:t,slots:r}){return V0(e,{emit:t,slots:r})}}),X_={class:"vc-pane-header-wrapper"};function J_(e,t,r,n,a,s){const i=Ie("CalendarHeader"),o=Ie("CalendarPage"),l=Ie("CalendarSlot"),u=Ie("CalendarPageProvider"),c=Ie("CalendarDayPopover"),f=Ie("CalendarNavPopover");return p(),D(ie,null,[M("div",pt({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=Qe(()=>{},["prevent"])),ref:"containerRef"}),[M("div",{class:E(["vc-pane-container",{"in-transition":e.inTransition}])},[M("div",X_,[e.firstPage?(p(),le(i,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):B("",!0)]),G(Bs,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:ee(()=>[(p(),D("div",{key:e.pages[0].id,class:"vc-pane-layout",style:jt({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(p(!0),D(ie,null,he(e.pages,v=>(p(),le(u,{key:v.id,page:v},{default:ee(()=>[G(l,{name:"page",page:v},{default:ee(()=>[G(o)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),G(l,{name:"footer"})],2)],16),G(c),G(f)],64)}const yo=yt(Z_,[["render",J_]]),bo=Symbol("__vc_date_picker_context__"),Q_={...oo,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>mt("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>mt("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},e$=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function t$(e,{emit:t,slots:r}){co(r,{footer:"dp-footer"});const n=lo(e),{locale:a,masks:s,disabledAttribute:i}=n,o=se(!1),l=se(Symbol()),u=se(null),c=se(null),f=se(["",""]),v=se(null),h=se(null);let g,C,$=!0;const y=m(()=>e.isRange||e.modelModifiers.range===!0),I=m(()=>y.value&&u.value!=null?u.value.start:null),R=m(()=>y.value&&u.value!=null?u.value.end:null),O=m(()=>e.mode.toLowerCase()==="date"),S=m(()=>e.mode.toLowerCase()==="datetime"),N=m(()=>e.mode.toLowerCase()==="time"),T=m(()=>!!c.value),F=m(()=>{let d="date";e.modelModifiers.number&&(d="number"),e.modelModifiers.string&&(d="string");const b=s.value.modelValue||"iso";return ue({type:d,mask:b})}),W=m(()=>_t(c.value??u.value)),V=m(()=>N.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:S.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),z=m(()=>/[Hh]/g.test(V.value)),Y=m(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(V.value)),j=m(()=>{if(z.value&&Y.value)return"dateTime";if(Y.value)return"date";if(z.value)return"time"}),Z=m(()=>{var d;const b=((d=v.value)==null?void 0:d.$el.previousElementSibling)??void 0;return $r({},e.popover,mt("datePicker.popover"),{target:b})}),L=m(()=>no({...Z.value,id:l.value})),q=m(()=>y.value?{start:f.value[0],end:f.value[1]}:f.value[0]),Q=m(()=>{const d=["start","end"].map(b=>({input:Be(b),change:bt(b),keyup:wt,...e.popover&&L.value}));return y.value?{start:d[0],end:d[1]}:d[0]}),fe=m(()=>{if(!de(u.value))return null;const d={key:"select-drag",...e.selectAttribute,dates:u.value,pinPage:!0},{dot:b,bar:P,highlight:H,content:oe}=d;return!b&&!P&&!H&&!oe&&(d.highlight=!0),d}),ae=m(()=>{if(!y.value||!de(c.value))return null;const d={key:"select-drag",...e.dragAttribute,dates:c.value},{dot:b,bar:P,highlight:H,content:oe}=d;return!b&&!P&&!H&&!oe&&(d.highlight={startEnd:{fillMode:"outline"}}),d}),k=m(()=>{const d=Ee(e.attributes)?[...e.attributes]:[];return ae.value?d.unshift(ae.value):fe.value&&d.unshift(fe.value),d}),K=m(()=>ue(e.rules==="auto"?A():e.rules??{}));function A(){const d={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},b=O.value?0:e.timeAccuracy;return[0,1].map(P=>{switch(b){case 0:return{hours:d.hr[P],minutes:d.min[P],seconds:d.sec[P],milliseconds:d.ms[P]};case 1:return{minutes:d.min[P],seconds:d.sec[P],milliseconds:d.ms[P]};case 3:return{milliseconds:d.ms[P]};case 4:return{};default:return{seconds:d.sec[P],milliseconds:d.ms[P]}}})}function ue(d){return Ee(d)?d.length===1?[d[0],d[0]]:d:[d,d]}function X(d){return ue(d).map((b,P)=>({...b,rules:K.value[P]}))}function ce(d){return d==null?!1:je(d)?!isNaN(d):Ht(d)?!isNaN(d.getTime()):Ve(d)?d!=="":va(d)}function ve(d){return tt(d)&&"start"in d&&"end"in d&&ce(d.start??null)&&ce(d.end??null)}function de(d){return ve(d)||ce(d)}function pe(d,b){if(d==null&&b==null)return!0;if(d==null||b==null)return!1;const P=Ht(d),H=Ht(b);return P&&H?d.getTime()===b.getTime():P||H?!1:pe(d.start,b.start)&&pe(d.end,b.end)}function Ce(d){return!de(d)||!i.value?!1:i.value.intersectsRange(a.value.range(d))}function Xe(d,b,P,H){if(!de(d))return null;if(ve(d)){const oe=a.value.toDate(d.start,{...b[0],fillDate:I.value??void 0,patch:P}),be=a.value.toDate(d.end,{...b[1],fillDate:R.value??void 0,patch:P});return Sr({start:oe,end:be},H)}return a.value.toDateOrNull(d,{...b[0],fillDate:u.value,patch:P})}function Fe(d,b){return ve(d)?{start:a.value.fromDate(d.start,b[0]),end:a.value.fromDate(d.end,b[1])}:y.value?null:a.value.fromDate(d,b[0])}function Te(d,b={}){return clearTimeout(g),new Promise(P=>{const{debounce:H=0,...oe}=b;H>0?g=window.setTimeout(()=>{P(Ye(d,oe))},H):P(Ye(d,oe))})}function Ye(d,{config:b=F.value,patch:P="dateTime",clearIfEqual:H=!1,formatInput:oe=!0,hidePopover:be=!1,dragging:Oe=T.value,targetPriority:Et,moveToValue:Lt=!1}={}){const yn=X(b);let De=Xe(d,yn,P,Et);if(Ce(De)){if(Oe)return null;De=u.value,be=!1}else De==null&&e.isRequired?De=u.value:De!=null&&pe(u.value,De)&&H&&(De=null);const xr=Oe?c:u,ir=!pe(xr.value,De);xr.value=De,Oe||(c.value=null);const or=Fe(De,F.value);return ir&&($=!1,t(Oe?"drag":"update:modelValue",or),hr(()=>$=!0)),be&&!Oe&&sr(),oe&&st(),Lt&&hr(()=>Yr(Et??"start")),or}function st(){hr(()=>{const d=X({type:"string",mask:V.value}),b=Fe(c.value??u.value,d);y.value?f.value=[b&&b.start,b&&b.end]:f.value=[b,""]})}function xt(d,b,P){f.value.splice(b==="start"?0:1,1,d);const H=y.value?{start:f.value[0],end:f.value[1]||f.value[0]}:d,oe={type:"string",mask:V.value};Te(H,{...P,config:oe,patch:j.value,targetPriority:b,moveToValue:!0})}function Be(d){return b=>{e.updateOnInput&&xt(b.currentTarget.value,d,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function bt(d){return b=>{xt(b.currentTarget.value,d,{formatInput:!0,hidePopover:!1})}}function wt(d){d.key==="Escape"&&Te(u.value,{formatInput:!0,hidePopover:!0})}function _t(d){return y.value?[d&&d.start?a.value.getDateParts(d.start):null,d&&d.end?a.value.getDateParts(d.end):null]:[d?a.value.getDateParts(d):null]}function Re(){c.value=null,st()}function it(d){t("popover-will-show",d)}function ot(d){t("popover-did-show",d)}function lt(d){Re(),t("popover-will-hide",d)}function ut(d){t("popover-did-hide",d)}function ct(d){const b={patch:"date",formatInput:!0,hidePopover:!0};if(y.value){const P=!T.value;P?C={start:d.startDate,end:d.endDate}:C!=null&&(C.end=d.date),Te(C,{...b,dragging:P})}else Te(d.date,{...b,clearIfEqual:!e.isRequired})}function dt(d,b){ct(d),t("dayclick",d,b)}function $t(d,b){switch(b.key){case" ":case"Enter":{ct(d),b.preventDefault();break}case"Escape":sr()}t("daykeydown",d,b)}function At(d,b){!T.value||C==null||(C.end=d.date,Te(Sr(C),{patch:"date",formatInput:!0}))}function pn(d={}){Hn({...Z.value,...d,isInteractive:!0,id:l.value})}function sr(d={}){Dr({hideDelay:10,force:!0,...Z.value,...d,id:l.value})}function mn(d){ro({...Z.value,...d,isInteractive:!0,id:l.value})}function Sr(d,b){const{start:P,end:H}=d;if(P>H)switch(b){case"start":return{start:P,end:P};case"end":return{start:H,end:H};default:return{start:H,end:P}}return{start:P,end:H}}async function Tr(d,b={}){return h.value==null?!1:h.value.move(d,b)}async function gn(d,b={}){return h.value==null?!1:h.value.moveBy(d,b)}async function Yr(d,b={}){const P=u.value;if(h.value==null||!de(P))return!1;const H=d!=="end",oe=H?1:-1,be=ve(P)?H?P.start:P.end:P,Oe=ji(be,"monthly",a.value);return h.value.move(Oe,{position:oe,...b})}we(()=>e.isRange,d=>{d&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),we(()=>y.value,()=>{Ye(null,{formatInput:!0})}),we(()=>V.value,()=>st()),we(()=>e.modelValue,d=>{$&&Ye(d,{formatInput:!0,hidePopover:!1})}),we(()=>K.value,()=>{tt(e.rules)&&Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),we(()=>e.timezone,()=>{Ye(u.value,{formatInput:!0})});const Ir=ue(F.value);u.value=Xe(e.modelValue??null,Ir,"dateTime"),nn(()=>{Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),hr(()=>o.value=!0);const _={...n,showCalendar:o,datePickerPopoverId:l,popoverRef:v,popoverEvents:L,calendarRef:h,isRange:y,isTimeMode:N,isDateTimeMode:S,is24hr:Fr(e,"is24hr"),hideTimeHeader:Fr(e,"hideTimeHeader"),timeAccuracy:Fr(e,"timeAccuracy"),isDragging:T,inputValue:q,inputEvents:Q,dateParts:W,attributes:k,rules:K,move:Tr,moveBy:gn,moveToValue:Yr,updateValue:Te,showPopover:pn,hidePopover:sr,togglePopover:mn,onDayClick:dt,onDayKeydown:$t,onDayMouseEnter:At,onPopoverBeforeShow:it,onPopoverAfterShow:ot,onPopoverBeforeHide:lt,onPopoverAfterHide:ut};return kr(bo,_),_}function ba(){const e=Mr(bo);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const r$=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],n$=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function a$(e){const t=ba(),{locale:r,isRange:n,isTimeMode:a,dateParts:s,rules:i,is24hr:o,hideTimeHeader:l,timeAccuracy:u,updateValue:c}=t;function f(Y){Y=Object.assign(h.value,Y);let j=null;if(n.value){const Z=v.value?Y:s.value[0],L=v.value?s.value[1]:Y;j={start:Z,end:L}}else j=Y;c(j,{patch:"time",targetPriority:v.value?"start":"end",moveToValue:!0})}const v=m(()=>e.position===0),h=m(()=>s.value[e.position]||{isValid:!1}),g=m(()=>va(h.value)),C=m(()=>!!h.value.isValid),$=m(()=>!l.value&&C.value),y=m(()=>{if(!g.value)return null;let Y=r.value.toDate(h.value);return h.value.hours===24&&(Y=new Date(Y.getTime()-1)),Y}),I=m({get(){return h.value.hours},set(Y){f({hours:Y})}}),R=m({get(){return h.value.minutes},set(Y){f({minutes:Y})}}),O=m({get(){return h.value.seconds},set(Y){f({seconds:Y})}}),S=m({get(){return h.value.milliseconds},set(Y){f({milliseconds:Y})}}),N=m({get(){return h.value.hours<12},set(Y){Y=String(Y).toLowerCase()=="true";let j=I.value;Y&&j>=12?j-=12:!Y&&j<12&&(j+=12),f({hours:j})}}),T=m(()=>D0(h.value,i.value[e.position])),F=m(()=>r$.filter(Y=>T.value.hours.some(j=>j.value===Y.value))),W=m(()=>n$.filter(Y=>T.value.hours.some(j=>j.value===Y.value))),V=m(()=>o.value?T.value.hours:N.value?F.value:W.value),z=m(()=>{const Y=[];return Je(F.value)&&Y.push({value:!0,label:"AM"}),Je(W.value)&&Y.push({value:!1,label:"PM"}),Y});return{...t,showHeader:$,timeAccuracy:u,parts:h,isValid:C,date:y,hours:I,minutes:R,seconds:O,milliseconds:S,options:T,hourOptions:V,isAM:N,isAMOptions:z,is24hr:o}}const s$=["value"],i$=["value","disabled"],o$={key:1,class:"vc-base-sizer","aria-hidden":"true"},l$={inheritAttrs:!1},fr=me({...l$,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,r=m(()=>{const n=t.options.find(a=>a.value===t.modelValue);return n==null?void 0:n.label});return(n,a)=>(p(),D("div",{class:E(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[M("select",pt(n.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:a[0]||(a[0]=s=>n.$emit("update:modelValue",s.target.value))}),[(p(!0),D(ie,null,he(e.options,s=>(p(),D("option",{key:s.value,value:s.value,disabled:s.disabled},re(s.label),9,i$))),128))],16,s$),e.showIcon?(p(),le(Zt,{key:0,name:"ChevronDown",size:"18"})):B("",!0),e.fitContent?(p(),D("div",o$,re(w(r)),1)):B("",!0)],2))}}),u$={key:0,class:"vc-time-header"},c$={class:"vc-time-weekday"},d$={class:"vc-time-month"},f$={class:"vc-time-day"},h$={class:"vc-time-year"},v$={class:"vc-time-select-group"},p$=M("span",{class:"vc-time-colon"},":",-1),m$=M("span",{class:"vc-time-colon"},":",-1),g$=M("span",{class:"vc-time-decimal"},".",-1),Rs=me({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=a$(e);t(n);const{locale:a,isValid:s,date:i,hours:o,minutes:l,seconds:u,milliseconds:c,options:f,hourOptions:v,isTimeMode:h,isAM:g,isAMOptions:C,is24hr:$,showHeader:y,timeAccuracy:I}=n;return(R,O)=>(p(),D("div",{class:E(["vc-time-picker",[{"vc-invalid":!w(s),"vc-attached":!w(h)}]])},[G(xe,{name:"time-header"},{default:ee(()=>[w(y)&&w(i)?(p(),D("div",u$,[M("span",c$,re(w(a).formatDate(w(i),"WWW")),1),M("span",d$,re(w(a).formatDate(w(i),"MMM")),1),M("span",f$,re(w(a).formatDate(w(i),"D")),1),M("span",h$,re(w(a).formatDate(w(i),"YYYY")),1)])):B("",!0)]),_:1}),M("div",v$,[G(Zt,{name:"Clock",size:"17"}),G(fr,{modelValue:w(o),"onUpdate:modelValue":O[0]||(O[0]=S=>lr(o)?o.value=S:null),modelModifiers:{number:!0},options:w(v),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),w(I)>1?(p(),D(ie,{key:0},[p$,G(fr,{modelValue:w(l),"onUpdate:modelValue":O[1]||(O[1]=S=>lr(l)?l.value=S:null),modelModifiers:{number:!0},options:w(f).minutes,class:"vc-time-select-minutes","align-left":w(I)===2},null,8,["modelValue","options","align-left"])],64)):B("",!0),w(I)>2?(p(),D(ie,{key:1},[m$,G(fr,{modelValue:w(u),"onUpdate:modelValue":O[2]||(O[2]=S=>lr(u)?u.value=S:null),modelModifiers:{number:!0},options:w(f).seconds,class:"vc-time-select-seconds","align-left":w(I)===3},null,8,["modelValue","options","align-left"])],64)):B("",!0),w(I)>3?(p(),D(ie,{key:2},[g$,G(fr,{modelValue:w(c),"onUpdate:modelValue":O[3]||(O[3]=S=>lr(c)?c.value=S:null),modelModifiers:{number:!0},options:w(f).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):B("",!0),w($)?B("",!0):(p(),le(fr,{key:3,modelValue:w(g),"onUpdate:modelValue":O[4]||(O[4]=S=>lr(g)?g.value=S:null),options:w(C)},null,8,["modelValue","options"]))])],2))}}),wo=me({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:r,color:n,displayMode:a,isDateTimeMode:s,isTimeMode:i,isRange:o,onDayClick:l,onDayMouseEnter:u,onDayKeydown:c}=ba(),f=o.value?[0,1]:[0];return(v,h)=>w(i)?(p(),D("div",{key:0,class:E(`vc-container vc-bordered vc-${w(n)} vc-${w(a)}`)},[(p(!0),D(ie,null,he(w(f),g=>(p(),le(Rs,{key:g,position:g},null,8,["position"]))),128))],2)):(p(),le(yo,{key:1,attributes:w(t),ref_key:"calendarRef",ref:r,onDayclick:w(l),onDaymouseenter:w(u),onDaykeydown:w(c)},{footer:ee(()=>[w(s)?(p(!0),D(ie,{key:0},he(w(f),g=>(p(),le(Rs,{key:g,position:g},null,8,["position"]))),128)):B("",!0),G(xe,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),y$={inheritAttrs:!1},b$=me({...y$,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:r,displayMode:n,popoverRef:a,onPopoverBeforeShow:s,onPopoverAfterShow:i,onPopoverBeforeHide:o,onPopoverAfterHide:l}=ba();return(u,c)=>(p(),le(ya,{id:w(t),placement:"bottom-start",class:E(`vc-date-picker-content vc-${w(r)} vc-${w(n)}`),ref_key:"popoverRef",ref:a,onBeforeShow:w(s),onAfterShow:w(i),onBeforeHide:w(o),onAfterHide:w(l)},{default:ee(()=>[G(wo,mr(Sn(u.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),w$=me({inheritAttrs:!1,emits:e$,props:Q_,components:{DatePickerBase:wo,DatePickerPopover:b$},setup(e,t){const r=t$(e,t),n=rn(Li(r,"calendarRef","popoverRef"));return{...r,slotCtx:n}}});function _$(e,t,r,n,a,s){const i=Ie("DatePickerPopover"),o=Ie("DatePickerBase");return e.$slots.default?(p(),D(ie,{key:0},[U(e.$slots,"default",mr(Sn(e.slotCtx))),G(i,mr(Sn(e.$attrs)),null,16)],64)):(p(),le(o,mr(pt({key:1},e.$attrs)),null,16))}const $$=yt(w$,[["render",_$]]);function D$(e){if(document.cookie&&document.cookie!==""){const t=document.cookie.split(";").find(r=>r.trim().startsWith(e+"="));return t?decodeURIComponent(t.split("=")[1]):null}return null}var Pn=null;function M$(){return Pn===null&&(Pn=D$("csrftoken")),Pn}class Ct{constructor(t={},{url:r=null,...n}={}){this.url=r||t.url_,this.options=n,this.commit(t)}get created(){return!this.id}get errors(){return this.data&&this.data.__errors__}static getId(t){return"id"in t?t.id:t.pk}static getOptions(t){return{headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRFToken":M$()},...t}}static fromList(t,r={}){return t?t.map(n=>new this(n,r)):[]}static fetch(t,{many:r=!1,...n}={},a={}){n=this.getOptions(n);const s=fetch(t,n).then(i=>i.json());return r?s.then(i=>(i instanceof Array||(i=i.results),this.fromList(i,a))):s.then(i=>new this(i,{url:t,...a}))}fetch(t){return t=this.constructor.getOptions(t),fetch(this.url,t).then(r=>r.json()).then(r=>this.commit(r))}action(t,r,n=!1){r=this.constructor.getOptions(r);const a=fetch(this.url+t,r);return n?a.then(s=>s.json()).then(s=>{this.commit(s),this.data}):a}commit(t){this.data=t,this.id=this.constructor.getId(this.data)}update(t){this.data={...this.data,...t},this.id=this.constructor.getId(this.data),this.updated=!0}delete(){this.deleted=!0}store(t){window.localStorage.setItem(t,JSON.stringify(this.data))}static storeLoad(t){let r=window.localStorage.getItem(t);return r===null?r:new this(JSON.parse(r))}get isEmpty(){return!this.data||Object.keys(this.data).findIndex(t=>!!this.data[t]&&this.data[t]!==0)==-1}error(t=null){return t===null?this.errors:this.errors&&this.errors[t]}}let hn=class{constructor(t,{items:r=[],url:n=null,args:a={},unique:s=null,max:i=null,storeKey:o=null}={}){this.items=[],this.model=t,this.url=n,this.unique=s,this.max=i,this.storeKey=o;for(var l of r)this.push(l,{args:a,save:!1})}get length(){return this.items.length}get deletedItems(){return this.items.filter(t=>t.deleted)}get createdItems(){return this.items.filter(t=>!t.deleted&&!t.id)}get updatedItems(){return this.items.filter(t=>t.updated)}static fetch(t,r,n=null,a=null){return n=t.getOptions(n),fetch(r,n).then(s=>s.json()).then(s=>(s instanceof Array?s:s.results).map(i=>new t(i,{url:r,...a})))}fetch({url:t=null,reset:r=!1,...n}={},a=null){return t=t||this.url,n=this.model.getOptions(n),fetch(t,n).then(s=>s.json()).then(s=>(s instanceof Array?s:s.results).map(i=>new this.model(i,{url:t,...a}))).then(s=>(r?this.items=s:this.items=[...this.items,...s],s))}commit(t,{getData:r=null,fields:n=null,...a}={}){!r&&n&&(r=o=>n.reduce((l,u)=>(l[u]=o.data[u],l),{}));const s=this.createdItems,i={delete:this.deletedItems.map(o=>o.id),update:this.updatedItems.map(r),create:s.map(r)};if(!(!i.delete&&!i.update&&!i.create))return r=r||(o=>o.data),a=this.model.getOptions(a),a.method="POST",a.body=JSON.stringify(i),fetch(t,a).then(o=>o.json()).then(o=>{const{created:l,updated:u,deleted:c}=o;return s&&(this.items=this.items.filter(f=>s.indexOf(f)==-1)),c&&(this.items=this.items.filter(f=>c.indexOf(f.id)==-1)),this.extend(l),this.extend(u),o})}static storeLoad(t,r,n={}){let a=window.localStorage.getItem(r);return new this(t,{...n,storeKey:r,items:a?JSON.parse(a):[]})}store(){this.storeKey&&window.localStorage.setItem(this.storeKey,JSON.stringify(this.items.map(t=>t.data)))}save(){this.storeKey&&this.store()}get(t){return this.items[t]}find(t){return t instanceof Function?this.items.find(t):this.items.find(r=>r.id==t.id)}findIndex(t){return t instanceof Function?this.items.findIndex(t):this.items.findIndex(r=>r.id==t.id)}extend(t,r){t.forEach(n=>this.push(n,r))}push(t,{args:r={},save:n=!0}={}){t=t instanceof this.model?t:new this.model(t,r);let a=-1;return this.unique&&t.id&&(a=this.findIndex(t),a>-1&&(this.items[a]=t)),a==-1&&(this.max&&this.items.length>=this.max&&this.items.splice(0,this.items.length-this.max),this.items.push(t),a=this.items.length-1),n&&this.save(),a}remove(t,{save:r=!0}={}){this.items.splice(t,1),r&&this.save()}reset(t=[]){this.items=[];for(var r of t)this.push(r)}move(t,r){if(t>=this.length||r>this.length)throw"source or target index is not in range";const n=this.items[t];this.items.splice(t,1),this.items.splice(r,0,n)}};hn[Symbol.iterator]=function(){return this.items[Symbol.iterator]()};const Se=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},k$={emit:["change","keypress","keydown","keyup","select","unselect","update:modelValue"],props:{url:String,urlParams:Object,model:Function,inputClass:Array,placeholder:Object,name:String,labelField:String,valueField:{type:String,default:null},count:{type:Number,count:10},button:Boolean,mustExist:{type:Boolean,default:!1},minFetchLength:{type:Number,default:3},modelValue:{default:""}},data(){return{inputValue:this.modelValue||"",query:"",items:[],selectedIndex:-1,cursor:-1,promise:null}},watch:{modelValue(e){this.inputValue=e},inputValue(e,t){e!=t&&e!=this.modelValue&&(this.$emit("update:modelValue",e),this.$emit("change",{target:this.$refs.input})),this.selectedLabel!=e&&(this.selectedIndex=-1)}},computed:{fullUrl(){if(!this.urlParams)return this.url;const e=new URL(this.url,window.location.origin),t=new URLSearchParams(e.searchParams);for(var r in this.urlParams)t.set(r,this.urlParams[r]);return this.url.indexOf("?")>=0,e.search=t.toString(),e.href},isFetching(){return!!this.promise},selected(){let e=this.selectedIndex;return e<0?null:(e=Math.min(e,this.items.length-1),this.items[e])},selectedValue(){let e=this.itemValue(this.selected);return!e&&!this.mustExist&&(e=this.inputValue),e},selectedLabel(){return this.itemLabel(this.selected)},dropdownClass(){var e=this.cursor>-1&&this.items.length;return e&&this.items.length==1&&this.itemValue(this.items[0])==this.inputValue&&(e=!1),["dropdown is-fullwidth",e?"is-active":""]}},methods:{reset(){this.inputValue="",this.selectedIndex=-1,this.items=[]},getValue(e,t=null){if(!e)return null;if(!t)return e;const r=t.split(".");for(const n of r)if(n in e)e=e[n];else return null;return e},itemValue(e){return this.valueField?this.getValue(e,this.valueField):e},itemLabel(e){return this.labelField?this.getValue(e,this.labelField):e},hide(){this.cursor=-1,this.selectedIndex=-1},move(e=-1,t=!1){t&&(e+=this.cursor),this.cursor=Math.max(-1,Math.min(e,this.items.length-1))},select(e=-1,t=!1,r=null){if(t)e+=this.selectedIndex;else if(e==this.selectedIndex)return;this.selectedIndex=Math.max(-1,Math.min(e,this.items.length-1)),e>=0&&(this.inputValue=this.selectedLabel,this.$refs.input.focus()),this.selectedIndex<0?this.$emit("unselect"):this.$emit("select",e,this.selected,this.selectedValue),r!==null&&(r&&this.move(0)||this.move(-1))},onInputFocus(){this.cursor<0&&this.move(0)},onBlur(e){if(this.items.length){var t=e.relatedTarget&&Math.floor(e.relatedTarget.dataset.autocompleteIndex);t!=null&&this.select(t,!1,!1),this.cursor=-1}},onKeyDown(e){if(!(e.ctrlKey||e.altKey||e.metaKey)){switch(e.keyCode){case 13:this.select(this.cursor,!1,!1);break;case 27:this.hide(),this.select();break;case 38:this.move(-1,!0);break;case 40:this.move(1,!0);break;default:return}e.preventDefault(),e.stopPropagation()}},onKeyUp(e){if(e.ctrlKey||e.altKey||e.metaKey)return;const t=e.target.value;if(t!==this.query){if(this.inputValue=t,!t)return this.selected&&this.select(-1);(!this.minFetchLength||t.length>=this.minFetchLength)&&this.fetch(t)}},fetch(e){if(!(!e||this.promise)){this.query=e;var t=this.fullUrl.replace("${query}",e).replace("%24%7Bquery%7D",e),r=this.model?this.model.fetch(t,{many:!0}):fetch(t,Ct.getOptions()).then(n=>n.json());return r=r.then(n=>(n.results&&(n=n.results),this.items=n.filter(a=>a)||[],this.promise=null,this.move(0),n),n=>{this.promise=null,Promise.reject(n)}),this.promise=r,r}}},mounted(){const e=this.$el.closest("form");e&&e.addEventListener("reset",()=>{this.inputValue=this.value,this.select(-1)})}},C$={class:"control"},O$=["name","value"],P$=["placeholder"],S$=M("span",{class:"icon is-small ml-1"},[M("i",{class:"fa fa-pen"})],-1),T$={key:0,class:"is-inline-block"},Y$={class:"dropdown-menu is-fullwidth"},I$={class:"dropdown-content",style:{overflow:"hidden"}},x$=["data-autocomplete-index","onClick"];function A$(e,t,r,n,a,s){return p(),D("div",C$,[M("input",{type:"hidden",name:r.name,value:s.selectedValue,onChange:t[0]||(t[0]=i=>e.$emit("change",i))},null,40,O$),Vt(M("input",{type:"text",ref:"input",class:E(["input is-fullwidth",r.inputClass]),"onUpdate:modelValue":t[1]||(t[1]=i=>a.inputValue=i),placeholder:r.placeholder,onKeydownCapture:t[2]||(t[2]=(...i)=>s.onKeyDown&&s.onKeyDown(...i)),onKeyup:t[3]||(t[3]=i=>{s.onKeyUp(i),e.$emit("keyup",i)}),onKeydown:t[4]||(t[4]=i=>e.$emit("keydown",i)),onKeypress:t[5]||(t[5]=i=>e.$emit("keypress",i)),onFocus:t[6]||(t[6]=(...i)=>s.onInputFocus&&s.onInputFocus(...i)),onBlur:t[7]||(t[7]=(...i)=>s.onBlur&&s.onBlur(...i))},null,42,P$),[[Vr,!r.button||!s.selected],[To,a.inputValue]]),s.selected&&r.button?(p(),D("a",{key:0,class:"button is-normal is-fullwidth has-text-left is-inline-block overflow-hidden",onClick:t[8]||(t[8]=i=>s.select(-1,!1,!0))},[S$,s.selected?(p(),D("span",T$,[U(e.$slots,"button",{index:a.selectedIndex,item:s.selected,valueField:r.valueField,labelField:r.labelField},()=>[Ue(re(s.selectedLabel),1)])])):B("",!0)])):B("",!0),M("div",{class:E(s.dropdownClass)},[M("div",Y$,[M("div",I$,[(p(!0),D(ie,null,he(a.items,(i,o)=>(p(),D("span",{key:i.id,"data-autocomplete-index":o,onClick:l=>s.select(o,!1,!1),class:E(["dropdown-item",o==this.cursor?"is-active":""]),tabindex:"-1"},[U(e.$slots,"item",{index:o,item:i,valueField:r.valueField,labelField:r.labelField},()=>[Ue(re(s.getValue(i,r.labelField)||i),1)])],10,x$))),128))])])],2)])}const E$=Se(k$,[["render",A$]]),L$={props:{title:{type:String,default:""}},data(){return{active:!1,item:null}},methods:{open(e=null){this.active=!0,this.item=e},close(){this.active=!1,this.item=null}}},N$={class:"modal-card"},F$={class:"modal-card-head"},R$={class:"modal-card-title"},j$=M("span",{class:"icon"},[M("i",{class:"fa fa-close"})],-1),H$=[j$],W$={class:"modal-card-body"},B$={class:"modal-card-foot align-right"};function V$(e,t,r,n,a,s){return p(),D("section",{class:E(["modal",a.active&&"is-active"||""])},[M("div",{class:"modal-background",onClick:t[0]||(t[0]=(...i)=>s.close&&s.close(...i))}),M("div",N$,[M("header",F$,[M("div",R$,[U(e.$slots,"title",{item:a.item},()=>[Ue(re(r.title),1)])]),U(e.$slots,"bar",{item:a.item}),M("button",{type:"button",class:"delete square","aria-label":"close",onClick:t[1]||(t[1]=(...i)=>s.close&&s.close(...i))},H$)]),M("section",W$,[U(e.$slots,"default",{item:a.item})]),M("div",B$,[U(e.$slots,"footer",{item:a.item,close:s.close})])])],2)}const z$=Se(L$,[["render",V$]]),U$={emit:["start","done"],props:{tag:{type:String,default:"a"},icon:String,data:Object,method:{type:String,default:"POST"},confirm:{type:String,default:""},url:String,fetchOptions:{type:Object,default:()=>({})},runClass:String,runIcon:String},computed:{item(){return this.data instanceof Ct?this.data:new Ct(this.data)},buttonClass(){return this.promise?this.runClass:""}},data(){return{promise:!1}},methods:{call(){if(this.promise||!this.url||this.confirm&&!confirm(this.confirm))return;const e=Ct.getOptions({...this.fetchOptions,method:this.method,body:JSON.stringify(this.item.data)});return this.promise=fetch(this.url,e).then(t=>t.text()).then(t=>(t=t&&JSON.parse(t)||null,this.promise=null,this.$emit("done",t),t),t=>(this.promise=null,t)),this.promise}}},K$={key:0},G$={key:1,class:"icon is-small"},q$={key:2};function Z$(e,t,r,n,a,s){return p(),le(Ot(r.tag),{onClickCapture:Qe(s.call,["stop"]),type:"button",class:E([s.buttonClass,this.promise&&"blink"||""])},{default:ee(()=>[a.promise&&r.runIcon?(p(),D("span",K$,[M("i",{class:E(r.runIcon)},null,2)])):r.icon?(p(),D("span",G$,[M("i",{class:E(r.icon)},null,2)])):B("",!0),e.$slots.default?(p(),D("span",q$,[U(e.$slots,"default")])):B("",!0)]),_:3},40,["onClickCapture","class"])}const X$=Se(U$,[["render",Z$]]),J$={data(){return{active:this.open}},props:{tag:{type:String,default:"div"},label:{type:String,default:""},labelIcon:{type:String,default:""},buttonTag:{type:String,default:"button"},activeClass:{type:String,default:"is-active"},buttonClass:{type:String,default:"button"},buttonIcon:{type:String,default:"fa fa-angle-down"},buttonIconClose:{type:String,default:"fa fa-angle-up"},contentClass:String,open:{type:Boolean,default:!1},noButton:{type:Boolean,default:!1}},methods:{toggle(){this.active=!this.active}}},Q$={key:0,class:"icon"},eD={class:"icon"};function tD(e,t,r,n,a,s){return p(),le(Ot(r.tag),{class:E([e.itemClass,a.active?r.activeClass:""])},{default:ee(()=>[U(e.$slots,"before-button",{toggle:s.toggle,active:a.active}),U(e.$slots,"button",{toggle:s.toggle,active:a.active},()=>[(p(),le(Ot(r.buttonTag),{class:E(r.buttonClass),onClick:t[0]||(t[0]=i=>s.toggle())},{default:ee(()=>[r.labelIcon?(p(),D("span",Q$,[M("i",{class:E(r.labelIcon)},null,2)])):B("",!0),M("span",null,re(r.label),1),M("span",eD,[a.active?B("",!0):(p(),D("i",{key:0,class:E(r.buttonIcon)},null,2)),a.active?(p(),D("i",{key:1,class:E(r.buttonIconClose)},null,2)):B("",!0)])]),_:1},8,["class"]))]),Vt(M("div",{class:E(r.contentClass)},[U(e.$slots,"default")],2),[[Vr,a.active]])]),_:3},8,["class"])}const rD=Se(J$,[["render",tD]]);class Bt{constructor(t,r=null,n=null){this.el=t,this.rect=t.getBoundingClientRect(),{min:r,max:n}=this.minmax(r,n),this.min=r,this.max=n,this.size=n-r}minmax(t=null,r=null){return t=t===null?this.rect.left:t,r=r===null?this.rect.right:r,{min:t,max:r}}relative(t){return new Bt(this.el,this.min-t.min,this.max-t.min)}}class js extends Bt{constructor(t,r){super(t),this.index=r}visible(t){return t.min<=this.min&&t.max>=this.max}}const nD={setup(){return{viewport:se(null),container:se(null)}},data(){return{cards:[],index:0,refresh_:0}},props:{cardSelector:{type:String,default:""},containerClass:{type:String,default:""},buttonClass:{type:String,default:"button"},leftButtonIcon:{type:String,default:"fas fa-chevron-left"},rightButtonIcon:{type:String,default:"fas fa-chevron-right"}},computed:{card(){return this.cards()[this.index]},showPrev(){return this.index>0},showNext(){if(!this.cards||this.cards.length<=1)return!1;let e=this.bullets[this.bullets.length-1];return this.index!=e},bullets(){if(!this.cards||!this.$refs.viewport)return[];let e=new Bt(this.$refs.container),t=new Bt(this.$refs.viewport).size,r=[],n=0,a=t;for(r.push(n);n<this.cards.length;)for(;n<this.cards.length;n++){let s=this.cards[n].relative(e);if(s.max>a){a=s.min+t,r.push(n),n++;break}}return r}},methods:{getCards(){return this.$refs.container?(this.cardSelector?[...this.$refs.container.querySelectorAll(this.cardSelector)]:[...this.$refs.container.children]).map((t,r)=>new js(t,r)):[]},select(e,t=!1){t&&(e=this.index+e),e=Math.min(e,this.cards.length),e=Math.max(e,0);let r=this.cards[e];if(!r)return null;r=new js(r.el);const n=new Bt(this.$refs.container),a=r.relative(n);return this.$refs.container.style.marginLeft=`-${a.min}px`,this.index=e,r.el},next(){let e=this.bullets.indexOf(this.index),t=this.bullets[e+1];this.select(t)},prev(){let e=this.bullets.indexOf(this.index),t=this.bullets[e-1];this.select(t)},refresh(){this.cards=this.getCards(),this.select(this.index),this.refresh_++}},mounted(){this.observers=[new MutationObserver(()=>this.refresh()),new ResizeObserver(()=>this.refresh())],this.observers[0].observe(this.$refs.container,{childList:!0}),this.observers[1].observe(this.$refs.container),this.refresh()},unmounted(){for(var e of this.observers)e.disconnect()}},aD={class:"a-carousel"},sD={ref:"viewport",class:"a-carousel-viewport"},iD={class:"a-carousel-bullets-container"},oD={class:"left"},lD=["onClick"],uD={key:0,class:"fa fa-circle"},cD={key:1,class:"far fa-circle"},dD={class:"right"};function fD(e,t,r,n,a,s){return p(),D("section",aD,[M("nav",sD,[M("section",{ref:"container",class:E(["a-carousel-container",r.containerClass])},[U(e.$slots,"default",{},void 0,!0)],2)],512),M("nav",iD,[M("span",oD,[s.showPrev?(p(),D("span",{key:0,class:"icon bullet",onClick:t[0]||(t[0]=i=>s.prev())},[M("i",{class:E(r.leftButtonIcon)},null,2)])):B("",!0)]),s.bullets.length>1?(p(!0),D(ie,{key:0},he(s.bullets,i=>(p(),D("span",{class:"icon bullet",key:i,onClick:o=>s.select(i)},[i==a.index?(p(),D("i",uD)):(p(),D("i",cD))],8,lD))),128)):B("",!0),M("span",dD,[s.showNext?(p(),D("span",{key:0,class:"icon bullet",onClick:t[1]||(t[1]=i=>s.next())},[M("i",{class:E(r.rightButtonIcon)},null,2)])):B("",!0)]),U(e.$slots,"bullets-right",{vBind:this},void 0,!0)])])}const hD=Se(nD,[["render",fD],["__scopeId","data-v-e8953967"]]);class vn extends Ct{constructor({sound:t={},...r}={},n={}){super({...t,...r},n)}get name(){return this.data.name}get src(){return this.data.url}}const vD={data(){return{}},props:{page:Object,title:String}};function pD(e,t,r,n,a,s){return p(),D("div",null,[U(e.$slots,"default")])}const _o=Se(vD,[["render",pD]]),mD={extends:_o,data(){return{podcasts:new hn(vn,{items:this.page.podcasts})}}};function gD(e,t,r,n,a,s){return U(e.$slots,"default",{page:e.page,podcasts:a.podcasts})}const yD=Se(mD,[["render",gD]]),bD={emits:["select","unselect","move","remove"],data(){return{selectedIndex:this.defaultIndex}},props:{listClass:String,itemClass:String,defaultIndex:{type:Number,default:-1},set:Object,orderable:{type:Boolean,default:!1},itemTag:{default:"li"},listTag:{default:"ul"}},computed:{model(){return this.set.model},items(){return this.set.items},length(){return this.set.length},selected(){return this.selectedIndex>-1&&this.items.length>this.selectedIndex>-1?this.items[this.selectedIndex]:null}},methods:{get(e){return this.set.get(e)},find(e){return this.set.find(e)},findIndex(e){return this.set.findIndex(e)},remove(e,t=!1){const r=this.set.get(e);r&&(this.set.remove(e),e<this.selectedIndex&&this.selectedIndex--,t&&this.selectedIndex==e&&this.select(e),this.$emit("remove",{index:e,item:r,set:this.set}))},select(e){return this.selectedIndex=e>-1&&this.items.length?e%this.items.length:-1,this.$emit("select",{item:this.selected,index:this.selectedIndex}),this.selectedIndex},unselect(){this.$emit("unselect",{item:this.selected,index:this.selectedIndex}),this.selectedIndex=-1},onDragStart(e){const r=`row:${e.target.dataset.index}`;e.dataTransfer.setData("text/cell",r),e.dataTransfer.dropEffect="move"},onDragOver(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDrop(e){const t=e.dataTransfer.getData("text/cell");if(!t||!t.startsWith("row:"))return;e.preventDefault();const r=Number(t.slice(4)),n=e.target.tagName==this.itemTag?e.target:e.target.closest(this.itemTag);this.$emit("move",{from:r,target:n,to:Number(n.dataset.index),set:this.set})}}};function wD(e,t,r,n,a,s){return p(),D("div",null,[U(e.$slots,"header"),(p(),le(Ot(r.listTag),{class:E(r.listClass)},{default:ee(()=>[(p(!0),D(ie,null,he(s.items,(i,o)=>(p(),le(Ot(r.itemTag),{key:o,class:E(r.itemClass),onClick:l=>s.select(o),draggable:r.orderable,"data-index":o,onDragstart:s.onDragStart,onDragover:s.onDragOver,onDrop:s.onDrop},{default:ee(()=>[U(e.$slots,"item",{selected:o==a.selectedIndex,set:r.set,index:o,item:i})]),_:2},1064,["class","onClick","draggable","data-index","onDragstart","onDragover","onDrop"]))),128))]),_:3},8,["class"])),U(e.$slots,"footer")])}const Wn=Se(bD,[["render",wD]]);function _D(e,...t){return setInterval((...r)=>{!document.hidden&&e(...r)},...t)}class $D{constructor({url:t,timeout:r=10,src:n=""}={}){this.url=t,this.timeout=r,this.src=n,this.interval=null,this.promise=null,this.items=[],this.current=null}drop(){this.promise=null}fetch({then:t=null}={}){const r=fetch(this.url).then(n=>n.ok?n.json():Promise.reject(n)).then(n=>{n=n.results,n.forEach(i=>{i.start&&(i.start=new Date(i.start)),i.end&&(i.end=new Date(i.end))}),this.items=n;const a=new Date;let s=n.find(i=>i.start&&i.start<=a<i.end)||n.length?n[0]:null;return s?(s.src=this.src,this.current=new Ct(s)):this.current=null,t&&t(this),this.items});return this.promise=r,r}_refresh(t={}){const r=this.fetch(t);return r.then(()=>{if(r!=this.promise)return[]}),r}refresh(t={}){if(this.interval===null)return this._refresh(t),this.interval=_D(()=>this._refresh(t),this.timeout*1e3),this.interval}stopRefresh(){this.interval!==null&&clearInterval(this.interval)}}const DD={props:{data:{type:Object,default:()=>{}},name:String,player:Object,page_url:String,actions:{type:Array,default:()=>[]},index:{type:Number,default:null}},computed:{item(){return this.data instanceof Ct?this.data:new vn(this.data||{})},loaded(){return this.player&&this.player.isLoaded(this.item)},playing(){return this.player&&this.player.isPlaying(this.item)},paused(){return this.player&&this.player.paused&&this.loaded},pinned(){return this.player&&this.player.sets.pin.find(this.item)}},methods:{hasAction(e){return this.actions&&this.actions.indexOf(e)!=-1}}},MD={class:"button-group actions"},kD=["href"],CD=M("span",{class:"icon is-small"},[M("i",{class:"fa fa-external-link"})],-1),OD=[CD],PD=["href"],SD=M("span",{class:"icon is-small"},[M("span",{class:"fa fa-download"})],-1),TD=[SD],YD=M("span",{class:"icon is-small"},[M("span",{class:"fa fa-star"})],-1),ID=[YD];function xD(e,t,r,n,a,s){return p(),D("div",{class:E(["a-sound-item m-0 button-group",s.playing&&"playing"||""])},[U(e.$slots,"title",{player:r.player,item:s.item,loaded:s.loaded},()=>[M("span",{class:E(["label is-flex-grow-1 align-left",s.playing&&"blink"||""]),onClick:t[0]||(t[0]=Qe(i=>e.$emit("togglePlay"),["stop"]))},re(r.name||s.item.name),3)]),U(e.$slots,"after-title",{player:r.player,item:s.item,loaded:s.loaded}),M("div",MD,[s.hasAction("page")?(p(),D("a",{key:0,class:"button action",href:s.item.data.page_url},OD,8,kD)):B("",!0),s.hasAction("download")&&s.item.data.is_downloadable?(p(),D("a",{key:1,class:"button action",href:s.item.data.url,target:"_blank"},TD,8,PD)):B("",!0),s.hasAction("pin")&&r.player&&r.player.sets.pin!=e.$parent.set?(p(),D("button",{key:2,class:E(["button action",s.pinned?"selected":"not-selected"]),onClick:t[1]||(t[1]=Qe(i=>r.player.togglePlaylist("pin",s.item),["stop"]))},ID,2)):B("",!0),U(e.$slots,"actions",{player:r.player,item:s.item,loaded:s.loaded})]),U(e.$slots,"extra-right",{player:r.player,item:s.item,loaded:s.loaded})],2)}const $o=Se(DD,[["render",xD]]),AD={extends:Wn,emits:[...Wn.emits],components:{ASoundItem:$o},props:{actions:Array,name:String,player:Object,editable:Boolean,withLink:Boolean},computed:{self(){return this},player_(){return this.player||window.aircox.player}},methods:{hasAction(e){return this.actions&&this.actions.indexOf(e)!=-1},selectNext(){let e=this.selectedIndex+1;return this.select(e>=this.items.length?-1:e)},togglePlay(e){this.player_.isPlaying(this.set.get(e))?this.player_.pause():this.select(e)}}},ED={class:"a-playlist"},LD={class:"header"},ND=["onClick"],FD=["onClick"],RD=M("span",{class:"icon is-small"},[M("span",{class:"fa fa-close"})],-1),jD=[RD];function HD(e,t,r,n,a,s){const i=Ie("ASoundItem");return p(),D("div",ED,[M("div",LD,[U(e.$slots,"header")]),M("ul",{class:E(e.listClass)},[(p(!0),D(ie,null,he(e.items,(o,l)=>(p(),D("li",{class:E([e.itemClass,r.player.isPlaying(o)?"is-active":""]),onClick:u=>!s.hasAction("play")&&e.select(l),key:l},[G(i,{data:o,index:l,set:e.set,player:s.player_,onTogglePlay:u=>s.togglePlay(l),actions:r.actions},{"after-title":ee(u=>[U(e.$slots,"after-title",pt({ref_for:!0},u))]),actions:ee(u=>[U(e.$slots,"actions",pt({ref_for:!0},u)),r.editable?(p(),D("button",{key:0,class:"button",onClick:Qe(c=>e.remove(l,!0),["stop"])},jD,8,FD)):B("",!0)]),_:2},1032,["data","index","set","player","onTogglePlay","actions"])],10,ND))),128))],2),U(e.$slots,"footer")])}const Do=Se(AD,[["render",HD]]),WD={data(){return{hoverValue:null}},props:{value:Number,max:Number,format:{type:Function,default:e=>e},progressClass:{default:"a-progress-bar"},vertical:{type:Boolean,default:!1}},computed:{valueDisplay(){return this.hoverValue===null?this.value:this.hoverValue},progressStyle(){if(!this.max)return null;let e=this.max?this.valueDisplay*100/this.max:0;return this.vertical?{height:`${e}%`}:{width:`${e}%`}}},methods:{xToValue(e){return e*this.max/this.$refs.bar.getBoundingClientRect().width},yToValue(e){return e*this.max/this.$refs.bar.getBoundingClientRect().height},valueFromEvent(e){let t=e.currentTarget.getBoundingClientRect();return this.vertical?this.yToValue(e.clientY-t.y):this.xToValue(e.clientX-t.x)},onClick(e){this.$emit("select",this.valueFromEvent(e))},onMouseMove(e){e.type=="mouseleave"?this.hoverValue=null:this.hoverValue=this.valueFromEvent(e)}}},BD={class:"a-progress m-0"},VD={class:"time-now"},zD={key:0},UD={class:"time-total"};function KD(e,t,r,n,a,s){return p(),D("div",BD,[M("time",VD,[U(e.$slots,"value",{value:r.value,max:r.max},()=>[Ue(re(r.format(r.value)),1)])]),M("div",{ref:"bar",class:"a-progress-bar-container",onClick:t[0]||(t[0]=Qe((...i)=>s.onClick&&s.onClick(...i),["stop"])),onMouseleave:t[1]||(t[1]=Qe((...i)=>s.onMouseMove&&s.onMouseMove(...i),["stop"])),onMousemove:t[2]||(t[2]=Qe((...i)=>s.onMouseMove&&s.onMouseMove(...i),["stop"]))},[M("div",{class:E(r.progressClass),style:jt(s.progressStyle)},[a.hoverValue?(p(),D("time",zD,re(r.format(a.hoverValue)),1)):(p(),D(ie,{key:1},[Ue(" ")],64))],6)],544),M("time",UD,[U(e.$slots,"value",{value:s.valueDisplay,max:r.max},()=>[Ue(re(r.format(r.max)),1)])])])}const Mo=Se(WD,[["render",KD]]),Nt={paused:0,playing:1,loading:2},GD={components:{APlaylist:Do,AProgress:Mo},data(){let e=new Audio;e.addEventListener("ended",n=>this.onState(n)),e.addEventListener("pause",n=>this.onState(n)),e.addEventListener("playing",n=>this.onState(n)),e.addEventListener("timeupdate",()=>{this.currentTime=this.audio.currentTime}),e.addEventListener("durationchange",()=>{this.duration=Number.isFinite(this.audio.duration)?this.audio.duration:null});let t=this.liveArgs?rn(new $D(this.liveArgs)):null;t&&t.refresh();const r={};for(const n in this.playlists)r[n]=hn.storeLoad(vn,"playlist."+n,{max:30,unique:!0});return{audio:e,duration:0,currentTime:0,state:Nt.paused,live:t,loaded:null,panel:null,playlistName:null,sets:r}},props:{buttonTitle:String,liveArgs:Object,playlists:Object},computed:{self(){return this},paused(){return this.state==Nt.paused},playing(){return this.state==Nt.playing},loading(){return this.state==Nt.loading},playlist(){return this.playlistName?this.$refs[this.playlistName][0]:null},current(){return this.loaded?this.loaded:this.live&&this.live.current}},methods:{displayTime(e){e=parseInt(e);let t=e%60;e=(e-t)/60;let r=e%60,n=(e-r)/60,[a,s,i]=[t.toString().padStart(2,"0"),r.toString().padStart(2,"0"),n.toString().padStart(2,"0")];return n?`${i}:${s}:${a}`:`${s}:${a}`},playlistButtonClass(e){let t=this.sets[e];return(t?(t.length?"":"has-text-grey-light ")+(this.panel==e?"open":this.playlistName==e?"active":""):"")+" button"},togglePanel(e){this.panel=this.panel==e?null:e},isLoaded(e){return this.loaded&&this.loaded.id==e.id},isPlaying(e){return this.isLoaded(e)&&!this.paused},_setPlaylist(e){this.playlistName=e;for(var t in this.sets)t!=e&&this.$refs[t]&&this.$refs[t][0].unselect()},load(e=null,t=0){let r=null;if(e!==null&&t!=-1){let s=this.$refs[e][0].get(t);if(!s)throw`No sound at index ${t} for playlist ${e}`;this.loaded=s,r=s.src}else this.loaded=null,r=this.live.src;this._setPlaylist(e);const n=this.audio;if(r instanceof Array){n.innerHTML="",n.removeAttribute("src");for(var a of r){let s=document.createElement("source");s.setAttribute("src",a),n.appendChild(s)}}else n.src=r;n.load()},play(e=null,t=0){this.load(e,t),this.audio.play().catch(r=>console.error(r))},push(e,...t){return this.sets[e].push(...t)},playItems(e,...t){let r=this.push(e,...t);this.$refs[e][0].selectedIndex=r,this.play(e,r)},playButtonClick(e){var t=JSON.parse(e.currentTarget.dataset.sounds);this.playItems("queue",...t)},pause(){this.audio.pause()},togglePlay(e=null,t=0){if(e!==null){this.panel=null;let r=this.sets[e].get(t);if(!this.playlist||this.playlistName!==e||this.loaded!=r){this.play(e,t);return}}this.paused?this.audio.play().catch(r=>console.error(r)):this.audio.pause()},togglePlaylist(e,t){const r=this.sets[e];let n=r.findIndex(t);n>-1?r.remove(n):r.push(t)},onState(e){const t=this.audio;this.state=t.paused?Nt.paused:Nt.playing,e.type=="ended"&&(!this.playlist||this.playlist.selectNext()==-1)&&this.play()}},mounted(){this.load()}},qD={class:"a-player"},ZD={class:"title is-flex-grow-1"},XD={class:"icon"},JD={class:"action button no-border"},QD=M("i",{class:"fa fa-close"},null,-1),eM=[QD],tM={key:0,class:"a-player-progress"},rM={class:"a-player-bar button-group"},nM=["title","aria-label"],aM={key:0,class:"fas fa-pause"},sM={key:1,class:"fas fa-play"},iM=M("span",{class:"icon is-size-6 has-text-danger"},[M("span",{class:"fa fa-circle"})],-1),oM=[iM],lM=["onClick"],uM={class:"is-size-6"},cM={class:"icon"};function dM(e,t,r,n,a,s){const i=Ie("APlaylist"),o=Ie("AProgress");return p(),D("div",qD,[M("div",{class:E(["a-player-panels",a.panel?"is-open":""])},[(p(!0),D(ie,null,he(r.playlists,(l,u)=>Vt((p(),le(i,{key:u,ref_for:!0,ref:u,class:"a-player-panel a-playlist",actions:["page",u!="pin"&&"pin"||""],editable:!0,player:s.self,set:a.sets[u],onSelect:c=>s.togglePlay(u,c.index),listClass:"menu-list",itemClass:"menu-item"},{header:ee(()=>[M("div",ZD,[M("span",XD,[M("i",{class:E(l[1])},null,2)]),Ue(" "+re(l[0]),1)]),M("button",JD,[M("span",{class:"icon",onClick:t[0]||(t[0]=Qe(c=>s.togglePanel(),["stop"]))},eM)])]),_:2},1032,["actions","player","set","onSelect"])),[[Vr,a.panel==u&&a.sets[u].length]])),128))],2),a.loaded&&a.duration?(p(),D("div",tM,[a.loaded&&a.duration?(p(),le(o,{key:0,value:a.currentTime,max:this.duration,format:s.displayTime,onSelect:t[1]||(t[1]=l=>a.audio.currentTime=l)},null,8,["value","max","format"])):B("",!0)])):B("",!0),M("div",rM,[M("button",{class:"button",onClick:t[2]||(t[2]=l=>s.togglePlay()),title:r.buttonTitle,"aria-label":r.buttonTitle},[s.playing?(p(),D("span",aM)):(p(),D("span",sM))],8,nM),M("div",{class:E(["a-player-bar-content",a.loaded&&a.duration?"has-progress":""])},[U(e.$slots,"content",{loaded:a.loaded,live:a.live,current:s.current})],2),a.loaded?(p(),D("button",{key:0,class:"button has-text-weight-bold",onClick:t[3]||(t[3]=l=>s.play()),title:"Live"},oM)):B("",!0),a.sets?(p(!0),D(ie,{key:1},he(r.playlists,(l,u)=>Vt((p(),D("button",{key:u,class:E(s.playlistButtonClass(u)),onClick:c=>s.togglePanel(u)},[M("span",uM,re(a.sets[u]&&a.sets[u].length),1),M("span",cM,[M("i",{class:E(l[1])},null,2)])],10,lM)),[[Vr,a.sets[u]&&a.sets[u].length]])),128)):B("",!0)])])}const fM=Se(GD,[["render",dM]]),hM={props:{initialActive:{type:Boolean,default:null},el:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:"fa fa-bars"},ariaLabel:{type:String,default:""},ariaDescription:{type:String,default:""},activeClass:{type:String,default:"active"},group:{type:String,default:""}},data(){return{active:this.initialActive}},computed:{groupClass(){return this.group&&"a-switch-"+this.group||""},buttonClass(){return[this.active&&"active"||"",this.groupClass]}},methods:{toggle(){this.set(!this.active)},set(e){if(this.el){const t=document.querySelector(this.el);e?t.classList.add(this.activeClass):t.classList.remove(this.activeClass)}this.active=e,e&&this.resetGroup()},resetGroup(){if(!this.groupClass)return;const e=document.querySelectorAll("."+this.groupClass);for(var t of e)t!=this.$el&&t.__vnode.ctx.ctx.set(!1)}},mounted(){this.initialActive!==null&&this.set(this.initialActive)}},vM=["title","aria-label","aria-description"],pM={class:"icon"},mM={key:0};function gM(e,t,r,n,a,s){return p(),D("button",{title:r.ariaLabel,type:"button","aria-label":r.ariaLabel||r.label,"aria-description":r.ariaDescription,onClick:t[0]||(t[0]=(...i)=>s.toggle&&s.toggle(...i)),class:E(s.buttonClass)},[U(e.$slots,"default",{active:a.active},()=>[M("span",pM,[M("i",{class:E(r.icon)},null,2)]),r.label?(p(),D("label",mM,re(r.label),1)):B("",!0)])],10,vM)}const yM=Se(hM,[["render",gM]]),ko={AActionButton:X$,AAutocomplete:E$,AModal:z$,ACarousel:hD,ADropdown:rD,AEpisode:yD,AList:Wn,APage:_o,APlayer:fM,APlaylist:Do,AProgress:Mo,ASoundItem:$o,ASwitch:yM},bM={el:"#app",delimiters:["[[","]]"],components:{...ko,VCalendar:yo,VDatepicker:$$},computed:{player(){return window.aircox.player}},methods:{deleteElements(e){for(var t of document.querySelectorAll(e))t.parentNode.removeChild(t)},fileSelected(e,t,r){const n=this.$refs[e].item;n&&(this.$refs[t].value=n.id,r&&(r.src=n.file))}}},wM={el:"#player",delimiters:["[[","]]"],components:{...ko}};class _M{constructor(t,{loadingClass:r="loading",append:n=!1}={}){this.el=t,this.append=n,this.loadingClass=r}get target(){return this._target||(this._target=document.querySelector(this.el)),this._target}reset(){this._target=null}enable(t=null){if(this._pageChanged)throw"Already enabled, please disable me";t||(t=this.target||document.body),this.historySave(document.location,!0),this._pageChanged=r=>this.pageChanged(r),this._statePopped=r=>this.statePopped(r),t.addEventListener("click",this._pageChanged,!0),t.addEventListener("submit",this._pageChanged,!0),window.addEventListener("popstate",this._statePopped,!0)}disable(){this.target.removeEventListener("click",this._pageChanged,!0),this.target.removeEventListener("submit",this._pageChanged,!0),window.removeEventListener("popstate",this._statePopped,!0),this._pageChanged=null,this._statePopped=null}fetch(t,r){return fetch(t,r)}load(t,{mount:r=!0,scroll:n=[0,0],...a}={}){return this.loadingClass&&this.target.classList.add(this.loadingClass),this.onLoad&&this.onLoad({url:t,el:this.el,options:a}),n&&window.scroll(...n),this.fetch(t,a).then(s=>s.text()).then(s=>{this.loadingClass&&this.target.classList.remove(this.loadingClass);var i=new DOMParser().parseFromString(s,"text/html"),o=i.querySelectorAll(this.el),l={url:t,content:o||[document.createTextNode(s)],title:i.title,append:this.append};return r&&this.mount(l),l})}mount({content:t,title:r=null,...n}={}){this.onPreMount&&this.onPreMount({target:this.target,content:t,items:a,title:r});var a=null;t&&(a=this.mountContent(t,n)),r&&(document.title=r),this.onMount&&this.onMount({target:this.target,content:t,items:a,title:r})}mountContent(t,{append:r=!1}={}){if(typeof t=="string")return this.target.innerHTML=r?this.target.innerHTML+t:t,[];r||(this.target.innerHTML="");var n=document.createDocumentFragment(),a=[];for(var s of t)for(;s.firstChild;)a.push(s.firstChild),n.appendChild(s.firstChild);return this.target.append(n),a}historySave(t,r=!1){const n={content:this.target.innerHTML,title:document.title};r?history.replaceState(n,"",t):history.pushState(n,"",t)}dispatchPageLoaded(t){var r=new CustomEvent("pageLoaded",{detail:t});document.dispatchEvent(r)}pageChanged(t){let r=t.type=="submit",n=r||t.target.tagName=="A"?t.target:t.target.closest("a");if(!n||n.hasAttribute("target")||n.dataset&&n.dataset.forceReload)return;let a=r?n.getAttribute("action")||"":n.getAttribute("href"),s=window.location.protocol+"//"+window.location.hostname,i=(a===""||a.startsWith("/")||a.startsWith("?")||a.startsWith(s))&&a.indexOf("wp-admin")==-1;if(a===null||!i)return;let o={};if(r){let l=new FormData(t.target);n.method=="get"?a+="?"+new URLSearchParams(l).toString():o={...o,method:n.method,body:l}}this.load(a,o).then(()=>this.dispatchPageLoaded(a)).then(()=>this.historySave(a)),t.preventDefault(),t.stopPropagation()}statePopped(t){const r=t.state;r&&r.content&&this.mount({content:r.content,title:r.title})}}class Hs{constructor({el:t=null,props:r={},...n}={},a={}){this.appConfig=n,this.appConfig.el=t,this.props=r,this.pageLoad=new _M(t,a),this.pageLoad.onPreMount=s=>this.onPreMount(s),this.pageLoad.onMount=s=>this.onMount(s),this.backgroundLoad=new BackgroundLoad}enable(t=!0){t&&this.pageLoad.enable(document.body),this.mount()}mount(){this.app&&this.unmount();const t=Yo(this.appConfig,this.props);t.config.globalProperties.window=window,this.vm=t.mount(this.pageLoad.el),this.app=t}unmount(){if(this.app){try{this.app.unmount()}catch{}this.app=null,this.vm=null,this.pageLoad.reset()}}onPreMount(){this.unmount()}onMount(){this.mount()}}window.aircox={loader:null,get app(){return this.loader.app},playerLoader:null,get playerApp(){return this.playerLoader&&this.playerLoader.app},get player(){return this.playerLoader.vm&&this.playerLoader.vm.$refs.player},Set:hn,Sound:vn,init(e=null,{hotReload:t=!1,el:r=null,config:n=null,playerConfig:a=null,initApp:s=!0,initPlayer:i=!0,loader:o=null,playerLoader:l=null}={}){i&&(a=a||wM,l=l||new Hs(a),l.enable(!1),this.playerLoader=l,document.addEventListener("keyup",u=>this.onKeyPress(u),!1)),s&&(n=n||window.App||bM,n.el=r||n.el,o=o||new Hs({el:r,props:e,...n}),o.enable(t),this.loader=o)},onKeyPress(){},filter_menu(e){var t=new RegExp(e.target.value,"gi"),r=e.target.closest(".navbar-dropdown");if(e.target.value)for(let n of r.querySelectorAll("a.navbar-item"))n.style.display=n.innerHTML.search(t)==-1?"none":null;else for(let n of r.querySelectorAll("a.navbar-item"))n.style.display=null},pickDate(e,t){e=`${e}?date=${t.id}`,this.loader.pageLoad.load(e)}};export{bM as A,Ct as M,vn as S,Se as _,X$ as a,z$ as b,Wn as c,hn as d,Uo as e,Nl as f,M$ as g,E$ as h,ko as i,_D as s};
//# sourceMappingURL=index.js.map