diff --git a/assets/js/components/LiveCommunity.vue b/assets/js/components/LiveCommunity.vue index 7e7b2d88cc..4304f3e6af 100644 --- a/assets/js/components/LiveCommunity.vue +++ b/assets/js/components/LiveCommunity.vue @@ -44,6 +44,8 @@ import SavingsTile from "./SavingsTile.vue"; import formatter from "../mixins/formatter"; import communityApi from "../communityApi"; +const UPDATE_INTERVAL_SECONDS = 10; + export default { name: "LiveCommunity", components: { SavingsTile }, @@ -80,10 +82,10 @@ export default { }, }, async mounted() { - this.refresh = setInterval(this.update, 5000); + this.refresh = setInterval(this.update, UPDATE_INTERVAL_SECONDS * 1e3); await this.update(); this.$nextTick(() => { - this.animationDuration = 5; + this.animationDuration = UPDATE_INTERVAL_SECONDS; }); }, unmounted() { diff --git a/dist/assets/index.3dafc84f.js b/dist/assets/index.e8c76371.js similarity index 71% rename from dist/assets/index.3dafc84f.js rename to dist/assets/index.e8c76371.js index d29bf98d46..0bad0ef58c 100644 --- a/dist/assets/index.3dafc84f.js +++ b/dist/assets/index.e8c76371.js @@ -1,14 +1,14 @@ -var Hv=Object.defineProperty;var Bv=(t,e,n)=>e in t?Hv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Uv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xr=(t,e,n)=>(Bv(t,typeof e!="symbol"?e+"":e,n),n);var OD=Uv((MD,uo)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var _t="top",Ft="bottom",Vt="right",vt="left",ha="auto",Zi=[_t,Ft,Vt,vt],Yr="start",Pi="end",Om="clippingParents",qc="viewport",hi="popper",Pm="reference",Wl=Zi.reduce(function(t,e){return t.concat([e+"-"+Yr,e+"-"+Pi])},[]),Gc=[].concat(Zi,[ha]).reduce(function(t,e){return t.concat([e,e+"-"+Yr,e+"-"+Pi])},[]),Mm="beforeRead",Im="read",Dm="afterRead",$m="beforeMain",Rm="main",Fm="afterMain",Vm="beforeWrite",Hm="write",Bm="afterWrite",Um=[Mm,Im,Dm,$m,Rm,Fm,Vm,Hm,Bm];function kn(t){return t?(t.nodeName||"").toLowerCase():null}function nn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function qr(t){var e=nn(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=nn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Xc(t){if(typeof ShadowRoot>"u")return!1;var e=nn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function jv(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Qt(s)||!kn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Wv(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(l,c){return l[c]="",l},{});!Qt(i)||!kn(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Qc={name:"applyStyles",enabled:!0,phase:"write",fn:jv,effect:Wv,requires:["computeStyles"]};function Tn(t){return t.split("-")[0]}var Br=Math.max,Wo=Math.min,Mi=Math.round;function zl(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function jm(){return!/^((?!chrome|android).)*safari/i.test(zl())}function Ii(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&Qt(t)&&(i=t.offsetWidth>0&&Mi(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mi(r.height)/t.offsetHeight||1);var o=qr(t)?nn(t):window,a=o.visualViewport,l=!jm()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Jc(t){var e=Ii(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Wm(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Xc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jn(t){return nn(t).getComputedStyle(t)}function zv(t){return["table","td","th"].indexOf(kn(t))>=0}function yr(t){return((qr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ma(t){return kn(t)==="html"?t:t.assignedSlot||t.parentNode||(Xc(t)?t.host:null)||yr(t)}function Af(t){return!Qt(t)||jn(t).position==="fixed"?null:t.offsetParent}function Kv(t){var e=/firefox/i.test(zl()),n=/Trident/i.test(zl());if(n&&Qt(t)){var r=jn(t);if(r.position==="fixed")return null}var i=ma(t);for(Xc(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(kn(i))<0;){var s=jn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function eo(t){for(var e=nn(t),n=Af(t);n&&zv(n)&&jn(n).position==="static";)n=Af(n);return n&&(kn(n)==="html"||kn(n)==="body"&&jn(n).position==="static")?e:n||Kv(t)||e}function Zc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function vs(t,e,n){return Br(t,Wo(e,n))}function Yv(t,e,n){var r=vs(t,e,n);return r>n?n:r}function zm(){return{top:0,right:0,bottom:0,left:0}}function Km(t){return Object.assign({},zm(),t)}function Ym(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var qv=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Km(typeof e!="number"?e:Ym(e,Zi))};function Gv(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Tn(n.placement),l=Zc(a),c=[vt,Vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!o)){var d=qv(i.padding,n),f=Jc(s),m=l==="y"?_t:vt,w=l==="y"?Ft:Vt,g=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],E=o[l]-n.rects.reference[l],_=eo(s),C=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=g/2-E/2,v=d[m],b=C-f[u]-d[w],k=C/2-f[u]/2+S,x=vs(v,k,b),N=l;n.modifiersData[r]=(e={},e[N]=x,e.centerOffset=x-k,e)}}function Xv(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Wm(e.elements.popper,i)||(e.elements.arrow=i))}const qm={name:"arrow",enabled:!0,phase:"main",fn:Gv,effect:Xv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(t){return t.split("-")[1]}var Qv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jv(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Mi(e*i)/i||0,y:Mi(n*i)/i||0}}function kf(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=o.x,m=f===void 0?0:f,w=o.y,g=w===void 0?0:w,E=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=E.x,g=E.y;var _=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),S=vt,v=_t,b=window;if(c){var k=eo(n),x="clientHeight",N="clientWidth";if(k===nn(n)&&(k=yr(n),jn(k).position!=="static"&&a==="absolute"&&(x="scrollHeight",N="scrollWidth")),k=k,i===_t||(i===vt||i===Vt)&&s===Pi){v=Ft;var O=d&&k===b&&b.visualViewport?b.visualViewport.height:k[x];g-=O-r.height,g*=l?1:-1}if(i===vt||(i===_t||i===Ft)&&s===Pi){S=Vt;var B=d&&k===b&&b.visualViewport?b.visualViewport.width:k[N];m-=B-r.width,m*=l?1:-1}}var q=Object.assign({position:a},c&&Qv),Q=u===!0?Jv({x:m,y:g}):{x:m,y:g};if(m=Q.x,g=Q.y,l){var ee;return Object.assign({},q,(ee={},ee[v]=C?"0":"",ee[S]=_?"0":"",ee.transform=(b.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",ee))}return Object.assign({},q,(e={},e[v]=C?g+"px":"",e[S]=_?m+"px":"",e.transform="",e))}function Zv(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Tn(e.placement),variation:Di(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kf(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kf(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const eu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zv,data:{}};var ho={passive:!0};function e0(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=nn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ho)}),a&&l.addEventListener("resize",n.update,ho),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ho)}),a&&l.removeEventListener("resize",n.update,ho)}}const tu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:e0,data:{}};var t0={left:"right",right:"left",bottom:"top",top:"bottom"};function Lo(t){return t.replace(/left|right|bottom|top/g,function(e){return t0[e]})}var n0={start:"end",end:"start"};function xf(t){return t.replace(/start|end/g,function(e){return n0[e]})}function nu(t){var e=nn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ru(t){return Ii(yr(t)).left+nu(t).scrollLeft}function r0(t,e){var n=nn(t),r=yr(t),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var c=jm();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+ru(t),y:l}}function i0(t){var e,n=yr(t),r=nu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Br(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Br(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ru(t),l=-r.scrollTop;return jn(i||n).direction==="rtl"&&(a+=Br(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function iu(t){var e=jn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Gm(t){return["html","body","#document"].indexOf(kn(t))>=0?t.ownerDocument.body:Qt(t)&&iu(t)?t:Gm(ma(t))}function bs(t,e){var n;e===void 0&&(e=[]);var r=Gm(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=nn(r),o=i?[s].concat(s.visualViewport||[],iu(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(bs(ma(o)))}function Kl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function s0(t,e){var n=Ii(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Lf(t,e,n){return e===qc?Kl(r0(t,n)):qr(e)?s0(e,n):Kl(i0(yr(t)))}function o0(t){var e=bs(ma(t)),n=["absolute","fixed"].indexOf(jn(t).position)>=0,r=n&&Qt(t)?eo(t):t;return qr(r)?e.filter(function(i){return qr(i)&&Wm(i,r)&&kn(i)!=="body"}):[]}function a0(t,e,n,r){var i=e==="clippingParents"?o0(t):[].concat(e),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,c){var u=Lf(t,c,r);return l.top=Br(u.top,l.top),l.right=Wo(u.right,l.right),l.bottom=Wo(u.bottom,l.bottom),l.left=Br(u.left,l.left),l},Lf(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Xm(t){var e=t.reference,n=t.element,r=t.placement,i=r?Tn(r):null,s=r?Di(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case _t:l={x:o,y:e.y-n.height};break;case Ft:l={x:o,y:e.y+e.height};break;case Vt:l={x:e.x+e.width,y:a};break;case vt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Zc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Yr:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Pi:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function $i(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,a=n.boundary,l=a===void 0?Om:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?hi:d,m=n.altBoundary,w=m===void 0?!1:m,g=n.padding,E=g===void 0?0:g,_=Km(typeof E!="number"?E:Ym(E,Zi)),C=f===hi?Pm:hi,S=t.rects.popper,v=t.elements[w?C:f],b=a0(qr(v)?v:v.contextElement||yr(t.elements.popper),l,u,o),k=Ii(t.elements.reference),x=Xm({reference:k,element:S,strategy:"absolute",placement:i}),N=Kl(Object.assign({},S,x)),O=f===hi?N:k,B={top:b.top-O.top+_.top,bottom:O.bottom-b.bottom+_.bottom,left:b.left-O.left+_.left,right:O.right-b.right+_.right},q=t.modifiersData.offset;if(f===hi&&q){var Q=q[i];Object.keys(B).forEach(function(ee){var I=[Vt,Ft].indexOf(ee)>=0?1:-1,M=[_t,Ft].indexOf(ee)>=0?"y":"x";B[ee]+=Q[M]*I})}return B}function l0(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Di(r),d=u?a?Wl:Wl.filter(function(w){return Di(w)===u}):Zi,f=d.filter(function(w){return c.indexOf(w)>=0});f.length===0&&(f=d);var m=f.reduce(function(w,g){return w[g]=$i(t,{placement:g,boundary:i,rootBoundary:s,padding:o})[Tn(g)],w},{});return Object.keys(m).sort(function(w,g){return m[w]-m[g]})}function c0(t){if(Tn(t)===ha)return[];var e=Lo(t);return[xf(t),e,xf(e)]}function u0(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,w=m===void 0?!0:m,g=n.allowedAutoPlacements,E=e.options.placement,_=Tn(E),C=_===E,S=l||(C||!w?[Lo(E)]:c0(E)),v=[E].concat(S).reduce(function(me,R){return me.concat(Tn(R)===ha?l0(e,{placement:R,boundary:u,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:g}):R)},[]),b=e.rects.reference,k=e.rects.popper,x=new Map,N=!0,O=v[0],B=0;B=0,M=I?"width":"height",Y=$i(e,{placement:q,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),z=I?ee?Vt:vt:ee?Ft:_t;b[M]>k[M]&&(z=Lo(z));var te=Lo(z),se=[];if(s&&se.push(Y[Q]<=0),a&&se.push(Y[z]<=0,Y[te]<=0),se.every(function(me){return me})){O=q,N=!1;break}x.set(q,se)}if(N)for(var ce=w?3:1,he=function(R){var X=v.find(function(U){var Z=x.get(U);if(Z)return Z.slice(0,R).every(function(pe){return pe})});if(X)return O=X,"break"},fe=ce;fe>0;fe--){var Ne=he(fe);if(Ne==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}const Qm={name:"flip",enabled:!0,phase:"main",fn:u0,requiresIfExists:["offset"],data:{_skip:!1}};function Nf(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Of(t){return[_t,Vt,Ft,vt].some(function(e){return t[e]>=0})}function f0(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=$i(e,{elementContext:"reference"}),a=$i(e,{altBoundary:!0}),l=Nf(o,r),c=Nf(a,i,s),u=Of(l),d=Of(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Jm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f0};function d0(t,e,n){var r=Tn(t),i=[vt,_t].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[vt,Vt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function h0(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=Gc.reduce(function(u,d){return u[d]=d0(d,e.rects,s),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}const Zm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:h0};function m0(t){var e=t.state,n=t.name;e.modifiersData[n]=Xm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const su={name:"popperOffsets",enabled:!0,phase:"read",fn:m0,data:{}};function p0(t){return t==="x"?"y":"x"}function g0(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,w=n.tetherOffset,g=w===void 0?0:w,E=$i(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=Tn(e.placement),C=Di(e.placement),S=!C,v=Zc(_),b=p0(v),k=e.modifiersData.popperOffsets,x=e.rects.reference,N=e.rects.popper,O=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,B=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Q={x:0,y:0};if(!!k){if(s){var ee,I=v==="y"?_t:vt,M=v==="y"?Ft:Vt,Y=v==="y"?"height":"width",z=k[v],te=z+E[I],se=z-E[M],ce=m?-N[Y]/2:0,he=C===Yr?x[Y]:N[Y],fe=C===Yr?-N[Y]:-x[Y],Ne=e.elements.arrow,me=m&&Ne?Jc(Ne):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zm(),X=R[I],U=R[M],Z=vs(0,x[Y],me[Y]),pe=S?x[Y]/2-ce-Z-X-B.mainAxis:he-Z-X-B.mainAxis,ge=S?-x[Y]/2+ce+Z+U+B.mainAxis:fe+Z+U+B.mainAxis,le=e.elements.arrow&&eo(e.elements.arrow),oe=le?v==="y"?le.clientTop||0:le.clientLeft||0:0,h=(ee=q==null?void 0:q[v])!=null?ee:0,p=z+pe-h-oe,T=z+ge-h,L=vs(m?Wo(te,p):te,z,m?Br(se,T):se);k[v]=L,Q[v]=L-z}if(a){var D,H=v==="x"?_t:vt,G=v==="x"?Ft:Vt,W=k[b],j=b==="y"?"height":"width",A=W+E[H],$=W-E[G],J=[_t,vt].indexOf(_)!==-1,ne=(D=q==null?void 0:q[b])!=null?D:0,ue=J?A:W-x[j]-N[j]-ne+B.altAxis,be=J?W+x[j]+N[j]-ne-B.altAxis:$,Ce=m&&J?Yv(ue,W,be):vs(m?ue:A,W,m?be:$);k[b]=Ce,Q[b]=Ce-W}e.modifiersData[r]=Q}}const ep={name:"preventOverflow",enabled:!0,phase:"main",fn:g0,requiresIfExists:["offset"]};function _0(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function v0(t){return t===nn(t)||!Qt(t)?nu(t):_0(t)}function b0(t){var e=t.getBoundingClientRect(),n=Mi(e.width)/t.offsetWidth||1,r=Mi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function y0(t,e,n){n===void 0&&(n=!1);var r=Qt(e),i=Qt(e)&&b0(e),s=yr(e),o=Ii(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kn(e)!=="body"||iu(s))&&(a=v0(e)),Qt(e)?(l=Ii(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=ru(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function E0(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function w0(t){var e=E0(t);return Um.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function T0(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function C0(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Pf={placement:"bottom",modifiers:[],strategy:"absolute"};function Mf(){for(var t=arguments.length,e=new Array(t),n=0;ne in t?Bv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var jv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xr=(t,e,n)=>(Uv(t,typeof e!="symbol"?e+"":e,n),n);var PD=jv((ID,uo)=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var _t="top",Ft="bottom",Vt="right",vt="left",ha="auto",Zi=[_t,Ft,Vt,vt],Yr="start",Pi="end",Pm="clippingParents",qc="viewport",hi="popper",Mm="reference",Wl=Zi.reduce(function(t,e){return t.concat([e+"-"+Yr,e+"-"+Pi])},[]),Gc=[].concat(Zi,[ha]).reduce(function(t,e){return t.concat([e,e+"-"+Yr,e+"-"+Pi])},[]),Im="beforeRead",Dm="read",$m="afterRead",Rm="beforeMain",Fm="main",Vm="afterMain",Hm="beforeWrite",Bm="write",Um="afterWrite",jm=[Im,Dm,$m,Rm,Fm,Vm,Hm,Bm,Um];function kn(t){return t?(t.nodeName||"").toLowerCase():null}function nn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function qr(t){var e=nn(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=nn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Xc(t){if(typeof ShadowRoot>"u")return!1;var e=nn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Wv(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Qt(s)||!kn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function zv(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(l,c){return l[c]="",l},{});!Qt(i)||!kn(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Qc={name:"applyStyles",enabled:!0,phase:"write",fn:Wv,effect:zv,requires:["computeStyles"]};function Tn(t){return t.split("-")[0]}var Br=Math.max,Wo=Math.min,Mi=Math.round;function zl(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wm(){return!/^((?!chrome|android).)*safari/i.test(zl())}function Ii(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&Qt(t)&&(i=t.offsetWidth>0&&Mi(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mi(r.height)/t.offsetHeight||1);var o=qr(t)?nn(t):window,a=o.visualViewport,l=!Wm()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Jc(t){var e=Ii(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function zm(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Xc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jn(t){return nn(t).getComputedStyle(t)}function Kv(t){return["table","td","th"].indexOf(kn(t))>=0}function yr(t){return((qr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ma(t){return kn(t)==="html"?t:t.assignedSlot||t.parentNode||(Xc(t)?t.host:null)||yr(t)}function Af(t){return!Qt(t)||jn(t).position==="fixed"?null:t.offsetParent}function Yv(t){var e=/firefox/i.test(zl()),n=/Trident/i.test(zl());if(n&&Qt(t)){var r=jn(t);if(r.position==="fixed")return null}var i=ma(t);for(Xc(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(kn(i))<0;){var s=jn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function eo(t){for(var e=nn(t),n=Af(t);n&&Kv(n)&&jn(n).position==="static";)n=Af(n);return n&&(kn(n)==="html"||kn(n)==="body"&&jn(n).position==="static")?e:n||Yv(t)||e}function Zc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function vs(t,e,n){return Br(t,Wo(e,n))}function qv(t,e,n){var r=vs(t,e,n);return r>n?n:r}function Km(){return{top:0,right:0,bottom:0,left:0}}function Ym(t){return Object.assign({},Km(),t)}function qm(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Gv=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Ym(typeof e!="number"?e:qm(e,Zi))};function Xv(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Tn(n.placement),l=Zc(a),c=[vt,Vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!o)){var d=Gv(i.padding,n),f=Jc(s),m=l==="y"?_t:vt,w=l==="y"?Ft:Vt,g=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],E=o[l]-n.rects.reference[l],_=eo(s),C=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=g/2-E/2,v=d[m],b=C-f[u]-d[w],k=C/2-f[u]/2+S,x=vs(v,k,b),N=l;n.modifiersData[r]=(e={},e[N]=x,e.centerOffset=x-k,e)}}function Qv(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!zm(e.elements.popper,i)||(e.elements.arrow=i))}const Gm={name:"arrow",enabled:!0,phase:"main",fn:Xv,effect:Qv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(t){return t.split("-")[1]}var Jv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zv(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Mi(e*i)/i||0,y:Mi(n*i)/i||0}}function kf(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=o.x,m=f===void 0?0:f,w=o.y,g=w===void 0?0:w,E=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=E.x,g=E.y;var _=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),S=vt,v=_t,b=window;if(c){var k=eo(n),x="clientHeight",N="clientWidth";if(k===nn(n)&&(k=yr(n),jn(k).position!=="static"&&a==="absolute"&&(x="scrollHeight",N="scrollWidth")),k=k,i===_t||(i===vt||i===Vt)&&s===Pi){v=Ft;var O=d&&k===b&&b.visualViewport?b.visualViewport.height:k[x];g-=O-r.height,g*=l?1:-1}if(i===vt||(i===_t||i===Ft)&&s===Pi){S=Vt;var B=d&&k===b&&b.visualViewport?b.visualViewport.width:k[N];m-=B-r.width,m*=l?1:-1}}var q=Object.assign({position:a},c&&Jv),Q=u===!0?Zv({x:m,y:g}):{x:m,y:g};if(m=Q.x,g=Q.y,l){var ee;return Object.assign({},q,(ee={},ee[v]=C?"0":"",ee[S]=_?"0":"",ee.transform=(b.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",ee))}return Object.assign({},q,(e={},e[v]=C?g+"px":"",e[S]=_?m+"px":"",e.transform="",e))}function e0(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Tn(e.placement),variation:Di(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kf(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kf(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const eu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e0,data:{}};var ho={passive:!0};function t0(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=nn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ho)}),a&&l.addEventListener("resize",n.update,ho),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ho)}),a&&l.removeEventListener("resize",n.update,ho)}}const tu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:t0,data:{}};var n0={left:"right",right:"left",bottom:"top",top:"bottom"};function Lo(t){return t.replace(/left|right|bottom|top/g,function(e){return n0[e]})}var r0={start:"end",end:"start"};function xf(t){return t.replace(/start|end/g,function(e){return r0[e]})}function nu(t){var e=nn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ru(t){return Ii(yr(t)).left+nu(t).scrollLeft}function i0(t,e){var n=nn(t),r=yr(t),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var c=Wm();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+ru(t),y:l}}function s0(t){var e,n=yr(t),r=nu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Br(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Br(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ru(t),l=-r.scrollTop;return jn(i||n).direction==="rtl"&&(a+=Br(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function iu(t){var e=jn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Xm(t){return["html","body","#document"].indexOf(kn(t))>=0?t.ownerDocument.body:Qt(t)&&iu(t)?t:Xm(ma(t))}function bs(t,e){var n;e===void 0&&(e=[]);var r=Xm(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=nn(r),o=i?[s].concat(s.visualViewport||[],iu(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(bs(ma(o)))}function Kl(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function o0(t,e){var n=Ii(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Lf(t,e,n){return e===qc?Kl(i0(t,n)):qr(e)?o0(e,n):Kl(s0(yr(t)))}function a0(t){var e=bs(ma(t)),n=["absolute","fixed"].indexOf(jn(t).position)>=0,r=n&&Qt(t)?eo(t):t;return qr(r)?e.filter(function(i){return qr(i)&&zm(i,r)&&kn(i)!=="body"}):[]}function l0(t,e,n,r){var i=e==="clippingParents"?a0(t):[].concat(e),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,c){var u=Lf(t,c,r);return l.top=Br(u.top,l.top),l.right=Wo(u.right,l.right),l.bottom=Wo(u.bottom,l.bottom),l.left=Br(u.left,l.left),l},Lf(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Qm(t){var e=t.reference,n=t.element,r=t.placement,i=r?Tn(r):null,s=r?Di(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case _t:l={x:o,y:e.y-n.height};break;case Ft:l={x:o,y:e.y+e.height};break;case Vt:l={x:e.x+e.width,y:a};break;case vt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Zc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Yr:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Pi:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function $i(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,a=n.boundary,l=a===void 0?Pm:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?hi:d,m=n.altBoundary,w=m===void 0?!1:m,g=n.padding,E=g===void 0?0:g,_=Ym(typeof E!="number"?E:qm(E,Zi)),C=f===hi?Mm:hi,S=t.rects.popper,v=t.elements[w?C:f],b=l0(qr(v)?v:v.contextElement||yr(t.elements.popper),l,u,o),k=Ii(t.elements.reference),x=Qm({reference:k,element:S,strategy:"absolute",placement:i}),N=Kl(Object.assign({},S,x)),O=f===hi?N:k,B={top:b.top-O.top+_.top,bottom:O.bottom-b.bottom+_.bottom,left:b.left-O.left+_.left,right:O.right-b.right+_.right},q=t.modifiersData.offset;if(f===hi&&q){var Q=q[i];Object.keys(B).forEach(function(ee){var I=[Vt,Ft].indexOf(ee)>=0?1:-1,M=[_t,Ft].indexOf(ee)>=0?"y":"x";B[ee]+=Q[M]*I})}return B}function c0(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Di(r),d=u?a?Wl:Wl.filter(function(w){return Di(w)===u}):Zi,f=d.filter(function(w){return c.indexOf(w)>=0});f.length===0&&(f=d);var m=f.reduce(function(w,g){return w[g]=$i(t,{placement:g,boundary:i,rootBoundary:s,padding:o})[Tn(g)],w},{});return Object.keys(m).sort(function(w,g){return m[w]-m[g]})}function u0(t){if(Tn(t)===ha)return[];var e=Lo(t);return[xf(t),e,xf(e)]}function f0(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,w=m===void 0?!0:m,g=n.allowedAutoPlacements,E=e.options.placement,_=Tn(E),C=_===E,S=l||(C||!w?[Lo(E)]:u0(E)),v=[E].concat(S).reduce(function(me,R){return me.concat(Tn(R)===ha?c0(e,{placement:R,boundary:u,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:g}):R)},[]),b=e.rects.reference,k=e.rects.popper,x=new Map,N=!0,O=v[0],B=0;B=0,M=I?"width":"height",Y=$i(e,{placement:q,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),z=I?ee?Vt:vt:ee?Ft:_t;b[M]>k[M]&&(z=Lo(z));var te=Lo(z),se=[];if(s&&se.push(Y[Q]<=0),a&&se.push(Y[z]<=0,Y[te]<=0),se.every(function(me){return me})){O=q,N=!1;break}x.set(q,se)}if(N)for(var ce=w?3:1,he=function(R){var X=v.find(function(U){var Z=x.get(U);if(Z)return Z.slice(0,R).every(function(pe){return pe})});if(X)return O=X,"break"},fe=ce;fe>0;fe--){var Ne=he(fe);if(Ne==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}const Jm={name:"flip",enabled:!0,phase:"main",fn:f0,requiresIfExists:["offset"],data:{_skip:!1}};function Nf(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Of(t){return[_t,Vt,Ft,vt].some(function(e){return t[e]>=0})}function d0(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=$i(e,{elementContext:"reference"}),a=$i(e,{altBoundary:!0}),l=Nf(o,r),c=Nf(a,i,s),u=Of(l),d=Of(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Zm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d0};function h0(t,e,n){var r=Tn(t),i=[vt,_t].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[vt,Vt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function m0(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=Gc.reduce(function(u,d){return u[d]=h0(d,e.rects,s),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}const ep={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m0};function p0(t){var e=t.state,n=t.name;e.modifiersData[n]=Qm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const su={name:"popperOffsets",enabled:!0,phase:"read",fn:p0,data:{}};function g0(t){return t==="x"?"y":"x"}function _0(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,w=n.tetherOffset,g=w===void 0?0:w,E=$i(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),_=Tn(e.placement),C=Di(e.placement),S=!C,v=Zc(_),b=g0(v),k=e.modifiersData.popperOffsets,x=e.rects.reference,N=e.rects.popper,O=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,B=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Q={x:0,y:0};if(!!k){if(s){var ee,I=v==="y"?_t:vt,M=v==="y"?Ft:Vt,Y=v==="y"?"height":"width",z=k[v],te=z+E[I],se=z-E[M],ce=m?-N[Y]/2:0,he=C===Yr?x[Y]:N[Y],fe=C===Yr?-N[Y]:-x[Y],Ne=e.elements.arrow,me=m&&Ne?Jc(Ne):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Km(),X=R[I],U=R[M],Z=vs(0,x[Y],me[Y]),pe=S?x[Y]/2-ce-Z-X-B.mainAxis:he-Z-X-B.mainAxis,ge=S?-x[Y]/2+ce+Z+U+B.mainAxis:fe+Z+U+B.mainAxis,le=e.elements.arrow&&eo(e.elements.arrow),oe=le?v==="y"?le.clientTop||0:le.clientLeft||0:0,h=(ee=q==null?void 0:q[v])!=null?ee:0,p=z+pe-h-oe,T=z+ge-h,L=vs(m?Wo(te,p):te,z,m?Br(se,T):se);k[v]=L,Q[v]=L-z}if(a){var D,H=v==="x"?_t:vt,G=v==="x"?Ft:Vt,W=k[b],j=b==="y"?"height":"width",A=W+E[H],$=W-E[G],J=[_t,vt].indexOf(_)!==-1,ne=(D=q==null?void 0:q[b])!=null?D:0,ue=J?A:W-x[j]-N[j]-ne+B.altAxis,be=J?W+x[j]+N[j]-ne-B.altAxis:$,Ce=m&&J?qv(ue,W,be):vs(m?ue:A,W,m?be:$);k[b]=Ce,Q[b]=Ce-W}e.modifiersData[r]=Q}}const tp={name:"preventOverflow",enabled:!0,phase:"main",fn:_0,requiresIfExists:["offset"]};function v0(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function b0(t){return t===nn(t)||!Qt(t)?nu(t):v0(t)}function y0(t){var e=t.getBoundingClientRect(),n=Mi(e.width)/t.offsetWidth||1,r=Mi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function E0(t,e,n){n===void 0&&(n=!1);var r=Qt(e),i=Qt(e)&&y0(e),s=yr(e),o=Ii(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kn(e)!=="body"||iu(s))&&(a=b0(e)),Qt(e)?(l=Ii(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=ru(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function w0(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function T0(t){var e=w0(t);return jm.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function C0(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function S0(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Pf={placement:"bottom",modifiers:[],strategy:"absolute"};function Mf(){for(var t=arguments.length,e=new Array(t),n=0;nt==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),P0=t=>{do t+=Math.floor(Math.random()*L0);while(document.getElementById(t));return t},np=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e},rp=t=>{const e=np(t);return e&&document.querySelector(e)?e:null},Vn=t=>{const e=np(t);return e?document.querySelector(e):null},M0=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return!r&&!i?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*N0)},ip=t=>{t.dispatchEvent(new Event(Yl))},Hn=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),dr=t=>Hn(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(t):null,es=t=>{if(!Hn(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},hr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",sp=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?sp(t.parentNode):null},zo=()=>{},to=t=>{t.offsetHeight},op=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xa=[],I0=t=>{document.readyState==="loading"?(Xa.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Xa)e()}),Xa.push(t)):t()},en=()=>document.documentElement.dir==="rtl",rn=t=>{I0(()=>{const e=op();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Dn=t=>{typeof t=="function"&&t()},ap=(t,e,n=!0)=>{if(!n){Dn(t);return}const r=5,i=M0(e)+r;let s=!1;const o=({target:a})=>{a===e&&(s=!0,e.removeEventListener(Yl,o),Dn(t))};e.addEventListener(Yl,o),setTimeout(()=>{s||ip(e)},i)},au=(t,e,n,r)=>{const i=t.length;let s=t.indexOf(e);return s===-1?!n&&r?t[i-1]:t[0]:(s+=n?1:-1,r&&(s=(s+i)%i),t[Math.max(0,Math.min(s,i-1))])},D0=/[^.]*(?=\..*)\.|.*/,$0=/\..*/,R0=/::\d+$/,Qa={};let If=1;const lp={mouseenter:"mouseover",mouseleave:"mouseout"},F0=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function cp(t,e){return e&&`${e}::${If++}`||t.uidEvent||If++}function up(t){const e=cp(t);return t.uidEvent=e,Qa[e]=Qa[e]||{},Qa[e]}function V0(t,e){return function n(r){return lu(r,{delegateTarget:t}),n.oneOff&&K.off(t,r.type,e),e.apply(t,[r])}}function H0(t,e,n){return function r(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return lu(i,{delegateTarget:o}),r.oneOff&&K.off(t,i.type,e,n),n.apply(o,[i])}}function fp(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function dp(t,e,n){const r=typeof e=="string",i=r?n:e||n;let s=hp(t);return F0.has(s)||(s=t),[r,i,s]}function Df(t,e,n,r,i){if(typeof e!="string"||!t)return;let[s,o,a]=dp(e,n,r);e in lp&&(o=(w=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return w.call(this,g)})(o));const l=up(t),c=l[a]||(l[a]={}),u=fp(c,o,s?n:null);if(u){u.oneOff=u.oneOff&&i;return}const d=cp(o,e.replace(D0,"")),f=s?H0(t,n,o):V0(t,o);f.delegationSelector=s?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,c[d]=f,t.addEventListener(a,f,s)}function ql(t,e,n,r,i){const s=fp(e[n],r,i);!s||(t.removeEventListener(n,s,Boolean(i)),delete e[n][s.uidEvent])}function B0(t,e,n,r){const i=e[n]||{};for(const s of Object.keys(i))if(s.includes(r)){const o=i[s];ql(t,e,n,o.callable,o.delegationSelector)}}function hp(t){return t=t.replace($0,""),lp[t]||t}const K={on(t,e,n,r){Df(t,e,n,r,!1)},one(t,e,n,r){Df(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[i,s,o]=dp(e,n,r),a=o!==e,l=up(t),c=l[o]||{},u=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;ql(t,l,o,s,i?n:null);return}if(u)for(const d of Object.keys(l))B0(t,l,d,e.slice(1));for(const d of Object.keys(c)){const f=d.replace(R0,"");if(!a||e.includes(f)){const m=c[d];ql(t,l,o,m.callable,m.delegationSelector)}}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=op(),i=hp(e),s=e!==i;let o=null,a=!0,l=!0,c=!1;s&&r&&(o=r.Event(e,n),r(t).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());let u=new Event(e,{bubbles:a,cancelable:!0});return u=lu(u,n),c&&u.preventDefault(),l&&t.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function lu(t,e){for(const[n,r]of Object.entries(e||{}))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}const Xn=new Map,Ja={set(t,e,n){Xn.has(t)||Xn.set(t,new Map);const r=Xn.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Xn.has(t)&&Xn.get(t).get(e)||null},remove(t,e){if(!Xn.has(t))return;const n=Xn.get(t);n.delete(e),n.size===0&&Xn.delete(t)}};function $f(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Za(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bn={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Za(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Za(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=$f(t.dataset[r])}return e},getDataAttribute(t,e){return $f(t.getAttribute(`data-bs-${Za(e)}`))}};class no{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=Hn(n)?Bn.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Hn(n)?Bn.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const r of Object.keys(n)){const i=n[r],s=e[r],o=Hn(s)?"element":O0(s);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${i}".`)}}}const U0="5.2.2";class mn extends no{constructor(e,n){super(),e=dr(e),e&&(this._element=e,this._config=this._getConfig(n),Ja.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ja.remove(this._element,this.constructor.DATA_KEY),K.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){ap(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ja.get(dr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return U0}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ga=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;K.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),hr(this))return;const s=Vn(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()})},j0="alert",W0="bs.alert",mp=`.${W0}`,z0=`close${mp}`,K0=`closed${mp}`,Y0="fade",q0="show";class _a extends mn{static get NAME(){return j0}close(){if(K.trigger(this._element,z0).defaultPrevented)return;this._element.classList.remove(q0);const n=this._element.classList.contains(Y0);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),K.trigger(this._element,K0),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=_a.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}ga(_a,"close");rn(_a);const G0="button",X0="bs.button",Q0=`.${X0}`,J0=".data-api",Z0="active",Rf='[data-bs-toggle="button"]',eb=`click${Q0}${J0}`;class va extends mn{static get NAME(){return G0}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Z0))}static jQueryInterface(e){return this.each(function(){const n=va.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}K.on(document,eb,Rf,t=>{t.preventDefault();const e=t.target.closest(Rf);va.getOrCreateInstance(e).toggle()});rn(va);const Ee={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!hr(n)&&es(n))}},tb="swipe",ts=".bs.swipe",nb=`touchstart${ts}`,rb=`touchmove${ts}`,ib=`touchend${ts}`,sb=`pointerdown${ts}`,ob=`pointerup${ts}`,ab="touch",lb="pen",cb="pointer-event",ub=40,fb={endCallback:null,leftCallback:null,rightCallback:null},db={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ko extends no{constructor(e,n){super(),this._element=e,!(!e||!Ko.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return fb}static get DefaultType(){return db}static get NAME(){return tb}dispose(){K.off(this._element,ts)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Dn(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=ub)return;const n=e/this._deltaX;this._deltaX=0,n&&Dn(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(K.on(this._element,sb,e=>this._start(e)),K.on(this._element,ob,e=>this._end(e)),this._element.classList.add(cb)):(K.on(this._element,nb,e=>this._start(e)),K.on(this._element,rb,e=>this._move(e)),K.on(this._element,ib,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===lb||e.pointerType===ab)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const hb="carousel",mb="bs.carousel",Er=`.${mb}`,pp=".data-api",pb="ArrowLeft",gb="ArrowRight",_b=500,ls="next",ai="prev",mi="left",No="right",vb=`slide${Er}`,el=`slid${Er}`,bb=`keydown${Er}`,yb=`mouseenter${Er}`,Eb=`mouseleave${Er}`,wb=`dragstart${Er}`,Tb=`load${Er}${pp}`,Cb=`click${Er}${pp}`,gp="carousel",mo="active",Sb="slide",Ab="carousel-item-end",kb="carousel-item-start",xb="carousel-item-next",Lb="carousel-item-prev",_p=".active",vp=".carousel-item",Nb=_p+vp,Ob=".carousel-item img",Pb=".carousel-indicators",Mb="[data-bs-slide], [data-bs-slide-to]",Ib='[data-bs-ride="carousel"]',Db={[pb]:No,[gb]:mi},$b={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Rb={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ro extends mn{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ee.findOne(Pb,this._element),this._addEventListeners(),this._config.ride===gp&&this.cycle()}static get Default(){return $b}static get DefaultType(){return Rb}static get NAME(){return hb}next(){this._slide(ls)}nextWhenVisible(){!document.hidden&&es(this._element)&&this.next()}prev(){this._slide(ai)}pause(){this._isSliding&&ip(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){K.one(this._element,el,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){K.one(this._element,el,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const i=e>r?ls:ai;this._slide(i,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&K.on(this._element,bb,e=>this._keydown(e)),this._config.pause==="hover"&&(K.on(this._element,yb,()=>this.pause()),K.on(this._element,Eb,()=>this._maybeEnableCycle())),this._config.touch&&Ko.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ee.find(Ob,this._element))K.on(r,wb,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(mi)),rightCallback:()=>this._slide(this._directionToOrder(No)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_b+this._config.interval))}};this._swipeHelper=new Ko(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=Db[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ee.findOne(_p,this._indicatorsElement);n.classList.remove(mo),n.removeAttribute("aria-current");const r=Ee.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(mo),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),i=e===ls,s=n||au(this._getItems(),r,i,this._config.wrap);if(s===r)return;const o=this._getItemIndex(s),a=m=>K.trigger(this._element,m,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:o});if(a(vb).defaultPrevented||!r||!s)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const u=i?kb:Ab,d=i?xb:Lb;s.classList.add(d),to(s),r.classList.add(u),s.classList.add(u);const f=()=>{s.classList.remove(u,d),s.classList.add(mo),r.classList.remove(mo,d,u),this._isSliding=!1,a(el)};this._queueCallback(f,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(Sb)}_getActive(){return Ee.findOne(Nb,this._element)}_getItems(){return Ee.find(vp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return en()?e===mi?ai:ls:e===mi?ls:ai}_orderToDirection(e){return en()?e===ai?mi:No:e===ai?No:mi}static jQueryInterface(e){return this.each(function(){const n=ro.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(document,Cb,Mb,function(t){const e=Vn(this);if(!e||!e.classList.contains(gp))return;t.preventDefault();const n=ro.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(Bn.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});K.on(window,Tb,()=>{const t=Ee.find(Ib);for(const e of t)ro.getOrCreateInstance(e)});rn(ro);const Fb="collapse",Vb="bs.collapse",io=`.${Vb}`,Hb=".data-api",Bb=`show${io}`,Ub=`shown${io}`,jb=`hide${io}`,Wb=`hidden${io}`,zb=`click${io}${Hb}`,tl="show",yi="collapse",po="collapsing",Kb="collapsed",Yb=`:scope .${yi} .${yi}`,qb="collapse-horizontal",Gb="width",Xb="height",Qb=".collapse.show, .collapse.collapsing",Gl='[data-bs-toggle="collapse"]',Jb={parent:null,toggle:!0},Zb={parent:"(null|element)",toggle:"boolean"};class $s extends mn{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ee.find(Gl);for(const i of r){const s=rp(i),o=Ee.find(s).filter(a=>a===this._element);s!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Jb}static get DefaultType(){return Zb}static get NAME(){return Fb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Qb).filter(a=>a!==this._element).map(a=>$s.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||K.trigger(this._element,Bb).defaultPrevented)return;for(const a of e)a.hide();const r=this._getDimension();this._element.classList.remove(yi),this._element.classList.add(po),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(yi,tl),this._element.style[r]="",K.trigger(this._element,Ub)},o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||K.trigger(this._element,jb).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,to(this._element),this._element.classList.add(po),this._element.classList.remove(yi,tl);for(const i of this._triggerArray){const s=Vn(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(yi),K.trigger(this._element,Wb)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(tl)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=dr(e.parent),e}_getDimension(){return this._element.classList.contains(qb)?Gb:Xb}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Gl);for(const n of e){const r=Vn(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ee.find(Yb,this._config.parent);return Ee.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(!!e.length)for(const r of e)r.classList.toggle(Kb,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=$s.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}K.on(document,zb,Gl,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();const e=rp(this),n=Ee.find(e);for(const r of n)$s.getOrCreateInstance(r,{toggle:!1}).toggle()});rn($s);const Ff="dropdown",e1="bs.dropdown",Qr=`.${e1}`,cu=".data-api",t1="Escape",Vf="Tab",n1="ArrowUp",Hf="ArrowDown",r1=2,i1=`hide${Qr}`,s1=`hidden${Qr}`,o1=`show${Qr}`,a1=`shown${Qr}`,bp=`click${Qr}${cu}`,yp=`keydown${Qr}${cu}`,l1=`keyup${Qr}${cu}`,pi="show",c1="dropup",u1="dropend",f1="dropstart",d1="dropup-center",h1="dropdown-center",Rr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',m1=`${Rr}.${pi}`,Oo=".dropdown-menu",p1=".navbar",g1=".navbar-nav",_1=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",v1=en()?"top-end":"top-start",b1=en()?"top-start":"top-end",y1=en()?"bottom-end":"bottom-start",E1=en()?"bottom-start":"bottom-end",w1=en()?"left-start":"right-start",T1=en()?"right-start":"left-start",C1="top",S1="bottom",A1={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},k1={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Cn extends mn{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ee.next(this._element,Oo)[0]||Ee.prev(this._element,Oo)[0]||Ee.findOne(Oo,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return A1}static get DefaultType(){return k1}static get NAME(){return Ff}toggle(){return this._isShown()?this.hide():this.show()}show(){if(hr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!K.trigger(this._element,o1,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(g1))for(const r of[].concat(...document.body.children))K.on(r,"mouseover",zo);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(pi),this._element.classList.add(pi),K.trigger(this._element,a1,e)}}hide(){if(hr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!K.trigger(this._element,i1,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))K.off(r,"mouseover",zo);this._popper&&this._popper.destroy(),this._menu.classList.remove(pi),this._element.classList.remove(pi),this._element.setAttribute("aria-expanded","false"),Bn.removeDataAttribute(this._menu,"popper"),K.trigger(this._element,s1,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Hn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Ff.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof tp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Hn(this._config.reference)?e=dr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=ou(e,this._menu,n)}_isShown(){return this._menu.classList.contains(pi)}_getPlacement(){const e=this._parent;if(e.classList.contains(u1))return w1;if(e.classList.contains(f1))return T1;if(e.classList.contains(d1))return C1;if(e.classList.contains(h1))return S1;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(c1)?n?b1:v1:n?E1:y1}_detectNavbar(){return this._element.closest(p1)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:n}){const r=Ee.find(_1,this._menu).filter(i=>es(i));!r.length||au(r,n,e===Hf,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Cn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===r1||e.type==="keyup"&&e.key!==Vf)return;const n=Ee.find(m1);for(const r of n){const i=Cn.getInstance(r);if(!i||i._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Vf||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:i._element};e.type==="click"&&(a.clickEvent=e),i._completeHide(a)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===t1,i=[n1,Hf].includes(e.key);if(!i&&!r||n&&!r)return;e.preventDefault();const s=this.matches(Rr)?this:Ee.prev(this,Rr)[0]||Ee.next(this,Rr)[0]||Ee.findOne(Rr,e.delegateTarget.parentNode),o=Cn.getOrCreateInstance(s);if(i){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}K.on(document,yp,Rr,Cn.dataApiKeydownHandler);K.on(document,yp,Oo,Cn.dataApiKeydownHandler);K.on(document,bp,Cn.clearMenus);K.on(document,l1,Cn.clearMenus);K.on(document,bp,Rr,function(t){t.preventDefault(),Cn.getOrCreateInstance(this).toggle()});rn(Cn);const Bf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Uf=".sticky-top",go="padding-right",jf="margin-right";class Xl{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,go,n=>n+e),this._setElementAttributes(Bf,go,n=>n+e),this._setElementAttributes(Uf,jf,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,go),this._resetElementAttributes(Bf,go),this._resetElementAttributes(Uf,jf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${r(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&Bn.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=i=>{const s=Bn.getDataAttribute(i,n);if(s===null){i.style.removeProperty(n);return}Bn.removeDataAttribute(i,n),i.style.setProperty(n,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(Hn(e)){n(e);return}for(const r of Ee.find(e,this._element))n(r)}}const Ep="backdrop",x1="fade",Wf="show",zf=`mousedown.bs.${Ep}`,L1={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},N1={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class wp extends no{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return L1}static get DefaultType(){return N1}static get NAME(){return Ep}show(e){if(!this._config.isVisible){Dn(e);return}this._append();const n=this._getElement();this._config.isAnimated&&to(n),n.classList.add(Wf),this._emulateAnimation(()=>{Dn(e)})}hide(e){if(!this._config.isVisible){Dn(e);return}this._getElement().classList.remove(Wf),this._emulateAnimation(()=>{this.dispose(),Dn(e)})}dispose(){!this._isAppended||(K.off(this._element,zf),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(x1),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=dr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),K.on(e,zf,()=>{Dn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){ap(e,this._getElement(),this._config.isAnimated)}}const O1="focustrap",P1="bs.focustrap",Yo=`.${P1}`,M1=`focusin${Yo}`,I1=`keydown.tab${Yo}`,D1="Tab",$1="forward",Kf="backward",R1={autofocus:!0,trapElement:null},F1={autofocus:"boolean",trapElement:"element"};class Tp extends no{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return R1}static get DefaultType(){return F1}static get NAME(){return O1}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),K.off(document,Yo),K.on(document,M1,e=>this._handleFocusin(e)),K.on(document,I1,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,K.off(document,Yo))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ee.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Kf?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===D1&&(this._lastTabNavDirection=e.shiftKey?Kf:$1)}}const V1="modal",H1="bs.modal",pn=`.${H1}`,B1=".data-api",U1="Escape",j1=`hide${pn}`,W1=`hidePrevented${pn}`,Cp=`hidden${pn}`,Sp=`show${pn}`,z1=`shown${pn}`,K1=`resize${pn}`,Y1=`click.dismiss${pn}`,q1=`mousedown.dismiss${pn}`,G1=`keydown.dismiss${pn}`,X1=`click${pn}${B1}`,Yf="modal-open",Q1="fade",qf="show",nl="modal-static",J1=".modal.show",Z1=".modal-dialog",ey=".modal-body",ty='[data-bs-toggle="modal"]',ny={backdrop:!0,focus:!0,keyboard:!0},ry={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ri extends mn{constructor(e,n){super(e,n),this._dialog=Ee.findOne(Z1,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xl,this._addEventListeners()}static get Default(){return ny}static get DefaultType(){return ry}static get NAME(){return V1}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||K.trigger(this._element,Sp,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Yf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||K.trigger(this._element,j1).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(qf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const e of[window,this._dialog])K.off(e,pn);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new wp({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Tp({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ee.findOne(ey,this._dialog);n&&(n.scrollTop=0),to(this._element),this._element.classList.add(qf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,K.trigger(this._element,z1,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){K.on(this._element,G1,e=>{if(e.key===U1){if(this._config.keyboard){e.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),K.on(window,K1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),K.on(this._element,q1,e=>{K.one(this._element,Y1,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Yf),this._resetAdjustments(),this._scrollBar.reset(),K.trigger(this._element,Cp)})}_isAnimated(){return this._element.classList.contains(Q1)}_triggerBackdropTransition(){if(K.trigger(this._element,W1).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(nl)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(nl),this._queueCallback(()=>{this._element.classList.remove(nl),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const i=en()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&e){const i=en()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Ri.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}K.on(document,X1,ty,function(t){const e=Vn(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),K.one(e,Sp,i=>{i.defaultPrevented||K.one(e,Cp,()=>{es(this)&&this.focus()})});const n=Ee.findOne(J1);n&&Ri.getInstance(n).hide(),Ri.getOrCreateInstance(e).toggle(this)});ga(Ri);rn(Ri);const iy="offcanvas",sy="bs.offcanvas",qn=`.${sy}`,Ap=".data-api",oy=`load${qn}${Ap}`,ay="Escape",Gf="show",Xf="showing",Qf="hiding",ly="offcanvas-backdrop",kp=".offcanvas.show",cy=`show${qn}`,uy=`shown${qn}`,fy=`hide${qn}`,Jf=`hidePrevented${qn}`,xp=`hidden${qn}`,dy=`resize${qn}`,hy=`click${qn}${Ap}`,my=`keydown.dismiss${qn}`,py='[data-bs-toggle="offcanvas"]',gy={backdrop:!0,keyboard:!0,scroll:!1},_y={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class mr extends mn{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return gy}static get DefaultType(){return _y}static get NAME(){return iy}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||K.trigger(this._element,cy,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Xf);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Gf),this._element.classList.remove(Xf),K.trigger(this._element,uy,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||K.trigger(this._element,fy).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Qf),this._backdrop.hide();const n=()=>{this._element.classList.remove(Gf,Qf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xl().reset(),K.trigger(this._element,xp)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){K.trigger(this._element,Jf);return}this.hide()},n=Boolean(this._config.backdrop);return new wp({className:ly,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new Tp({trapElement:this._element})}_addEventListeners(){K.on(this._element,my,e=>{if(e.key===ay){if(!this._config.keyboard){K.trigger(this._element,Jf);return}this.hide()}})}static jQueryInterface(e){return this.each(function(){const n=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}K.on(document,hy,py,function(t){const e=Vn(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),hr(this))return;K.one(e,xp,()=>{es(this)&&this.focus()});const n=Ee.findOne(kp);n&&n!==e&&mr.getInstance(n).hide(),mr.getOrCreateInstance(e).toggle(this)});K.on(window,oy,()=>{for(const t of Ee.find(kp))mr.getOrCreateInstance(t).show()});K.on(window,dy,()=>{for(const t of Ee.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&mr.getOrCreateInstance(t).hide()});ga(mr);rn(mr);const vy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),by=/^aria-[\w-]*$/i,yy=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ey=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,wy=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?vy.has(n)?Boolean(yy.test(t.nodeValue)||Ey.test(t.nodeValue)):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))},Lp={"*":["class","dir","id","lang","role",by],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Ty(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const o of s){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),c=[].concat(e["*"]||[],e[a]||[]);for(const u of l)wy(u,c)||o.removeAttribute(u.nodeName)}return i.body.innerHTML}const Cy="TemplateFactory",Sy={allowList:Lp,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ay={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ky={entry:"(string|element|function|null)",selector:"(string|element)"};class xy extends no{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Sy}static get DefaultType(){return Ay}static get NAME(){return Cy}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(e,s,i);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},ky)}_setContent(e,n,r){const i=Ee.findOne(r,e);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Hn(n)){this._putElementInTemplate(dr(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(e){return this._config.sanitize?Ty(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return typeof e=="function"?e(this):e}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const Ly="tooltip",Ny=new Set(["sanitize","allowList","sanitizeFn"]),rl="fade",Oy="modal",_o="show",Py=".tooltip-inner",Zf=`.${Oy}`,ed="hide.bs.modal",cs="hover",il="focus",My="click",Iy="manual",Dy="hide",$y="hidden",Ry="show",Fy="shown",Vy="inserted",Hy="click",By="focusin",Uy="focusout",jy="mouseenter",Wy="mouseleave",zy={AUTO:"auto",TOP:"top",RIGHT:en()?"left":"right",BOTTOM:"bottom",LEFT:en()?"right":"left"},Ky={allowList:Lp,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Yy={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class wr extends mn{constructor(e,n){if(typeof tp>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Ky}static get DefaultType(){return Yy}static get NAME(){return Ly}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),K.off(this._element.closest(Zf),ed,this._hideModalHandler),this.tip&&this.tip.remove(),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=K.trigger(this._element,this.constructor.eventName(Ry)),r=(sp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this.tip&&(this.tip.remove(),this.tip=null);const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),K.trigger(this._element,this.constructor.eventName(Vy))),this._popper?this._popper.update():this._popper=this._createPopper(i),i.classList.add(_o),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))K.on(a,"mouseover",zo);const o=()=>{K.trigger(this._element,this.constructor.eventName(Fy)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||K.trigger(this._element,this.constructor.eventName(Dy)).defaultPrevented)return;const n=this._getTipElement();if(n.classList.remove(_o),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))K.off(i,"mouseover",zo);this._activeTrigger[My]=!1,this._activeTrigger[il]=!1,this._activeTrigger[cs]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||n.remove(),this._element.removeAttribute("aria-describedby"),K.trigger(this._element,this.constructor.eventName($y)),this._disposePopper())};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(rl,_o),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=P0(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(rl),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new xy({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Py]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rl)}_isShown(){return this.tip&&this.tip.classList.contains(_o)}_createPopper(e){const n=typeof this._config.placement=="function"?this._config.placement.call(this,e,this._element):this._config.placement,r=zy[n.toUpperCase()];return ou(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return typeof e=="function"?e.call(this._element):e}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...typeof this._config.popperConfig=="function"?this._config.popperConfig(n):this._config.popperConfig}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")K.on(this._element,this.constructor.eventName(Hy),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Iy){const r=n===cs?this.constructor.eventName(jy):this.constructor.eventName(By),i=n===cs?this.constructor.eventName(Wy):this.constructor.eventName(Uy);K.on(this._element,r,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?il:cs]=!0,o._enter()}),K.on(this._element,i,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?il:cs]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},K.on(this._element.closest(Zf),ed,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");!e||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=Bn.getDataAttributes(this._element);for(const r of Object.keys(n))Ny.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:dr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const n in this._config)this.constructor.Default[n]!==this._config[n]&&(e[n]=this._config[n]);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each(function(){const n=wr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rn(wr);const qy="popover",Gy=".popover-header",Xy=".popover-body",Qy={...wr.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Jy={...wr.DefaultType,content:"(null|string|element|function)"};class uu extends wr{static get Default(){return Qy}static get DefaultType(){return Jy}static get NAME(){return qy}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Gy]:this._getTitle(),[Xy]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=uu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rn(uu);const Zy="scrollspy",eE="bs.scrollspy",fu=`.${eE}`,tE=".data-api",nE=`activate${fu}`,td=`click${fu}`,rE=`load${fu}${tE}`,iE="dropdown-item",li="active",sE='[data-bs-spy="scroll"]',sl="[href]",oE=".nav, .list-group",nd=".nav-link",aE=".nav-item",lE=".list-group-item",cE=`${nd}, ${aE} > ${nd}, ${lE}`,uE=".dropdown",fE=".dropdown-toggle",dE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},hE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ba extends mn{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return dE}static get DefaultType(){return hE}static get NAME(){return Zy}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=dr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(K.off(this._config.target,td),K.on(this._config.target,td,sl,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=o=>this._targetLinks.get(`#${o.target.id}`),r=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(r(o),!i)return;continue}!s&&!a&&r(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ee.find(sl,this._config.target);for(const n of e){if(!n.hash||hr(n))continue;const r=Ee.findOne(n.hash,this._element);es(r)&&(this._targetLinks.set(n.hash,n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(li),this._activateParents(e),K.trigger(this._element,nE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iE)){Ee.findOne(fE,e.closest(uE)).classList.add(li);return}for(const n of Ee.parents(e,oE))for(const r of Ee.prev(n,cE))r.classList.add(li)}_clearActiveClass(e){e.classList.remove(li);const n=Ee.find(`${sl}.${li}`,e);for(const r of n)r.classList.remove(li)}static jQueryInterface(e){return this.each(function(){const n=ba.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(window,rE,()=>{for(const t of Ee.find(sE))ba.getOrCreateInstance(t)});rn(ba);const mE="tab",pE="bs.tab",Jr=`.${pE}`,gE=`hide${Jr}`,_E=`hidden${Jr}`,vE=`show${Jr}`,bE=`shown${Jr}`,yE=`click${Jr}`,EE=`keydown${Jr}`,wE=`load${Jr}`,TE="ArrowLeft",rd="ArrowRight",CE="ArrowUp",id="ArrowDown",Fr="active",sd="fade",ol="show",SE="dropdown",AE=".dropdown-toggle",kE=".dropdown-menu",al=":not(.dropdown-toggle)",xE='.list-group, .nav, [role="tablist"]',LE=".nav-item, .list-group-item",NE=`.nav-link${al}, .list-group-item${al}, [role="tab"]${al}`,Np='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ll=`${NE}, ${Np}`,OE=`.${Fr}[data-bs-toggle="tab"], .${Fr}[data-bs-toggle="pill"], .${Fr}[data-bs-toggle="list"]`;class Fi extends mn{constructor(e){super(e),this._parent=this._element.closest(xE),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),K.on(this._element,EE,n=>this._keydown(n)))}static get NAME(){return mE}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?K.trigger(n,gE,{relatedTarget:e}):null;K.trigger(e,vE,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Fr),this._activate(Vn(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(ol);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),K.trigger(e,bE,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(sd))}_deactivate(e,n){if(!e)return;e.classList.remove(Fr),e.blur(),this._deactivate(Vn(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(ol);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),K.trigger(e,_E,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(sd))}_keydown(e){if(![TE,rd,CE,id].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[rd,id].includes(e.key),r=au(this._getChildren().filter(i=>!hr(i)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Fi.getOrCreateInstance(r).show())}_getChildren(){return Ee.find(ll,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Vn(e);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`#${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(SE))return;const i=(s,o)=>{const a=Ee.findOne(s,r);a&&a.classList.toggle(o,n)};i(AE,Fr),i(kE,ol),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Fr)}_getInnerElement(e){return e.matches(ll)?e:Ee.findOne(ll,e)}_getOuterElement(e){return e.closest(LE)||e}static jQueryInterface(e){return this.each(function(){const n=Fi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(document,yE,Np,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!hr(this)&&Fi.getOrCreateInstance(this).show()});K.on(window,wE,()=>{for(const t of Ee.find(OE))Fi.getOrCreateInstance(t)});rn(Fi);const PE="toast",ME="bs.toast",Tr=`.${ME}`,IE=`mouseover${Tr}`,DE=`mouseout${Tr}`,$E=`focusin${Tr}`,RE=`focusout${Tr}`,FE=`hide${Tr}`,VE=`hidden${Tr}`,HE=`show${Tr}`,BE=`shown${Tr}`,UE="fade",od="hide",vo="show",bo="showing",jE={animation:"boolean",autohide:"boolean",delay:"number"},WE={animation:!0,autohide:!0,delay:5e3};class ya extends mn{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return WE}static get DefaultType(){return jE}static get NAME(){return PE}show(){if(K.trigger(this._element,HE).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(UE);const n=()=>{this._element.classList.remove(bo),K.trigger(this._element,BE),this._maybeScheduleHide()};this._element.classList.remove(od),to(this._element),this._element.classList.add(vo,bo),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||K.trigger(this._element,FE).defaultPrevented)return;const n=()=>{this._element.classList.add(od),this._element.classList.remove(bo,vo),K.trigger(this._element,VE)};this._element.classList.add(bo),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(vo),super.dispose()}isShown(){return this._element.classList.contains(vo)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){K.on(this._element,IE,e=>this._onInteraction(e,!0)),K.on(this._element,DE,e=>this._onInteraction(e,!1)),K.on(this._element,$E,e=>this._onInteraction(e,!0)),K.on(this._element,RE,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=ya.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}ga(ya);rn(ya);function zE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Op={exports:{}};(function(t,e){(function(){function n(){var r=window,i=document;if("scrollBehavior"in i.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,o=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||d,scrollIntoView:s.prototype.scrollIntoView},l=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(v){var b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(v)}var u=c(r.navigator.userAgent)?1:0;function d(v,b){this.scrollLeft=v,this.scrollTop=b}function f(v){return .5*(1-Math.cos(Math.PI*v))}function m(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function w(v,b){if(b==="Y")return v.clientHeight+u1?1:O,k=f(O),x=v.startX+(v.x-v.startX)*k,N=v.startY+(v.y-v.startY)*k,v.method.call(v.scrollable,x,N),(x!==v.x||N!==v.y)&&r.requestAnimationFrame(C.bind(r,v))}function S(v,b,k){var x,N,O,B,q=l();v===i.body?(x=r,N=r.scrollX||r.pageXOffset,O=r.scrollY||r.pageYOffset,B=a.scroll):(x=v,N=v.scrollLeft,O=v.scrollTop,B=d),C({scrollable:x,method:B,startTime:q,startX:N,startY:O,x:b,y:k})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}S.call(r,i.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(r,i.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var v=arguments[0].left,b=arguments[0].top;S.call(this,this,typeof v>"u"?this.scrollLeft:~~v,typeof b>"u"?this.scrollTop:~~b)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(m(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var v=_(this),b=v.getBoundingClientRect(),k=this.getBoundingClientRect();v!==i.body?(S.call(this,v,v.scrollLeft+k.left-b.left,v.scrollTop+k.top-b.top),r.getComputedStyle(v).position!=="fixed"&&r.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):r.scrollBy({left:k.left,top:k.top,behavior:"smooth"})}}t.exports={polyfill:n}})()})(Op);const KE=Op.exports;function du(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const YE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qE=du(YE);function Pp(t){return!!t||t===""}function Ct(t){if(de(t)){const e={};for(let n=0;n{if(n){const r=n.split(XE);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function De(t){let e="";if(qe(t))e=t;else if(de(t))for(let n=0;nGr(n,e))}const F=t=>qe(t)?t:t==null?"":de(t)||Ge(t)&&(t.toString===Dp||!ye(t.toString))?JSON.stringify(t,Mp,2):String(t),Mp=(t,e)=>e&&e.__v_isRef?Mp(t,e.value):Ai(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:ns(e)?{[`Set(${e.size})`]:[...e.values()]}:Ge(e)&&!de(e)&&!$p(e)?String(e):e,Re={},Si=[],fn=()=>{},ZE=()=>!1,ew=/^on[^a-z]/,Ea=t=>ew.test(t),mu=t=>t.startsWith("onUpdate:"),mt=Object.assign,pu=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},tw=Object.prototype.hasOwnProperty,ke=(t,e)=>tw.call(t,e),de=Array.isArray,Ai=t=>so(t)==="[object Map]",ns=t=>so(t)==="[object Set]",ad=t=>so(t)==="[object Date]",ye=t=>typeof t=="function",qe=t=>typeof t=="string",Rs=t=>typeof t=="symbol",Ge=t=>t!==null&&typeof t=="object",Ip=t=>Ge(t)&&ye(t.then)&&ye(t.catch),Dp=Object.prototype.toString,so=t=>Dp.call(t),nw=t=>so(t).slice(8,-1),$p=t=>so(t)==="[object Object]",gu=t=>qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Po=du(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wa=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},rw=/-(\w)/g,xn=wa(t=>t.replace(rw,(e,n)=>n?n.toUpperCase():"")),iw=/\B([A-Z])/g,rs=wa(t=>t.replace(iw,"-$1").toLowerCase()),Ta=wa(t=>t.charAt(0).toUpperCase()+t.slice(1)),cl=wa(t=>t?`on${Ta(t)}`:""),Fs=(t,e)=>!Object.is(t,e),Mo=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Go=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let ld;const sw=()=>ld||(ld=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let bn;class Rp{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&bn&&(this.parent=bn,this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}run(e){if(this.active){const n=bn;try{return bn=this,e()}finally{bn=n}}}on(){bn=this}off(){bn=this.parent}stop(e){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},Fp=t=>(t.w&pr)>0,Vp=t=>(t.n&pr)>0,lw=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=r)&&a.push(l)});else switch(n!==void 0&&a.push(o.get(n)),e){case"add":de(t)?gu(n)&&a.push(o.get("length")):(a.push(o.get(Ur)),Ai(t)&&a.push(o.get(Zl)));break;case"delete":de(t)||(a.push(o.get(Ur)),Ai(t)&&a.push(o.get(Zl)));break;case"set":Ai(t)&&a.push(o.get(Ur));break}if(a.length===1)a[0]&&ec(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);ec(_u(l))}}function ec(t,e){const n=de(t)?t:[...t];for(const r of n)r.computed&&ud(r);for(const r of n)r.computed||ud(r)}function ud(t,e){(t!==ln||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const uw=du("__proto__,__v_isRef,__isVue"),Up=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Rs)),fw=bu(),dw=bu(!1,!0),hw=bu(!0),fd=mw();function mw(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Pe(this);for(let s=0,o=this.length;s{t[e]=function(...n){is();const r=Pe(this)[e].apply(this,n);return ss(),r}}),t}function bu(t=!1,e=!1){return function(r,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?Nw:Yp:e?Kp:zp).get(r))return r;const o=de(r);if(!t&&o&&ke(fd,i))return Reflect.get(fd,i,s);const a=Reflect.get(r,i,s);return(Rs(i)?Up.has(i):uw(i))||(t||Ht(r,"get",i),e)?a:ct(a)?o&&gu(i)?a:a.value:Ge(a)?t?qp(a):Zr(a):a}}const pw=jp(),gw=jp(!0);function jp(t=!1){return function(n,r,i,s){let o=n[r];if(Vs(o)&&ct(o)&&!ct(i))return!1;if(!t&&!Vs(i)&&(tc(i)||(i=Pe(i),o=Pe(o)),!de(n)&&ct(o)&&!ct(i)))return o.value=i,!0;const a=de(n)&&gu(r)?Number(r)t,Ca=t=>Reflect.getPrototypeOf(t);function yo(t,e,n=!1,r=!1){t=t.__v_raw;const i=Pe(t),s=Pe(e);n||(e!==s&&Ht(i,"get",e),Ht(i,"get",s));const{has:o}=Ca(i),a=r?yu:n?Su:Hs;if(o.call(i,e))return a(t.get(e));if(o.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Eo(t,e=!1){const n=this.__v_raw,r=Pe(n),i=Pe(t);return e||(t!==i&&Ht(r,"has",t),Ht(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function wo(t,e=!1){return t=t.__v_raw,!e&&Ht(Pe(t),"iterate",Ur),Reflect.get(t,"size",t)}function dd(t){t=Pe(t);const e=Pe(this);return Ca(e).has.call(e,t)||(e.add(t),Wn(e,"add",t,t)),this}function hd(t,e){e=Pe(e);const n=Pe(this),{has:r,get:i}=Ca(n);let s=r.call(n,t);s||(t=Pe(t),s=r.call(n,t));const o=i.call(n,t);return n.set(t,e),s?Fs(e,o)&&Wn(n,"set",t,e):Wn(n,"add",t,e),this}function md(t){const e=Pe(this),{has:n,get:r}=Ca(e);let i=n.call(e,t);i||(t=Pe(t),i=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return i&&Wn(e,"delete",t,void 0),s}function pd(){const t=Pe(this),e=t.size!==0,n=t.clear();return e&&Wn(t,"clear",void 0,void 0),n}function To(t,e){return function(r,i){const s=this,o=s.__v_raw,a=Pe(o),l=e?yu:t?Su:Hs;return!t&&Ht(a,"iterate",Ur),o.forEach((c,u)=>r.call(i,l(c),l(u),s))}}function Co(t,e,n){return function(...r){const i=this.__v_raw,s=Pe(i),o=Ai(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...r),u=n?yu:e?Su:Hs;return!e&&Ht(s,"iterate",l?Zl:Ur),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Qn(t){return function(...e){return t==="delete"?!1:this}}function ww(){const t={get(s){return yo(this,s)},get size(){return wo(this)},has:Eo,add:dd,set:hd,delete:md,clear:pd,forEach:To(!1,!1)},e={get(s){return yo(this,s,!1,!0)},get size(){return wo(this)},has:Eo,add:dd,set:hd,delete:md,clear:pd,forEach:To(!1,!0)},n={get(s){return yo(this,s,!0)},get size(){return wo(this,!0)},has(s){return Eo.call(this,s,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:To(!0,!1)},r={get(s){return yo(this,s,!0,!0)},get size(){return wo(this,!0)},has(s){return Eo.call(this,s,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:To(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Co(s,!1,!1),n[s]=Co(s,!0,!1),e[s]=Co(s,!1,!0),r[s]=Co(s,!0,!0)}),[t,n,e,r]}const[Tw,Cw,Sw,Aw]=ww();function Eu(t,e){const n=e?t?Aw:Sw:t?Cw:Tw;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(ke(n,i)&&i in r?n:r,i,s)}const kw={get:Eu(!1,!1)},xw={get:Eu(!1,!0)},Lw={get:Eu(!0,!1)},zp=new WeakMap,Kp=new WeakMap,Yp=new WeakMap,Nw=new WeakMap;function Ow(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pw(t){return t.__v_skip||!Object.isExtensible(t)?0:Ow(nw(t))}function Zr(t){return Vs(t)?t:wu(t,!1,Wp,kw,zp)}function Mw(t){return wu(t,!1,Ew,xw,Kp)}function qp(t){return wu(t,!0,yw,Lw,Yp)}function wu(t,e,n,r,i){if(!Ge(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=Pw(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function ki(t){return Vs(t)?ki(t.__v_raw):!!(t&&t.__v_isReactive)}function Vs(t){return!!(t&&t.__v_isReadonly)}function tc(t){return!!(t&&t.__v_isShallow)}function Tu(t){return ki(t)||Vs(t)}function Pe(t){const e=t&&t.__v_raw;return e?Pe(e):t}function Cu(t){return qo(t,"__v_skip",!0),t}const Hs=t=>Ge(t)?Zr(t):t,Su=t=>Ge(t)?qp(t):t;function Gp(t){ar&&ln&&(t=Pe(t),Bp(t.dep||(t.dep=_u())))}function Xp(t,e){t=Pe(t),t.dep&&ec(t.dep)}function ct(t){return!!(t&&t.__v_isRef===!0)}function cn(t){return Jp(t,!1)}function Qp(t){return Jp(t,!0)}function Jp(t,e){return ct(t)?t:new Iw(t,e)}class Iw{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Pe(e),this._value=n?e:Hs(e)}get value(){return Gp(this),this._value}set value(e){e=this.__v_isShallow?e:Pe(e),Fs(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Hs(e),Xp(this))}}function xi(t){return ct(t)?t.value:t}const Dw={get:(t,e,n)=>xi(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ct(i)&&!ct(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Zp(t){return ki(t)?t:new Proxy(t,Dw)}class $w{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new vu(e,()=>{this._dirty||(this._dirty=!0,Xp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Pe(this);return Gp(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Rw(t,e,n=!1){let r,i;const s=ye(t);return s?(r=t,i=fn):(r=t.get,i=t.set),new $w(r,i,s||!i,n)}function lr(t,e,n,r){let i;try{i=r?t(...r):t()}catch(s){Sa(s,e,n)}return i}function Jt(t,e,n,r){if(ye(t)){const s=lr(t,e,n,r);return s&&Ip(s)&&s.catch(o=>{Sa(o,e,n)}),s}const i=[];for(let s=0;s>>1;Bs(Mt[r])$n&&Mt.splice(e,1)}function ig(t,e,n,r){de(t)?n.push(...t):(!e||!e.includes(t,t.allowRecurse?r+1:r))&&n.push(t),rg()}function Bw(t){ig(t,ps,ys,gi)}function Uw(t){ig(t,er,Es,_i)}function Aa(t,e=null){if(ys.length){for(rc=e,ps=[...new Set(ys)],ys.length=0,gi=0;giBs(n)-Bs(r)),_i=0;_it.id==null?1/0:t.id;function og(t){nc=!1,Xo=!0,Aa(t),Mt.sort((n,r)=>Bs(n)-Bs(r));const e=fn;try{for($n=0;$nm.trim())),d&&(i=n.map(Go))}let a,l=r[a=cl(e)]||r[a=cl(xn(e))];!l&&s&&(l=r[a=cl(rs(e))]),l&&Jt(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Jt(c,t,6,i)}}function ag(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!ye(t)){const l=c=>{const u=ag(c,e,!0);u&&(a=!0,mt(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(r.set(t,null),null):(de(s)?s.forEach(l=>o[l]=null):mt(o,s),r.set(t,o),o)}function ka(t,e){return!t||!Ea(e)?!1:(e=e.slice(2).replace(/Once$/,""),ke(t,e[0].toLowerCase()+e.slice(1))||ke(t,rs(e))||ke(t,e))}let dt=null,xa=null;function Qo(t){const e=dt;return dt=t,xa=t&&t.type.__scopeId||null,e}function bt(t){xa=t}function yt(){xa=null}function et(t,e=dt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&kd(-1);const s=Qo(e),o=t(...i);return Qo(s),r._d&&kd(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function ul(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:m,ctx:w,inheritAttrs:g}=t;let E,_;const C=Qo(t);try{if(n.shapeFlag&4){const v=i||r;E=yn(u.call(v,v,d,s,m,f,w)),_=l}else{const v=e;E=yn(v.length>1?v(s,{attrs:l,slots:a,emit:c}):v(s,null)),_=e.props?l:Ww(l)}}catch(v){Cs.length=0,Sa(v,t,1),E=ie($t)}let S=E;if(_&&g!==!1){const v=Object.keys(_),{shapeFlag:b}=S;v.length&&b&7&&(o&&v.some(mu)&&(_=zw(_,o)),S=gr(S,_))}return n.dirs&&(S=gr(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),E=S,Qo(C),E}const Ww=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ea(n))&&((e||(e={}))[n]=t[n]);return e},zw=(t,e)=>{const n={};for(const r in t)(!mu(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Kw(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?gd(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;function Gw(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):Uw(t)}function Io(t,e){if(it){let n=it.provides;const r=it.parent&&it.parent.provides;r===n&&(n=it.provides=Object.create(r)),n[t]=e}}function Un(t,e,n=!1){const r=it||dt;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ye(e)?e.call(r.proxy):e}}const _d={};function cr(t,e,n){return lg(t,e,n)}function lg(t,e,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Re){const a=it;let l,c=!1,u=!1;if(ct(t)?(l=()=>t.value,c=tc(t)):ki(t)?(l=()=>t,r=!0):de(t)?(u=!0,c=t.some(_=>ki(_)||tc(_)),l=()=>t.map(_=>{if(ct(_))return _.value;if(ki(_))return Vr(_);if(ye(_))return lr(_,a,2)})):ye(t)?e?l=()=>lr(t,a,2):l=()=>{if(!(a&&a.isUnmounted))return d&&d(),Jt(t,a,3,[f])}:l=fn,e&&r){const _=l;l=()=>Vr(_())}let d,f=_=>{d=E.onStop=()=>{lr(_,a,4)}};if(js)return f=fn,e?n&&Jt(e,a,3,[l(),u?[]:void 0,f]):l(),fn;let m=u?[]:_d;const w=()=>{if(!!E.active)if(e){const _=E.run();(r||c||(u?_.some((C,S)=>Fs(C,m[S])):Fs(_,m)))&&(d&&d(),Jt(e,a,3,[_,m===_d?void 0:m,f]),m=_)}else E.run()};w.allowRecurse=!!e;let g;i==="sync"?g=w:i==="post"?g=()=>wt(w,a&&a.suspense):g=()=>Bw(w);const E=new vu(l,g);return e?n?w():m=E.run():i==="post"?wt(E.run.bind(E),a&&a.suspense):E.run(),()=>{E.stop(),a&&a.scope&&pu(a.scope.effects,E)}}function Xw(t,e,n){const r=this.proxy,i=qe(t)?t.includes(".")?cg(r,t):()=>r[t]:t.bind(r,r);let s;ye(e)?s=e:(s=e.handler,n=e);const o=it;Vi(this);const a=lg(i,s.bind(r),n);return o?Vi(o):jr(),a}function cg(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i{Vr(n,e)});else if($p(t))for(const n in t)Vr(t[n],e);return t}function Qw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xu(()=>{t.isMounted=!0}),mg(()=>{t.isUnmounting=!0}),t}const jt=[Function,Array],Jw={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jt,onEnter:jt,onAfterEnter:jt,onEnterCancelled:jt,onBeforeLeave:jt,onLeave:jt,onAfterLeave:jt,onLeaveCancelled:jt,onBeforeAppear:jt,onAppear:jt,onAfterAppear:jt,onAppearCancelled:jt},setup(t,{slots:e}){const n=Ln(),r=Qw();let i;return()=>{const s=e.default&&fg(e.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const g of s)if(g.type!==$t){o=g;break}}const a=Pe(t),{mode:l}=a;if(r.isLeaving)return fl(o);const c=vd(o);if(!c)return fl(o);const u=ic(c,a,r,n);sc(c,u);const d=n.subTree,f=d&&vd(d);let m=!1;const{getTransitionKey:w}=c.type;if(w){const g=w();i===void 0?i=g:g!==i&&(i=g,m=!0)}if(f&&f.type!==$t&&(!Dr(c,f)||m)){const g=ic(f,a,r,n);if(sc(f,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update()},fl(o);l==="in-out"&&c.type!==$t&&(g.delayLeave=(E,_,C)=>{const S=ug(r,f);S[String(f.key)]=f,E._leaveCb=()=>{_(),E._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=C})}return o}}},Zw=Jw;function ug(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ic(t,e,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:w,onBeforeAppear:g,onAppear:E,onAfterAppear:_,onAppearCancelled:C}=e,S=String(t.key),v=ug(n,t),b=(N,O)=>{N&&Jt(N,r,9,O)},k=(N,O)=>{const B=O[1];b(N,O),de(N)?N.every(q=>q.length<=1)&&B():N.length<=1&&B()},x={mode:s,persisted:o,beforeEnter(N){let O=a;if(!n.isMounted)if(i)O=g||a;else return;N._leaveCb&&N._leaveCb(!0);const B=v[S];B&&Dr(t,B)&&B.el._leaveCb&&B.el._leaveCb(),b(O,[N])},enter(N){let O=l,B=c,q=u;if(!n.isMounted)if(i)O=E||l,B=_||c,q=C||u;else return;let Q=!1;const ee=N._enterCb=I=>{Q||(Q=!0,I?b(q,[N]):b(B,[N]),x.delayedLeave&&x.delayedLeave(),N._enterCb=void 0)};O?k(O,[N,ee]):ee()},leave(N,O){const B=String(t.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return O();b(d,[N]);let q=!1;const Q=N._leaveCb=ee=>{q||(q=!0,O(),ee?b(w,[N]):b(m,[N]),N._leaveCb=void 0,v[B]===t&&delete v[B])};v[B]=t,f?k(f,[N,Q]):Q()},clone(N){return ic(N,e,n,r)}};return x}function fl(t){if(La(t))return t=gr(t),t.children=null,t}function vd(t){return La(t)?t.children?t.children[0]:void 0:t}function sc(t,e){t.shapeFlag&6&&t.component?sc(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function fg(t,e=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;s!!t.type.__asyncLoader,La=t=>t.type.__isKeepAlive;function eT(t,e){dg(t,"a",e)}function tT(t,e){dg(t,"da",e)}function dg(t,e,n=it){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Na(e,r,n),n){let i=n.parent;for(;i&&i.parent;)La(i.parent.vnode)&&nT(r,e,n,i),i=i.parent}}function nT(t,e,n,r){const i=Na(e,t,r,!0);Oa(()=>{pu(r[e],i)},n)}function Na(t,e,n=it,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;is(),Vi(n);const a=Jt(e,n,t,o);return jr(),ss(),a});return r?i.unshift(s):i.push(s),s}}const Gn=t=>(e,n=it)=>(!js||t==="sp")&&Na(t,e,n),hg=Gn("bm"),xu=Gn("m"),rT=Gn("bu"),iT=Gn("u"),mg=Gn("bum"),Oa=Gn("um"),sT=Gn("sp"),oT=Gn("rtg"),aT=Gn("rtc");function lT(t,e=it){Na("ec",t,e)}function Yt(t,e){const n=dt;if(n===null)return t;const r=Ia(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;se(o,a,void 0,s&&s[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;aea(e)?!(e.type===$t||e.type===xe&&!_g(e.children)):!0)?t:null}const oc=t=>t?xg(t)?Ia(t)||t.proxy:oc(t.parent):null,Jo=mt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>oc(t.parent),$root:t=>oc(t.root),$emit:t=>t.emit,$options:t=>bg(t),$forceUpdate:t=>t.f||(t.f=()=>ng(t.update)),$nextTick:t=>t.n||(t.n=tg.bind(t.proxy)),$watch:t=>Xw.bind(t)}),cT={get({_:t},e){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(r!==Re&&ke(r,e))return o[e]=1,r[e];if(i!==Re&&ke(i,e))return o[e]=2,i[e];if((c=t.propsOptions[0])&&ke(c,e))return o[e]=3,s[e];if(n!==Re&&ke(n,e))return o[e]=4,n[e];ac&&(o[e]=0)}}const u=Jo[e];let d,f;if(u)return e==="$attrs"&&Ht(t,"get",e),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Re&&ke(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,ke(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return i!==Re&&ke(i,e)?(i[e]=n,!0):r!==Re&&ke(r,e)?(r[e]=n,!0):ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||t!==Re&&ke(t,o)||e!==Re&&ke(e,o)||(a=s[0])&&ke(a,o)||ke(r,o)||ke(Jo,o)||ke(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let ac=!0;function uT(t){const e=bg(t),n=t.proxy,r=t.ctx;ac=!1,e.beforeCreate&&yd(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:w,activated:g,deactivated:E,beforeDestroy:_,beforeUnmount:C,destroyed:S,unmounted:v,render:b,renderTracked:k,renderTriggered:x,errorCaptured:N,serverPrefetch:O,expose:B,inheritAttrs:q,components:Q,directives:ee,filters:I}=e;if(c&&fT(c,r,null,t.appContext.config.unwrapInjectedRef),o)for(const z in o){const te=o[z];ye(te)&&(r[z]=te.bind(n))}if(i){const z=i.call(n,n);Ge(z)&&(t.data=Zr(z))}if(ac=!0,s)for(const z in s){const te=s[z],se=ye(te)?te.bind(n,n):ye(te.get)?te.get.bind(n,n):fn,ce=!ye(te)&&ye(te.set)?te.set.bind(n):fn,he=je({get:se,set:ce});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>he.value,set:fe=>he.value=fe})}if(a)for(const z in a)vg(a[z],r,n,z);if(l){const z=ye(l)?l.call(n):l;Reflect.ownKeys(z).forEach(te=>{Io(te,z[te])})}u&&yd(u,t,"c");function Y(z,te){de(te)?te.forEach(se=>z(se.bind(n))):te&&z(te.bind(n))}if(Y(hg,d),Y(xu,f),Y(rT,m),Y(iT,w),Y(eT,g),Y(tT,E),Y(lT,N),Y(aT,k),Y(oT,x),Y(mg,C),Y(Oa,v),Y(sT,O),de(B))if(B.length){const z=t.exposed||(t.exposed={});B.forEach(te=>{Object.defineProperty(z,te,{get:()=>n[te],set:se=>n[te]=se})})}else t.exposed||(t.exposed={});b&&t.render===fn&&(t.render=b),q!=null&&(t.inheritAttrs=q),Q&&(t.components=Q),ee&&(t.directives=ee)}function fT(t,e,n=fn,r=!1){de(t)&&(t=lc(t));for(const i in t){const s=t[i];let o;Ge(s)?"default"in s?o=Un(s.from||i,s.default,!0):o=Un(s.from||i):o=Un(s),ct(o)&&r?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[i]=o}}function yd(t,e,n){Jt(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function vg(t,e,n,r){const i=r.includes(".")?cg(n,r):()=>n[r];if(qe(t)){const s=e[t];ye(s)&&cr(i,s)}else if(ye(t))cr(i,t.bind(n));else if(Ge(t))if(de(t))t.forEach(s=>vg(s,e,n,r));else{const s=ye(t.handler)?t.handler.bind(n):e[t.handler];ye(s)&&cr(i,s,t)}}function bg(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Zo(l,c,o,!0)),Zo(l,e,o)),s.set(e,l),l}function Zo(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Zo(t,s,n,!0),i&&i.forEach(o=>Zo(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=dT[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const dT={data:Ed,props:Mr,emits:Mr,methods:Mr,computed:Mr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Mr,directives:Mr,watch:mT,provide:Ed,inject:hT};function Ed(t,e){return e?t?function(){return mt(ye(t)?t.call(this,this):t,ye(e)?e.call(this,this):e)}:e:t}function hT(t,e){return Mr(lc(t),lc(e))}function lc(t){if(de(t)){const e={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,m]=Eg(d,e,!0);mt(o,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return r.set(t,Si),Si;if(de(s))for(let u=0;u-1,m[1]=g<0||w-1||ke(m,"default"))&&a.push(d)}}}const c=[o,a];return r.set(t,c),c}function wd(t){return t[0]!=="$"}function Td(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function Cd(t,e){return Td(t)===Td(e)}function Sd(t,e){return de(e)?e.findIndex(n=>Cd(n,t)):ye(e)&&Cd(e,t)?0:-1}const wg=t=>t[0]==="_"||t==="$stable",Pu=t=>de(t)?t.map(yn):[yn(t)],_T=(t,e,n)=>{if(e._n)return e;const r=et((...i)=>Pu(e(...i)),n);return r._c=!1,r},Tg=(t,e,n)=>{const r=t._ctx;for(const i in t){if(wg(i))continue;const s=t[i];if(ye(s))e[i]=_T(i,s,r);else if(s!=null){const o=Pu(s);e[i]=()=>o}}},Cg=(t,e)=>{const n=Pu(e);t.slots.default=()=>n},vT=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Pe(e),qo(e,"_",n)):Tg(e,t.slots={})}else t.slots={},e&&Cg(t,e);qo(t.slots,Ma,1)},bT=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=Re;if(r.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:(mt(i,e),!n&&a===1&&delete i._):(s=!e.$stable,Tg(e,i)),o=e}else e&&(Cg(t,e),o={default:1});if(s)for(const a in i)!wg(a)&&!(a in o)&&delete i[a]};function Sg(){return{app:null,config:{isNativeTag:ZE,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let yT=0;function ET(t,e){return function(r,i=null){ye(r)||(r=Object.assign({},r)),i!=null&&!Ge(i)&&(i=null);const s=Sg(),o=new Set;let a=!1;const l=s.app={_uid:yT++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:VT,get config(){return s.config},set config(c){},use(c,...u){return o.has(c)||(c&&ye(c.install)?(o.add(c),c.install(l,...u)):ye(c)&&(o.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const f=ie(r,i);return f.appContext=s,u&&e?e(f,c):t(f,c,d),a=!0,l._container=c,c.__vue_app__=l,Ia(f.component)||f.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l}};return l}}function uc(t,e,n,r,i=!1){if(de(t)){t.forEach((f,m)=>uc(f,e&&(de(e)?e[m]:e),n,r,i));return}if(ws(r)&&!i)return;const s=r.shapeFlag&4?Ia(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Re?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(qe(c)?(u[c]=null,ke(d,c)&&(d[c]=null)):ct(c)&&(c.value=null)),ye(l))lr(l,a,12,[o,u]);else{const f=qe(l),m=ct(l);if(f||m){const w=()=>{if(t.f){const g=f?u[l]:l.value;i?de(g)&&pu(g,s):de(g)?g.includes(s)||g.push(s):f?(u[l]=[s],ke(d,l)&&(d[l]=u[l])):(l.value=[s],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,ke(d,l)&&(d[l]=o)):m&&(l.value=o,t.k&&(u[t.k]=o))};o?(w.id=-1,wt(w,n)):w()}}}const wt=Gw;function wT(t){return TT(t)}function TT(t,e){const n=sw();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:m=fn,cloneNode:w,insertStaticContent:g}=t,E=(h,p,T,L=null,D=null,H=null,G=!1,W=null,j=!!p.dynamicChildren)=>{if(h===p)return;h&&!Dr(h,p)&&(L=Z(h),Ne(h,D,H,!0),h=null),p.patchFlag===-2&&(j=!1,p.dynamicChildren=null);const{type:A,ref:$,shapeFlag:J}=p;switch(A){case Pa:_(h,p,T,L);break;case $t:C(h,p,T,L);break;case dl:h==null&&S(p,T,L,G);break;case xe:ee(h,p,T,L,D,H,G,W,j);break;default:J&1?k(h,p,T,L,D,H,G,W,j):J&6?I(h,p,T,L,D,H,G,W,j):(J&64||J&128)&&A.process(h,p,T,L,D,H,G,W,j,ge)}$!=null&&D&&uc($,h&&h.ref,H,p||h,!p)},_=(h,p,T,L)=>{if(h==null)r(p.el=a(p.children),T,L);else{const D=p.el=h.el;p.children!==h.children&&c(D,p.children)}},C=(h,p,T,L)=>{h==null?r(p.el=l(p.children||""),T,L):p.el=h.el},S=(h,p,T,L)=>{[h.el,h.anchor]=g(h.children,p,T,L,h.el,h.anchor)},v=({el:h,anchor:p},T,L)=>{let D;for(;h&&h!==p;)D=f(h),r(h,T,L),h=D;r(p,T,L)},b=({el:h,anchor:p})=>{let T;for(;h&&h!==p;)T=f(h),i(h),h=T;i(p)},k=(h,p,T,L,D,H,G,W,j)=>{G=G||p.type==="svg",h==null?x(p,T,L,D,H,G,W,j):B(h,p,D,H,G,W,j)},x=(h,p,T,L,D,H,G,W)=>{let j,A;const{type:$,props:J,shapeFlag:ne,transition:ue,patchFlag:be,dirs:Ce}=h;if(h.el&&w!==void 0&&be===-1)j=h.el=w(h.el);else{if(j=h.el=o(h.type,H,J&&J.is,J),ne&8?u(j,h.children):ne&16&&O(h.children,j,null,L,D,H&&$!=="foreignObject",G,W),Ce&&Lr(h,null,L,"created"),J){for(const Ve in J)Ve!=="value"&&!Po(Ve)&&s(j,Ve,null,J[Ve],H,h.children,L,D,U);"value"in J&&s(j,"value",null,J.value),(A=J.onVnodeBeforeMount)&&_n(A,L,h)}N(j,h,h.scopeId,G,L)}Ce&&Lr(h,null,L,"beforeMount");const Me=(!D||D&&!D.pendingBranch)&&ue&&!ue.persisted;Me&&ue.beforeEnter(j),r(j,p,T),((A=J&&J.onVnodeMounted)||Me||Ce)&&wt(()=>{A&&_n(A,L,h),Me&&ue.enter(j),Ce&&Lr(h,null,L,"mounted")},D)},N=(h,p,T,L,D)=>{if(T&&m(h,T),L)for(let H=0;H{for(let A=j;A{const W=p.el=h.el;let{patchFlag:j,dynamicChildren:A,dirs:$}=p;j|=h.patchFlag&16;const J=h.props||Re,ne=p.props||Re;let ue;T&&Nr(T,!1),(ue=ne.onVnodeBeforeUpdate)&&_n(ue,T,p,h),$&&Lr(p,h,T,"beforeUpdate"),T&&Nr(T,!0);const be=D&&p.type!=="foreignObject";if(A?q(h.dynamicChildren,A,W,T,L,be,H):G||se(h,p,W,null,T,L,be,H,!1),j>0){if(j&16)Q(W,p,J,ne,T,L,D);else if(j&2&&J.class!==ne.class&&s(W,"class",null,ne.class,D),j&4&&s(W,"style",J.style,ne.style,D),j&8){const Ce=p.dynamicProps;for(let Me=0;Me{ue&&_n(ue,T,p,h),$&&Lr(p,h,T,"updated")},L)},q=(h,p,T,L,D,H,G)=>{for(let W=0;W{if(T!==L){for(const W in L){if(Po(W))continue;const j=L[W],A=T[W];j!==A&&W!=="value"&&s(h,W,A,j,G,p.children,D,H,U)}if(T!==Re)for(const W in T)!Po(W)&&!(W in L)&&s(h,W,T[W],null,G,p.children,D,H,U);"value"in L&&s(h,"value",T.value,L.value)}},ee=(h,p,T,L,D,H,G,W,j)=>{const A=p.el=h?h.el:a(""),$=p.anchor=h?h.anchor:a("");let{patchFlag:J,dynamicChildren:ne,slotScopeIds:ue}=p;ue&&(W=W?W.concat(ue):ue),h==null?(r(A,T,L),r($,T,L),O(p.children,T,$,D,H,G,W,j)):J>0&&J&64&&ne&&h.dynamicChildren?(q(h.dynamicChildren,ne,T,D,H,G,W),(p.key!=null||D&&p===D.subTree)&&Mu(h,p,!0)):se(h,p,T,$,D,H,G,W,j)},I=(h,p,T,L,D,H,G,W,j)=>{p.slotScopeIds=W,h==null?p.shapeFlag&512?D.ctx.activate(p,T,L,G,j):M(p,T,L,D,H,G,j):Y(h,p,j)},M=(h,p,T,L,D,H,G)=>{const W=h.component=PT(h,L,D);if(La(h)&&(W.ctx.renderer=ge),MT(W),W.asyncDep){if(D&&D.registerDep(W,z),!h.el){const j=W.subTree=ie($t);C(null,j,p,T)}return}z(W,h,p,T,D,H,G)},Y=(h,p,T)=>{const L=p.component=h.component;if(Kw(h,p,T))if(L.asyncDep&&!L.asyncResolved){te(L,p,T);return}else L.next=p,Hw(L.update),L.update();else p.el=h.el,L.vnode=p},z=(h,p,T,L,D,H,G)=>{const W=()=>{if(h.isMounted){let{next:$,bu:J,u:ne,parent:ue,vnode:be}=h,Ce=$,Me;Nr(h,!1),$?($.el=be.el,te(h,$,G)):$=be,J&&Mo(J),(Me=$.props&&$.props.onVnodeBeforeUpdate)&&_n(Me,ue,$,be),Nr(h,!0);const Ve=ul(h),sn=h.subTree;h.subTree=Ve,E(sn,Ve,d(sn.el),Z(sn),h,D,H),$.el=Ve.el,Ce===null&&Yw(h,Ve.el),ne&&wt(ne,D),(Me=$.props&&$.props.onVnodeUpdated)&&wt(()=>_n(Me,ue,$,be),D)}else{let $;const{el:J,props:ne}=p,{bm:ue,m:be,parent:Ce}=h,Me=ws(p);if(Nr(h,!1),ue&&Mo(ue),!Me&&($=ne&&ne.onVnodeBeforeMount)&&_n($,Ce,p),Nr(h,!0),J&&oe){const Ve=()=>{h.subTree=ul(h),oe(J,h.subTree,h,D,null)};Me?p.type.__asyncLoader().then(()=>!h.isUnmounted&&Ve()):Ve()}else{const Ve=h.subTree=ul(h);E(null,Ve,T,L,h,D,H),p.el=Ve.el}if(be&&wt(be,D),!Me&&($=ne&&ne.onVnodeMounted)){const Ve=p;wt(()=>_n($,Ce,Ve),D)}(p.shapeFlag&256||Ce&&ws(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&h.a&&wt(h.a,D),h.isMounted=!0,p=T=L=null}},j=h.effect=new vu(W,()=>ng(A),h.scope),A=h.update=()=>j.run();A.id=h.uid,Nr(h,!0),A()},te=(h,p,T)=>{p.component=h;const L=h.vnode.props;h.vnode=p,h.next=null,gT(h,p.props,L,T),bT(h,p.children,T),is(),Aa(void 0,h.update),ss()},se=(h,p,T,L,D,H,G,W,j=!1)=>{const A=h&&h.children,$=h?h.shapeFlag:0,J=p.children,{patchFlag:ne,shapeFlag:ue}=p;if(ne>0){if(ne&128){he(A,J,T,L,D,H,G,W,j);return}else if(ne&256){ce(A,J,T,L,D,H,G,W,j);return}}ue&8?($&16&&U(A,D,H),J!==A&&u(T,J)):$&16?ue&16?he(A,J,T,L,D,H,G,W,j):U(A,D,H,!0):($&8&&u(T,""),ue&16&&O(J,T,L,D,H,G,W,j))},ce=(h,p,T,L,D,H,G,W,j)=>{h=h||Si,p=p||Si;const A=h.length,$=p.length,J=Math.min(A,$);let ne;for(ne=0;ne$?U(h,D,H,!0,!1,J):O(p,T,L,D,H,G,W,j,J)},he=(h,p,T,L,D,H,G,W,j)=>{let A=0;const $=p.length;let J=h.length-1,ne=$-1;for(;A<=J&&A<=ne;){const ue=h[A],be=p[A]=j?tr(p[A]):yn(p[A]);if(Dr(ue,be))E(ue,be,T,null,D,H,G,W,j);else break;A++}for(;A<=J&&A<=ne;){const ue=h[J],be=p[ne]=j?tr(p[ne]):yn(p[ne]);if(Dr(ue,be))E(ue,be,T,null,D,H,G,W,j);else break;J--,ne--}if(A>J){if(A<=ne){const ue=ne+1,be=ue<$?p[ue].el:L;for(;A<=ne;)E(null,p[A]=j?tr(p[A]):yn(p[A]),T,be,D,H,G,W,j),A++}}else if(A>ne)for(;A<=J;)Ne(h[A],D,H,!0),A++;else{const ue=A,be=A,Ce=new Map;for(A=be;A<=ne;A++){const Nt=p[A]=j?tr(p[A]):yn(p[A]);Nt.key!=null&&Ce.set(Nt.key,A)}let Me,Ve=0;const sn=ne-be+1;let oi=!1,Tf=0;const as=new Array(sn);for(A=0;A=sn){Ne(Nt,D,H,!0);continue}let gn;if(Nt.key!=null)gn=Ce.get(Nt.key);else for(Me=be;Me<=ne;Me++)if(as[Me-be]===0&&Dr(Nt,p[Me])){gn=Me;break}gn===void 0?Ne(Nt,D,H,!0):(as[gn-be]=A+1,gn>=Tf?Tf=gn:oi=!0,E(Nt,p[gn],T,null,D,H,G,W,j),Ve++)}const Cf=oi?CT(as):Si;for(Me=Cf.length-1,A=sn-1;A>=0;A--){const Nt=be+A,gn=p[Nt],Sf=Nt+1<$?p[Nt+1].el:L;as[A]===0?E(null,gn,T,Sf,D,H,G,W,j):oi&&(Me<0||A!==Cf[Me]?fe(gn,T,Sf,2):Me--)}}},fe=(h,p,T,L,D=null)=>{const{el:H,type:G,transition:W,children:j,shapeFlag:A}=h;if(A&6){fe(h.component.subTree,p,T,L);return}if(A&128){h.suspense.move(p,T,L);return}if(A&64){G.move(h,p,T,ge);return}if(G===xe){r(H,p,T);for(let J=0;JW.enter(H),D);else{const{leave:J,delayLeave:ne,afterLeave:ue}=W,be=()=>r(H,p,T),Ce=()=>{J(H,()=>{be(),ue&&ue()})};ne?ne(H,be,Ce):Ce()}else r(H,p,T)},Ne=(h,p,T,L=!1,D=!1)=>{const{type:H,props:G,ref:W,children:j,dynamicChildren:A,shapeFlag:$,patchFlag:J,dirs:ne}=h;if(W!=null&&uc(W,null,T,h,!0),$&256){p.ctx.deactivate(h);return}const ue=$&1&&ne,be=!ws(h);let Ce;if(be&&(Ce=G&&G.onVnodeBeforeUnmount)&&_n(Ce,p,h),$&6)X(h.component,T,L);else{if($&128){h.suspense.unmount(T,L);return}ue&&Lr(h,null,p,"beforeUnmount"),$&64?h.type.remove(h,p,T,D,ge,L):A&&(H!==xe||J>0&&J&64)?U(A,p,T,!1,!0):(H===xe&&J&384||!D&&$&16)&&U(j,p,T),L&&me(h)}(be&&(Ce=G&&G.onVnodeUnmounted)||ue)&&wt(()=>{Ce&&_n(Ce,p,h),ue&&Lr(h,null,p,"unmounted")},T)},me=h=>{const{type:p,el:T,anchor:L,transition:D}=h;if(p===xe){R(T,L);return}if(p===dl){b(h);return}const H=()=>{i(T),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(h.shapeFlag&1&&D&&!D.persisted){const{leave:G,delayLeave:W}=D,j=()=>G(T,H);W?W(h.el,H,j):j()}else H()},R=(h,p)=>{let T;for(;h!==p;)T=f(h),i(h),h=T;i(p)},X=(h,p,T)=>{const{bum:L,scope:D,update:H,subTree:G,um:W}=h;L&&Mo(L),D.stop(),H&&(H.active=!1,Ne(G,h,p,T)),W&&wt(W,p),wt(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},U=(h,p,T,L=!1,D=!1,H=0)=>{for(let G=H;Gh.shapeFlag&6?Z(h.component.subTree):h.shapeFlag&128?h.suspense.next():f(h.anchor||h.el),pe=(h,p,T)=>{h==null?p._vnode&&Ne(p._vnode,null,null,!0):E(p._vnode||null,h,p,null,null,null,T),sg(),p._vnode=h},ge={p:E,um:Ne,m:fe,r:me,mt:M,mc:O,pc:se,pbc:q,n:Z,o:t};let le,oe;return e&&([le,oe]=e(ge)),{render:pe,hydrate:le,createApp:ET(pe,le)}}function Nr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Mu(t,e,n=!1){const r=t.children,i=e.children;if(de(r)&&de(i))for(let s=0;s>1,t[n[a]]0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}const ST=t=>t.__isTeleport,Ts=t=>t&&(t.disabled||t.disabled===""),Ad=t=>typeof SVGElement<"u"&&t instanceof SVGElement,fc=(t,e)=>{const n=t&&t.to;return qe(n)?e?e(n):null:n},AT={__isTeleport:!0,process(t,e,n,r,i,s,o,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:m,querySelector:w,createText:g,createComment:E}}=c,_=Ts(e.props);let{shapeFlag:C,children:S,dynamicChildren:v}=e;if(t==null){const b=e.el=g(""),k=e.anchor=g("");m(b,n,r),m(k,n,r);const x=e.target=fc(e.props,w),N=e.targetAnchor=g("");x&&(m(N,x),o=o||Ad(x));const O=(B,q)=>{C&16&&u(S,B,q,i,s,o,a,l)};_?O(n,k):x&&O(x,N)}else{e.el=t.el;const b=e.anchor=t.anchor,k=e.target=t.target,x=e.targetAnchor=t.targetAnchor,N=Ts(t.props),O=N?n:k,B=N?b:x;if(o=o||Ad(k),v?(f(t.dynamicChildren,v,O,i,s,o,a),Mu(t,e,!0)):l||d(t,e,O,B,i,s,o,a,!1),_)N||So(e,n,b,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const q=e.target=fc(e.props,w);q&&So(e,q,null,c,0)}else N&&So(e,k,x,c,1)}},remove(t,e,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:d,props:f}=t;if(d&&s(u),(o||!Ts(f))&&(s(c),a&16))for(let m=0;m0?un||Si:null,xT(),Us>0&&un&&un.push(t),t}function V(t,e,n,r,i,s){return Ag(y(t,e,n,r,i,s,!0))}function Te(t,e,n,r,i){return Ag(ie(t,e,n,r,i,!0))}function ea(t){return t?t.__v_isVNode===!0:!1}function Dr(t,e){return t.type===e.type&&t.key===e.key}const Ma="__vInternal",kg=({key:t})=>t!=null?t:null,Do=({ref:t,ref_key:e,ref_for:n})=>t!=null?qe(t)||ct(t)||ye(t)?{i:dt,r:t,k:e,f:!!n}:t:null;function y(t,e=null,n=null,r=0,i=null,s=t===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&kg(e),ref:e&&Do(e),scopeId:xa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Iu(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=qe(n)?8:16),Us>0&&!o&&un&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&un.push(l),l}const ie=LT;function LT(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===pg)&&(t=$t),ea(t)){const a=gr(t,e,!0);return n&&Iu(a,n),Us>0&&!s&&un&&(a.shapeFlag&6?un[un.indexOf(t)]=a:un.push(a)),a.patchFlag|=-2,a}if(FT(t)&&(t=t.__vccOpts),e){e=Kt(e);let{class:a,style:l}=e;a&&!qe(a)&&(e.class=De(a)),Ge(l)&&(Tu(l)&&!de(l)&&(l=mt({},l)),e.style=Ct(l))}const o=qe(t)?1:qw(t)?128:ST(t)?64:Ge(t)?4:ye(t)?2:0;return y(t,e,n,r,i,o,s,!0)}function Kt(t){return t?Tu(t)||Ma in t?mt({},t):t:null}function gr(t,e,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=t,a=e?Dt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&kg(a),ref:e&&e.ref?n&&i?de(i)?i.concat(Do(e)):[i,Do(e)]:Do(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xe?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&gr(t.ssContent),ssFallback:t.ssFallback&&gr(t.ssFallback),el:t.el,anchor:t.anchor}}function Le(t=" ",e=0){return ie(Pa,null,t,e)}function ve(t="",e=!1){return e?(P(),Te($t,null,t)):ie($t,null,t)}function yn(t){return t==null||typeof t=="boolean"?ie($t):de(t)?ie(xe,null,t.slice()):typeof t=="object"?tr(t):ie(Pa,null,String(t))}function tr(t){return t.el===null||t.memo?t:gr(t)}function Iu(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Iu(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Ma in e)?e._ctx=dt:i===3&&dt&&(dt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ye(e)?(e={default:e,_ctx:dt},n=32):(e=String(e),r&64?(n=16,e=[Le(e)]):n=8);t.children=e,t.shapeFlag|=n}function Dt(...t){const e={};for(let n=0;nit||dt,Vi=t=>{it=t,t.scope.on()},jr=()=>{it&&it.scope.off(),it=null};function xg(t){return t.vnode.shapeFlag&4}let js=!1;function MT(t,e=!1){js=e;const{props:n,children:r}=t.vnode,i=xg(t);pT(t,n,i,e),vT(t,r);const s=i?IT(t,e):void 0;return js=!1,s}function IT(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Cu(new Proxy(t.ctx,cT));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?$T(t):null;Vi(t),is();const s=lr(r,t,0,[t.props,i]);if(ss(),jr(),Ip(s)){if(s.then(jr,jr),e)return s.then(o=>{xd(t,o,e)}).catch(o=>{Sa(o,t,0)});t.asyncDep=s}else xd(t,s,e)}else Lg(t,e)}function xd(t,e,n){ye(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ge(e)&&(t.setupState=Zp(e)),Lg(t,n)}let Ld;function Lg(t,e,n){const r=t.type;if(!t.render){if(!e&&Ld&&!r.render){const i=r.template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=mt(mt({isCustomElement:s,delimiters:a},o),l);r.render=Ld(i,c)}}t.render=r.render||fn}Vi(t),is(),uT(t),ss(),jr()}function DT(t){return new Proxy(t.attrs,{get(e,n){return Ht(t,"get","$attrs"),e[n]}})}function $T(t){const e=r=>{t.exposed=r||{}};let n;return{get attrs(){return n||(n=DT(t))},slots:t.slots,emit:t.emit,expose:e}}function Ia(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Zp(Cu(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Jo)return Jo[n](t)}}))}function RT(t,e=!0){return ye(t)?t.displayName||t.name:t.name||e&&t.__name}function FT(t){return ye(t)&&"__vccOpts"in t}const je=(t,e)=>Rw(t,e,js);function Cr(t,e,n){const r=arguments.length;return r===2?Ge(e)&&!de(e)?ea(e)?ie(t,null,[e]):ie(t,e):ie(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ea(n)&&(n=[n]),ie(t,e,n))}const VT="3.2.37",HT="http://www.w3.org/2000/svg",$r=typeof document<"u"?document:null,Nd=$r&&$r.createElement("template"),BT={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?$r.createElementNS(HT,t):$r.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>$r.createTextNode(t),createComment:t=>$r.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>$r.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Nd.innerHTML=r?`${t}`:t;const a=Nd.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function UT(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function jT(t,e,n){const r=t.style,i=qe(n);if(n&&!i){for(const s in n)dc(r,s,n[s]);if(e&&!qe(e))for(const s in e)n[s]==null&&dc(r,s,"")}else{const s=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=s)}}const Od=/\s*!important$/;function dc(t,e,n){if(de(n))n.forEach(r=>dc(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=WT(t,e);Od.test(n)?t.setProperty(rs(r),n.replace(Od,""),"important"):t[r]=n}}const Pd=["Webkit","Moz","ms"],hl={};function WT(t,e){const n=hl[e];if(n)return n;let r=xn(e);if(r!=="filter"&&r in t)return hl[e]=r;r=Ta(r);for(let i=0;i{let t=Date.now,e=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(t=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);e=!!(n&&Number(n[1])<=53)}return[t,e]})();let hc=0;const qT=Promise.resolve(),GT=()=>{hc=0},XT=()=>hc||(qT.then(GT),hc=Ng());function Rn(t,e,n,r){t.addEventListener(e,n,r)}function QT(t,e,n,r){t.removeEventListener(e,n,r)}function JT(t,e,n,r,i=null){const s=t._vei||(t._vei={}),o=s[e];if(r&&o)o.value=r;else{const[a,l]=ZT(e);if(r){const c=s[e]=e2(r,i);Rn(t,a,c,l)}else o&&(QT(t,a,o,l),s[e]=void 0)}}const Id=/(?:Once|Passive|Capture)$/;function ZT(t){let e;if(Id.test(t)){e={};let n;for(;n=t.match(Id);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[rs(t.slice(2)),e]}function e2(t,e){const n=r=>{const i=r.timeStamp||Ng();(YT||i>=n.attached-1)&&Jt(t2(r,n.value),e,5,[r])};return n.value=t,n.attached=XT(),n}function t2(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Dd=/^on[a-z]/,n2=(t,e,n,r,i=!1,s,o,a,l)=>{e==="class"?UT(t,r,i):e==="style"?jT(t,n,r):Ea(e)?mu(e)||JT(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):r2(t,e,r,i))?KT(t,e,r,s,o,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),zT(t,e,r,i))};function r2(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Dd.test(e)&&ye(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Dd.test(e)&&qe(n)?!1:e in t}const i2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Zw.props;const _r=t=>{const e=t.props["onUpdate:modelValue"]||!1;return de(e)?n=>Mo(e,n):e};function s2(t){t.target.composing=!0}function $d(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const o2={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t._assign=_r(i);const s=r||i.props&&i.props.type==="number";Rn(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),s&&(a=Go(a)),t._assign(a)}),n&&Rn(t,"change",()=>{t.value=t.value.trim()}),e||(Rn(t,"compositionstart",s2),Rn(t,"compositionend",$d),Rn(t,"change",$d))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},s){if(t._assign=_r(s),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(i||t.type==="number")&&Go(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},a2={deep:!0,created(t,e,n){t._assign=_r(n),Rn(t,"change",()=>{const r=t._modelValue,i=Hi(t),s=t.checked,o=t._assign;if(de(r)){const a=hu(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(ns(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(Og(t,s))})},mounted:Rd,beforeUpdate(t,e,n){t._assign=_r(n),Rd(t,e,n)}};function Rd(t,{value:e,oldValue:n},r){t._modelValue=e,de(e)?t.checked=hu(e,r.props.value)>-1:ns(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Gr(e,Og(t,!0)))}const ml={created(t,{value:e},n){t.checked=Gr(e,n.props.value),t._assign=_r(n),Rn(t,"change",()=>{t._assign(Hi(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=_r(r),e!==n&&(t.checked=Gr(e,r.props.value))}},$o={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=ns(e);Rn(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Go(Hi(o)):Hi(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=_r(r)},mounted(t,{value:e}){Fd(t,e)},beforeUpdate(t,e,n){t._assign=_r(n)},updated(t,{value:e}){Fd(t,e)}};function Fd(t,e){const n=t.multiple;if(!(n&&!de(e)&&!ns(e))){for(let r=0,i=t.options.length;r-1:s.selected=e.has(o);else if(Gr(Hi(s),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Hi(t){return"_value"in t?t._value:t.value}function Og(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const l2=["ctrl","shift","alt","meta"],c2={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>l2.some(n=>t[`${n}Key`]&&!e.includes(n))},Ws=(t,e)=>(n,...r)=>{for(let i=0;i{us(t,!1)}):us(t,e))},beforeUnmount(t,{value:e}){us(t,e)}};function us(t,e){t.style.display=e?t._vod:"none"}const u2=mt({patchProp:n2},BT);let Vd;function f2(){return Vd||(Vd=wT(u2))}const d2=(...t)=>{const e=f2().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=h2(r);if(!i)return;const s=e._component;!ye(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function h2(t){return qe(t)?document.querySelector(t):t}/** + */const N0=1e6,O0=1e3,Yl="transitionend",P0=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),M0=t=>{do t+=Math.floor(Math.random()*N0);while(document.getElementById(t));return t},rp=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e},ip=t=>{const e=rp(t);return e&&document.querySelector(e)?e:null},Vn=t=>{const e=rp(t);return e?document.querySelector(e):null},I0=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return!r&&!i?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*O0)},sp=t=>{t.dispatchEvent(new Event(Yl))},Hn=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),dr=t=>Hn(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(t):null,es=t=>{if(!Hn(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},hr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",op=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?op(t.parentNode):null},zo=()=>{},to=t=>{t.offsetHeight},ap=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xa=[],D0=t=>{document.readyState==="loading"?(Xa.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Xa)e()}),Xa.push(t)):t()},en=()=>document.documentElement.dir==="rtl",rn=t=>{D0(()=>{const e=ap();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Dn=t=>{typeof t=="function"&&t()},lp=(t,e,n=!0)=>{if(!n){Dn(t);return}const r=5,i=I0(e)+r;let s=!1;const o=({target:a})=>{a===e&&(s=!0,e.removeEventListener(Yl,o),Dn(t))};e.addEventListener(Yl,o),setTimeout(()=>{s||sp(e)},i)},au=(t,e,n,r)=>{const i=t.length;let s=t.indexOf(e);return s===-1?!n&&r?t[i-1]:t[0]:(s+=n?1:-1,r&&(s=(s+i)%i),t[Math.max(0,Math.min(s,i-1))])},$0=/[^.]*(?=\..*)\.|.*/,R0=/\..*/,F0=/::\d+$/,Qa={};let If=1;const cp={mouseenter:"mouseover",mouseleave:"mouseout"},V0=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function up(t,e){return e&&`${e}::${If++}`||t.uidEvent||If++}function fp(t){const e=up(t);return t.uidEvent=e,Qa[e]=Qa[e]||{},Qa[e]}function H0(t,e){return function n(r){return lu(r,{delegateTarget:t}),n.oneOff&&K.off(t,r.type,e),e.apply(t,[r])}}function B0(t,e,n){return function r(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return lu(i,{delegateTarget:o}),r.oneOff&&K.off(t,i.type,e,n),n.apply(o,[i])}}function dp(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function hp(t,e,n){const r=typeof e=="string",i=r?n:e||n;let s=mp(t);return V0.has(s)||(s=t),[r,i,s]}function Df(t,e,n,r,i){if(typeof e!="string"||!t)return;let[s,o,a]=hp(e,n,r);e in cp&&(o=(w=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return w.call(this,g)})(o));const l=fp(t),c=l[a]||(l[a]={}),u=dp(c,o,s?n:null);if(u){u.oneOff=u.oneOff&&i;return}const d=up(o,e.replace($0,"")),f=s?B0(t,n,o):H0(t,o);f.delegationSelector=s?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,c[d]=f,t.addEventListener(a,f,s)}function ql(t,e,n,r,i){const s=dp(e[n],r,i);!s||(t.removeEventListener(n,s,Boolean(i)),delete e[n][s.uidEvent])}function U0(t,e,n,r){const i=e[n]||{};for(const s of Object.keys(i))if(s.includes(r)){const o=i[s];ql(t,e,n,o.callable,o.delegationSelector)}}function mp(t){return t=t.replace(R0,""),cp[t]||t}const K={on(t,e,n,r){Df(t,e,n,r,!1)},one(t,e,n,r){Df(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[i,s,o]=hp(e,n,r),a=o!==e,l=fp(t),c=l[o]||{},u=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;ql(t,l,o,s,i?n:null);return}if(u)for(const d of Object.keys(l))U0(t,l,d,e.slice(1));for(const d of Object.keys(c)){const f=d.replace(F0,"");if(!a||e.includes(f)){const m=c[d];ql(t,l,o,m.callable,m.delegationSelector)}}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=ap(),i=mp(e),s=e!==i;let o=null,a=!0,l=!0,c=!1;s&&r&&(o=r.Event(e,n),r(t).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());let u=new Event(e,{bubbles:a,cancelable:!0});return u=lu(u,n),c&&u.preventDefault(),l&&t.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function lu(t,e){for(const[n,r]of Object.entries(e||{}))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}const Xn=new Map,Ja={set(t,e,n){Xn.has(t)||Xn.set(t,new Map);const r=Xn.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Xn.has(t)&&Xn.get(t).get(e)||null},remove(t,e){if(!Xn.has(t))return;const n=Xn.get(t);n.delete(e),n.size===0&&Xn.delete(t)}};function $f(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Za(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bn={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Za(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Za(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=$f(t.dataset[r])}return e},getDataAttribute(t,e){return $f(t.getAttribute(`data-bs-${Za(e)}`))}};class no{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=Hn(n)?Bn.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Hn(n)?Bn.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const r of Object.keys(n)){const i=n[r],s=e[r],o=Hn(s)?"element":P0(s);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${i}".`)}}}const j0="5.2.2";class mn extends no{constructor(e,n){super(),e=dr(e),e&&(this._element=e,this._config=this._getConfig(n),Ja.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ja.remove(this._element,this.constructor.DATA_KEY),K.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){lp(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ja.get(dr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return j0}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ga=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;K.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),hr(this))return;const s=Vn(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()})},W0="alert",z0="bs.alert",pp=`.${z0}`,K0=`close${pp}`,Y0=`closed${pp}`,q0="fade",G0="show";class _a extends mn{static get NAME(){return W0}close(){if(K.trigger(this._element,K0).defaultPrevented)return;this._element.classList.remove(G0);const n=this._element.classList.contains(q0);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),K.trigger(this._element,Y0),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=_a.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}ga(_a,"close");rn(_a);const X0="button",Q0="bs.button",J0=`.${Q0}`,Z0=".data-api",eb="active",Rf='[data-bs-toggle="button"]',tb=`click${J0}${Z0}`;class va extends mn{static get NAME(){return X0}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(eb))}static jQueryInterface(e){return this.each(function(){const n=va.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}K.on(document,tb,Rf,t=>{t.preventDefault();const e=t.target.closest(Rf);va.getOrCreateInstance(e).toggle()});rn(va);const Ee={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!hr(n)&&es(n))}},nb="swipe",ts=".bs.swipe",rb=`touchstart${ts}`,ib=`touchmove${ts}`,sb=`touchend${ts}`,ob=`pointerdown${ts}`,ab=`pointerup${ts}`,lb="touch",cb="pen",ub="pointer-event",fb=40,db={endCallback:null,leftCallback:null,rightCallback:null},hb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ko extends no{constructor(e,n){super(),this._element=e,!(!e||!Ko.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return db}static get DefaultType(){return hb}static get NAME(){return nb}dispose(){K.off(this._element,ts)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Dn(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=fb)return;const n=e/this._deltaX;this._deltaX=0,n&&Dn(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(K.on(this._element,ob,e=>this._start(e)),K.on(this._element,ab,e=>this._end(e)),this._element.classList.add(ub)):(K.on(this._element,rb,e=>this._start(e)),K.on(this._element,ib,e=>this._move(e)),K.on(this._element,sb,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===cb||e.pointerType===lb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const mb="carousel",pb="bs.carousel",Er=`.${pb}`,gp=".data-api",gb="ArrowLeft",_b="ArrowRight",vb=500,ls="next",ai="prev",mi="left",No="right",bb=`slide${Er}`,el=`slid${Er}`,yb=`keydown${Er}`,Eb=`mouseenter${Er}`,wb=`mouseleave${Er}`,Tb=`dragstart${Er}`,Cb=`load${Er}${gp}`,Sb=`click${Er}${gp}`,_p="carousel",mo="active",Ab="slide",kb="carousel-item-end",xb="carousel-item-start",Lb="carousel-item-next",Nb="carousel-item-prev",vp=".active",bp=".carousel-item",Ob=vp+bp,Pb=".carousel-item img",Mb=".carousel-indicators",Ib="[data-bs-slide], [data-bs-slide-to]",Db='[data-bs-ride="carousel"]',$b={[gb]:No,[_b]:mi},Rb={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Fb={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ro extends mn{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ee.findOne(Mb,this._element),this._addEventListeners(),this._config.ride===_p&&this.cycle()}static get Default(){return Rb}static get DefaultType(){return Fb}static get NAME(){return mb}next(){this._slide(ls)}nextWhenVisible(){!document.hidden&&es(this._element)&&this.next()}prev(){this._slide(ai)}pause(){this._isSliding&&sp(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){K.one(this._element,el,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){K.one(this._element,el,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const i=e>r?ls:ai;this._slide(i,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&K.on(this._element,yb,e=>this._keydown(e)),this._config.pause==="hover"&&(K.on(this._element,Eb,()=>this.pause()),K.on(this._element,wb,()=>this._maybeEnableCycle())),this._config.touch&&Ko.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ee.find(Pb,this._element))K.on(r,Tb,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(mi)),rightCallback:()=>this._slide(this._directionToOrder(No)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),vb+this._config.interval))}};this._swipeHelper=new Ko(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=$b[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ee.findOne(vp,this._indicatorsElement);n.classList.remove(mo),n.removeAttribute("aria-current");const r=Ee.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(mo),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),i=e===ls,s=n||au(this._getItems(),r,i,this._config.wrap);if(s===r)return;const o=this._getItemIndex(s),a=m=>K.trigger(this._element,m,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:o});if(a(bb).defaultPrevented||!r||!s)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const u=i?xb:kb,d=i?Lb:Nb;s.classList.add(d),to(s),r.classList.add(u),s.classList.add(u);const f=()=>{s.classList.remove(u,d),s.classList.add(mo),r.classList.remove(mo,d,u),this._isSliding=!1,a(el)};this._queueCallback(f,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(Ab)}_getActive(){return Ee.findOne(Ob,this._element)}_getItems(){return Ee.find(bp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return en()?e===mi?ai:ls:e===mi?ls:ai}_orderToDirection(e){return en()?e===ai?mi:No:e===ai?No:mi}static jQueryInterface(e){return this.each(function(){const n=ro.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(document,Sb,Ib,function(t){const e=Vn(this);if(!e||!e.classList.contains(_p))return;t.preventDefault();const n=ro.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(Bn.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});K.on(window,Cb,()=>{const t=Ee.find(Db);for(const e of t)ro.getOrCreateInstance(e)});rn(ro);const Vb="collapse",Hb="bs.collapse",io=`.${Hb}`,Bb=".data-api",Ub=`show${io}`,jb=`shown${io}`,Wb=`hide${io}`,zb=`hidden${io}`,Kb=`click${io}${Bb}`,tl="show",yi="collapse",po="collapsing",Yb="collapsed",qb=`:scope .${yi} .${yi}`,Gb="collapse-horizontal",Xb="width",Qb="height",Jb=".collapse.show, .collapse.collapsing",Gl='[data-bs-toggle="collapse"]',Zb={parent:null,toggle:!0},e1={parent:"(null|element)",toggle:"boolean"};class $s extends mn{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ee.find(Gl);for(const i of r){const s=ip(i),o=Ee.find(s).filter(a=>a===this._element);s!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Zb}static get DefaultType(){return e1}static get NAME(){return Vb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Jb).filter(a=>a!==this._element).map(a=>$s.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||K.trigger(this._element,Ub).defaultPrevented)return;for(const a of e)a.hide();const r=this._getDimension();this._element.classList.remove(yi),this._element.classList.add(po),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(yi,tl),this._element.style[r]="",K.trigger(this._element,jb)},o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||K.trigger(this._element,Wb).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,to(this._element),this._element.classList.add(po),this._element.classList.remove(yi,tl);for(const i of this._triggerArray){const s=Vn(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(po),this._element.classList.add(yi),K.trigger(this._element,zb)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(tl)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=dr(e.parent),e}_getDimension(){return this._element.classList.contains(Gb)?Xb:Qb}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Gl);for(const n of e){const r=Vn(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ee.find(qb,this._config.parent);return Ee.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(!!e.length)for(const r of e)r.classList.toggle(Yb,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=$s.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}K.on(document,Kb,Gl,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();const e=ip(this),n=Ee.find(e);for(const r of n)$s.getOrCreateInstance(r,{toggle:!1}).toggle()});rn($s);const Ff="dropdown",t1="bs.dropdown",Qr=`.${t1}`,cu=".data-api",n1="Escape",Vf="Tab",r1="ArrowUp",Hf="ArrowDown",i1=2,s1=`hide${Qr}`,o1=`hidden${Qr}`,a1=`show${Qr}`,l1=`shown${Qr}`,yp=`click${Qr}${cu}`,Ep=`keydown${Qr}${cu}`,c1=`keyup${Qr}${cu}`,pi="show",u1="dropup",f1="dropend",d1="dropstart",h1="dropup-center",m1="dropdown-center",Rr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',p1=`${Rr}.${pi}`,Oo=".dropdown-menu",g1=".navbar",_1=".navbar-nav",v1=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",b1=en()?"top-end":"top-start",y1=en()?"top-start":"top-end",E1=en()?"bottom-end":"bottom-start",w1=en()?"bottom-start":"bottom-end",T1=en()?"left-start":"right-start",C1=en()?"right-start":"left-start",S1="top",A1="bottom",k1={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},x1={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Cn extends mn{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ee.next(this._element,Oo)[0]||Ee.prev(this._element,Oo)[0]||Ee.findOne(Oo,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return k1}static get DefaultType(){return x1}static get NAME(){return Ff}toggle(){return this._isShown()?this.hide():this.show()}show(){if(hr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!K.trigger(this._element,a1,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(_1))for(const r of[].concat(...document.body.children))K.on(r,"mouseover",zo);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(pi),this._element.classList.add(pi),K.trigger(this._element,l1,e)}}hide(){if(hr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!K.trigger(this._element,s1,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))K.off(r,"mouseover",zo);this._popper&&this._popper.destroy(),this._menu.classList.remove(pi),this._element.classList.remove(pi),this._element.setAttribute("aria-expanded","false"),Bn.removeDataAttribute(this._menu,"popper"),K.trigger(this._element,o1,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Hn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Ff.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof np>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Hn(this._config.reference)?e=dr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=ou(e,this._menu,n)}_isShown(){return this._menu.classList.contains(pi)}_getPlacement(){const e=this._parent;if(e.classList.contains(f1))return T1;if(e.classList.contains(d1))return C1;if(e.classList.contains(h1))return S1;if(e.classList.contains(m1))return A1;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(u1)?n?y1:b1:n?w1:E1}_detectNavbar(){return this._element.closest(g1)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:n}){const r=Ee.find(v1,this._menu).filter(i=>es(i));!r.length||au(r,n,e===Hf,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Cn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===i1||e.type==="keyup"&&e.key!==Vf)return;const n=Ee.find(p1);for(const r of n){const i=Cn.getInstance(r);if(!i||i._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Vf||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:i._element};e.type==="click"&&(a.clickEvent=e),i._completeHide(a)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===n1,i=[r1,Hf].includes(e.key);if(!i&&!r||n&&!r)return;e.preventDefault();const s=this.matches(Rr)?this:Ee.prev(this,Rr)[0]||Ee.next(this,Rr)[0]||Ee.findOne(Rr,e.delegateTarget.parentNode),o=Cn.getOrCreateInstance(s);if(i){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}K.on(document,Ep,Rr,Cn.dataApiKeydownHandler);K.on(document,Ep,Oo,Cn.dataApiKeydownHandler);K.on(document,yp,Cn.clearMenus);K.on(document,c1,Cn.clearMenus);K.on(document,yp,Rr,function(t){t.preventDefault(),Cn.getOrCreateInstance(this).toggle()});rn(Cn);const Bf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Uf=".sticky-top",go="padding-right",jf="margin-right";class Xl{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,go,n=>n+e),this._setElementAttributes(Bf,go,n=>n+e),this._setElementAttributes(Uf,jf,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,go),this._resetElementAttributes(Bf,go),this._resetElementAttributes(Uf,jf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${r(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&Bn.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=i=>{const s=Bn.getDataAttribute(i,n);if(s===null){i.style.removeProperty(n);return}Bn.removeDataAttribute(i,n),i.style.setProperty(n,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(Hn(e)){n(e);return}for(const r of Ee.find(e,this._element))n(r)}}const wp="backdrop",L1="fade",Wf="show",zf=`mousedown.bs.${wp}`,N1={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},O1={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Tp extends no{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return N1}static get DefaultType(){return O1}static get NAME(){return wp}show(e){if(!this._config.isVisible){Dn(e);return}this._append();const n=this._getElement();this._config.isAnimated&&to(n),n.classList.add(Wf),this._emulateAnimation(()=>{Dn(e)})}hide(e){if(!this._config.isVisible){Dn(e);return}this._getElement().classList.remove(Wf),this._emulateAnimation(()=>{this.dispose(),Dn(e)})}dispose(){!this._isAppended||(K.off(this._element,zf),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(L1),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=dr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),K.on(e,zf,()=>{Dn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){lp(e,this._getElement(),this._config.isAnimated)}}const P1="focustrap",M1="bs.focustrap",Yo=`.${M1}`,I1=`focusin${Yo}`,D1=`keydown.tab${Yo}`,$1="Tab",R1="forward",Kf="backward",F1={autofocus:!0,trapElement:null},V1={autofocus:"boolean",trapElement:"element"};class Cp extends no{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return F1}static get DefaultType(){return V1}static get NAME(){return P1}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),K.off(document,Yo),K.on(document,I1,e=>this._handleFocusin(e)),K.on(document,D1,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,K.off(document,Yo))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ee.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Kf?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===$1&&(this._lastTabNavDirection=e.shiftKey?Kf:R1)}}const H1="modal",B1="bs.modal",pn=`.${B1}`,U1=".data-api",j1="Escape",W1=`hide${pn}`,z1=`hidePrevented${pn}`,Sp=`hidden${pn}`,Ap=`show${pn}`,K1=`shown${pn}`,Y1=`resize${pn}`,q1=`click.dismiss${pn}`,G1=`mousedown.dismiss${pn}`,X1=`keydown.dismiss${pn}`,Q1=`click${pn}${U1}`,Yf="modal-open",J1="fade",qf="show",nl="modal-static",Z1=".modal.show",ey=".modal-dialog",ty=".modal-body",ny='[data-bs-toggle="modal"]',ry={backdrop:!0,focus:!0,keyboard:!0},iy={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ri extends mn{constructor(e,n){super(e,n),this._dialog=Ee.findOne(ey,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xl,this._addEventListeners()}static get Default(){return ry}static get DefaultType(){return iy}static get NAME(){return H1}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||K.trigger(this._element,Ap,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Yf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||K.trigger(this._element,W1).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(qf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const e of[window,this._dialog])K.off(e,pn);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Tp({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Cp({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ee.findOne(ty,this._dialog);n&&(n.scrollTop=0),to(this._element),this._element.classList.add(qf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,K.trigger(this._element,K1,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){K.on(this._element,X1,e=>{if(e.key===j1){if(this._config.keyboard){e.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),K.on(window,Y1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),K.on(this._element,G1,e=>{K.one(this._element,q1,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Yf),this._resetAdjustments(),this._scrollBar.reset(),K.trigger(this._element,Sp)})}_isAnimated(){return this._element.classList.contains(J1)}_triggerBackdropTransition(){if(K.trigger(this._element,z1).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(nl)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(nl),this._queueCallback(()=>{this._element.classList.remove(nl),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const i=en()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&e){const i=en()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Ri.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}K.on(document,Q1,ny,function(t){const e=Vn(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),K.one(e,Ap,i=>{i.defaultPrevented||K.one(e,Sp,()=>{es(this)&&this.focus()})});const n=Ee.findOne(Z1);n&&Ri.getInstance(n).hide(),Ri.getOrCreateInstance(e).toggle(this)});ga(Ri);rn(Ri);const sy="offcanvas",oy="bs.offcanvas",qn=`.${oy}`,kp=".data-api",ay=`load${qn}${kp}`,ly="Escape",Gf="show",Xf="showing",Qf="hiding",cy="offcanvas-backdrop",xp=".offcanvas.show",uy=`show${qn}`,fy=`shown${qn}`,dy=`hide${qn}`,Jf=`hidePrevented${qn}`,Lp=`hidden${qn}`,hy=`resize${qn}`,my=`click${qn}${kp}`,py=`keydown.dismiss${qn}`,gy='[data-bs-toggle="offcanvas"]',_y={backdrop:!0,keyboard:!0,scroll:!1},vy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class mr extends mn{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return _y}static get DefaultType(){return vy}static get NAME(){return sy}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||K.trigger(this._element,uy,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Xf);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Gf),this._element.classList.remove(Xf),K.trigger(this._element,fy,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||K.trigger(this._element,dy).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Qf),this._backdrop.hide();const n=()=>{this._element.classList.remove(Gf,Qf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xl().reset(),K.trigger(this._element,Lp)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){K.trigger(this._element,Jf);return}this.hide()},n=Boolean(this._config.backdrop);return new Tp({className:cy,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new Cp({trapElement:this._element})}_addEventListeners(){K.on(this._element,py,e=>{if(e.key===ly){if(!this._config.keyboard){K.trigger(this._element,Jf);return}this.hide()}})}static jQueryInterface(e){return this.each(function(){const n=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}K.on(document,my,gy,function(t){const e=Vn(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),hr(this))return;K.one(e,Lp,()=>{es(this)&&this.focus()});const n=Ee.findOne(xp);n&&n!==e&&mr.getInstance(n).hide(),mr.getOrCreateInstance(e).toggle(this)});K.on(window,ay,()=>{for(const t of Ee.find(xp))mr.getOrCreateInstance(t).show()});K.on(window,hy,()=>{for(const t of Ee.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&mr.getOrCreateInstance(t).hide()});ga(mr);rn(mr);const by=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),yy=/^aria-[\w-]*$/i,Ey=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,wy=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ty=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?by.has(n)?Boolean(Ey.test(t.nodeValue)||wy.test(t.nodeValue)):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))},Np={"*":["class","dir","id","lang","role",yy],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Cy(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const o of s){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),c=[].concat(e["*"]||[],e[a]||[]);for(const u of l)Ty(u,c)||o.removeAttribute(u.nodeName)}return i.body.innerHTML}const Sy="TemplateFactory",Ay={allowList:Np,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ky={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},xy={entry:"(string|element|function|null)",selector:"(string|element)"};class Ly extends no{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ay}static get DefaultType(){return ky}static get NAME(){return Sy}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(e,s,i);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},xy)}_setContent(e,n,r){const i=Ee.findOne(r,e);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Hn(n)){this._putElementInTemplate(dr(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(e){return this._config.sanitize?Cy(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return typeof e=="function"?e(this):e}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const Ny="tooltip",Oy=new Set(["sanitize","allowList","sanitizeFn"]),rl="fade",Py="modal",_o="show",My=".tooltip-inner",Zf=`.${Py}`,ed="hide.bs.modal",cs="hover",il="focus",Iy="click",Dy="manual",$y="hide",Ry="hidden",Fy="show",Vy="shown",Hy="inserted",By="click",Uy="focusin",jy="focusout",Wy="mouseenter",zy="mouseleave",Ky={AUTO:"auto",TOP:"top",RIGHT:en()?"left":"right",BOTTOM:"bottom",LEFT:en()?"right":"left"},Yy={allowList:Np,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},qy={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class wr extends mn{constructor(e,n){if(typeof np>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Yy}static get DefaultType(){return qy}static get NAME(){return Ny}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),K.off(this._element.closest(Zf),ed,this._hideModalHandler),this.tip&&this.tip.remove(),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=K.trigger(this._element,this.constructor.eventName(Fy)),r=(op(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this.tip&&(this.tip.remove(),this.tip=null);const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),K.trigger(this._element,this.constructor.eventName(Hy))),this._popper?this._popper.update():this._popper=this._createPopper(i),i.classList.add(_o),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))K.on(a,"mouseover",zo);const o=()=>{K.trigger(this._element,this.constructor.eventName(Vy)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||K.trigger(this._element,this.constructor.eventName($y)).defaultPrevented)return;const n=this._getTipElement();if(n.classList.remove(_o),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))K.off(i,"mouseover",zo);this._activeTrigger[Iy]=!1,this._activeTrigger[il]=!1,this._activeTrigger[cs]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||n.remove(),this._element.removeAttribute("aria-describedby"),K.trigger(this._element,this.constructor.eventName(Ry)),this._disposePopper())};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(rl,_o),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=M0(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(rl),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ly({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[My]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rl)}_isShown(){return this.tip&&this.tip.classList.contains(_o)}_createPopper(e){const n=typeof this._config.placement=="function"?this._config.placement.call(this,e,this._element):this._config.placement,r=Ky[n.toUpperCase()];return ou(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return typeof e=="function"?e.call(this._element):e}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...typeof this._config.popperConfig=="function"?this._config.popperConfig(n):this._config.popperConfig}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")K.on(this._element,this.constructor.eventName(By),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Dy){const r=n===cs?this.constructor.eventName(Wy):this.constructor.eventName(Uy),i=n===cs?this.constructor.eventName(zy):this.constructor.eventName(jy);K.on(this._element,r,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?il:cs]=!0,o._enter()}),K.on(this._element,i,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?il:cs]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},K.on(this._element.closest(Zf),ed,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");!e||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=Bn.getDataAttributes(this._element);for(const r of Object.keys(n))Oy.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:dr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const n in this._config)this.constructor.Default[n]!==this._config[n]&&(e[n]=this._config[n]);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each(function(){const n=wr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rn(wr);const Gy="popover",Xy=".popover-header",Qy=".popover-body",Jy={...wr.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Zy={...wr.DefaultType,content:"(null|string|element|function)"};class uu extends wr{static get Default(){return Jy}static get DefaultType(){return Zy}static get NAME(){return Gy}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Xy]:this._getTitle(),[Qy]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=uu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rn(uu);const eE="scrollspy",tE="bs.scrollspy",fu=`.${tE}`,nE=".data-api",rE=`activate${fu}`,td=`click${fu}`,iE=`load${fu}${nE}`,sE="dropdown-item",li="active",oE='[data-bs-spy="scroll"]',sl="[href]",aE=".nav, .list-group",nd=".nav-link",lE=".nav-item",cE=".list-group-item",uE=`${nd}, ${lE} > ${nd}, ${cE}`,fE=".dropdown",dE=".dropdown-toggle",hE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},mE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ba extends mn{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return hE}static get DefaultType(){return mE}static get NAME(){return eE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=dr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(K.off(this._config.target,td),K.on(this._config.target,td,sl,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=o=>this._targetLinks.get(`#${o.target.id}`),r=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(r(o),!i)return;continue}!s&&!a&&r(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ee.find(sl,this._config.target);for(const n of e){if(!n.hash||hr(n))continue;const r=Ee.findOne(n.hash,this._element);es(r)&&(this._targetLinks.set(n.hash,n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(li),this._activateParents(e),K.trigger(this._element,rE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(sE)){Ee.findOne(dE,e.closest(fE)).classList.add(li);return}for(const n of Ee.parents(e,aE))for(const r of Ee.prev(n,uE))r.classList.add(li)}_clearActiveClass(e){e.classList.remove(li);const n=Ee.find(`${sl}.${li}`,e);for(const r of n)r.classList.remove(li)}static jQueryInterface(e){return this.each(function(){const n=ba.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(window,iE,()=>{for(const t of Ee.find(oE))ba.getOrCreateInstance(t)});rn(ba);const pE="tab",gE="bs.tab",Jr=`.${gE}`,_E=`hide${Jr}`,vE=`hidden${Jr}`,bE=`show${Jr}`,yE=`shown${Jr}`,EE=`click${Jr}`,wE=`keydown${Jr}`,TE=`load${Jr}`,CE="ArrowLeft",rd="ArrowRight",SE="ArrowUp",id="ArrowDown",Fr="active",sd="fade",ol="show",AE="dropdown",kE=".dropdown-toggle",xE=".dropdown-menu",al=":not(.dropdown-toggle)",LE='.list-group, .nav, [role="tablist"]',NE=".nav-item, .list-group-item",OE=`.nav-link${al}, .list-group-item${al}, [role="tab"]${al}`,Op='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ll=`${OE}, ${Op}`,PE=`.${Fr}[data-bs-toggle="tab"], .${Fr}[data-bs-toggle="pill"], .${Fr}[data-bs-toggle="list"]`;class Fi extends mn{constructor(e){super(e),this._parent=this._element.closest(LE),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),K.on(this._element,wE,n=>this._keydown(n)))}static get NAME(){return pE}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?K.trigger(n,_E,{relatedTarget:e}):null;K.trigger(e,bE,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Fr),this._activate(Vn(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(ol);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),K.trigger(e,yE,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(sd))}_deactivate(e,n){if(!e)return;e.classList.remove(Fr),e.blur(),this._deactivate(Vn(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(ol);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),K.trigger(e,vE,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(sd))}_keydown(e){if(![CE,rd,SE,id].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[rd,id].includes(e.key),r=au(this._getChildren().filter(i=>!hr(i)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Fi.getOrCreateInstance(r).show())}_getChildren(){return Ee.find(ll,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Vn(e);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`#${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(AE))return;const i=(s,o)=>{const a=Ee.findOne(s,r);a&&a.classList.toggle(o,n)};i(kE,Fr),i(xE,ol),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Fr)}_getInnerElement(e){return e.matches(ll)?e:Ee.findOne(ll,e)}_getOuterElement(e){return e.closest(NE)||e}static jQueryInterface(e){return this.each(function(){const n=Fi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}K.on(document,EE,Op,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!hr(this)&&Fi.getOrCreateInstance(this).show()});K.on(window,TE,()=>{for(const t of Ee.find(PE))Fi.getOrCreateInstance(t)});rn(Fi);const ME="toast",IE="bs.toast",Tr=`.${IE}`,DE=`mouseover${Tr}`,$E=`mouseout${Tr}`,RE=`focusin${Tr}`,FE=`focusout${Tr}`,VE=`hide${Tr}`,HE=`hidden${Tr}`,BE=`show${Tr}`,UE=`shown${Tr}`,jE="fade",od="hide",vo="show",bo="showing",WE={animation:"boolean",autohide:"boolean",delay:"number"},zE={animation:!0,autohide:!0,delay:5e3};class ya extends mn{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return zE}static get DefaultType(){return WE}static get NAME(){return ME}show(){if(K.trigger(this._element,BE).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(jE);const n=()=>{this._element.classList.remove(bo),K.trigger(this._element,UE),this._maybeScheduleHide()};this._element.classList.remove(od),to(this._element),this._element.classList.add(vo,bo),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||K.trigger(this._element,VE).defaultPrevented)return;const n=()=>{this._element.classList.add(od),this._element.classList.remove(bo,vo),K.trigger(this._element,HE)};this._element.classList.add(bo),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(vo),super.dispose()}isShown(){return this._element.classList.contains(vo)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){K.on(this._element,DE,e=>this._onInteraction(e,!0)),K.on(this._element,$E,e=>this._onInteraction(e,!1)),K.on(this._element,RE,e=>this._onInteraction(e,!0)),K.on(this._element,FE,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=ya.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}ga(ya);rn(ya);function KE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pp={exports:{}};(function(t,e){(function(){function n(){var r=window,i=document;if("scrollBehavior"in i.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,o=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||d,scrollIntoView:s.prototype.scrollIntoView},l=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(v){var b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(v)}var u=c(r.navigator.userAgent)?1:0;function d(v,b){this.scrollLeft=v,this.scrollTop=b}function f(v){return .5*(1-Math.cos(Math.PI*v))}function m(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function w(v,b){if(b==="Y")return v.clientHeight+u1?1:O,k=f(O),x=v.startX+(v.x-v.startX)*k,N=v.startY+(v.y-v.startY)*k,v.method.call(v.scrollable,x,N),(x!==v.x||N!==v.y)&&r.requestAnimationFrame(C.bind(r,v))}function S(v,b,k){var x,N,O,B,q=l();v===i.body?(x=r,N=r.scrollX||r.pageXOffset,O=r.scrollY||r.pageYOffset,B=a.scroll):(x=v,N=v.scrollLeft,O=v.scrollTop,B=d),C({scrollable:x,method:B,startTime:q,startX:N,startY:O,x:b,y:k})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}S.call(r,i.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(r,i.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var v=arguments[0].left,b=arguments[0].top;S.call(this,this,typeof v>"u"?this.scrollLeft:~~v,typeof b>"u"?this.scrollTop:~~b)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(m(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(m(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var v=_(this),b=v.getBoundingClientRect(),k=this.getBoundingClientRect();v!==i.body?(S.call(this,v,v.scrollLeft+k.left-b.left,v.scrollTop+k.top-b.top),r.getComputedStyle(v).position!=="fixed"&&r.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):r.scrollBy({left:k.left,top:k.top,behavior:"smooth"})}}t.exports={polyfill:n}})()})(Pp);const YE=Pp.exports;function du(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const qE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",GE=du(qE);function Mp(t){return!!t||t===""}function Ct(t){if(de(t)){const e={};for(let n=0;n{if(n){const r=n.split(QE);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function De(t){let e="";if(qe(t))e=t;else if(de(t))for(let n=0;nGr(n,e))}const F=t=>qe(t)?t:t==null?"":de(t)||Ge(t)&&(t.toString===$p||!ye(t.toString))?JSON.stringify(t,Ip,2):String(t),Ip=(t,e)=>e&&e.__v_isRef?Ip(t,e.value):Ai(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:ns(e)?{[`Set(${e.size})`]:[...e.values()]}:Ge(e)&&!de(e)&&!Rp(e)?String(e):e,Re={},Si=[],fn=()=>{},ew=()=>!1,tw=/^on[^a-z]/,Ea=t=>tw.test(t),mu=t=>t.startsWith("onUpdate:"),mt=Object.assign,pu=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},nw=Object.prototype.hasOwnProperty,ke=(t,e)=>nw.call(t,e),de=Array.isArray,Ai=t=>so(t)==="[object Map]",ns=t=>so(t)==="[object Set]",ad=t=>so(t)==="[object Date]",ye=t=>typeof t=="function",qe=t=>typeof t=="string",Rs=t=>typeof t=="symbol",Ge=t=>t!==null&&typeof t=="object",Dp=t=>Ge(t)&&ye(t.then)&&ye(t.catch),$p=Object.prototype.toString,so=t=>$p.call(t),rw=t=>so(t).slice(8,-1),Rp=t=>so(t)==="[object Object]",gu=t=>qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Po=du(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wa=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},iw=/-(\w)/g,xn=wa(t=>t.replace(iw,(e,n)=>n?n.toUpperCase():"")),sw=/\B([A-Z])/g,rs=wa(t=>t.replace(sw,"-$1").toLowerCase()),Ta=wa(t=>t.charAt(0).toUpperCase()+t.slice(1)),cl=wa(t=>t?`on${Ta(t)}`:""),Fs=(t,e)=>!Object.is(t,e),Mo=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Go=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let ld;const ow=()=>ld||(ld=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let bn;class Fp{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&bn&&(this.parent=bn,this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}run(e){if(this.active){const n=bn;try{return bn=this,e()}finally{bn=n}}}on(){bn=this}off(){bn=this.parent}stop(e){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},Vp=t=>(t.w&pr)>0,Hp=t=>(t.n&pr)>0,cw=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=r)&&a.push(l)});else switch(n!==void 0&&a.push(o.get(n)),e){case"add":de(t)?gu(n)&&a.push(o.get("length")):(a.push(o.get(Ur)),Ai(t)&&a.push(o.get(Zl)));break;case"delete":de(t)||(a.push(o.get(Ur)),Ai(t)&&a.push(o.get(Zl)));break;case"set":Ai(t)&&a.push(o.get(Ur));break}if(a.length===1)a[0]&&ec(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);ec(_u(l))}}function ec(t,e){const n=de(t)?t:[...t];for(const r of n)r.computed&&ud(r);for(const r of n)r.computed||ud(r)}function ud(t,e){(t!==ln||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const fw=du("__proto__,__v_isRef,__isVue"),jp=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Rs)),dw=bu(),hw=bu(!1,!0),mw=bu(!0),fd=pw();function pw(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Pe(this);for(let s=0,o=this.length;s{t[e]=function(...n){is();const r=Pe(this)[e].apply(this,n);return ss(),r}}),t}function bu(t=!1,e=!1){return function(r,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?Ow:qp:e?Yp:Kp).get(r))return r;const o=de(r);if(!t&&o&&ke(fd,i))return Reflect.get(fd,i,s);const a=Reflect.get(r,i,s);return(Rs(i)?jp.has(i):fw(i))||(t||Ht(r,"get",i),e)?a:ct(a)?o&&gu(i)?a:a.value:Ge(a)?t?Gp(a):Zr(a):a}}const gw=Wp(),_w=Wp(!0);function Wp(t=!1){return function(n,r,i,s){let o=n[r];if(Vs(o)&&ct(o)&&!ct(i))return!1;if(!t&&!Vs(i)&&(tc(i)||(i=Pe(i),o=Pe(o)),!de(n)&&ct(o)&&!ct(i)))return o.value=i,!0;const a=de(n)&&gu(r)?Number(r)t,Ca=t=>Reflect.getPrototypeOf(t);function yo(t,e,n=!1,r=!1){t=t.__v_raw;const i=Pe(t),s=Pe(e);n||(e!==s&&Ht(i,"get",e),Ht(i,"get",s));const{has:o}=Ca(i),a=r?yu:n?Su:Hs;if(o.call(i,e))return a(t.get(e));if(o.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Eo(t,e=!1){const n=this.__v_raw,r=Pe(n),i=Pe(t);return e||(t!==i&&Ht(r,"has",t),Ht(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function wo(t,e=!1){return t=t.__v_raw,!e&&Ht(Pe(t),"iterate",Ur),Reflect.get(t,"size",t)}function dd(t){t=Pe(t);const e=Pe(this);return Ca(e).has.call(e,t)||(e.add(t),Wn(e,"add",t,t)),this}function hd(t,e){e=Pe(e);const n=Pe(this),{has:r,get:i}=Ca(n);let s=r.call(n,t);s||(t=Pe(t),s=r.call(n,t));const o=i.call(n,t);return n.set(t,e),s?Fs(e,o)&&Wn(n,"set",t,e):Wn(n,"add",t,e),this}function md(t){const e=Pe(this),{has:n,get:r}=Ca(e);let i=n.call(e,t);i||(t=Pe(t),i=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return i&&Wn(e,"delete",t,void 0),s}function pd(){const t=Pe(this),e=t.size!==0,n=t.clear();return e&&Wn(t,"clear",void 0,void 0),n}function To(t,e){return function(r,i){const s=this,o=s.__v_raw,a=Pe(o),l=e?yu:t?Su:Hs;return!t&&Ht(a,"iterate",Ur),o.forEach((c,u)=>r.call(i,l(c),l(u),s))}}function Co(t,e,n){return function(...r){const i=this.__v_raw,s=Pe(i),o=Ai(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...r),u=n?yu:e?Su:Hs;return!e&&Ht(s,"iterate",l?Zl:Ur),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Qn(t){return function(...e){return t==="delete"?!1:this}}function Tw(){const t={get(s){return yo(this,s)},get size(){return wo(this)},has:Eo,add:dd,set:hd,delete:md,clear:pd,forEach:To(!1,!1)},e={get(s){return yo(this,s,!1,!0)},get size(){return wo(this)},has:Eo,add:dd,set:hd,delete:md,clear:pd,forEach:To(!1,!0)},n={get(s){return yo(this,s,!0)},get size(){return wo(this,!0)},has(s){return Eo.call(this,s,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:To(!0,!1)},r={get(s){return yo(this,s,!0,!0)},get size(){return wo(this,!0)},has(s){return Eo.call(this,s,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:To(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Co(s,!1,!1),n[s]=Co(s,!0,!1),e[s]=Co(s,!1,!0),r[s]=Co(s,!0,!0)}),[t,n,e,r]}const[Cw,Sw,Aw,kw]=Tw();function Eu(t,e){const n=e?t?kw:Aw:t?Sw:Cw;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(ke(n,i)&&i in r?n:r,i,s)}const xw={get:Eu(!1,!1)},Lw={get:Eu(!1,!0)},Nw={get:Eu(!0,!1)},Kp=new WeakMap,Yp=new WeakMap,qp=new WeakMap,Ow=new WeakMap;function Pw(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mw(t){return t.__v_skip||!Object.isExtensible(t)?0:Pw(rw(t))}function Zr(t){return Vs(t)?t:wu(t,!1,zp,xw,Kp)}function Iw(t){return wu(t,!1,ww,Lw,Yp)}function Gp(t){return wu(t,!0,Ew,Nw,qp)}function wu(t,e,n,r,i){if(!Ge(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=Mw(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function ki(t){return Vs(t)?ki(t.__v_raw):!!(t&&t.__v_isReactive)}function Vs(t){return!!(t&&t.__v_isReadonly)}function tc(t){return!!(t&&t.__v_isShallow)}function Tu(t){return ki(t)||Vs(t)}function Pe(t){const e=t&&t.__v_raw;return e?Pe(e):t}function Cu(t){return qo(t,"__v_skip",!0),t}const Hs=t=>Ge(t)?Zr(t):t,Su=t=>Ge(t)?Gp(t):t;function Xp(t){ar&&ln&&(t=Pe(t),Up(t.dep||(t.dep=_u())))}function Qp(t,e){t=Pe(t),t.dep&&ec(t.dep)}function ct(t){return!!(t&&t.__v_isRef===!0)}function cn(t){return Zp(t,!1)}function Jp(t){return Zp(t,!0)}function Zp(t,e){return ct(t)?t:new Dw(t,e)}class Dw{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Pe(e),this._value=n?e:Hs(e)}get value(){return Xp(this),this._value}set value(e){e=this.__v_isShallow?e:Pe(e),Fs(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Hs(e),Qp(this))}}function xi(t){return ct(t)?t.value:t}const $w={get:(t,e,n)=>xi(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ct(i)&&!ct(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function eg(t){return ki(t)?t:new Proxy(t,$w)}class Rw{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new vu(e,()=>{this._dirty||(this._dirty=!0,Qp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Pe(this);return Xp(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Fw(t,e,n=!1){let r,i;const s=ye(t);return s?(r=t,i=fn):(r=t.get,i=t.set),new Rw(r,i,s||!i,n)}function lr(t,e,n,r){let i;try{i=r?t(...r):t()}catch(s){Sa(s,e,n)}return i}function Jt(t,e,n,r){if(ye(t)){const s=lr(t,e,n,r);return s&&Dp(s)&&s.catch(o=>{Sa(o,e,n)}),s}const i=[];for(let s=0;s>>1;Bs(Mt[r])$n&&Mt.splice(e,1)}function sg(t,e,n,r){de(t)?n.push(...t):(!e||!e.includes(t,t.allowRecurse?r+1:r))&&n.push(t),ig()}function Uw(t){sg(t,ps,ys,gi)}function jw(t){sg(t,er,Es,_i)}function Aa(t,e=null){if(ys.length){for(rc=e,ps=[...new Set(ys)],ys.length=0,gi=0;giBs(n)-Bs(r)),_i=0;_it.id==null?1/0:t.id;function ag(t){nc=!1,Xo=!0,Aa(t),Mt.sort((n,r)=>Bs(n)-Bs(r));const e=fn;try{for($n=0;$nm.trim())),d&&(i=n.map(Go))}let a,l=r[a=cl(e)]||r[a=cl(xn(e))];!l&&s&&(l=r[a=cl(rs(e))]),l&&Jt(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Jt(c,t,6,i)}}function lg(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!ye(t)){const l=c=>{const u=lg(c,e,!0);u&&(a=!0,mt(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(r.set(t,null),null):(de(s)?s.forEach(l=>o[l]=null):mt(o,s),r.set(t,o),o)}function ka(t,e){return!t||!Ea(e)?!1:(e=e.slice(2).replace(/Once$/,""),ke(t,e[0].toLowerCase()+e.slice(1))||ke(t,rs(e))||ke(t,e))}let dt=null,xa=null;function Qo(t){const e=dt;return dt=t,xa=t&&t.type.__scopeId||null,e}function bt(t){xa=t}function yt(){xa=null}function et(t,e=dt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&kd(-1);const s=Qo(e),o=t(...i);return Qo(s),r._d&&kd(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function ul(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:m,ctx:w,inheritAttrs:g}=t;let E,_;const C=Qo(t);try{if(n.shapeFlag&4){const v=i||r;E=yn(u.call(v,v,d,s,m,f,w)),_=l}else{const v=e;E=yn(v.length>1?v(s,{attrs:l,slots:a,emit:c}):v(s,null)),_=e.props?l:zw(l)}}catch(v){Cs.length=0,Sa(v,t,1),E=ie($t)}let S=E;if(_&&g!==!1){const v=Object.keys(_),{shapeFlag:b}=S;v.length&&b&7&&(o&&v.some(mu)&&(_=Kw(_,o)),S=gr(S,_))}return n.dirs&&(S=gr(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),E=S,Qo(C),E}const zw=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ea(n))&&((e||(e={}))[n]=t[n]);return e},Kw=(t,e)=>{const n={};for(const r in t)(!mu(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Yw(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?gd(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;dt.__isSuspense;function Xw(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):jw(t)}function Io(t,e){if(it){let n=it.provides;const r=it.parent&&it.parent.provides;r===n&&(n=it.provides=Object.create(r)),n[t]=e}}function Un(t,e,n=!1){const r=it||dt;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ye(e)?e.call(r.proxy):e}}const _d={};function cr(t,e,n){return cg(t,e,n)}function cg(t,e,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Re){const a=it;let l,c=!1,u=!1;if(ct(t)?(l=()=>t.value,c=tc(t)):ki(t)?(l=()=>t,r=!0):de(t)?(u=!0,c=t.some(_=>ki(_)||tc(_)),l=()=>t.map(_=>{if(ct(_))return _.value;if(ki(_))return Vr(_);if(ye(_))return lr(_,a,2)})):ye(t)?e?l=()=>lr(t,a,2):l=()=>{if(!(a&&a.isUnmounted))return d&&d(),Jt(t,a,3,[f])}:l=fn,e&&r){const _=l;l=()=>Vr(_())}let d,f=_=>{d=E.onStop=()=>{lr(_,a,4)}};if(js)return f=fn,e?n&&Jt(e,a,3,[l(),u?[]:void 0,f]):l(),fn;let m=u?[]:_d;const w=()=>{if(!!E.active)if(e){const _=E.run();(r||c||(u?_.some((C,S)=>Fs(C,m[S])):Fs(_,m)))&&(d&&d(),Jt(e,a,3,[_,m===_d?void 0:m,f]),m=_)}else E.run()};w.allowRecurse=!!e;let g;i==="sync"?g=w:i==="post"?g=()=>wt(w,a&&a.suspense):g=()=>Uw(w);const E=new vu(l,g);return e?n?w():m=E.run():i==="post"?wt(E.run.bind(E),a&&a.suspense):E.run(),()=>{E.stop(),a&&a.scope&&pu(a.scope.effects,E)}}function Qw(t,e,n){const r=this.proxy,i=qe(t)?t.includes(".")?ug(r,t):()=>r[t]:t.bind(r,r);let s;ye(e)?s=e:(s=e.handler,n=e);const o=it;Vi(this);const a=cg(i,s.bind(r),n);return o?Vi(o):jr(),a}function ug(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i{Vr(n,e)});else if(Rp(t))for(const n in t)Vr(t[n],e);return t}function Jw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xu(()=>{t.isMounted=!0}),pg(()=>{t.isUnmounting=!0}),t}const jt=[Function,Array],Zw={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jt,onEnter:jt,onAfterEnter:jt,onEnterCancelled:jt,onBeforeLeave:jt,onLeave:jt,onAfterLeave:jt,onLeaveCancelled:jt,onBeforeAppear:jt,onAppear:jt,onAfterAppear:jt,onAppearCancelled:jt},setup(t,{slots:e}){const n=Ln(),r=Jw();let i;return()=>{const s=e.default&&dg(e.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const g of s)if(g.type!==$t){o=g;break}}const a=Pe(t),{mode:l}=a;if(r.isLeaving)return fl(o);const c=vd(o);if(!c)return fl(o);const u=ic(c,a,r,n);sc(c,u);const d=n.subTree,f=d&&vd(d);let m=!1;const{getTransitionKey:w}=c.type;if(w){const g=w();i===void 0?i=g:g!==i&&(i=g,m=!0)}if(f&&f.type!==$t&&(!Dr(c,f)||m)){const g=ic(f,a,r,n);if(sc(f,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update()},fl(o);l==="in-out"&&c.type!==$t&&(g.delayLeave=(E,_,C)=>{const S=fg(r,f);S[String(f.key)]=f,E._leaveCb=()=>{_(),E._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=C})}return o}}},eT=Zw;function fg(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ic(t,e,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:w,onBeforeAppear:g,onAppear:E,onAfterAppear:_,onAppearCancelled:C}=e,S=String(t.key),v=fg(n,t),b=(N,O)=>{N&&Jt(N,r,9,O)},k=(N,O)=>{const B=O[1];b(N,O),de(N)?N.every(q=>q.length<=1)&&B():N.length<=1&&B()},x={mode:s,persisted:o,beforeEnter(N){let O=a;if(!n.isMounted)if(i)O=g||a;else return;N._leaveCb&&N._leaveCb(!0);const B=v[S];B&&Dr(t,B)&&B.el._leaveCb&&B.el._leaveCb(),b(O,[N])},enter(N){let O=l,B=c,q=u;if(!n.isMounted)if(i)O=E||l,B=_||c,q=C||u;else return;let Q=!1;const ee=N._enterCb=I=>{Q||(Q=!0,I?b(q,[N]):b(B,[N]),x.delayedLeave&&x.delayedLeave(),N._enterCb=void 0)};O?k(O,[N,ee]):ee()},leave(N,O){const B=String(t.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return O();b(d,[N]);let q=!1;const Q=N._leaveCb=ee=>{q||(q=!0,O(),ee?b(w,[N]):b(m,[N]),N._leaveCb=void 0,v[B]===t&&delete v[B])};v[B]=t,f?k(f,[N,Q]):Q()},clone(N){return ic(N,e,n,r)}};return x}function fl(t){if(La(t))return t=gr(t),t.children=null,t}function vd(t){return La(t)?t.children?t.children[0]:void 0:t}function sc(t,e){t.shapeFlag&6&&t.component?sc(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function dg(t,e=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;s!!t.type.__asyncLoader,La=t=>t.type.__isKeepAlive;function tT(t,e){hg(t,"a",e)}function nT(t,e){hg(t,"da",e)}function hg(t,e,n=it){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Na(e,r,n),n){let i=n.parent;for(;i&&i.parent;)La(i.parent.vnode)&&rT(r,e,n,i),i=i.parent}}function rT(t,e,n,r){const i=Na(e,t,r,!0);Oa(()=>{pu(r[e],i)},n)}function Na(t,e,n=it,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;is(),Vi(n);const a=Jt(e,n,t,o);return jr(),ss(),a});return r?i.unshift(s):i.push(s),s}}const Gn=t=>(e,n=it)=>(!js||t==="sp")&&Na(t,e,n),mg=Gn("bm"),xu=Gn("m"),iT=Gn("bu"),sT=Gn("u"),pg=Gn("bum"),Oa=Gn("um"),oT=Gn("sp"),aT=Gn("rtg"),lT=Gn("rtc");function cT(t,e=it){Na("ec",t,e)}function Yt(t,e){const n=dt;if(n===null)return t;const r=Ia(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;se(o,a,void 0,s&&s[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;aea(e)?!(e.type===$t||e.type===xe&&!vg(e.children)):!0)?t:null}const oc=t=>t?Lg(t)?Ia(t)||t.proxy:oc(t.parent):null,Jo=mt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>oc(t.parent),$root:t=>oc(t.root),$emit:t=>t.emit,$options:t=>yg(t),$forceUpdate:t=>t.f||(t.f=()=>rg(t.update)),$nextTick:t=>t.n||(t.n=ng.bind(t.proxy)),$watch:t=>Qw.bind(t)}),uT={get({_:t},e){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(r!==Re&&ke(r,e))return o[e]=1,r[e];if(i!==Re&&ke(i,e))return o[e]=2,i[e];if((c=t.propsOptions[0])&&ke(c,e))return o[e]=3,s[e];if(n!==Re&&ke(n,e))return o[e]=4,n[e];ac&&(o[e]=0)}}const u=Jo[e];let d,f;if(u)return e==="$attrs"&&Ht(t,"get",e),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Re&&ke(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,ke(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return i!==Re&&ke(i,e)?(i[e]=n,!0):r!==Re&&ke(r,e)?(r[e]=n,!0):ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||t!==Re&&ke(t,o)||e!==Re&&ke(e,o)||(a=s[0])&&ke(a,o)||ke(r,o)||ke(Jo,o)||ke(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let ac=!0;function fT(t){const e=yg(t),n=t.proxy,r=t.ctx;ac=!1,e.beforeCreate&&yd(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:w,activated:g,deactivated:E,beforeDestroy:_,beforeUnmount:C,destroyed:S,unmounted:v,render:b,renderTracked:k,renderTriggered:x,errorCaptured:N,serverPrefetch:O,expose:B,inheritAttrs:q,components:Q,directives:ee,filters:I}=e;if(c&&dT(c,r,null,t.appContext.config.unwrapInjectedRef),o)for(const z in o){const te=o[z];ye(te)&&(r[z]=te.bind(n))}if(i){const z=i.call(n,n);Ge(z)&&(t.data=Zr(z))}if(ac=!0,s)for(const z in s){const te=s[z],se=ye(te)?te.bind(n,n):ye(te.get)?te.get.bind(n,n):fn,ce=!ye(te)&&ye(te.set)?te.set.bind(n):fn,he=je({get:se,set:ce});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>he.value,set:fe=>he.value=fe})}if(a)for(const z in a)bg(a[z],r,n,z);if(l){const z=ye(l)?l.call(n):l;Reflect.ownKeys(z).forEach(te=>{Io(te,z[te])})}u&&yd(u,t,"c");function Y(z,te){de(te)?te.forEach(se=>z(se.bind(n))):te&&z(te.bind(n))}if(Y(mg,d),Y(xu,f),Y(iT,m),Y(sT,w),Y(tT,g),Y(nT,E),Y(cT,N),Y(lT,k),Y(aT,x),Y(pg,C),Y(Oa,v),Y(oT,O),de(B))if(B.length){const z=t.exposed||(t.exposed={});B.forEach(te=>{Object.defineProperty(z,te,{get:()=>n[te],set:se=>n[te]=se})})}else t.exposed||(t.exposed={});b&&t.render===fn&&(t.render=b),q!=null&&(t.inheritAttrs=q),Q&&(t.components=Q),ee&&(t.directives=ee)}function dT(t,e,n=fn,r=!1){de(t)&&(t=lc(t));for(const i in t){const s=t[i];let o;Ge(s)?"default"in s?o=Un(s.from||i,s.default,!0):o=Un(s.from||i):o=Un(s),ct(o)&&r?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[i]=o}}function yd(t,e,n){Jt(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function bg(t,e,n,r){const i=r.includes(".")?ug(n,r):()=>n[r];if(qe(t)){const s=e[t];ye(s)&&cr(i,s)}else if(ye(t))cr(i,t.bind(n));else if(Ge(t))if(de(t))t.forEach(s=>bg(s,e,n,r));else{const s=ye(t.handler)?t.handler.bind(n):e[t.handler];ye(s)&&cr(i,s,t)}}function yg(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Zo(l,c,o,!0)),Zo(l,e,o)),s.set(e,l),l}function Zo(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Zo(t,s,n,!0),i&&i.forEach(o=>Zo(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=hT[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const hT={data:Ed,props:Mr,emits:Mr,methods:Mr,computed:Mr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Mr,directives:Mr,watch:pT,provide:Ed,inject:mT};function Ed(t,e){return e?t?function(){return mt(ye(t)?t.call(this,this):t,ye(e)?e.call(this,this):e)}:e:t}function mT(t,e){return Mr(lc(t),lc(e))}function lc(t){if(de(t)){const e={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,m]=wg(d,e,!0);mt(o,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return r.set(t,Si),Si;if(de(s))for(let u=0;u-1,m[1]=g<0||w-1||ke(m,"default"))&&a.push(d)}}}const c=[o,a];return r.set(t,c),c}function wd(t){return t[0]!=="$"}function Td(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function Cd(t,e){return Td(t)===Td(e)}function Sd(t,e){return de(e)?e.findIndex(n=>Cd(n,t)):ye(e)&&Cd(e,t)?0:-1}const Tg=t=>t[0]==="_"||t==="$stable",Pu=t=>de(t)?t.map(yn):[yn(t)],vT=(t,e,n)=>{if(e._n)return e;const r=et((...i)=>Pu(e(...i)),n);return r._c=!1,r},Cg=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Tg(i))continue;const s=t[i];if(ye(s))e[i]=vT(i,s,r);else if(s!=null){const o=Pu(s);e[i]=()=>o}}},Sg=(t,e)=>{const n=Pu(e);t.slots.default=()=>n},bT=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Pe(e),qo(e,"_",n)):Cg(e,t.slots={})}else t.slots={},e&&Sg(t,e);qo(t.slots,Ma,1)},yT=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=Re;if(r.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:(mt(i,e),!n&&a===1&&delete i._):(s=!e.$stable,Cg(e,i)),o=e}else e&&(Sg(t,e),o={default:1});if(s)for(const a in i)!Tg(a)&&!(a in o)&&delete i[a]};function Ag(){return{app:null,config:{isNativeTag:ew,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ET=0;function wT(t,e){return function(r,i=null){ye(r)||(r=Object.assign({},r)),i!=null&&!Ge(i)&&(i=null);const s=Ag(),o=new Set;let a=!1;const l=s.app={_uid:ET++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:HT,get config(){return s.config},set config(c){},use(c,...u){return o.has(c)||(c&&ye(c.install)?(o.add(c),c.install(l,...u)):ye(c)&&(o.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const f=ie(r,i);return f.appContext=s,u&&e?e(f,c):t(f,c,d),a=!0,l._container=c,c.__vue_app__=l,Ia(f.component)||f.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l}};return l}}function uc(t,e,n,r,i=!1){if(de(t)){t.forEach((f,m)=>uc(f,e&&(de(e)?e[m]:e),n,r,i));return}if(ws(r)&&!i)return;const s=r.shapeFlag&4?Ia(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Re?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(qe(c)?(u[c]=null,ke(d,c)&&(d[c]=null)):ct(c)&&(c.value=null)),ye(l))lr(l,a,12,[o,u]);else{const f=qe(l),m=ct(l);if(f||m){const w=()=>{if(t.f){const g=f?u[l]:l.value;i?de(g)&&pu(g,s):de(g)?g.includes(s)||g.push(s):f?(u[l]=[s],ke(d,l)&&(d[l]=u[l])):(l.value=[s],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,ke(d,l)&&(d[l]=o)):m&&(l.value=o,t.k&&(u[t.k]=o))};o?(w.id=-1,wt(w,n)):w()}}}const wt=Xw;function TT(t){return CT(t)}function CT(t,e){const n=ow();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:m=fn,cloneNode:w,insertStaticContent:g}=t,E=(h,p,T,L=null,D=null,H=null,G=!1,W=null,j=!!p.dynamicChildren)=>{if(h===p)return;h&&!Dr(h,p)&&(L=Z(h),Ne(h,D,H,!0),h=null),p.patchFlag===-2&&(j=!1,p.dynamicChildren=null);const{type:A,ref:$,shapeFlag:J}=p;switch(A){case Pa:_(h,p,T,L);break;case $t:C(h,p,T,L);break;case dl:h==null&&S(p,T,L,G);break;case xe:ee(h,p,T,L,D,H,G,W,j);break;default:J&1?k(h,p,T,L,D,H,G,W,j):J&6?I(h,p,T,L,D,H,G,W,j):(J&64||J&128)&&A.process(h,p,T,L,D,H,G,W,j,ge)}$!=null&&D&&uc($,h&&h.ref,H,p||h,!p)},_=(h,p,T,L)=>{if(h==null)r(p.el=a(p.children),T,L);else{const D=p.el=h.el;p.children!==h.children&&c(D,p.children)}},C=(h,p,T,L)=>{h==null?r(p.el=l(p.children||""),T,L):p.el=h.el},S=(h,p,T,L)=>{[h.el,h.anchor]=g(h.children,p,T,L,h.el,h.anchor)},v=({el:h,anchor:p},T,L)=>{let D;for(;h&&h!==p;)D=f(h),r(h,T,L),h=D;r(p,T,L)},b=({el:h,anchor:p})=>{let T;for(;h&&h!==p;)T=f(h),i(h),h=T;i(p)},k=(h,p,T,L,D,H,G,W,j)=>{G=G||p.type==="svg",h==null?x(p,T,L,D,H,G,W,j):B(h,p,D,H,G,W,j)},x=(h,p,T,L,D,H,G,W)=>{let j,A;const{type:$,props:J,shapeFlag:ne,transition:ue,patchFlag:be,dirs:Ce}=h;if(h.el&&w!==void 0&&be===-1)j=h.el=w(h.el);else{if(j=h.el=o(h.type,H,J&&J.is,J),ne&8?u(j,h.children):ne&16&&O(h.children,j,null,L,D,H&&$!=="foreignObject",G,W),Ce&&Lr(h,null,L,"created"),J){for(const Ve in J)Ve!=="value"&&!Po(Ve)&&s(j,Ve,null,J[Ve],H,h.children,L,D,U);"value"in J&&s(j,"value",null,J.value),(A=J.onVnodeBeforeMount)&&_n(A,L,h)}N(j,h,h.scopeId,G,L)}Ce&&Lr(h,null,L,"beforeMount");const Me=(!D||D&&!D.pendingBranch)&&ue&&!ue.persisted;Me&&ue.beforeEnter(j),r(j,p,T),((A=J&&J.onVnodeMounted)||Me||Ce)&&wt(()=>{A&&_n(A,L,h),Me&&ue.enter(j),Ce&&Lr(h,null,L,"mounted")},D)},N=(h,p,T,L,D)=>{if(T&&m(h,T),L)for(let H=0;H{for(let A=j;A{const W=p.el=h.el;let{patchFlag:j,dynamicChildren:A,dirs:$}=p;j|=h.patchFlag&16;const J=h.props||Re,ne=p.props||Re;let ue;T&&Nr(T,!1),(ue=ne.onVnodeBeforeUpdate)&&_n(ue,T,p,h),$&&Lr(p,h,T,"beforeUpdate"),T&&Nr(T,!0);const be=D&&p.type!=="foreignObject";if(A?q(h.dynamicChildren,A,W,T,L,be,H):G||se(h,p,W,null,T,L,be,H,!1),j>0){if(j&16)Q(W,p,J,ne,T,L,D);else if(j&2&&J.class!==ne.class&&s(W,"class",null,ne.class,D),j&4&&s(W,"style",J.style,ne.style,D),j&8){const Ce=p.dynamicProps;for(let Me=0;Me{ue&&_n(ue,T,p,h),$&&Lr(p,h,T,"updated")},L)},q=(h,p,T,L,D,H,G)=>{for(let W=0;W{if(T!==L){for(const W in L){if(Po(W))continue;const j=L[W],A=T[W];j!==A&&W!=="value"&&s(h,W,A,j,G,p.children,D,H,U)}if(T!==Re)for(const W in T)!Po(W)&&!(W in L)&&s(h,W,T[W],null,G,p.children,D,H,U);"value"in L&&s(h,"value",T.value,L.value)}},ee=(h,p,T,L,D,H,G,W,j)=>{const A=p.el=h?h.el:a(""),$=p.anchor=h?h.anchor:a("");let{patchFlag:J,dynamicChildren:ne,slotScopeIds:ue}=p;ue&&(W=W?W.concat(ue):ue),h==null?(r(A,T,L),r($,T,L),O(p.children,T,$,D,H,G,W,j)):J>0&&J&64&&ne&&h.dynamicChildren?(q(h.dynamicChildren,ne,T,D,H,G,W),(p.key!=null||D&&p===D.subTree)&&Mu(h,p,!0)):se(h,p,T,$,D,H,G,W,j)},I=(h,p,T,L,D,H,G,W,j)=>{p.slotScopeIds=W,h==null?p.shapeFlag&512?D.ctx.activate(p,T,L,G,j):M(p,T,L,D,H,G,j):Y(h,p,j)},M=(h,p,T,L,D,H,G)=>{const W=h.component=MT(h,L,D);if(La(h)&&(W.ctx.renderer=ge),IT(W),W.asyncDep){if(D&&D.registerDep(W,z),!h.el){const j=W.subTree=ie($t);C(null,j,p,T)}return}z(W,h,p,T,D,H,G)},Y=(h,p,T)=>{const L=p.component=h.component;if(Yw(h,p,T))if(L.asyncDep&&!L.asyncResolved){te(L,p,T);return}else L.next=p,Bw(L.update),L.update();else p.el=h.el,L.vnode=p},z=(h,p,T,L,D,H,G)=>{const W=()=>{if(h.isMounted){let{next:$,bu:J,u:ne,parent:ue,vnode:be}=h,Ce=$,Me;Nr(h,!1),$?($.el=be.el,te(h,$,G)):$=be,J&&Mo(J),(Me=$.props&&$.props.onVnodeBeforeUpdate)&&_n(Me,ue,$,be),Nr(h,!0);const Ve=ul(h),sn=h.subTree;h.subTree=Ve,E(sn,Ve,d(sn.el),Z(sn),h,D,H),$.el=Ve.el,Ce===null&&qw(h,Ve.el),ne&&wt(ne,D),(Me=$.props&&$.props.onVnodeUpdated)&&wt(()=>_n(Me,ue,$,be),D)}else{let $;const{el:J,props:ne}=p,{bm:ue,m:be,parent:Ce}=h,Me=ws(p);if(Nr(h,!1),ue&&Mo(ue),!Me&&($=ne&&ne.onVnodeBeforeMount)&&_n($,Ce,p),Nr(h,!0),J&&oe){const Ve=()=>{h.subTree=ul(h),oe(J,h.subTree,h,D,null)};Me?p.type.__asyncLoader().then(()=>!h.isUnmounted&&Ve()):Ve()}else{const Ve=h.subTree=ul(h);E(null,Ve,T,L,h,D,H),p.el=Ve.el}if(be&&wt(be,D),!Me&&($=ne&&ne.onVnodeMounted)){const Ve=p;wt(()=>_n($,Ce,Ve),D)}(p.shapeFlag&256||Ce&&ws(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&h.a&&wt(h.a,D),h.isMounted=!0,p=T=L=null}},j=h.effect=new vu(W,()=>rg(A),h.scope),A=h.update=()=>j.run();A.id=h.uid,Nr(h,!0),A()},te=(h,p,T)=>{p.component=h;const L=h.vnode.props;h.vnode=p,h.next=null,_T(h,p.props,L,T),yT(h,p.children,T),is(),Aa(void 0,h.update),ss()},se=(h,p,T,L,D,H,G,W,j=!1)=>{const A=h&&h.children,$=h?h.shapeFlag:0,J=p.children,{patchFlag:ne,shapeFlag:ue}=p;if(ne>0){if(ne&128){he(A,J,T,L,D,H,G,W,j);return}else if(ne&256){ce(A,J,T,L,D,H,G,W,j);return}}ue&8?($&16&&U(A,D,H),J!==A&&u(T,J)):$&16?ue&16?he(A,J,T,L,D,H,G,W,j):U(A,D,H,!0):($&8&&u(T,""),ue&16&&O(J,T,L,D,H,G,W,j))},ce=(h,p,T,L,D,H,G,W,j)=>{h=h||Si,p=p||Si;const A=h.length,$=p.length,J=Math.min(A,$);let ne;for(ne=0;ne$?U(h,D,H,!0,!1,J):O(p,T,L,D,H,G,W,j,J)},he=(h,p,T,L,D,H,G,W,j)=>{let A=0;const $=p.length;let J=h.length-1,ne=$-1;for(;A<=J&&A<=ne;){const ue=h[A],be=p[A]=j?tr(p[A]):yn(p[A]);if(Dr(ue,be))E(ue,be,T,null,D,H,G,W,j);else break;A++}for(;A<=J&&A<=ne;){const ue=h[J],be=p[ne]=j?tr(p[ne]):yn(p[ne]);if(Dr(ue,be))E(ue,be,T,null,D,H,G,W,j);else break;J--,ne--}if(A>J){if(A<=ne){const ue=ne+1,be=ue<$?p[ue].el:L;for(;A<=ne;)E(null,p[A]=j?tr(p[A]):yn(p[A]),T,be,D,H,G,W,j),A++}}else if(A>ne)for(;A<=J;)Ne(h[A],D,H,!0),A++;else{const ue=A,be=A,Ce=new Map;for(A=be;A<=ne;A++){const Nt=p[A]=j?tr(p[A]):yn(p[A]);Nt.key!=null&&Ce.set(Nt.key,A)}let Me,Ve=0;const sn=ne-be+1;let oi=!1,Tf=0;const as=new Array(sn);for(A=0;A=sn){Ne(Nt,D,H,!0);continue}let gn;if(Nt.key!=null)gn=Ce.get(Nt.key);else for(Me=be;Me<=ne;Me++)if(as[Me-be]===0&&Dr(Nt,p[Me])){gn=Me;break}gn===void 0?Ne(Nt,D,H,!0):(as[gn-be]=A+1,gn>=Tf?Tf=gn:oi=!0,E(Nt,p[gn],T,null,D,H,G,W,j),Ve++)}const Cf=oi?ST(as):Si;for(Me=Cf.length-1,A=sn-1;A>=0;A--){const Nt=be+A,gn=p[Nt],Sf=Nt+1<$?p[Nt+1].el:L;as[A]===0?E(null,gn,T,Sf,D,H,G,W,j):oi&&(Me<0||A!==Cf[Me]?fe(gn,T,Sf,2):Me--)}}},fe=(h,p,T,L,D=null)=>{const{el:H,type:G,transition:W,children:j,shapeFlag:A}=h;if(A&6){fe(h.component.subTree,p,T,L);return}if(A&128){h.suspense.move(p,T,L);return}if(A&64){G.move(h,p,T,ge);return}if(G===xe){r(H,p,T);for(let J=0;JW.enter(H),D);else{const{leave:J,delayLeave:ne,afterLeave:ue}=W,be=()=>r(H,p,T),Ce=()=>{J(H,()=>{be(),ue&&ue()})};ne?ne(H,be,Ce):Ce()}else r(H,p,T)},Ne=(h,p,T,L=!1,D=!1)=>{const{type:H,props:G,ref:W,children:j,dynamicChildren:A,shapeFlag:$,patchFlag:J,dirs:ne}=h;if(W!=null&&uc(W,null,T,h,!0),$&256){p.ctx.deactivate(h);return}const ue=$&1&&ne,be=!ws(h);let Ce;if(be&&(Ce=G&&G.onVnodeBeforeUnmount)&&_n(Ce,p,h),$&6)X(h.component,T,L);else{if($&128){h.suspense.unmount(T,L);return}ue&&Lr(h,null,p,"beforeUnmount"),$&64?h.type.remove(h,p,T,D,ge,L):A&&(H!==xe||J>0&&J&64)?U(A,p,T,!1,!0):(H===xe&&J&384||!D&&$&16)&&U(j,p,T),L&&me(h)}(be&&(Ce=G&&G.onVnodeUnmounted)||ue)&&wt(()=>{Ce&&_n(Ce,p,h),ue&&Lr(h,null,p,"unmounted")},T)},me=h=>{const{type:p,el:T,anchor:L,transition:D}=h;if(p===xe){R(T,L);return}if(p===dl){b(h);return}const H=()=>{i(T),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(h.shapeFlag&1&&D&&!D.persisted){const{leave:G,delayLeave:W}=D,j=()=>G(T,H);W?W(h.el,H,j):j()}else H()},R=(h,p)=>{let T;for(;h!==p;)T=f(h),i(h),h=T;i(p)},X=(h,p,T)=>{const{bum:L,scope:D,update:H,subTree:G,um:W}=h;L&&Mo(L),D.stop(),H&&(H.active=!1,Ne(G,h,p,T)),W&&wt(W,p),wt(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},U=(h,p,T,L=!1,D=!1,H=0)=>{for(let G=H;Gh.shapeFlag&6?Z(h.component.subTree):h.shapeFlag&128?h.suspense.next():f(h.anchor||h.el),pe=(h,p,T)=>{h==null?p._vnode&&Ne(p._vnode,null,null,!0):E(p._vnode||null,h,p,null,null,null,T),og(),p._vnode=h},ge={p:E,um:Ne,m:fe,r:me,mt:M,mc:O,pc:se,pbc:q,n:Z,o:t};let le,oe;return e&&([le,oe]=e(ge)),{render:pe,hydrate:le,createApp:wT(pe,le)}}function Nr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Mu(t,e,n=!1){const r=t.children,i=e.children;if(de(r)&&de(i))for(let s=0;s>1,t[n[a]]0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}const AT=t=>t.__isTeleport,Ts=t=>t&&(t.disabled||t.disabled===""),Ad=t=>typeof SVGElement<"u"&&t instanceof SVGElement,fc=(t,e)=>{const n=t&&t.to;return qe(n)?e?e(n):null:n},kT={__isTeleport:!0,process(t,e,n,r,i,s,o,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:m,querySelector:w,createText:g,createComment:E}}=c,_=Ts(e.props);let{shapeFlag:C,children:S,dynamicChildren:v}=e;if(t==null){const b=e.el=g(""),k=e.anchor=g("");m(b,n,r),m(k,n,r);const x=e.target=fc(e.props,w),N=e.targetAnchor=g("");x&&(m(N,x),o=o||Ad(x));const O=(B,q)=>{C&16&&u(S,B,q,i,s,o,a,l)};_?O(n,k):x&&O(x,N)}else{e.el=t.el;const b=e.anchor=t.anchor,k=e.target=t.target,x=e.targetAnchor=t.targetAnchor,N=Ts(t.props),O=N?n:k,B=N?b:x;if(o=o||Ad(k),v?(f(t.dynamicChildren,v,O,i,s,o,a),Mu(t,e,!0)):l||d(t,e,O,B,i,s,o,a,!1),_)N||So(e,n,b,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const q=e.target=fc(e.props,w);q&&So(e,q,null,c,0)}else N&&So(e,k,x,c,1)}},remove(t,e,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:d,props:f}=t;if(d&&s(u),(o||!Ts(f))&&(s(c),a&16))for(let m=0;m0?un||Si:null,LT(),Us>0&&un&&un.push(t),t}function V(t,e,n,r,i,s){return kg(y(t,e,n,r,i,s,!0))}function Te(t,e,n,r,i){return kg(ie(t,e,n,r,i,!0))}function ea(t){return t?t.__v_isVNode===!0:!1}function Dr(t,e){return t.type===e.type&&t.key===e.key}const Ma="__vInternal",xg=({key:t})=>t!=null?t:null,Do=({ref:t,ref_key:e,ref_for:n})=>t!=null?qe(t)||ct(t)||ye(t)?{i:dt,r:t,k:e,f:!!n}:t:null;function y(t,e=null,n=null,r=0,i=null,s=t===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xg(e),ref:e&&Do(e),scopeId:xa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Iu(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=qe(n)?8:16),Us>0&&!o&&un&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&un.push(l),l}const ie=NT;function NT(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===gg)&&(t=$t),ea(t)){const a=gr(t,e,!0);return n&&Iu(a,n),Us>0&&!s&&un&&(a.shapeFlag&6?un[un.indexOf(t)]=a:un.push(a)),a.patchFlag|=-2,a}if(VT(t)&&(t=t.__vccOpts),e){e=Kt(e);let{class:a,style:l}=e;a&&!qe(a)&&(e.class=De(a)),Ge(l)&&(Tu(l)&&!de(l)&&(l=mt({},l)),e.style=Ct(l))}const o=qe(t)?1:Gw(t)?128:AT(t)?64:Ge(t)?4:ye(t)?2:0;return y(t,e,n,r,i,o,s,!0)}function Kt(t){return t?Tu(t)||Ma in t?mt({},t):t:null}function gr(t,e,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=t,a=e?Dt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&xg(a),ref:e&&e.ref?n&&i?de(i)?i.concat(Do(e)):[i,Do(e)]:Do(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xe?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&gr(t.ssContent),ssFallback:t.ssFallback&&gr(t.ssFallback),el:t.el,anchor:t.anchor}}function Le(t=" ",e=0){return ie(Pa,null,t,e)}function ve(t="",e=!1){return e?(P(),Te($t,null,t)):ie($t,null,t)}function yn(t){return t==null||typeof t=="boolean"?ie($t):de(t)?ie(xe,null,t.slice()):typeof t=="object"?tr(t):ie(Pa,null,String(t))}function tr(t){return t.el===null||t.memo?t:gr(t)}function Iu(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Iu(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Ma in e)?e._ctx=dt:i===3&&dt&&(dt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ye(e)?(e={default:e,_ctx:dt},n=32):(e=String(e),r&64?(n=16,e=[Le(e)]):n=8);t.children=e,t.shapeFlag|=n}function Dt(...t){const e={};for(let n=0;nit||dt,Vi=t=>{it=t,t.scope.on()},jr=()=>{it&&it.scope.off(),it=null};function Lg(t){return t.vnode.shapeFlag&4}let js=!1;function IT(t,e=!1){js=e;const{props:n,children:r}=t.vnode,i=Lg(t);gT(t,n,i,e),bT(t,r);const s=i?DT(t,e):void 0;return js=!1,s}function DT(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Cu(new Proxy(t.ctx,uT));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?RT(t):null;Vi(t),is();const s=lr(r,t,0,[t.props,i]);if(ss(),jr(),Dp(s)){if(s.then(jr,jr),e)return s.then(o=>{xd(t,o,e)}).catch(o=>{Sa(o,t,0)});t.asyncDep=s}else xd(t,s,e)}else Ng(t,e)}function xd(t,e,n){ye(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ge(e)&&(t.setupState=eg(e)),Ng(t,n)}let Ld;function Ng(t,e,n){const r=t.type;if(!t.render){if(!e&&Ld&&!r.render){const i=r.template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=mt(mt({isCustomElement:s,delimiters:a},o),l);r.render=Ld(i,c)}}t.render=r.render||fn}Vi(t),is(),fT(t),ss(),jr()}function $T(t){return new Proxy(t.attrs,{get(e,n){return Ht(t,"get","$attrs"),e[n]}})}function RT(t){const e=r=>{t.exposed=r||{}};let n;return{get attrs(){return n||(n=$T(t))},slots:t.slots,emit:t.emit,expose:e}}function Ia(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(eg(Cu(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Jo)return Jo[n](t)}}))}function FT(t,e=!0){return ye(t)?t.displayName||t.name:t.name||e&&t.__name}function VT(t){return ye(t)&&"__vccOpts"in t}const je=(t,e)=>Fw(t,e,js);function Cr(t,e,n){const r=arguments.length;return r===2?Ge(e)&&!de(e)?ea(e)?ie(t,null,[e]):ie(t,e):ie(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ea(n)&&(n=[n]),ie(t,e,n))}const HT="3.2.37",BT="http://www.w3.org/2000/svg",$r=typeof document<"u"?document:null,Nd=$r&&$r.createElement("template"),UT={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?$r.createElementNS(BT,t):$r.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>$r.createTextNode(t),createComment:t=>$r.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>$r.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Nd.innerHTML=r?`${t}`:t;const a=Nd.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function jT(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function WT(t,e,n){const r=t.style,i=qe(n);if(n&&!i){for(const s in n)dc(r,s,n[s]);if(e&&!qe(e))for(const s in e)n[s]==null&&dc(r,s,"")}else{const s=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=s)}}const Od=/\s*!important$/;function dc(t,e,n){if(de(n))n.forEach(r=>dc(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=zT(t,e);Od.test(n)?t.setProperty(rs(r),n.replace(Od,""),"important"):t[r]=n}}const Pd=["Webkit","Moz","ms"],hl={};function zT(t,e){const n=hl[e];if(n)return n;let r=xn(e);if(r!=="filter"&&r in t)return hl[e]=r;r=Ta(r);for(let i=0;i{let t=Date.now,e=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(t=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);e=!!(n&&Number(n[1])<=53)}return[t,e]})();let hc=0;const GT=Promise.resolve(),XT=()=>{hc=0},QT=()=>hc||(GT.then(XT),hc=Og());function Rn(t,e,n,r){t.addEventListener(e,n,r)}function JT(t,e,n,r){t.removeEventListener(e,n,r)}function ZT(t,e,n,r,i=null){const s=t._vei||(t._vei={}),o=s[e];if(r&&o)o.value=r;else{const[a,l]=e2(e);if(r){const c=s[e]=t2(r,i);Rn(t,a,c,l)}else o&&(JT(t,a,o,l),s[e]=void 0)}}const Id=/(?:Once|Passive|Capture)$/;function e2(t){let e;if(Id.test(t)){e={};let n;for(;n=t.match(Id);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[rs(t.slice(2)),e]}function t2(t,e){const n=r=>{const i=r.timeStamp||Og();(qT||i>=n.attached-1)&&Jt(n2(r,n.value),e,5,[r])};return n.value=t,n.attached=QT(),n}function n2(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Dd=/^on[a-z]/,r2=(t,e,n,r,i=!1,s,o,a,l)=>{e==="class"?jT(t,r,i):e==="style"?WT(t,n,r):Ea(e)?mu(e)||ZT(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):i2(t,e,r,i))?YT(t,e,r,s,o,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),KT(t,e,r,i))};function i2(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Dd.test(e)&&ye(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Dd.test(e)&&qe(n)?!1:e in t}const s2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};eT.props;const _r=t=>{const e=t.props["onUpdate:modelValue"]||!1;return de(e)?n=>Mo(e,n):e};function o2(t){t.target.composing=!0}function $d(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const a2={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t._assign=_r(i);const s=r||i.props&&i.props.type==="number";Rn(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),s&&(a=Go(a)),t._assign(a)}),n&&Rn(t,"change",()=>{t.value=t.value.trim()}),e||(Rn(t,"compositionstart",o2),Rn(t,"compositionend",$d),Rn(t,"change",$d))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},s){if(t._assign=_r(s),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(i||t.type==="number")&&Go(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},l2={deep:!0,created(t,e,n){t._assign=_r(n),Rn(t,"change",()=>{const r=t._modelValue,i=Hi(t),s=t.checked,o=t._assign;if(de(r)){const a=hu(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(ns(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(Pg(t,s))})},mounted:Rd,beforeUpdate(t,e,n){t._assign=_r(n),Rd(t,e,n)}};function Rd(t,{value:e,oldValue:n},r){t._modelValue=e,de(e)?t.checked=hu(e,r.props.value)>-1:ns(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Gr(e,Pg(t,!0)))}const ml={created(t,{value:e},n){t.checked=Gr(e,n.props.value),t._assign=_r(n),Rn(t,"change",()=>{t._assign(Hi(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=_r(r),e!==n&&(t.checked=Gr(e,r.props.value))}},$o={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=ns(e);Rn(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Go(Hi(o)):Hi(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=_r(r)},mounted(t,{value:e}){Fd(t,e)},beforeUpdate(t,e,n){t._assign=_r(n)},updated(t,{value:e}){Fd(t,e)}};function Fd(t,e){const n=t.multiple;if(!(n&&!de(e)&&!ns(e))){for(let r=0,i=t.options.length;r-1:s.selected=e.has(o);else if(Gr(Hi(s),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Hi(t){return"_value"in t?t._value:t.value}function Pg(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const c2=["ctrl","shift","alt","meta"],u2={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>c2.some(n=>t[`${n}Key`]&&!e.includes(n))},Ws=(t,e)=>(n,...r)=>{for(let i=0;i{us(t,!1)}):us(t,e))},beforeUnmount(t,{value:e}){us(t,e)}};function us(t,e){t.style.display=e?t._vod:"none"}const f2=mt({patchProp:r2},UT);let Vd;function d2(){return Vd||(Vd=TT(f2))}const h2=(...t)=>{const e=d2().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=m2(r);if(!i)return;const s=e._component;!ye(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function m2(t){return qe(t)?document.querySelector(t):t}/** * vue-meta v3.0.0-alpha.10 * (c) 2022 * - Pim (@pimlie) * - All the amazing contributors * @license MIT - */const m2=(t,e)=>(n,r)=>{let i=-1;if(r.reduce((s,o,a)=>{const l=t(s,o);return l!==s?(i=a,l):s},e),i>-1)return n[i]},p2=m2((t,e)=>{const{depth:n}=e;return!t||n>t?n:t});var g2=Object.freeze({__proto__:null,setup:t=>{let e=0;if(t.vm){let{vm:n}=t;do n.parent&&(e++,n=n.parent);while(n&&n.parent&&n!==n.root)}t.depth=e},resolve:p2});const _2={body:{tag:"script",to:"body"},base:{valueAttribute:"href"},charset:{tag:"meta",nameless:!0,valueAttribute:"charset"},description:{tag:"meta"},og:{group:!0,namespacedAttribute:!0,tag:"meta",keyAttribute:"property"},twitter:{group:!0,namespacedAttribute:!0,tag:"meta"},htmlAttrs:{attributesFor:"html"},headAttrs:{attributesFor:"head"},bodyAttrs:{attributesFor:"body"}},v2={title:{attributes:!1},base:{contentAsAttribute:!0,attributes:["href","target"]},meta:{contentAsAttribute:!0,keyAttribute:"name",attributes:["content","name","http-equiv","charset"]},link:{contentAsAttribute:!0,attributes:["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","color"]},style:{attributes:["media"]},script:{attributes:["src","type","nomodule","async","defer","crossorigin","integrity","referrerpolicy"]},noscript:{attributes:!1}};Object.freeze({}),Object.freeze([]);const Zt=Array.isArray,Ss=t=>typeof t=="function",Hd=t=>typeof t=="string",Da=t=>t!==null&&typeof t=="object",b2=Object.prototype.toString,As=t=>b2.call(t)==="[object Object]",Bd=Symbol("kIsProxy"),y2=Symbol("kProxySources"),Pg=Symbol("kProxyTarget"),vi=Symbol("kResolveContext");function zs(t){if(Zt(t))return t.map(zs);if(Da(t)){const e={};for(const n in t)e[n]=n==="context"?t[n]:zs(t[n]);return e}return t}const Ro=(t,e,n)=>{const r=[];for(const i of t)i&&e in i&&(r.push(i[e]),n&&n(i));return r},ta=(t,e=[],n,r)=>{if(!n&&!r&&({active:n,sources:r}=t,e.length))for(let o=0;ol[a]).filter(Boolean)}if(!n||!r)return;const i=((o,...a)=>{const l=o?Object.keys(o):[];if(a){for(const c of a)if(c&&Da(c))for(const u in c)l.includes(u)||l.push(u)}return l})(...r),s=Object.keys(n);for(const o of s)i.includes(o)||delete n[o];for(const o of i){let a=!1;for(let d=0;dl.push(d[vi]));let u=t.resolve(c,l,n[o],o,e);As(u)&&(u=zs(u)),n[o]=u}},Mg=(t,e,n,r=[])=>{const i=E2(t,n,r),s=Cu(new Proxy(e,i));return!r.length&&t.sources&&t.sources.push(s),s},E2=(t,e,n=[])=>({get:(r,i,s)=>{if(i===Bd)return!0;if(i===y2)return t.sources;if(i===Pg)return r;if(i===vi)return e;let o=Reflect.get(r,i,s);if(!Da(o))return o;if(!o[Bd]){const a=[...n,i];o=Mg(t,o,e,a),Reflect.set(r,i,o)}return o},set:(r,i,s)=>{const o=Reflect.set(r,i,s);if(o){const a=Zt(r);let l,c=!1,{sources:u,active:d}=t,f=0;for(const E of n){if(u=Ro(u,E),a&&f===n.length-1){l=E;break}Zt(d)&&(c=!0),d=d[E],f++}if(c)return ta(t),o;if(As(s))return ta(t,n),o;let m,w=[];a?(m=u,w=u.map(E=>E[vi])):m=Ro(u,i,E=>w.push(E[vi]));let g=t.resolve(m,w,d,i,n);As(g)&&(g=zs(g)),a&&l?d[l]=g:d[i]=g}return o},deleteProperty:(r,i)=>{const s=Reflect.deleteProperty(r,i);if(s){const o=Zt(r);let a,l=t.sources,c=t.active,u=0;for(const d of n){if(l=l.map(f=>f&&f[d]),o&&u===n.length-1){a=d;break}c=c[d],u++}if(l.some(d=>d&&i in d)){let d,f=[];o?(d=l,f=l.map(w=>w[vi])):d=Ro(l,i,w=>f.push(w[vi]));let m=t.resolve(d,f,c,i,n);As(m)&&(m=zs(m)),o&&a?c[a]=m:c[i]=m}else delete c[i]}return s}}),pl={};function w2(t,e,n,r){return"attributesFor"in r?function(i,s,o,a){const{attributesFor:l}=a;if(!l||!o)return;if(i.isSSR)return{to:"",vnode:Cr(`ssr-${l}`,o)};if(!pl[l]){const[f,m]=Array.from(document.querySelectorAll(l));if(!f)return void console.error("Could not find element for selector",l,", won't render attributes");m&&console.warn("Found multiple elements for selector",l),pl[l]={el:f,attrs:[]}}const{el:c,attrs:u}=pl[l];for(const f in o){let m=Fo(i,`${s}(${f})`,o[f],o);Zt(m)&&(m=m.join(",")),c.setAttribute(f,m||""),u.includes(f)||u.push(f)}const d=u.filter(f=>!o[f]);for(const f of d)c.removeAttribute(f)}(t,e,n,r):"group"in r?function(i,s,o,a){return Zt(o)?(console.warn("Specifying an array for group properties isnt supported"),[]):Object.keys(o).map(l=>{const c={group:s,data:o};if(a.namespaced)c.tagNamespace=a.namespaced===!0?s:a.namespaced;else if(a.namespacedAttribute){const u=a.namespacedAttribute===!0?s:a.namespacedAttribute;c.fullName=`${u}:${l}`,c.slotName=`${u}(${l})`}return na(i,s,o[l],a,c)}).filter(Boolean).flat()}(t,e,n,r):na(t,e,n,r)}function na(t,e,n,r={},i){const s=["content","json","rawContent"],o=E=>function(_,C){for(const S of _){const v=v2[S];if(S&&v)return v[C]}}([a,r.tag],E);if(Zt(n))return n.map(E=>na(t,e,E,r,i)).filter(Boolean).flat();const{tag:a=r.tag||e}=n;let l="",c=!1,u=!1;if(Hd(n))l=n;else if(n.children&&Zt(n.children))c=!0,l=n.children.map(E=>{const _=na(t,e,E,r,i);return Zt(_)?_.map(({vnode:C})=>C):_&&_.vnode});else{let E=0;for(const _ of s){if(!l&&n[_]){l=E===1?JSON.stringify(n[_]):n[_],u=E>1;break}E++}}const d=i&&i.fullName||e,f=i&&i.slotName||e;let{attrs:m}=n;if(m||typeof n!="object")m||(m={});else{m={...n},delete m.tag,delete m.children,delete m.to;for(const E of s)delete m[E]}if(c)l=Fo(t,f,l,n);else{const E=!!o("contentAsAttribute");let{valueAttribute:_}=r;if(!_&&E){const[C]=o("attributes");_=Hd(E)?E:C}if(_){const{nameless:C}=r;if(!C){const S=r.keyAttribute||o("keyAttribute");S&&(m[S]=d)}m[_]=Fo(t,f,m[_]||l,i),l=""}else l=Fo(t,f,l,n)}const w=i&&i.tagNamespace?`${i.tagNamespace}:${a}`:a;if(w==="title"&&!t.isSSR)return void(document.title=l);u&&l&&(m.innerHTML=l);const g=Cr(w,m,l||void 0);return{to:n.to,vnode:g}}function Fo({metainfo:t,slots:e},n,r,i){const s=e&&e[n];if(!s||!Ss(s))return r;const o={content:r,metainfo:t};if(i&&i.group){const{group:l,data:c}=i;o[l]=c}const a=s(o);if(a&&a.length){const{children:l}=a[0];return l?l.toString():""}return r}const T2=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",C2=(t=>T2?Symbol("[vue-meta]: "+t):"[vue-meta]: "+t)("meta_active");function Ig(t,e,n){for(const r in e)r in n?Da(t[r])?Ig(t[r],e[r],n[r]):e[r]!==n[r]&&(t[r]=e[r]):t[r]=e[r];for(const r in n)e&&r in e||delete t[r]}function Dg(t){if(t||(t=Ln()||void 0),t)return t.appContext.config.globalProperties.$metaManager}function Ud(t,e){const n=Ln()||void 0;if(!e&&n&&(e=Dg(n)),!e)throw new Error("No manager or current instance");Tu(t)&&(cr(t,(i,s)=>{Ig(r.meta,i,s)}),t=t.value);const r=e.addMeta(t,n);return r}const S2=ku({name:"Metainfo",inheritAttrs:!1,setup:(t,{slots:e})=>()=>{const n=Dg();if(n)return n.render({slots:e})}});function jd(t,e,n,r){const i=Zt(r)?r:[r];t?n.endsWith("Attrs")||i.forEach(s=>{s.props||(s.props={}),s.props["data-vm-ssr"]=!0}):i.forEach((s,o)=>{s.type===$t&&i.splice(o,1)}),e[n]||(e[n]=[]),e[n].push(...i)}const A2=(t=!1,e,n)=>Vo.create(t,e||_2,n||g2),wf=class{constructor(e,n,r,i){xr(this,"isSSR",!1);xr(this,"config");xr(this,"target");xr(this,"resolver");xr(this,"ssrCleanedUp",!1);this.isSSR=e,this.config=n,this.target=r,i&&"setup"in i&&Ss(i.setup)&&(this.resolver=i)}install(e){e.component("Metainfo",S2),e.config.globalProperties.$metaManager=this,e.provide(C2,this.target.context.active)}addMeta(e,n){n||(n=Ln()||void 0);const r={removed:[]},i={vm:n},{resolver:s}=this;s&&s.setup&&s.setup(i);const o=this.target.addSource(e,i,!0),a=l=>this.unmount(!!l,o,r,n);return n&&Oa(a),{meta:o,onRemoved:l=>r.removed.push(l),unmount:a}}unmount(e,n,r,i){if(i){const{$el:s}=i.proxy;if(s&&s.offsetParent){let o=new MutationObserver(a=>{for(const{removedNodes:l}of a)l&&l.forEach(c=>{c===s&&o&&(o.disconnect(),o=void 0,this.reallyUnmount(e,n,r))})});return void o.observe(s.parentNode,{childList:!0})}}this.reallyUnmount(e,n,r)}async reallyUnmount(e,n,r){this.target.delSource(n),!e&&r&&await Promise.all(r.removed.map(i=>i()))}render({slots:e}={}){const n=this.target.context.active,{isSSR:r}=this;if(!r&&!this.ssrCleanedUp){this.ssrCleanedUp=!0;const s=()=>{const o=document.querySelectorAll("[data-vm-ssr]");o&&o.length&&o.forEach(a=>a.parentNode&&a.parentNode.removeChild(a))};document.readyState==="loading"?window.addEventListener("DOMContentLoaded",s,{once:!0}):s()}const i={};for(const s in n){const o=this.config[s]||{};let a=w2({isSSR:r,metainfo:n,slots:e},s,n[s],o);if(!a)continue;Zt(a)||(a=[a]);let l=s!=="base"&&n[s].to;!l&&"to"in o&&(l=o.to),!l&&"attributesFor"in o&&(l=s);for(const{to:c,vnode:u}of a)jd(this.isSSR,i,c||l||"head",u)}if(e)for(const s in e){const o=s==="default"?"head":s;if(o!=="head"&&o!=="body")continue;const a=e[s];Ss(a)&&jd(this.isSSR,i,o,a({metainfo:n}))}return Object.keys(i).map(s=>Cr(oo,{to:s},i[s]))}};let Vo=wf;xr(Vo,"create",(e,n,r)=>{const i=((s,o)=>{const a=[],l={active:o,resolve:s,sources:a},c=()=>ta(l);return{context:l,compute:c,addSource:(u,d,f=!1)=>{const m=Mg(l,u,d||{});return f&&c(),m},delSource:(u,d=!0)=>{const f=a.findIndex(m=>m===u||m[Pg]===u);return f>-1&&(a.splice(f,1),d&&c(),!0)}}})((s,o,a,l,c)=>Ss(r)?r(s,o,a,l,c):r.resolve(s,o,a,l,c),Zr({}));return new wf(e,n,i,r)});const k2={keyName:"metaInfo"},x2=t=>({created(){const e=Ln();if(!(e!=null&&e.type)||!(t.keyName in e.type))return;const n=e.type[t.keyName];Ss(n)?Ud(je(n.bind(this))):Ud(n)}}),L2=(t,e={})=>{const n=Object.assign({},k2,e);t.mixin(x2(n))};function $g(t,e,n){const r=e.shift();if(t[r]||(t[r]={}),!e.length){n&&typeof n=="object"&&!Array.isArray(n)?t[r]={...t[r],...n}:t[r]=n;return}$g(t[r],e,n)}const Wd=Zr({loadpoints:[]}),mc={state:Wd,update:function(t){Object.keys(t).forEach(function(e){typeof window.app[e]=="function"?window.app[e]({message:t[e]}):$g(Wd,e.split("."),t[e])})}},we=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},N2={name:"App",props:{notifications:Array,offline:Boolean},data:()=>({reconnectTimeout:null,ws:null}),mounted:function(){this.connect(),document.addEventListener("visibilitychange",this.pageVisibilityChanged,!1)},unmounted:function(){this.disconnect(),window.clearTimeout(this.reconnectTimeout),document.removeEventListener("visibilitychange",this.pageVisibilityChanged,!1)},methods:{pageVisibilityChanged:function(){document.hidden?(window.clearTimeout(this.reconnectTimeout),this.disconnect()):this.connect()},reconnect:function(){window.clearTimeout(this.reconnectTimeout),this.reconnectTimeout=window.setTimeout(()=>{this.disconnect(),this.connect()},2500)},disconnect:function(){console.log("websocket disconnecting"),this.ws&&(this.ws.onerror=null,this.ws.onopen=null,this.ws.onclose=null,this.ws.onmessage=null,this.ws.close(),this.ws=null)},connect:function(){if(console.log("websocket connect"),!("WebSocket"in window)){window.app.error({message:"Web sockets not supported. Please upgrade your browser."});return}if(this.ws){console.log("websocket already connected");return}const e=window.location,r=(e.protocol=="https:"?"wss:":"ws:")+"//"+e.hostname+(e.port?":"+e.port:"")+e.pathname+"ws";this.ws=new WebSocket(r),this.ws.onerror=()=>{console.error({message:"Websocket error. Trying to reconnect."}),this.ws.close()},this.ws.onopen=()=>{console.log("websocket connected"),window.app.setOnline()},this.ws.onclose=()=>{console.log("websocket disconnected"),window.app.setOffline(),this.reconnect()},this.ws.onmessage=i=>{try{var s=JSON.parse(i.data);mc.update(s)}catch(o){window.app.error({message:`Failed to parse web socket data: ${o.message} [${i.data}]`})}}},reload(){window.location.reload()}},metaInfo(){return{title:mc.state.siteTitle||""}}},O2={class:"app overflow-hidden"};function P2(t,e,n,r,i,s){const o=ae("metainfo"),a=ae("router-view");return P(),V("div",O2,[ie(o,null,{title:et(({content:l})=>[Le(F(l?`${l} | evcc`:"evcc"),1)]),_:1}),ie(a,{notifications:n.notifications,offline:n.offline},null,8,["notifications","offline"])])}const M2=we(N2,[["render",P2],["__scopeId","data-v-8c56982e"]]);function Mn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*! + */const p2=(t,e)=>(n,r)=>{let i=-1;if(r.reduce((s,o,a)=>{const l=t(s,o);return l!==s?(i=a,l):s},e),i>-1)return n[i]},g2=p2((t,e)=>{const{depth:n}=e;return!t||n>t?n:t});var _2=Object.freeze({__proto__:null,setup:t=>{let e=0;if(t.vm){let{vm:n}=t;do n.parent&&(e++,n=n.parent);while(n&&n.parent&&n!==n.root)}t.depth=e},resolve:g2});const v2={body:{tag:"script",to:"body"},base:{valueAttribute:"href"},charset:{tag:"meta",nameless:!0,valueAttribute:"charset"},description:{tag:"meta"},og:{group:!0,namespacedAttribute:!0,tag:"meta",keyAttribute:"property"},twitter:{group:!0,namespacedAttribute:!0,tag:"meta"},htmlAttrs:{attributesFor:"html"},headAttrs:{attributesFor:"head"},bodyAttrs:{attributesFor:"body"}},b2={title:{attributes:!1},base:{contentAsAttribute:!0,attributes:["href","target"]},meta:{contentAsAttribute:!0,keyAttribute:"name",attributes:["content","name","http-equiv","charset"]},link:{contentAsAttribute:!0,attributes:["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","color"]},style:{attributes:["media"]},script:{attributes:["src","type","nomodule","async","defer","crossorigin","integrity","referrerpolicy"]},noscript:{attributes:!1}};Object.freeze({}),Object.freeze([]);const Zt=Array.isArray,Ss=t=>typeof t=="function",Hd=t=>typeof t=="string",Da=t=>t!==null&&typeof t=="object",y2=Object.prototype.toString,As=t=>y2.call(t)==="[object Object]",Bd=Symbol("kIsProxy"),E2=Symbol("kProxySources"),Mg=Symbol("kProxyTarget"),vi=Symbol("kResolveContext");function zs(t){if(Zt(t))return t.map(zs);if(Da(t)){const e={};for(const n in t)e[n]=n==="context"?t[n]:zs(t[n]);return e}return t}const Ro=(t,e,n)=>{const r=[];for(const i of t)i&&e in i&&(r.push(i[e]),n&&n(i));return r},ta=(t,e=[],n,r)=>{if(!n&&!r&&({active:n,sources:r}=t,e.length))for(let o=0;ol[a]).filter(Boolean)}if(!n||!r)return;const i=((o,...a)=>{const l=o?Object.keys(o):[];if(a){for(const c of a)if(c&&Da(c))for(const u in c)l.includes(u)||l.push(u)}return l})(...r),s=Object.keys(n);for(const o of s)i.includes(o)||delete n[o];for(const o of i){let a=!1;for(let d=0;dl.push(d[vi]));let u=t.resolve(c,l,n[o],o,e);As(u)&&(u=zs(u)),n[o]=u}},Ig=(t,e,n,r=[])=>{const i=w2(t,n,r),s=Cu(new Proxy(e,i));return!r.length&&t.sources&&t.sources.push(s),s},w2=(t,e,n=[])=>({get:(r,i,s)=>{if(i===Bd)return!0;if(i===E2)return t.sources;if(i===Mg)return r;if(i===vi)return e;let o=Reflect.get(r,i,s);if(!Da(o))return o;if(!o[Bd]){const a=[...n,i];o=Ig(t,o,e,a),Reflect.set(r,i,o)}return o},set:(r,i,s)=>{const o=Reflect.set(r,i,s);if(o){const a=Zt(r);let l,c=!1,{sources:u,active:d}=t,f=0;for(const E of n){if(u=Ro(u,E),a&&f===n.length-1){l=E;break}Zt(d)&&(c=!0),d=d[E],f++}if(c)return ta(t),o;if(As(s))return ta(t,n),o;let m,w=[];a?(m=u,w=u.map(E=>E[vi])):m=Ro(u,i,E=>w.push(E[vi]));let g=t.resolve(m,w,d,i,n);As(g)&&(g=zs(g)),a&&l?d[l]=g:d[i]=g}return o},deleteProperty:(r,i)=>{const s=Reflect.deleteProperty(r,i);if(s){const o=Zt(r);let a,l=t.sources,c=t.active,u=0;for(const d of n){if(l=l.map(f=>f&&f[d]),o&&u===n.length-1){a=d;break}c=c[d],u++}if(l.some(d=>d&&i in d)){let d,f=[];o?(d=l,f=l.map(w=>w[vi])):d=Ro(l,i,w=>f.push(w[vi]));let m=t.resolve(d,f,c,i,n);As(m)&&(m=zs(m)),o&&a?c[a]=m:c[i]=m}else delete c[i]}return s}}),pl={};function T2(t,e,n,r){return"attributesFor"in r?function(i,s,o,a){const{attributesFor:l}=a;if(!l||!o)return;if(i.isSSR)return{to:"",vnode:Cr(`ssr-${l}`,o)};if(!pl[l]){const[f,m]=Array.from(document.querySelectorAll(l));if(!f)return void console.error("Could not find element for selector",l,", won't render attributes");m&&console.warn("Found multiple elements for selector",l),pl[l]={el:f,attrs:[]}}const{el:c,attrs:u}=pl[l];for(const f in o){let m=Fo(i,`${s}(${f})`,o[f],o);Zt(m)&&(m=m.join(",")),c.setAttribute(f,m||""),u.includes(f)||u.push(f)}const d=u.filter(f=>!o[f]);for(const f of d)c.removeAttribute(f)}(t,e,n,r):"group"in r?function(i,s,o,a){return Zt(o)?(console.warn("Specifying an array for group properties isnt supported"),[]):Object.keys(o).map(l=>{const c={group:s,data:o};if(a.namespaced)c.tagNamespace=a.namespaced===!0?s:a.namespaced;else if(a.namespacedAttribute){const u=a.namespacedAttribute===!0?s:a.namespacedAttribute;c.fullName=`${u}:${l}`,c.slotName=`${u}(${l})`}return na(i,s,o[l],a,c)}).filter(Boolean).flat()}(t,e,n,r):na(t,e,n,r)}function na(t,e,n,r={},i){const s=["content","json","rawContent"],o=E=>function(_,C){for(const S of _){const v=b2[S];if(S&&v)return v[C]}}([a,r.tag],E);if(Zt(n))return n.map(E=>na(t,e,E,r,i)).filter(Boolean).flat();const{tag:a=r.tag||e}=n;let l="",c=!1,u=!1;if(Hd(n))l=n;else if(n.children&&Zt(n.children))c=!0,l=n.children.map(E=>{const _=na(t,e,E,r,i);return Zt(_)?_.map(({vnode:C})=>C):_&&_.vnode});else{let E=0;for(const _ of s){if(!l&&n[_]){l=E===1?JSON.stringify(n[_]):n[_],u=E>1;break}E++}}const d=i&&i.fullName||e,f=i&&i.slotName||e;let{attrs:m}=n;if(m||typeof n!="object")m||(m={});else{m={...n},delete m.tag,delete m.children,delete m.to;for(const E of s)delete m[E]}if(c)l=Fo(t,f,l,n);else{const E=!!o("contentAsAttribute");let{valueAttribute:_}=r;if(!_&&E){const[C]=o("attributes");_=Hd(E)?E:C}if(_){const{nameless:C}=r;if(!C){const S=r.keyAttribute||o("keyAttribute");S&&(m[S]=d)}m[_]=Fo(t,f,m[_]||l,i),l=""}else l=Fo(t,f,l,n)}const w=i&&i.tagNamespace?`${i.tagNamespace}:${a}`:a;if(w==="title"&&!t.isSSR)return void(document.title=l);u&&l&&(m.innerHTML=l);const g=Cr(w,m,l||void 0);return{to:n.to,vnode:g}}function Fo({metainfo:t,slots:e},n,r,i){const s=e&&e[n];if(!s||!Ss(s))return r;const o={content:r,metainfo:t};if(i&&i.group){const{group:l,data:c}=i;o[l]=c}const a=s(o);if(a&&a.length){const{children:l}=a[0];return l?l.toString():""}return r}const C2=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",S2=(t=>C2?Symbol("[vue-meta]: "+t):"[vue-meta]: "+t)("meta_active");function Dg(t,e,n){for(const r in e)r in n?Da(t[r])?Dg(t[r],e[r],n[r]):e[r]!==n[r]&&(t[r]=e[r]):t[r]=e[r];for(const r in n)e&&r in e||delete t[r]}function $g(t){if(t||(t=Ln()||void 0),t)return t.appContext.config.globalProperties.$metaManager}function Ud(t,e){const n=Ln()||void 0;if(!e&&n&&(e=$g(n)),!e)throw new Error("No manager or current instance");Tu(t)&&(cr(t,(i,s)=>{Dg(r.meta,i,s)}),t=t.value);const r=e.addMeta(t,n);return r}const A2=ku({name:"Metainfo",inheritAttrs:!1,setup:(t,{slots:e})=>()=>{const n=$g();if(n)return n.render({slots:e})}});function jd(t,e,n,r){const i=Zt(r)?r:[r];t?n.endsWith("Attrs")||i.forEach(s=>{s.props||(s.props={}),s.props["data-vm-ssr"]=!0}):i.forEach((s,o)=>{s.type===$t&&i.splice(o,1)}),e[n]||(e[n]=[]),e[n].push(...i)}const k2=(t=!1,e,n)=>Vo.create(t,e||v2,n||_2),wf=class{constructor(e,n,r,i){xr(this,"isSSR",!1);xr(this,"config");xr(this,"target");xr(this,"resolver");xr(this,"ssrCleanedUp",!1);this.isSSR=e,this.config=n,this.target=r,i&&"setup"in i&&Ss(i.setup)&&(this.resolver=i)}install(e){e.component("Metainfo",A2),e.config.globalProperties.$metaManager=this,e.provide(S2,this.target.context.active)}addMeta(e,n){n||(n=Ln()||void 0);const r={removed:[]},i={vm:n},{resolver:s}=this;s&&s.setup&&s.setup(i);const o=this.target.addSource(e,i,!0),a=l=>this.unmount(!!l,o,r,n);return n&&Oa(a),{meta:o,onRemoved:l=>r.removed.push(l),unmount:a}}unmount(e,n,r,i){if(i){const{$el:s}=i.proxy;if(s&&s.offsetParent){let o=new MutationObserver(a=>{for(const{removedNodes:l}of a)l&&l.forEach(c=>{c===s&&o&&(o.disconnect(),o=void 0,this.reallyUnmount(e,n,r))})});return void o.observe(s.parentNode,{childList:!0})}}this.reallyUnmount(e,n,r)}async reallyUnmount(e,n,r){this.target.delSource(n),!e&&r&&await Promise.all(r.removed.map(i=>i()))}render({slots:e}={}){const n=this.target.context.active,{isSSR:r}=this;if(!r&&!this.ssrCleanedUp){this.ssrCleanedUp=!0;const s=()=>{const o=document.querySelectorAll("[data-vm-ssr]");o&&o.length&&o.forEach(a=>a.parentNode&&a.parentNode.removeChild(a))};document.readyState==="loading"?window.addEventListener("DOMContentLoaded",s,{once:!0}):s()}const i={};for(const s in n){const o=this.config[s]||{};let a=T2({isSSR:r,metainfo:n,slots:e},s,n[s],o);if(!a)continue;Zt(a)||(a=[a]);let l=s!=="base"&&n[s].to;!l&&"to"in o&&(l=o.to),!l&&"attributesFor"in o&&(l=s);for(const{to:c,vnode:u}of a)jd(this.isSSR,i,c||l||"head",u)}if(e)for(const s in e){const o=s==="default"?"head":s;if(o!=="head"&&o!=="body")continue;const a=e[s];Ss(a)&&jd(this.isSSR,i,o,a({metainfo:n}))}return Object.keys(i).map(s=>Cr(oo,{to:s},i[s]))}};let Vo=wf;xr(Vo,"create",(e,n,r)=>{const i=((s,o)=>{const a=[],l={active:o,resolve:s,sources:a},c=()=>ta(l);return{context:l,compute:c,addSource:(u,d,f=!1)=>{const m=Ig(l,u,d||{});return f&&c(),m},delSource:(u,d=!0)=>{const f=a.findIndex(m=>m===u||m[Mg]===u);return f>-1&&(a.splice(f,1),d&&c(),!0)}}})((s,o,a,l,c)=>Ss(r)?r(s,o,a,l,c):r.resolve(s,o,a,l,c),Zr({}));return new wf(e,n,i,r)});const x2={keyName:"metaInfo"},L2=t=>({created(){const e=Ln();if(!(e!=null&&e.type)||!(t.keyName in e.type))return;const n=e.type[t.keyName];Ss(n)?Ud(je(n.bind(this))):Ud(n)}}),N2=(t,e={})=>{const n=Object.assign({},x2,e);t.mixin(L2(n))};function Rg(t,e,n){const r=e.shift();if(t[r]||(t[r]={}),!e.length){n&&typeof n=="object"&&!Array.isArray(n)?t[r]={...t[r],...n}:t[r]=n;return}Rg(t[r],e,n)}const Wd=Zr({loadpoints:[]}),mc={state:Wd,update:function(t){Object.keys(t).forEach(function(e){typeof window.app[e]=="function"?window.app[e]({message:t[e]}):Rg(Wd,e.split("."),t[e])})}},we=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},O2={name:"App",props:{notifications:Array,offline:Boolean},data:()=>({reconnectTimeout:null,ws:null}),mounted:function(){this.connect(),document.addEventListener("visibilitychange",this.pageVisibilityChanged,!1)},unmounted:function(){this.disconnect(),window.clearTimeout(this.reconnectTimeout),document.removeEventListener("visibilitychange",this.pageVisibilityChanged,!1)},methods:{pageVisibilityChanged:function(){document.hidden?(window.clearTimeout(this.reconnectTimeout),this.disconnect()):this.connect()},reconnect:function(){window.clearTimeout(this.reconnectTimeout),this.reconnectTimeout=window.setTimeout(()=>{this.disconnect(),this.connect()},2500)},disconnect:function(){console.log("websocket disconnecting"),this.ws&&(this.ws.onerror=null,this.ws.onopen=null,this.ws.onclose=null,this.ws.onmessage=null,this.ws.close(),this.ws=null)},connect:function(){if(console.log("websocket connect"),!("WebSocket"in window)){window.app.error({message:"Web sockets not supported. Please upgrade your browser."});return}if(this.ws){console.log("websocket already connected");return}const e=window.location,r=(e.protocol=="https:"?"wss:":"ws:")+"//"+e.hostname+(e.port?":"+e.port:"")+e.pathname+"ws";this.ws=new WebSocket(r),this.ws.onerror=()=>{console.error({message:"Websocket error. Trying to reconnect."}),this.ws.close()},this.ws.onopen=()=>{console.log("websocket connected"),window.app.setOnline()},this.ws.onclose=()=>{console.log("websocket disconnected"),window.app.setOffline(),this.reconnect()},this.ws.onmessage=i=>{try{var s=JSON.parse(i.data);mc.update(s)}catch(o){window.app.error({message:`Failed to parse web socket data: ${o.message} [${i.data}]`})}}},reload(){window.location.reload()}},metaInfo(){return{title:mc.state.siteTitle||""}}},P2={class:"app overflow-hidden"};function M2(t,e,n,r,i,s){const o=ae("metainfo"),a=ae("router-view");return P(),V("div",P2,[ie(o,null,{title:et(({content:l})=>[Le(F(l?`${l} | evcc`:"evcc"),1)]),_:1}),ie(a,{notifications:n.notifications,offline:n.offline},null,8,["notifications","offline"])])}const I2=we(O2,[["render",M2],["__scopeId","data-v-8c56982e"]]);function Mn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*! * GSAP 3.11.0 * https://greensock.com * @@ -16,7 +16,7 @@ var Hv=Object.defineProperty;var Bv=(t,e,n)=>e in t?Hv(t,e,{enumerable:!0,config * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Rt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Bi={duration:.5,overwrite:!1,delay:0},$u,dn,Qe,qt=1e8,Fe=1/qt,pc=Math.PI*2,I2=pc/4,D2=0,Fg=Math.sqrt,$2=Math.cos,R2=Math.sin,ot=function(e){return typeof e=="string"},ze=function(e){return typeof e=="function"},zn=function(e){return typeof e=="number"},Ru=function(e){return typeof e>"u"},Nn=function(e){return typeof e=="object"},St=function(e){return e!==!1},Vg=function(){return typeof window<"u"},Ao=function(e){return ze(e)||ot(e)},Hg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ht=Array.isArray,gc=/(?:-?\.?\d|\.)+/gi,Bg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ei=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,gl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ug=/[+-]=-?[.\d]+/,jg=/[^,'"\[\]\s]+/gi,F2=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ue,zt,_c,Fu,Bt={},ra={},Wg,zg=function(e){return(ra=Xr(e,Bt))&&Ut},Vu=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},ia=function(e,n){return!n&&console.warn(e)},Kg=function(e,n){return e&&(Bt[e]=n)&&ra&&(ra[e]=n)||Bt},Ks=function(){return 0},V2={suppressEvents:!0,isStart:!0},ks={suppressEvents:!0},Hu={},ur=[],vc={},Yg,Pt={},_l={},zd=30,Ho=[],Bu="",Uu=function(e){var n=e[0],r,i;if(Nn(n)||ze(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=Ho.length;i--&&!Ho[i].targetTest(n););r=Ho[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new p_(e[i],r)))||e.splice(i,1);return e},Wr=function(e){return e._gsap||Uu(Gt(e))[0]._gsap},qg=function(e,n,r){return(r=e[n])&&ze(r)?e[n]():Ru(r)&&e.getAttribute&&e.getAttribute(n)||r},At=function(e,n){return(e=e.split(",")).forEach(n)||e},Ke=function(e){return Math.round(e*1e5)/1e5||0},lt=function(e){return Math.round(e*1e7)/1e7||0},Li=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},H2=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++ia;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},$a=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},Kn=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},zr=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},j2=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},bc=function(e,n,r,i){return e._startAt&&(dn?e._startAt.revert(ks):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},W2=function t(e){return!e||e._ts&&t(e.parent)},Yd=function(e){return e._repeat?Ui(e._tTime,e=e.duration()+e._rDelay)*e:0},Ui=function(e,n){var r=Math.floor(e/=n);return e&&r===e?r-1:r},aa=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Ra=function(e){return e._end=lt(e._start+(e._tDur/Math.abs(e._ts||e._rts||Fe)||0))},Fa=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=lt(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Ra(e),r._dirty||zr(r,e)),e},Zg=function(e,n){var r;if((n._time||n._initted&&!n._dur)&&(r=aa(e.rawTime(),n),(!n._dur||ao(0,n.totalDuration(),r)-n._tTime>Fe)&&n.render(r,!0)),zr(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Fe}},wn=function(e,n,r,i){return n.parent&&Kn(n),n._start=lt((zn(r)?r:r||e!==Ue?Wt(e,r,n):e._time)+n._delay),n._end=lt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Jg(e,n,"_first","_last",e._sort?"_start":0),yc(n)||(e._recent=n),i||Zg(e,n),e._ts<0&&Fa(e,e._tTime),e},e_=function(e,n){return(Bt.ScrollTrigger||Vu("scrollTrigger",n))&&Bt.ScrollTrigger.create(n,e)},t_=function(e,n,r,i){if(Wu(e,n),!e._initted)return 1;if(!r&&e._pt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Yg!==It.frame)return ur.push(e),e._lazy=[n,i],1},z2=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},yc=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},K2=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&z2(e)&&!(!e._initted&&yc(e))||(e._ts<0||e._dp._ts<0)&&!yc(e))?0:1,a=e._rDelay,l=0,c,u,d;if(a&&e._repeat&&(l=ao(0,e._tDur,n),u=Ui(l,a),e._yoyo&&u&1&&(o=1-o),u!==Ui(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||dn||i||e._zTime===Fe||!n&&e._zTime){if(!e._initted&&t_(e,n,i,r))return;for(d=e._zTime,e._zTime=n||(r?Fe:0),r||(r=n&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;n<0&&bc(e,n,r,!0),e._onUpdate&&!r&&Xt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&Xt(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Kn(e,1),r||(Xt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},Y2=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i?Fa(e,e._tTime=e._tDur*a):e.parent&&Ra(e),r||zr(e.parent,e),e},qd=function(e){return e instanceof Tt?zr(e):ji(e,e._dur)},q2={_start:0,endTime:Ks,totalDuration:Ks},Wt=function t(e,n,r){var i=e.labels,s=e._recent||q2,o=e.duration()>=qt?s.endTime(!1):e._dur,a,l,c;return ot(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(l=l/100*(ht(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+l:o+l)):n==null?o:+n},Ls=function(e,n,r){var i=zn(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,l;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=St(l.vars.inherit)&&l.parent;o.immediateRender=St(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Xe(n[0],o,n[s+1])},Sr=function(e,n){return e||e===0?n(e):n},ao=function(e,n,r){return rn?n:r},ft=function(e,n){return!ot(e)||!(n=F2.exec(e))?"":n[1]},G2=function(e,n,r){return Sr(r,function(i){return ao(e,n,i)})},Ec=[].slice,n_=function(e,n){return e&&Nn(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Nn(e[0]))&&!e.nodeType&&e!==zt},X2=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return ot(i)&&!n||n_(i,1)?(s=r).push.apply(s,Gt(i)):r.push(i)})||r},Gt=function(e,n,r){return Qe&&!n&&Qe.selector?Qe.selector(e):ot(e)&&!r&&(_c||!Wi())?Ec.call((n||Fu).querySelectorAll(e),0):ht(e)?X2(e,r):n_(e)?Ec.call(e,0):e?[e]:[]},wc=function(e){return e=Gt(e)[0]||ia("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Gt(n,r.querySelectorAll?r:r===e?ia("Invalid scope")||Fu.createElement("div"):e)}},r_=function(e){return e.sort(function(){return .5-Math.random()})},i_=function(e){if(ze(e))return e;var n=Nn(e)?e:{each:e},r=Kr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=n.axis,u=i,d=i;return ot(i)?u=d={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],d=i[1]),function(f,m,w){var g=(w||n).length,E=o[g],_,C,S,v,b,k,x,N,O;if(!E){if(O=n.grid==="auto"?0:(n.grid||[1,qt])[1],!O){for(x=-qt;x<(x=w[O++].getBoundingClientRect().left)&&Ox&&(x=b),bg?g-1:c?c==="y"?g/O:O:Math.max(O,g/O))||0)*(i==="edges"?-1:1),E.b=g<0?s-g:s,E.u=ft(n.amount||n.each)||0,r=r&&g<0?d_(r):r}return g=(E[f]-E.min)/E.max||0,lt(E.b+(r?r(g):g)*E.v)+E.u}},Tc=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=lt(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(zn(r)?0:ft(r))}},s_=function(e,n){var r=ht(e),i,s;return!r&&Nn(e)&&(i=r=e.radius||qt,e.values?(e=Gt(e.values),(s=!zn(e[0]))&&(i*=i)):e=Tc(e.increment)),Sr(n,r?ze(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=qt,u=0,d=e.length,f,m;d--;)s?(f=e[d].x-a,m=e[d].y-l,f=f*f+m*m):f=Math.abs(e[d]-a),fi?s-o:o)})},Ys=function(e){for(var n=0,r="",i,s,o,a;~(i=e.indexOf("random(",n));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",s=e.substr(i+7,o-i-7).match(a?jg:gc),r+=e.substr(n,i-n)+o_(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=o+1;return r+e.substr(n,e.length-n)},l_=function(e,n,r,i,s){var o=n-e,a=i-r;return Sr(s,function(l){return r+((l-e)/o*a||0)})},nC=function t(e,n,r,i){var s=isNaN(e+n)?0:function(m){return(1-m)*e+m*n};if(!s){var o=ot(e),a={},l,c,u,d,f;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(ht(e)&&!ht(n)){for(u=[],d=e.length,f=d-2,c=1;c(a=Math.abs(a))&&(l=o,s=a);return l},Xt=function(e,n,r){var i=e.vars,s=i[n],o=Qe,a=e._ctx,l,c,u;if(!!s)return l=i[n+"Params"],c=i.callbackScope||e,r&&ur.length&&sa(),a&&(Qe=a),u=l?s.apply(c,l):s.call(c),Qe=o,u},gs=function(e){return Kn(e),e.scrollTrigger&&e.scrollTrigger.kill(!1),e.progress()<1&&Xt(e,"onInterrupt"),e},wi,rC=function(e){e=!e.name&&e.default||e;var n=e.name,r=ze(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:Ks,render:Yu,add:ju,kill:bC,modifier:vC,rawVars:0},o={targetTest:0,get:0,getSetter:Ku,aliases:{},register:0};if(Wi(),e!==i){if(Pt[n])return;tn(i,tn(oa(e,s),o)),Xr(i.prototype,Xr(s,oa(e,o))),Pt[i.prop=n]=i,e.targetTest&&(Ho.push(i),Hu[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Kg(n,i),e.register&&e.register(Ut,i,kt)},$e=255,_s={aqua:[0,$e,$e],lime:[0,$e,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,$e],navy:[0,0,128],white:[$e,$e,$e],olive:[128,128,0],yellow:[$e,$e,0],orange:[$e,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[$e,0,0],pink:[$e,192,203],cyan:[0,$e,$e],transparent:[$e,$e,$e,0]},vl=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*$e+.5|0},c_=function(e,n,r){var i=e?zn(e)?[e>>16,e>>8&$e,e&$e]:0:_s.black,s,o,a,l,c,u,d,f,m,w;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),_s[e])i=_s[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&$e,i&$e,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&$e,e&$e]}else if(e.substr(0,3)==="hsl"){if(i=w=e.match(gc),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,o=u<=.5?u*(c+1):u+c-u*c,s=u*2-o,i.length>3&&(i[3]*=1),i[0]=vl(l+1/3,s,o),i[1]=vl(l,s,o),i[2]=vl(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(Bg),r&&i.length<4&&(i[3]=1),i}else i=e.match(gc)||_s.transparent;i=i.map(Number)}return n&&!w&&(s=i[0]/$e,o=i[1]/$e,a=i[2]/$e,d=Math.max(s,o,a),f=Math.min(s,o,a),u=(d+f)/2,d===f?l=c=0:(m=d-f,c=u>.5?m/(2-d-f):m/(d+f),l=d===s?(o-a)/m+(oe&&(r+=_-n),i+=_,b=i-r,S=b-o,(S>0||C)&&(k=++d.frame,f=b-d.time*1e3,d.time=b=b/1e3,o+=S+(S>=s?4:s-S),v=1),C||(l=c(g)),v)for(m=0;m=_&&m--},_listeners:a},d}(),Wi=function(){return!qs&&It.wake()},Ae={},sC=/^[\d.\-M][\d.\-,\s]/,oC=/["']/g,aC=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,c;s1&&r.config?r.config.apply(null,~e.indexOf("{")?[aC(n[1])]:lC(e).split(",").map(Xg)):Ae._CE&&sC.test(e)?Ae._CE("",e):r},d_=function(e){return function(n){return 1-e(1-n)}},h_=function t(e,n){for(var r=e._first,i;r;)r instanceof Tt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Kr=function(e,n){return e&&(ze(e)?e:Ae[e]||cC(e))||n},ei=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return At(e,function(a){Ae[a]=Bt[a]=s,Ae[o=a.toLowerCase()]=r;for(var l in s)Ae[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ae[a+"."+l]=s[l]}),s},m_=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},bl=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/pc*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*R2((u-o)*s)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:m_(a);return s=pc/s,l.config=function(c,u){return t(e,c,u)},l},yl=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:m_(r);return i.config=function(s){return t(e,s)},i};At("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ei(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Ae.Linear.easeNone=Ae.none=Ae.Linear.easeIn;ei("Elastic",bl("in"),bl("out"),bl());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ji(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Wi(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Fa(this,r),!s._dp||s.parent||Zg(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&wn(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Fe||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Gg(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Yd(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Yd(this),i):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Ui(this._tTime,s)+1:1},e.timeScale=function(r){if(!arguments.length)return this._rts===-Fe?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?aa(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Fe?0:this._rts,this.totalTime(ao(-this._delay,this._tDur,i),!0),Ra(this),j2(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Wi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Fe&&(this._tTime-=Fe)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&wn(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(St(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?aa(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ks);var i=dn;return dn=r,this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents),this.data!=="nested"&&Kn(this),dn=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(i._ts||1),i=i._dp;return!this.parent&&this.vars.immediateRender?-1:s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,qd(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,qd(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Wt(this,r),St(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,St(i))},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Fe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Fe,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this;return new Promise(function(s){var o=ze(r)?r:Qg,a=function(){var c=i.then;i.then=null,ze(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=c),s(o),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){gs(this)},t}();tn(zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Fe,_prom:0,_ps:!1,_rts:1});var Tt=function(t){Rg(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=St(r.sortChildren),Ue&&wn(r.parent||Ue,Mn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&e_(Mn(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return Ls(0,arguments,this),this},n.from=function(i,s,o){return Ls(1,arguments,this),this},n.fromTo=function(i,s,o,a){return Ls(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,xs(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Xe(i,s,Wt(this,o),1),this},n.call=function(i,s,o){return wn(this,Xe.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,l,c,u){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new Xe(i,o,Wt(this,l)),this},n.staggerFrom=function(i,s,o,a,l,c,u){return o.runBackwards=1,xs(o).immediateRender=St(o.immediateRender),this.staggerTo(i,s,o,a,l,c,u)},n.staggerFromTo=function(i,s,o,a,l,c,u,d){return a.startAt=o,xs(a).immediateRender=St(a.immediateRender),this.staggerTo(i,s,a,l,c,u,d)},n.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:lt(i),d=this._zTime<0!=i<0&&(this._initted||!c),f,m,w,g,E,_,C,S,v,b,k,x;if(this!==Ue&&u>l&&i>=0&&(u=l),u!==this._tTime||o||d){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),f=u,v=this._start,S=this._ts,_=!S,d&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,E=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(E*100+i,s,o);if(f=lt(u%E),u===l?(g=this._repeat,f=c):(g=~~(u/E),g&&g===u/E&&(f=c,g--),f>c&&(f=c)),b=Ui(this._tTime,E),!a&&this._tTime&&b!==g&&(b=g),k&&g&1&&(f=c-f,x=1),g!==b&&!this._lock){var N=k&&b&1,O=N===(k&&g&1);if(g=a&&i>=0)for(m=this._first;m;){if(w=m._next,(m._act||f>=m._start)&&m._ts&&C!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(f-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(f-m._start)*m._ts,s,o),f!==this._time||!this._ts&&!_){C=0,w&&(u+=this._zTime=-Fe);break}}m=w}else{o=o||dn,m=this._last;for(var B=i<0?i:f;m;){if(w=m._prev,(m._act||B<=m._end)&&m._ts&&C!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(B-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(B-m._start)*m._ts,s,o),f!==this._time||!this._ts&&!_){C=0,w&&(u+=this._zTime=B?-Fe:Fe);break}}m=w}}if(C&&!s&&(this.pause(),C.render(f>=a?0:-Fe)._zTime=f>=a?1:-1,this._ts))return this._start=v,Ra(this),this.render(i,s,o);this._onUpdate&&!s&&Xt(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(v===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Kn(this,1),!s&&!(i<0&&!a)&&(u||a||!l)&&(Xt(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(zn(s)||(s=Wt(this,s,i)),!(i instanceof zi)){if(ht(i))return i.forEach(function(a){return o.add(a,s)}),this;if(ot(i))return this.addLabel(i,s);if(ze(i))i=Xe.delayedCall(0,i);else return this}return this!==i?wn(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-qt);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Xe?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return ot(i)?this.removeLabel(i):ze(i)?this.killTweensOf(i):($a(this,i),i===this._recent&&(this._recent=this._last),zr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=lt(It.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=Wt(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=Xe.delayedCall(0,s||Ks,o);return a.data="isPause",this._hasPause=1,wn(this,a,Wt(this,i))},n.removePause=function(i){var s=this._first;for(i=Wt(this,i);s;)s._start===i&&s.data==="isPause"&&Kn(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)ir!==a[l]&&a[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=Gt(i),l=this._first,c=zn(s),u;l;)l instanceof Xe?H2(l._targets,a)&&(c?(!ir||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(u=l.getTweensOf(a,s)).length&&o.push.apply(o,u),l=l._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=Wt(o,i),l=s,c=l.startAt,u=l.onStart,d=l.onStartParams,f=l.immediateRender,m,w=Xe.to(o,tn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||Fe,onStart:function(){if(o.pause(),!m){var E=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());w._dur!==E&&ji(w,E,0,1).render(w._time,!0,!0),m=1}u&&u.apply(w,d||[])}},s));return f?w.render(0):w},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,tn({startAt:{time:Wt(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Gd(this,Wt(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Gd(this,Wt(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Fe)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return zr(this)},n.invalidate=function(){var i=this._first;for(this._lock=0;i;)i.invalidate(),i=i._next;return t.prototype.invalidate.call(this)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),zr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,l=qt,c,u,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(d=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,wn(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(s-=u,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;ji(o,o===Ue&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ue._ts&&(Gg(Ue,aa(i,Ue)),Yg=It.frame),It.frame>=zd){zd+=Rt.autoSleep||120;var s=Ue._first;if((!s||!s._ts)&&Rt.autoSleep&&It._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||It.sleep()}}},e}(zi);tn(Tt.prototype,{_lock:0,_hasPause:0,_forcing:0});var uC=function(e,n,r,i,s,o,a){var l=new kt(this._pt,e,n,0,1,E_,null,s),c=0,u=0,d,f,m,w,g,E,_,C;for(l.b=r,l.e=i,r+="",i+="",(_=~i.indexOf("random("))&&(i=Ys(i)),o&&(C=[r,i],o(C,e,n),r=C[0],i=C[1]),f=r.match(gl)||[];d=gl.exec(i);)w=d[0],g=i.substring(c,d.index),m?m=(m+1)%5:g.substr(-5)==="rgba("&&(m=1),w!==f[u++]&&(E=parseFloat(f[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:E,c:w.charAt(1)==="="?Li(E,w)-E:parseFloat(w)-E,m:m&&m<4?Math.round:0},c=gl.lastIndex);return l.c=c")}),v.duration();else{k={};for(N in w)N==="ease"||N==="easeEach"||mC(N,w[N],k,w.easeEach);for(N in k)for(ee=k[N].sort(function(Y,z){return Y.t-z.t}),Q=0,b=0;bl-Fe&&!u?l:ic&&(f=c)),_=this._yoyo&&w&1,_&&(v=this._yEase,f=c-f),E=Ui(this._tTime,g),f===a&&!o&&this._initted)return this._tTime=d,this;w!==E&&(S&&this._yEase&&h_(S,_),this.vars.repeatRefresh&&!_&&!this._lock&&(this._lock=o=1,this.render(lt(g*w),!0).invalidate()._lock=0))}if(!this._initted){if(t_(this,u?i:f,o,s))return this._tTime=0,this;if(a!==this._time)return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=d,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=C=(v||this._ease)(f/c),this._from&&(this.ratio=C=1-C),f&&!a&&!s&&(Xt(this,"onStart"),this._tTime!==d))return this;for(m=this._pt;m;)m.r(C,m.d),m=m._next;S&&S.render(i<0?i:!f&&_?-Fe:S._dur*S._ease(f/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&bc(this,i,s,o),Xt(this,"onUpdate")),this._repeat&&w!==E&&this.vars.onRepeat&&!s&&this.parent&&Xt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&bc(this,i,!0,!0),(i||!c)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Kn(this,1),!s&&!(u&&!a)&&(d||a)&&(Xt(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.resetTo=function(i,s,o,a){qs||It.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Wu(this,l),c=this._ease(l/this._dur),dC(this,i,s,o,a,c,l)?this.resetTo(i,s,o,a):(Fa(this,0),this.parent||Jg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?gs(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,ir&&ir.vars.overwrite!==!0)._first||gs(this),this.parent&&o!==this.timeline.totalDuration()&&ji(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?Gt(i):a,c=this._ptLookup,u=this._pt,d,f,m,w,g,E,_;if((!s||s==="all")&&U2(a,l))return s==="all"&&(this._pt=0),gs(this);for(d=this._op=this._op||[],s!=="all"&&(ot(s)&&(g={},At(s,function(C){return g[C]=1}),s=g),s=hC(a,s)),_=a.length;_--;)if(~l.indexOf(a[_])){f=c[_],s==="all"?(d[_]=s,w=f,m={}):(m=d[_]=d[_]||{},w=s);for(g in w)E=f&&f[g],E&&((!("kill"in E.d)||E.d.kill(g)===!0)&&$a(this,E,"_pt"),delete f[g]),m!=="all"&&(m[g]=1)}return this._initted&&!this._pt&&u&&gs(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return Ls(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return Ls(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return Ue.killTweensOf(i,s,o)},e}(zi);tn(Xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});At("staggerTo,staggerFrom,staggerFromTo",function(t){Xe[t]=function(){var e=new Tt,n=Ec.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var zu=function(e,n,r){return e[n]=r},b_=function(e,n,r){return e[n](r)},pC=function(e,n,r,i){return e[n](i.fp,r)},gC=function(e,n,r){return e.setAttribute(n,r)},Ku=function(e,n){return ze(e[n])?b_:Ru(e[n])&&e.setAttribute?gC:zu},y_=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},_C=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},E_=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},Yu=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},vC=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},bC=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?$a(this,n,"_pt"):n.dep||(r=1),n=i;return!r},yC=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},w_=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},kt=function(){function t(n,r,i,s,o,a,l,c,u){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||y_,this.d=l||this,this.set=c||zu,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=yC,this.m=r,this.mt=s,this.tween=i},t}();At(Bu+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Hu[t]=1});Bt.TweenMax=Bt.TweenLite=Xe;Bt.TimelineLite=Bt.TimelineMax=Tt;Ue=new Tt({sortChildren:!1,defaults:Bi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Rt.stringFilter=f_;var Ki=[],Bo={},EC=[],Qd=0,El=function(e){return(Bo[e]||EC).map(function(n){return n()})},Sc=function(){var e=Date.now(),n=[];e-Qd>2&&(El("matchMediaInit"),Ki.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,c;for(a in i)o=zt.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(r.revert(),l&&n.push(r))}),El("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r)}),Qd=e,El("matchMedia"))},T_=function(){function t(n,r){this.selector=r&&wc(r),this.data=[],this._r=[],this.isReverted=!1,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){ze(r)&&(s=i,i=r,r=ze);var o=this,a=function(){var c=Qe,u=o.selector,d;return c&&c.data.push(o),s&&(o.selector=wc(s)),Qe=o,d=i.apply(o,arguments),ze(d)&&o._r.push(d),Qe=c,o.selector=u,o.isReverted=!1,d};return o.last=a,r===ze?a(o):r?o[r]=a:a},e.ignore=function(r){var i=Qe;Qe=null,r(this),Qe=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Xe&&i._targets[0]!==i.vars.onComplete&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?(this.getTweens().map(function(a){return{g:a.globalTime(0),t:a}}).sort(function(a,l){return l.g-a.g||-1}).forEach(function(a){return a.t.revert(r)}),this.data.forEach(function(a){return!(a instanceof zi)&&a.revert&&a.revert(r)}),this._r.forEach(function(a){return a(r,s)}),this.isReverted=!0):this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i){var o=Ki.indexOf(this);~o&&Ki.splice(o,1)}},e.revert=function(r){this.kill(r||{})},t}(),wC=function(){function t(n){this.contexts=[],this.scope=n}var e=t.prototype;return e.add=function(r,i,s){Nn(r)||(r={matches:r});var o=new T_(0,s||this.scope),a=o.conditions={},l,c,u;this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(c in r)c==="all"?u=1:(l=zt.matchMedia(r[c]),l&&(Ki.indexOf(o)<0&&Ki.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(Sc):l.addEventListener("change",Sc)));return u&&i(o),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),la={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r1){var i=e.map(function(u){return Ut.quickSetter(u,n,r)}),s=i.length;return function(u){for(var d=s;d--;)i[d](u)}}e=e[0]||{};var o=Pt[n],a=Wr(e),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(u){var d=new o;wi._pt=0,d.init(e,r?u+r:u,wi,0,[e]),d.render(1,d),wi._pt&&Yu(1,wi)}:a.set(e,l);return o?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,n,r){var i,s=Ut.to(e,Xr((i={},i[n]="+=0.1",i.paused=!0,i),r||{})),o=function(l,c,u){return s.resetTo(n,l,c,u)};return o.tween=s,o},isTweening:function(e){return Ue.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Kr(e.ease,Bi.ease)),Kd(Bi,e||{})},config:function(e){return Kd(Rt,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Pt[a]&&!Bt[a]&&ia(n+" effect requires "+a+" plugin.")}),_l[n]=function(a,l,c){return r(Gt(a),tn(l||{},s),c)},o&&(Tt.prototype[n]=function(a,l,c){return this.add(_l[n](a,Nn(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){Ae[e]=Kr(n)},parseEase:function(e,n){return arguments.length?Kr(e,n):Ae},getById:function(e){return Ue.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Tt(e),i,s;for(r.smoothChildTiming=St(e.smoothChildTiming),Ue.remove(r),r._dp=0,r._time=r._tTime=Ue._time,i=Ue._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Xe&&i.vars.onComplete===i._targets[0]))&&wn(r,i,i._start-i._delay),i=s;return wn(Ue,r,0),r},context:function(e,n){return e?new T_(e,n):Qe},matchMedia:function(e){return new wC(e)},matchMediaRefresh:function(){return Ki.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||Sc()},addEventListener:function(e,n){var r=Bo[e]||(Bo[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Bo[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:eC,wrapYoyo:tC,distribute:i_,random:o_,snap:s_,normalize:Z2,getUnit:ft,clamp:G2,splitColor:c_,toArray:Gt,selector:wc,mapRange:l_,pipe:Q2,unitize:J2,interpolate:nC,shuffle:r_},install:zg,effects:_l,ticker:It,updateRoot:Tt.updateRoot,plugins:Pt,globalTimeline:Ue,core:{PropTween:kt,globals:Kg,Tween:Xe,Timeline:Tt,Animation:zi,getCache:Wr,_removeLinkedListItem:$a,reverting:function(){return dn},context:function(e){return e&&Qe&&(Qe.data.push(e),e._ctx=Qe),Qe},suppressOverwrites:function(e){return $u=e}}};At("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return la[t]=Xe[t]});It.add(Tt.updateRoot);wi=la.to({},{duration:0});var TC=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},CC=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=TC(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},wl=function(e,n){return{name:e,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(ot(s)&&(l={},At(s,function(u){return l[u]=1}),s=l),n){l={};for(c in s)l[c]=n(s[c]);s=l}CC(a,s)}}}},Ut=la.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,l;this.tween=r;for(o in n)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)dn?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},wl("roundProps",Tc),wl("modifiers"),wl("snap",s_))||la;Xe.version=Tt.version=Ut.version="3.11.0";Wg=1;Vg()&&Wi();Ae.Power0;Ae.Power1;Ae.Power2;Ae.Power3;Ae.Power4;Ae.Linear;Ae.Quad;Ae.Cubic;Ae.Quart;Ae.Quint;Ae.Strong;Ae.Elastic;Ae.Back;Ae.SteppedEase;Ae.Bounce;Ae.Sine;Ae.Expo;Ae.Circ;/*! +*/var Rt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Bi={duration:.5,overwrite:!1,delay:0},$u,dn,Qe,qt=1e8,Fe=1/qt,pc=Math.PI*2,D2=pc/4,$2=0,Vg=Math.sqrt,R2=Math.cos,F2=Math.sin,ot=function(e){return typeof e=="string"},ze=function(e){return typeof e=="function"},zn=function(e){return typeof e=="number"},Ru=function(e){return typeof e>"u"},Nn=function(e){return typeof e=="object"},St=function(e){return e!==!1},Hg=function(){return typeof window<"u"},Ao=function(e){return ze(e)||ot(e)},Bg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ht=Array.isArray,gc=/(?:-?\.?\d|\.)+/gi,Ug=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ei=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,gl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jg=/[+-]=-?[.\d]+/,Wg=/[^,'"\[\]\s]+/gi,V2=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ue,zt,_c,Fu,Bt={},ra={},zg,Kg=function(e){return(ra=Xr(e,Bt))&&Ut},Vu=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},ia=function(e,n){return!n&&console.warn(e)},Yg=function(e,n){return e&&(Bt[e]=n)&&ra&&(ra[e]=n)||Bt},Ks=function(){return 0},H2={suppressEvents:!0,isStart:!0},ks={suppressEvents:!0},Hu={},ur=[],vc={},qg,Pt={},_l={},zd=30,Ho=[],Bu="",Uu=function(e){var n=e[0],r,i;if(Nn(n)||ze(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=Ho.length;i--&&!Ho[i].targetTest(n););r=Ho[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new g_(e[i],r)))||e.splice(i,1);return e},Wr=function(e){return e._gsap||Uu(Gt(e))[0]._gsap},Gg=function(e,n,r){return(r=e[n])&&ze(r)?e[n]():Ru(r)&&e.getAttribute&&e.getAttribute(n)||r},At=function(e,n){return(e=e.split(",")).forEach(n)||e},Ke=function(e){return Math.round(e*1e5)/1e5||0},lt=function(e){return Math.round(e*1e7)/1e7||0},Li=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},B2=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++ia;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},$a=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},Kn=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},zr=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},W2=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},bc=function(e,n,r,i){return e._startAt&&(dn?e._startAt.revert(ks):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},z2=function t(e){return!e||e._ts&&t(e.parent)},Yd=function(e){return e._repeat?Ui(e._tTime,e=e.duration()+e._rDelay)*e:0},Ui=function(e,n){var r=Math.floor(e/=n);return e&&r===e?r-1:r},aa=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Ra=function(e){return e._end=lt(e._start+(e._tDur/Math.abs(e._ts||e._rts||Fe)||0))},Fa=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=lt(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Ra(e),r._dirty||zr(r,e)),e},e_=function(e,n){var r;if((n._time||n._initted&&!n._dur)&&(r=aa(e.rawTime(),n),(!n._dur||ao(0,n.totalDuration(),r)-n._tTime>Fe)&&n.render(r,!0)),zr(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Fe}},wn=function(e,n,r,i){return n.parent&&Kn(n),n._start=lt((zn(r)?r:r||e!==Ue?Wt(e,r,n):e._time)+n._delay),n._end=lt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Zg(e,n,"_first","_last",e._sort?"_start":0),yc(n)||(e._recent=n),i||e_(e,n),e._ts<0&&Fa(e,e._tTime),e},t_=function(e,n){return(Bt.ScrollTrigger||Vu("scrollTrigger",n))&&Bt.ScrollTrigger.create(n,e)},n_=function(e,n,r,i){if(Wu(e,n),!e._initted)return 1;if(!r&&e._pt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&qg!==It.frame)return ur.push(e),e._lazy=[n,i],1},K2=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},yc=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Y2=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&K2(e)&&!(!e._initted&&yc(e))||(e._ts<0||e._dp._ts<0)&&!yc(e))?0:1,a=e._rDelay,l=0,c,u,d;if(a&&e._repeat&&(l=ao(0,e._tDur,n),u=Ui(l,a),e._yoyo&&u&1&&(o=1-o),u!==Ui(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||dn||i||e._zTime===Fe||!n&&e._zTime){if(!e._initted&&n_(e,n,i,r))return;for(d=e._zTime,e._zTime=n||(r?Fe:0),r||(r=n&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;n<0&&bc(e,n,r,!0),e._onUpdate&&!r&&Xt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&Xt(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Kn(e,1),r||(Xt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},q2=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i?Fa(e,e._tTime=e._tDur*a):e.parent&&Ra(e),r||zr(e.parent,e),e},qd=function(e){return e instanceof Tt?zr(e):ji(e,e._dur)},G2={_start:0,endTime:Ks,totalDuration:Ks},Wt=function t(e,n,r){var i=e.labels,s=e._recent||G2,o=e.duration()>=qt?s.endTime(!1):e._dur,a,l,c;return ot(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(l=l/100*(ht(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+l:o+l)):n==null?o:+n},Ls=function(e,n,r){var i=zn(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,l;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=St(l.vars.inherit)&&l.parent;o.immediateRender=St(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Xe(n[0],o,n[s+1])},Sr=function(e,n){return e||e===0?n(e):n},ao=function(e,n,r){return rn?n:r},ft=function(e,n){return!ot(e)||!(n=V2.exec(e))?"":n[1]},X2=function(e,n,r){return Sr(r,function(i){return ao(e,n,i)})},Ec=[].slice,r_=function(e,n){return e&&Nn(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Nn(e[0]))&&!e.nodeType&&e!==zt},Q2=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return ot(i)&&!n||r_(i,1)?(s=r).push.apply(s,Gt(i)):r.push(i)})||r},Gt=function(e,n,r){return Qe&&!n&&Qe.selector?Qe.selector(e):ot(e)&&!r&&(_c||!Wi())?Ec.call((n||Fu).querySelectorAll(e),0):ht(e)?Q2(e,r):r_(e)?Ec.call(e,0):e?[e]:[]},wc=function(e){return e=Gt(e)[0]||ia("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Gt(n,r.querySelectorAll?r:r===e?ia("Invalid scope")||Fu.createElement("div"):e)}},i_=function(e){return e.sort(function(){return .5-Math.random()})},s_=function(e){if(ze(e))return e;var n=Nn(e)?e:{each:e},r=Kr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=n.axis,u=i,d=i;return ot(i)?u=d={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],d=i[1]),function(f,m,w){var g=(w||n).length,E=o[g],_,C,S,v,b,k,x,N,O;if(!E){if(O=n.grid==="auto"?0:(n.grid||[1,qt])[1],!O){for(x=-qt;x<(x=w[O++].getBoundingClientRect().left)&&Ox&&(x=b),bg?g-1:c?c==="y"?g/O:O:Math.max(O,g/O))||0)*(i==="edges"?-1:1),E.b=g<0?s-g:s,E.u=ft(n.amount||n.each)||0,r=r&&g<0?h_(r):r}return g=(E[f]-E.min)/E.max||0,lt(E.b+(r?r(g):g)*E.v)+E.u}},Tc=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=lt(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(zn(r)?0:ft(r))}},o_=function(e,n){var r=ht(e),i,s;return!r&&Nn(e)&&(i=r=e.radius||qt,e.values?(e=Gt(e.values),(s=!zn(e[0]))&&(i*=i)):e=Tc(e.increment)),Sr(n,r?ze(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=qt,u=0,d=e.length,f,m;d--;)s?(f=e[d].x-a,m=e[d].y-l,f=f*f+m*m):f=Math.abs(e[d]-a),fi?s-o:o)})},Ys=function(e){for(var n=0,r="",i,s,o,a;~(i=e.indexOf("random(",n));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",s=e.substr(i+7,o-i-7).match(a?Wg:gc),r+=e.substr(n,i-n)+a_(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=o+1;return r+e.substr(n,e.length-n)},c_=function(e,n,r,i,s){var o=n-e,a=i-r;return Sr(s,function(l){return r+((l-e)/o*a||0)})},rC=function t(e,n,r,i){var s=isNaN(e+n)?0:function(m){return(1-m)*e+m*n};if(!s){var o=ot(e),a={},l,c,u,d,f;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(ht(e)&&!ht(n)){for(u=[],d=e.length,f=d-2,c=1;c(a=Math.abs(a))&&(l=o,s=a);return l},Xt=function(e,n,r){var i=e.vars,s=i[n],o=Qe,a=e._ctx,l,c,u;if(!!s)return l=i[n+"Params"],c=i.callbackScope||e,r&&ur.length&&sa(),a&&(Qe=a),u=l?s.apply(c,l):s.call(c),Qe=o,u},gs=function(e){return Kn(e),e.scrollTrigger&&e.scrollTrigger.kill(!1),e.progress()<1&&Xt(e,"onInterrupt"),e},wi,iC=function(e){e=!e.name&&e.default||e;var n=e.name,r=ze(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:Ks,render:Yu,add:ju,kill:yC,modifier:bC,rawVars:0},o={targetTest:0,get:0,getSetter:Ku,aliases:{},register:0};if(Wi(),e!==i){if(Pt[n])return;tn(i,tn(oa(e,s),o)),Xr(i.prototype,Xr(s,oa(e,o))),Pt[i.prop=n]=i,e.targetTest&&(Ho.push(i),Hu[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Yg(n,i),e.register&&e.register(Ut,i,kt)},$e=255,_s={aqua:[0,$e,$e],lime:[0,$e,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,$e],navy:[0,0,128],white:[$e,$e,$e],olive:[128,128,0],yellow:[$e,$e,0],orange:[$e,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[$e,0,0],pink:[$e,192,203],cyan:[0,$e,$e],transparent:[$e,$e,$e,0]},vl=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*$e+.5|0},u_=function(e,n,r){var i=e?zn(e)?[e>>16,e>>8&$e,e&$e]:0:_s.black,s,o,a,l,c,u,d,f,m,w;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),_s[e])i=_s[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&$e,i&$e,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&$e,e&$e]}else if(e.substr(0,3)==="hsl"){if(i=w=e.match(gc),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,o=u<=.5?u*(c+1):u+c-u*c,s=u*2-o,i.length>3&&(i[3]*=1),i[0]=vl(l+1/3,s,o),i[1]=vl(l,s,o),i[2]=vl(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(Ug),r&&i.length<4&&(i[3]=1),i}else i=e.match(gc)||_s.transparent;i=i.map(Number)}return n&&!w&&(s=i[0]/$e,o=i[1]/$e,a=i[2]/$e,d=Math.max(s,o,a),f=Math.min(s,o,a),u=(d+f)/2,d===f?l=c=0:(m=d-f,c=u>.5?m/(2-d-f):m/(d+f),l=d===s?(o-a)/m+(oe&&(r+=_-n),i+=_,b=i-r,S=b-o,(S>0||C)&&(k=++d.frame,f=b-d.time*1e3,d.time=b=b/1e3,o+=S+(S>=s?4:s-S),v=1),C||(l=c(g)),v)for(m=0;m=_&&m--},_listeners:a},d}(),Wi=function(){return!qs&&It.wake()},Ae={},oC=/^[\d.\-M][\d.\-,\s]/,aC=/["']/g,lC=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,c;s1&&r.config?r.config.apply(null,~e.indexOf("{")?[lC(n[1])]:cC(e).split(",").map(Qg)):Ae._CE&&oC.test(e)?Ae._CE("",e):r},h_=function(e){return function(n){return 1-e(1-n)}},m_=function t(e,n){for(var r=e._first,i;r;)r instanceof Tt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Kr=function(e,n){return e&&(ze(e)?e:Ae[e]||uC(e))||n},ei=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return At(e,function(a){Ae[a]=Bt[a]=s,Ae[o=a.toLowerCase()]=r;for(var l in s)Ae[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ae[a+"."+l]=s[l]}),s},p_=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},bl=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/pc*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*F2((u-o)*s)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:p_(a);return s=pc/s,l.config=function(c,u){return t(e,c,u)},l},yl=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:p_(r);return i.config=function(s){return t(e,s)},i};At("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ei(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});Ae.Linear.easeNone=Ae.none=Ae.Linear.easeIn;ei("Elastic",bl("in"),bl("out"),bl());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ji(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Wi(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Fa(this,r),!s._dp||s.parent||e_(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&wn(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Fe||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Xg(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Yd(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Yd(this),i):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Ui(this._tTime,s)+1:1},e.timeScale=function(r){if(!arguments.length)return this._rts===-Fe?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?aa(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Fe?0:this._rts,this.totalTime(ao(-this._delay,this._tDur,i),!0),Ra(this),W2(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Wi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Fe&&(this._tTime-=Fe)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&wn(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(St(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?aa(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ks);var i=dn;return dn=r,this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents),this.data!=="nested"&&Kn(this),dn=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(i._ts||1),i=i._dp;return!this.parent&&this.vars.immediateRender?-1:s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,qd(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,qd(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Wt(this,r),St(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,St(i))},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Fe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Fe,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this;return new Promise(function(s){var o=ze(r)?r:Jg,a=function(){var c=i.then;i.then=null,ze(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=c),s(o),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){gs(this)},t}();tn(zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Fe,_prom:0,_ps:!1,_rts:1});var Tt=function(t){Fg(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=St(r.sortChildren),Ue&&wn(r.parent||Ue,Mn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&t_(Mn(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return Ls(0,arguments,this),this},n.from=function(i,s,o){return Ls(1,arguments,this),this},n.fromTo=function(i,s,o,a){return Ls(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,xs(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Xe(i,s,Wt(this,o),1),this},n.call=function(i,s,o){return wn(this,Xe.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,l,c,u){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new Xe(i,o,Wt(this,l)),this},n.staggerFrom=function(i,s,o,a,l,c,u){return o.runBackwards=1,xs(o).immediateRender=St(o.immediateRender),this.staggerTo(i,s,o,a,l,c,u)},n.staggerFromTo=function(i,s,o,a,l,c,u,d){return a.startAt=o,xs(a).immediateRender=St(a.immediateRender),this.staggerTo(i,s,a,l,c,u,d)},n.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:lt(i),d=this._zTime<0!=i<0&&(this._initted||!c),f,m,w,g,E,_,C,S,v,b,k,x;if(this!==Ue&&u>l&&i>=0&&(u=l),u!==this._tTime||o||d){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),f=u,v=this._start,S=this._ts,_=!S,d&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,E=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(E*100+i,s,o);if(f=lt(u%E),u===l?(g=this._repeat,f=c):(g=~~(u/E),g&&g===u/E&&(f=c,g--),f>c&&(f=c)),b=Ui(this._tTime,E),!a&&this._tTime&&b!==g&&(b=g),k&&g&1&&(f=c-f,x=1),g!==b&&!this._lock){var N=k&&b&1,O=N===(k&&g&1);if(g=a&&i>=0)for(m=this._first;m;){if(w=m._next,(m._act||f>=m._start)&&m._ts&&C!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(f-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(f-m._start)*m._ts,s,o),f!==this._time||!this._ts&&!_){C=0,w&&(u+=this._zTime=-Fe);break}}m=w}else{o=o||dn,m=this._last;for(var B=i<0?i:f;m;){if(w=m._prev,(m._act||B<=m._end)&&m._ts&&C!==m){if(m.parent!==this)return this.render(i,s,o);if(m.render(m._ts>0?(B-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(B-m._start)*m._ts,s,o),f!==this._time||!this._ts&&!_){C=0,w&&(u+=this._zTime=B?-Fe:Fe);break}}m=w}}if(C&&!s&&(this.pause(),C.render(f>=a?0:-Fe)._zTime=f>=a?1:-1,this._ts))return this._start=v,Ra(this),this.render(i,s,o);this._onUpdate&&!s&&Xt(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(v===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Kn(this,1),!s&&!(i<0&&!a)&&(u||a||!l)&&(Xt(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(zn(s)||(s=Wt(this,s,i)),!(i instanceof zi)){if(ht(i))return i.forEach(function(a){return o.add(a,s)}),this;if(ot(i))return this.addLabel(i,s);if(ze(i))i=Xe.delayedCall(0,i);else return this}return this!==i?wn(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-qt);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Xe?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return ot(i)?this.removeLabel(i):ze(i)?this.killTweensOf(i):($a(this,i),i===this._recent&&(this._recent=this._last),zr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=lt(It.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=Wt(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=Xe.delayedCall(0,s||Ks,o);return a.data="isPause",this._hasPause=1,wn(this,a,Wt(this,i))},n.removePause=function(i){var s=this._first;for(i=Wt(this,i);s;)s._start===i&&s.data==="isPause"&&Kn(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)ir!==a[l]&&a[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=Gt(i),l=this._first,c=zn(s),u;l;)l instanceof Xe?B2(l._targets,a)&&(c?(!ir||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(u=l.getTweensOf(a,s)).length&&o.push.apply(o,u),l=l._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=Wt(o,i),l=s,c=l.startAt,u=l.onStart,d=l.onStartParams,f=l.immediateRender,m,w=Xe.to(o,tn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||Fe,onStart:function(){if(o.pause(),!m){var E=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());w._dur!==E&&ji(w,E,0,1).render(w._time,!0,!0),m=1}u&&u.apply(w,d||[])}},s));return f?w.render(0):w},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,tn({startAt:{time:Wt(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Gd(this,Wt(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Gd(this,Wt(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Fe)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return zr(this)},n.invalidate=function(){var i=this._first;for(this._lock=0;i;)i.invalidate(),i=i._next;return t.prototype.invalidate.call(this)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),zr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,l=qt,c,u,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(d=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,wn(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(s-=u,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;ji(o,o===Ue&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ue._ts&&(Xg(Ue,aa(i,Ue)),qg=It.frame),It.frame>=zd){zd+=Rt.autoSleep||120;var s=Ue._first;if((!s||!s._ts)&&Rt.autoSleep&&It._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||It.sleep()}}},e}(zi);tn(Tt.prototype,{_lock:0,_hasPause:0,_forcing:0});var fC=function(e,n,r,i,s,o,a){var l=new kt(this._pt,e,n,0,1,w_,null,s),c=0,u=0,d,f,m,w,g,E,_,C;for(l.b=r,l.e=i,r+="",i+="",(_=~i.indexOf("random("))&&(i=Ys(i)),o&&(C=[r,i],o(C,e,n),r=C[0],i=C[1]),f=r.match(gl)||[];d=gl.exec(i);)w=d[0],g=i.substring(c,d.index),m?m=(m+1)%5:g.substr(-5)==="rgba("&&(m=1),w!==f[u++]&&(E=parseFloat(f[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:E,c:w.charAt(1)==="="?Li(E,w)-E:parseFloat(w)-E,m:m&&m<4?Math.round:0},c=gl.lastIndex);return l.c=c")}),v.duration();else{k={};for(N in w)N==="ease"||N==="easeEach"||pC(N,w[N],k,w.easeEach);for(N in k)for(ee=k[N].sort(function(Y,z){return Y.t-z.t}),Q=0,b=0;bl-Fe&&!u?l:ic&&(f=c)),_=this._yoyo&&w&1,_&&(v=this._yEase,f=c-f),E=Ui(this._tTime,g),f===a&&!o&&this._initted)return this._tTime=d,this;w!==E&&(S&&this._yEase&&m_(S,_),this.vars.repeatRefresh&&!_&&!this._lock&&(this._lock=o=1,this.render(lt(g*w),!0).invalidate()._lock=0))}if(!this._initted){if(n_(this,u?i:f,o,s))return this._tTime=0,this;if(a!==this._time)return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=d,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=C=(v||this._ease)(f/c),this._from&&(this.ratio=C=1-C),f&&!a&&!s&&(Xt(this,"onStart"),this._tTime!==d))return this;for(m=this._pt;m;)m.r(C,m.d),m=m._next;S&&S.render(i<0?i:!f&&_?-Fe:S._dur*S._ease(f/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&bc(this,i,s,o),Xt(this,"onUpdate")),this._repeat&&w!==E&&this.vars.onRepeat&&!s&&this.parent&&Xt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&bc(this,i,!0,!0),(i||!c)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Kn(this,1),!s&&!(u&&!a)&&(d||a)&&(Xt(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.resetTo=function(i,s,o,a){qs||It.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Wu(this,l),c=this._ease(l/this._dur),hC(this,i,s,o,a,c,l)?this.resetTo(i,s,o,a):(Fa(this,0),this.parent||Zg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?gs(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,ir&&ir.vars.overwrite!==!0)._first||gs(this),this.parent&&o!==this.timeline.totalDuration()&&ji(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?Gt(i):a,c=this._ptLookup,u=this._pt,d,f,m,w,g,E,_;if((!s||s==="all")&&j2(a,l))return s==="all"&&(this._pt=0),gs(this);for(d=this._op=this._op||[],s!=="all"&&(ot(s)&&(g={},At(s,function(C){return g[C]=1}),s=g),s=mC(a,s)),_=a.length;_--;)if(~l.indexOf(a[_])){f=c[_],s==="all"?(d[_]=s,w=f,m={}):(m=d[_]=d[_]||{},w=s);for(g in w)E=f&&f[g],E&&((!("kill"in E.d)||E.d.kill(g)===!0)&&$a(this,E,"_pt"),delete f[g]),m!=="all"&&(m[g]=1)}return this._initted&&!this._pt&&u&&gs(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return Ls(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return Ls(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return Ue.killTweensOf(i,s,o)},e}(zi);tn(Xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});At("staggerTo,staggerFrom,staggerFromTo",function(t){Xe[t]=function(){var e=new Tt,n=Ec.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var zu=function(e,n,r){return e[n]=r},y_=function(e,n,r){return e[n](r)},gC=function(e,n,r,i){return e[n](i.fp,r)},_C=function(e,n,r){return e.setAttribute(n,r)},Ku=function(e,n){return ze(e[n])?y_:Ru(e[n])&&e.setAttribute?_C:zu},E_=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},vC=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},w_=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},Yu=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},bC=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},yC=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?$a(this,n,"_pt"):n.dep||(r=1),n=i;return!r},EC=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},T_=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},kt=function(){function t(n,r,i,s,o,a,l,c,u){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||E_,this.d=l||this,this.set=c||zu,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=EC,this.m=r,this.mt=s,this.tween=i},t}();At(Bu+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Hu[t]=1});Bt.TweenMax=Bt.TweenLite=Xe;Bt.TimelineLite=Bt.TimelineMax=Tt;Ue=new Tt({sortChildren:!1,defaults:Bi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Rt.stringFilter=d_;var Ki=[],Bo={},wC=[],Qd=0,El=function(e){return(Bo[e]||wC).map(function(n){return n()})},Sc=function(){var e=Date.now(),n=[];e-Qd>2&&(El("matchMediaInit"),Ki.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,c;for(a in i)o=zt.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(r.revert(),l&&n.push(r))}),El("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r)}),Qd=e,El("matchMedia"))},C_=function(){function t(n,r){this.selector=r&&wc(r),this.data=[],this._r=[],this.isReverted=!1,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){ze(r)&&(s=i,i=r,r=ze);var o=this,a=function(){var c=Qe,u=o.selector,d;return c&&c.data.push(o),s&&(o.selector=wc(s)),Qe=o,d=i.apply(o,arguments),ze(d)&&o._r.push(d),Qe=c,o.selector=u,o.isReverted=!1,d};return o.last=a,r===ze?a(o):r?o[r]=a:a},e.ignore=function(r){var i=Qe;Qe=null,r(this),Qe=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Xe&&i._targets[0]!==i.vars.onComplete&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?(this.getTweens().map(function(a){return{g:a.globalTime(0),t:a}}).sort(function(a,l){return l.g-a.g||-1}).forEach(function(a){return a.t.revert(r)}),this.data.forEach(function(a){return!(a instanceof zi)&&a.revert&&a.revert(r)}),this._r.forEach(function(a){return a(r,s)}),this.isReverted=!0):this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i){var o=Ki.indexOf(this);~o&&Ki.splice(o,1)}},e.revert=function(r){this.kill(r||{})},t}(),TC=function(){function t(n){this.contexts=[],this.scope=n}var e=t.prototype;return e.add=function(r,i,s){Nn(r)||(r={matches:r});var o=new C_(0,s||this.scope),a=o.conditions={},l,c,u;this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(c in r)c==="all"?u=1:(l=zt.matchMedia(r[c]),l&&(Ki.indexOf(o)<0&&Ki.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(Sc):l.addEventListener("change",Sc)));return u&&i(o),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),la={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r1){var i=e.map(function(u){return Ut.quickSetter(u,n,r)}),s=i.length;return function(u){for(var d=s;d--;)i[d](u)}}e=e[0]||{};var o=Pt[n],a=Wr(e),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(u){var d=new o;wi._pt=0,d.init(e,r?u+r:u,wi,0,[e]),d.render(1,d),wi._pt&&Yu(1,wi)}:a.set(e,l);return o?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,n,r){var i,s=Ut.to(e,Xr((i={},i[n]="+=0.1",i.paused=!0,i),r||{})),o=function(l,c,u){return s.resetTo(n,l,c,u)};return o.tween=s,o},isTweening:function(e){return Ue.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Kr(e.ease,Bi.ease)),Kd(Bi,e||{})},config:function(e){return Kd(Rt,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Pt[a]&&!Bt[a]&&ia(n+" effect requires "+a+" plugin.")}),_l[n]=function(a,l,c){return r(Gt(a),tn(l||{},s),c)},o&&(Tt.prototype[n]=function(a,l,c){return this.add(_l[n](a,Nn(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){Ae[e]=Kr(n)},parseEase:function(e,n){return arguments.length?Kr(e,n):Ae},getById:function(e){return Ue.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Tt(e),i,s;for(r.smoothChildTiming=St(e.smoothChildTiming),Ue.remove(r),r._dp=0,r._time=r._tTime=Ue._time,i=Ue._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Xe&&i.vars.onComplete===i._targets[0]))&&wn(r,i,i._start-i._delay),i=s;return wn(Ue,r,0),r},context:function(e,n){return e?new C_(e,n):Qe},matchMedia:function(e){return new TC(e)},matchMediaRefresh:function(){return Ki.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||Sc()},addEventListener:function(e,n){var r=Bo[e]||(Bo[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Bo[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:tC,wrapYoyo:nC,distribute:s_,random:a_,snap:o_,normalize:eC,getUnit:ft,clamp:X2,splitColor:u_,toArray:Gt,selector:wc,mapRange:c_,pipe:J2,unitize:Z2,interpolate:rC,shuffle:i_},install:Kg,effects:_l,ticker:It,updateRoot:Tt.updateRoot,plugins:Pt,globalTimeline:Ue,core:{PropTween:kt,globals:Yg,Tween:Xe,Timeline:Tt,Animation:zi,getCache:Wr,_removeLinkedListItem:$a,reverting:function(){return dn},context:function(e){return e&&Qe&&(Qe.data.push(e),e._ctx=Qe),Qe},suppressOverwrites:function(e){return $u=e}}};At("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return la[t]=Xe[t]});It.add(Tt.updateRoot);wi=la.to({},{duration:0});var CC=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},SC=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=CC(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},wl=function(e,n){return{name:e,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(ot(s)&&(l={},At(s,function(u){return l[u]=1}),s=l),n){l={};for(c in s)l[c]=n(s[c]);s=l}SC(a,s)}}}},Ut=la.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,l;this.tween=r;for(o in n)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)dn?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},wl("roundProps",Tc),wl("modifiers"),wl("snap",o_))||la;Xe.version=Tt.version=Ut.version="3.11.0";zg=1;Hg()&&Wi();Ae.Power0;Ae.Power1;Ae.Power2;Ae.Power3;Ae.Power4;Ae.Linear;Ae.Quad;Ae.Cubic;Ae.Quart;Ae.Quint;Ae.Strong;Ae.Elastic;Ae.Back;Ae.SteppedEase;Ae.Bounce;Ae.Sine;Ae.Expo;Ae.Circ;/*! * CSSPlugin 3.11.0 * https://greensock.com * @@ -24,11 +24,11 @@ var Hv=Object.defineProperty;var Bv=(t,e,n)=>e in t?Hv(t,e,{enumerable:!0,config * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Jd,sr,Ni,qu,Hr,Zd,Gu,SC=function(){return typeof window<"u"},Yn={},Ir=180/Math.PI,Oi=Math.PI/180,ci=Math.atan2,eh=1e8,Xu=/([A-Z])/g,AC=/(left|right|width|margin|padding|x)/i,kC=/[\s,\(]\S/,Fn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ac=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},xC=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},LC=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},NC=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},C_=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},S_=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},OC=function(e,n,r){return e.style[n]=r},PC=function(e,n,r){return e.style.setProperty(n,r)},MC=function(e,n,r){return e._gsap[n]=r},IC=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},DC=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},$C=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},We="transform",Sn=We+"Origin",RC=function(e){var n=this,r=this.target,i=r.style;if(e in Yn){if(this.tfm=this.tfm||{},e!=="transform"&&(e=Fn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return n.tfm[s]=In(r,s)}):this.tfm[e]=r._gsap.x?r._gsap[e]:In(r,e)),r._gsap.svg&&(this.svg=r.getAttribute(e)||""),this.props.indexOf(We)>=0)return;e=We}i&&this.props.push(e,i[e])},A_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},FC=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s=0?th[o]:"")+e},xc=function(){SC()&&window.document&&(Jd=window,sr=Jd.document,Ni=sr.documentElement,Hr=kc("div")||{style:{}},kc("div"),We=Yi(We),Sn=We+"Origin",Hr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",x_=!!Yi("perspective"),Gu=Ut.core.reverting,qu=1)},Tl=function t(e){var n=kc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Ni.appendChild(n),n.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Ni.removeChild(n),this.style.cssText=s,o},nh=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},L_=function(e){var n;try{n=e.getBBox()}catch{n=Tl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===Tl||(n=Tl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+nh(e,["x","cx","x1"])||0,y:+nh(e,["y","cy","y1"])||0,width:0,height:0}:n},N_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&L_(e))},Gs=function(e,n){if(n){var r=e.style;n in Yn&&n!==Sn&&(n=We),r.removeProperty?((n.substr(0,2)==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(n.replace(Xu,"-$1").toLowerCase())):r.removeAttribute(n)}},or=function(e,n,r,i,s,o){var a=new kt(e._pt,n,r,0,1,o?S_:C_);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},rh={deg:1,rad:1,turn:1},VC={grid:1,flex:1},vr=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=Hr.style,l=AC.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),d=100,f=i==="px",m=i==="%",w,g,E,_;return i===o||!s||rh[i]||rh[o]?s:(o!=="px"&&!f&&(s=t(e,n,r,"px")),_=e.getCTM&&N_(e),(m||o==="%")&&(Yn[n]||~n.indexOf("adius"))?(w=_?e.getBBox()[l?"width":"height"]:e[u],Ke(m?s/w*d:s/100*w)):(a[l?"width":"height"]=d+(f?o:i),g=~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,_&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===sr||!g.appendChild)&&(g=sr.body),E=g._gsap,E&&m&&E.width&&l&&E.time===It.time&&!E.uncache?Ke(s/E.width*d):((m||o==="%")&&!VC[An(g,"display")]&&(a.position=An(e,"position")),g===e&&(a.position="static"),g.appendChild(Hr),w=Hr[u],g.removeChild(Hr),a.position="absolute",l&&m&&(E=Wr(g),E.time=It.time,E.width=g[u]),Ke(f?w*s/d:w&&s?d/w*s:0))))},In=function(e,n,r,i){var s;return qu||xc(),n in Fn&&n!=="transform"&&(n=Fn[n],~n.indexOf(",")&&(n=n.split(",")[0])),Yn[n]&&n!=="transform"?(s=Qs(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:ua(An(e,Sn))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=ca[n]&&ca[n](e,n,r)||An(e,n)||qg(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?vr(e,n,s,r)+r:s},HC=function(e,n,r,i){if(!r||r==="none"){var s=Yi(n,e,1),o=s&&An(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=An(e,"borderTopColor"))}var a=new kt(this._pt,e.style,n,0,1,E_),l=0,c=0,u,d,f,m,w,g,E,_,C,S,v,b;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(e.style[n]=i,i=An(e,n)||i,e.style[n]=r),u=[r,i],f_(u),r=u[0],i=u[1],f=r.match(Ei)||[],b=i.match(Ei)||[],b.length){for(;d=Ei.exec(i);)E=d[0],C=i.substring(l,d.index),w?w=(w+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(w=1),E!==(g=f[c++]||"")&&(m=parseFloat(g)||0,v=g.substr((m+"").length),E.charAt(1)==="="&&(E=Li(m,E)+v),_=parseFloat(E),S=E.substr((_+"").length),l=Ei.lastIndex-S.length,S||(S=S||Rt.units[n]||v,l===i.length&&(i+=S,a.e+=S)),v!==S&&(m=vr(e,n,g,S)||0),a._pt={_next:a._pt,p:C||c===1?C:",",s:m,c:_-m,m:w&&w<4||n==="zIndex"?Math.round:0});a.c=l-1;)a=s[c],Yn[a]&&(l=1,a=a==="transformOrigin"?Sn:We),Gs(r,a);l&&(Gs(r,We),o&&(o.svg&&r.removeAttribute("transform"),Qs(r,1),o.uncache=1,A_(i)))}},ca={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new kt(e._pt,n,r,0,0,UC);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Xs=[1,0,0,1,0,0],O_={},P_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},sh=function(e){var n=An(e,We);return P_(n)?Xs:n.substr(7).match(Bg).map(Ke)},Qu=function(e,n){var r=e._gsap||Wr(e),i=e.style,s=sh(e),o,a,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Xs:s):(s===Xs&&!e.offsetParent&&e!==Ni&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(c=1,a=e.nextElementSibling,Ni.appendChild(e)),s=sh(e),l?i.display=l:Gs(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):Ni.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Lc=function(e,n,r,i,s,o){var a=e._gsap,l=s||Qu(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,d=a.xOffset||0,f=a.yOffset||0,m=l[0],w=l[1],g=l[2],E=l[3],_=l[4],C=l[5],S=n.split(" "),v=parseFloat(S[0])||0,b=parseFloat(S[1])||0,k,x,N,O;r?l!==Xs&&(x=m*E-w*g)&&(N=v*(E/x)+b*(-g/x)+(g*C-E*_)/x,O=v*(-w/x)+b*(m/x)-(m*C-w*_)/x,v=N,b=O):(k=L_(e),v=k.x+(~S[0].indexOf("%")?v/100*k.width:v),b=k.y+(~(S[1]||S[0]).indexOf("%")?b/100*k.height:b)),i||i!==!1&&a.smooth?(_=v-c,C=b-u,a.xOffset=d+(_*m+C*g)-_,a.yOffset=f+(_*w+C*E)-C):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=b,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Sn]="0px 0px",o&&(or(o,a,"xOrigin",c,v),or(o,a,"yOrigin",u,b),or(o,a,"xOffset",d,a.xOffset),or(o,a,"yOffset",f,a.yOffset)),e.setAttribute("data-svg-origin",v+" "+b)},Qs=function(e,n){var r=e._gsap||new p_(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),c=An(e,Sn)||"0",u,d,f,m,w,g,E,_,C,S,v,b,k,x,N,O,B,q,Q,ee,I,M,Y,z,te,se,ce,he,fe,Ne,me,R;return u=d=f=g=E=_=C=S=v=0,m=w=1,r.svg=!!(e.getCTM&&N_(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[We]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+l[We]),i.scale=i.rotate=i.translate="none"),x=Qu(e,r.svg),r.svg&&(z=(!r.uncache||c==="0px 0px")&&!n&&e.getAttribute("data-svg-origin"),Lc(e,z||c,!!z||r.originIsAbsolute,r.smooth!==!1,x)),b=r.xOrigin||0,k=r.yOrigin||0,x!==Xs&&(q=x[0],Q=x[1],ee=x[2],I=x[3],u=M=x[4],d=Y=x[5],x.length===6?(m=Math.sqrt(q*q+Q*Q),w=Math.sqrt(I*I+ee*ee),g=q||Q?ci(Q,q)*Ir:0,C=ee||I?ci(ee,I)*Ir+g:0,C&&(w*=Math.abs(Math.cos(C*Oi))),r.svg&&(u-=b-(b*q+k*ee),d-=k-(b*Q+k*I))):(R=x[6],Ne=x[7],ce=x[8],he=x[9],fe=x[10],me=x[11],u=x[12],d=x[13],f=x[14],N=ci(R,fe),E=N*Ir,N&&(O=Math.cos(-N),B=Math.sin(-N),z=M*O+ce*B,te=Y*O+he*B,se=R*O+fe*B,ce=M*-B+ce*O,he=Y*-B+he*O,fe=R*-B+fe*O,me=Ne*-B+me*O,M=z,Y=te,R=se),N=ci(-ee,fe),_=N*Ir,N&&(O=Math.cos(-N),B=Math.sin(-N),z=q*O-ce*B,te=Q*O-he*B,se=ee*O-fe*B,me=I*B+me*O,q=z,Q=te,ee=se),N=ci(Q,q),g=N*Ir,N&&(O=Math.cos(N),B=Math.sin(N),z=q*O+Q*B,te=M*O+Y*B,Q=Q*O-q*B,Y=Y*O-M*B,q=z,M=te),E&&Math.abs(E)+Math.abs(g)>359.9&&(E=g=0,_=180-_),m=Ke(Math.sqrt(q*q+Q*Q+ee*ee)),w=Ke(Math.sqrt(Y*Y+R*R)),N=ci(M,Y),C=Math.abs(N)>2e-4?N*Ir:0,v=me?1/(me<0?-me:me):0),r.svg&&(z=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!P_(An(e,We)),z&&e.setAttribute("transform",z))),Math.abs(C)>90&&Math.abs(C)<270&&(s?(m*=-1,C+=g<=0?180:-180,g+=g<=0?180:-180):(w*=-1,C+=C<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=d-((r.yPercent=d&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=f+o,r.scaleX=Ke(m),r.scaleY=Ke(w),r.rotation=Ke(g)+a,r.rotationX=Ke(E)+a,r.rotationY=Ke(_)+a,r.skewX=C+a,r.skewY=S+a,r.transformPerspective=v+o,(r.zOrigin=parseFloat(c.split(" ")[2])||0)&&(i[Sn]=ua(c)),r.xOffset=r.yOffset=0,r.force3D=Rt.force3D,r.renderTransform=r.svg?WC:x_?M_:jC,r.uncache=0,r},ua=function(e){return(e=e.split(" "))[0]+" "+e[1]},Cl=function(e,n,r){var i=ft(n);return Ke(parseFloat(n)+parseFloat(vr(e,"x",r+"px",i)))+i},jC=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,M_(e,n)},Or="0deg",fs="0px",Pr=") ",M_=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,d=r.rotationX,f=r.skewX,m=r.skewY,w=r.scaleX,g=r.scaleY,E=r.transformPerspective,_=r.force3D,C=r.target,S=r.zOrigin,v="",b=_==="auto"&&e&&e!==1||_===!0;if(S&&(d!==Or||u!==Or)){var k=parseFloat(u)*Oi,x=Math.sin(k),N=Math.cos(k),O;k=parseFloat(d)*Oi,O=Math.cos(k),o=Cl(C,o,x*O*-S),a=Cl(C,a,-Math.sin(k)*-S),l=Cl(C,l,N*O*-S+S)}E!==fs&&(v+="perspective("+E+Pr),(i||s)&&(v+="translate("+i+"%, "+s+"%) "),(b||o!==fs||a!==fs||l!==fs)&&(v+=l!==fs||b?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Pr),c!==Or&&(v+="rotate("+c+Pr),u!==Or&&(v+="rotateY("+u+Pr),d!==Or&&(v+="rotateX("+d+Pr),(f!==Or||m!==Or)&&(v+="skew("+f+", "+m+Pr),(w!==1||g!==1)&&(v+="scale("+w+", "+g+Pr),C.style[We]=v||"translate(0, 0)"},WC=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,d=r.scaleX,f=r.scaleY,m=r.target,w=r.xOrigin,g=r.yOrigin,E=r.xOffset,_=r.yOffset,C=r.forceCSS,S=parseFloat(o),v=parseFloat(a),b,k,x,N,O;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Oi,c*=Oi,b=Math.cos(l)*d,k=Math.sin(l)*d,x=Math.sin(l-c)*-f,N=Math.cos(l-c)*f,c&&(u*=Oi,O=Math.tan(c-u),O=Math.sqrt(1+O*O),x*=O,N*=O,u&&(O=Math.tan(u),O=Math.sqrt(1+O*O),b*=O,k*=O)),b=Ke(b),k=Ke(k),x=Ke(x),N=Ke(N)):(b=d,N=f,k=x=0),(S&&!~(o+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(S=vr(m,"x",o,"px"),v=vr(m,"y",a,"px")),(w||g||E||_)&&(S=Ke(S+w-(w*b+g*x)+E),v=Ke(v+g-(w*k+g*N)+_)),(i||s)&&(O=m.getBBox(),S=Ke(S+i/100*O.width),v=Ke(v+s/100*O.height)),O="matrix("+b+","+k+","+x+","+N+","+S+","+v+")",m.setAttribute("transform",O),C&&(m.style[We]=O)},zC=function(e,n,r,i,s){var o=360,a=ot(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?Ir:1),c=l-i,u=i+c+"deg",d,f;return a&&(d=s.split("_")[1],d==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),d==="cw"&&c<0?c=(c+o*eh)%o-~~(c/o)*o:d==="ccw"&&c>0&&(c=(c-o*eh)%o-~~(c/o)*o)),e._pt=f=new kt(e._pt,n,r,i,c,xC),f.e=u,f.u="deg",e._props.push(r),f},oh=function(e,n){for(var r in n)e[r]=n[r];return e},KC=function(e,n,r){var i=oh({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,c,u,d,f,m,w;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),o[We]=n,a=Qs(r,1),Gs(r,We),r.setAttribute("transform",c)):(c=getComputedStyle(r)[We],o[We]=n,a=Qs(r,1),o[We]=c);for(l in Yn)c=i[l],u=a[l],c!==u&&s.indexOf(l)<0&&(m=ft(c),w=ft(u),d=m!==w?vr(r,l,c,w):parseFloat(c),f=parseFloat(u),e._pt=new kt(e._pt,a,l,d,f-d,Ac),e._pt.u=w||0,e._props.push(l));oh(a,i)};At("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});ca[e>1?"border"+t:t]=function(a,l,c,u,d){var f,m;if(arguments.length<4)return f=o.map(function(w){return In(a,w,c)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(u+"").split(" "),m={},o.forEach(function(w,g){return m[w]=f[g]=f[g]||f[(g-1)/2|0]}),a.init(l,m,d)}});var I_={name:"css",register:xc,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,c,u,d,f,m,w,g,E,_,C,S,v,b,k,x,N;qu||xc(),this.styles=this.styles||k_(e),N=this.styles.props,this.tween=r;for(g in n)if(g!=="autoRound"&&(u=n[g],!(Pt[g]&&g_(g,n,r,i,e,s)))){if(m=typeof u,w=ca[g],m==="function"&&(u=u.call(r,i,e,s),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=Ys(u)),w)w(this,e,g,u,r)&&(x=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",fr.lastIndex=0,fr.test(c)||(E=ft(c),_=ft(u)),_?E!==_&&(c=vr(e,g,c,_)+_):E&&(u+=E),this.add(a,"setProperty",c,u,i,s,0,0,g),o.push(g),N.push(g,a[g]);else if(m!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(r,i,e,s):l[g],ot(c)&&~c.indexOf("random(")&&(c=Ys(c)),ft(c+"")||(c+=Rt.units[g]||ft(In(e,g))||""),(c+"").charAt(1)==="="&&(c=In(e,g))):c=In(e,g),f=parseFloat(c),C=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),C&&(u=u.substr(2)),d=parseFloat(u),g in Fn&&(g==="autoAlpha"&&(f===1&&In(e,"visibility")==="hidden"&&d&&(f=0),N.push("visibility",a.visibility),or(this,a,"visibility",f?"inherit":"hidden",d?"inherit":"hidden",!d)),g!=="scale"&&g!=="transform"&&(g=Fn[g],~g.indexOf(",")&&(g=g.split(",")[0]))),S=g in Yn,S){if(this.styles.save(g),v||(b=e._gsap,b.renderTransform&&!n.parseTransform||Qs(e,n.parseTransform),k=n.smoothOrigin!==!1&&b.smooth,v=this._pt=new kt(this._pt,a,We,0,1,b.renderTransform,b,0,-1),v.dep=1),g==="scale")this._pt=new kt(this._pt,b,"scaleY",b.scaleY,(C?Li(b.scaleY,C+d):d)-b.scaleY||0,Ac),this._pt.u=0,o.push("scaleY",g),g+="X";else if(g==="transformOrigin"){N.push(Sn,a[Sn]),u=BC(u),b.svg?Lc(e,u,0,k,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&or(this,b,"zOrigin",b.zOrigin,_),or(this,a,g,ua(c),ua(u)));continue}else if(g==="svgOrigin"){Lc(e,u,1,k,0,this);continue}else if(g in O_){zC(this,b,g,f,C?Li(f,C+u):u);continue}else if(g==="smoothOrigin"){or(this,b,"smooth",b.smooth,u);continue}else if(g==="force3D"){b[g]=u;continue}else if(g==="transform"){KC(this,u,e);continue}}else g in a||(g=Yi(g)||g);if(S||(d||d===0)&&(f||f===0)&&!kC.test(u)&&g in a)E=(c+"").substr((f+"").length),d||(d=0),_=ft(u)||(g in Rt.units?Rt.units[g]:E),E!==_&&(f=vr(e,g,c,_)),this._pt=new kt(this._pt,S?b:a,g,f,(C?Li(f,C+d):d)-f,!S&&(_==="px"||g==="zIndex")&&n.autoRound!==!1?NC:Ac),this._pt.u=_||0,E!==_&&_!=="%"&&(this._pt.b=c,this._pt.r=LC);else if(g in a)HC.call(this,e,g,c,C?C+u:u);else if(g in e)this.add(e,g,c||e[g],C?C+u:u,i,s);else{Vu(g,u);continue}S||N.push(g,a[g]),o.push(g)}}x&&w_(this)},render:function(e,n){if(n.tween._time||!Gu())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:In,aliases:Fn,getSetter:function(e,n,r){var i=Fn[n];return i&&i.indexOf(",")<0&&(n=i),n in Yn&&n!==Sn&&(e._gsap.x||In(e,"x"))?r&&Zd===r?n==="scale"?IC:MC:(Zd=r||{})&&(n==="scale"?DC:$C):e.style&&!Ru(e.style[n])?OC:~n.indexOf("-")?PC:Ku(e,n)},core:{_removeProperty:Gs,_getMatrix:Qu}};Ut.utils.checkPrefix=Yi;Ut.core.getStyleSaver=k_;(function(t,e,n,r){var i=At(t+","+e+","+n,function(s){Yn[s]=1});At(e,function(s){Rt.units[s]="deg",O_[s]=1}),Fn[i[13]]=t+","+e,At(r,function(s){var o=s.split(":");Fn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Rt.units[t]="px"});Ut.registerPlugin(I_);var YC=Ut.registerPlugin(I_)||Ut;YC.core.Tween;const qC=t=>t.replace(/[^.]/g,"").length,GC={name:"number",props:{from:{type:[Number,String],default:0},to:{type:[Number,String],required:!0,default:0},format:{type:Function,default:t=>parseInt(t)},duration:{type:Number,default:1},easing:{type:String,default:"Power1.easeOut"},delay:{type:Number,default:0},tag:{type:String,default:"span"},animationPaused:Boolean},data(){return{fromProp:this.from}},computed:{tweenedNumber(){return this.format(this.fromProp)}},methods:{tween(t){const e=this,n=Xe.to(e.$data,e.duration,{fromProp:t,paused:e.animationPaused,ease:e.easeCheck(),onStart:()=>e.$emit("start"),onComplete:()=>e.$emit("complete"),onUpdate:()=>e.$emit("update"),delay:e.delay});e.tween.tLite=n},play(){this.tween.tLite.play()},pause(){this.tween.tLite.pause()},restart(){this.tween.tLite.restart()},easeCheck(){const t=this;if(qC(t.easing)!==1)throw new Error('Invalid ease type. (eg. easing="Power1.easeOut")');return t.easing}},watch:{to(t){this.tween(t)}},mounted(){this.tween(this.to)}};function XC(t,e,n,r,i,s){return P(),Te(Nu(n.tag),null,{default:et(()=>[Le(F(s.tweenedNumber),1)]),_:1})}const QC=we(GC,[["render",XC]]),D_={install:function(t){t.component("number",QC)}};typeof window<"u"&&window.Vue&&window.Vue.use(D_);/*! +*/var Jd,sr,Ni,qu,Hr,Zd,Gu,AC=function(){return typeof window<"u"},Yn={},Ir=180/Math.PI,Oi=Math.PI/180,ci=Math.atan2,eh=1e8,Xu=/([A-Z])/g,kC=/(left|right|width|margin|padding|x)/i,xC=/[\s,\(]\S/,Fn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ac=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},LC=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},NC=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},OC=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},S_=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},A_=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},PC=function(e,n,r){return e.style[n]=r},MC=function(e,n,r){return e.style.setProperty(n,r)},IC=function(e,n,r){return e._gsap[n]=r},DC=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},$C=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},RC=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},We="transform",Sn=We+"Origin",FC=function(e){var n=this,r=this.target,i=r.style;if(e in Yn){if(this.tfm=this.tfm||{},e!=="transform"&&(e=Fn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return n.tfm[s]=In(r,s)}):this.tfm[e]=r._gsap.x?r._gsap[e]:In(r,e)),r._gsap.svg&&(this.svg=r.getAttribute(e)||""),this.props.indexOf(We)>=0)return;e=We}i&&this.props.push(e,i[e])},k_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},VC=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s=0?th[o]:"")+e},xc=function(){AC()&&window.document&&(Jd=window,sr=Jd.document,Ni=sr.documentElement,Hr=kc("div")||{style:{}},kc("div"),We=Yi(We),Sn=We+"Origin",Hr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",L_=!!Yi("perspective"),Gu=Ut.core.reverting,qu=1)},Tl=function t(e){var n=kc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Ni.appendChild(n),n.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(o=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Ni.removeChild(n),this.style.cssText=s,o},nh=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},N_=function(e){var n;try{n=e.getBBox()}catch{n=Tl.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===Tl||(n=Tl.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+nh(e,["x","cx","x1"])||0,y:+nh(e,["y","cy","y1"])||0,width:0,height:0}:n},O_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&N_(e))},Gs=function(e,n){if(n){var r=e.style;n in Yn&&n!==Sn&&(n=We),r.removeProperty?((n.substr(0,2)==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(n.replace(Xu,"-$1").toLowerCase())):r.removeAttribute(n)}},or=function(e,n,r,i,s,o){var a=new kt(e._pt,n,r,0,1,o?A_:S_);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},rh={deg:1,rad:1,turn:1},HC={grid:1,flex:1},vr=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=Hr.style,l=kC.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),d=100,f=i==="px",m=i==="%",w,g,E,_;return i===o||!s||rh[i]||rh[o]?s:(o!=="px"&&!f&&(s=t(e,n,r,"px")),_=e.getCTM&&O_(e),(m||o==="%")&&(Yn[n]||~n.indexOf("adius"))?(w=_?e.getBBox()[l?"width":"height"]:e[u],Ke(m?s/w*d:s/100*w)):(a[l?"width":"height"]=d+(f?o:i),g=~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,_&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===sr||!g.appendChild)&&(g=sr.body),E=g._gsap,E&&m&&E.width&&l&&E.time===It.time&&!E.uncache?Ke(s/E.width*d):((m||o==="%")&&!HC[An(g,"display")]&&(a.position=An(e,"position")),g===e&&(a.position="static"),g.appendChild(Hr),w=Hr[u],g.removeChild(Hr),a.position="absolute",l&&m&&(E=Wr(g),E.time=It.time,E.width=g[u]),Ke(f?w*s/d:w&&s?d/w*s:0))))},In=function(e,n,r,i){var s;return qu||xc(),n in Fn&&n!=="transform"&&(n=Fn[n],~n.indexOf(",")&&(n=n.split(",")[0])),Yn[n]&&n!=="transform"?(s=Qs(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:ua(An(e,Sn))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=ca[n]&&ca[n](e,n,r)||An(e,n)||Gg(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?vr(e,n,s,r)+r:s},BC=function(e,n,r,i){if(!r||r==="none"){var s=Yi(n,e,1),o=s&&An(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=An(e,"borderTopColor"))}var a=new kt(this._pt,e.style,n,0,1,w_),l=0,c=0,u,d,f,m,w,g,E,_,C,S,v,b;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(e.style[n]=i,i=An(e,n)||i,e.style[n]=r),u=[r,i],d_(u),r=u[0],i=u[1],f=r.match(Ei)||[],b=i.match(Ei)||[],b.length){for(;d=Ei.exec(i);)E=d[0],C=i.substring(l,d.index),w?w=(w+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(w=1),E!==(g=f[c++]||"")&&(m=parseFloat(g)||0,v=g.substr((m+"").length),E.charAt(1)==="="&&(E=Li(m,E)+v),_=parseFloat(E),S=E.substr((_+"").length),l=Ei.lastIndex-S.length,S||(S=S||Rt.units[n]||v,l===i.length&&(i+=S,a.e+=S)),v!==S&&(m=vr(e,n,g,S)||0),a._pt={_next:a._pt,p:C||c===1?C:",",s:m,c:_-m,m:w&&w<4||n==="zIndex"?Math.round:0});a.c=l-1;)a=s[c],Yn[a]&&(l=1,a=a==="transformOrigin"?Sn:We),Gs(r,a);l&&(Gs(r,We),o&&(o.svg&&r.removeAttribute("transform"),Qs(r,1),o.uncache=1,k_(i)))}},ca={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new kt(e._pt,n,r,0,0,jC);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Xs=[1,0,0,1,0,0],P_={},M_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},sh=function(e){var n=An(e,We);return M_(n)?Xs:n.substr(7).match(Ug).map(Ke)},Qu=function(e,n){var r=e._gsap||Wr(e),i=e.style,s=sh(e),o,a,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Xs:s):(s===Xs&&!e.offsetParent&&e!==Ni&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(c=1,a=e.nextElementSibling,Ni.appendChild(e)),s=sh(e),l?i.display=l:Gs(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):Ni.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Lc=function(e,n,r,i,s,o){var a=e._gsap,l=s||Qu(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,d=a.xOffset||0,f=a.yOffset||0,m=l[0],w=l[1],g=l[2],E=l[3],_=l[4],C=l[5],S=n.split(" "),v=parseFloat(S[0])||0,b=parseFloat(S[1])||0,k,x,N,O;r?l!==Xs&&(x=m*E-w*g)&&(N=v*(E/x)+b*(-g/x)+(g*C-E*_)/x,O=v*(-w/x)+b*(m/x)-(m*C-w*_)/x,v=N,b=O):(k=N_(e),v=k.x+(~S[0].indexOf("%")?v/100*k.width:v),b=k.y+(~(S[1]||S[0]).indexOf("%")?b/100*k.height:b)),i||i!==!1&&a.smooth?(_=v-c,C=b-u,a.xOffset=d+(_*m+C*g)-_,a.yOffset=f+(_*w+C*E)-C):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=b,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[Sn]="0px 0px",o&&(or(o,a,"xOrigin",c,v),or(o,a,"yOrigin",u,b),or(o,a,"xOffset",d,a.xOffset),or(o,a,"yOffset",f,a.yOffset)),e.setAttribute("data-svg-origin",v+" "+b)},Qs=function(e,n){var r=e._gsap||new g_(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),c=An(e,Sn)||"0",u,d,f,m,w,g,E,_,C,S,v,b,k,x,N,O,B,q,Q,ee,I,M,Y,z,te,se,ce,he,fe,Ne,me,R;return u=d=f=g=E=_=C=S=v=0,m=w=1,r.svg=!!(e.getCTM&&O_(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[We]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+l[We]),i.scale=i.rotate=i.translate="none"),x=Qu(e,r.svg),r.svg&&(z=(!r.uncache||c==="0px 0px")&&!n&&e.getAttribute("data-svg-origin"),Lc(e,z||c,!!z||r.originIsAbsolute,r.smooth!==!1,x)),b=r.xOrigin||0,k=r.yOrigin||0,x!==Xs&&(q=x[0],Q=x[1],ee=x[2],I=x[3],u=M=x[4],d=Y=x[5],x.length===6?(m=Math.sqrt(q*q+Q*Q),w=Math.sqrt(I*I+ee*ee),g=q||Q?ci(Q,q)*Ir:0,C=ee||I?ci(ee,I)*Ir+g:0,C&&(w*=Math.abs(Math.cos(C*Oi))),r.svg&&(u-=b-(b*q+k*ee),d-=k-(b*Q+k*I))):(R=x[6],Ne=x[7],ce=x[8],he=x[9],fe=x[10],me=x[11],u=x[12],d=x[13],f=x[14],N=ci(R,fe),E=N*Ir,N&&(O=Math.cos(-N),B=Math.sin(-N),z=M*O+ce*B,te=Y*O+he*B,se=R*O+fe*B,ce=M*-B+ce*O,he=Y*-B+he*O,fe=R*-B+fe*O,me=Ne*-B+me*O,M=z,Y=te,R=se),N=ci(-ee,fe),_=N*Ir,N&&(O=Math.cos(-N),B=Math.sin(-N),z=q*O-ce*B,te=Q*O-he*B,se=ee*O-fe*B,me=I*B+me*O,q=z,Q=te,ee=se),N=ci(Q,q),g=N*Ir,N&&(O=Math.cos(N),B=Math.sin(N),z=q*O+Q*B,te=M*O+Y*B,Q=Q*O-q*B,Y=Y*O-M*B,q=z,M=te),E&&Math.abs(E)+Math.abs(g)>359.9&&(E=g=0,_=180-_),m=Ke(Math.sqrt(q*q+Q*Q+ee*ee)),w=Ke(Math.sqrt(Y*Y+R*R)),N=ci(M,Y),C=Math.abs(N)>2e-4?N*Ir:0,v=me?1/(me<0?-me:me):0),r.svg&&(z=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!M_(An(e,We)),z&&e.setAttribute("transform",z))),Math.abs(C)>90&&Math.abs(C)<270&&(s?(m*=-1,C+=g<=0?180:-180,g+=g<=0?180:-180):(w*=-1,C+=C<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=d-((r.yPercent=d&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=f+o,r.scaleX=Ke(m),r.scaleY=Ke(w),r.rotation=Ke(g)+a,r.rotationX=Ke(E)+a,r.rotationY=Ke(_)+a,r.skewX=C+a,r.skewY=S+a,r.transformPerspective=v+o,(r.zOrigin=parseFloat(c.split(" ")[2])||0)&&(i[Sn]=ua(c)),r.xOffset=r.yOffset=0,r.force3D=Rt.force3D,r.renderTransform=r.svg?zC:L_?I_:WC,r.uncache=0,r},ua=function(e){return(e=e.split(" "))[0]+" "+e[1]},Cl=function(e,n,r){var i=ft(n);return Ke(parseFloat(n)+parseFloat(vr(e,"x",r+"px",i)))+i},WC=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,I_(e,n)},Or="0deg",fs="0px",Pr=") ",I_=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,d=r.rotationX,f=r.skewX,m=r.skewY,w=r.scaleX,g=r.scaleY,E=r.transformPerspective,_=r.force3D,C=r.target,S=r.zOrigin,v="",b=_==="auto"&&e&&e!==1||_===!0;if(S&&(d!==Or||u!==Or)){var k=parseFloat(u)*Oi,x=Math.sin(k),N=Math.cos(k),O;k=parseFloat(d)*Oi,O=Math.cos(k),o=Cl(C,o,x*O*-S),a=Cl(C,a,-Math.sin(k)*-S),l=Cl(C,l,N*O*-S+S)}E!==fs&&(v+="perspective("+E+Pr),(i||s)&&(v+="translate("+i+"%, "+s+"%) "),(b||o!==fs||a!==fs||l!==fs)&&(v+=l!==fs||b?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Pr),c!==Or&&(v+="rotate("+c+Pr),u!==Or&&(v+="rotateY("+u+Pr),d!==Or&&(v+="rotateX("+d+Pr),(f!==Or||m!==Or)&&(v+="skew("+f+", "+m+Pr),(w!==1||g!==1)&&(v+="scale("+w+", "+g+Pr),C.style[We]=v||"translate(0, 0)"},zC=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,d=r.scaleX,f=r.scaleY,m=r.target,w=r.xOrigin,g=r.yOrigin,E=r.xOffset,_=r.yOffset,C=r.forceCSS,S=parseFloat(o),v=parseFloat(a),b,k,x,N,O;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Oi,c*=Oi,b=Math.cos(l)*d,k=Math.sin(l)*d,x=Math.sin(l-c)*-f,N=Math.cos(l-c)*f,c&&(u*=Oi,O=Math.tan(c-u),O=Math.sqrt(1+O*O),x*=O,N*=O,u&&(O=Math.tan(u),O=Math.sqrt(1+O*O),b*=O,k*=O)),b=Ke(b),k=Ke(k),x=Ke(x),N=Ke(N)):(b=d,N=f,k=x=0),(S&&!~(o+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(S=vr(m,"x",o,"px"),v=vr(m,"y",a,"px")),(w||g||E||_)&&(S=Ke(S+w-(w*b+g*x)+E),v=Ke(v+g-(w*k+g*N)+_)),(i||s)&&(O=m.getBBox(),S=Ke(S+i/100*O.width),v=Ke(v+s/100*O.height)),O="matrix("+b+","+k+","+x+","+N+","+S+","+v+")",m.setAttribute("transform",O),C&&(m.style[We]=O)},KC=function(e,n,r,i,s){var o=360,a=ot(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?Ir:1),c=l-i,u=i+c+"deg",d,f;return a&&(d=s.split("_")[1],d==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),d==="cw"&&c<0?c=(c+o*eh)%o-~~(c/o)*o:d==="ccw"&&c>0&&(c=(c-o*eh)%o-~~(c/o)*o)),e._pt=f=new kt(e._pt,n,r,i,c,LC),f.e=u,f.u="deg",e._props.push(r),f},oh=function(e,n){for(var r in n)e[r]=n[r];return e},YC=function(e,n,r){var i=oh({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,c,u,d,f,m,w;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),o[We]=n,a=Qs(r,1),Gs(r,We),r.setAttribute("transform",c)):(c=getComputedStyle(r)[We],o[We]=n,a=Qs(r,1),o[We]=c);for(l in Yn)c=i[l],u=a[l],c!==u&&s.indexOf(l)<0&&(m=ft(c),w=ft(u),d=m!==w?vr(r,l,c,w):parseFloat(c),f=parseFloat(u),e._pt=new kt(e._pt,a,l,d,f-d,Ac),e._pt.u=w||0,e._props.push(l));oh(a,i)};At("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});ca[e>1?"border"+t:t]=function(a,l,c,u,d){var f,m;if(arguments.length<4)return f=o.map(function(w){return In(a,w,c)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(u+"").split(" "),m={},o.forEach(function(w,g){return m[w]=f[g]=f[g]||f[(g-1)/2|0]}),a.init(l,m,d)}});var D_={name:"css",register:xc,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,c,u,d,f,m,w,g,E,_,C,S,v,b,k,x,N;qu||xc(),this.styles=this.styles||x_(e),N=this.styles.props,this.tween=r;for(g in n)if(g!=="autoRound"&&(u=n[g],!(Pt[g]&&__(g,n,r,i,e,s)))){if(m=typeof u,w=ca[g],m==="function"&&(u=u.call(r,i,e,s),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=Ys(u)),w)w(this,e,g,u,r)&&(x=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",fr.lastIndex=0,fr.test(c)||(E=ft(c),_=ft(u)),_?E!==_&&(c=vr(e,g,c,_)+_):E&&(u+=E),this.add(a,"setProperty",c,u,i,s,0,0,g),o.push(g),N.push(g,a[g]);else if(m!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(r,i,e,s):l[g],ot(c)&&~c.indexOf("random(")&&(c=Ys(c)),ft(c+"")||(c+=Rt.units[g]||ft(In(e,g))||""),(c+"").charAt(1)==="="&&(c=In(e,g))):c=In(e,g),f=parseFloat(c),C=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),C&&(u=u.substr(2)),d=parseFloat(u),g in Fn&&(g==="autoAlpha"&&(f===1&&In(e,"visibility")==="hidden"&&d&&(f=0),N.push("visibility",a.visibility),or(this,a,"visibility",f?"inherit":"hidden",d?"inherit":"hidden",!d)),g!=="scale"&&g!=="transform"&&(g=Fn[g],~g.indexOf(",")&&(g=g.split(",")[0]))),S=g in Yn,S){if(this.styles.save(g),v||(b=e._gsap,b.renderTransform&&!n.parseTransform||Qs(e,n.parseTransform),k=n.smoothOrigin!==!1&&b.smooth,v=this._pt=new kt(this._pt,a,We,0,1,b.renderTransform,b,0,-1),v.dep=1),g==="scale")this._pt=new kt(this._pt,b,"scaleY",b.scaleY,(C?Li(b.scaleY,C+d):d)-b.scaleY||0,Ac),this._pt.u=0,o.push("scaleY",g),g+="X";else if(g==="transformOrigin"){N.push(Sn,a[Sn]),u=UC(u),b.svg?Lc(e,u,0,k,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&or(this,b,"zOrigin",b.zOrigin,_),or(this,a,g,ua(c),ua(u)));continue}else if(g==="svgOrigin"){Lc(e,u,1,k,0,this);continue}else if(g in P_){KC(this,b,g,f,C?Li(f,C+u):u);continue}else if(g==="smoothOrigin"){or(this,b,"smooth",b.smooth,u);continue}else if(g==="force3D"){b[g]=u;continue}else if(g==="transform"){YC(this,u,e);continue}}else g in a||(g=Yi(g)||g);if(S||(d||d===0)&&(f||f===0)&&!xC.test(u)&&g in a)E=(c+"").substr((f+"").length),d||(d=0),_=ft(u)||(g in Rt.units?Rt.units[g]:E),E!==_&&(f=vr(e,g,c,_)),this._pt=new kt(this._pt,S?b:a,g,f,(C?Li(f,C+d):d)-f,!S&&(_==="px"||g==="zIndex")&&n.autoRound!==!1?OC:Ac),this._pt.u=_||0,E!==_&&_!=="%"&&(this._pt.b=c,this._pt.r=NC);else if(g in a)BC.call(this,e,g,c,C?C+u:u);else if(g in e)this.add(e,g,c||e[g],C?C+u:u,i,s);else{Vu(g,u);continue}S||N.push(g,a[g]),o.push(g)}}x&&T_(this)},render:function(e,n){if(n.tween._time||!Gu())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:In,aliases:Fn,getSetter:function(e,n,r){var i=Fn[n];return i&&i.indexOf(",")<0&&(n=i),n in Yn&&n!==Sn&&(e._gsap.x||In(e,"x"))?r&&Zd===r?n==="scale"?DC:IC:(Zd=r||{})&&(n==="scale"?$C:RC):e.style&&!Ru(e.style[n])?PC:~n.indexOf("-")?MC:Ku(e,n)},core:{_removeProperty:Gs,_getMatrix:Qu}};Ut.utils.checkPrefix=Yi;Ut.core.getStyleSaver=x_;(function(t,e,n,r){var i=At(t+","+e+","+n,function(s){Yn[s]=1});At(e,function(s){Rt.units[s]="deg",P_[s]=1}),Fn[i[13]]=t+","+e,At(r,function(s){var o=s.split(":");Fn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Rt.units[t]="px"});Ut.registerPlugin(D_);var qC=Ut.registerPlugin(D_)||Ut;qC.core.Tween;const GC=t=>t.replace(/[^.]/g,"").length,XC={name:"number",props:{from:{type:[Number,String],default:0},to:{type:[Number,String],required:!0,default:0},format:{type:Function,default:t=>parseInt(t)},duration:{type:Number,default:1},easing:{type:String,default:"Power1.easeOut"},delay:{type:Number,default:0},tag:{type:String,default:"span"},animationPaused:Boolean},data(){return{fromProp:this.from}},computed:{tweenedNumber(){return this.format(this.fromProp)}},methods:{tween(t){const e=this,n=Xe.to(e.$data,e.duration,{fromProp:t,paused:e.animationPaused,ease:e.easeCheck(),onStart:()=>e.$emit("start"),onComplete:()=>e.$emit("complete"),onUpdate:()=>e.$emit("update"),delay:e.delay});e.tween.tLite=n},play(){this.tween.tLite.play()},pause(){this.tween.tLite.pause()},restart(){this.tween.tLite.restart()},easeCheck(){const t=this;if(GC(t.easing)!==1)throw new Error('Invalid ease type. (eg. easing="Power1.easeOut")');return t.easing}},watch:{to(t){this.tween(t)}},mounted(){this.tween(this.to)}};function QC(t,e,n,r,i,s){return P(),Te(Nu(n.tag),null,{default:et(()=>[Le(F(s.tweenedNumber),1)]),_:1})}const JC=we(XC,[["render",QC]]),$_={install:function(t){t.component("number",JC)}};typeof window<"u"&&window.Vue&&window.Vue.use($_);/*! * vue-router v4.1.4 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const bi=typeof window<"u";function JC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Sl(t,e){const n={};for(const r in e){const i=e[r];n[r]=hn(i)?i.map(t):t(i)}return n}const Os=()=>{},hn=Array.isArray,ZC=/\/$/,eS=t=>t.replace(ZC,"");function Al(t,e,n="/"){let r,i={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),i=t(s)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=iS(r!=null?r:e,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function tS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ah(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function nS(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&qi(e.matched[r],n.matched[i])&&$_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function qi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function $_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!rS(t[n],e[n]))return!1;return!0}function rS(t,e){return hn(t)?lh(t,e):hn(e)?lh(e,t):t===e}function lh(t,e){return hn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function iS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i=n.length-1,s,o;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Js;(function(t){t.pop="pop",t.push="push"})(Js||(Js={}));var Ps;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ps||(Ps={}));function sS(t){if(!t)if(bi){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),eS(t)}const oS=/^[^#]+#/;function aS(t,e){return t.replace(oS,"#")+e}function lS(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Va=()=>({left:window.pageXOffset,top:window.pageYOffset});function cS(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=lS(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function ch(t,e){return(history.state?history.state.position-e:-1)+t}const Nc=new Map;function uS(t,e){Nc.set(t,e)}function fS(t){const e=Nc.get(t);return Nc.delete(t),e}let dS=()=>location.protocol+"//"+location.host;function R_(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let a=i.includes(t.slice(s))?t.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),ah(l,"")}return ah(n,t)+r+i}function hS(t,e,n,r){let i=[],s=[],o=null;const a=({state:f})=>{const m=R_(t,location),w=n.value,g=e.value;let E=0;if(f){if(n.value=m,e.value=f,o&&o===w){o=null;return}E=g?f.position-g.position:0}else r(m);i.forEach(_=>{_(n.value,w,{delta:E,type:Js.pop,direction:E?E>0?Ps.forward:Ps.back:Ps.unknown})})};function l(){o=n.value}function c(f){i.push(f);const m=()=>{const w=i.indexOf(f);w>-1&&i.splice(w,1)};return s.push(m),m}function u(){const{history:f}=window;!f.state||f.replaceState(Ie({},f.state,{scroll:Va()}),"")}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function uh(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Va():null}}function mS(t){const{history:e,location:n}=window,r={value:R_(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:dS()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(m){console.error(m),n[u?"replace":"assign"](f)}}function o(l,c){const u=Ie({},e.state,uh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},i.value,e.state,{forward:l,scroll:Va()});s(u.current,u,!0);const d=Ie({},uh(r.value,l,null),{position:u.position+1},c);s(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function pS(t){t=sS(t);const e=mS(t),n=hS(t,e.state,e.location,e.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ie({location:"",base:t,go:r,createHref:aS.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function gS(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),pS(t)}function _S(t){return typeof t=="string"||t&&typeof t=="object"}function F_(t){return typeof t=="string"||typeof t=="symbol"}const Jn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V_=Symbol("");var fh;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(fh||(fh={}));function Gi(t,e){return Ie(new Error,{type:t,[V_]:!0},e)}function On(t,e){return t instanceof Error&&V_ in t&&(e==null||!!(t.type&e))}const dh="[^/]+?",vS={sensitive:!1,strict:!1,start:!0,end:!0},bS=/[.+*?^${}()[\]/\\]/g;function yS(t,e){const n=Ie({},vS,e),r=[];let i=n.start?"^":"";const s=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===40+40?1:-1:0}function wS(t,e){let n=0;const r=t.score,i=e.score;for(;n0&&e[e.length-1]<0}const TS={type:0,value:""},CS=/[a-zA-Z0-9_]/;function SS(t){if(!t)return[[]];if(t==="/")return[[TS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,c="",u="";function d(){!c||(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(C)}:Os}function o(u){if(F_(u)){const d=r.get(u);d&&(r.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!H_(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!ph(u)&&r.set(u.record.name,u)}function c(u,d){let f,m={},w,g;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Gi(1,{location:u});g=f.record.name,m=Ie(mh(d.params,f.keys.filter(C=>!C.optional).map(C=>C.name)),u.params&&mh(u.params,f.keys.map(C=>C.name))),w=f.stringify(m)}else if("path"in u)w=u.path,f=n.find(C=>C.re.test(w)),f&&(m=f.parse(w),g=f.record.name);else{if(f=d.name?r.get(d.name):n.find(C=>C.re.test(d.path)),!f)throw Gi(1,{location:u,currentLocation:d});g=f.record.name,m=Ie({},d.params,u.params),w=f.stringify(m)}const E=[];let _=f;for(;_;)E.unshift(_.record),_=_.parent;return{name:g,path:w,params:m,matched:E,meta:NS(E)}}return t.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function mh(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function xS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:LS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function LS(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function ph(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function NS(t){return t.reduce((e,n)=>Ie(e,n.meta),{})}function gh(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function H_(t,e){return e.children.some(n=>n===t||H_(t,n))}const B_=/#/g,OS=/&/g,PS=/\//g,MS=/=/g,IS=/\?/g,U_=/\+/g,DS=/%5B/g,$S=/%5D/g,j_=/%5E/g,RS=/%60/g,W_=/%7B/g,FS=/%7C/g,z_=/%7D/g,VS=/%20/g;function Ju(t){return encodeURI(""+t).replace(FS,"|").replace(DS,"[").replace($S,"]")}function HS(t){return Ju(t).replace(W_,"{").replace(z_,"}").replace(j_,"^")}function Oc(t){return Ju(t).replace(U_,"%2B").replace(VS,"+").replace(B_,"%23").replace(OS,"%26").replace(RS,"`").replace(W_,"{").replace(z_,"}").replace(j_,"^")}function BS(t){return Oc(t).replace(MS,"%3D")}function US(t){return Ju(t).replace(B_,"%23").replace(IS,"%3F")}function jS(t){return t==null?"":US(t).replace(PS,"%2F")}function fa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function WS(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;is&&Oc(s)):[r&&Oc(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function zS(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=hn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const KS=Symbol(""),vh=Symbol(""),Zu=Symbol(""),K_=Symbol(""),Pc=Symbol("");function ds(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function nr(t,e,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(Gi(4,{from:n,to:e})):d instanceof Error?a(d):_S(d)?a(Gi(2,{from:e,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),o())},c=t.call(r&&r.instances[i],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function kl(t,e,n,r){const i=[];for(const s of t)for(const o in s.components){let a=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(YS(a)){const c=(a.__vccOpts||a)[e];c&&i.push(nr(c,n,r,s,o))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const u=JC(c)?c.default:c;s.components[o]=u;const f=(u.__vccOpts||u)[e];return f&&nr(f,n,r,s,o)()}))}}return i}function YS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function bh(t){const e=Un(Zu),n=Un(K_),r=je(()=>e.resolve(xi(t.to))),i=je(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(qi.bind(null,u));if(f>-1)return f;const m=yh(l[c-2]);return c>1&&yh(u)===m&&d[d.length-1].path!==m?d.findIndex(qi.bind(null,l[c-2])):f}),s=je(()=>i.value>-1&&QS(n.params,r.value.params)),o=je(()=>i.value>-1&&i.value===n.matched.length-1&&$_(n.params,r.value.params));function a(l={}){return XS(l)?e[xi(t.replace)?"replace":"push"](xi(t.to)).catch(Os):Promise.resolve()}return{route:r,href:je(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const qS=ku({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:bh,setup(t,{slots:e}){const n=Zr(bh(t)),{options:r}=Un(Zu),i=je(()=>({[Eh(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Eh(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&e.default(n);return t.custom?s:Cr("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),GS=qS;function XS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function QS(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!hn(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function yh(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Eh=(t,e,n)=>t!=null?t:e!=null?e:n,JS=ku({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Un(Pc),i=je(()=>t.route||r.value),s=Un(vh,0),o=je(()=>{let c=xi(s);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=je(()=>i.value.matched[o.value]);Io(vh,je(()=>o.value+1)),Io(KS,a),Io(Pc,i);const l=cn();return cr(()=>[l.value,a.value,t.name],([c,u,d],[f,m,w])=>{u&&(u.instances[d]=c,m&&m!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!qi(u,m)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return wh(n.default,{Component:f,route:c});const m=d.props[u],w=m?m===!0?c.params:typeof m=="function"?m(c):m:null,E=Cr(f,Ie({},w,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return wh(n.default,{Component:E,route:c})||E}}});function wh(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const ZS=JS;function eA(t){const e=kS(t.routes,t),n=t.parseQuery||WS,r=t.stringifyQuery||_h,i=t.history,s=ds(),o=ds(),a=ds(),l=Qp(Jn);let c=Jn;bi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sl.bind(null,R=>""+R),d=Sl.bind(null,jS),f=Sl.bind(null,fa);function m(R,X){let U,Z;return F_(R)?(U=e.getRecordMatcher(R),Z=X):Z=R,e.addRoute(Z,U)}function w(R){const X=e.getRecordMatcher(R);X&&e.removeRoute(X)}function g(){return e.getRoutes().map(R=>R.record)}function E(R){return!!e.getRecordMatcher(R)}function _(R,X){if(X=Ie({},X||l.value),typeof R=="string"){const oe=Al(n,R,X.path),h=e.resolve({path:oe.path},X),p=i.createHref(oe.fullPath);return Ie(oe,h,{params:f(h.params),hash:fa(oe.hash),redirectedFrom:void 0,href:p})}let U;if("path"in R)U=Ie({},R,{path:Al(n,R.path,X.path).path});else{const oe=Ie({},R.params);for(const h in oe)oe[h]==null&&delete oe[h];U=Ie({},R,{params:d(R.params)}),X.params=d(X.params)}const Z=e.resolve(U,X),pe=R.hash||"";Z.params=u(f(Z.params));const ge=tS(r,Ie({},R,{hash:HS(pe),path:Z.path})),le=i.createHref(ge);return Ie({fullPath:ge,hash:pe,query:r===_h?zS(R.query):R.query||{}},Z,{redirectedFrom:void 0,href:le})}function C(R){return typeof R=="string"?Al(n,R,l.value.path):Ie({},R)}function S(R,X){if(c!==R)return Gi(8,{from:X,to:R})}function v(R){return x(R)}function b(R){return v(Ie(C(R),{replace:!0}))}function k(R){const X=R.matched[R.matched.length-1];if(X&&X.redirect){const{redirect:U}=X;let Z=typeof U=="function"?U(R):U;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),Ie({query:R.query,hash:R.hash,params:"path"in Z?{}:R.params},Z)}}function x(R,X){const U=c=_(R),Z=l.value,pe=R.state,ge=R.force,le=R.replace===!0,oe=k(U);if(oe)return x(Ie(C(oe),{state:typeof oe=="object"?Ie({},pe,oe.state):pe,force:ge,replace:le}),X||U);const h=U;h.redirectedFrom=X;let p;return!ge&&nS(r,Z,U)&&(p=Gi(16,{to:h,from:Z}),ce(Z,Z,!0,!1)),(p?Promise.resolve(p):O(h,Z)).catch(T=>On(T)?On(T,2)?T:se(T):z(T,h,Z)).then(T=>{if(T){if(On(T,2))return x(Ie({replace:le},C(T.to),{state:typeof T.to=="object"?Ie({},pe,T.to.state):pe,force:ge}),X||h)}else T=q(h,Z,!0,le,pe);return B(h,Z,T),T})}function N(R,X){const U=S(R,X);return U?Promise.reject(U):Promise.resolve()}function O(R,X){let U;const[Z,pe,ge]=tA(R,X);U=kl(Z.reverse(),"beforeRouteLeave",R,X);for(const oe of Z)oe.leaveGuards.forEach(h=>{U.push(nr(h,R,X))});const le=N.bind(null,R,X);return U.push(le),ui(U).then(()=>{U=[];for(const oe of s.list())U.push(nr(oe,R,X));return U.push(le),ui(U)}).then(()=>{U=kl(pe,"beforeRouteUpdate",R,X);for(const oe of pe)oe.updateGuards.forEach(h=>{U.push(nr(h,R,X))});return U.push(le),ui(U)}).then(()=>{U=[];for(const oe of R.matched)if(oe.beforeEnter&&!X.matched.includes(oe))if(hn(oe.beforeEnter))for(const h of oe.beforeEnter)U.push(nr(h,R,X));else U.push(nr(oe.beforeEnter,R,X));return U.push(le),ui(U)}).then(()=>(R.matched.forEach(oe=>oe.enterCallbacks={}),U=kl(ge,"beforeRouteEnter",R,X),U.push(le),ui(U))).then(()=>{U=[];for(const oe of o.list())U.push(nr(oe,R,X));return U.push(le),ui(U)}).catch(oe=>On(oe,8)?oe:Promise.reject(oe))}function B(R,X,U){for(const Z of a.list())Z(R,X,U)}function q(R,X,U,Z,pe){const ge=S(R,X);if(ge)return ge;const le=X===Jn,oe=bi?history.state:{};U&&(Z||le?i.replace(R.fullPath,Ie({scroll:le&&oe&&oe.scroll},pe)):i.push(R.fullPath,pe)),l.value=R,ce(R,X,U,le),se()}let Q;function ee(){Q||(Q=i.listen((R,X,U)=>{if(!me.listening)return;const Z=_(R),pe=k(Z);if(pe){x(Ie(pe,{replace:!0}),Z).catch(Os);return}c=Z;const ge=l.value;bi&&uS(ch(ge.fullPath,U.delta),Va()),O(Z,ge).catch(le=>On(le,12)?le:On(le,2)?(x(le.to,Z).then(oe=>{On(oe,20)&&!U.delta&&U.type===Js.pop&&i.go(-1,!1)}).catch(Os),Promise.reject()):(U.delta&&i.go(-U.delta,!1),z(le,Z,ge))).then(le=>{le=le||q(Z,ge,!1),le&&(U.delta&&!On(le,8)?i.go(-U.delta,!1):U.type===Js.pop&&On(le,20)&&i.go(-1,!1)),B(Z,ge,le)}).catch(Os)}))}let I=ds(),M=ds(),Y;function z(R,X,U){se(R);const Z=M.list();return Z.length?Z.forEach(pe=>pe(R,X,U)):console.error(R),Promise.reject(R)}function te(){return Y&&l.value!==Jn?Promise.resolve():new Promise((R,X)=>{I.add([R,X])})}function se(R){return Y||(Y=!R,ee(),I.list().forEach(([X,U])=>R?U(R):X()),I.reset()),R}function ce(R,X,U,Z){const{scrollBehavior:pe}=t;if(!bi||!pe)return Promise.resolve();const ge=!U&&fS(ch(R.fullPath,0))||(Z||!U)&&history.state&&history.state.scroll||null;return tg().then(()=>pe(R,X,ge)).then(le=>le&&cS(le)).catch(le=>z(le,R,X))}const he=R=>i.go(R);let fe;const Ne=new Set,me={currentRoute:l,listening:!0,addRoute:m,removeRoute:w,hasRoute:E,getRoutes:g,resolve:_,options:t,push:v,replace:b,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:M.add,isReady:te,install(R){const X=this;R.component("RouterLink",GS),R.component("RouterView",ZS),R.config.globalProperties.$router=X,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>xi(l)}),bi&&!fe&&l.value===Jn&&(fe=!0,v(i.location).catch(pe=>{}));const U={};for(const pe in Jn)U[pe]=je(()=>l.value[pe]);R.provide(Zu,X),R.provide(K_,Zr(U)),R.provide(Pc,l);const Z=R.unmount;Ne.add(R),R.unmount=function(){Ne.delete(R),Ne.size<1&&(c=Jn,Q&&Q(),Q=null,l.value=Jn,fe=!1,Y=!1),Z()}}};return me}function ui(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function tA(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;oqi(c,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>qi(c,l))||i.push(l))}return[n,r,i]}if(!document.querySelector("style[data-shopicon]")){const t=document.createElement("style");t.setAttribute("data-shopicon",!0),t.innerHTML=` + */const bi=typeof window<"u";function ZC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Sl(t,e){const n={};for(const r in e){const i=e[r];n[r]=hn(i)?i.map(t):t(i)}return n}const Os=()=>{},hn=Array.isArray,eS=/\/$/,tS=t=>t.replace(eS,"");function Al(t,e,n="/"){let r,i={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),i=t(s)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=sS(r!=null?r:e,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function nS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ah(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function rS(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&qi(e.matched[r],n.matched[i])&&R_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function qi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function R_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!iS(t[n],e[n]))return!1;return!0}function iS(t,e){return hn(t)?lh(t,e):hn(e)?lh(e,t):t===e}function lh(t,e){return hn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function sS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i=n.length-1,s,o;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Js;(function(t){t.pop="pop",t.push="push"})(Js||(Js={}));var Ps;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ps||(Ps={}));function oS(t){if(!t)if(bi){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),tS(t)}const aS=/^[^#]+#/;function lS(t,e){return t.replace(aS,"#")+e}function cS(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Va=()=>({left:window.pageXOffset,top:window.pageYOffset});function uS(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=cS(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function ch(t,e){return(history.state?history.state.position-e:-1)+t}const Nc=new Map;function fS(t,e){Nc.set(t,e)}function dS(t){const e=Nc.get(t);return Nc.delete(t),e}let hS=()=>location.protocol+"//"+location.host;function F_(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let a=i.includes(t.slice(s))?t.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),ah(l,"")}return ah(n,t)+r+i}function mS(t,e,n,r){let i=[],s=[],o=null;const a=({state:f})=>{const m=F_(t,location),w=n.value,g=e.value;let E=0;if(f){if(n.value=m,e.value=f,o&&o===w){o=null;return}E=g?f.position-g.position:0}else r(m);i.forEach(_=>{_(n.value,w,{delta:E,type:Js.pop,direction:E?E>0?Ps.forward:Ps.back:Ps.unknown})})};function l(){o=n.value}function c(f){i.push(f);const m=()=>{const w=i.indexOf(f);w>-1&&i.splice(w,1)};return s.push(m),m}function u(){const{history:f}=window;!f.state||f.replaceState(Ie({},f.state,{scroll:Va()}),"")}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function uh(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?Va():null}}function pS(t){const{history:e,location:n}=window,r={value:F_(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:hS()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(m){console.error(m),n[u?"replace":"assign"](f)}}function o(l,c){const u=Ie({},e.state,uh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},i.value,e.state,{forward:l,scroll:Va()});s(u.current,u,!0);const d=Ie({},uh(r.value,l,null),{position:u.position+1},c);s(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function gS(t){t=oS(t);const e=pS(t),n=mS(t,e.state,e.location,e.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ie({location:"",base:t,go:r,createHref:lS.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function _S(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),gS(t)}function vS(t){return typeof t=="string"||t&&typeof t=="object"}function V_(t){return typeof t=="string"||typeof t=="symbol"}const Jn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},H_=Symbol("");var fh;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(fh||(fh={}));function Gi(t,e){return Ie(new Error,{type:t,[H_]:!0},e)}function On(t,e){return t instanceof Error&&H_ in t&&(e==null||!!(t.type&e))}const dh="[^/]+?",bS={sensitive:!1,strict:!1,start:!0,end:!0},yS=/[.+*?^${}()[\]/\\]/g;function ES(t,e){const n=Ie({},bS,e),r=[];let i=n.start?"^":"";const s=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===40+40?1:-1:0}function TS(t,e){let n=0;const r=t.score,i=e.score;for(;n0&&e[e.length-1]<0}const CS={type:0,value:""},SS=/[a-zA-Z0-9_]/;function AS(t){if(!t)return[[]];if(t==="/")return[[CS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,c="",u="";function d(){!c||(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(C)}:Os}function o(u){if(V_(u)){const d=r.get(u);d&&(r.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!B_(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!ph(u)&&r.set(u.record.name,u)}function c(u,d){let f,m={},w,g;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Gi(1,{location:u});g=f.record.name,m=Ie(mh(d.params,f.keys.filter(C=>!C.optional).map(C=>C.name)),u.params&&mh(u.params,f.keys.map(C=>C.name))),w=f.stringify(m)}else if("path"in u)w=u.path,f=n.find(C=>C.re.test(w)),f&&(m=f.parse(w),g=f.record.name);else{if(f=d.name?r.get(d.name):n.find(C=>C.re.test(d.path)),!f)throw Gi(1,{location:u,currentLocation:d});g=f.record.name,m=Ie({},d.params,u.params),w=f.stringify(m)}const E=[];let _=f;for(;_;)E.unshift(_.record),_=_.parent;return{name:g,path:w,params:m,matched:E,meta:OS(E)}}return t.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function mh(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function LS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:NS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function NS(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function ph(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function OS(t){return t.reduce((e,n)=>Ie(e,n.meta),{})}function gh(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function B_(t,e){return e.children.some(n=>n===t||B_(t,n))}const U_=/#/g,PS=/&/g,MS=/\//g,IS=/=/g,DS=/\?/g,j_=/\+/g,$S=/%5B/g,RS=/%5D/g,W_=/%5E/g,FS=/%60/g,z_=/%7B/g,VS=/%7C/g,K_=/%7D/g,HS=/%20/g;function Ju(t){return encodeURI(""+t).replace(VS,"|").replace($S,"[").replace(RS,"]")}function BS(t){return Ju(t).replace(z_,"{").replace(K_,"}").replace(W_,"^")}function Oc(t){return Ju(t).replace(j_,"%2B").replace(HS,"+").replace(U_,"%23").replace(PS,"%26").replace(FS,"`").replace(z_,"{").replace(K_,"}").replace(W_,"^")}function US(t){return Oc(t).replace(IS,"%3D")}function jS(t){return Ju(t).replace(U_,"%23").replace(DS,"%3F")}function WS(t){return t==null?"":jS(t).replace(MS,"%2F")}function fa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function zS(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;is&&Oc(s)):[r&&Oc(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function KS(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=hn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const YS=Symbol(""),vh=Symbol(""),Zu=Symbol(""),Y_=Symbol(""),Pc=Symbol("");function ds(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function nr(t,e,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(Gi(4,{from:n,to:e})):d instanceof Error?a(d):vS(d)?a(Gi(2,{from:e,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),o())},c=t.call(r&&r.instances[i],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function kl(t,e,n,r){const i=[];for(const s of t)for(const o in s.components){let a=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(qS(a)){const c=(a.__vccOpts||a)[e];c&&i.push(nr(c,n,r,s,o))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const u=ZC(c)?c.default:c;s.components[o]=u;const f=(u.__vccOpts||u)[e];return f&&nr(f,n,r,s,o)()}))}}return i}function qS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function bh(t){const e=Un(Zu),n=Un(Y_),r=je(()=>e.resolve(xi(t.to))),i=je(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(qi.bind(null,u));if(f>-1)return f;const m=yh(l[c-2]);return c>1&&yh(u)===m&&d[d.length-1].path!==m?d.findIndex(qi.bind(null,l[c-2])):f}),s=je(()=>i.value>-1&&JS(n.params,r.value.params)),o=je(()=>i.value>-1&&i.value===n.matched.length-1&&R_(n.params,r.value.params));function a(l={}){return QS(l)?e[xi(t.replace)?"replace":"push"](xi(t.to)).catch(Os):Promise.resolve()}return{route:r,href:je(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const GS=ku({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:bh,setup(t,{slots:e}){const n=Zr(bh(t)),{options:r}=Un(Zu),i=je(()=>({[Eh(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Eh(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&e.default(n);return t.custom?s:Cr("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),XS=GS;function QS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function JS(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!hn(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function yh(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Eh=(t,e,n)=>t!=null?t:e!=null?e:n,ZS=ku({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Un(Pc),i=je(()=>t.route||r.value),s=Un(vh,0),o=je(()=>{let c=xi(s);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=je(()=>i.value.matched[o.value]);Io(vh,je(()=>o.value+1)),Io(YS,a),Io(Pc,i);const l=cn();return cr(()=>[l.value,a.value,t.name],([c,u,d],[f,m,w])=>{u&&(u.instances[d]=c,m&&m!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!qi(u,m)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return wh(n.default,{Component:f,route:c});const m=d.props[u],w=m?m===!0?c.params:typeof m=="function"?m(c):m:null,E=Cr(f,Ie({},w,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return wh(n.default,{Component:E,route:c})||E}}});function wh(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const eA=ZS;function tA(t){const e=xS(t.routes,t),n=t.parseQuery||zS,r=t.stringifyQuery||_h,i=t.history,s=ds(),o=ds(),a=ds(),l=Jp(Jn);let c=Jn;bi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sl.bind(null,R=>""+R),d=Sl.bind(null,WS),f=Sl.bind(null,fa);function m(R,X){let U,Z;return V_(R)?(U=e.getRecordMatcher(R),Z=X):Z=R,e.addRoute(Z,U)}function w(R){const X=e.getRecordMatcher(R);X&&e.removeRoute(X)}function g(){return e.getRoutes().map(R=>R.record)}function E(R){return!!e.getRecordMatcher(R)}function _(R,X){if(X=Ie({},X||l.value),typeof R=="string"){const oe=Al(n,R,X.path),h=e.resolve({path:oe.path},X),p=i.createHref(oe.fullPath);return Ie(oe,h,{params:f(h.params),hash:fa(oe.hash),redirectedFrom:void 0,href:p})}let U;if("path"in R)U=Ie({},R,{path:Al(n,R.path,X.path).path});else{const oe=Ie({},R.params);for(const h in oe)oe[h]==null&&delete oe[h];U=Ie({},R,{params:d(R.params)}),X.params=d(X.params)}const Z=e.resolve(U,X),pe=R.hash||"";Z.params=u(f(Z.params));const ge=nS(r,Ie({},R,{hash:BS(pe),path:Z.path})),le=i.createHref(ge);return Ie({fullPath:ge,hash:pe,query:r===_h?KS(R.query):R.query||{}},Z,{redirectedFrom:void 0,href:le})}function C(R){return typeof R=="string"?Al(n,R,l.value.path):Ie({},R)}function S(R,X){if(c!==R)return Gi(8,{from:X,to:R})}function v(R){return x(R)}function b(R){return v(Ie(C(R),{replace:!0}))}function k(R){const X=R.matched[R.matched.length-1];if(X&&X.redirect){const{redirect:U}=X;let Z=typeof U=="function"?U(R):U;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=C(Z):{path:Z},Z.params={}),Ie({query:R.query,hash:R.hash,params:"path"in Z?{}:R.params},Z)}}function x(R,X){const U=c=_(R),Z=l.value,pe=R.state,ge=R.force,le=R.replace===!0,oe=k(U);if(oe)return x(Ie(C(oe),{state:typeof oe=="object"?Ie({},pe,oe.state):pe,force:ge,replace:le}),X||U);const h=U;h.redirectedFrom=X;let p;return!ge&&rS(r,Z,U)&&(p=Gi(16,{to:h,from:Z}),ce(Z,Z,!0,!1)),(p?Promise.resolve(p):O(h,Z)).catch(T=>On(T)?On(T,2)?T:se(T):z(T,h,Z)).then(T=>{if(T){if(On(T,2))return x(Ie({replace:le},C(T.to),{state:typeof T.to=="object"?Ie({},pe,T.to.state):pe,force:ge}),X||h)}else T=q(h,Z,!0,le,pe);return B(h,Z,T),T})}function N(R,X){const U=S(R,X);return U?Promise.reject(U):Promise.resolve()}function O(R,X){let U;const[Z,pe,ge]=nA(R,X);U=kl(Z.reverse(),"beforeRouteLeave",R,X);for(const oe of Z)oe.leaveGuards.forEach(h=>{U.push(nr(h,R,X))});const le=N.bind(null,R,X);return U.push(le),ui(U).then(()=>{U=[];for(const oe of s.list())U.push(nr(oe,R,X));return U.push(le),ui(U)}).then(()=>{U=kl(pe,"beforeRouteUpdate",R,X);for(const oe of pe)oe.updateGuards.forEach(h=>{U.push(nr(h,R,X))});return U.push(le),ui(U)}).then(()=>{U=[];for(const oe of R.matched)if(oe.beforeEnter&&!X.matched.includes(oe))if(hn(oe.beforeEnter))for(const h of oe.beforeEnter)U.push(nr(h,R,X));else U.push(nr(oe.beforeEnter,R,X));return U.push(le),ui(U)}).then(()=>(R.matched.forEach(oe=>oe.enterCallbacks={}),U=kl(ge,"beforeRouteEnter",R,X),U.push(le),ui(U))).then(()=>{U=[];for(const oe of o.list())U.push(nr(oe,R,X));return U.push(le),ui(U)}).catch(oe=>On(oe,8)?oe:Promise.reject(oe))}function B(R,X,U){for(const Z of a.list())Z(R,X,U)}function q(R,X,U,Z,pe){const ge=S(R,X);if(ge)return ge;const le=X===Jn,oe=bi?history.state:{};U&&(Z||le?i.replace(R.fullPath,Ie({scroll:le&&oe&&oe.scroll},pe)):i.push(R.fullPath,pe)),l.value=R,ce(R,X,U,le),se()}let Q;function ee(){Q||(Q=i.listen((R,X,U)=>{if(!me.listening)return;const Z=_(R),pe=k(Z);if(pe){x(Ie(pe,{replace:!0}),Z).catch(Os);return}c=Z;const ge=l.value;bi&&fS(ch(ge.fullPath,U.delta),Va()),O(Z,ge).catch(le=>On(le,12)?le:On(le,2)?(x(le.to,Z).then(oe=>{On(oe,20)&&!U.delta&&U.type===Js.pop&&i.go(-1,!1)}).catch(Os),Promise.reject()):(U.delta&&i.go(-U.delta,!1),z(le,Z,ge))).then(le=>{le=le||q(Z,ge,!1),le&&(U.delta&&!On(le,8)?i.go(-U.delta,!1):U.type===Js.pop&&On(le,20)&&i.go(-1,!1)),B(Z,ge,le)}).catch(Os)}))}let I=ds(),M=ds(),Y;function z(R,X,U){se(R);const Z=M.list();return Z.length?Z.forEach(pe=>pe(R,X,U)):console.error(R),Promise.reject(R)}function te(){return Y&&l.value!==Jn?Promise.resolve():new Promise((R,X)=>{I.add([R,X])})}function se(R){return Y||(Y=!R,ee(),I.list().forEach(([X,U])=>R?U(R):X()),I.reset()),R}function ce(R,X,U,Z){const{scrollBehavior:pe}=t;if(!bi||!pe)return Promise.resolve();const ge=!U&&dS(ch(R.fullPath,0))||(Z||!U)&&history.state&&history.state.scroll||null;return ng().then(()=>pe(R,X,ge)).then(le=>le&&uS(le)).catch(le=>z(le,R,X))}const he=R=>i.go(R);let fe;const Ne=new Set,me={currentRoute:l,listening:!0,addRoute:m,removeRoute:w,hasRoute:E,getRoutes:g,resolve:_,options:t,push:v,replace:b,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:M.add,isReady:te,install(R){const X=this;R.component("RouterLink",XS),R.component("RouterView",eA),R.config.globalProperties.$router=X,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>xi(l)}),bi&&!fe&&l.value===Jn&&(fe=!0,v(i.location).catch(pe=>{}));const U={};for(const pe in Jn)U[pe]=je(()=>l.value[pe]);R.provide(Zu,X),R.provide(Y_,Zr(U)),R.provide(Pc,l);const Z=R.unmount;Ne.add(R),R.unmount=function(){Ne.delete(R),Ne.size<1&&(c=Jn,Q&&Q(),Q=null,l.value=Jn,fe=!1,Y=!1),Z()}}};return me}function ui(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function nA(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;oqi(c,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>qi(c,l))||i.push(l))}return[n,r,i]}if(!document.querySelector("style[data-shopicon]")){const t=document.createElement("style");t.setAttribute("data-shopicon",!0),t.innerHTML=` [data-shopicon] { display: block; width: 24px; aspect-ratio: 1; } [data-shopicon][size=m] { width: 32px; } [data-shopicon][size=l] { width: 48px; } @@ -38,33 +38,33 @@ var Hv=Object.defineProperty;var Bv=(t,e,n)=>e in t?Hv(t,e,{enumerable:!0,config [data-shopicon] path:not([fill]), [data-shopicon] polygon:not([fill]), [data-shopicon] rect:not([fill]) { fill: currentColor; } - `,document.head.appendChild(t)}var nA='';class rA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=nA}}window.customElements.define("shopicon-regular-arrowup",rA);var iA='';class sA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=iA}}window.customElements.define("shopicon-regular-menu",sA);var oA='';class aA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=oA}}window.customElements.define("shopicon-regular-newtab",aA);var Y_={exports:{}},ef={exports:{}},q_=function(e,n){return function(){for(var i=new Array(arguments.length),s=0;s"u"}function cA(t){return t!==null&&!da(t)&&t.constructor!==null&&!da(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var G_=ti("ArrayBuffer");function uA(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&G_(t.buffer),e}function fA(t){return typeof t=="string"}function dA(t){return typeof t=="number"}function X_(t){return t!==null&&typeof t=="object"}function Uo(t){if(nf(t)!=="object")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}var hA=ti("Date"),mA=ti("File"),pA=ti("Blob"),gA=ti("FileList");function sf(t){return tf.call(t)==="[object Function]"}function _A(t){return X_(t)&&sf(t.pipe)}function vA(t){var e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||tf.call(t)===e||sf(t.toString)&&t.toString()===e)}var bA=ti("URLSearchParams");function yA(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function EA(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function of(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),rf(t))for(var n=0,r=t.length;n0;)s=r[i],o[s]||(e[s]=t[s],o[s]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e}function AA(t,e,n){t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return r!==-1&&r===n}function kA(t){if(!t)return null;var e=t.length;if(da(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n}var xA=function(t){return function(e){return t&&e instanceof t}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ut={isArray:rf,isArrayBuffer:G_,isBuffer:cA,isFormData:vA,isArrayBufferView:uA,isString:fA,isNumber:dA,isObject:X_,isPlainObject:Uo,isUndefined:da,isDate:hA,isFile:mA,isBlob:pA,isFunction:sf,isStream:_A,isURLSearchParams:bA,isStandardBrowserEnv:EA,forEach:of,merge:Mc,extend:wA,trim:yA,stripBOM:TA,inherits:CA,toFlatObject:SA,kindOf:nf,kindOfTest:ti,endsWith:AA,toArray:kA,isTypedArray:xA,isFileList:gA},fi=ut;function Th(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Q_=function(e,n,r){if(!n)return e;var i;if(r)i=r(n);else if(fi.isURLSearchParams(n))i=n.toString();else{var s=[];fi.forEach(n,function(l,c){l===null||typeof l>"u"||(fi.isArray(l)?c=c+"[]":l=[l],fi.forEach(l,function(d){fi.isDate(d)?d=d.toISOString():fi.isObject(d)&&(d=JSON.stringify(d)),s.push(Th(c)+"="+Th(d))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},LA=ut;function Ha(){this.handlers=[]}Ha.prototype.use=function(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Ha.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Ha.prototype.forEach=function(e){LA.forEach(this.handlers,function(r){r!==null&&e(r)})};var NA=Ha,OA=ut,PA=function(e,n){OA.forEach(e,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=i,delete e[s])})},J_=ut;function Xi(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}J_.inherits(Xi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z_=Xi.prototype,ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){ev[t]={value:t}});Object.defineProperties(Xi,ev);Object.defineProperty(Z_,"isAxiosError",{value:!0});Xi.from=function(t,e,n,r,i,s){var o=Object.create(Z_);return J_.toFlatObject(t,o,function(l){return l!==Error.prototype}),Xi.call(o,t.message,e,n,r,i),o.name=t.name,s&&Object.assign(o,s),o};var os=Xi,tv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on=ut;function MA(t,e){e=e||new FormData;var n=[];function r(s){return s===null?"":on.isDate(s)?s.toISOString():on.isArrayBuffer(s)||on.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function i(s,o){if(on.isPlainObject(s)||on.isArray(s)){if(n.indexOf(s)!==-1)throw Error("Circular reference detected in "+o);n.push(s),on.forEach(s,function(l,c){if(!on.isUndefined(l)){var u=o?o+"."+c:c,d;if(l&&!o&&typeof l=="object"){if(on.endsWith(c,"{}"))l=JSON.stringify(l);else if(on.endsWith(c,"[]")&&(d=on.toArray(l))){d.forEach(function(f){!on.isUndefined(f)&&e.append(u,r(f))});return}}i(l,u)}}),n.pop()}else e.append(o,r(s))}return i(t),e}var nv=MA,xl,Ch;function IA(){if(Ch)return xl;Ch=1;var t=os;return xl=function(n,r,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?n(i):r(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},xl}var Ll,Sh;function DA(){if(Sh)return Ll;Sh=1;var t=ut;return Ll=t.isStandardBrowserEnv()?function(){return{write:function(r,i,s,o,a,l){var c=[];c.push(r+"="+encodeURIComponent(i)),t.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),t.isString(o)&&c.push("path="+o),t.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ll}var $A=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},RA=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},FA=$A,VA=RA,rv=function(e,n){return e&&!FA(n)?VA(e,n):n},Nl,Ah;function HA(){if(Ah)return Nl;Ah=1;var t=ut,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Nl=function(r){var i={},s,o,a;return r&&t.forEach(r.split(` -`),function(c){if(a=c.indexOf(":"),s=t.trim(c.substr(0,a)).toLowerCase(),o=t.trim(c.substr(a+1)),s){if(i[s]&&e.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([o]):i[s]=i[s]?i[s]+", "+o:o}}),i},Nl}var Ol,kh;function BA(){if(kh)return Ol;kh=1;var t=ut;return Ol=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function s(o){var a=o;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=s(window.location.href),function(a){var l=t.isString(a)?s(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),Ol}var Pl,xh;function Ba(){if(xh)return Pl;xh=1;var t=os,e=ut;function n(r){t.call(this,r==null?"canceled":r,t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(n,t,{__CANCEL__:!0}),Pl=n,Pl}var Ml,Lh;function UA(){return Lh||(Lh=1,Ml=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),Ml}var Il,Nh;function Oh(){if(Nh)return Il;Nh=1;var t=ut,e=IA(),n=DA(),r=Q_,i=rv,s=HA(),o=BA(),a=tv,l=os,c=Ba(),u=UA();return Il=function(f){return new Promise(function(w,g){var E=f.data,_=f.headers,C=f.responseType,S;function v(){f.cancelToken&&f.cancelToken.unsubscribe(S),f.signal&&f.signal.removeEventListener("abort",S)}t.isFormData(E)&&t.isStandardBrowserEnv()&&delete _["Content-Type"];var b=new XMLHttpRequest;if(f.auth){var k=f.auth.username||"",x=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";_.Authorization="Basic "+btoa(k+":"+x)}var N=i(f.baseURL,f.url);b.open(f.method.toUpperCase(),r(N,f.params,f.paramsSerializer),!0),b.timeout=f.timeout;function O(){if(!!b){var Q="getAllResponseHeaders"in b?s(b.getAllResponseHeaders()):null,ee=!C||C==="text"||C==="json"?b.responseText:b.response,I={data:ee,status:b.status,statusText:b.statusText,headers:Q,config:f,request:b};e(function(Y){w(Y),v()},function(Y){g(Y),v()},I),b=null}}if("onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(O)},b.onabort=function(){!b||(g(new l("Request aborted",l.ECONNABORTED,f,b)),b=null)},b.onerror=function(){g(new l("Network Error",l.ERR_NETWORK,f,b,b)),b=null},b.ontimeout=function(){var ee=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",I=f.transitional||a;f.timeoutErrorMessage&&(ee=f.timeoutErrorMessage),g(new l(ee,I.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,b)),b=null},t.isStandardBrowserEnv()){var B=(f.withCredentials||o(N))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;B&&(_[f.xsrfHeaderName]=B)}"setRequestHeader"in b&&t.forEach(_,function(ee,I){typeof E>"u"&&I.toLowerCase()==="content-type"?delete _[I]:b.setRequestHeader(I,ee)}),t.isUndefined(f.withCredentials)||(b.withCredentials=!!f.withCredentials),C&&C!=="json"&&(b.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&b.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(S=function(Q){!b||(g(!Q||Q&&Q.type?new c:Q),b.abort(),b=null)},f.cancelToken&&f.cancelToken.subscribe(S),f.signal&&(f.signal.aborted?S():f.signal.addEventListener("abort",S))),E||(E=null);var q=u(N);if(q&&["http","https","file"].indexOf(q)===-1){g(new l("Unsupported protocol "+q+":",l.ERR_BAD_REQUEST,f));return}b.send(E)})},Il}var Dl,Ph;function jA(){return Ph||(Ph=1,Dl=null),Dl}var rt=ut,Mh=PA,Ih=os,WA=tv,zA=nv,KA={"Content-Type":"application/x-www-form-urlencoded"};function Dh(t,e){!rt.isUndefined(t)&&rt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function YA(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Oh()),t}function qA(t,e,n){if(rt.isString(t))try{return(e||JSON.parse)(t),rt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var Ua={transitional:WA,adapter:YA(),transformRequest:[function(e,n){if(Mh(n,"Accept"),Mh(n,"Content-Type"),rt.isFormData(e)||rt.isArrayBuffer(e)||rt.isBuffer(e)||rt.isStream(e)||rt.isFile(e)||rt.isBlob(e))return e;if(rt.isArrayBufferView(e))return e.buffer;if(rt.isURLSearchParams(e))return Dh(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r=rt.isObject(e),i=n&&n["Content-Type"],s;if((s=rt.isFileList(e))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return zA(s?{"files[]":e}:e,o&&new o)}else if(r||i==="application/json")return Dh(n,"application/json"),qA(e);return e}],transformResponse:[function(e){var n=this.transitional||Ua.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,s=!r&&this.responseType==="json";if(s||i&&rt.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Ih.from(o,Ih.ERR_BAD_RESPONSE,this,null,this.response):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jA()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rt.forEach(["delete","get","head"],function(e){Ua.headers[e]={}});rt.forEach(["post","put","patch"],function(e){Ua.headers[e]=rt.merge(KA)});var af=Ua,GA=ut,XA=af,QA=function(e,n,r){var i=this||XA;return GA.forEach(r,function(o){e=o.call(i,e,n)}),e},$l,$h;function iv(){return $h||($h=1,$l=function(e){return!!(e&&e.__CANCEL__)}),$l}var Rh=ut,Rl=QA,JA=iv(),ZA=af,ek=Ba();function Fl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ek}var tk=function(e){Fl(e),e.headers=e.headers||{},e.data=Rl.call(e,e.data,e.headers,e.transformRequest),e.headers=Rh.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Rh.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||ZA.adapter;return n(e).then(function(i){return Fl(e),i.data=Rl.call(e,i.data,i.headers,e.transformResponse),i},function(i){return JA(i)||(Fl(e),i&&i.response&&(i.response.data=Rl.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},Ot=ut,sv=function(e,n){n=n||{};var r={};function i(u,d){return Ot.isPlainObject(u)&&Ot.isPlainObject(d)?Ot.merge(u,d):Ot.isPlainObject(d)?Ot.merge({},d):Ot.isArray(d)?d.slice():d}function s(u){if(Ot.isUndefined(n[u])){if(!Ot.isUndefined(e[u]))return i(void 0,e[u])}else return i(e[u],n[u])}function o(u){if(!Ot.isUndefined(n[u]))return i(void 0,n[u])}function a(u){if(Ot.isUndefined(n[u])){if(!Ot.isUndefined(e[u]))return i(void 0,e[u])}else return i(void 0,n[u])}function l(u){if(u in n)return i(e[u],n[u]);if(u in e)return i(void 0,e[u])}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Ot.forEach(Object.keys(e).concat(Object.keys(n)),function(d){var f=c[d]||s,m=f(d);Ot.isUndefined(m)&&f!==l||(r[d]=m)}),r},Vl,Fh;function ov(){return Fh||(Fh=1,Vl={version:"0.27.2"}),Vl}var nk=ov().version,rr=os,lf={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){lf[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Vh={};lf.transitional=function(e,n,r){function i(s,o){return"[Axios v"+nk+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return function(s,o,a){if(e===!1)throw new rr(i(o," has been removed"+(n?" in "+n:"")),rr.ERR_DEPRECATED);return n&&!Vh[o]&&(Vh[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};function rk(t,e,n){if(typeof t!="object")throw new rr("options must be an object",rr.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var s=r[i],o=e[s];if(o){var a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new rr("option "+s+" must be "+l,rr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rr("Unknown option "+s,rr.ERR_BAD_OPTION)}}var ik={assertOptions:rk,validators:lf},av=ut,sk=Q_,Hh=NA,Bh=tk,ja=sv,ok=rv,lv=ik,di=lv.validators;function Qi(t){this.defaults=t,this.interceptors={request:new Hh,response:new Hh}}Qi.prototype.request=function(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ja(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&lv.assertOptions(r,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var a;if(!s){var l=[Bh,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=n;i.length;){var u=i.shift(),d=i.shift();try{c=u(c)}catch(f){d(f);break}}try{a=Bh(c)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Qi.prototype.getUri=function(e){e=ja(this.defaults,e);var n=ok(e.baseURL,e.url);return sk(n,e.params,e.paramsSerializer)};av.forEach(["delete","get","head","options"],function(e){Qi.prototype[e]=function(n,r){return this.request(ja(r||{},{method:e,url:n,data:(r||{}).data}))}});av.forEach(["post","put","patch"],function(e){function n(r){return function(s,o,a){return this.request(ja(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Qi.prototype[e]=n(),Qi.prototype[e+"Form"]=n(!0)});var ak=Qi,Hl,Uh;function lk(){if(Uh)return Hl;Uh=1;var t=Ba();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(s){if(!!i._listeners){var o,a=i._listeners.length;for(o=0;ot,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;window.app.error({message:n})});const uv=window.matchMedia("(prefers-color-scheme: dark)"),uf="auto",fv="light",Dc="dark",Ms=[uf,fv,Dc],dv="theme";function hv(){try{const t=window.localStorage[dv];if(Ms.includes(t))return t}catch(t){console.error("unable to read theme from localStorage",t)}return uf}function _k(t){if(console.log({theme:t}),!!Ms.includes(t))try{window.localStorage[dv]=t,$c()}catch(e){console.error("unable to write theme to localStorage",e)}}function $c(){let t=hv();t===uf&&(t=uv.matches?Dc:fv);const e={light:"#f3f3f7",dark:"#020318"};document.querySelector("meta[name=theme-color]").setAttribute("content",e[t]);const n=document.querySelector(":root");n.classList.add("no-transitions"),n.classList.toggle("dark",t===Dc),window.requestAnimationFrame(function(){n.classList.remove("no-transitions")})}function vk(){uv.addEventListener("change",$c),$c()}const bk={name:"TopNavigation",props:{vehicleLogins:{type:Object,default:()=>({})}},data:function(){return{theme:hv()}},computed:{logoutCount(){return this.providerLogins.filter(t=>!t.loggedIn).length},providerLogins(){return Object.entries(this.vehicleLogins).map(([t,e])=>({title:t,loggedIn:e.authenticated,loginPath:e.uri+"/login",logoutPath:e.uri+"/logout"}))}},methods:{toggleTheme:function(){const t=Ms.indexOf(this.theme),e=t(bt("data-v-5ac310b2"),t=t(),yt(),t),yk={type:"button","data-bs-toggle":"dropdown","data-bs-target":"#navbarNavAltMarkup","aria-controls":"navbarNavAltMarkup","aria-expanded":"false","aria-label":"Toggle navigation",class:"btn btn-sm btn-outline-secondary position-relative border-0 menu-button"},Ek={key:0,class:"position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle"},wk=ni(()=>y("span",{class:"visually-hidden"},"login available",-1)),Tk=[wk],Ck=ni(()=>y("shopicon-regular-menu",null,null,-1)),Sk={class:"dropdown-menu dropdown-menu-end"},Ak=ni(()=>y("li",null,[y("hr",{class:"dropdown-divider"})],-1)),kk={class:"dropdown-header"},xk=["onClick"],Lk={key:0,class:"d-inline-block p-1 rounded-circle bg-danger border border-light rounded-circle"},Nk={class:"dropdown-item d-flex",href:"https://docs.evcc.io/blog/",target:"_blank"},Ok=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),Pk={class:"dropdown-item d-flex",href:"https://docs.evcc.io/docs/Home/",target:"_blank"},Mk=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),Ik={class:"dropdown-item d-flex",href:"https://github.com/evcc-io/evcc",target:"_blank"},Dk=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),$k={class:"dropdown-item d-flex",href:"https://evcc.io/",target:"_blank"},Rk=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1));function Fk(t,e,n,r,i,s){const o=ae("router-link");return P(),V("div",null,[y("button",yk,[s.logoutCount>0?(P(),V("span",Ek,Tk)):ve("",!0),Ck]),y("ul",Sk,[y("li",null,[ie(o,{class:"dropdown-item",to:"/sessions"},{default:et(()=>[Le(F(t.$t("header.sessions")),1)]),_:1})]),y("li",null,[y("button",{type:"button",class:"dropdown-item",onClick:e[0]||(e[0]=Ws((...a)=>s.toggleTheme&&s.toggleTheme(...a),["stop"]))},F(t.$t(`header.theme.${t.theme}`)),1)]),s.providerLogins.length>0?(P(),V(xe,{key:0},[Ak,y("li",null,[y("h6",kk,F(t.$t("header.login")),1)]),(P(!0),V(xe,null,Je(s.providerLogins,a=>(P(),V("li",{key:a.title},[y("button",{type:"button",class:"dropdown-item",onClick:l=>s.handleProviderAuthorization(a)},[a.loggedIn?ve("",!0):(P(),V("span",Lk)),Le(" "+F(a.title)+" "+F(t.$t(a.loggedIn?"main.provider.logout":"main.provider.login")),1)],8,xk)]))),128))],64)):ve("",!0),y("li",null,[y("a",Nk,[y("span",null,F(t.$t("header.blog")),1),Ok])]),y("li",null,[y("a",Pk,[y("span",null,F(t.$t("header.docs")),1),Mk])]),y("li",null,[y("a",Ik,[y("span",null,F(t.$t("header.github")),1),Dk])]),y("li",null,[y("a",$k,[y("span",null,F(t.$t("header.about")),1),Rk])])])])}const mv=we(bk,[["render",Fk],["__scopeId","data-v-5ac310b2"]]);var Vk='';class Hk extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Vk}}window.customElements.define("shopicon-regular-exclamationtriangle",Hk);const Lt={data:function(){return{fmtLimit:100,fmtDigits:1}},methods:{round:function(t,e){var n=10**e;return(Math.round(t*n)/n).toFixed(e)},fmt:function(t){return t==null?0:(t=Math.abs(t),t>=this.fmtLimit?this.round(t/1e3,this.fmtDigits):this.round(t,0))},fmtKw:function(t=0,e=!0,n=!0){const r=e?1:0,i=e?t/1e3:t;let s="";return n&&(s=e?" kW":" W"),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:r,maximumFractionDigits:r}).format(i)}${s}`},fmtKWh:function(t){return this.fmtKw(t)+"h"},fmtNumber:function(t,e){return new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:e,maximumFractionDigits:e}).format(t)},fmtUnit:function(t){return Math.abs(t)>=this.fmtLimit?"k":""},fmtDuration:function(t){if(t<=0||t==null)return"\u2014";var e="0"+t%60,n="0"+Math.floor(t/60)%60,r=""+Math.floor(t/3600);return r.length<2&&(r="0"+r),r+":"+n.substr(-2)+":"+e.substr(-2)},fmtShortDuration:function(t=0,e=!1){if(t<=0)return"\u2014";var n=t%60,r=Math.floor(t/60)%60,i=Math.floor(t/3600),s="";return i>=1?s=i+":"+`${r}`.padStart(2,"0"):r>=1?s=r+":"+`${n}`.padStart(2,"0"):s=`${n}`,e&&(s+=this.fmtShortDurationUnit(t)),s},fmtShortDurationUnit:function(t=0){if(t<=0)return"";var e=Math.floor(t/60)%60,n=Math.floor(t/3600);return n>=1?"h":e>=1?"m":"s"},fmtDayString:function(t){const e=`${t.getFullYear()}`,n=`${t.getMonth()+1}`.padStart(2,"0"),r=`${t.getDate()}`.padStart(2,"0");return`${e}-${n}-${r}`},fmtTimeString:function(t){const e=`${t.getHours()}`.padStart(2,"0"),n=`${t.getMinutes()}`.padStart(2,"0");return`${e}:${n}`},isToday:function(t){return new Date().toDateString()===t.toDateString()},isTomorrow:function(t){const e=new Date;return e.setDate(e.getDate()+1),e.toDateString()===t.toDateString()},weekdayPrefix:function(t){const e=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});return this.isToday(t)?e.formatToParts(0,"day")[0].value:this.isTomorrow(t)?e.formatToParts(1,"day")[0].value:new Intl.DateTimeFormat(this.$i18n.locale,{weekday:"short"}).format(t)},fmtAbsoluteDate:function(t){const e=this.weekdayPrefix(t),n=new Intl.DateTimeFormat(this.$i18n.locale,{hour:"numeric",minute:"numeric"}).format(t);return`${e} ${n}`},fmtFullDateTime:function(t,e){return new Intl.DateTimeFormat(this.$i18n.locale,{weekday:e?void 0:"short",month:e?"numeric":"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(t)},fmtMonthYear:function(t){return new Intl.DateTimeFormat(this.$i18n.locale,{month:"long",year:"numeric"}).format(t)},fmtDayMonthYear:function(t){return new Intl.DateTimeFormat(this.$i18n.locale,{day:"numeric",month:"long",year:"numeric"}).format(t)},fmtMoney:function(t=0,e="EUR"){return new Intl.NumberFormat(this.$i18n.locale,{style:"currency",currency:e,currencyDisplay:"code"}).format(t).replace(e,"").trim()},fmtCurrencySymbol:function(t="EUR"){return{EUR:"\u20AC",USD:"$"}[t]||t},fmtPricePerKWh:function(t=0,e="EUR"){let n=e,r=t,i=3;return["EUR","USD"].includes(e)&&(r*=100,n="ct",i=1),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",maximumFractionDigits:i}).format(r)} ${n}/kWh`},fmtTimeAgo:function(t){const e={day:864e5,hour:36e5,minute:6e4,second:1e3},n=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});for(var r in e)if(Math.abs(t)>e[r]||r=="second")return n.format(Math.round(t/e[r]),r)}}},Bk={name:"Notifications",mixins:[Lt],props:{notifications:Array},computed:{iconVisible:function(){return this.notifications.length>0},iconClass:function(){return this.notifications.find(t=>t.type==="error")?"text-danger":"text-warning"}},created:function(){this.interval=setInterval(()=>{this.$forceUpdate()},10*1e3)},unmounted:function(){clearTimeout(this.interval)},methods:{clear:function(){window.app&&window.app.clear()}}},Uk={href:"#","data-bs-toggle":"modal","data-bs-target":"#notificationModal",class:"btn btn-sm btn-link text-decoration-none link-light text-nowrap"},jk={id:"notificationModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true","data-bs-backdrop":"true"},Wk={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},zk={class:"modal-content"},Kk={class:"modal-header"},Yk={class:"modal-title"},qk=y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Gk={class:"modal-body"},Xk=["title"],Qk={class:"d-flex align-items-baseline"},Jk={class:"flex-grow-1 px-2 py-1 text-break"},Zk={key:0,class:"badge rounded-pill bg-secondary"},e4={class:"modal-footer"};function t4(t,e,n,r,i,s){return P(),V("div",null,[Yt(y("button",Uk,[y("shopicon-regular-exclamationtriangle",{class:De(s.iconClass)},null,2)],512),[[Du,s.iconVisible]]),y("div",jk,[y("div",Wk,[y("div",zk,[y("div",Kk,[y("h5",Yk,F(t.$t("notifications.modalTitle")),1),qk]),y("div",Gk,[(P(!0),V(xe,null,Je(n.notifications,(o,a)=>(P(),V("div",{key:a},[y("small",{class:"d-flex justify-content-end mt-3",title:t.fmtAbsoluteDate(o.time)},F(t.fmtTimeAgo(o.time-new Date)),9,Xk),y("p",Qk,[y("shopicon-regular-exclamationtriangle",{class:De([{"text-danger":o.type==="error","text-warning":o.type==="warn"},"flex-grow-0 flex-shrink-0 d-block"])},null,2),y("span",Jk,F(o.message),1),o.count>1?(P(),V("span",Zk,F(o.count),1)):ve("",!0)])]))),128))]),y("div",e4,[y("button",{type:"button","data-bs-dismiss":"modal","aria-label":"Close",class:"btn btn-outline-secondary",onClick:e[0]||(e[0]=(...o)=>s.clear&&s.clear(...o))},F(t.$t("notifications.dismissAll")),1)])])])])])}const n4=we(Bk,[["render",t4]]);var r4='';class i4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=r4}}window.customElements.define("shopicon-filled-square",i4);var s4='';class o4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=s4}}window.customElements.define("shopicon-regular-batteryfull",o4);var a4='';class l4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=a4}}window.customElements.define("shopicon-regular-batterythreequarters",l4);var c4='';class u4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=c4}}window.customElements.define("shopicon-regular-batteryhalf",u4);var f4='';class d4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=f4}}window.customElements.define("shopicon-regular-batteryquarter",d4);var h4='';class m4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=h4}}window.customElements.define("shopicon-regular-batteryempty",m4);const p4={name:"BatteryIcon",props:{soc:{type:Number,default:0}},computed:{icon:function(){return this.soc>80?"batteryfull":this.soc>60?"batterythreequarters":this.soc>40?"batteryhalf":this.soc>20?"batteryquarter":"batteryempty"}}};function g4(t,e,n,r,i,s){return P(),Te(Nu(`shopicon-regular-${s.icon}`))}const pv=we(p4,[["render",g4]]),_4={name:"LabelBar",props:{value:{type:Number,default:0},hideIcon:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},first:{type:Boolean},last:{type:Boolean}}},v4={class:"label-bar-scale"},b4={class:"label-bar-icon"};function y4(t,e,n,r,i,s){return P(),V("div",{class:De(["label-bar",{"label-bar--hide-icon":n.hideIcon,"label-bar--hidden":!n.value,"label-bar--top":n.top,"label-bar--bottom":n.bottom,"label-bar--first":n.first,"label-bar--last":n.last}])},[y("div",v4,[y("div",b4,[Ou(t.$slots,"default",{},void 0,!0)])])],2)}const E4=we(_4,[["render",y4],["__scopeId","data-v-07ec7375"]]),w4=.5,T4={name:"AnimatedNumber",props:{to:{type:Number},format:{type:Function},noAnimation:{type:Boolean},duration:{type:Number,default:w4}},data(){return{activeDuration:0}},computed:{animationDuration(){return this.noAnimation?0:this.activeDuration}},watch:{to:function(){this.activeDuration=this.duration}}};function C4(t,e,n,r,i,s){const o=ae("number");return P(),Te(o,{to:n.to,format:n.format,duration:s.animationDuration},null,8,["to","format","duration"])}const ri=we(T4,[["render",C4]]);var S4='';class A4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=S4}}window.customElements.define("shopicon-regular-car3",A4);var k4='';class x4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=k4}}window.customElements.define("shopicon-regular-sun",x4);var L4='';class N4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=L4}}window.customElements.define("shopicon-regular-home",N4);const O4={name:"Visualization",components:{BatteryIcon:pv,LabelBar:E4,AnimatedNumber:ri},mixins:[Lt],props:{gridImport:{type:Number,default:0},selfConsumption:{type:Number,default:0},pvExport:{type:Number,default:0},loadpoints:{type:Number,default:0},batteryCharge:{type:Number,default:0},batteryDischarge:{type:Number,default:0},pvProduction:{type:Number,default:0},homePower:{type:Number,default:0},batterySoC:{type:Number,default:0},valuesInKw:{type:Boolean,default:!1}},data:function(){return{width:0,visualizationReady:!1}},computed:{gridExport:function(){return this.applyThreshold(this.pvExport)},totalRaw:function(){return this.gridImport+this.selfConsumption+this.pvExport},gridImportAdjusted:function(){return this.applyThreshold(this.gridImport)},selfConsumptionAdjusted:function(){return this.applyThreshold(this.selfConsumption)},pvExportAdjusted:function(){return this.applyThreshold(this.pvExport)},totalAdjusted:function(){return this.gridImportAdjusted+this.selfConsumptionAdjusted+this.pvExportAdjusted}},watch:{totalAdjusted:function(){!this.visualizationReady&&this.totalAdjusted>0&&setTimeout(()=>{this.visualizationReady=!0},500)}},mounted:function(){this.$nextTick(function(){window.addEventListener("resize",this.updateElementWidth),this.updateElementWidth()})},beforeUnmount(){window.removeEventListener("resize",this.updateElementWidth)},methods:{widthTotal:function(t){return this.totalAdjusted===0?"0%":100/this.totalAdjusted*t+"%"},fmtBarValue:function(t){const e=this.powerLabelEnoughSpace(t);return this.fmtKw(t,this.valuesInKw,e)},powerLabelAvailableSpace(t){if(this.totalAdjusted===0)return 0;const e=100/this.totalAdjusted*t;return this.width/100*e},powerLabelEnoughSpace(t){return this.powerLabelAvailableSpace(t)>60},powerLabelSomeSpace(t){return this.powerLabelAvailableSpace(t)>35},hideLabelIcon(t,e=32){if(this.totalAdjusted===0)return!0;const n=100/this.totalAdjusted*t;return this.width/100*n(bt("data-v-52aac8f3"),t=t(),yt(),t),P4={class:"label-scale d-flex"},M4={class:"d-flex justify-content-start flex-grow-1"},I4=ii(()=>y("shopicon-regular-sun",null,null,-1)),D4=ii(()=>y("shopicon-regular-powersupply",null,null,-1)),$4=ii(()=>y("div",{class:"label-scale-name"},"In",-1)),R4={ref:"site_progress",class:"site-progress"},F4={key:0,class:"site-progress-bar bg-light border no-wrap w-100 text-dark"},V4={class:"label-scale d-flex"},H4={class:"d-flex justify-content-start flex-grow-1"},B4=ii(()=>y("shopicon-regular-home",null,null,-1)),U4=ii(()=>y("shopicon-regular-car3",null,null,-1)),j4=ii(()=>y("shopicon-regular-powersupply",null,null,-1)),W4=ii(()=>y("div",{class:"label-scale-name"},"Out",-1));function z4(t,e,n,r,i,s){const o=ae("LabelBar"),a=ae("BatteryIcon"),l=ae("AnimatedNumber");return P(),V("div",{class:De(["visualization",{"visualization--ready":t.visualizationReady}])},[y("div",P4,[y("div",M4,[ie(o,an(Kt(s.labelBarProps("top","pvProduction"))),{default:et(()=>[I4]),_:1},16),ie(o,an(Kt(s.labelBarProps("top","batteryDischarge"))),{default:et(()=>[ie(a,{soc:n.batterySoC},null,8,["soc"])]),_:1},16),ie(o,an(Kt(s.labelBarProps("top","gridImport"))),{default:et(()=>[D4]),_:1},16)]),$4]),y("div",R4,[y("div",{class:"site-progress-bar self-consumption",style:Ct({width:s.widthTotal(s.selfConsumptionAdjusted)})},[n.selfConsumption?(P(),Te(l,{key:0,class:"power",to:n.selfConsumption,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),y("div",{class:"site-progress-bar grid-import",style:Ct({width:s.widthTotal(s.gridImportAdjusted)})},[n.gridImport?(P(),Te(l,{key:0,class:"power",to:n.gridImport,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),y("div",{class:"site-progress-bar pv-export",style:Ct({width:s.widthTotal(s.pvExportAdjusted)})},[n.pvExport?(P(),Te(l,{key:0,class:"power",to:n.pvExport,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),s.totalAdjusted<=0?(P(),V("div",F4,[y("span",null,F(t.$t("main.energyflow.noEnergy")),1)])):ve("",!0)],512),y("div",V4,[y("div",H4,[ie(o,an(Kt(s.labelBarProps("bottom","homePower"))),{default:et(()=>[B4]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","loadpoints"))),{default:et(()=>[U4]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","batteryCharge"))),{default:et(()=>[ie(a,{soc:n.batterySoC},null,8,["soc"])]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","gridExport"))),{default:et(()=>[j4]),_:1},16)]),W4])],2)}const K4=we(O4,[["render",z4],["__scopeId","data-v-52aac8f3"]]);var Y4='';class q4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Y4}}window.customElements.define("shopicon-regular-powersupply",q4);const G4={name:"EnergyflowEntry",components:{BatteryIcon:pv,AnimatedNumber:ri},mixins:[Lt],props:{name:{type:String},icon:{type:String},power:{type:Number},soc:{type:Number},valuesInKw:{type:Boolean}},computed:{active:function(){return this.power>10},isBattery:function(){return this.icon==="battery"},hasSoC:function(){return this.isBattery&&!isNaN(this.soc)}},methods:{kw:function(t){return this.fmtKw(t,this.valuesInKw)}}},X4={class:"d-flex flex-nowrap"},Q4={class:"text-nowrap flex-grow-1 ms-3"},J4={class:"text-end text-nowrap ps-1 fw-bold"},Z4={key:0};function ex(t,e,n,r,i,s){const o=ae("BatteryIcon"),a=ae("AnimatedNumber");return P(),V("div",{class:De(["d-flex justify-content-between mb-2 entry",{"evcc-gray":!s.active}])},[y("span",X4,[s.isBattery?(P(),Te(o,{key:0,soc:n.soc},null,8,["soc"])):(P(),Te(Nu(`shopicon-regular-${n.icon}`),{key:1}))]),y("span",Q4,F(n.name),1),y("span",J4,[s.hasSoC?(P(),V("span",Z4,F(n.soc)+"% / ",1)):ve("",!0),ie(a,{to:n.power,format:s.kw},null,8,["to","format"])])],2)}const tx=we(G4,[["render",ex],["__scopeId","data-v-64ce0f8b"]]),nx={name:"Energyflow",components:{Visualization:K4,EnergyflowEntry:tx,AnimatedNumber:ri},mixins:[Lt],props:{gridConfigured:Boolean,gridPower:{type:Number,default:0},homePower:{type:Number,default:0},pvConfigured:Boolean,pvPower:{type:Number,default:0},loadpointsPower:{type:Number,default:0},activeLoadpointsCount:{type:Number,default:0},batteryConfigured:Boolean,batteryPower:{type:Number,default:0},batterySoC:{type:Number,default:0}},data:()=>({detailsOpen:!1,detailsCompleteHeight:null}),computed:{gridImport:function(){return Math.max(0,this.gridPower)},pvProduction:function(){return Math.abs(this.pvPower)},batteryPowerAdjusted:function(){return Math.abs(this.batteryPower)<50?0:this.batteryPower},batteryDischarge:function(){return Math.abs(Math.max(0,this.batteryPowerAdjusted))},batteryCharge:function(){return Math.abs(Math.min(0,this.batteryPowerAdjusted)*-1)},selfConsumption:function(){const t=this.batteryDischarge+this.pvProduction,e=this.homePower+this.batteryCharge+this.loadpointsPower;return Math.min(t,e)},pvExport:function(){return Math.max(0,this.gridPower*-1)},valuesInKw:function(){return this.gridImport+this.selfConsumption+this.pvExport>1e3},inPower:function(){return this.gridImport+this.pvProduction+this.batteryDischarge},outPower:function(){return this.homePower+this.loadpointsPower+this.pvExport+this.batteryCharge},detailsHeight:function(){return this.detailsOpen?this.detailsCompleteHeight+"px":0}},mounted(){window.addEventListener("resize",this.updateHeight)},unmounted(){window.removeEventListener("resize",this.updateHeight)},methods:{kw:function(t){return this.fmtKw(t,this.valuesInKw)},toggleDetails:function(){this.updateHeight(),this.detailsOpen=!this.detailsOpen},updateHeight:function(){this.detailsCompleteHeight=this.$refs.detailsInner.offsetHeight}}},lo=t=>(bt("data-v-a185934b"),t=t(),yt(),t),rx={class:"row"},ix={ref:"detailsInner",class:"details-inner row"},sx={class:"col-12 d-flex justify-content-between pt-2 mb-4"},ox={class:"d-flex flex-nowrap align-items-center"},ax=lo(()=>y("span",{class:"color-self me-2"},[y("shopicon-filled-square")],-1)),lx={key:0,class:"d-flex flex-nowrap align-items-center"},cx=lo(()=>y("span",{class:"color-grid ms-2"},[y("shopicon-filled-square")],-1)),ux={key:1,class:"d-flex flex-nowrap align-items-center"},fx=lo(()=>y("span",{class:"color-export ms-2"},[y("shopicon-filled-square")],-1)),dx={class:"col-12 col-md-6 pe-md-5 pb-4 d-flex flex-column justify-content-between"},hx={class:"d-flex justify-content-between align-items-end mb-4"},mx=lo(()=>y("h3",{class:"m-0"},"In",-1)),px={class:"fw-bold"},gx={class:"col-12 col-md-6 ps-md-5 pb-4 d-flex flex-column justify-content-between"},_x={class:"d-flex justify-content-between align-items-end mb-4"},vx=lo(()=>y("h3",{class:"m-0"},"Out",-1)),bx={class:"fw-bold"};function yx(t,e,n,r,i,s){const o=ae("Visualization"),a=ae("AnimatedNumber"),l=ae("EnergyflowEntry");return P(),V("div",{class:De(["energyflow cursor-pointer position-relative",{"energyflow--open":t.detailsOpen}]),onClick:e[0]||(e[0]=(...c)=>s.toggleDetails&&s.toggleDetails(...c))},[y("div",rx,[ie(o,{class:"col-12 mb-3 mb-md-4",gridImport:s.gridImport,selfConsumption:s.selfConsumption,loadpoints:n.loadpointsPower,pvExport:s.pvExport,batteryCharge:s.batteryCharge,batteryDischarge:s.batteryDischarge,pvProduction:s.pvProduction,homePower:n.homePower,batterySoC:n.batterySoC,valuesInKw:s.valuesInKw},null,8,["gridImport","selfConsumption","loadpoints","pvExport","batteryCharge","batteryDischarge","pvProduction","homePower","batterySoC","valuesInKw"])]),y("div",{class:"details",style:Ct({height:s.detailsHeight})},[y("div",ix,[y("div",sx,[y("div",ox,[ax,y("span",null,F(t.$t("main.energyflow.selfConsumption")),1)]),s.gridImport>0?(P(),V("div",lx,[y("span",null,F(t.$t("main.energyflow.gridImport")),1),cx])):(P(),V("div",ux,[y("span",null,F(t.$t("main.energyflow.pvExport")),1),fx]))]),y("div",dx,[y("div",hx,[mx,y("span",px,[ie(a,{to:s.inPower,format:s.kw},null,8,["to","format"])])]),y("div",null,[ie(l,{name:t.$t("main.energyflow.pvProduction"),icon:"sun",power:s.pvProduction,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(P(),Te(l,{key:0,name:t.$t("main.energyflow.batteryDischarge"),icon:"battery",soc:n.batterySoC,power:s.batteryDischarge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ve("",!0),ie(l,{name:t.$t("main.energyflow.gridImport"),icon:"powersupply",power:s.gridImport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])]),y("div",gx,[y("div",_x,[vx,y("span",bx,[ie(a,{to:s.outPower,format:s.kw},null,8,["to","format"])])]),y("div",null,[ie(l,{name:t.$t("main.energyflow.homePower"),icon:"home",power:n.homePower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),ie(l,{name:t.$tc("main.energyflow.loadpoints",n.activeLoadpointsCount,{count:n.activeLoadpointsCount}),icon:"car3",power:n.loadpointsPower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(P(),Te(l,{key:0,name:t.$t("main.energyflow.batteryCharge"),icon:"battery",soc:n.batterySoC,power:s.batteryCharge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ve("",!0),ie(l,{name:t.$t("main.energyflow.pvExport"),icon:"powersupply",power:s.pvExport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])])],512)],4)],2)}const Yh=we(nx,[["render",yx],["__scopeId","data-v-a185934b"]]);var Ex='';class wx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Ex}}window.customElements.define("shopicon-filled-circle",wx);var Tx='';class Cx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Tx}}window.customElements.define("shopicon-regular-lightning",Cx);var Sx='';class Ax extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Sx}}window.customElements.define("shopicon-regular-adjust",Ax);const{protocol:kx,hostname:xx,port:qh,pathname:Lx}=window.location,at=cf.create({baseURL:kx+"//"+xx+(qh?":"+qh:"")+Lx+"api/",headers:{Accept:"application/json"}});at.interceptors.response.use(t=>t,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;return window.app.error({message:n}),Promise.reject(t)});const Nx={name:"Mode",props:{mode:String},emits:["updated"],data(){return{modes:["off","pv","minpv","now"]}},methods:{isActive:function(t){return this.mode===t},setTargetMode:function(t){this.$emit("updated",t)}}},Ox={class:"mode-group border d-inline-flex",role:"group"},Px=["onClick"];function Mx(t,e,n,r,i,s){return P(),V("div",Ox,[(P(!0),V(xe,null,Je(i.modes,o=>(P(),V("button",{key:o,type:"button",class:De(["btn flex-grow-1 flex-shrink-1",{active:s.isActive(o)}]),onClick:a=>s.setTargetMode(o)},F(t.$t(`main.mode.${o}`)),11,Px))),128))])}const Ix=we(Nx,[["render",Mx],["__scopeId","data-v-fd0f9db5"]]),Wa={methods:{collectProps:function(t){let e={};for(var n in t.props)n in this&&(e[n]=this[n]);return e}}},Dx={name:"LabelAndValue",components:{AnimatedNumber:ri},props:{label:String,value:[Number,String],valueFmt:Function,extraValue:String,align:{type:String,default:"center"}},computed:{labelClass(){return`text-${this.align}`},valueClass(){return`justify-content-${this.align}`}}},$x={class:"root"},Rx={key:1},Fx={key:2,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function Vx(t,e,n,r,i,s){const o=ae("AnimatedNumber");return P(),V("div",$x,[y("div",{class:De(["mb-2 label",s.labelClass])},F(n.label),3),Ou(t.$slots,"default",{},()=>[y("h3",{class:De(["value m-0 d-block d-sm-flex align-items-baseline",s.valueClass])},[n.valueFmt?(P(),Te(o,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(P(),V("span",Rx,F(n.value),1)),n.extraValue?(P(),V("div",Fx,F(n.extraValue),1)):ve("",!0)],2)],!0)])}const co=we(Dx,[["render",Vx],["__scopeId","data-v-2a1fddd7"]]);var Hx='';class Bx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Hx}}window.customElements.define("shopicon-regular-refresh",Bx);var Ux='';class jx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Ux}}window.customElements.define("shopicon-regular-cablecharge",jx);var Wx='';class zx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Wx}}window.customElements.define("shopicon-filled-options",zx);const Kx={name:"VehicleOptions",props:{vehicles:Array,isUnknown:Boolean},emits:["change-vehicle","remove-vehicle"],methods:{changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")}}},Yx={role:"button",tabindex:"0","data-bs-toggle":"dropdown","data-bs-target":"#navbarNavAltMarkup","aria-controls":"navbarNavAltMarkup","aria-expanded":"false","aria-label":"Toggle navigation"},qx={class:"dropdown-menu dropdown-menu-start"},Gx={class:"dropdown-header"},Xx=["onClick"],Qx={key:0};function Jx(t,e,n,r,i,s){return P(),V("div",null,[y("div",Yx,[Ou(t.$slots,"default")]),y("ul",qx,[y("li",null,[y("h6",Gx,F(t.$t("main.vehicle.changeVehicle")),1)]),(P(!0),V(xe,null,Je(n.vehicles,o=>(P(),V("li",{key:o},[y("button",{type:"button",class:"dropdown-item",onClick:a=>s.changeVehicle(o.id)},F(o.title),9,Xx)]))),128)),n.isUnknown?ve("",!0):(P(),V("li",Qx,[y("button",{type:"button",class:"dropdown-item",onClick:e[0]||(e[0]=o=>s.removeVehicle())},F(t.$t("main.vehicle.unknown")),1)]))])])}const Zx=we(Kx,[["render",Jx]]),eL={name:"VehicleTitle",components:{VehicleOptions:Zx},props:{vehiclePresent:Boolean,vehicleTitle:String,vehicleDetectionActive:Boolean,parked:Boolean,connected:Boolean,vehicles:{type:Array,default:()=>[]}},emits:["change-vehicle","remove-vehicle"],computed:{icon(){return this.vehicleDetectionActive?"refresh":this.connected||this.parked?"car":null},name(){return this.vehiclePresent||this.parked?this.vehicleTitle||this.$t("main.vehicle.fallbackName"):this.connected?this.$t("main.vehicle.unknown"):this.$t("main.vehicle.none")},isUnknown(){return!this.vehiclePresent},otherVehicles(){return this.vehicles.map((t,e)=>({id:e,title:t})).filter(t=>t.title!==this.vehicleTitle)},showOptions(){return!this.isUnknown||this.vehicles.length}},watch:{icon:function(){this.tooltip()}},mounted:function(){this.tooltip()},methods:{changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")},tooltip(){this.$nextTick(()=>{this.$refs.refresh&&new wr(this.$refs.refresh)})}}},tL={class:"d-flex justify-content-between mb-3 align-items-center"},nL={class:"d-flex align-items-center m-0 flex-grow-1 overflow-hidden"},rL=["title"],iL={key:1,class:"me-2 flex-shrink-0"},sL={key:2,class:"me-2 flex-shrink-0"},oL={class:"flex-grow-1 text-truncate vehicle-name"},aL={key:4,class:"flex-grow-1 text-truncate vehicle-name"};function lL(t,e,n,r,i,s){const o=ae("VehicleOptions");return P(),V("div",tL,[y("h4",nL,[s.icon==="refresh"?(P(),V("shopicon-regular-refresh",{key:0,ref:"refresh","data-bs-toggle":"tooltip",title:t.$t("main.vehicle.detectionActive"),class:"me-2 flex-shrink-0 spin"},null,8,rL)):s.icon==="car"?(P(),V("shopicon-regular-car3",iL)):(P(),V("shopicon-regular-cablecharge",sL)),s.showOptions?(P(),Te(o,{key:3,class:"options",vehicles:s.otherVehicles,"is-unknown":s.isUnknown,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle},{default:et(()=>[y("span",oL,F(s.name),1)]),_:1},8,["vehicles","is-unknown","onChangeVehicle","onRemoveVehicle"])):(P(),V("span",aL,F(s.name),1))])])}const Gh=we(eL,[["render",lL],["__scopeId","data-v-f52d1381"]]),cL={name:"VehicleSoc",props:{connected:Boolean,vehiclePresent:Boolean,vehicleSoC:Number,vehicleTargetSoC:Number,enabled:Boolean,charging:Boolean,minSoC:Number,targetSoC:Number,targetEnergy:Number,chargedEnergy:Number,socBasedCharging:Boolean},emits:["target-soc-drag","target-soc-updated"],data:function(){return{selectedTargetSoC:null,interactionStartScreenY:null,tooltip:null}},computed:{vehicleSoCDisplayWidth:function(){return this.socBasedCharging?this.vehicleSoC>=0?this.vehicleSoC:100:this.targetEnergy?100/this.targetEnergy*(this.chargedEnergy/1e3):100},vehicleTargetSoCActive:function(){return this.vehicleTargetSoC>0&&this.vehicleTargetSoC>this.vehicleSoC},targetSliderActive:function(){return!this.vehicleTargetSoC||this.visibleTargetSoC<=this.vehicleTargetSoC},progressColor:function(){return this.minSoCActive?"bg-danger":"bg-primary"},minSoCActive:function(){return this.minSoC>0&&this.vehicleSoCthis.vehicleSoC)return t-this.vehicleSoC}else return 100-this.vehicleSoCDisplayWidth;return null},visibleTargetSoC:function(){return Number(this.selectedTargetSoC||this.targetSoC)}},watch:{targetSoC:function(){this.selectedTargetSoC=this.targetSoC},vehicleTargetSoC:function(){this.updateTooltip()}},mounted:function(){this.updateTooltip()},methods:{changeTargetSoCStart:function(t){t.stopPropagation()},changeTargetSoCEnd:function(t){const e=parseInt(t.target.value,10);e!==this.targetSoC&&this.$emit("target-soc-updated",e)},movedTargetSoC:function(t){let e=parseInt(t.target.value,10);t.stopPropagation();const n=20;return e{this.tooltip&&this.tooltip.dispose(),this.tooltip=new wr(this.$refs.vehicleTargetSoC)})}}},uL={class:"vehicle-soc"},fL={class:"progress"},dL=["title"],hL={class:"target"},mL=["value"];function pL(t,e,n,r,i,s){return P(),V("div",uL,[y("div",fL,[n.connected?(P(),V("div",{key:0,class:De(["progress-bar",{[s.progressColor]:!0,"progress-bar-striped":n.charging,"progress-bar-animated":n.charging}]),role:"progressbar",style:Ct({width:`${s.vehicleSoCDisplayWidth}%`})},null,6)):ve("",!0),s.remainingSoCWidth>0&&n.enabled&&n.connected?(P(),V("div",{key:1,class:De(["progress-bar bg-muted",s.progressColor]),role:"progressbar",style:Ct({width:`${s.remainingSoCWidth}%`,transition:"none"})},null,6)):ve("",!0),Yt(y("div",{ref:"vehicleTargetSoC",class:De(["vehicle-target-soc",{"vehicle-target-soc--active":s.vehicleTargetSoCActive}]),"data-bs-toggle":"tooltip",title:t.$t("main.vehicleSoC.vehicleTarget",{soc:n.vehicleTargetSoC}),style:Ct({left:`${n.vehicleTargetSoC}%`})},null,14,dL),[[Du,n.vehicleTargetSoC]])]),y("div",hL,[n.socBasedCharging&&n.connected?(P(),V("input",{key:0,type:"range",min:"0",max:"100",step:"5",value:s.visibleTargetSoC,class:De(["target-slider",{"target-slider--active":s.targetSliderActive}]),onMousedown:e[0]||(e[0]=(...o)=>s.changeTargetSoCStart&&s.changeTargetSoCStart(...o)),onTouchstart:e[1]||(e[1]=(...o)=>s.changeTargetSoCStart&&s.changeTargetSoCStart(...o)),onInput:e[2]||(e[2]=(...o)=>s.movedTargetSoC&&s.movedTargetSoC(...o)),onMouseup:e[3]||(e[3]=(...o)=>s.changeTargetSoCEnd&&s.changeTargetSoCEnd(...o)),onTouchend:e[4]||(e[4]=(...o)=>s.changeTargetSoCEnd&&s.changeTargetSoCEnd(...o))},null,42,mL)):ve("",!0)])])}const Xh=we(cL,[["render",pL],["__scopeId","data-v-15f37702"]]),gL={name:"VehicleStatus",mixins:[Lt],props:{vehicleSoC:Number,vehicleTargetSoC:Number,minSoC:Number,enabled:Boolean,connected:Boolean,charging:Boolean,targetTime:String,targetTimeProjectedStart:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number},computed:{phaseTimerActive(){return this.charging&&this.phaseRemainingInterpolated>0&&["scale1p","scale3p"].includes(this.phaseAction)},pvTimerActive(){return this.pvRemainingInterpolated>0&&["enable","disable"].includes(this.pvAction)},message:function(){const t=(e,n)=>this.$t(`main.vehicleStatus.${e}`,n);if(!this.connected)return t("disconnected");if(this.minSoC>0&&this.vehicleSoC0&&this.vehicleSoC>=this.vehicleTargetSoC-1?t("vehicleTargetReached",{soc:this.vehicleTargetSoC}):t("waitForVehicle"):this.pvTimerActive&&this.charging&&this.pvAction==="disable"?t("pvDisable",{remaining:this.fmtShortDuration(this.pvRemainingInterpolated,!0)}):this.phaseTimerActive?t(this.phaseAction,{remaining:this.fmtShortDuration(this.phaseRemainingInterpolated,!0)}):this.charging?t("charging"):t("connected")}}},_L={class:"d-block evcc-gray"};function vL(t,e,n,r,i,s){return P(),V("div",_L,F(s.message)+"\xA0",1)}const Qh=we(gL,[["render",vL]]);var bL='';class yL extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=bL}}window.customElements.define("shopicon-filled-plus",yL);var EL='';class wL extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=EL}}window.customElements.define("shopicon-filled-edit",wL);const TL="7:00",Jh="last_target_time",CL={name:"TargetCharge",components:{LabelAndValue:co},mixins:[Lt],props:{id:[String,Number],targetTime:String,targetTimeActive:Boolean,targetSoC:Number,disabled:Boolean},emits:["target-time-updated","target-time-removed"],data:function(){return{selectedDay:null,selectedTime:null}},computed:{targetChargeEnabled:function(){return this.targetTime},selectedTargetTimeValid:function(){return new Datenew Date;this.targetChargeEnabled&&e&&(t=new Date(this.targetTime)),this.selectedDay=this.fmtDayString(t),this.selectedTime=this.fmtTimeString(t)},dayOptions:function(){const t=[],e=new Date,n=[this.$t("main.targetCharge.today"),this.$t("main.targetCharge.tomorrow")];for(let r=0;r<7;r++){const i=e.toLocaleDateString("default",{month:"short",day:"numeric"}),s=n[r]||e.toLocaleDateString("default",{weekday:"long"});t.push({value:e.toISOString().split("T")[0],name:`${i} (${s})`}),e.setDate(e.getDate()+1)}return t},minTime:function(){return new Date().toISOString().split("T")[1].slice(0,-8)},setTargetTime:function(){try{const t=this.selectedTargetTime.getHours(),e=this.selectedTargetTime.getMinutes();window.localStorage[Jh]=`${t}:${e}`}catch(t){console.warn(t)}this.$emit("target-time-updated",this.selectedTargetTime)},removeTargetTime:function(){this.$emit("target-time-removed")}}},gv=t=>(bt("data-v-9e77e67f"),t=t(),yt(),t),SL=["data-bs-target","disabled"],AL={key:0},kL={key:1},xL=["id"],LL={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},NL={class:"modal-content"},OL={class:"modal-header"},PL={class:"modal-title"},ML=gv(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),IL={class:"modal-body"},DL={class:"form-group"},$L={for:"targetTimeLabel",class:"mb-3"},RL={class:"d-flex justify-content-between",style:{"max-width":"350px"}},FL=["value"],VL={key:0,class:"text-danger mb-0"},HL={class:"small mt-3 text-muted mb-0"},BL={class:"text-evcc"},UL=gv(()=>y("a",{href:"https://github.com/evcc-io/evcc/discussions/1433",target:"_blank"},"GitHub Discussions",-1)),jL=Le(". "),WL={class:"modal-footer d-flex justify-content-between"},zL=["disabled"];function KL(t,e,n,r,i,s){const o=ae("LabelAndValue");return P(),V("div",null,[ie(o,{class:De(["root flex-grow-1",n.disabled?"opacity-0":"opacity-1"]),label:t.$t("main.targetCharge.title")},{default:et(()=>[y("button",{class:De(["btn btn-link p-0 value text-center",s.targetChargeEnabled?"evcc-default-text":"text-gray"]),"data-bs-toggle":"modal","data-bs-target":`#${s.modalId}`,disabled:n.disabled},[s.targetChargeEnabled?(P(),V("strong",AL,F(s.targetTimeLabel()),1)):(P(),V("span",kL,F(t.$t("main.targetCharge.setTargetTime")),1))],10,SL)]),_:1},8,["label","class"]),(P(),Te(oo,{to:"body"},[y("div",{id:s.modalId,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[y("div",LL,[y("div",NL,[y("div",OL,[y("h5",PL,F(t.$t("main.targetCharge.modalTitle")),1),ML]),y("form",{onSubmit:e[3]||(e[3]=Ws((...a)=>s.setTargetTime&&s.setTargetTime(...a),["prevent"]))},[y("div",IL,[y("div",DL,[y("label",$L,F(t.$t("main.targetCharge.description",{targetSoC:n.targetSoC})),1),y("div",RL,[Yt(y("select",{"onUpdate:modelValue":e[0]||(e[0]=a=>t.selectedDay=a),class:"form-select me-2",style:{"flex-basis":"60%"}},[(P(!0),V(xe,null,Je(s.dayOptions(),a=>(P(),V("option",{key:a.value,value:a.value},F(a.name),9,FL))),128))],512),[[$o,t.selectedDay]]),Yt(y("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.selectedTime=a),type:"time",class:"form-control ms-2",style:{"flex-basis":"40%"},step:60*5,required:""},null,512),[[o2,t.selectedTime]])])]),s.selectedTargetTimeValid?ve("",!0):(P(),V("p",VL,F(t.$t("main.targetCharge.targetIsInThePast")),1)),y("p",HL,[y("strong",BL,F(t.$t("main.targetCharge.experimentalLabel"))+": ",1),Le(" "+F(t.$t("main.targetCharge.experimentalText"))+" ",1),UL,jL])]),y("div",WL,[y("button",{type:"button",class:"btn btn-outline-secondary","data-bs-dismiss":"modal",onClick:e[2]||(e[2]=(...a)=>s.removeTargetTime&&s.removeTargetTime(...a))},F(t.$t("main.targetCharge.remove")),1),y("button",{type:"submit",class:"btn btn-primary","data-bs-dismiss":"modal",disabled:!s.selectedTargetTimeValid},F(t.$t("main.targetCharge.activate")),9,zL)])],32)])])],8,xL)]))])}const Zh=we(CL,[["render",KL],["__scopeId","data-v-9e77e67f"]]),YL={name:"TargetSoCSelect",components:{LabelAndValue:co,AnimatedNumber:ri},props:{targetSoc:Number,rangePerSoc:Number},emits:["target-soc-updated"],computed:{options:function(){const t=[];for(let e=20;e<=100;e+=5){let n=this.formatSoC(e);const r=this.estimatedRange(e);r&&(n+=` (${this.formatKm(r)})`),t.push({soc:e,text:n})}return t},estimatedTargetRange:function(){return this.estimatedRange(this.targetSoc)}},methods:{change:function(t){return this.$emit("target-soc-updated",parseInt(t.target.value,10))},estimatedRange:function(t){return this.rangePerSoc?Math.round(t*this.rangePerSoc):null},formatSoC:function(t){return`${Math.round(t)}%`},formatKm:function(t){return`${Math.round(t)} km`}}},qL={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},GL={class:"position-relative"},XL=["value"],QL=["value"],JL={class:"text-decoration-underline"},ZL={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function eN(t,e,n,r,i,s){const o=ae("AnimatedNumber"),a=ae("LabelAndValue");return P(),Te(a,{class:"flex-grow-1",label:t.$t("main.vehicle.targetSoC"),align:"end"},{default:et(()=>[y("h3",qL,[y("label",GL,[y("select",{value:n.targetSoc,class:"custom-select",onChange:e[0]||(e[0]=(...l)=>s.change&&s.change(...l))},[(P(!0),V(xe,null,Je(s.options,({soc:l,text:c})=>(P(),V("option",{key:l,value:l},F(c),9,QL))),128))],40,XL),y("span",JL,[ie(o,{to:n.targetSoc,format:s.formatSoC},null,8,["to","format"])])]),s.estimatedTargetRange?(P(),V("div",ZL,[ie(o,{to:s.estimatedTargetRange,format:s.formatKm},null,8,["to","format"])])):ve("",!0)])]),_:1},8,["label"])}const tN=we(YL,[["render",eN],["__scopeId","data-v-c40d1ba1"]]),nN={name:"TargetEnergySelect",components:{LabelAndValue:co,AnimatedNumber:ri},mixins:[Lt],props:{targetEnergy:Number,socPerKwh:Number,chargedEnergy:Number,vehicleCapacity:Number},emits:["target-energy-updated"],computed:{maxEnergy:function(){return this.vehicleCapacity||100},steps:function(){return this.maxEnergy<25?1:this.maxEnergy<50?2:5},options:function(){const t=[];for(let e=0;e<=this.maxEnergy;e+=this.steps){let n=this.formatKWh(e);const r=e[y("h3",rN,[y("label",iN,[y("select",{value:n.targetEnergy,class:"custom-select",onChange:e[0]||(e[0]=(...l)=>s.change&&s.change(...l))},[(P(!0),V(xe,null,Je(s.options,({energy:l,text:c,disabled:u})=>(P(),V("option",{key:l,value:l,disabled:u},F(c),9,oN))),128))],40,sN),y("span",{class:De(["text-decoration-underline",{"text-gray fw-normal":!n.targetEnergy}])},[ie(o,{to:n.targetEnergy,format:s.formatKWh,"no-animation":!n.targetEnergy},null,8,["to","format","no-animation"])],2)]),s.estimatedTargetSoC?(P(),V("div",aN,[ie(o,{to:s.estimatedTargetSoC,format:s.formatSoC},null,8,["to","format"])])):ve("",!0)])]),_:1},8,["label"])}const cN=we(nN,[["render",lN],["__scopeId","data-v-ced549d0"]]),uN={name:"Vehicle",components:{VehicleTitle:Gh,VehicleSoc:Xh,VehicleStatus:Qh,LabelAndValue:co,TargetCharge:Zh,TargetSoCSelect:tN,TargetEnergySelect:cN},mixins:[Wa,Lt],props:{id:[String,Number],connected:Boolean,vehiclePresent:Boolean,vehicleSoC:Number,vehicleTargetSoC:Number,enabled:Boolean,charging:Boolean,minSoC:Number,vehicleDetectionActive:Boolean,vehicleRange:Number,vehicleTitle:String,vehicleCapacity:Number,socBasedCharging:Boolean,targetTimeActive:Boolean,targetTime:String,targetTimeProjectedStart:String,targetSoC:Number,targetEnergy:Number,chargedEnergy:Number,mode:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number,parked:Boolean,vehicles:Array},emits:["target-time-removed","target-time-updated","target-soc-updated","target-energy-updated","change-vehicle","remove-vehicle"],data(){return{displayTargetSoC:this.targetSoC}},computed:{vehicleSocProps:function(){return this.collectProps(Xh)},vehicleStatus:function(){return this.collectProps(Qh)},vehicleTitleProps:function(){return this.collectProps(Gh)},targetCharge:function(){return this.collectProps(Zh)},rangePerSoC:function(){return this.vehicleSoC>10&&this.vehicleRange?this.vehicleRange/this.vehicleSoC:null},socPerKwh:function(){return this.vehicleCapacity>0?100/this.vehicleCapacity:null},chargedSoC:function(){const t=this.socPerKwh*(this.chargedEnergy/1e3);return t>1?`+${Math.round(t)}%`:null},targetChargeDisabled:function(){return!this.connected||!["pv","minpv"].includes(this.mode)}},watch:{targetSoC:function(){this.displayTargetSoC=this.targetSoC}},methods:{targetSocDrag:function(t){this.displayTargetSoC=t},targetSocUpdated:function(t){this.displayTargetSoC=t,this.$emit("target-soc-updated",t)},targetEnergyUpdated:function(t){this.$emit("target-energy-updated",t)},setTargetTime:function(t){this.$emit("target-time-updated",t)},removeTargetTime:function(){this.$emit("target-time-removed")},changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")}}},fN=t=>(bt("data-v-915b5a7e"),t=t(),yt(),t),dN={class:"vehicle pt-4"},hN={class:"details d-flex flex-wrap justify-content-between"},mN={key:1,class:"d-flex justify-content-start"},pN=fN(()=>y("small",null,"vor 5 Stunden",-1)),gN=[pN];function _N(t,e,n,r,i,s){const o=ae("VehicleTitle"),a=ae("VehicleStatus"),l=ae("VehicleSoc"),c=ae("LabelAndValue"),u=ae("TargetCharge"),d=ae("TargetSoCSelect"),f=ae("TargetEnergySelect");return P(),V("div",dN,[ie(o,Dt(s.vehicleTitleProps,{onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onChangeVehicle","onRemoveVehicle"]),n.parked?ve("",!0):(P(),Te(a,Dt({key:0},s.vehicleStatus,{class:"mb-2"}),null,16)),ie(l,Dt(s.vehicleSocProps,{class:"mt-2 mb-4",onTargetSocUpdated:s.targetSocUpdated,onTargetSocDrag:s.targetSocDrag}),null,16,["onTargetSocUpdated","onTargetSocDrag"]),y("div",hN,[n.socBasedCharging?(P(),Te(c,{key:0,class:"flex-grow-1",label:t.$t("main.vehicle.vehicleSoC"),value:n.vehicleSoC?`${n.vehicleSoC}%`:"--",extraValue:n.vehicleRange?`${n.vehicleRange} km`:null,align:"start"},null,8,["label","value","extraValue"])):(P(),Te(c,{key:1,class:"flex-grow-1",label:t.$t("main.loadpoint.charged"),value:t.fmtKWh(n.chargedEnergy),extraValue:s.chargedSoC,align:"start"},null,8,["label","value","extraValue"])),n.socBasedCharging?(P(),Te(u,Dt({key:2,class:"flex-grow-1 text-center target-charge"},s.targetCharge,{disabled:s.targetChargeDisabled,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime}),null,16,["disabled","onTargetTimeUpdated","onTargetTimeRemoved"])):ve("",!0),n.socBasedCharging?(P(),Te(d,{key:3,class:"flex-grow-1 text-end","target-soc":i.displayTargetSoC,"range-per-soc":s.rangePerSoC,onTargetSocUpdated:s.targetSocUpdated},null,8,["target-soc","range-per-soc","onTargetSocUpdated"])):(P(),Te(f,{key:4,class:"flex-grow-1 text-end","target-energy":n.targetEnergy,"soc-per-kwh":s.socPerKwh,"charged-energy":n.chargedEnergy,"vehicle-capacity":n.vehicleCapacity,onTargetEnergyUpdated:s.targetEnergyUpdated},null,8,["target-energy","soc-per-kwh","charged-energy","vehicle-capacity","onTargetEnergyUpdated"]))]),t.$hiddenFeatures?(P(),V("div",mN,gN)):ve("",!0)])}const Rc=we(uN,[["render",_N],["__scopeId","data-v-915b5a7e"]]),vN={name:"Phases",props:{chargeCurrent:{type:Number},chargeCurrents:{type:Array},phasesActive:{type:Number},minCurrent:{type:Number},maxCurrent:{type:Number}},methods:{inactive(t){return t>this.phasesActive},targetWidth(){let t=Math.min(Math.max(this.minCurrent,this.chargeCurrent),this.maxCurrent);return 100/this.maxCurrent*t},realWidth(t){if(this.chargeCurrents){const e=this.chargeCurrents[t-1]||0;return 100/this.maxCurrent*e}return this.targetWidth()}}},bN={class:"phases d-flex justify-content-between"};function yN(t,e,n,r,i,s){return P(),V("div",bN,[(P(),V(xe,null,Je([1,2,3],o=>y("div",{key:o,class:De(["phase me-1",{inactive:s.inactive(o)}])},[y("div",{class:"target",style:Ct({width:`${s.targetWidth()}%`})},null,4),y("div",{class:"real",style:Ct({width:`${s.realWidth(o)}%`})},null,4)],2)),64))])}const em=we(vN,[["render",yN],["__scopeId","data-v-0709e49e"]]),EN={name:"LoadpointSettingsButton",props:{id:[String,Number]}},wN=["data-bs-target"],TN=y("shopicon-regular-adjust",{size:"s"},null,-1),CN=[TN];function SN(t,e,n,r,i,s){return P(),V("button",{type:"button","data-bs-toggle":"modal","data-bs-target":`#loadpointSettingsModal_${n.id}`,class:"btn btn-sm btn-outline-secondary position-relative border-0 p-2 evcc-gray"},CN,8,wN)}const AN=we(EN,[["render",SN]]);var kN='';class xN extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=kN}}window.customElements.define("shopicon-bold-lightning",xN);var LN='';class NN extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=LN}}window.customElements.define("shopicon-bold-car3",NN);const ko=230,ON={name:"LoadpointSettingsModal",mixins:[Lt],props:{id:[String,Number],phasesConfigured:Number,minSoC:Number,maxCurrent:Number,minCurrent:Number,title:String},emits:["phasesconfigured-updated","maxcurrent-updated","mincurrent-updated","minsoc-updated"],data:function(){return{selectedMaxCurrent:this.maxCurrent,selectedMinCurrent:this.minCurrent,selectedPhases:this.phasesConfigured,selectedMinSoC:this.minSoC}},computed:{maxPower1p:function(){return this.fmtKw(this.maxCurrent*ko)},minPower1p:function(){return this.fmtKw(this.minCurrent*ko)},maxPower3p:function(){return this.fmtKw(this.maxCurrent*ko*3)},minPower3p:function(){return this.fmtKw(this.minCurrent*ko*3)},maxPower:function(){return this.phasesConfigured===1?this.maxPower1p:this.maxPower3p},minPower:function(){return this.phasesConfigured===3?this.minPower3p:this.minPower1p},showConfigurablePhases:function(){return[0,1,3].includes(this.phasesConfigured)},showCurrentSettings:function(){return this.$hiddenFeatures},showMinSoCSettings:function(){return this.$hiddenFeatures}},watch:{maxCurrent:function(t){this.selectedMaxCurrent=t},minCurrent:function(t){this.selectedMinCurrent=t},phasesConfigured:function(t){this.selectedPhases=t},minSoC:function(t){this.selectedMinSoC=t}},methods:{formId:function(t){return`loadpoint_${this.id}_${t}`},changeMaxCurrent:function(){this.$emit("maxcurrent-updated",this.selectedMaxCurrent)},changeMinCurrent:function(){this.$emit("mincurrent-updated",this.selectedMinCurrent)},changePhasesConfigured:function(){this.$emit("phasesconfigured-updated",this.selectedPhases)},changeMinSoC:function(){this.$emit("minsoc-updated",this.selectedMinSoC)},currentOptions:function(t,e=16){const n=[],r=t?32:this.maxCurrent,i=t?this.minCurrent:6;for(let s=r;s>=i;s--){let o=`${s} A`;s===e&&(o+=` (${this.$t("main.loadpointSettings.default")})`),n.push({value:s,name:o})}return n}}},ff=t=>(bt("data-v-c8fc2df3"),t=t(),yt(),t),PN=["id"],MN={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},IN={class:"modal-content"},DN={class:"modal-header"},$N={class:"modal-title"},RN=ff(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),FN={class:"modal-body"},VN={class:"container"},HN={key:0,class:"d-flex align-items-center mb-3 mt-0 text-evcc"},BN=ff(()=>y("shopicon-bold-car3",{class:"ms-2"},null,-1)),UN={key:1,class:"mb-3 row"},jN=["for"],WN={class:"col-sm-8 pe-0"},zN=["id"],KN=["value"],YN={key:2,class:"d-flex align-items-center mb-3 mt-4 text-evcc"},qN=ff(()=>y("shopicon-bold-lightning",{class:"ms-1"},null,-1)),GN={key:3,class:"mb-3 row"},XN=["for"],QN={class:"col-sm-8 pe-0"},JN={class:"form-check"},ZN=["id","name"],e8=["for"],t8={class:"form-check"},n8=["id","name"],r8=["for"],i8={class:"form-check"},s8=["id","name"],o8=["for"],a8={key:4,class:"mb-3 row"},l8=["for"],c8={class:"col-sm-8 pe-0 d-flex align-items-center"},u8=["id"],f8=["value"],d8={class:"ms-3"},h8={key:5,class:"mb-3 row"},m8=["for"],p8={class:"col-sm-8 pe-0 d-flex align-items-center"},g8=["id"],_8=["value"],v8={class:"ms-3"},b8={class:"small mt-3 text-muted mb-0"},y8={class:"text-evcc"};function E8(t,e,n,r,i,s){return P(),Te(oo,{to:"body"},[y("div",{id:`loadpointSettingsModal_${n.id}`,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[y("div",MN,[y("div",IN,[y("div",DN,[y("h5",$N,F(t.$t("main.loadpointSettings.title",[n.title])),1),RN]),y("div",FN,[y("div",VN,[s.showMinSoCSettings?(P(),V("h4",HN,[Le(F(t.$t("main.loadpointSettings.vehicle"))+" ",1),BN])):ve("",!0),s.showMinSoCSettings?(P(),V("div",UN,[y("label",{for:s.formId("minsoc"),class:"col-sm-4 col-form-label pt-0 pt-sm-1"},F(t.$t("main.loadpointSettings.minSoC.label")),9,jN),y("div",WN,[Yt(y("select",{id:s.formId("minsoc"),"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedMinSoC=o),class:"form-select form-select-sm mb-2 w-50",onChange:e[1]||(e[1]=(...o)=>s.changeMinSoC&&s.changeMinSoC(...o))},[(P(),V(xe,null,Je([0,5,10,15,20,25,30,35,40,45,50],o=>y("option",{key:o,value:o},F(o?`${o}%`:"--"),9,KN)),64))],40,zN),[[$o,t.selectedMinSoC,void 0,{number:!0}]]),y("small",null,F(t.$t("main.loadpointSettings.minSoC.description",[t.selectedMinSoC||"x"])),1)])])):ve("",!0),s.showConfigurablePhases||s.showCurrentSettings?(P(),V("h4",YN,[Le(F(t.$t("main.loadpointSettings.currents"))+" ",1),qN])):ve("",!0),s.showConfigurablePhases?(P(),V("div",GN,[y("label",{for:s.formId("phases_0"),class:"col-sm-4 col-form-label pt-0"},F(t.$t("main.loadpointSettings.phasesConfigured.label")),9,XN),y("div",QN,[y("div",JN,[Yt(y("input",{id:s.formId("phases_0"),"onUpdate:modelValue":e[2]||(e[2]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:0,onChange:e[3]||(e[3]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,ZN),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_0")},F(t.$t("main.loadpointSettings.phasesConfigured.phases_0")),9,e8)]),y("div",t8,[Yt(y("input",{id:s.formId("phases_1"),"onUpdate:modelValue":e[4]||(e[4]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:1,onChange:e[5]||(e[5]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,n8),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_1")},[Le(F(t.$t("main.loadpointSettings.phasesConfigured.phases_1"))+" ",1),y("small",null,F(t.$t("main.loadpointSettings.phasesConfigured.phases_1_hint",{min:s.minPower1p,max:s.maxPower1p})),1)],8,r8)]),y("div",i8,[Yt(y("input",{id:s.formId("phases_3"),"onUpdate:modelValue":e[6]||(e[6]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:3,onChange:e[7]||(e[7]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,s8),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_3")},[Le(F(t.$t("main.loadpointSettings.phasesConfigured.phases_3"))+" ",1),y("small",null,F(t.$t("main.loadpointSettings.phasesConfigured.phases_3_hint",{min:s.minPower3p,max:s.maxPower3p})),1)],8,o8)])])])):ve("",!0),t.$hiddenFeatures?(P(),V("div",a8,[y("label",{for:s.formId("maxcurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},F(t.$t("main.loadpointSettings.maxCurrent.label")),9,l8),y("div",c8,[Yt(y("select",{id:s.formId("maxcurrent"),"onUpdate:modelValue":e[8]||(e[8]=o=>t.selectedMaxCurrent=o),class:"form-select form-select-sm w-50",onChange:e[9]||(e[9]=(...o)=>s.changeMaxCurrent&&s.changeMaxCurrent(...o))},[(P(!0),V(xe,null,Je(s.currentOptions(!0,16),({value:o,name:a})=>(P(),V("option",{key:o,value:o},F(a),9,f8))),128))],40,u8),[[$o,t.selectedMaxCurrent,void 0,{number:!0}]]),y("small",d8,"~ "+F(s.maxPower),1)])])):ve("",!0),t.$hiddenFeatures?(P(),V("div",h8,[y("label",{for:s.formId("mincurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},F(t.$t("main.loadpointSettings.minCurrent.label")),9,m8),y("div",p8,[Yt(y("select",{id:s.formId("mincurrent"),"onUpdate:modelValue":e[10]||(e[10]=o=>t.selectedMinCurrent=o),class:"form-select form-select-sm w-50",onChange:e[11]||(e[11]=(...o)=>s.changeMinCurrent&&s.changeMinCurrent(...o))},[(P(!0),V(xe,null,Je(s.currentOptions(!1,6),({value:o,name:a})=>(P(),V("option",{key:o,value:o},F(a),9,_8))),128))],40,g8),[[$o,t.selectedMinCurrent,void 0,{number:!0}]]),y("small",v8,"~ "+F(s.minPower),1)])])):ve("",!0)]),y("p",b8,[y("strong",y8,F(t.$t("main.loadpointSettings.disclaimerHint")),1),Le(" "+F(t.$t("main.loadpointSettings.disclaimerText")),1)])])])])],8,PN)])}const tm=we(ON,[["render",E8],["__scopeId","data-v-c8fc2df3"]]),w8={name:"Loadpoint",components:{Mode:Ix,Vehicle:Rc,Phases:em,LabelAndValue:co,LoadpointSettingsButton:AN,LoadpointSettingsModal:tm},mixins:[Lt,Wa],props:{id:Number,single:Boolean,title:String,mode:String,targetSoC:Number,targetEnergy:Number,remoteDisabled:Boolean,remoteDisabledSource:String,chargeDuration:Number,charging:Boolean,connected:Boolean,enabled:Boolean,vehicleDetectionActive:Boolean,vehiclePresent:Boolean,vehicleRange:Number,vehicleSoC:Number,vehicleTitle:String,vehicleTargetSoC:Number,vehicleCapacity:Number,vehicleFeatureOffline:Boolean,vehicles:Array,minSoC:Number,targetTime:String,targetTimeActive:Boolean,targetTimeProjectedStart:String,vehicleProviderLoggedIn:Boolean,vehicleProviderLoginPath:String,vehicleProviderLogoutPath:String,chargePower:Number,chargedEnergy:Number,climater:String,chargeRemainingDuration:Number,phases:Number,phasesConfigured:Number,minCurrent:Number,maxCurrent:Number,phasesActive:Number,chargeCurrent:Number,connectedDuration:Number,chargeCurrents:Array,chargeConfigured:Boolean,chargeRemainingEnergy:Number,phaseAction:String,phaseRemaining:Number,pvRemaining:Number,pvAction:String},data(){return{tickerHandler:null,phaseRemainingInterpolated:this.phaseRemaining,pvRemainingInterpolated:this.pvRemaining,chargeDurationInterpolated:this.chargeDuration,chargeRemainingDurationInterpolated:this.chargeRemainingDuration}},computed:{phasesProps:function(){return this.collectProps(em)},settingsModal:function(){return this.collectProps(tm)},settingsButtonVisible:function(){return this.$hiddenFeatures||[0,1,3].includes(this.phasesConfigured)},vehicle:function(){return this.collectProps(Rc)},showChargingIndicator:function(){return this.charging&&this.chargePower>0},socBasedCharging:function(){return!this.vehicleFeatureOffline&&this.vehiclePresent}},watch:{phaseRemaining(){this.phaseRemainingInterpolated=this.phaseRemaining},pvRemaining(){this.pvRemainingInterpolated=this.pvRemaining},chargeDuration(){this.chargeDurationInterpolated=this.chargeDuration},chargeRemainingDuration(){this.chargeRemainingDurationInterpolated=this.chargeRemainingDuration}},mounted(){this.tickerHandler=setInterval(this.tick,1e3)},unmounted(){clearInterval(this.tickerHandler)},methods:{tick(){this.phaseRemainingInterpolated>0&&this.phaseRemainingInterpolated--,this.pvRemainingInterpolated>0&&this.pvRemainingInterpolated--,this.chargeDurationInterpolated>0&&this.charging&&this.chargeDurationInterpolated++,this.chargeRemainingDurationInterpolated>0&&this.charging&&this.chargeRemainingDurationInterpolated--},apiPath:function(t){return"loadpoints/"+this.id+"/"+t},setTargetMode:function(t){at.post(this.apiPath("mode")+"/"+t)},setTargetSoC:function(t){at.post(this.apiPath("targetsoc")+"/"+t)},setTargetEnergy:function(t){at.post(this.apiPath("targetenergy")+"/"+t)},setMaxCurrent:function(t){at.post(this.apiPath("maxcurrent")+"/"+t)},setMinCurrent:function(t){at.post(this.apiPath("mincurrent")+"/"+t)},setPhasesConfigured:function(t){at.post(this.apiPath("phases")+"/"+t)},setMinSoC:function(t){at.post(this.apiPath("minsoc")+"/"+t)},setTargetTime:function(t){at.post(`${this.apiPath("targetcharge")}/${this.targetSoC}/${t.toISOString()}`)},removeTargetTime:function(){at.delete(this.apiPath("targetcharge"))},changeVehicle(t){at.post(this.apiPath("vehicle")+`/${t}`)},removeVehicle(){at.delete(this.apiPath("vehicle"))},fmtkWUnit(t){const e=t==0||t>=1e3;return this.fmtKw(t,e)}}},T8=t=>(bt("data-v-3d01cac9"),t=t(),yt(),t),C8={class:"loadpoint pt-4 pb-2 px-3 px-sm-4 mx-2 mx-sm-0"},S8={class:"d-block d-sm-flex justify-content-between align-items-center mb-3"},A8={class:"d-flex justify-content-between align-items-center mb-3"},k8={class:"me-2 mb-0 text-truncate"},x8={class:"mb-3 d-flex align-items-center"},L8={class:"details d-flex align-items-start mb-3"},N8={class:"d-flex align-items-center"},O8=T8(()=>y("hr",{class:"divider"},null,-1));function P8(t,e,n,r,i,s){const o=ae("LoadpointSettingsButton"),a=ae("Mode"),l=ae("LoadpointSettingsModal"),c=ae("LabelAndValue"),u=ae("Phases"),d=ae("Vehicle");return P(),V("div",C8,[y("div",S8,[y("div",A8,[y("h3",k8,F(n.title||t.$t("main.loadpoint.fallbackName")),1),s.settingsButtonVisible?(P(),Te(o,{key:0,id:n.id,class:"d-block d-sm-none"},null,8,["id"])):ve("",!0)]),y("div",x8,[ie(a,{class:"flex-grow-1",mode:n.mode,onUpdated:s.setTargetMode},null,8,["mode","onUpdated"]),s.settingsButtonVisible?(P(),Te(o,{key:0,id:n.id,class:"d-none d-sm-block ms-2"},null,8,["id"])):ve("",!0)])]),ie(l,Dt(s.settingsModal,{onMaxcurrentUpdated:s.setMaxCurrent,onMincurrentUpdated:s.setMinCurrent,onPhasesconfiguredUpdated:s.setPhasesConfigured,onMinsocUpdated:s.setMinSoC}),null,16,["onMaxcurrentUpdated","onMincurrentUpdated","onPhasesconfiguredUpdated","onMinsocUpdated"]),n.remoteDisabled?(P(),V("div",{key:0,class:De(["alert alert-warning my-4 py-2",`${n.remoteDisabled==="hard"?"alert-danger":"alert-warning"}`]),role:"alert"},F(t.$t(n.remoteDisabled==="hard"?"main.loadpoint.remoteDisabledHard":"main.loadpoint.remoteDisabledSoft",{source:n.remoteDisabledSource})),3)):ve("",!0),y("div",L8,[y("div",null,[y("div",N8,[ie(c,{label:t.$t("main.loadpoint.power"),value:n.chargePower,valueFmt:s.fmtkWUnit,class:"mb-2",align:"start"},null,8,["label","value","valueFmt"]),y("shopicon-regular-lightning",{class:De(["text-evcc opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]),size:"m"},null,2)]),ie(u,Dt(s.phasesProps,{class:["opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]}),null,16,["class"])]),Yt(ie(c,{label:t.$t("main.loadpoint.charged"),value:t.fmtKWh(n.chargedEnergy),align:"center"},null,8,["label","value"]),[[Du,s.socBasedCharging]]),i.chargeRemainingDurationInterpolated?(P(),Te(c,{key:0,label:t.$t("main.loadpoint.remaining"),value:` + `,document.head.appendChild(t)}var rA='';class iA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=rA}}window.customElements.define("shopicon-regular-arrowup",iA);var sA='';class oA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=sA}}window.customElements.define("shopicon-regular-menu",oA);var aA='';class lA extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=aA}}window.customElements.define("shopicon-regular-newtab",lA);var q_={exports:{}},ef={exports:{}},G_=function(e,n){return function(){for(var i=new Array(arguments.length),s=0;s"u"}function uA(t){return t!==null&&!da(t)&&t.constructor!==null&&!da(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var X_=ti("ArrayBuffer");function fA(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&X_(t.buffer),e}function dA(t){return typeof t=="string"}function hA(t){return typeof t=="number"}function Q_(t){return t!==null&&typeof t=="object"}function Uo(t){if(nf(t)!=="object")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}var mA=ti("Date"),pA=ti("File"),gA=ti("Blob"),_A=ti("FileList");function sf(t){return tf.call(t)==="[object Function]"}function vA(t){return Q_(t)&&sf(t.pipe)}function bA(t){var e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||tf.call(t)===e||sf(t.toString)&&t.toString()===e)}var yA=ti("URLSearchParams");function EA(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function wA(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function of(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),rf(t))for(var n=0,r=t.length;n0;)s=r[i],o[s]||(e[s]=t[s],o[s]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e}function kA(t,e,n){t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return r!==-1&&r===n}function xA(t){if(!t)return null;var e=t.length;if(da(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n}var LA=function(t){return function(e){return t&&e instanceof t}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ut={isArray:rf,isArrayBuffer:X_,isBuffer:uA,isFormData:bA,isArrayBufferView:fA,isString:dA,isNumber:hA,isObject:Q_,isPlainObject:Uo,isUndefined:da,isDate:mA,isFile:pA,isBlob:gA,isFunction:sf,isStream:vA,isURLSearchParams:yA,isStandardBrowserEnv:wA,forEach:of,merge:Mc,extend:TA,trim:EA,stripBOM:CA,inherits:SA,toFlatObject:AA,kindOf:nf,kindOfTest:ti,endsWith:kA,toArray:xA,isTypedArray:LA,isFileList:_A},fi=ut;function Th(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var J_=function(e,n,r){if(!n)return e;var i;if(r)i=r(n);else if(fi.isURLSearchParams(n))i=n.toString();else{var s=[];fi.forEach(n,function(l,c){l===null||typeof l>"u"||(fi.isArray(l)?c=c+"[]":l=[l],fi.forEach(l,function(d){fi.isDate(d)?d=d.toISOString():fi.isObject(d)&&(d=JSON.stringify(d)),s.push(Th(c)+"="+Th(d))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},NA=ut;function Ha(){this.handlers=[]}Ha.prototype.use=function(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Ha.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Ha.prototype.forEach=function(e){NA.forEach(this.handlers,function(r){r!==null&&e(r)})};var OA=Ha,PA=ut,MA=function(e,n){PA.forEach(e,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=i,delete e[s])})},Z_=ut;function Xi(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Z_.inherits(Xi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ev=Xi.prototype,tv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){tv[t]={value:t}});Object.defineProperties(Xi,tv);Object.defineProperty(ev,"isAxiosError",{value:!0});Xi.from=function(t,e,n,r,i,s){var o=Object.create(ev);return Z_.toFlatObject(t,o,function(l){return l!==Error.prototype}),Xi.call(o,t.message,e,n,r,i),o.name=t.name,s&&Object.assign(o,s),o};var os=Xi,nv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on=ut;function IA(t,e){e=e||new FormData;var n=[];function r(s){return s===null?"":on.isDate(s)?s.toISOString():on.isArrayBuffer(s)||on.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function i(s,o){if(on.isPlainObject(s)||on.isArray(s)){if(n.indexOf(s)!==-1)throw Error("Circular reference detected in "+o);n.push(s),on.forEach(s,function(l,c){if(!on.isUndefined(l)){var u=o?o+"."+c:c,d;if(l&&!o&&typeof l=="object"){if(on.endsWith(c,"{}"))l=JSON.stringify(l);else if(on.endsWith(c,"[]")&&(d=on.toArray(l))){d.forEach(function(f){!on.isUndefined(f)&&e.append(u,r(f))});return}}i(l,u)}}),n.pop()}else e.append(o,r(s))}return i(t),e}var rv=IA,xl,Ch;function DA(){if(Ch)return xl;Ch=1;var t=os;return xl=function(n,r,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?n(i):r(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},xl}var Ll,Sh;function $A(){if(Sh)return Ll;Sh=1;var t=ut;return Ll=t.isStandardBrowserEnv()?function(){return{write:function(r,i,s,o,a,l){var c=[];c.push(r+"="+encodeURIComponent(i)),t.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),t.isString(o)&&c.push("path="+o),t.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ll}var RA=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},FA=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},VA=RA,HA=FA,iv=function(e,n){return e&&!VA(n)?HA(e,n):n},Nl,Ah;function BA(){if(Ah)return Nl;Ah=1;var t=ut,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Nl=function(r){var i={},s,o,a;return r&&t.forEach(r.split(` +`),function(c){if(a=c.indexOf(":"),s=t.trim(c.substr(0,a)).toLowerCase(),o=t.trim(c.substr(a+1)),s){if(i[s]&&e.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([o]):i[s]=i[s]?i[s]+", "+o:o}}),i},Nl}var Ol,kh;function UA(){if(kh)return Ol;kh=1;var t=ut;return Ol=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function s(o){var a=o;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=s(window.location.href),function(a){var l=t.isString(a)?s(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),Ol}var Pl,xh;function Ba(){if(xh)return Pl;xh=1;var t=os,e=ut;function n(r){t.call(this,r==null?"canceled":r,t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(n,t,{__CANCEL__:!0}),Pl=n,Pl}var Ml,Lh;function jA(){return Lh||(Lh=1,Ml=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),Ml}var Il,Nh;function Oh(){if(Nh)return Il;Nh=1;var t=ut,e=DA(),n=$A(),r=J_,i=iv,s=BA(),o=UA(),a=nv,l=os,c=Ba(),u=jA();return Il=function(f){return new Promise(function(w,g){var E=f.data,_=f.headers,C=f.responseType,S;function v(){f.cancelToken&&f.cancelToken.unsubscribe(S),f.signal&&f.signal.removeEventListener("abort",S)}t.isFormData(E)&&t.isStandardBrowserEnv()&&delete _["Content-Type"];var b=new XMLHttpRequest;if(f.auth){var k=f.auth.username||"",x=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";_.Authorization="Basic "+btoa(k+":"+x)}var N=i(f.baseURL,f.url);b.open(f.method.toUpperCase(),r(N,f.params,f.paramsSerializer),!0),b.timeout=f.timeout;function O(){if(!!b){var Q="getAllResponseHeaders"in b?s(b.getAllResponseHeaders()):null,ee=!C||C==="text"||C==="json"?b.responseText:b.response,I={data:ee,status:b.status,statusText:b.statusText,headers:Q,config:f,request:b};e(function(Y){w(Y),v()},function(Y){g(Y),v()},I),b=null}}if("onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(O)},b.onabort=function(){!b||(g(new l("Request aborted",l.ECONNABORTED,f,b)),b=null)},b.onerror=function(){g(new l("Network Error",l.ERR_NETWORK,f,b,b)),b=null},b.ontimeout=function(){var ee=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",I=f.transitional||a;f.timeoutErrorMessage&&(ee=f.timeoutErrorMessage),g(new l(ee,I.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,b)),b=null},t.isStandardBrowserEnv()){var B=(f.withCredentials||o(N))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;B&&(_[f.xsrfHeaderName]=B)}"setRequestHeader"in b&&t.forEach(_,function(ee,I){typeof E>"u"&&I.toLowerCase()==="content-type"?delete _[I]:b.setRequestHeader(I,ee)}),t.isUndefined(f.withCredentials)||(b.withCredentials=!!f.withCredentials),C&&C!=="json"&&(b.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&b.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(S=function(Q){!b||(g(!Q||Q&&Q.type?new c:Q),b.abort(),b=null)},f.cancelToken&&f.cancelToken.subscribe(S),f.signal&&(f.signal.aborted?S():f.signal.addEventListener("abort",S))),E||(E=null);var q=u(N);if(q&&["http","https","file"].indexOf(q)===-1){g(new l("Unsupported protocol "+q+":",l.ERR_BAD_REQUEST,f));return}b.send(E)})},Il}var Dl,Ph;function WA(){return Ph||(Ph=1,Dl=null),Dl}var rt=ut,Mh=MA,Ih=os,zA=nv,KA=rv,YA={"Content-Type":"application/x-www-form-urlencoded"};function Dh(t,e){!rt.isUndefined(t)&&rt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function qA(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Oh()),t}function GA(t,e,n){if(rt.isString(t))try{return(e||JSON.parse)(t),rt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var Ua={transitional:zA,adapter:qA(),transformRequest:[function(e,n){if(Mh(n,"Accept"),Mh(n,"Content-Type"),rt.isFormData(e)||rt.isArrayBuffer(e)||rt.isBuffer(e)||rt.isStream(e)||rt.isFile(e)||rt.isBlob(e))return e;if(rt.isArrayBufferView(e))return e.buffer;if(rt.isURLSearchParams(e))return Dh(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r=rt.isObject(e),i=n&&n["Content-Type"],s;if((s=rt.isFileList(e))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return KA(s?{"files[]":e}:e,o&&new o)}else if(r||i==="application/json")return Dh(n,"application/json"),GA(e);return e}],transformResponse:[function(e){var n=this.transitional||Ua.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,s=!r&&this.responseType==="json";if(s||i&&rt.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Ih.from(o,Ih.ERR_BAD_RESPONSE,this,null,this.response):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:WA()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rt.forEach(["delete","get","head"],function(e){Ua.headers[e]={}});rt.forEach(["post","put","patch"],function(e){Ua.headers[e]=rt.merge(YA)});var af=Ua,XA=ut,QA=af,JA=function(e,n,r){var i=this||QA;return XA.forEach(r,function(o){e=o.call(i,e,n)}),e},$l,$h;function sv(){return $h||($h=1,$l=function(e){return!!(e&&e.__CANCEL__)}),$l}var Rh=ut,Rl=JA,ZA=sv(),ek=af,tk=Ba();function Fl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tk}var nk=function(e){Fl(e),e.headers=e.headers||{},e.data=Rl.call(e,e.data,e.headers,e.transformRequest),e.headers=Rh.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Rh.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||ek.adapter;return n(e).then(function(i){return Fl(e),i.data=Rl.call(e,i.data,i.headers,e.transformResponse),i},function(i){return ZA(i)||(Fl(e),i&&i.response&&(i.response.data=Rl.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},Ot=ut,ov=function(e,n){n=n||{};var r={};function i(u,d){return Ot.isPlainObject(u)&&Ot.isPlainObject(d)?Ot.merge(u,d):Ot.isPlainObject(d)?Ot.merge({},d):Ot.isArray(d)?d.slice():d}function s(u){if(Ot.isUndefined(n[u])){if(!Ot.isUndefined(e[u]))return i(void 0,e[u])}else return i(e[u],n[u])}function o(u){if(!Ot.isUndefined(n[u]))return i(void 0,n[u])}function a(u){if(Ot.isUndefined(n[u])){if(!Ot.isUndefined(e[u]))return i(void 0,e[u])}else return i(void 0,n[u])}function l(u){if(u in n)return i(e[u],n[u]);if(u in e)return i(void 0,e[u])}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Ot.forEach(Object.keys(e).concat(Object.keys(n)),function(d){var f=c[d]||s,m=f(d);Ot.isUndefined(m)&&f!==l||(r[d]=m)}),r},Vl,Fh;function av(){return Fh||(Fh=1,Vl={version:"0.27.2"}),Vl}var rk=av().version,rr=os,lf={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){lf[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Vh={};lf.transitional=function(e,n,r){function i(s,o){return"[Axios v"+rk+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return function(s,o,a){if(e===!1)throw new rr(i(o," has been removed"+(n?" in "+n:"")),rr.ERR_DEPRECATED);return n&&!Vh[o]&&(Vh[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};function ik(t,e,n){if(typeof t!="object")throw new rr("options must be an object",rr.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var s=r[i],o=e[s];if(o){var a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new rr("option "+s+" must be "+l,rr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rr("Unknown option "+s,rr.ERR_BAD_OPTION)}}var sk={assertOptions:ik,validators:lf},lv=ut,ok=J_,Hh=OA,Bh=nk,ja=ov,ak=iv,cv=sk,di=cv.validators;function Qi(t){this.defaults=t,this.interceptors={request:new Hh,response:new Hh}}Qi.prototype.request=function(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ja(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&cv.assertOptions(r,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var a;if(!s){var l=[Bh,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=n;i.length;){var u=i.shift(),d=i.shift();try{c=u(c)}catch(f){d(f);break}}try{a=Bh(c)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Qi.prototype.getUri=function(e){e=ja(this.defaults,e);var n=ak(e.baseURL,e.url);return ok(n,e.params,e.paramsSerializer)};lv.forEach(["delete","get","head","options"],function(e){Qi.prototype[e]=function(n,r){return this.request(ja(r||{},{method:e,url:n,data:(r||{}).data}))}});lv.forEach(["post","put","patch"],function(e){function n(r){return function(s,o,a){return this.request(ja(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Qi.prototype[e]=n(),Qi.prototype[e+"Form"]=n(!0)});var lk=Qi,Hl,Uh;function ck(){if(Uh)return Hl;Uh=1;var t=Ba();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(s){if(!!i._listeners){var o,a=i._listeners.length;for(o=0;ot,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;window.app.error({message:n})});const fv=window.matchMedia("(prefers-color-scheme: dark)"),uf="auto",dv="light",Dc="dark",Ms=[uf,dv,Dc],hv="theme";function mv(){try{const t=window.localStorage[hv];if(Ms.includes(t))return t}catch(t){console.error("unable to read theme from localStorage",t)}return uf}function vk(t){if(console.log({theme:t}),!!Ms.includes(t))try{window.localStorage[hv]=t,$c()}catch(e){console.error("unable to write theme to localStorage",e)}}function $c(){let t=mv();t===uf&&(t=fv.matches?Dc:dv);const e={light:"#f3f3f7",dark:"#020318"};document.querySelector("meta[name=theme-color]").setAttribute("content",e[t]);const n=document.querySelector(":root");n.classList.add("no-transitions"),n.classList.toggle("dark",t===Dc),window.requestAnimationFrame(function(){n.classList.remove("no-transitions")})}function bk(){fv.addEventListener("change",$c),$c()}const yk={name:"TopNavigation",props:{vehicleLogins:{type:Object,default:()=>({})}},data:function(){return{theme:mv()}},computed:{logoutCount(){return this.providerLogins.filter(t=>!t.loggedIn).length},providerLogins(){return Object.entries(this.vehicleLogins).map(([t,e])=>({title:t,loggedIn:e.authenticated,loginPath:e.uri+"/login",logoutPath:e.uri+"/logout"}))}},methods:{toggleTheme:function(){const t=Ms.indexOf(this.theme),e=t(bt("data-v-5ac310b2"),t=t(),yt(),t),Ek={type:"button","data-bs-toggle":"dropdown","data-bs-target":"#navbarNavAltMarkup","aria-controls":"navbarNavAltMarkup","aria-expanded":"false","aria-label":"Toggle navigation",class:"btn btn-sm btn-outline-secondary position-relative border-0 menu-button"},wk={key:0,class:"position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle"},Tk=ni(()=>y("span",{class:"visually-hidden"},"login available",-1)),Ck=[Tk],Sk=ni(()=>y("shopicon-regular-menu",null,null,-1)),Ak={class:"dropdown-menu dropdown-menu-end"},kk=ni(()=>y("li",null,[y("hr",{class:"dropdown-divider"})],-1)),xk={class:"dropdown-header"},Lk=["onClick"],Nk={key:0,class:"d-inline-block p-1 rounded-circle bg-danger border border-light rounded-circle"},Ok={class:"dropdown-item d-flex",href:"https://docs.evcc.io/blog/",target:"_blank"},Pk=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),Mk={class:"dropdown-item d-flex",href:"https://docs.evcc.io/docs/Home/",target:"_blank"},Ik=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),Dk={class:"dropdown-item d-flex",href:"https://github.com/evcc-io/evcc",target:"_blank"},$k=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),Rk={class:"dropdown-item d-flex",href:"https://evcc.io/",target:"_blank"},Fk=ni(()=>y("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1));function Vk(t,e,n,r,i,s){const o=ae("router-link");return P(),V("div",null,[y("button",Ek,[s.logoutCount>0?(P(),V("span",wk,Ck)):ve("",!0),Sk]),y("ul",Ak,[y("li",null,[ie(o,{class:"dropdown-item",to:"/sessions"},{default:et(()=>[Le(F(t.$t("header.sessions")),1)]),_:1})]),y("li",null,[y("button",{type:"button",class:"dropdown-item",onClick:e[0]||(e[0]=Ws((...a)=>s.toggleTheme&&s.toggleTheme(...a),["stop"]))},F(t.$t(`header.theme.${t.theme}`)),1)]),s.providerLogins.length>0?(P(),V(xe,{key:0},[kk,y("li",null,[y("h6",xk,F(t.$t("header.login")),1)]),(P(!0),V(xe,null,Je(s.providerLogins,a=>(P(),V("li",{key:a.title},[y("button",{type:"button",class:"dropdown-item",onClick:l=>s.handleProviderAuthorization(a)},[a.loggedIn?ve("",!0):(P(),V("span",Nk)),Le(" "+F(a.title)+" "+F(t.$t(a.loggedIn?"main.provider.logout":"main.provider.login")),1)],8,Lk)]))),128))],64)):ve("",!0),y("li",null,[y("a",Ok,[y("span",null,F(t.$t("header.blog")),1),Pk])]),y("li",null,[y("a",Mk,[y("span",null,F(t.$t("header.docs")),1),Ik])]),y("li",null,[y("a",Dk,[y("span",null,F(t.$t("header.github")),1),$k])]),y("li",null,[y("a",Rk,[y("span",null,F(t.$t("header.about")),1),Fk])])])])}const pv=we(yk,[["render",Vk],["__scopeId","data-v-5ac310b2"]]);var Hk='';class Bk extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Hk}}window.customElements.define("shopicon-regular-exclamationtriangle",Bk);const Lt={data:function(){return{fmtLimit:100,fmtDigits:1}},methods:{round:function(t,e){var n=10**e;return(Math.round(t*n)/n).toFixed(e)},fmt:function(t){return t==null?0:(t=Math.abs(t),t>=this.fmtLimit?this.round(t/1e3,this.fmtDigits):this.round(t,0))},fmtKw:function(t=0,e=!0,n=!0){const r=e?1:0,i=e?t/1e3:t;let s="";return n&&(s=e?" kW":" W"),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:r,maximumFractionDigits:r}).format(i)}${s}`},fmtKWh:function(t){return this.fmtKw(t)+"h"},fmtNumber:function(t,e){return new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:e,maximumFractionDigits:e}).format(t)},fmtUnit:function(t){return Math.abs(t)>=this.fmtLimit?"k":""},fmtDuration:function(t){if(t<=0||t==null)return"\u2014";var e="0"+t%60,n="0"+Math.floor(t/60)%60,r=""+Math.floor(t/3600);return r.length<2&&(r="0"+r),r+":"+n.substr(-2)+":"+e.substr(-2)},fmtShortDuration:function(t=0,e=!1){if(t<=0)return"\u2014";var n=t%60,r=Math.floor(t/60)%60,i=Math.floor(t/3600),s="";return i>=1?s=i+":"+`${r}`.padStart(2,"0"):r>=1?s=r+":"+`${n}`.padStart(2,"0"):s=`${n}`,e&&(s+=this.fmtShortDurationUnit(t)),s},fmtShortDurationUnit:function(t=0){if(t<=0)return"";var e=Math.floor(t/60)%60,n=Math.floor(t/3600);return n>=1?"h":e>=1?"m":"s"},fmtDayString:function(t){const e=`${t.getFullYear()}`,n=`${t.getMonth()+1}`.padStart(2,"0"),r=`${t.getDate()}`.padStart(2,"0");return`${e}-${n}-${r}`},fmtTimeString:function(t){const e=`${t.getHours()}`.padStart(2,"0"),n=`${t.getMinutes()}`.padStart(2,"0");return`${e}:${n}`},isToday:function(t){return new Date().toDateString()===t.toDateString()},isTomorrow:function(t){const e=new Date;return e.setDate(e.getDate()+1),e.toDateString()===t.toDateString()},weekdayPrefix:function(t){const e=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});return this.isToday(t)?e.formatToParts(0,"day")[0].value:this.isTomorrow(t)?e.formatToParts(1,"day")[0].value:new Intl.DateTimeFormat(this.$i18n.locale,{weekday:"short"}).format(t)},fmtAbsoluteDate:function(t){const e=this.weekdayPrefix(t),n=new Intl.DateTimeFormat(this.$i18n.locale,{hour:"numeric",minute:"numeric"}).format(t);return`${e} ${n}`},fmtFullDateTime:function(t,e){return new Intl.DateTimeFormat(this.$i18n.locale,{weekday:e?void 0:"short",month:e?"numeric":"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(t)},fmtMonthYear:function(t){return new Intl.DateTimeFormat(this.$i18n.locale,{month:"long",year:"numeric"}).format(t)},fmtDayMonthYear:function(t){return new Intl.DateTimeFormat(this.$i18n.locale,{day:"numeric",month:"long",year:"numeric"}).format(t)},fmtMoney:function(t=0,e="EUR"){return new Intl.NumberFormat(this.$i18n.locale,{style:"currency",currency:e,currencyDisplay:"code"}).format(t).replace(e,"").trim()},fmtCurrencySymbol:function(t="EUR"){return{EUR:"\u20AC",USD:"$"}[t]||t},fmtPricePerKWh:function(t=0,e="EUR"){let n=e,r=t,i=3;return["EUR","USD"].includes(e)&&(r*=100,n="ct",i=1),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",maximumFractionDigits:i}).format(r)} ${n}/kWh`},fmtTimeAgo:function(t){const e={day:864e5,hour:36e5,minute:6e4,second:1e3},n=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});for(var r in e)if(Math.abs(t)>e[r]||r=="second")return n.format(Math.round(t/e[r]),r)}}},Uk={name:"Notifications",mixins:[Lt],props:{notifications:Array},computed:{iconVisible:function(){return this.notifications.length>0},iconClass:function(){return this.notifications.find(t=>t.type==="error")?"text-danger":"text-warning"}},created:function(){this.interval=setInterval(()=>{this.$forceUpdate()},10*1e3)},unmounted:function(){clearTimeout(this.interval)},methods:{clear:function(){window.app&&window.app.clear()}}},jk={href:"#","data-bs-toggle":"modal","data-bs-target":"#notificationModal",class:"btn btn-sm btn-link text-decoration-none link-light text-nowrap"},Wk={id:"notificationModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true","data-bs-backdrop":"true"},zk={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},Kk={class:"modal-content"},Yk={class:"modal-header"},qk={class:"modal-title"},Gk=y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Xk={class:"modal-body"},Qk=["title"],Jk={class:"d-flex align-items-baseline"},Zk={class:"flex-grow-1 px-2 py-1 text-break"},e4={key:0,class:"badge rounded-pill bg-secondary"},t4={class:"modal-footer"};function n4(t,e,n,r,i,s){return P(),V("div",null,[Yt(y("button",jk,[y("shopicon-regular-exclamationtriangle",{class:De(s.iconClass)},null,2)],512),[[Du,s.iconVisible]]),y("div",Wk,[y("div",zk,[y("div",Kk,[y("div",Yk,[y("h5",qk,F(t.$t("notifications.modalTitle")),1),Gk]),y("div",Xk,[(P(!0),V(xe,null,Je(n.notifications,(o,a)=>(P(),V("div",{key:a},[y("small",{class:"d-flex justify-content-end mt-3",title:t.fmtAbsoluteDate(o.time)},F(t.fmtTimeAgo(o.time-new Date)),9,Qk),y("p",Jk,[y("shopicon-regular-exclamationtriangle",{class:De([{"text-danger":o.type==="error","text-warning":o.type==="warn"},"flex-grow-0 flex-shrink-0 d-block"])},null,2),y("span",Zk,F(o.message),1),o.count>1?(P(),V("span",e4,F(o.count),1)):ve("",!0)])]))),128))]),y("div",t4,[y("button",{type:"button","data-bs-dismiss":"modal","aria-label":"Close",class:"btn btn-outline-secondary",onClick:e[0]||(e[0]=(...o)=>s.clear&&s.clear(...o))},F(t.$t("notifications.dismissAll")),1)])])])])])}const r4=we(Uk,[["render",n4]]);var i4='';class s4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=i4}}window.customElements.define("shopicon-filled-square",s4);var o4='';class a4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=o4}}window.customElements.define("shopicon-regular-batteryfull",a4);var l4='';class c4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=l4}}window.customElements.define("shopicon-regular-batterythreequarters",c4);var u4='';class f4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=u4}}window.customElements.define("shopicon-regular-batteryhalf",f4);var d4='';class h4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=d4}}window.customElements.define("shopicon-regular-batteryquarter",h4);var m4='';class p4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=m4}}window.customElements.define("shopicon-regular-batteryempty",p4);const g4={name:"BatteryIcon",props:{soc:{type:Number,default:0}},computed:{icon:function(){return this.soc>80?"batteryfull":this.soc>60?"batterythreequarters":this.soc>40?"batteryhalf":this.soc>20?"batteryquarter":"batteryempty"}}};function _4(t,e,n,r,i,s){return P(),Te(Nu(`shopicon-regular-${s.icon}`))}const gv=we(g4,[["render",_4]]),v4={name:"LabelBar",props:{value:{type:Number,default:0},hideIcon:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},first:{type:Boolean},last:{type:Boolean}}},b4={class:"label-bar-scale"},y4={class:"label-bar-icon"};function E4(t,e,n,r,i,s){return P(),V("div",{class:De(["label-bar",{"label-bar--hide-icon":n.hideIcon,"label-bar--hidden":!n.value,"label-bar--top":n.top,"label-bar--bottom":n.bottom,"label-bar--first":n.first,"label-bar--last":n.last}])},[y("div",b4,[y("div",y4,[Ou(t.$slots,"default",{},void 0,!0)])])],2)}const w4=we(v4,[["render",E4],["__scopeId","data-v-07ec7375"]]),T4=.5,C4={name:"AnimatedNumber",props:{to:{type:Number},format:{type:Function},noAnimation:{type:Boolean},duration:{type:Number,default:T4}},data(){return{activeDuration:0}},computed:{animationDuration(){return this.noAnimation?0:this.activeDuration}},watch:{to:function(){this.activeDuration=this.duration}}};function S4(t,e,n,r,i,s){const o=ae("number");return P(),Te(o,{to:n.to,format:n.format,duration:s.animationDuration},null,8,["to","format","duration"])}const ri=we(C4,[["render",S4]]);var A4='';class k4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=A4}}window.customElements.define("shopicon-regular-car3",k4);var x4='';class L4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=x4}}window.customElements.define("shopicon-regular-sun",L4);var N4='';class O4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=N4}}window.customElements.define("shopicon-regular-home",O4);const P4={name:"Visualization",components:{BatteryIcon:gv,LabelBar:w4,AnimatedNumber:ri},mixins:[Lt],props:{gridImport:{type:Number,default:0},selfConsumption:{type:Number,default:0},pvExport:{type:Number,default:0},loadpoints:{type:Number,default:0},batteryCharge:{type:Number,default:0},batteryDischarge:{type:Number,default:0},pvProduction:{type:Number,default:0},homePower:{type:Number,default:0},batterySoC:{type:Number,default:0},valuesInKw:{type:Boolean,default:!1}},data:function(){return{width:0,visualizationReady:!1}},computed:{gridExport:function(){return this.applyThreshold(this.pvExport)},totalRaw:function(){return this.gridImport+this.selfConsumption+this.pvExport},gridImportAdjusted:function(){return this.applyThreshold(this.gridImport)},selfConsumptionAdjusted:function(){return this.applyThreshold(this.selfConsumption)},pvExportAdjusted:function(){return this.applyThreshold(this.pvExport)},totalAdjusted:function(){return this.gridImportAdjusted+this.selfConsumptionAdjusted+this.pvExportAdjusted}},watch:{totalAdjusted:function(){!this.visualizationReady&&this.totalAdjusted>0&&setTimeout(()=>{this.visualizationReady=!0},500)}},mounted:function(){this.$nextTick(function(){window.addEventListener("resize",this.updateElementWidth),this.updateElementWidth()})},beforeUnmount(){window.removeEventListener("resize",this.updateElementWidth)},methods:{widthTotal:function(t){return this.totalAdjusted===0?"0%":100/this.totalAdjusted*t+"%"},fmtBarValue:function(t){const e=this.powerLabelEnoughSpace(t);return this.fmtKw(t,this.valuesInKw,e)},powerLabelAvailableSpace(t){if(this.totalAdjusted===0)return 0;const e=100/this.totalAdjusted*t;return this.width/100*e},powerLabelEnoughSpace(t){return this.powerLabelAvailableSpace(t)>60},powerLabelSomeSpace(t){return this.powerLabelAvailableSpace(t)>35},hideLabelIcon(t,e=32){if(this.totalAdjusted===0)return!0;const n=100/this.totalAdjusted*t;return this.width/100*n(bt("data-v-52aac8f3"),t=t(),yt(),t),M4={class:"label-scale d-flex"},I4={class:"d-flex justify-content-start flex-grow-1"},D4=ii(()=>y("shopicon-regular-sun",null,null,-1)),$4=ii(()=>y("shopicon-regular-powersupply",null,null,-1)),R4=ii(()=>y("div",{class:"label-scale-name"},"In",-1)),F4={ref:"site_progress",class:"site-progress"},V4={key:0,class:"site-progress-bar bg-light border no-wrap w-100 text-dark"},H4={class:"label-scale d-flex"},B4={class:"d-flex justify-content-start flex-grow-1"},U4=ii(()=>y("shopicon-regular-home",null,null,-1)),j4=ii(()=>y("shopicon-regular-car3",null,null,-1)),W4=ii(()=>y("shopicon-regular-powersupply",null,null,-1)),z4=ii(()=>y("div",{class:"label-scale-name"},"Out",-1));function K4(t,e,n,r,i,s){const o=ae("LabelBar"),a=ae("BatteryIcon"),l=ae("AnimatedNumber");return P(),V("div",{class:De(["visualization",{"visualization--ready":t.visualizationReady}])},[y("div",M4,[y("div",I4,[ie(o,an(Kt(s.labelBarProps("top","pvProduction"))),{default:et(()=>[D4]),_:1},16),ie(o,an(Kt(s.labelBarProps("top","batteryDischarge"))),{default:et(()=>[ie(a,{soc:n.batterySoC},null,8,["soc"])]),_:1},16),ie(o,an(Kt(s.labelBarProps("top","gridImport"))),{default:et(()=>[$4]),_:1},16)]),R4]),y("div",F4,[y("div",{class:"site-progress-bar self-consumption",style:Ct({width:s.widthTotal(s.selfConsumptionAdjusted)})},[n.selfConsumption?(P(),Te(l,{key:0,class:"power",to:n.selfConsumption,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),y("div",{class:"site-progress-bar grid-import",style:Ct({width:s.widthTotal(s.gridImportAdjusted)})},[n.gridImport?(P(),Te(l,{key:0,class:"power",to:n.gridImport,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),y("div",{class:"site-progress-bar pv-export",style:Ct({width:s.widthTotal(s.pvExportAdjusted)})},[n.pvExport?(P(),Te(l,{key:0,class:"power",to:n.pvExport,format:s.fmtBarValue},null,8,["to","format"])):ve("",!0)],4),s.totalAdjusted<=0?(P(),V("div",V4,[y("span",null,F(t.$t("main.energyflow.noEnergy")),1)])):ve("",!0)],512),y("div",H4,[y("div",B4,[ie(o,an(Kt(s.labelBarProps("bottom","homePower"))),{default:et(()=>[U4]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","loadpoints"))),{default:et(()=>[j4]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","batteryCharge"))),{default:et(()=>[ie(a,{soc:n.batterySoC},null,8,["soc"])]),_:1},16),ie(o,an(Kt(s.labelBarProps("bottom","gridExport"))),{default:et(()=>[W4]),_:1},16)]),z4])],2)}const Y4=we(P4,[["render",K4],["__scopeId","data-v-52aac8f3"]]);var q4='';class G4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=q4}}window.customElements.define("shopicon-regular-powersupply",G4);const X4={name:"EnergyflowEntry",components:{BatteryIcon:gv,AnimatedNumber:ri},mixins:[Lt],props:{name:{type:String},icon:{type:String},power:{type:Number},soc:{type:Number},valuesInKw:{type:Boolean}},computed:{active:function(){return this.power>10},isBattery:function(){return this.icon==="battery"},hasSoC:function(){return this.isBattery&&!isNaN(this.soc)}},methods:{kw:function(t){return this.fmtKw(t,this.valuesInKw)}}},Q4={class:"d-flex flex-nowrap"},J4={class:"text-nowrap flex-grow-1 ms-3"},Z4={class:"text-end text-nowrap ps-1 fw-bold"},ex={key:0};function tx(t,e,n,r,i,s){const o=ae("BatteryIcon"),a=ae("AnimatedNumber");return P(),V("div",{class:De(["d-flex justify-content-between mb-2 entry",{"evcc-gray":!s.active}])},[y("span",Q4,[s.isBattery?(P(),Te(o,{key:0,soc:n.soc},null,8,["soc"])):(P(),Te(Nu(`shopicon-regular-${n.icon}`),{key:1}))]),y("span",J4,F(n.name),1),y("span",Z4,[s.hasSoC?(P(),V("span",ex,F(n.soc)+"% / ",1)):ve("",!0),ie(a,{to:n.power,format:s.kw},null,8,["to","format"])])],2)}const nx=we(X4,[["render",tx],["__scopeId","data-v-64ce0f8b"]]),rx={name:"Energyflow",components:{Visualization:Y4,EnergyflowEntry:nx,AnimatedNumber:ri},mixins:[Lt],props:{gridConfigured:Boolean,gridPower:{type:Number,default:0},homePower:{type:Number,default:0},pvConfigured:Boolean,pvPower:{type:Number,default:0},loadpointsPower:{type:Number,default:0},activeLoadpointsCount:{type:Number,default:0},batteryConfigured:Boolean,batteryPower:{type:Number,default:0},batterySoC:{type:Number,default:0}},data:()=>({detailsOpen:!1,detailsCompleteHeight:null}),computed:{gridImport:function(){return Math.max(0,this.gridPower)},pvProduction:function(){return Math.abs(this.pvPower)},batteryPowerAdjusted:function(){return Math.abs(this.batteryPower)<50?0:this.batteryPower},batteryDischarge:function(){return Math.abs(Math.max(0,this.batteryPowerAdjusted))},batteryCharge:function(){return Math.abs(Math.min(0,this.batteryPowerAdjusted)*-1)},selfConsumption:function(){const t=this.batteryDischarge+this.pvProduction,e=this.homePower+this.batteryCharge+this.loadpointsPower;return Math.min(t,e)},pvExport:function(){return Math.max(0,this.gridPower*-1)},valuesInKw:function(){return this.gridImport+this.selfConsumption+this.pvExport>1e3},inPower:function(){return this.gridImport+this.pvProduction+this.batteryDischarge},outPower:function(){return this.homePower+this.loadpointsPower+this.pvExport+this.batteryCharge},detailsHeight:function(){return this.detailsOpen?this.detailsCompleteHeight+"px":0}},mounted(){window.addEventListener("resize",this.updateHeight)},unmounted(){window.removeEventListener("resize",this.updateHeight)},methods:{kw:function(t){return this.fmtKw(t,this.valuesInKw)},toggleDetails:function(){this.updateHeight(),this.detailsOpen=!this.detailsOpen},updateHeight:function(){this.detailsCompleteHeight=this.$refs.detailsInner.offsetHeight}}},lo=t=>(bt("data-v-a185934b"),t=t(),yt(),t),ix={class:"row"},sx={ref:"detailsInner",class:"details-inner row"},ox={class:"col-12 d-flex justify-content-between pt-2 mb-4"},ax={class:"d-flex flex-nowrap align-items-center"},lx=lo(()=>y("span",{class:"color-self me-2"},[y("shopicon-filled-square")],-1)),cx={key:0,class:"d-flex flex-nowrap align-items-center"},ux=lo(()=>y("span",{class:"color-grid ms-2"},[y("shopicon-filled-square")],-1)),fx={key:1,class:"d-flex flex-nowrap align-items-center"},dx=lo(()=>y("span",{class:"color-export ms-2"},[y("shopicon-filled-square")],-1)),hx={class:"col-12 col-md-6 pe-md-5 pb-4 d-flex flex-column justify-content-between"},mx={class:"d-flex justify-content-between align-items-end mb-4"},px=lo(()=>y("h3",{class:"m-0"},"In",-1)),gx={class:"fw-bold"},_x={class:"col-12 col-md-6 ps-md-5 pb-4 d-flex flex-column justify-content-between"},vx={class:"d-flex justify-content-between align-items-end mb-4"},bx=lo(()=>y("h3",{class:"m-0"},"Out",-1)),yx={class:"fw-bold"};function Ex(t,e,n,r,i,s){const o=ae("Visualization"),a=ae("AnimatedNumber"),l=ae("EnergyflowEntry");return P(),V("div",{class:De(["energyflow cursor-pointer position-relative",{"energyflow--open":t.detailsOpen}]),onClick:e[0]||(e[0]=(...c)=>s.toggleDetails&&s.toggleDetails(...c))},[y("div",ix,[ie(o,{class:"col-12 mb-3 mb-md-4",gridImport:s.gridImport,selfConsumption:s.selfConsumption,loadpoints:n.loadpointsPower,pvExport:s.pvExport,batteryCharge:s.batteryCharge,batteryDischarge:s.batteryDischarge,pvProduction:s.pvProduction,homePower:n.homePower,batterySoC:n.batterySoC,valuesInKw:s.valuesInKw},null,8,["gridImport","selfConsumption","loadpoints","pvExport","batteryCharge","batteryDischarge","pvProduction","homePower","batterySoC","valuesInKw"])]),y("div",{class:"details",style:Ct({height:s.detailsHeight})},[y("div",sx,[y("div",ox,[y("div",ax,[lx,y("span",null,F(t.$t("main.energyflow.selfConsumption")),1)]),s.gridImport>0?(P(),V("div",cx,[y("span",null,F(t.$t("main.energyflow.gridImport")),1),ux])):(P(),V("div",fx,[y("span",null,F(t.$t("main.energyflow.pvExport")),1),dx]))]),y("div",hx,[y("div",mx,[px,y("span",gx,[ie(a,{to:s.inPower,format:s.kw},null,8,["to","format"])])]),y("div",null,[ie(l,{name:t.$t("main.energyflow.pvProduction"),icon:"sun",power:s.pvProduction,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(P(),Te(l,{key:0,name:t.$t("main.energyflow.batteryDischarge"),icon:"battery",soc:n.batterySoC,power:s.batteryDischarge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ve("",!0),ie(l,{name:t.$t("main.energyflow.gridImport"),icon:"powersupply",power:s.gridImport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])]),y("div",_x,[y("div",vx,[bx,y("span",yx,[ie(a,{to:s.outPower,format:s.kw},null,8,["to","format"])])]),y("div",null,[ie(l,{name:t.$t("main.energyflow.homePower"),icon:"home",power:n.homePower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),ie(l,{name:t.$tc("main.energyflow.loadpoints",n.activeLoadpointsCount,{count:n.activeLoadpointsCount}),icon:"car3",power:n.loadpointsPower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(P(),Te(l,{key:0,name:t.$t("main.energyflow.batteryCharge"),icon:"battery",soc:n.batterySoC,power:s.batteryCharge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ve("",!0),ie(l,{name:t.$t("main.energyflow.pvExport"),icon:"powersupply",power:s.pvExport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])])],512)],4)],2)}const Yh=we(rx,[["render",Ex],["__scopeId","data-v-a185934b"]]);var wx='';class Tx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=wx}}window.customElements.define("shopicon-filled-circle",Tx);var Cx='';class Sx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Cx}}window.customElements.define("shopicon-regular-lightning",Sx);var Ax='';class kx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Ax}}window.customElements.define("shopicon-regular-adjust",kx);const{protocol:xx,hostname:Lx,port:qh,pathname:Nx}=window.location,at=cf.create({baseURL:xx+"//"+Lx+(qh?":"+qh:"")+Nx+"api/",headers:{Accept:"application/json"}});at.interceptors.response.use(t=>t,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;return window.app.error({message:n}),Promise.reject(t)});const Ox={name:"Mode",props:{mode:String},emits:["updated"],data(){return{modes:["off","pv","minpv","now"]}},methods:{isActive:function(t){return this.mode===t},setTargetMode:function(t){this.$emit("updated",t)}}},Px={class:"mode-group border d-inline-flex",role:"group"},Mx=["onClick"];function Ix(t,e,n,r,i,s){return P(),V("div",Px,[(P(!0),V(xe,null,Je(i.modes,o=>(P(),V("button",{key:o,type:"button",class:De(["btn flex-grow-1 flex-shrink-1",{active:s.isActive(o)}]),onClick:a=>s.setTargetMode(o)},F(t.$t(`main.mode.${o}`)),11,Mx))),128))])}const Dx=we(Ox,[["render",Ix],["__scopeId","data-v-fd0f9db5"]]),Wa={methods:{collectProps:function(t){let e={};for(var n in t.props)n in this&&(e[n]=this[n]);return e}}},$x={name:"LabelAndValue",components:{AnimatedNumber:ri},props:{label:String,value:[Number,String],valueFmt:Function,extraValue:String,align:{type:String,default:"center"}},computed:{labelClass(){return`text-${this.align}`},valueClass(){return`justify-content-${this.align}`}}},Rx={class:"root"},Fx={key:1},Vx={key:2,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function Hx(t,e,n,r,i,s){const o=ae("AnimatedNumber");return P(),V("div",Rx,[y("div",{class:De(["mb-2 label",s.labelClass])},F(n.label),3),Ou(t.$slots,"default",{},()=>[y("h3",{class:De(["value m-0 d-block d-sm-flex align-items-baseline",s.valueClass])},[n.valueFmt?(P(),Te(o,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(P(),V("span",Fx,F(n.value),1)),n.extraValue?(P(),V("div",Vx,F(n.extraValue),1)):ve("",!0)],2)],!0)])}const co=we($x,[["render",Hx],["__scopeId","data-v-2a1fddd7"]]);var Bx='';class Ux extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Bx}}window.customElements.define("shopicon-regular-refresh",Ux);var jx='';class Wx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=jx}}window.customElements.define("shopicon-regular-cablecharge",Wx);var zx='';class Kx extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=zx}}window.customElements.define("shopicon-filled-options",Kx);const Yx={name:"VehicleOptions",props:{vehicles:Array,isUnknown:Boolean},emits:["change-vehicle","remove-vehicle"],methods:{changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")}}},qx={role:"button",tabindex:"0","data-bs-toggle":"dropdown","data-bs-target":"#navbarNavAltMarkup","aria-controls":"navbarNavAltMarkup","aria-expanded":"false","aria-label":"Toggle navigation"},Gx={class:"dropdown-menu dropdown-menu-start"},Xx={class:"dropdown-header"},Qx=["onClick"],Jx={key:0};function Zx(t,e,n,r,i,s){return P(),V("div",null,[y("div",qx,[Ou(t.$slots,"default")]),y("ul",Gx,[y("li",null,[y("h6",Xx,F(t.$t("main.vehicle.changeVehicle")),1)]),(P(!0),V(xe,null,Je(n.vehicles,o=>(P(),V("li",{key:o},[y("button",{type:"button",class:"dropdown-item",onClick:a=>s.changeVehicle(o.id)},F(o.title),9,Qx)]))),128)),n.isUnknown?ve("",!0):(P(),V("li",Jx,[y("button",{type:"button",class:"dropdown-item",onClick:e[0]||(e[0]=o=>s.removeVehicle())},F(t.$t("main.vehicle.unknown")),1)]))])])}const eL=we(Yx,[["render",Zx]]),tL={name:"VehicleTitle",components:{VehicleOptions:eL},props:{vehiclePresent:Boolean,vehicleTitle:String,vehicleDetectionActive:Boolean,parked:Boolean,connected:Boolean,vehicles:{type:Array,default:()=>[]}},emits:["change-vehicle","remove-vehicle"],computed:{icon(){return this.vehicleDetectionActive?"refresh":this.connected||this.parked?"car":null},name(){return this.vehiclePresent||this.parked?this.vehicleTitle||this.$t("main.vehicle.fallbackName"):this.connected?this.$t("main.vehicle.unknown"):this.$t("main.vehicle.none")},isUnknown(){return!this.vehiclePresent},otherVehicles(){return this.vehicles.map((t,e)=>({id:e,title:t})).filter(t=>t.title!==this.vehicleTitle)},showOptions(){return!this.isUnknown||this.vehicles.length}},watch:{icon:function(){this.tooltip()}},mounted:function(){this.tooltip()},methods:{changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")},tooltip(){this.$nextTick(()=>{this.$refs.refresh&&new wr(this.$refs.refresh)})}}},nL={class:"d-flex justify-content-between mb-3 align-items-center"},rL={class:"d-flex align-items-center m-0 flex-grow-1 overflow-hidden"},iL=["title"],sL={key:1,class:"me-2 flex-shrink-0"},oL={key:2,class:"me-2 flex-shrink-0"},aL={class:"flex-grow-1 text-truncate vehicle-name"},lL={key:4,class:"flex-grow-1 text-truncate vehicle-name"};function cL(t,e,n,r,i,s){const o=ae("VehicleOptions");return P(),V("div",nL,[y("h4",rL,[s.icon==="refresh"?(P(),V("shopicon-regular-refresh",{key:0,ref:"refresh","data-bs-toggle":"tooltip",title:t.$t("main.vehicle.detectionActive"),class:"me-2 flex-shrink-0 spin"},null,8,iL)):s.icon==="car"?(P(),V("shopicon-regular-car3",sL)):(P(),V("shopicon-regular-cablecharge",oL)),s.showOptions?(P(),Te(o,{key:3,class:"options",vehicles:s.otherVehicles,"is-unknown":s.isUnknown,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle},{default:et(()=>[y("span",aL,F(s.name),1)]),_:1},8,["vehicles","is-unknown","onChangeVehicle","onRemoveVehicle"])):(P(),V("span",lL,F(s.name),1))])])}const Gh=we(tL,[["render",cL],["__scopeId","data-v-f52d1381"]]),uL={name:"VehicleSoc",props:{connected:Boolean,vehiclePresent:Boolean,vehicleSoC:Number,vehicleTargetSoC:Number,enabled:Boolean,charging:Boolean,minSoC:Number,targetSoC:Number,targetEnergy:Number,chargedEnergy:Number,socBasedCharging:Boolean},emits:["target-soc-drag","target-soc-updated"],data:function(){return{selectedTargetSoC:null,interactionStartScreenY:null,tooltip:null}},computed:{vehicleSoCDisplayWidth:function(){return this.socBasedCharging?this.vehicleSoC>=0?this.vehicleSoC:100:this.targetEnergy?100/this.targetEnergy*(this.chargedEnergy/1e3):100},vehicleTargetSoCActive:function(){return this.vehicleTargetSoC>0&&this.vehicleTargetSoC>this.vehicleSoC},targetSliderActive:function(){return!this.vehicleTargetSoC||this.visibleTargetSoC<=this.vehicleTargetSoC},progressColor:function(){return this.minSoCActive?"bg-danger":"bg-primary"},minSoCActive:function(){return this.minSoC>0&&this.vehicleSoCthis.vehicleSoC)return t-this.vehicleSoC}else return 100-this.vehicleSoCDisplayWidth;return null},visibleTargetSoC:function(){return Number(this.selectedTargetSoC||this.targetSoC)}},watch:{targetSoC:function(){this.selectedTargetSoC=this.targetSoC},vehicleTargetSoC:function(){this.updateTooltip()}},mounted:function(){this.updateTooltip()},methods:{changeTargetSoCStart:function(t){t.stopPropagation()},changeTargetSoCEnd:function(t){const e=parseInt(t.target.value,10);e!==this.targetSoC&&this.$emit("target-soc-updated",e)},movedTargetSoC:function(t){let e=parseInt(t.target.value,10);t.stopPropagation();const n=20;return e{this.tooltip&&this.tooltip.dispose(),this.tooltip=new wr(this.$refs.vehicleTargetSoC)})}}},fL={class:"vehicle-soc"},dL={class:"progress"},hL=["title"],mL={class:"target"},pL=["value"];function gL(t,e,n,r,i,s){return P(),V("div",fL,[y("div",dL,[n.connected?(P(),V("div",{key:0,class:De(["progress-bar",{[s.progressColor]:!0,"progress-bar-striped":n.charging,"progress-bar-animated":n.charging}]),role:"progressbar",style:Ct({width:`${s.vehicleSoCDisplayWidth}%`})},null,6)):ve("",!0),s.remainingSoCWidth>0&&n.enabled&&n.connected?(P(),V("div",{key:1,class:De(["progress-bar bg-muted",s.progressColor]),role:"progressbar",style:Ct({width:`${s.remainingSoCWidth}%`,transition:"none"})},null,6)):ve("",!0),Yt(y("div",{ref:"vehicleTargetSoC",class:De(["vehicle-target-soc",{"vehicle-target-soc--active":s.vehicleTargetSoCActive}]),"data-bs-toggle":"tooltip",title:t.$t("main.vehicleSoC.vehicleTarget",{soc:n.vehicleTargetSoC}),style:Ct({left:`${n.vehicleTargetSoC}%`})},null,14,hL),[[Du,n.vehicleTargetSoC]])]),y("div",mL,[n.socBasedCharging&&n.connected?(P(),V("input",{key:0,type:"range",min:"0",max:"100",step:"5",value:s.visibleTargetSoC,class:De(["target-slider",{"target-slider--active":s.targetSliderActive}]),onMousedown:e[0]||(e[0]=(...o)=>s.changeTargetSoCStart&&s.changeTargetSoCStart(...o)),onTouchstart:e[1]||(e[1]=(...o)=>s.changeTargetSoCStart&&s.changeTargetSoCStart(...o)),onInput:e[2]||(e[2]=(...o)=>s.movedTargetSoC&&s.movedTargetSoC(...o)),onMouseup:e[3]||(e[3]=(...o)=>s.changeTargetSoCEnd&&s.changeTargetSoCEnd(...o)),onTouchend:e[4]||(e[4]=(...o)=>s.changeTargetSoCEnd&&s.changeTargetSoCEnd(...o))},null,42,pL)):ve("",!0)])])}const Xh=we(uL,[["render",gL],["__scopeId","data-v-15f37702"]]),_L={name:"VehicleStatus",mixins:[Lt],props:{vehicleSoC:Number,vehicleTargetSoC:Number,minSoC:Number,enabled:Boolean,connected:Boolean,charging:Boolean,targetTime:String,targetTimeProjectedStart:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number},computed:{phaseTimerActive(){return this.charging&&this.phaseRemainingInterpolated>0&&["scale1p","scale3p"].includes(this.phaseAction)},pvTimerActive(){return this.pvRemainingInterpolated>0&&["enable","disable"].includes(this.pvAction)},message:function(){const t=(e,n)=>this.$t(`main.vehicleStatus.${e}`,n);if(!this.connected)return t("disconnected");if(this.minSoC>0&&this.vehicleSoC0&&this.vehicleSoC>=this.vehicleTargetSoC-1?t("vehicleTargetReached",{soc:this.vehicleTargetSoC}):t("waitForVehicle"):this.pvTimerActive&&this.charging&&this.pvAction==="disable"?t("pvDisable",{remaining:this.fmtShortDuration(this.pvRemainingInterpolated,!0)}):this.phaseTimerActive?t(this.phaseAction,{remaining:this.fmtShortDuration(this.phaseRemainingInterpolated,!0)}):this.charging?t("charging"):t("connected")}}},vL={class:"d-block evcc-gray"};function bL(t,e,n,r,i,s){return P(),V("div",vL,F(s.message)+"\xA0",1)}const Qh=we(_L,[["render",bL]]);var yL='';class EL extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=yL}}window.customElements.define("shopicon-filled-plus",EL);var wL='';class TL extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=wL}}window.customElements.define("shopicon-filled-edit",TL);const CL="7:00",Jh="last_target_time",SL={name:"TargetCharge",components:{LabelAndValue:co},mixins:[Lt],props:{id:[String,Number],targetTime:String,targetTimeActive:Boolean,targetSoC:Number,disabled:Boolean},emits:["target-time-updated","target-time-removed"],data:function(){return{selectedDay:null,selectedTime:null}},computed:{targetChargeEnabled:function(){return this.targetTime},selectedTargetTimeValid:function(){return new Datenew Date;this.targetChargeEnabled&&e&&(t=new Date(this.targetTime)),this.selectedDay=this.fmtDayString(t),this.selectedTime=this.fmtTimeString(t)},dayOptions:function(){const t=[],e=new Date,n=[this.$t("main.targetCharge.today"),this.$t("main.targetCharge.tomorrow")];for(let r=0;r<7;r++){const i=e.toLocaleDateString("default",{month:"short",day:"numeric"}),s=n[r]||e.toLocaleDateString("default",{weekday:"long"});t.push({value:e.toISOString().split("T")[0],name:`${i} (${s})`}),e.setDate(e.getDate()+1)}return t},minTime:function(){return new Date().toISOString().split("T")[1].slice(0,-8)},setTargetTime:function(){try{const t=this.selectedTargetTime.getHours(),e=this.selectedTargetTime.getMinutes();window.localStorage[Jh]=`${t}:${e}`}catch(t){console.warn(t)}this.$emit("target-time-updated",this.selectedTargetTime)},removeTargetTime:function(){this.$emit("target-time-removed")}}},_v=t=>(bt("data-v-9e77e67f"),t=t(),yt(),t),AL=["data-bs-target","disabled"],kL={key:0},xL={key:1},LL=["id"],NL={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},OL={class:"modal-content"},PL={class:"modal-header"},ML={class:"modal-title"},IL=_v(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),DL={class:"modal-body"},$L={class:"form-group"},RL={for:"targetTimeLabel",class:"mb-3"},FL={class:"d-flex justify-content-between",style:{"max-width":"350px"}},VL=["value"],HL={key:0,class:"text-danger mb-0"},BL={class:"small mt-3 text-muted mb-0"},UL={class:"text-evcc"},jL=_v(()=>y("a",{href:"https://github.com/evcc-io/evcc/discussions/1433",target:"_blank"},"GitHub Discussions",-1)),WL=Le(". "),zL={class:"modal-footer d-flex justify-content-between"},KL=["disabled"];function YL(t,e,n,r,i,s){const o=ae("LabelAndValue");return P(),V("div",null,[ie(o,{class:De(["root flex-grow-1",n.disabled?"opacity-0":"opacity-1"]),label:t.$t("main.targetCharge.title")},{default:et(()=>[y("button",{class:De(["btn btn-link p-0 value text-center",s.targetChargeEnabled?"evcc-default-text":"text-gray"]),"data-bs-toggle":"modal","data-bs-target":`#${s.modalId}`,disabled:n.disabled},[s.targetChargeEnabled?(P(),V("strong",kL,F(s.targetTimeLabel()),1)):(P(),V("span",xL,F(t.$t("main.targetCharge.setTargetTime")),1))],10,AL)]),_:1},8,["label","class"]),(P(),Te(oo,{to:"body"},[y("div",{id:s.modalId,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[y("div",NL,[y("div",OL,[y("div",PL,[y("h5",ML,F(t.$t("main.targetCharge.modalTitle")),1),IL]),y("form",{onSubmit:e[3]||(e[3]=Ws((...a)=>s.setTargetTime&&s.setTargetTime(...a),["prevent"]))},[y("div",DL,[y("div",$L,[y("label",RL,F(t.$t("main.targetCharge.description",{targetSoC:n.targetSoC})),1),y("div",FL,[Yt(y("select",{"onUpdate:modelValue":e[0]||(e[0]=a=>t.selectedDay=a),class:"form-select me-2",style:{"flex-basis":"60%"}},[(P(!0),V(xe,null,Je(s.dayOptions(),a=>(P(),V("option",{key:a.value,value:a.value},F(a.name),9,VL))),128))],512),[[$o,t.selectedDay]]),Yt(y("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.selectedTime=a),type:"time",class:"form-control ms-2",style:{"flex-basis":"40%"},step:60*5,required:""},null,512),[[a2,t.selectedTime]])])]),s.selectedTargetTimeValid?ve("",!0):(P(),V("p",HL,F(t.$t("main.targetCharge.targetIsInThePast")),1)),y("p",BL,[y("strong",UL,F(t.$t("main.targetCharge.experimentalLabel"))+": ",1),Le(" "+F(t.$t("main.targetCharge.experimentalText"))+" ",1),jL,WL])]),y("div",zL,[y("button",{type:"button",class:"btn btn-outline-secondary","data-bs-dismiss":"modal",onClick:e[2]||(e[2]=(...a)=>s.removeTargetTime&&s.removeTargetTime(...a))},F(t.$t("main.targetCharge.remove")),1),y("button",{type:"submit",class:"btn btn-primary","data-bs-dismiss":"modal",disabled:!s.selectedTargetTimeValid},F(t.$t("main.targetCharge.activate")),9,KL)])],32)])])],8,LL)]))])}const Zh=we(SL,[["render",YL],["__scopeId","data-v-9e77e67f"]]),qL={name:"TargetSoCSelect",components:{LabelAndValue:co,AnimatedNumber:ri},props:{targetSoc:Number,rangePerSoc:Number},emits:["target-soc-updated"],computed:{options:function(){const t=[];for(let e=20;e<=100;e+=5){let n=this.formatSoC(e);const r=this.estimatedRange(e);r&&(n+=` (${this.formatKm(r)})`),t.push({soc:e,text:n})}return t},estimatedTargetRange:function(){return this.estimatedRange(this.targetSoc)}},methods:{change:function(t){return this.$emit("target-soc-updated",parseInt(t.target.value,10))},estimatedRange:function(t){return this.rangePerSoc?Math.round(t*this.rangePerSoc):null},formatSoC:function(t){return`${Math.round(t)}%`},formatKm:function(t){return`${Math.round(t)} km`}}},GL={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},XL={class:"position-relative"},QL=["value"],JL=["value"],ZL={class:"text-decoration-underline"},eN={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function tN(t,e,n,r,i,s){const o=ae("AnimatedNumber"),a=ae("LabelAndValue");return P(),Te(a,{class:"flex-grow-1",label:t.$t("main.vehicle.targetSoC"),align:"end"},{default:et(()=>[y("h3",GL,[y("label",XL,[y("select",{value:n.targetSoc,class:"custom-select",onChange:e[0]||(e[0]=(...l)=>s.change&&s.change(...l))},[(P(!0),V(xe,null,Je(s.options,({soc:l,text:c})=>(P(),V("option",{key:l,value:l},F(c),9,JL))),128))],40,QL),y("span",ZL,[ie(o,{to:n.targetSoc,format:s.formatSoC},null,8,["to","format"])])]),s.estimatedTargetRange?(P(),V("div",eN,[ie(o,{to:s.estimatedTargetRange,format:s.formatKm},null,8,["to","format"])])):ve("",!0)])]),_:1},8,["label"])}const nN=we(qL,[["render",tN],["__scopeId","data-v-c40d1ba1"]]),rN={name:"TargetEnergySelect",components:{LabelAndValue:co,AnimatedNumber:ri},mixins:[Lt],props:{targetEnergy:Number,socPerKwh:Number,chargedEnergy:Number,vehicleCapacity:Number},emits:["target-energy-updated"],computed:{maxEnergy:function(){return this.vehicleCapacity||100},steps:function(){return this.maxEnergy<25?1:this.maxEnergy<50?2:5},options:function(){const t=[];for(let e=0;e<=this.maxEnergy;e+=this.steps){let n=this.formatKWh(e);const r=e[y("h3",iN,[y("label",sN,[y("select",{value:n.targetEnergy,class:"custom-select",onChange:e[0]||(e[0]=(...l)=>s.change&&s.change(...l))},[(P(!0),V(xe,null,Je(s.options,({energy:l,text:c,disabled:u})=>(P(),V("option",{key:l,value:l,disabled:u},F(c),9,aN))),128))],40,oN),y("span",{class:De(["text-decoration-underline",{"text-gray fw-normal":!n.targetEnergy}])},[ie(o,{to:n.targetEnergy,format:s.formatKWh,"no-animation":!n.targetEnergy},null,8,["to","format","no-animation"])],2)]),s.estimatedTargetSoC?(P(),V("div",lN,[ie(o,{to:s.estimatedTargetSoC,format:s.formatSoC},null,8,["to","format"])])):ve("",!0)])]),_:1},8,["label"])}const uN=we(rN,[["render",cN],["__scopeId","data-v-ced549d0"]]),fN={name:"Vehicle",components:{VehicleTitle:Gh,VehicleSoc:Xh,VehicleStatus:Qh,LabelAndValue:co,TargetCharge:Zh,TargetSoCSelect:nN,TargetEnergySelect:uN},mixins:[Wa,Lt],props:{id:[String,Number],connected:Boolean,vehiclePresent:Boolean,vehicleSoC:Number,vehicleTargetSoC:Number,enabled:Boolean,charging:Boolean,minSoC:Number,vehicleDetectionActive:Boolean,vehicleRange:Number,vehicleTitle:String,vehicleCapacity:Number,socBasedCharging:Boolean,targetTimeActive:Boolean,targetTime:String,targetTimeProjectedStart:String,targetSoC:Number,targetEnergy:Number,chargedEnergy:Number,mode:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number,parked:Boolean,vehicles:Array},emits:["target-time-removed","target-time-updated","target-soc-updated","target-energy-updated","change-vehicle","remove-vehicle"],data(){return{displayTargetSoC:this.targetSoC}},computed:{vehicleSocProps:function(){return this.collectProps(Xh)},vehicleStatus:function(){return this.collectProps(Qh)},vehicleTitleProps:function(){return this.collectProps(Gh)},targetCharge:function(){return this.collectProps(Zh)},rangePerSoC:function(){return this.vehicleSoC>10&&this.vehicleRange?this.vehicleRange/this.vehicleSoC:null},socPerKwh:function(){return this.vehicleCapacity>0?100/this.vehicleCapacity:null},chargedSoC:function(){const t=this.socPerKwh*(this.chargedEnergy/1e3);return t>1?`+${Math.round(t)}%`:null},targetChargeDisabled:function(){return!this.connected||!["pv","minpv"].includes(this.mode)}},watch:{targetSoC:function(){this.displayTargetSoC=this.targetSoC}},methods:{targetSocDrag:function(t){this.displayTargetSoC=t},targetSocUpdated:function(t){this.displayTargetSoC=t,this.$emit("target-soc-updated",t)},targetEnergyUpdated:function(t){this.$emit("target-energy-updated",t)},setTargetTime:function(t){this.$emit("target-time-updated",t)},removeTargetTime:function(){this.$emit("target-time-removed")},changeVehicle(t){this.$emit("change-vehicle",t)},removeVehicle(){this.$emit("remove-vehicle")}}},dN=t=>(bt("data-v-915b5a7e"),t=t(),yt(),t),hN={class:"vehicle pt-4"},mN={class:"details d-flex flex-wrap justify-content-between"},pN={key:1,class:"d-flex justify-content-start"},gN=dN(()=>y("small",null,"vor 5 Stunden",-1)),_N=[gN];function vN(t,e,n,r,i,s){const o=ae("VehicleTitle"),a=ae("VehicleStatus"),l=ae("VehicleSoc"),c=ae("LabelAndValue"),u=ae("TargetCharge"),d=ae("TargetSoCSelect"),f=ae("TargetEnergySelect");return P(),V("div",hN,[ie(o,Dt(s.vehicleTitleProps,{onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onChangeVehicle","onRemoveVehicle"]),n.parked?ve("",!0):(P(),Te(a,Dt({key:0},s.vehicleStatus,{class:"mb-2"}),null,16)),ie(l,Dt(s.vehicleSocProps,{class:"mt-2 mb-4",onTargetSocUpdated:s.targetSocUpdated,onTargetSocDrag:s.targetSocDrag}),null,16,["onTargetSocUpdated","onTargetSocDrag"]),y("div",mN,[n.socBasedCharging?(P(),Te(c,{key:0,class:"flex-grow-1",label:t.$t("main.vehicle.vehicleSoC"),value:n.vehicleSoC?`${n.vehicleSoC}%`:"--",extraValue:n.vehicleRange?`${n.vehicleRange} km`:null,align:"start"},null,8,["label","value","extraValue"])):(P(),Te(c,{key:1,class:"flex-grow-1",label:t.$t("main.loadpoint.charged"),value:t.fmtKWh(n.chargedEnergy),extraValue:s.chargedSoC,align:"start"},null,8,["label","value","extraValue"])),n.socBasedCharging?(P(),Te(u,Dt({key:2,class:"flex-grow-1 text-center target-charge"},s.targetCharge,{disabled:s.targetChargeDisabled,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime}),null,16,["disabled","onTargetTimeUpdated","onTargetTimeRemoved"])):ve("",!0),n.socBasedCharging?(P(),Te(d,{key:3,class:"flex-grow-1 text-end","target-soc":i.displayTargetSoC,"range-per-soc":s.rangePerSoC,onTargetSocUpdated:s.targetSocUpdated},null,8,["target-soc","range-per-soc","onTargetSocUpdated"])):(P(),Te(f,{key:4,class:"flex-grow-1 text-end","target-energy":n.targetEnergy,"soc-per-kwh":s.socPerKwh,"charged-energy":n.chargedEnergy,"vehicle-capacity":n.vehicleCapacity,onTargetEnergyUpdated:s.targetEnergyUpdated},null,8,["target-energy","soc-per-kwh","charged-energy","vehicle-capacity","onTargetEnergyUpdated"]))]),t.$hiddenFeatures?(P(),V("div",pN,_N)):ve("",!0)])}const Rc=we(fN,[["render",vN],["__scopeId","data-v-915b5a7e"]]),bN={name:"Phases",props:{chargeCurrent:{type:Number},chargeCurrents:{type:Array},phasesActive:{type:Number},minCurrent:{type:Number},maxCurrent:{type:Number}},methods:{inactive(t){return t>this.phasesActive},targetWidth(){let t=Math.min(Math.max(this.minCurrent,this.chargeCurrent),this.maxCurrent);return 100/this.maxCurrent*t},realWidth(t){if(this.chargeCurrents){const e=this.chargeCurrents[t-1]||0;return 100/this.maxCurrent*e}return this.targetWidth()}}},yN={class:"phases d-flex justify-content-between"};function EN(t,e,n,r,i,s){return P(),V("div",yN,[(P(),V(xe,null,Je([1,2,3],o=>y("div",{key:o,class:De(["phase me-1",{inactive:s.inactive(o)}])},[y("div",{class:"target",style:Ct({width:`${s.targetWidth()}%`})},null,4),y("div",{class:"real",style:Ct({width:`${s.realWidth(o)}%`})},null,4)],2)),64))])}const em=we(bN,[["render",EN],["__scopeId","data-v-0709e49e"]]),wN={name:"LoadpointSettingsButton",props:{id:[String,Number]}},TN=["data-bs-target"],CN=y("shopicon-regular-adjust",{size:"s"},null,-1),SN=[CN];function AN(t,e,n,r,i,s){return P(),V("button",{type:"button","data-bs-toggle":"modal","data-bs-target":`#loadpointSettingsModal_${n.id}`,class:"btn btn-sm btn-outline-secondary position-relative border-0 p-2 evcc-gray"},SN,8,TN)}const kN=we(wN,[["render",AN]]);var xN='';class LN extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=xN}}window.customElements.define("shopicon-bold-lightning",LN);var NN='';class ON extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=NN}}window.customElements.define("shopicon-bold-car3",ON);const ko=230,PN={name:"LoadpointSettingsModal",mixins:[Lt],props:{id:[String,Number],phasesConfigured:Number,minSoC:Number,maxCurrent:Number,minCurrent:Number,title:String},emits:["phasesconfigured-updated","maxcurrent-updated","mincurrent-updated","minsoc-updated"],data:function(){return{selectedMaxCurrent:this.maxCurrent,selectedMinCurrent:this.minCurrent,selectedPhases:this.phasesConfigured,selectedMinSoC:this.minSoC}},computed:{maxPower1p:function(){return this.fmtKw(this.maxCurrent*ko)},minPower1p:function(){return this.fmtKw(this.minCurrent*ko)},maxPower3p:function(){return this.fmtKw(this.maxCurrent*ko*3)},minPower3p:function(){return this.fmtKw(this.minCurrent*ko*3)},maxPower:function(){return this.phasesConfigured===1?this.maxPower1p:this.maxPower3p},minPower:function(){return this.phasesConfigured===3?this.minPower3p:this.minPower1p},showConfigurablePhases:function(){return[0,1,3].includes(this.phasesConfigured)},showCurrentSettings:function(){return this.$hiddenFeatures},showMinSoCSettings:function(){return this.$hiddenFeatures}},watch:{maxCurrent:function(t){this.selectedMaxCurrent=t},minCurrent:function(t){this.selectedMinCurrent=t},phasesConfigured:function(t){this.selectedPhases=t},minSoC:function(t){this.selectedMinSoC=t}},methods:{formId:function(t){return`loadpoint_${this.id}_${t}`},changeMaxCurrent:function(){this.$emit("maxcurrent-updated",this.selectedMaxCurrent)},changeMinCurrent:function(){this.$emit("mincurrent-updated",this.selectedMinCurrent)},changePhasesConfigured:function(){this.$emit("phasesconfigured-updated",this.selectedPhases)},changeMinSoC:function(){this.$emit("minsoc-updated",this.selectedMinSoC)},currentOptions:function(t,e=16){const n=[],r=t?32:this.maxCurrent,i=t?this.minCurrent:6;for(let s=r;s>=i;s--){let o=`${s} A`;s===e&&(o+=` (${this.$t("main.loadpointSettings.default")})`),n.push({value:s,name:o})}return n}}},ff=t=>(bt("data-v-c8fc2df3"),t=t(),yt(),t),MN=["id"],IN={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},DN={class:"modal-content"},$N={class:"modal-header"},RN={class:"modal-title"},FN=ff(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),VN={class:"modal-body"},HN={class:"container"},BN={key:0,class:"d-flex align-items-center mb-3 mt-0 text-evcc"},UN=ff(()=>y("shopicon-bold-car3",{class:"ms-2"},null,-1)),jN={key:1,class:"mb-3 row"},WN=["for"],zN={class:"col-sm-8 pe-0"},KN=["id"],YN=["value"],qN={key:2,class:"d-flex align-items-center mb-3 mt-4 text-evcc"},GN=ff(()=>y("shopicon-bold-lightning",{class:"ms-1"},null,-1)),XN={key:3,class:"mb-3 row"},QN=["for"],JN={class:"col-sm-8 pe-0"},ZN={class:"form-check"},e8=["id","name"],t8=["for"],n8={class:"form-check"},r8=["id","name"],i8=["for"],s8={class:"form-check"},o8=["id","name"],a8=["for"],l8={key:4,class:"mb-3 row"},c8=["for"],u8={class:"col-sm-8 pe-0 d-flex align-items-center"},f8=["id"],d8=["value"],h8={class:"ms-3"},m8={key:5,class:"mb-3 row"},p8=["for"],g8={class:"col-sm-8 pe-0 d-flex align-items-center"},_8=["id"],v8=["value"],b8={class:"ms-3"},y8={class:"small mt-3 text-muted mb-0"},E8={class:"text-evcc"};function w8(t,e,n,r,i,s){return P(),Te(oo,{to:"body"},[y("div",{id:`loadpointSettingsModal_${n.id}`,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[y("div",IN,[y("div",DN,[y("div",$N,[y("h5",RN,F(t.$t("main.loadpointSettings.title",[n.title])),1),FN]),y("div",VN,[y("div",HN,[s.showMinSoCSettings?(P(),V("h4",BN,[Le(F(t.$t("main.loadpointSettings.vehicle"))+" ",1),UN])):ve("",!0),s.showMinSoCSettings?(P(),V("div",jN,[y("label",{for:s.formId("minsoc"),class:"col-sm-4 col-form-label pt-0 pt-sm-1"},F(t.$t("main.loadpointSettings.minSoC.label")),9,WN),y("div",zN,[Yt(y("select",{id:s.formId("minsoc"),"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedMinSoC=o),class:"form-select form-select-sm mb-2 w-50",onChange:e[1]||(e[1]=(...o)=>s.changeMinSoC&&s.changeMinSoC(...o))},[(P(),V(xe,null,Je([0,5,10,15,20,25,30,35,40,45,50],o=>y("option",{key:o,value:o},F(o?`${o}%`:"--"),9,YN)),64))],40,KN),[[$o,t.selectedMinSoC,void 0,{number:!0}]]),y("small",null,F(t.$t("main.loadpointSettings.minSoC.description",[t.selectedMinSoC||"x"])),1)])])):ve("",!0),s.showConfigurablePhases||s.showCurrentSettings?(P(),V("h4",qN,[Le(F(t.$t("main.loadpointSettings.currents"))+" ",1),GN])):ve("",!0),s.showConfigurablePhases?(P(),V("div",XN,[y("label",{for:s.formId("phases_0"),class:"col-sm-4 col-form-label pt-0"},F(t.$t("main.loadpointSettings.phasesConfigured.label")),9,QN),y("div",JN,[y("div",ZN,[Yt(y("input",{id:s.formId("phases_0"),"onUpdate:modelValue":e[2]||(e[2]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:0,onChange:e[3]||(e[3]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,e8),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_0")},F(t.$t("main.loadpointSettings.phasesConfigured.phases_0")),9,t8)]),y("div",n8,[Yt(y("input",{id:s.formId("phases_1"),"onUpdate:modelValue":e[4]||(e[4]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:1,onChange:e[5]||(e[5]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,r8),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_1")},[Le(F(t.$t("main.loadpointSettings.phasesConfigured.phases_1"))+" ",1),y("small",null,F(t.$t("main.loadpointSettings.phasesConfigured.phases_1_hint",{min:s.minPower1p,max:s.maxPower1p})),1)],8,i8)]),y("div",s8,[Yt(y("input",{id:s.formId("phases_3"),"onUpdate:modelValue":e[6]||(e[6]=o=>t.selectedPhases=o),class:"form-check-input",type:"radio",name:s.formId("phases"),value:3,onChange:e[7]||(e[7]=(...o)=>s.changePhasesConfigured&&s.changePhasesConfigured(...o))},null,40,o8),[[ml,t.selectedPhases,void 0,{number:!0}]]),y("label",{class:"form-check-label",for:s.formId("phases_3")},[Le(F(t.$t("main.loadpointSettings.phasesConfigured.phases_3"))+" ",1),y("small",null,F(t.$t("main.loadpointSettings.phasesConfigured.phases_3_hint",{min:s.minPower3p,max:s.maxPower3p})),1)],8,a8)])])])):ve("",!0),t.$hiddenFeatures?(P(),V("div",l8,[y("label",{for:s.formId("maxcurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},F(t.$t("main.loadpointSettings.maxCurrent.label")),9,c8),y("div",u8,[Yt(y("select",{id:s.formId("maxcurrent"),"onUpdate:modelValue":e[8]||(e[8]=o=>t.selectedMaxCurrent=o),class:"form-select form-select-sm w-50",onChange:e[9]||(e[9]=(...o)=>s.changeMaxCurrent&&s.changeMaxCurrent(...o))},[(P(!0),V(xe,null,Je(s.currentOptions(!0,16),({value:o,name:a})=>(P(),V("option",{key:o,value:o},F(a),9,d8))),128))],40,f8),[[$o,t.selectedMaxCurrent,void 0,{number:!0}]]),y("small",h8,"~ "+F(s.maxPower),1)])])):ve("",!0),t.$hiddenFeatures?(P(),V("div",m8,[y("label",{for:s.formId("mincurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},F(t.$t("main.loadpointSettings.minCurrent.label")),9,p8),y("div",g8,[Yt(y("select",{id:s.formId("mincurrent"),"onUpdate:modelValue":e[10]||(e[10]=o=>t.selectedMinCurrent=o),class:"form-select form-select-sm w-50",onChange:e[11]||(e[11]=(...o)=>s.changeMinCurrent&&s.changeMinCurrent(...o))},[(P(!0),V(xe,null,Je(s.currentOptions(!1,6),({value:o,name:a})=>(P(),V("option",{key:o,value:o},F(a),9,v8))),128))],40,_8),[[$o,t.selectedMinCurrent,void 0,{number:!0}]]),y("small",b8,"~ "+F(s.minPower),1)])])):ve("",!0)]),y("p",y8,[y("strong",E8,F(t.$t("main.loadpointSettings.disclaimerHint")),1),Le(" "+F(t.$t("main.loadpointSettings.disclaimerText")),1)])])])])],8,MN)])}const tm=we(PN,[["render",w8],["__scopeId","data-v-c8fc2df3"]]),T8={name:"Loadpoint",components:{Mode:Dx,Vehicle:Rc,Phases:em,LabelAndValue:co,LoadpointSettingsButton:kN,LoadpointSettingsModal:tm},mixins:[Lt,Wa],props:{id:Number,single:Boolean,title:String,mode:String,targetSoC:Number,targetEnergy:Number,remoteDisabled:Boolean,remoteDisabledSource:String,chargeDuration:Number,charging:Boolean,connected:Boolean,enabled:Boolean,vehicleDetectionActive:Boolean,vehiclePresent:Boolean,vehicleRange:Number,vehicleSoC:Number,vehicleTitle:String,vehicleTargetSoC:Number,vehicleCapacity:Number,vehicleFeatureOffline:Boolean,vehicles:Array,minSoC:Number,targetTime:String,targetTimeActive:Boolean,targetTimeProjectedStart:String,vehicleProviderLoggedIn:Boolean,vehicleProviderLoginPath:String,vehicleProviderLogoutPath:String,chargePower:Number,chargedEnergy:Number,climater:String,chargeRemainingDuration:Number,phases:Number,phasesConfigured:Number,minCurrent:Number,maxCurrent:Number,phasesActive:Number,chargeCurrent:Number,connectedDuration:Number,chargeCurrents:Array,chargeConfigured:Boolean,chargeRemainingEnergy:Number,phaseAction:String,phaseRemaining:Number,pvRemaining:Number,pvAction:String},data(){return{tickerHandler:null,phaseRemainingInterpolated:this.phaseRemaining,pvRemainingInterpolated:this.pvRemaining,chargeDurationInterpolated:this.chargeDuration,chargeRemainingDurationInterpolated:this.chargeRemainingDuration}},computed:{phasesProps:function(){return this.collectProps(em)},settingsModal:function(){return this.collectProps(tm)},settingsButtonVisible:function(){return this.$hiddenFeatures||[0,1,3].includes(this.phasesConfigured)},vehicle:function(){return this.collectProps(Rc)},showChargingIndicator:function(){return this.charging&&this.chargePower>0},socBasedCharging:function(){return!this.vehicleFeatureOffline&&this.vehiclePresent}},watch:{phaseRemaining(){this.phaseRemainingInterpolated=this.phaseRemaining},pvRemaining(){this.pvRemainingInterpolated=this.pvRemaining},chargeDuration(){this.chargeDurationInterpolated=this.chargeDuration},chargeRemainingDuration(){this.chargeRemainingDurationInterpolated=this.chargeRemainingDuration}},mounted(){this.tickerHandler=setInterval(this.tick,1e3)},unmounted(){clearInterval(this.tickerHandler)},methods:{tick(){this.phaseRemainingInterpolated>0&&this.phaseRemainingInterpolated--,this.pvRemainingInterpolated>0&&this.pvRemainingInterpolated--,this.chargeDurationInterpolated>0&&this.charging&&this.chargeDurationInterpolated++,this.chargeRemainingDurationInterpolated>0&&this.charging&&this.chargeRemainingDurationInterpolated--},apiPath:function(t){return"loadpoints/"+this.id+"/"+t},setTargetMode:function(t){at.post(this.apiPath("mode")+"/"+t)},setTargetSoC:function(t){at.post(this.apiPath("targetsoc")+"/"+t)},setTargetEnergy:function(t){at.post(this.apiPath("targetenergy")+"/"+t)},setMaxCurrent:function(t){at.post(this.apiPath("maxcurrent")+"/"+t)},setMinCurrent:function(t){at.post(this.apiPath("mincurrent")+"/"+t)},setPhasesConfigured:function(t){at.post(this.apiPath("phases")+"/"+t)},setMinSoC:function(t){at.post(this.apiPath("minsoc")+"/"+t)},setTargetTime:function(t){at.post(`${this.apiPath("targetcharge")}/${this.targetSoC}/${t.toISOString()}`)},removeTargetTime:function(){at.delete(this.apiPath("targetcharge"))},changeVehicle(t){at.post(this.apiPath("vehicle")+`/${t}`)},removeVehicle(){at.delete(this.apiPath("vehicle"))},fmtkWUnit(t){const e=t==0||t>=1e3;return this.fmtKw(t,e)}}},C8=t=>(bt("data-v-3d01cac9"),t=t(),yt(),t),S8={class:"loadpoint pt-4 pb-2 px-3 px-sm-4 mx-2 mx-sm-0"},A8={class:"d-block d-sm-flex justify-content-between align-items-center mb-3"},k8={class:"d-flex justify-content-between align-items-center mb-3"},x8={class:"me-2 mb-0 text-truncate"},L8={class:"mb-3 d-flex align-items-center"},N8={class:"details d-flex align-items-start mb-3"},O8={class:"d-flex align-items-center"},P8=C8(()=>y("hr",{class:"divider"},null,-1));function M8(t,e,n,r,i,s){const o=ae("LoadpointSettingsButton"),a=ae("Mode"),l=ae("LoadpointSettingsModal"),c=ae("LabelAndValue"),u=ae("Phases"),d=ae("Vehicle");return P(),V("div",S8,[y("div",A8,[y("div",k8,[y("h3",x8,F(n.title||t.$t("main.loadpoint.fallbackName")),1),s.settingsButtonVisible?(P(),Te(o,{key:0,id:n.id,class:"d-block d-sm-none"},null,8,["id"])):ve("",!0)]),y("div",L8,[ie(a,{class:"flex-grow-1",mode:n.mode,onUpdated:s.setTargetMode},null,8,["mode","onUpdated"]),s.settingsButtonVisible?(P(),Te(o,{key:0,id:n.id,class:"d-none d-sm-block ms-2"},null,8,["id"])):ve("",!0)])]),ie(l,Dt(s.settingsModal,{onMaxcurrentUpdated:s.setMaxCurrent,onMincurrentUpdated:s.setMinCurrent,onPhasesconfiguredUpdated:s.setPhasesConfigured,onMinsocUpdated:s.setMinSoC}),null,16,["onMaxcurrentUpdated","onMincurrentUpdated","onPhasesconfiguredUpdated","onMinsocUpdated"]),n.remoteDisabled?(P(),V("div",{key:0,class:De(["alert alert-warning my-4 py-2",`${n.remoteDisabled==="hard"?"alert-danger":"alert-warning"}`]),role:"alert"},F(t.$t(n.remoteDisabled==="hard"?"main.loadpoint.remoteDisabledHard":"main.loadpoint.remoteDisabledSoft",{source:n.remoteDisabledSource})),3)):ve("",!0),y("div",N8,[y("div",null,[y("div",O8,[ie(c,{label:t.$t("main.loadpoint.power"),value:n.chargePower,valueFmt:s.fmtkWUnit,class:"mb-2",align:"start"},null,8,["label","value","valueFmt"]),y("shopicon-regular-lightning",{class:De(["text-evcc opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]),size:"m"},null,2)]),ie(u,Dt(s.phasesProps,{class:["opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]}),null,16,["class"])]),Yt(ie(c,{label:t.$t("main.loadpoint.charged"),value:t.fmtKWh(n.chargedEnergy),align:"center"},null,8,["label","value"]),[[Du,s.socBasedCharging]]),i.chargeRemainingDurationInterpolated?(P(),Te(c,{key:0,label:t.$t("main.loadpoint.remaining"),value:` ${t.fmtShortDuration(i.chargeRemainingDurationInterpolated)} ${t.fmtShortDurationUnit(i.chargeRemainingDurationInterpolated,!0)}`,align:"end"},null,8,["label","value"])):(P(),Te(c,{key:1,label:t.$t("main.loadpoint.duration"),value:` ${t.fmtShortDuration(i.chargeDurationInterpolated)} - ${t.fmtShortDurationUnit(i.chargeDurationInterpolated)}`,align:"end"},null,8,["label","value"]))]),O8,ie(d,Dt(s.vehicle,{onTargetSocUpdated:s.setTargetSoC,onTargetEnergyUpdated:s.setTargetEnergy,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onTargetSocUpdated","onTargetEnergyUpdated","onTargetTimeUpdated","onTargetTimeRemoved","onChangeVehicle","onRemoveVehicle"])])}const M8=we(w8,[["render",P8],["__scopeId","data-v-3d01cac9"]]),I8={name:"Site",components:{Loadpoint:M8},props:{loadpoints:Array,vehicles:Array},data(){return{selectedIndex:0,snapTimeout:null}},mounted(){this.$refs.carousel.addEventListener("scroll",this.handleCarouselScroll,!1)},unmounted(){this.$refs.carousel&&this.$refs.carousel.removeEventListener("scroll",this.handleCarouselScroll)},methods:{handleCarouselScroll(){const{scrollLeft:t}=this.$refs.carousel,{offsetWidth:e}=this.$refs.carousel.children[0];this.selectedIndex=Math.round((t-7.5)/e)},selected(t){return this.selectedIndex===t},scrollTo(t){if(this.selectedIndex===t)return;this.selectedIndex=t;const e=this.$refs.carousel,n=e.children[0].offsetWidth;e.style.scrollSnapType="none",e.scrollTo({top:0,left:7.5+n*t,behavior:"smooth"}),clearTimeout(this.snapTimeout),this.snapTimeout=setTimeout(()=>{this.$refs.carousel.style.scrollSnapType="x mandatory"},1e3)}}},D8=t=>(bt("data-v-024a6ae6"),t=t(),yt(),t),$8={class:"container container--loadpoint px-0 mb-md-2 d-flex flex-column justify-content-center"},R8={ref:"carousel",class:"carousel d-lg-flex flex-wrap"},F8={key:0,class:"d-flex d-lg-none justify-content-center"},V8=["onClick"],H8=D8(()=>y("shopicon-filled-circle",{class:"indicator-icon"},null,-1)),B8=[H8];function U8(t,e,n,r,i,s){const o=ae("Loadpoint");return P(),V("div",$8,[y("div",R8,[(P(!0),V(xe,null,Je(n.loadpoints,(a,l)=>(P(),V("div",{key:l,class:"flex-grow-1 mb-3 m-lg-0 p-lg-0"},[ie(o,Dt(a,{id:l,vehicles:n.vehicles,class:["h-100",{"loadpoint-unselected":!s.selected(l)}],onClick:c=>s.scrollTo(l)}),null,16,["id","vehicles","class","onClick"])]))),128))],512),n.loadpoints.length>1?(P(),V("div",F8,[(P(!0),V(xe,null,Je(n.loadpoints,(a,l)=>(P(),V("button",{key:l,class:De(["btn btn-sm btn-link p-0 mx-1 indicator d-flex justify-content-center align-items-center evcc-default-text",{"indicator--selected":s.selected(l)}]),onClick:c=>s.scrollTo(l)},B8,10,V8))),128))])):ve("",!0)])}const j8=we(I8,[["render",U8],["__scopeId","data-v-024a6ae6"]]),W8={name:"Vehicles",components:{Vehicle:Rc},data(){return{refreshing:!1,vehicles:[{vehiclePresent:!0,vehicleTitle:"Ford Mustang Mach-E",vehicleSoC:46,vehicleRange:182,targetSoC:100},{vehiclePresent:!0,vehicleTitle:"Renault Twingo Electric",vehicleSoC:77,vehicleRange:98,targetSoC:90},{vehiclePresent:!0,vehicleTitle:"Blauer VW ID.4",vehicleSoC:16,vehicleRange:52,minSoC:35,targetSoC:60}]}},methods:{refresh(){this.refreshing=!0,window.setTimeout(()=>{this.refreshing=!1},5e3)}}},z8=t=>(bt("data-v-7430d6bb"),t=t(),yt(),t),K8={class:"container px-4 mb-3 mb-sm-4 d-flex justify-content-start align-items-center"},Y8={class:"m-0"},q8=["disabled"],G8=z8(()=>y("shopicon-regular-refresh",{class:"refresh-icon"},null,-1)),X8=[G8];function Q8(t,e,n,r,i,s){const o=ae("Vehicle");return P(),V("div",null,[y("div",K8,[y("h2",Y8,F(t.$t("main.vehicles")),1),y("button",{class:De(["btn btn-link d-flex evcc-default-text p-2 ms-1 refresh",{"refresh--in-progress":i.refreshing}]),disabled:i.refreshing,onClick:e[0]||(e[0]=(...a)=>s.refresh&&s.refresh(...a))},X8,10,q8)]),y("div",{class:De(["container vehicles px-0 mb-5",`vehicles-${i.vehicles.length}`])},[(P(!0),V(xe,null,Je(i.vehicles,(a,l)=>(P(),Te(o,Dt(a,{id:`vehicle_${l}`,key:l,class:"vehicle",parked:""}),null,16,["id"]))),128))],2)])}const J8=we(W8,[["render",Q8],["__scopeId","data-v-7430d6bb"]]);var Z8='';class eO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Z8}}window.customElements.define("shopicon-filled-testtube",eO);const tO={name:"Logo"},df=t=>(bt("data-v-9d6237eb"),t=t(),yt(),t),nO={viewBox:"0 0 122 35",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},rO=df(()=>y("path",{d:"M13.082 29.071a12.384 12.384 0 01-9-3.42 12.192 12.192 0 01-3.54-9.12v-.64a15.394 15.394 0 011.47-6.83 10.825 10.825 0 014.17-4.64 11.64 11.64 0 016.15-1.63 10.45 10.45 0 018.21 3.26c2 2.194 3 5.297 3 9.31v2.76H7.382a6.348 6.348 0 002 4 5.997 5.997 0 004.16 1.49 7.305 7.305 0 006.1-2.84l3.31 3.73a10 10 0 01-4.13 3.39 13.309 13.309 0 01-5.74 1.18zm-.77-20.84a4.216 4.216 0 00-3.26 1.37 7.141 7.141 0 00-1.6 3.91h9.39v-.55a5.005 5.005 0 00-1.22-3.49 4.304 4.304 0 00-3.31-1.24zM36.452 20.331l4.7-17.09h7l-8.48 25.36h-6.44l-8.52-25.36h7l4.74 17.09zM85.542 23.611a4.444 4.444 0 003-1 3.638 3.638 0 001.22-2.75h6.32a8.668 8.668 0 01-1.4 4.73 9.145 9.145 0 01-3.79 3.3 11.736 11.736 0 01-5.29 1.19 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.868 10.868 0 018.51-3.5c2.791-.134 5.524.84 7.6 2.71a9.626 9.626 0 012.9 7.21h-6.3a4.663 4.663 0 00-1.2-3.22 4.005 4.005 0 00-3.08-1.24 4.068 4.068 0 00-3.56 1.73c-.8 1.15-1.2 3-1.2 5.6v.7c0 2.61.39 4.49 1.19 5.63a4.092 4.092 0 003.65 1.72zM110.422 23.611a4.454 4.454 0 003-1 3.63 3.63 0 001.21-2.75h6.33a8.668 8.668 0 01-1.4 4.73 9.143 9.143 0 01-3.73 3.3 11.76 11.76 0 01-5.29 1.18 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.85 10.85 0 018.57-3.49 10.575 10.575 0 017.6 2.71 9.598 9.598 0 012.91 7.21h-6.33a4.651 4.651 0 00-1.21-3.22 4.492 4.492 0 00-6.64.49c-.8 1.15-1.21 3-1.21 5.6v.7c0 2.607.4 4.484 1.2 5.63a4.09 4.09 0 003.56 1.72z",fill:"#fff",class:"letter","fill-rule":"nonzero"},null,-1)),iO=df(()=>y("path",{d:"M58.462.751h9.22l-6.14 12.3h6.15l-11.53 21.51 2.3-15.36h-7.68l7.68-18.45z",fill:"#0fdd42","fill-rule":"nonzero"},null,-1)),sO=df(()=>y("path",{fill:"none",d:"M-24.458-22.109h170v76h-170z"},null,-1)),oO=[rO,iO,sO];function aO(t,e,n,r,i,s){return P(),V("svg",nO,oO)}const lO=we(tO,[["render",aO],["__scopeId","data-v-9d6237eb"]]);var cO='';class uO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=cO}}window.customElements.define("shopicon-regular-gift",uO);var fO='';class dO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=fO}}window.customElements.define("shopicon-regular-moonstars",dO);const hO={name:"Version",components:{Logo:lO},props:{installed:String,available:String,releaseNotes:String,commit:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number},data:function(){return{updateStarted:!1,updateStatus:""}},computed:{githubHashUrl:function(){return`https://github.com/evcc-io/evcc/commit/${this.commit}`},newVersionAvailable:function(){return this.available&&this.installed!="[[.Version]]"&&this.installed!="0.0.1-alpha"&&this.available!=this.installed}},methods:{update:async function(){try{await at.post("update"),this.updateStatus=this.$t("footer.version.modalUpdateStatusStart"),this.updateStarted=!0}catch(t){this.updateStatus=this.$t("footer.version.modalUpdateStatusStart")+t}},releaseNotesUrl:function(t){return`https://github.com/evcc-io/evcc/releases/tag/${t}`}}},za=t=>(bt("data-v-66915926"),t=t(),yt(),t),mO=["href"],pO=za(()=>y("shopicon-regular-moonstars",{class:"ms-2 text-gray-light"},null,-1)),gO={key:1,href:"#","data-bs-toggle":"modal","data-bs-target":"#updateModal",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},_O=za(()=>y("shopicon-regular-gift",{class:"me-2"},null,-1)),vO={class:"ms-2 d-none d-xs-block d-sm-none text-decoration-underline"},bO={class:"ms-2 d-none d-sm-block text-gray-medium text-decoration-underline"},yO=["href"],EO={id:"updateModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true"},wO={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},TO={class:"modal-content"},CO={class:"modal-header"},SO={class:"modal-title"},AO=za(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),kO={class:"modal-body"},xO={key:0},LO={class:"progress my-3"},NO={key:1},OO=["innerHTML"],PO={key:1},MO=["href"],IO=Le(". "),DO={class:"modal-footer d-flex justify-content-between"},$O=["disabled"],RO=["disabled"],FO={key:0},VO=za(()=>y("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),HO={key:1},BO=["href"];function UO(t,e,n,r,i,s){const o=ae("Logo");return P(),V("div",null,[n.commit?(P(),V("a",{key:0,href:s.githubHashUrl,target:"_blank",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},[ie(o,{class:"logo me-2"}),Le(" v"+F(n.installed)+" ",1),pO],8,mO)):s.newVersionAvailable?(P(),V("button",gO,[_O,Le(" v"+F(n.installed)+" ",1),y("span",vO,F(t.$t("footer.version.availableShort")),1),y("span",bO,F(t.$t("footer.version.availableLong")),1)])):(P(),V("a",{key:2,href:s.releaseNotesUrl(n.installed),target:"_blank",class:"btn btn-link evcc-default-text ps-0 text-decoration-none text-nowrap d-flex align-items-end"},[ie(o,{class:"logo me-2"}),Le(" v"+F(n.installed),1)],8,yO)),(P(),Te(oo,{to:"body"},[y("div",EO,[y("div",wO,[y("div",TO,[y("div",CO,[y("h5",SO,F(t.$t("footer.version.modalTitle")),1),AO]),y("div",kO,[t.updateStarted?(P(),V("div",xO,[y("p",null,F(t.$t("footer.version.modalUpdateStarted")),1),y("div",LO,[y("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:Ct({width:n.uploadProgress+"%"})},null,4)]),y("p",null,F(t.updateStatus)+F(n.uploadMessage),1)])):(P(),V("div",NO,[y("p",null,[y("small",null,F(t.$t("footer.version.modalInstalledVersion"))+": "+F(n.installed),1)]),n.releaseNotes?(P(),V("div",{key:0,innerHTML:n.releaseNotes},null,8,OO)):(P(),V("p",PO,[Le(F(t.$t("footer.version.modalNoReleaseNotes"))+" ",1),y("a",{href:s.releaseNotesUrl(n.available)},"GitHub",8,MO),IO]))]))]),y("div",DO,[y("button",{type:"button",class:"btn btn-outline-secondary",disabled:t.updateStarted,"data-bs-dismiss":"modal"},F(t.$t("footer.version.modalCancel")),9,$O),y("div",null,[n.hasUpdater?(P(),V("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.updateStarted,onClick:e[0]||(e[0]=(...a)=>s.update&&s.update(...a))},[t.updateStarted?(P(),V("span",FO,[VO,Le(" "+F(t.$t("footer.version.modalUpdate")),1)])):(P(),V("span",HO,F(t.$t("footer.version.modalUpdateNow")),1))],8,RO)):(P(),V("a",{key:1,href:s.releaseNotesUrl(n.available),class:"btn btn-primary"},F(t.$t("footer.version.modalDownload")),9,BO))])])])])])]))])}const jO=we(hO,[["render",UO],["__scopeId","data-v-66915926"]]);var uo={};(function t(e,n,r,i){var s=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL);function o(){}function a(I){var M=n.exports.Promise,Y=M!==void 0?M:e.Promise;return typeof Y=="function"?new Y(I):(I(o,o),null)}var l=function(){var I=Math.floor(16.666666666666668),M,Y,z={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(M=function(se){var ce=Math.random();return z[ce]=requestAnimationFrame(function he(fe){te===fe||te+I-1(bt("data-v-af8a72a8"),t=t(),yt(),t),XO={key:0},QO={class:"fw-bold mb-1 d-flex"},JO=hf(()=>y("shopicon-regular-heart",{class:"title-icon text-primary d-inline-block me-1"},null,-1)),ZO={class:"mb-3"},eP={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},tP=hf(()=>y("shopicon-regular-stars",{class:"me-1 d-inline-block"},null,-1)),nP={href:"https://evcc.io/sticker",target:"_blank",class:"small text-muted ms-lg-3"},rP={key:1},iP={class:"fw-bold mb-1"},sP={class:"mb-3"},oP={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},aP={target:"_blank",href:"https://github.com/sponsors/andig",class:"btn btn-outline-primary mb-3 become-sponsor"},lP=hf(()=>y("shopicon-regular-heart",{class:"me-1 d-inline-block"},null,-1)),cP={class:"small text-muted text-center ms-lg-3"};function uP(t,e,n,r,i,s){return n.sponsor?(P(),V("div",XO,[y("p",QO,[JO,Le(" "+F(t.$t("footer.sponsor.titleSponsor")),1)]),y("p",ZO,F(t.$t("footer.sponsor.thanks",{sponsor:n.sponsor})),1),y("div",eP,[y("button",{ref:"confetti",class:"btn btn btn-outline-primary mb-2 confetti-button bg-evcc rounded",onClick:e[0]||(e[0]=(...o)=>s.surprise&&s.surprise(...o))},[tP,Le(" "+F(t.$t("footer.sponsor.confetti")),1)],512),y("a",nP,F(t.$t("footer.sponsor.sticker")),1)])])):(P(),V("div",rP,[y("p",iP,F(t.$t("footer.sponsor.titleNoSponsor")),1),y("p",sP,F(t.$t("footer.sponsor.supportUs")),1),y("div",oP,[y("a",aP,[lP,Le(" "+F(t.$t("footer.sponsor.becomeSponsor")),1)]),y("div",cP,F(t.$t("footer.sponsor.confettiPromise")),1)])]))}const fP=we(GO,[["render",uP],["__scopeId","data-v-af8a72a8"]]);var dP='';class hP extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=dP}}window.customElements.define("shopicon-regular-coinjar",hP);var mP='';class pP extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=mP}}window.customElements.define("shopicon-regular-receivepayment",pP);var gP='';class _P extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=gP}}window.customElements.define("shopicon-regular-eco1",_P);const vP={name:"SavingsTile",components:{AnimatedNumber:ri},props:{title:String,icon:String,value:[String,Number],valueFmt:Function,animationDuration:Number,unit:String,sub1:String,sub2:String}},bP=t=>(bt("data-v-b7d590a3"),t=t(),yt(),t),yP={class:"flex-shrink-1 d-flex mb-4 mb-lg-0 align-items-center align-items-lg-start"},EP={key:0,class:"tile-icon"},wP={key:1,class:"tile-icon"},TP={key:2,class:"tile-icon"},CP={key:3,class:"tile-icon"},SP={key:4,class:"tile-icon"},AP={class:"ms-3 d-flex flex-grow-1 d-lg-block align-items-center justify-content-between"},kP={class:"my-0 fw-bold text-truncate"},xP={class:"d-flex align-items-baseline lh-sm"},LP={class:"fs-1"},NP={key:1},OP={class:"ms-1 unit"},PP={class:"d-block mt-0 ms-3 ms-lg-0 text-end text-lg-start"},MP=bP(()=>y("br",null,null,-1));function IP(t,e,n,r,i,s){const o=ae("AnimatedNumber");return P(),V("div",yP,[n.icon==="sun"?(P(),V("shopicon-regular-sun",EP)):ve("",!0),n.icon==="coinjar"?(P(),V("shopicon-regular-coinjar",wP)):ve("",!0),n.icon==="receivepayment"?(P(),V("shopicon-regular-receivepayment",TP)):ve("",!0),n.icon==="car"?(P(),V("shopicon-regular-car3",CP)):ve("",!0),n.icon==="eco"?(P(),V("shopicon-regular-eco1",SP)):ve("",!0),y("div",AP,[y("div",null,[y("p",kP,F(n.title),1),y("strong",xP,[y("span",LP,[n.valueFmt?(P(),Te(o,{key:0,to:n.value,format:n.valueFmt,duration:n.animationDuration},null,8,["to","format","duration"])):(P(),V("span",NP,F(n.value),1))]),y("span",OP,F(n.unit),1)])]),y("small",PP,[Le(F(n.sub1)+" ",1),MP,Le(" "+F(n.sub2),1)])])])}const _v=we(vP,[["render",IP],["__scopeId","data-v-b7d590a3"]]),vv=cf.create({baseURL:"https://api.evcc.io/v1/",headers:{Accept:"application/json"}});vv.interceptors.response.use(t=>t,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;return window.app.error({message:n}),Promise.reject(t)});const DP={name:"LiveCommunity",components:{SavingsTile:_v},mixins:[Lt],props:{},data(){return{refresh:null,result:{},animationDuration:.5}},computed:{totalClients(){return this.result.totalClients},activeClients(){return this.result.activeClients},chargePower(){const{chargePower:t=0}=this.result;return t/1e3},greenShare(){const{chargePower:t,greenPower:e}=this.result;return t?100/t*e:0},greenEnergyMWh(){const{greenEnergy:t=0}=this.result;return t/1e3}},async mounted(){this.refresh=setInterval(this.update,5e3),await this.update(),this.$nextTick(()=>{this.animationDuration=5})},unmounted(){clearInterval(this.refresh)},methods:{async update(){try{const t=await vv.get("total");this.result=t.data||{}}catch(t){console.error(t)}},numberAnimationFmt(t){return this.fmtNumber(t,1)}}},$P={class:"d-block d-lg-flex mb-2 justify-content-between"};function RP(t,e,n,r,i,s){const o=ae("SavingsTile");return P(),V("div",$P,[ie(o,{class:"text-accent2",icon:"car",title:t.$t("footer.community.power"),value:s.chargePower,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"kW",sub1:t.$t("footer.community.powerSub1",{totalClients:s.totalClients,activeClients:s.activeClients}),sub2:t.$t("footer.community.powerSub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"]),ie(o,{class:"text-accent1",icon:"sun",title:t.$t("footer.community.greenShare"),value:s.greenShare,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"%",sub1:t.$t("footer.community.greenShareSub1"),sub2:t.$t("footer.community.greenShareSub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"]),ie(o,{class:"text-accent3",icon:"eco",title:t.$t("footer.community.greenEnergy"),value:s.greenEnergyMWh,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"MWh",sub1:t.$t("footer.community.greenEnergySub1"),sub2:t.$t("footer.community.greenEnergySub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"])])}const FP=we(DP,[["render",RP]]);function VP(t){return t.replace(/\*\*(.*)\*\*/gim,"$1").replace(/\*(.*)\*/gim,"$1").replace(/`(.*)`/gim,"
$1
").trim()}const HP={name:"TelemetrySettings",props:{sponsor:String},data(){return{enabled:!1,error:null}},async mounted(){await this.update()},methods:{async change(t){try{this.error=null;const e=await at.post(`settings/telemetry/${t.target.checked}`);this.enabled=e.data.result}catch(e){e.response&&(this.error=VP("**Error:** "+e.response.data.error),this.enabled=!1)}},async update(){try{const t=await at.get("settings/telemetry");this.enabled=t.data.result}catch(t){console.error(t)}}}},BP={class:"form-check form-switch my-3"},UP=["disabled"],jP={class:"form-check-label"},WP={for:"telemetryEnabled"},zP={href:"https://docs.evcc.io/docs/guides/setup/#telemetry--community-daten"},KP={key:1},YP=["innerHTML"];function qP(t,e,n,r,i,s){const o=ae("i18n-t");return P(),V("div",BP,[Yt(y("input",{id:"telemetryEnabled","onUpdate:modelValue":e[0]||(e[0]=a=>i.enabled=a),class:"form-check-input",type:"checkbox",role:"switch",disabled:!n.sponsor,onChange:e[1]||(e[1]=(...a)=>s.change&&s.change(...a))},null,40,UP),[[a2,i.enabled]]),y("div",jP,[y("label",WP,[Le(F(t.$t("footer.telemetry.optIn"))+" ",1),n.sponsor?(P(),Te(o,{key:0,tag:"span",keypath:"footer.telemetry.optInMoreDetails"},{default:et(()=>[y("a",zP,F(t.$t("footer.telemetry.optInMoreDetailsLink")),1)]),_:1})):(P(),V("span",KP,F(t.$t("footer.telemetry.optInSponsorship")),1))]),i.error?(P(),V("div",{key:0,class:"errorMessage my-1 text-danger",innerHTML:i.error},null,8,YP)):ve("",!0)])])}const GP=we(HP,[["render",qP],["__scopeId","data-v-30a9f43b"]]),XP={name:"Savings",components:{Sponsor:fP,SavingsTile:_v,LiveCommunity:FP,TelemetrySettings:GP},mixins:[Lt],props:{selfConsumptionPercent:Number,since:{type:Number,default:0},sponsor:String,amount:{type:Number,default:0},effectivePrice:{type:Number,default:0},totalCharged:{type:Number,default:0},gridCharged:{type:Number,default:0},selfConsumptionCharged:{type:Number,default:0},gridPrice:{type:Number},feedInPrice:{type:Number},currency:String},data(){return{communityView:!1,telemetryEnabled:!1}},computed:{percent(){return Math.round(this.selfConsumptionPercent)||0},effectivePriceFormatted(){const[t,e]=this.fmtPricePerKWh(this.effectivePrice,this.currency).split(" ");return{value:t,unit:e}},startDate(){return new Date(this.since*1e3)}},methods:{showCommunity(){this.communityView=!0},showMyData(){this.communityView=!1}}},QP={class:"btn btn-link pe-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end","data-bs-toggle":"modal","data-bs-target":"#savingsModal"},JP={class:"d-inline d-sm-none"},ZP={class:"d-none d-sm-inline"},e3=y("shopicon-regular-sun",{class:"ms-2 text-evcc"},null,-1),t3={id:"savingsModal",ref:"modal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},n3={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},r3={class:"modal-content"},i3={class:"modal-header"},s3={class:"modal-title"},o3=y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),a3={class:"modal-body"},l3={class:"nav nav-tabs"},c3={class:"nav-item"},u3={class:"nav-item"},f3={key:0,class:"my-4"},d3={class:"d-block d-lg-flex mb-2 justify-content-between"},h3={class:"my-3 lh-2"},m3={key:1,class:"my-4"};function p3(t,e,n,r,i,s){const o=ae("SavingsTile"),a=ae("LiveCommunity"),l=ae("TelemetrySettings"),c=ae("Sponsor");return P(),V("div",null,[y("button",QP,[y("span",JP,F(t.$t("footer.savings.footerShort",{percent:s.percent})),1),y("span",ZP,F(t.$t("footer.savings.footerLong",{percent:s.percent})),1),e3]),(P(),Te(oo,{to:"body"},[y("div",t3,[y("div",n3,[y("div",r3,[y("div",i3,[y("h5",s3,F(t.$t("footer.savings.modalTitle")),1),o3]),y("div",a3,[y("ul",l3,[y("li",c3,[y("a",{class:De(["nav-link",{active:!i.communityView}]),href:"#",onClick:e[0]||(e[0]=Ws((...u)=>s.showMyData&&s.showMyData(...u),["prevent"]))},F(t.$t("footer.savings.tabTitle")),3)]),y("li",u3,[y("a",{class:De(["nav-link",{active:i.communityView}]),href:"#",onClick:e[1]||(e[1]=Ws((...u)=>s.showCommunity&&s.showCommunity(...u),["prevent"]))},F(t.$t("footer.community.tabTitle")),3)])]),i.communityView?(P(),V("div",m3,[ie(a),ie(l,{sponsor:n.sponsor},null,8,["sponsor"])])):(P(),V("div",f3,[y("div",d3,[ie(o,{class:"text-accent1",icon:"sun",title:t.$t("footer.savings.percentTitle"),value:s.percent,unit:"%",sub1:t.$t("footer.savings.percentSelf",{self:t.fmtKw(n.selfConsumptionCharged*1e3,!0,!1)}),sub2:t.$t("footer.savings.percentGrid",{grid:t.fmtKw(n.gridCharged*1e3,!0,!1)})},null,8,["title","value","sub1","sub2"]),ie(o,{class:"text-accent2",icon:"receivepayment",title:t.$t("footer.savings.priceTitle"),value:s.effectivePriceFormatted.value,unit:s.effectivePriceFormatted.unit,sub1:t.$t("footer.savings.priceFeedIn",{feedInPrice:t.fmtPricePerKWh(n.feedInPrice,n.currency)}),sub2:t.$t("footer.savings.priceGrid",{gridPrice:t.fmtPricePerKWh(n.gridPrice,n.currency)})},null,8,["title","value","unit","sub1","sub2"]),ie(o,{class:"text-accent3",icon:"coinjar",title:t.$t("footer.savings.savingsTitle"),value:t.fmtMoney(n.amount,n.currency),unit:t.fmtCurrencySymbol(n.currency),sub1:t.$t("footer.savings.savingsComparedToGrid"),sub2:t.$t("footer.savings.savingsTotalEnergy",{total:t.fmtKw(n.totalCharged*1e3,!0,!1)})},null,8,["title","value","unit","sub1","sub2"])]),y("p",h3,[y("small",null,F(t.$t("footer.savings.since",{since:t.fmtDayMonthYear(s.startDate)})),1)])])),ie(c,{sponsor:n.sponsor},null,8,["sponsor"])])])])],512)]))])}const g3=we(XP,[["render",p3]]),_3={name:"Footer",components:{Version:jO,Savings:g3},props:{version:Object,sponsor:String,savings:Object},methods:{toggleHiddenFeatures(){const t=`\u{1F9EA} Experimentelle UI-Elemente ${this.$hiddenFeatures?"deaktivieren":"aktivieren"}`;window.confirm(t)&&(window.localStorage.hidden_features=!this.$hiddenFeatures,window.location.reload())}}},v3={class:"footer"},b3={class:"container py-2"},y3={class:"d-flex justify-content-between"};function E3(t,e,n,r,i,s){const o=ae("Version"),a=ae("Savings");return P(),V("footer",v3,[y("div",b3,[y("div",y3,[ie(o,an(Kt(n.version)),null,16),ie(a,Dt(n.savings,{sponsor:n.sponsor}),null,16,["sponsor"])])])])}const w3=we(_3,[["render",E3]]),T3={name:"Site",components:{Loadpoints:j8,Energyflow:Yh,Footer:w3,Notifications:n4,TopNavigation:mv,Vehicles:J8},mixins:[Lt,Wa],props:{loadpoints:Array,notifications:Array,offline:Boolean,gridConfigured:Boolean,gridPower:Number,homePower:Number,pvConfigured:Boolean,pvPower:Number,batteryConfigured:Boolean,batteryPower:Number,batterySoC:Number,gridCurrents:Array,prioritySoC:Number,siteTitle:String,vehicles:Array,auth:Object,currency:String,savingsAmount:Number,savingsEffectivePrice:Number,savingsGridCharged:Number,savingsSelfConsumptionCharged:Number,savingsSelfConsumptionPercent:Number,savingsSince:Number,savingsTotalCharged:Number,tariffFeedIn:Number,tariffGrid:Number,availableVersion:String,releaseNotes:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number,sponsor:String},computed:{energyflow:function(){return this.collectProps(Yh)},activeLoadpointsCount:function(){return this.loadpoints.filter(t=>t.chargePower>0).length},loadpointsPower:function(){return this.loadpoints.reduce((t,e)=>(t+=e.chargePower||0,t),0)},topNavigation:function(){return{vehicleLogins:this.auth?this.auth.vehicles:{}}},showParkingLot:function(){return!1},footer:function(){return{version:{installed:window.evcc.version,commit:window.evcc.commit,available:this.availableVersion,releaseNotes:this.releaseNotes,hasUpdater:this.hasUpdater,uploadMessage:this.uploadMessage,uploadProgress:this.uploadProgress},sponsor:this.sponsor,savings:{since:this.savingsSince,totalCharged:this.savingsTotalCharged,gridCharged:this.savingsGridCharged,selfConsumptionCharged:this.savingsSelfConsumptionCharged,amount:this.savingsAmount,effectivePrice:this.savingsEffectivePrice,selfConsumptionPercent:this.savingsSelfConsumptionPercent,gridPrice:this.tariffGrid,feedInPrice:this.tariffFeedIn,currency:this.currency}}}}},C3={class:"d-flex flex-column site"},S3={class:"container px-4 top-area"},A3={class:"d-flex justify-content-between align-items-center my-3"},k3={class:"d-block my-0"},x3={class:"d-flex"},L3={class:"d-flex flex-column justify-content-between content-area"};function N3(t,e,n,r,i,s){const o=ae("Notifications"),a=ae("TopNavigation"),l=ae("Energyflow"),c=ae("Loadpoints"),u=ae("Vehicles"),d=ae("Footer");return P(),V("div",C3,[y("div",S3,[y("div",A3,[y("h1",k3,F(n.siteTitle||"evcc"),1),y("div",x3,[ie(o,{notifications:n.notifications,class:"me-2"},null,8,["notifications"]),ie(a,an(Kt(s.topNavigation)),null,16)])]),ie(l,an(Kt(s.energyflow)),null,16)]),y("div",L3,[ie(c,{class:"mt-1 mt-sm-2 flex-grow-1",loadpoints:n.loadpoints,vehicles:n.vehicles},null,8,["loadpoints","vehicles"]),s.showParkingLot?(P(),Te(u,{key:0})):ve("",!0),ie(d,an(Kt(s.footer)),null,16)])])}const O3=we(T3,[["render",N3],["__scopeId","data-v-48374674"]]);var P3='';class M3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=P3}}window.customElements.define("shopicon-regular-car1",M3);const I3={name:"StartupError",mixins:[Wa],props:{fatal:Array,config:String,file:String,line:Number,offline:Boolean},computed:{errors(){return this.fatal||[]}},methods:{shutdown(){at.post("shutdown")},scrollTo(t){const e=t.currentTarget.getAttribute("href").substring(1),n=document.getElementById(e);console.log({id:e,el:n}),n&&n.scrollIntoView({behavior:"smooth",block:"center"})}}},bv=t=>(bt("data-v-34002e97"),t=t(),yt(),t),D3={class:"container px-4"},$3={class:"d-flex justify-content-between align-items-center my-3"},R3={class:"d-block mt-0 d-flex"},F3=bv(()=>y("shopicon-regular-car1",{size:"m",class:"ms-2 icon"},null,-1)),V3={class:"row mb-4"},H3={class:"fs-6 mb-3"},B3={href:"https://github.com/evcc-io/evcc/discussions"},U3={class:"row mb-4"},j3={class:"mb-3"},W3={class:"d-md-flex justify-content-between"},z3={class:"me-md-4"},K3={class:"d-block"},Y3=["href"],q3=["disabled"],G3={key:0},X3=bv(()=>y("div",{class:"my-2"},null,-1)),Q3={class:"py-2 text-muted config"},J3=["id"];function Z3(t,e,n,r,i,s){const o=ae("i18n-t");return P(),V("div",D3,[y("div",$3,[y("h1",R3,[Le(F(t.$t("startupError.title"))+" ",1),F3])]),y("div",V3,[y("code",H3,[(P(!0),V(xe,null,Je(s.errors,(a,l)=>(P(),V("div",{key:l},F(a),1))),128))]),ie(o,{tag:"p",keypath:"startupError.description"},{default:et(()=>[y("a",B3,F(t.$t("startupError.discussions")),1)]),_:1}),y("p",null,[y("em",null,F(t.$t("startupError.hint")),1)])]),y("div",U3,[y("h5",j3,F(t.$t("startupError.configuration")),1),y("div",W3,[y("p",z3,[y("span",K3,[Le(F(t.$t("startupError.configFile"))+" ",1),y("code",null,F(n.file),1)]),n.line?(P(),Te(o,{key:0,tag:"span",keypath:"startupError.lineError"},{default:et(()=>[y("a",{href:`#line${n.line}`,onClick:e[0]||(e[0]=Ws((...a)=>s.scrollTo&&s.scrollTo(...a),["prevent"]))},F(t.$t("startupError.lineErrorLink",[n.line])),9,Y3)]),_:1})):ve("",!0),Le(" "+F(t.$t("startupError.fixAndRestart")),1)]),y("p",null,[y("button",{class:"btn btn-primary text-nowrap",type:"button",disabled:n.offline,onClick:e[1]||(e[1]=(...a)=>s.shutdown&&s.shutdown(...a))},F(t.$t("startupError.restartButton")),9,q3)])]),n.config?(P(),V("code",G3,[X3,y("div",Q3,[(P(!0),V(xe,null,Je(n.config.split(` -`),(a,l)=>(P(),V("div",{id:`line${l+1}`,key:l,class:De(["m-0 px-2",{highlighted:n.line===l+1}])},F(a)+"\xA0 ",11,J3))),128))])])):ve("",!0)])])}const eM=we(I3,[["render",Z3],["__scopeId","data-v-34002e97"]]);var tM='';class nM extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=tM}}window.customElements.define("shopicon-regular-cloud",nM);const rM={name:"OfflineIndicator",methods:{reload(){window.location.reload()}}},iM={class:"fixed-bottom alert alert-secondary d-flex justify-content-center align-items-center mb-0 rounded-0",role:"alert"},sM=y("shopicon-regular-cloud",{class:"me-2"},null,-1);function oM(t,e,n,r,i,s){return P(),V("div",iM,[sM,Le(" "+F(t.$t("offline.message"))+" ",1),y("button",{class:"btn btn-sm btn-link text-dark",onClick:e[0]||(e[0]=(...o)=>s.reload&&s.reload(...o))},F(t.$t("offline.reload")),1)])}const aM=we(rM,[["render",oM]]),lM={name:"Main",components:{Site:O3,StartupError:eM,OfflineIndicator:aM},props:{notifications:Array,offline:Boolean},data:function(){return mc},computed:{startupErrors:function(){var t;return((t=this.state.fatal)==null?void 0:t.length)>0}}};function cM(t,e,n,r,i,s){const o=ae("OfflineIndicator"),a=ae("StartupError"),l=ae("Site");return P(),V("div",null,[n.offline?(P(),Te(o,{key:0})):ve("",!0),s.startupErrors?(P(),Te(a,Dt({key:1},t.state,{offline:n.offline}),null,16,["offline"])):(P(),Te(l,Dt({key:2,notifications:n.notifications},t.state),null,16,["notifications"]))])}const uM=we(lM,[["render",cM]]);var fM='';class dM extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=fM}}window.customElements.define("shopicon-bold-arrowback",dM);const hM={name:"ChargingSessions",components:{TopNavigation:mv},mixins:[Lt],props:{notifications:Array},data(){return{sessions:[]}},computed:{sessionsByMonthAndLoadpoint(){const t=this.sessions.map(n=>{const r=n.loadpoint||this.$t("main.loadpoint.fallbackName"),i=n.vehicle||this.$t("main.vehicle.unknown");return{...n,loadpoint:r,vehicle:i}}),e=this.groupByMonth(t);return Object.entries(e).map(([n,r])=>{const i=Object.entries(this.groupByLoadpoint(r)).map(([s,o])=>{const a=this.totalKWh(o);return{name:s,total:a,sessions:o}});return{month:n,loadpoints:i}})}},mounted(){this.loadSessions()},methods:{async loadSessions(){var e;const t=await at.get("sessions");this.sessions=(e=t.data)==null?void 0:e.result},groupByMonth(t){return t.reduce((e,n)=>{const r=new Date(n.finished),i=`${r.getFullYear()}.${r.getMonth()}`;return e[i]||(e[i]=[]),e[i].push(n),e},{})},groupByLoadpoint(t){return t.reduce((e,n)=>{const r=n.loadpoint;return e[r]||(e[r]=[]),e[r].push(n),e},{})},totalKWh(t){return t.reduce((e,n)=>e+n.chargedEnergy,0)*1e3},groupedKWh(t,e){const n=e.reduce((i,s)=>{const o=s[t];return i[o]||(i[o]=0),i[o]+=s.chargedEnergy*1e3,i},{}),r=Object.entries(n).map(([i,s])=>({name:i,energy:s}));return r.length>=2?r:[]},formatGroupHeadline(t){const e=new Date,[n,r]=t.split(".");return e.setMonth(r),e.setFullYear(n),this.fmtMonthYear(e)}}},mf=t=>(bt("data-v-c2d84bb6"),t=t(),yt(),t),mM={class:"container px-4"},pM={class:"d-flex justify-content-between align-items-center py-3"},gM={class:"mb-1 pt-1 d-flex text-nowrap"},_M=mf(()=>y("shopicon-bold-arrowback",{size:"s",class:"back"},null,-1)),vM={class:"row"},bM={class:"col-12"},yM={class:"mb-4"},EM={class:"btn btn-outline-secondary text-nowrap my-2",href:"./api/sessions?format=csv",download:"sessions.csv"},wM={class:"mx-2"},TM={class:"d-flex align-items-baseline my-5"},CM={class:"me-4 mb-0"},SM={class:"d-flex align-items-baseline mb-3"},AM={class:"me-4 mb-0"},kM={class:"large"},xM={class:"breakdown text-gray d-sm-flex flex-sm-wrap ps-0 mb-2"},LM={class:"table-responsive my-3"},NM={class:"table"},OM={scope:"col"},PM={scope:"col",class:"text-end ps-sm-4 pe-md-5"},MM={scope:"col",class:"ps-3 ps-md-4 ps-md-5"},IM={class:"text-nowrap text-end ps-sm-4 pe-md-5"},DM={class:"text-nowrap ps-3 ps-md-4 ps-md-5"},$M={class:"d-block d-sm-none"},RM=mf(()=>y("br",null,null,-1)),FM={class:"d-none d-sm-block"},VM=mf(()=>y("br",null,null,-1));function HM(t,e,n,r,i,s){const o=ae("router-link"),a=ae("TopNavigation");return P(),V("div",mM,[y("header",pM,[y("h1",gM,[ie(o,{class:"dropdown-item mx-2 me-2",to:"/"},{default:et(()=>[_M]),_:1}),Le(" "+F(t.$t("sessions.title")),1)]),ie(a)]),y("div",vM,[y("main",bM,[y("div",yM,[y("a",EM,F(t.$t("sessions.downloadCsv")),1)]),(P(!0),V(xe,null,Je(s.sessionsByMonthAndLoadpoint,l=>(P(),V("div",{key:l.month},[y("div",wM,[y("div",TM,[y("h2",CM,F(s.formatGroupHeadline(l.month)),1)]),(P(!0),V(xe,null,Je(l.loadpoints,c=>(P(),V("div",{key:c.name},[y("div",SM,[y("h3",AM,F(c.name),1),y("div",kM,F(t.fmtKWh(c.total)),1)]),y("ul",xM,[(P(!0),V(xe,null,Je(s.groupedKWh("vehicle",c.sessions),(u,d)=>(P(),V("li",{key:d,class:"breakdown-item"},F(u.name)+": "+F(t.fmtKWh(u.energy)),1))),128))]),y("div",LM,[y("table",NM,[y("thead",null,[y("tr",null,[y("th",OM,F(t.$t("sessions.vehicle")),1),y("th",PM,F(t.$t("sessions.energy")),1),y("th",MM,F(t.$t("sessions.date")),1)])]),y("tbody",null,[(P(!0),V(xe,null,Je(c.sessions,(u,d)=>(P(),V("tr",{key:d},[y("td",null,F(u.vehicle),1),y("td",IM,F(t.fmtKWh(u.chargedEnergy*1e3)),1),y("td",DM,[y("span",$M,[Le(F(t.fmtFullDateTime(new Date(u.created),!0))+" ",1),RM,Le(" "+F(t.fmtFullDateTime(new Date(u.finished),!0)),1)]),y("span",FM,[Le(F(t.fmtFullDateTime(new Date(u.created),!1))+" ",1),VM,Le(" "+F(t.fmtFullDateTime(new Date(u.finished),!1)),1)])])]))),128))])])])]))),128))])]))),128))])])])}const BM=we(hM,[["render",HM],["__scopeId","data-v-c2d84bb6"]]),UM=eA({history:gS(),routes:[{path:"/",component:uM,props:!0},{path:"/sessions",component:BM,props:!0}]});/*! + ${t.fmtShortDurationUnit(i.chargeDurationInterpolated)}`,align:"end"},null,8,["label","value"]))]),P8,ie(d,Dt(s.vehicle,{onTargetSocUpdated:s.setTargetSoC,onTargetEnergyUpdated:s.setTargetEnergy,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onTargetSocUpdated","onTargetEnergyUpdated","onTargetTimeUpdated","onTargetTimeRemoved","onChangeVehicle","onRemoveVehicle"])])}const I8=we(T8,[["render",M8],["__scopeId","data-v-3d01cac9"]]),D8={name:"Site",components:{Loadpoint:I8},props:{loadpoints:Array,vehicles:Array},data(){return{selectedIndex:0,snapTimeout:null}},mounted(){this.$refs.carousel.addEventListener("scroll",this.handleCarouselScroll,!1)},unmounted(){this.$refs.carousel&&this.$refs.carousel.removeEventListener("scroll",this.handleCarouselScroll)},methods:{handleCarouselScroll(){const{scrollLeft:t}=this.$refs.carousel,{offsetWidth:e}=this.$refs.carousel.children[0];this.selectedIndex=Math.round((t-7.5)/e)},selected(t){return this.selectedIndex===t},scrollTo(t){if(this.selectedIndex===t)return;this.selectedIndex=t;const e=this.$refs.carousel,n=e.children[0].offsetWidth;e.style.scrollSnapType="none",e.scrollTo({top:0,left:7.5+n*t,behavior:"smooth"}),clearTimeout(this.snapTimeout),this.snapTimeout=setTimeout(()=>{this.$refs.carousel.style.scrollSnapType="x mandatory"},1e3)}}},$8=t=>(bt("data-v-024a6ae6"),t=t(),yt(),t),R8={class:"container container--loadpoint px-0 mb-md-2 d-flex flex-column justify-content-center"},F8={ref:"carousel",class:"carousel d-lg-flex flex-wrap"},V8={key:0,class:"d-flex d-lg-none justify-content-center"},H8=["onClick"],B8=$8(()=>y("shopicon-filled-circle",{class:"indicator-icon"},null,-1)),U8=[B8];function j8(t,e,n,r,i,s){const o=ae("Loadpoint");return P(),V("div",R8,[y("div",F8,[(P(!0),V(xe,null,Je(n.loadpoints,(a,l)=>(P(),V("div",{key:l,class:"flex-grow-1 mb-3 m-lg-0 p-lg-0"},[ie(o,Dt(a,{id:l,vehicles:n.vehicles,class:["h-100",{"loadpoint-unselected":!s.selected(l)}],onClick:c=>s.scrollTo(l)}),null,16,["id","vehicles","class","onClick"])]))),128))],512),n.loadpoints.length>1?(P(),V("div",V8,[(P(!0),V(xe,null,Je(n.loadpoints,(a,l)=>(P(),V("button",{key:l,class:De(["btn btn-sm btn-link p-0 mx-1 indicator d-flex justify-content-center align-items-center evcc-default-text",{"indicator--selected":s.selected(l)}]),onClick:c=>s.scrollTo(l)},U8,10,H8))),128))])):ve("",!0)])}const W8=we(D8,[["render",j8],["__scopeId","data-v-024a6ae6"]]),z8={name:"Vehicles",components:{Vehicle:Rc},data(){return{refreshing:!1,vehicles:[{vehiclePresent:!0,vehicleTitle:"Ford Mustang Mach-E",vehicleSoC:46,vehicleRange:182,targetSoC:100},{vehiclePresent:!0,vehicleTitle:"Renault Twingo Electric",vehicleSoC:77,vehicleRange:98,targetSoC:90},{vehiclePresent:!0,vehicleTitle:"Blauer VW ID.4",vehicleSoC:16,vehicleRange:52,minSoC:35,targetSoC:60}]}},methods:{refresh(){this.refreshing=!0,window.setTimeout(()=>{this.refreshing=!1},5e3)}}},K8=t=>(bt("data-v-7430d6bb"),t=t(),yt(),t),Y8={class:"container px-4 mb-3 mb-sm-4 d-flex justify-content-start align-items-center"},q8={class:"m-0"},G8=["disabled"],X8=K8(()=>y("shopicon-regular-refresh",{class:"refresh-icon"},null,-1)),Q8=[X8];function J8(t,e,n,r,i,s){const o=ae("Vehicle");return P(),V("div",null,[y("div",Y8,[y("h2",q8,F(t.$t("main.vehicles")),1),y("button",{class:De(["btn btn-link d-flex evcc-default-text p-2 ms-1 refresh",{"refresh--in-progress":i.refreshing}]),disabled:i.refreshing,onClick:e[0]||(e[0]=(...a)=>s.refresh&&s.refresh(...a))},Q8,10,G8)]),y("div",{class:De(["container vehicles px-0 mb-5",`vehicles-${i.vehicles.length}`])},[(P(!0),V(xe,null,Je(i.vehicles,(a,l)=>(P(),Te(o,Dt(a,{id:`vehicle_${l}`,key:l,class:"vehicle",parked:""}),null,16,["id"]))),128))],2)])}const Z8=we(z8,[["render",J8],["__scopeId","data-v-7430d6bb"]]);var eO='';class tO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=eO}}window.customElements.define("shopicon-filled-testtube",tO);const nO={name:"Logo"},df=t=>(bt("data-v-9d6237eb"),t=t(),yt(),t),rO={viewBox:"0 0 122 35",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},iO=df(()=>y("path",{d:"M13.082 29.071a12.384 12.384 0 01-9-3.42 12.192 12.192 0 01-3.54-9.12v-.64a15.394 15.394 0 011.47-6.83 10.825 10.825 0 014.17-4.64 11.64 11.64 0 016.15-1.63 10.45 10.45 0 018.21 3.26c2 2.194 3 5.297 3 9.31v2.76H7.382a6.348 6.348 0 002 4 5.997 5.997 0 004.16 1.49 7.305 7.305 0 006.1-2.84l3.31 3.73a10 10 0 01-4.13 3.39 13.309 13.309 0 01-5.74 1.18zm-.77-20.84a4.216 4.216 0 00-3.26 1.37 7.141 7.141 0 00-1.6 3.91h9.39v-.55a5.005 5.005 0 00-1.22-3.49 4.304 4.304 0 00-3.31-1.24zM36.452 20.331l4.7-17.09h7l-8.48 25.36h-6.44l-8.52-25.36h7l4.74 17.09zM85.542 23.611a4.444 4.444 0 003-1 3.638 3.638 0 001.22-2.75h6.32a8.668 8.668 0 01-1.4 4.73 9.145 9.145 0 01-3.79 3.3 11.736 11.736 0 01-5.29 1.19 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.868 10.868 0 018.51-3.5c2.791-.134 5.524.84 7.6 2.71a9.626 9.626 0 012.9 7.21h-6.3a4.663 4.663 0 00-1.2-3.22 4.005 4.005 0 00-3.08-1.24 4.068 4.068 0 00-3.56 1.73c-.8 1.15-1.2 3-1.2 5.6v.7c0 2.61.39 4.49 1.19 5.63a4.092 4.092 0 003.65 1.72zM110.422 23.611a4.454 4.454 0 003-1 3.63 3.63 0 001.21-2.75h6.33a8.668 8.668 0 01-1.4 4.73 9.143 9.143 0 01-3.73 3.3 11.76 11.76 0 01-5.29 1.18 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.85 10.85 0 018.57-3.49 10.575 10.575 0 017.6 2.71 9.598 9.598 0 012.91 7.21h-6.33a4.651 4.651 0 00-1.21-3.22 4.492 4.492 0 00-6.64.49c-.8 1.15-1.21 3-1.21 5.6v.7c0 2.607.4 4.484 1.2 5.63a4.09 4.09 0 003.56 1.72z",fill:"#fff",class:"letter","fill-rule":"nonzero"},null,-1)),sO=df(()=>y("path",{d:"M58.462.751h9.22l-6.14 12.3h6.15l-11.53 21.51 2.3-15.36h-7.68l7.68-18.45z",fill:"#0fdd42","fill-rule":"nonzero"},null,-1)),oO=df(()=>y("path",{fill:"none",d:"M-24.458-22.109h170v76h-170z"},null,-1)),aO=[iO,sO,oO];function lO(t,e,n,r,i,s){return P(),V("svg",rO,aO)}const cO=we(nO,[["render",lO],["__scopeId","data-v-9d6237eb"]]);var uO='';class fO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=uO}}window.customElements.define("shopicon-regular-gift",fO);var dO='';class hO extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=dO}}window.customElements.define("shopicon-regular-moonstars",hO);const mO={name:"Version",components:{Logo:cO},props:{installed:String,available:String,releaseNotes:String,commit:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number},data:function(){return{updateStarted:!1,updateStatus:""}},computed:{githubHashUrl:function(){return`https://github.com/evcc-io/evcc/commit/${this.commit}`},newVersionAvailable:function(){return this.available&&this.installed!="[[.Version]]"&&this.installed!="0.0.1-alpha"&&this.available!=this.installed}},methods:{update:async function(){try{await at.post("update"),this.updateStatus=this.$t("footer.version.modalUpdateStatusStart"),this.updateStarted=!0}catch(t){this.updateStatus=this.$t("footer.version.modalUpdateStatusStart")+t}},releaseNotesUrl:function(t){return`https://github.com/evcc-io/evcc/releases/tag/${t}`}}},za=t=>(bt("data-v-66915926"),t=t(),yt(),t),pO=["href"],gO=za(()=>y("shopicon-regular-moonstars",{class:"ms-2 text-gray-light"},null,-1)),_O={key:1,href:"#","data-bs-toggle":"modal","data-bs-target":"#updateModal",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},vO=za(()=>y("shopicon-regular-gift",{class:"me-2"},null,-1)),bO={class:"ms-2 d-none d-xs-block d-sm-none text-decoration-underline"},yO={class:"ms-2 d-none d-sm-block text-gray-medium text-decoration-underline"},EO=["href"],wO={id:"updateModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true"},TO={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},CO={class:"modal-content"},SO={class:"modal-header"},AO={class:"modal-title"},kO=za(()=>y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),xO={class:"modal-body"},LO={key:0},NO={class:"progress my-3"},OO={key:1},PO=["innerHTML"],MO={key:1},IO=["href"],DO=Le(". "),$O={class:"modal-footer d-flex justify-content-between"},RO=["disabled"],FO=["disabled"],VO={key:0},HO=za(()=>y("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),BO={key:1},UO=["href"];function jO(t,e,n,r,i,s){const o=ae("Logo");return P(),V("div",null,[n.commit?(P(),V("a",{key:0,href:s.githubHashUrl,target:"_blank",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},[ie(o,{class:"logo me-2"}),Le(" v"+F(n.installed)+" ",1),gO],8,pO)):s.newVersionAvailable?(P(),V("button",_O,[vO,Le(" v"+F(n.installed)+" ",1),y("span",bO,F(t.$t("footer.version.availableShort")),1),y("span",yO,F(t.$t("footer.version.availableLong")),1)])):(P(),V("a",{key:2,href:s.releaseNotesUrl(n.installed),target:"_blank",class:"btn btn-link evcc-default-text ps-0 text-decoration-none text-nowrap d-flex align-items-end"},[ie(o,{class:"logo me-2"}),Le(" v"+F(n.installed),1)],8,EO)),(P(),Te(oo,{to:"body"},[y("div",wO,[y("div",TO,[y("div",CO,[y("div",SO,[y("h5",AO,F(t.$t("footer.version.modalTitle")),1),kO]),y("div",xO,[t.updateStarted?(P(),V("div",LO,[y("p",null,F(t.$t("footer.version.modalUpdateStarted")),1),y("div",NO,[y("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:Ct({width:n.uploadProgress+"%"})},null,4)]),y("p",null,F(t.updateStatus)+F(n.uploadMessage),1)])):(P(),V("div",OO,[y("p",null,[y("small",null,F(t.$t("footer.version.modalInstalledVersion"))+": "+F(n.installed),1)]),n.releaseNotes?(P(),V("div",{key:0,innerHTML:n.releaseNotes},null,8,PO)):(P(),V("p",MO,[Le(F(t.$t("footer.version.modalNoReleaseNotes"))+" ",1),y("a",{href:s.releaseNotesUrl(n.available)},"GitHub",8,IO),DO]))]))]),y("div",$O,[y("button",{type:"button",class:"btn btn-outline-secondary",disabled:t.updateStarted,"data-bs-dismiss":"modal"},F(t.$t("footer.version.modalCancel")),9,RO),y("div",null,[n.hasUpdater?(P(),V("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.updateStarted,onClick:e[0]||(e[0]=(...a)=>s.update&&s.update(...a))},[t.updateStarted?(P(),V("span",VO,[HO,Le(" "+F(t.$t("footer.version.modalUpdate")),1)])):(P(),V("span",BO,F(t.$t("footer.version.modalUpdateNow")),1))],8,FO)):(P(),V("a",{key:1,href:s.releaseNotesUrl(n.available),class:"btn btn-primary"},F(t.$t("footer.version.modalDownload")),9,UO))])])])])])]))])}const WO=we(mO,[["render",jO],["__scopeId","data-v-66915926"]]);var uo={};(function t(e,n,r,i){var s=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL);function o(){}function a(I){var M=n.exports.Promise,Y=M!==void 0?M:e.Promise;return typeof Y=="function"?new Y(I):(I(o,o),null)}var l=function(){var I=Math.floor(16.666666666666668),M,Y,z={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(M=function(se){var ce=Math.random();return z[ce]=requestAnimationFrame(function he(fe){te===fe||te+I-1(bt("data-v-af8a72a8"),t=t(),yt(),t),QO={key:0},JO={class:"fw-bold mb-1 d-flex"},ZO=hf(()=>y("shopicon-regular-heart",{class:"title-icon text-primary d-inline-block me-1"},null,-1)),eP={class:"mb-3"},tP={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},nP=hf(()=>y("shopicon-regular-stars",{class:"me-1 d-inline-block"},null,-1)),rP={href:"https://evcc.io/sticker",target:"_blank",class:"small text-muted ms-lg-3"},iP={key:1},sP={class:"fw-bold mb-1"},oP={class:"mb-3"},aP={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},lP={target:"_blank",href:"https://github.com/sponsors/andig",class:"btn btn-outline-primary mb-3 become-sponsor"},cP=hf(()=>y("shopicon-regular-heart",{class:"me-1 d-inline-block"},null,-1)),uP={class:"small text-muted text-center ms-lg-3"};function fP(t,e,n,r,i,s){return n.sponsor?(P(),V("div",QO,[y("p",JO,[ZO,Le(" "+F(t.$t("footer.sponsor.titleSponsor")),1)]),y("p",eP,F(t.$t("footer.sponsor.thanks",{sponsor:n.sponsor})),1),y("div",tP,[y("button",{ref:"confetti",class:"btn btn btn-outline-primary mb-2 confetti-button bg-evcc rounded",onClick:e[0]||(e[0]=(...o)=>s.surprise&&s.surprise(...o))},[nP,Le(" "+F(t.$t("footer.sponsor.confetti")),1)],512),y("a",rP,F(t.$t("footer.sponsor.sticker")),1)])])):(P(),V("div",iP,[y("p",sP,F(t.$t("footer.sponsor.titleNoSponsor")),1),y("p",oP,F(t.$t("footer.sponsor.supportUs")),1),y("div",aP,[y("a",lP,[cP,Le(" "+F(t.$t("footer.sponsor.becomeSponsor")),1)]),y("div",uP,F(t.$t("footer.sponsor.confettiPromise")),1)])]))}const dP=we(XO,[["render",fP],["__scopeId","data-v-af8a72a8"]]);var hP='';class mP extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=hP}}window.customElements.define("shopicon-regular-coinjar",mP);var pP='';class gP extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=pP}}window.customElements.define("shopicon-regular-receivepayment",gP);var _P='';class vP extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=_P}}window.customElements.define("shopicon-regular-eco1",vP);const bP={name:"SavingsTile",components:{AnimatedNumber:ri},props:{title:String,icon:String,value:[String,Number],valueFmt:Function,animationDuration:Number,unit:String,sub1:String,sub2:String}},yP=t=>(bt("data-v-b7d590a3"),t=t(),yt(),t),EP={class:"flex-shrink-1 d-flex mb-4 mb-lg-0 align-items-center align-items-lg-start"},wP={key:0,class:"tile-icon"},TP={key:1,class:"tile-icon"},CP={key:2,class:"tile-icon"},SP={key:3,class:"tile-icon"},AP={key:4,class:"tile-icon"},kP={class:"ms-3 d-flex flex-grow-1 d-lg-block align-items-center justify-content-between"},xP={class:"my-0 fw-bold text-truncate"},LP={class:"d-flex align-items-baseline lh-sm"},NP={class:"fs-1"},OP={key:1},PP={class:"ms-1 unit"},MP={class:"d-block mt-0 ms-3 ms-lg-0 text-end text-lg-start"},IP=yP(()=>y("br",null,null,-1));function DP(t,e,n,r,i,s){const o=ae("AnimatedNumber");return P(),V("div",EP,[n.icon==="sun"?(P(),V("shopicon-regular-sun",wP)):ve("",!0),n.icon==="coinjar"?(P(),V("shopicon-regular-coinjar",TP)):ve("",!0),n.icon==="receivepayment"?(P(),V("shopicon-regular-receivepayment",CP)):ve("",!0),n.icon==="car"?(P(),V("shopicon-regular-car3",SP)):ve("",!0),n.icon==="eco"?(P(),V("shopicon-regular-eco1",AP)):ve("",!0),y("div",kP,[y("div",null,[y("p",xP,F(n.title),1),y("strong",LP,[y("span",NP,[n.valueFmt?(P(),Te(o,{key:0,to:n.value,format:n.valueFmt,duration:n.animationDuration},null,8,["to","format","duration"])):(P(),V("span",OP,F(n.value),1))]),y("span",PP,F(n.unit),1)])]),y("small",MP,[Le(F(n.sub1)+" ",1),IP,Le(" "+F(n.sub2),1)])])])}const vv=we(bP,[["render",DP],["__scopeId","data-v-b7d590a3"]]),bv=cf.create({baseURL:"https://api.evcc.io/v1/",headers:{Accept:"application/json"}});bv.interceptors.response.use(t=>t,t=>{const e=t.config.baseURL+t.config.url,n=`${t.message}: API request failed ${e}`;return window.app.error({message:n}),Promise.reject(t)});const nm=10,$P={name:"LiveCommunity",components:{SavingsTile:vv},mixins:[Lt],props:{},data(){return{refresh:null,result:{},animationDuration:.5}},computed:{totalClients(){return this.result.totalClients},activeClients(){return this.result.activeClients},chargePower(){const{chargePower:t=0}=this.result;return t/1e3},greenShare(){const{chargePower:t,greenPower:e}=this.result;return t?100/t*e:0},greenEnergyMWh(){const{greenEnergy:t=0}=this.result;return t/1e3}},async mounted(){this.refresh=setInterval(this.update,nm*1e3),await this.update(),this.$nextTick(()=>{this.animationDuration=nm})},unmounted(){clearInterval(this.refresh)},methods:{async update(){try{const t=await bv.get("total");this.result=t.data||{}}catch(t){console.error(t)}},numberAnimationFmt(t){return this.fmtNumber(t,1)}}},RP={class:"d-block d-lg-flex mb-2 justify-content-between"};function FP(t,e,n,r,i,s){const o=ae("SavingsTile");return P(),V("div",RP,[ie(o,{class:"text-accent2",icon:"car",title:t.$t("footer.community.power"),value:s.chargePower,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"kW",sub1:t.$t("footer.community.powerSub1",{totalClients:s.totalClients,activeClients:s.activeClients}),sub2:t.$t("footer.community.powerSub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"]),ie(o,{class:"text-accent1",icon:"sun",title:t.$t("footer.community.greenShare"),value:s.greenShare,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"%",sub1:t.$t("footer.community.greenShareSub1"),sub2:t.$t("footer.community.greenShareSub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"]),ie(o,{class:"text-accent3",icon:"eco",title:t.$t("footer.community.greenEnergy"),value:s.greenEnergyMWh,valueFmt:s.numberAnimationFmt,animationDuration:i.animationDuration,unit:"MWh",sub1:t.$t("footer.community.greenEnergySub1"),sub2:t.$t("footer.community.greenEnergySub2")},null,8,["title","value","valueFmt","animationDuration","sub1","sub2"])])}const VP=we($P,[["render",FP]]);function HP(t){return t.replace(/\*\*(.*)\*\*/gim,"$1").replace(/\*(.*)\*/gim,"$1").replace(/`(.*)`/gim,"
$1
").trim()}const BP={name:"TelemetrySettings",props:{sponsor:String},data(){return{enabled:!1,error:null}},async mounted(){await this.update()},methods:{async change(t){try{this.error=null;const e=await at.post(`settings/telemetry/${t.target.checked}`);this.enabled=e.data.result}catch(e){e.response&&(this.error=HP("**Error:** "+e.response.data.error),this.enabled=!1)}},async update(){try{const t=await at.get("settings/telemetry");this.enabled=t.data.result}catch(t){console.error(t)}}}},UP={class:"form-check form-switch my-3"},jP=["disabled"],WP={class:"form-check-label"},zP={for:"telemetryEnabled"},KP={href:"https://docs.evcc.io/docs/guides/setup/#telemetry--community-daten"},YP={key:1},qP=["innerHTML"];function GP(t,e,n,r,i,s){const o=ae("i18n-t");return P(),V("div",UP,[Yt(y("input",{id:"telemetryEnabled","onUpdate:modelValue":e[0]||(e[0]=a=>i.enabled=a),class:"form-check-input",type:"checkbox",role:"switch",disabled:!n.sponsor,onChange:e[1]||(e[1]=(...a)=>s.change&&s.change(...a))},null,40,jP),[[l2,i.enabled]]),y("div",WP,[y("label",zP,[Le(F(t.$t("footer.telemetry.optIn"))+" ",1),n.sponsor?(P(),Te(o,{key:0,tag:"span",keypath:"footer.telemetry.optInMoreDetails"},{default:et(()=>[y("a",KP,F(t.$t("footer.telemetry.optInMoreDetailsLink")),1)]),_:1})):(P(),V("span",YP,F(t.$t("footer.telemetry.optInSponsorship")),1))]),i.error?(P(),V("div",{key:0,class:"errorMessage my-1 text-danger",innerHTML:i.error},null,8,qP)):ve("",!0)])])}const XP=we(BP,[["render",GP],["__scopeId","data-v-30a9f43b"]]),QP={name:"Savings",components:{Sponsor:dP,SavingsTile:vv,LiveCommunity:VP,TelemetrySettings:XP},mixins:[Lt],props:{selfConsumptionPercent:Number,since:{type:Number,default:0},sponsor:String,amount:{type:Number,default:0},effectivePrice:{type:Number,default:0},totalCharged:{type:Number,default:0},gridCharged:{type:Number,default:0},selfConsumptionCharged:{type:Number,default:0},gridPrice:{type:Number},feedInPrice:{type:Number},currency:String},data(){return{communityView:!1,telemetryEnabled:!1}},computed:{percent(){return Math.round(this.selfConsumptionPercent)||0},effectivePriceFormatted(){const[t,e]=this.fmtPricePerKWh(this.effectivePrice,this.currency).split(" ");return{value:t,unit:e}},startDate(){return new Date(this.since*1e3)}},methods:{showCommunity(){this.communityView=!0},showMyData(){this.communityView=!1}}},JP={class:"btn btn-link pe-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end","data-bs-toggle":"modal","data-bs-target":"#savingsModal"},ZP={class:"d-inline d-sm-none"},e3={class:"d-none d-sm-inline"},t3=y("shopicon-regular-sun",{class:"ms-2 text-evcc"},null,-1),n3={id:"savingsModal",ref:"modal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},r3={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},i3={class:"modal-content"},s3={class:"modal-header"},o3={class:"modal-title"},a3=y("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),l3={class:"modal-body"},c3={class:"nav nav-tabs"},u3={class:"nav-item"},f3={class:"nav-item"},d3={key:0,class:"my-4"},h3={class:"d-block d-lg-flex mb-2 justify-content-between"},m3={class:"my-3 lh-2"},p3={key:1,class:"my-4"};function g3(t,e,n,r,i,s){const o=ae("SavingsTile"),a=ae("LiveCommunity"),l=ae("TelemetrySettings"),c=ae("Sponsor");return P(),V("div",null,[y("button",JP,[y("span",ZP,F(t.$t("footer.savings.footerShort",{percent:s.percent})),1),y("span",e3,F(t.$t("footer.savings.footerLong",{percent:s.percent})),1),t3]),(P(),Te(oo,{to:"body"},[y("div",n3,[y("div",r3,[y("div",i3,[y("div",s3,[y("h5",o3,F(t.$t("footer.savings.modalTitle")),1),a3]),y("div",l3,[y("ul",c3,[y("li",u3,[y("a",{class:De(["nav-link",{active:!i.communityView}]),href:"#",onClick:e[0]||(e[0]=Ws((...u)=>s.showMyData&&s.showMyData(...u),["prevent"]))},F(t.$t("footer.savings.tabTitle")),3)]),y("li",f3,[y("a",{class:De(["nav-link",{active:i.communityView}]),href:"#",onClick:e[1]||(e[1]=Ws((...u)=>s.showCommunity&&s.showCommunity(...u),["prevent"]))},F(t.$t("footer.community.tabTitle")),3)])]),i.communityView?(P(),V("div",p3,[ie(a),ie(l,{sponsor:n.sponsor},null,8,["sponsor"])])):(P(),V("div",d3,[y("div",h3,[ie(o,{class:"text-accent1",icon:"sun",title:t.$t("footer.savings.percentTitle"),value:s.percent,unit:"%",sub1:t.$t("footer.savings.percentSelf",{self:t.fmtKw(n.selfConsumptionCharged*1e3,!0,!1)}),sub2:t.$t("footer.savings.percentGrid",{grid:t.fmtKw(n.gridCharged*1e3,!0,!1)})},null,8,["title","value","sub1","sub2"]),ie(o,{class:"text-accent2",icon:"receivepayment",title:t.$t("footer.savings.priceTitle"),value:s.effectivePriceFormatted.value,unit:s.effectivePriceFormatted.unit,sub1:t.$t("footer.savings.priceFeedIn",{feedInPrice:t.fmtPricePerKWh(n.feedInPrice,n.currency)}),sub2:t.$t("footer.savings.priceGrid",{gridPrice:t.fmtPricePerKWh(n.gridPrice,n.currency)})},null,8,["title","value","unit","sub1","sub2"]),ie(o,{class:"text-accent3",icon:"coinjar",title:t.$t("footer.savings.savingsTitle"),value:t.fmtMoney(n.amount,n.currency),unit:t.fmtCurrencySymbol(n.currency),sub1:t.$t("footer.savings.savingsComparedToGrid"),sub2:t.$t("footer.savings.savingsTotalEnergy",{total:t.fmtKw(n.totalCharged*1e3,!0,!1)})},null,8,["title","value","unit","sub1","sub2"])]),y("p",m3,[y("small",null,F(t.$t("footer.savings.since",{since:t.fmtDayMonthYear(s.startDate)})),1)])])),ie(c,{sponsor:n.sponsor},null,8,["sponsor"])])])])],512)]))])}const _3=we(QP,[["render",g3]]),v3={name:"Footer",components:{Version:WO,Savings:_3},props:{version:Object,sponsor:String,savings:Object},methods:{toggleHiddenFeatures(){const t=`\u{1F9EA} Experimentelle UI-Elemente ${this.$hiddenFeatures?"deaktivieren":"aktivieren"}`;window.confirm(t)&&(window.localStorage.hidden_features=!this.$hiddenFeatures,window.location.reload())}}},b3={class:"footer"},y3={class:"container py-2"},E3={class:"d-flex justify-content-between"};function w3(t,e,n,r,i,s){const o=ae("Version"),a=ae("Savings");return P(),V("footer",b3,[y("div",y3,[y("div",E3,[ie(o,an(Kt(n.version)),null,16),ie(a,Dt(n.savings,{sponsor:n.sponsor}),null,16,["sponsor"])])])])}const T3=we(v3,[["render",w3]]),C3={name:"Site",components:{Loadpoints:W8,Energyflow:Yh,Footer:T3,Notifications:r4,TopNavigation:pv,Vehicles:Z8},mixins:[Lt,Wa],props:{loadpoints:Array,notifications:Array,offline:Boolean,gridConfigured:Boolean,gridPower:Number,homePower:Number,pvConfigured:Boolean,pvPower:Number,batteryConfigured:Boolean,batteryPower:Number,batterySoC:Number,gridCurrents:Array,prioritySoC:Number,siteTitle:String,vehicles:Array,auth:Object,currency:String,savingsAmount:Number,savingsEffectivePrice:Number,savingsGridCharged:Number,savingsSelfConsumptionCharged:Number,savingsSelfConsumptionPercent:Number,savingsSince:Number,savingsTotalCharged:Number,tariffFeedIn:Number,tariffGrid:Number,availableVersion:String,releaseNotes:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number,sponsor:String},computed:{energyflow:function(){return this.collectProps(Yh)},activeLoadpointsCount:function(){return this.loadpoints.filter(t=>t.chargePower>0).length},loadpointsPower:function(){return this.loadpoints.reduce((t,e)=>(t+=e.chargePower||0,t),0)},topNavigation:function(){return{vehicleLogins:this.auth?this.auth.vehicles:{}}},showParkingLot:function(){return!1},footer:function(){return{version:{installed:window.evcc.version,commit:window.evcc.commit,available:this.availableVersion,releaseNotes:this.releaseNotes,hasUpdater:this.hasUpdater,uploadMessage:this.uploadMessage,uploadProgress:this.uploadProgress},sponsor:this.sponsor,savings:{since:this.savingsSince,totalCharged:this.savingsTotalCharged,gridCharged:this.savingsGridCharged,selfConsumptionCharged:this.savingsSelfConsumptionCharged,amount:this.savingsAmount,effectivePrice:this.savingsEffectivePrice,selfConsumptionPercent:this.savingsSelfConsumptionPercent,gridPrice:this.tariffGrid,feedInPrice:this.tariffFeedIn,currency:this.currency}}}}},S3={class:"d-flex flex-column site"},A3={class:"container px-4 top-area"},k3={class:"d-flex justify-content-between align-items-center my-3"},x3={class:"d-block my-0"},L3={class:"d-flex"},N3={class:"d-flex flex-column justify-content-between content-area"};function O3(t,e,n,r,i,s){const o=ae("Notifications"),a=ae("TopNavigation"),l=ae("Energyflow"),c=ae("Loadpoints"),u=ae("Vehicles"),d=ae("Footer");return P(),V("div",S3,[y("div",A3,[y("div",k3,[y("h1",x3,F(n.siteTitle||"evcc"),1),y("div",L3,[ie(o,{notifications:n.notifications,class:"me-2"},null,8,["notifications"]),ie(a,an(Kt(s.topNavigation)),null,16)])]),ie(l,an(Kt(s.energyflow)),null,16)]),y("div",N3,[ie(c,{class:"mt-1 mt-sm-2 flex-grow-1",loadpoints:n.loadpoints,vehicles:n.vehicles},null,8,["loadpoints","vehicles"]),s.showParkingLot?(P(),Te(u,{key:0})):ve("",!0),ie(d,an(Kt(s.footer)),null,16)])])}const P3=we(C3,[["render",O3],["__scopeId","data-v-48374674"]]);var M3='';class I3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=M3}}window.customElements.define("shopicon-regular-car1",I3);const D3={name:"StartupError",mixins:[Wa],props:{fatal:Array,config:String,file:String,line:Number,offline:Boolean},computed:{errors(){return this.fatal||[]}},methods:{shutdown(){at.post("shutdown")},scrollTo(t){const e=t.currentTarget.getAttribute("href").substring(1),n=document.getElementById(e);console.log({id:e,el:n}),n&&n.scrollIntoView({behavior:"smooth",block:"center"})}}},yv=t=>(bt("data-v-34002e97"),t=t(),yt(),t),$3={class:"container px-4"},R3={class:"d-flex justify-content-between align-items-center my-3"},F3={class:"d-block mt-0 d-flex"},V3=yv(()=>y("shopicon-regular-car1",{size:"m",class:"ms-2 icon"},null,-1)),H3={class:"row mb-4"},B3={class:"fs-6 mb-3"},U3={href:"https://github.com/evcc-io/evcc/discussions"},j3={class:"row mb-4"},W3={class:"mb-3"},z3={class:"d-md-flex justify-content-between"},K3={class:"me-md-4"},Y3={class:"d-block"},q3=["href"],G3=["disabled"],X3={key:0},Q3=yv(()=>y("div",{class:"my-2"},null,-1)),J3={class:"py-2 text-muted config"},Z3=["id"];function eM(t,e,n,r,i,s){const o=ae("i18n-t");return P(),V("div",$3,[y("div",R3,[y("h1",F3,[Le(F(t.$t("startupError.title"))+" ",1),V3])]),y("div",H3,[y("code",B3,[(P(!0),V(xe,null,Je(s.errors,(a,l)=>(P(),V("div",{key:l},F(a),1))),128))]),ie(o,{tag:"p",keypath:"startupError.description"},{default:et(()=>[y("a",U3,F(t.$t("startupError.discussions")),1)]),_:1}),y("p",null,[y("em",null,F(t.$t("startupError.hint")),1)])]),y("div",j3,[y("h5",W3,F(t.$t("startupError.configuration")),1),y("div",z3,[y("p",K3,[y("span",Y3,[Le(F(t.$t("startupError.configFile"))+" ",1),y("code",null,F(n.file),1)]),n.line?(P(),Te(o,{key:0,tag:"span",keypath:"startupError.lineError"},{default:et(()=>[y("a",{href:`#line${n.line}`,onClick:e[0]||(e[0]=Ws((...a)=>s.scrollTo&&s.scrollTo(...a),["prevent"]))},F(t.$t("startupError.lineErrorLink",[n.line])),9,q3)]),_:1})):ve("",!0),Le(" "+F(t.$t("startupError.fixAndRestart")),1)]),y("p",null,[y("button",{class:"btn btn-primary text-nowrap",type:"button",disabled:n.offline,onClick:e[1]||(e[1]=(...a)=>s.shutdown&&s.shutdown(...a))},F(t.$t("startupError.restartButton")),9,G3)])]),n.config?(P(),V("code",X3,[Q3,y("div",J3,[(P(!0),V(xe,null,Je(n.config.split(` +`),(a,l)=>(P(),V("div",{id:`line${l+1}`,key:l,class:De(["m-0 px-2",{highlighted:n.line===l+1}])},F(a)+"\xA0 ",11,Z3))),128))])])):ve("",!0)])])}const tM=we(D3,[["render",eM],["__scopeId","data-v-34002e97"]]);var nM='';class rM extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=nM}}window.customElements.define("shopicon-regular-cloud",rM);const iM={name:"OfflineIndicator",methods:{reload(){window.location.reload()}}},sM={class:"fixed-bottom alert alert-secondary d-flex justify-content-center align-items-center mb-0 rounded-0",role:"alert"},oM=y("shopicon-regular-cloud",{class:"me-2"},null,-1);function aM(t,e,n,r,i,s){return P(),V("div",sM,[oM,Le(" "+F(t.$t("offline.message"))+" ",1),y("button",{class:"btn btn-sm btn-link text-dark",onClick:e[0]||(e[0]=(...o)=>s.reload&&s.reload(...o))},F(t.$t("offline.reload")),1)])}const lM=we(iM,[["render",aM]]),cM={name:"Main",components:{Site:P3,StartupError:tM,OfflineIndicator:lM},props:{notifications:Array,offline:Boolean},data:function(){return mc},computed:{startupErrors:function(){var t;return((t=this.state.fatal)==null?void 0:t.length)>0}}};function uM(t,e,n,r,i,s){const o=ae("OfflineIndicator"),a=ae("StartupError"),l=ae("Site");return P(),V("div",null,[n.offline?(P(),Te(o,{key:0})):ve("",!0),s.startupErrors?(P(),Te(a,Dt({key:1},t.state,{offline:n.offline}),null,16,["offline"])):(P(),Te(l,Dt({key:2,notifications:n.notifications},t.state),null,16,["notifications"]))])}const fM=we(cM,[["render",uM]]);var dM='';class hM extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=dM}}window.customElements.define("shopicon-bold-arrowback",hM);const mM={name:"ChargingSessions",components:{TopNavigation:pv},mixins:[Lt],props:{notifications:Array},data(){return{sessions:[]}},computed:{sessionsByMonthAndLoadpoint(){const t=this.sessions.map(n=>{const r=n.loadpoint||this.$t("main.loadpoint.fallbackName"),i=n.vehicle||this.$t("main.vehicle.unknown");return{...n,loadpoint:r,vehicle:i}}),e=this.groupByMonth(t);return Object.entries(e).map(([n,r])=>{const i=Object.entries(this.groupByLoadpoint(r)).map(([s,o])=>{const a=this.totalKWh(o);return{name:s,total:a,sessions:o}});return{month:n,loadpoints:i}})}},mounted(){this.loadSessions()},methods:{async loadSessions(){var e;const t=await at.get("sessions");this.sessions=(e=t.data)==null?void 0:e.result},groupByMonth(t){return t.reduce((e,n)=>{const r=new Date(n.finished),i=`${r.getFullYear()}.${r.getMonth()}`;return e[i]||(e[i]=[]),e[i].push(n),e},{})},groupByLoadpoint(t){return t.reduce((e,n)=>{const r=n.loadpoint;return e[r]||(e[r]=[]),e[r].push(n),e},{})},totalKWh(t){return t.reduce((e,n)=>e+n.chargedEnergy,0)*1e3},groupedKWh(t,e){const n=e.reduce((i,s)=>{const o=s[t];return i[o]||(i[o]=0),i[o]+=s.chargedEnergy*1e3,i},{}),r=Object.entries(n).map(([i,s])=>({name:i,energy:s}));return r.length>=2?r:[]},formatGroupHeadline(t){const e=new Date,[n,r]=t.split(".");return e.setMonth(r),e.setFullYear(n),this.fmtMonthYear(e)}}},mf=t=>(bt("data-v-c2d84bb6"),t=t(),yt(),t),pM={class:"container px-4"},gM={class:"d-flex justify-content-between align-items-center py-3"},_M={class:"mb-1 pt-1 d-flex text-nowrap"},vM=mf(()=>y("shopicon-bold-arrowback",{size:"s",class:"back"},null,-1)),bM={class:"row"},yM={class:"col-12"},EM={class:"mb-4"},wM={class:"btn btn-outline-secondary text-nowrap my-2",href:"./api/sessions?format=csv",download:"sessions.csv"},TM={class:"mx-2"},CM={class:"d-flex align-items-baseline my-5"},SM={class:"me-4 mb-0"},AM={class:"d-flex align-items-baseline mb-3"},kM={class:"me-4 mb-0"},xM={class:"large"},LM={class:"breakdown text-gray d-sm-flex flex-sm-wrap ps-0 mb-2"},NM={class:"table-responsive my-3"},OM={class:"table"},PM={scope:"col"},MM={scope:"col",class:"text-end ps-sm-4 pe-md-5"},IM={scope:"col",class:"ps-3 ps-md-4 ps-md-5"},DM={class:"text-nowrap text-end ps-sm-4 pe-md-5"},$M={class:"text-nowrap ps-3 ps-md-4 ps-md-5"},RM={class:"d-block d-sm-none"},FM=mf(()=>y("br",null,null,-1)),VM={class:"d-none d-sm-block"},HM=mf(()=>y("br",null,null,-1));function BM(t,e,n,r,i,s){const o=ae("router-link"),a=ae("TopNavigation");return P(),V("div",pM,[y("header",gM,[y("h1",_M,[ie(o,{class:"dropdown-item mx-2 me-2",to:"/"},{default:et(()=>[vM]),_:1}),Le(" "+F(t.$t("sessions.title")),1)]),ie(a)]),y("div",bM,[y("main",yM,[y("div",EM,[y("a",wM,F(t.$t("sessions.downloadCsv")),1)]),(P(!0),V(xe,null,Je(s.sessionsByMonthAndLoadpoint,l=>(P(),V("div",{key:l.month},[y("div",TM,[y("div",CM,[y("h2",SM,F(s.formatGroupHeadline(l.month)),1)]),(P(!0),V(xe,null,Je(l.loadpoints,c=>(P(),V("div",{key:c.name},[y("div",AM,[y("h3",kM,F(c.name),1),y("div",xM,F(t.fmtKWh(c.total)),1)]),y("ul",LM,[(P(!0),V(xe,null,Je(s.groupedKWh("vehicle",c.sessions),(u,d)=>(P(),V("li",{key:d,class:"breakdown-item"},F(u.name)+": "+F(t.fmtKWh(u.energy)),1))),128))]),y("div",NM,[y("table",OM,[y("thead",null,[y("tr",null,[y("th",PM,F(t.$t("sessions.vehicle")),1),y("th",MM,F(t.$t("sessions.energy")),1),y("th",IM,F(t.$t("sessions.date")),1)])]),y("tbody",null,[(P(!0),V(xe,null,Je(c.sessions,(u,d)=>(P(),V("tr",{key:d},[y("td",null,F(u.vehicle),1),y("td",DM,F(t.fmtKWh(u.chargedEnergy*1e3)),1),y("td",$M,[y("span",RM,[Le(F(t.fmtFullDateTime(new Date(u.created),!0))+" ",1),FM,Le(" "+F(t.fmtFullDateTime(new Date(u.finished),!0)),1)]),y("span",VM,[Le(F(t.fmtFullDateTime(new Date(u.created),!1))+" ",1),HM,Le(" "+F(t.fmtFullDateTime(new Date(u.finished),!1)),1)])])]))),128))])])])]))),128))])]))),128))])])])}const UM=we(mM,[["render",BM],["__scopeId","data-v-c2d84bb6"]]),jM=tA({history:_S(),routes:[{path:"/",component:fM,props:!0},{path:"/sessions",component:UM,props:!0}]});/*! * shared v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const Fc=typeof window<"u",jM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ar=t=>jM?Symbol(t):t,WM=(t,e,n)=>zM({l:t,k:e,s:n}),zM=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),tt=t=>typeof t=="number"&&isFinite(t),KM=t=>gf(t)==="[object Date]",br=t=>gf(t)==="[object RegExp]",Ka=t=>_e(t)&&Object.keys(t).length===0;function YM(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const st=Object.assign;let nm;const Is=()=>nm||(nm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rm(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const qM=Object.prototype.hasOwnProperty;function pf(t,e){return qM.call(t,e)}const He=Array.isArray,Ye=t=>typeof t=="function",re=t=>typeof t=="string",Se=t=>typeof t=="boolean",Be=t=>t!==null&&typeof t=="object",yv=Object.prototype.toString,gf=t=>yv.call(t),_e=t=>gf(t)==="[object Object]",GM=t=>t==null?"":He(t)||_e(t)&&t.toString===yv?JSON.stringify(t,null,2):String(t);/*! + */const Fc=typeof window<"u",WM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ar=t=>WM?Symbol(t):t,zM=(t,e,n)=>KM({l:t,k:e,s:n}),KM=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),tt=t=>typeof t=="number"&&isFinite(t),YM=t=>gf(t)==="[object Date]",br=t=>gf(t)==="[object RegExp]",Ka=t=>_e(t)&&Object.keys(t).length===0;function qM(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const st=Object.assign;let rm;const Is=()=>rm||(rm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function im(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const GM=Object.prototype.hasOwnProperty;function pf(t,e){return GM.call(t,e)}const He=Array.isArray,Ye=t=>typeof t=="function",re=t=>typeof t=="string",Se=t=>typeof t=="boolean",Be=t=>t!==null&&typeof t=="object",Ev=Object.prototype.toString,gf=t=>Ev.call(t),_e=t=>gf(t)==="[object Object]",XM=t=>t==null?"":He(t)||_e(t)&&t.toString===Ev?JSON.stringify(t,null,2):String(t);/*! * message-compiler v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const Oe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Ya(t,e,n={}){const{domain:r,messages:i,args:s}=n,o=t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function XM(t){throw t}function QM(t,e,n){return{line:t,column:e,offset:n}}function Vc(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Pn=" ",JM="\r",gt=` -`,ZM=String.fromCharCode(8232),eI=String.fromCharCode(8233);function tI(t){const e=t;let n=0,r=1,i=1,s=0;const o=x=>e[x]===JM&&e[x+1]===gt,a=x=>e[x]===gt,l=x=>e[x]===eI,c=x=>e[x]===ZM,u=x=>o(x)||a(x)||l(x)||c(x),d=()=>n,f=()=>r,m=()=>i,w=()=>s,g=x=>o(x)||l(x)||c(x)?gt:e[x],E=()=>g(n),_=()=>g(n+s);function C(){return s=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,e[n]}function S(){return o(n+s)&&s++,s++,e[n+s]}function v(){n=0,r=1,i=1,s=0}function b(x=0){s=x}function k(){const x=n+s;for(;x!==n;)C();s=0}return{index:d,line:f,column:m,peekOffset:w,charAt:g,currentChar:E,currentPeek:_,next:C,peek:S,reset:v,resetPeek:b,skipToPeek:k}}const Zn=void 0,im="'",nI="tokenizer";function rI(t,e={}){const n=e.location!==!1,r=tI(t),i=()=>r.index(),s=()=>QM(r.line(),r.column(),r.index()),o=s(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=e;function d(h,p,T,...L){const D=c();if(p.column+=T,p.offset+=T,u){const H=Vc(D.startLoc,p),G=Ya(h,H,{domain:nI,args:L});u(G)}}function f(h,p,T){h.endLoc=s(),h.currentType=p;const L={type:p};return n&&(L.loc=Vc(h.startLoc,h.endLoc)),T!=null&&(L.value=T),L}const m=h=>f(h,14);function w(h,p){return h.currentChar()===p?(h.next(),p):(d(Oe.EXPECTED_TOKEN,s(),0,p),"")}function g(h){let p="";for(;h.currentPeek()===Pn||h.currentPeek()===gt;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=g(h);return h.skipToPeek(),p}function _(h){if(h===Zn)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function C(h){if(h===Zn)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function S(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=_(h.currentPeek());return h.resetPeek(),L}function v(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=h.currentPeek()==="-"?h.peek():h.currentPeek(),D=C(L);return h.resetPeek(),D}function b(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=h.currentPeek()===im;return h.resetPeek(),L}function k(h,p){const{currentType:T}=p;if(T!==8)return!1;g(h);const L=h.currentPeek()===".";return h.resetPeek(),L}function x(h,p){const{currentType:T}=p;if(T!==9)return!1;g(h);const L=_(h.currentPeek());return h.resetPeek(),L}function N(h,p){const{currentType:T}=p;if(!(T===8||T===12))return!1;g(h);const L=h.currentPeek()===":";return h.resetPeek(),L}function O(h,p){const{currentType:T}=p;if(T!==10)return!1;const L=()=>{const H=h.currentPeek();return H==="{"?_(h.peek()):H==="@"||H==="%"||H==="|"||H===":"||H==="."||H===Pn||!H?!1:H===gt?(h.peek(),L()):_(H)},D=L();return h.resetPeek(),D}function B(h){g(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function q(h){const p=g(h),T=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:T,hasSpace:p.length>0}}function Q(h,p=!0){const T=(D=!1,H="",G=!1)=>{const W=h.currentPeek();return W==="{"?H==="%"?!1:D:W==="@"||!W?H==="%"?!0:D:W==="%"?(h.peek(),T(D,"%",!0)):W==="|"?H==="%"||G?!0:!(H===Pn||H===gt):W===Pn?(h.peek(),T(!0,Pn,G)):W===gt?(h.peek(),T(!0,gt,G)):!0},L=T();return p&&h.resetPeek(),L}function ee(h,p){const T=h.currentChar();return T===Zn?Zn:p(T)?(h.next(),T):null}function I(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===95||L===36})}function M(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=48&&L<=57})}function Y(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102})}function z(h){let p="",T="";for(;p=M(h);)T+=p;return T}function te(h){E(h);const p=h.currentChar();return p!=="%"&&d(Oe.EXPECTED_TOKEN,s(),0,p),h.next(),"%"}function se(h){let p="";for(;;){const T=h.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T==="%")if(Q(h))p+=T,h.next();else break;else if(T===Pn||T===gt)if(Q(h))p+=T,h.next();else{if(B(h))break;p+=T,h.next()}else p+=T,h.next()}return p}function ce(h){E(h);let p="",T="";for(;p=I(h);)T+=p;return h.currentChar()===Zn&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T}function he(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${z(h)}`):p+=z(h),h.currentChar()===Zn&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),p}function fe(h){E(h),w(h,"'");let p="",T="";const L=H=>H!==im&&H!==gt;for(;p=ee(h,L);)p==="\\"?T+=Ne(h):T+=p;const D=h.currentChar();return D===gt||D===Zn?(d(Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),D===gt&&(h.next(),w(h,"'")),T):(w(h,"'"),T)}function Ne(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return me(h,p,4);case"U":return me(h,p,6);default:return d(Oe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,p),""}}function me(h,p,T){w(h,p);let L="";for(let D=0;DD!=="{"&&D!=="}"&&D!==Pn&&D!==gt;for(;p=ee(h,L);)T+=p;return T}function X(h){let p="",T="";for(;p=I(h);)T+=p;return T}function U(h){const p=(T=!1,L)=>{const D=h.currentChar();return D==="{"||D==="%"||D==="@"||D==="|"||!D||D===Pn?L:D===gt?(L+=D,h.next(),p(T,L)):(L+=D,h.next(),p(!0,L))};return p(!1,"")}function Z(h){E(h);const p=w(h,"|");return E(h),p}function pe(h,p){let T=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&d(Oe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),h.next(),T=f(p,2,"{"),E(h),p.braceNest++,T;case"}":return p.braceNest>0&&p.currentType===2&&d(Oe.EMPTY_PLACEHOLDER,s(),0),h.next(),T=f(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),T;case"@":return p.braceNest>0&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T=ge(h,p)||m(p),p.braceNest=0,T;default:let D=!0,H=!0,G=!0;if(B(h))return p.braceNest>0&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,T;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),p.braceNest=0,le(h,p);if(D=S(h,p))return T=f(p,5,ce(h)),E(h),T;if(H=v(h,p))return T=f(p,6,he(h)),E(h),T;if(G=b(h,p))return T=f(p,7,fe(h)),E(h),T;if(!D&&!H&&!G)return T=f(p,13,R(h)),d(Oe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,T.value),E(h),T;break}return T}function ge(h,p){const{currentType:T}=p;let L=null;const D=h.currentChar();switch((T===8||T===9||T===12||T===10)&&(D===gt||D===Pn)&&d(Oe.INVALID_LINKED_FORMAT,s(),0),D){case"@":return h.next(),L=f(p,8,"@"),p.inLinked=!0,L;case".":return E(h),h.next(),f(p,9,".");case":":return E(h),h.next(),f(p,10,":");default:return B(h)?(L=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,L):k(h,p)||N(h,p)?(E(h),ge(h,p)):x(h,p)?(E(h),f(p,12,X(h))):O(h,p)?(E(h),D==="{"?pe(h,p)||L:f(p,11,U(h))):(T===8&&d(Oe.INVALID_LINKED_FORMAT,s(),0),p.braceNest=0,p.inLinked=!1,le(h,p))}}function le(h,p){let T={type:14};if(p.braceNest>0)return pe(h,p)||m(p);if(p.inLinked)return ge(h,p)||m(p);switch(h.currentChar()){case"{":return pe(h,p)||m(p);case"}":return d(Oe.UNBALANCED_CLOSING_BRACE,s(),0),h.next(),f(p,3,"}");case"@":return ge(h,p)||m(p);default:if(B(h))return T=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,T;const{isModulo:D,hasSpace:H}=q(h);if(D)return H?f(p,0,se(h)):f(p,4,te(h));if(Q(h))return f(p,0,se(h));break}return T}function oe(){const{currentType:h,offset:p,startLoc:T,endLoc:L}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=T,l.lastEndLoc=L,l.offset=i(),l.startLoc=s(),r.currentChar()===Zn?f(l,14):le(r,l)}return{nextToken:oe,currentOffset:i,currentPosition:s,context:c}}const iI="parser",sI=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function oI(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function aI(t={}){const e=t.location!==!1,{onError:n}=t;function r(_,C,S,v,...b){const k=_.currentPosition();if(k.offset+=v,k.column+=v,n){const x=Vc(S,k),N=Ya(C,x,{domain:iI,args:b});n(N)}}function i(_,C,S){const v={type:_,start:C,end:C};return e&&(v.loc={start:S,end:S}),v}function s(_,C,S,v){_.end=C,v&&(_.type=v),e&&_.loc&&(_.loc.end=S)}function o(_,C){const S=_.context(),v=i(3,S.offset,S.startLoc);return v.value=C,s(v,_.currentOffset(),_.currentPosition()),v}function a(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(5,v,b);return k.index=parseInt(C,10),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function l(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(4,v,b);return k.key=C,_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function c(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(9,v,b);return k.value=C.replace(sI,oI),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function u(_){const C=_.nextToken(),S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(8,v,b);return C.type!==12?(r(_,Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),k.value="",s(k,v,b),{nextConsumeToken:C,node:k}):(C.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,vn(C)),k.value=C.value||"",s(k,_.currentOffset(),_.currentPosition()),{node:k})}function d(_,C){const S=_.context(),v=i(7,S.offset,S.startLoc);return v.value=C,s(v,_.currentOffset(),_.currentPosition()),v}function f(_){const C=_.context(),S=i(6,C.offset,C.startLoc);let v=_.nextToken();if(v.type===9){const b=u(_);S.modifier=b.node,v=b.nextConsumeToken||_.nextToken()}switch(v.type!==10&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),v=_.nextToken(),v.type===2&&(v=_.nextToken()),v.type){case 11:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=d(_,v.value||"");break;case 5:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=l(_,v.value||"");break;case 6:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=a(_,v.value||"");break;case 7:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=c(_,v.value||"");break;default:r(_,Oe.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const b=_.context(),k=i(7,b.offset,b.startLoc);return k.value="",s(k,b.offset,b.startLoc),S.key=k,s(S,b.offset,b.startLoc),{nextConsumeToken:v,node:S}}return s(S,_.currentOffset(),_.currentPosition()),{node:S}}function m(_){const C=_.context(),S=C.currentType===1?_.currentOffset():C.offset,v=C.currentType===1?C.endLoc:C.startLoc,b=i(2,S,v);b.items=[];let k=null;do{const O=k||_.nextToken();switch(k=null,O.type){case 0:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(o(_,O.value||""));break;case 6:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(a(_,O.value||""));break;case 5:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(l(_,O.value||""));break;case 7:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(c(_,O.value||""));break;case 8:const B=f(_);b.items.push(B.node),k=B.nextConsumeToken||null;break}}while(C.currentType!==14&&C.currentType!==1);const x=C.currentType===1?C.lastOffset:_.currentOffset(),N=C.currentType===1?C.lastEndLoc:_.currentPosition();return s(b,x,N),b}function w(_,C,S,v){const b=_.context();let k=v.items.length===0;const x=i(1,C,S);x.cases=[],x.cases.push(v);do{const N=m(_);k||(k=N.items.length===0),x.cases.push(N)}while(b.currentType!==14);return k&&r(_,Oe.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),s(x,_.currentOffset(),_.currentPosition()),x}function g(_){const C=_.context(),{offset:S,startLoc:v}=C,b=m(_);return C.currentType===14?b:w(_,S,v,b)}function E(_){const C=rI(_,st({},t)),S=C.context(),v=i(0,S.offset,S.startLoc);return e&&v.loc&&(v.loc.source=_),v.body=g(C),S.currentType!==14&&r(C,Oe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_[S.offset]||""),s(v,C.currentOffset(),C.currentPosition()),v}return{parse:E}}function vn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function lI(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function sm(t,e){for(let n=0;no;function l(g,E){o.code+=g}function c(g,E=!0){const _=E?i:"";l(s?_+" ".repeat(g):_)}function u(g=!0){const E=++o.indentLevel;g&&c(E)}function d(g=!0){const E=--o.indentLevel;g&&c(E)}function f(){c(o.indentLevel)}return{context:a,push:l,indent:u,deindent:d,newline:f,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function fI(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ji(t,e.key),e.modifier?(t.push(", "),Ji(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function dI(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let s=0;s1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let s=0;s{const n=re(e.mode)?e.mode:"normal",r=re(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` -`,o=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=uI(t,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${a.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ji(l,t),l.deindent(o),l.push("}");const{code:c,map:u}=l.context();return{ast:t,code:c,map:u?u.toJSON():void 0}};function gI(t,e={}){const n=st({},e),i=aI(n).parse(t);return cI(i,n),pI(i,n)}/*! + */const Oe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Ya(t,e,n={}){const{domain:r,messages:i,args:s}=n,o=t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function QM(t){throw t}function JM(t,e,n){return{line:t,column:e,offset:n}}function Vc(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Pn=" ",ZM="\r",gt=` +`,eI=String.fromCharCode(8232),tI=String.fromCharCode(8233);function nI(t){const e=t;let n=0,r=1,i=1,s=0;const o=x=>e[x]===ZM&&e[x+1]===gt,a=x=>e[x]===gt,l=x=>e[x]===tI,c=x=>e[x]===eI,u=x=>o(x)||a(x)||l(x)||c(x),d=()=>n,f=()=>r,m=()=>i,w=()=>s,g=x=>o(x)||l(x)||c(x)?gt:e[x],E=()=>g(n),_=()=>g(n+s);function C(){return s=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,e[n]}function S(){return o(n+s)&&s++,s++,e[n+s]}function v(){n=0,r=1,i=1,s=0}function b(x=0){s=x}function k(){const x=n+s;for(;x!==n;)C();s=0}return{index:d,line:f,column:m,peekOffset:w,charAt:g,currentChar:E,currentPeek:_,next:C,peek:S,reset:v,resetPeek:b,skipToPeek:k}}const Zn=void 0,sm="'",rI="tokenizer";function iI(t,e={}){const n=e.location!==!1,r=nI(t),i=()=>r.index(),s=()=>JM(r.line(),r.column(),r.index()),o=s(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=e;function d(h,p,T,...L){const D=c();if(p.column+=T,p.offset+=T,u){const H=Vc(D.startLoc,p),G=Ya(h,H,{domain:rI,args:L});u(G)}}function f(h,p,T){h.endLoc=s(),h.currentType=p;const L={type:p};return n&&(L.loc=Vc(h.startLoc,h.endLoc)),T!=null&&(L.value=T),L}const m=h=>f(h,14);function w(h,p){return h.currentChar()===p?(h.next(),p):(d(Oe.EXPECTED_TOKEN,s(),0,p),"")}function g(h){let p="";for(;h.currentPeek()===Pn||h.currentPeek()===gt;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=g(h);return h.skipToPeek(),p}function _(h){if(h===Zn)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function C(h){if(h===Zn)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function S(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=_(h.currentPeek());return h.resetPeek(),L}function v(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=h.currentPeek()==="-"?h.peek():h.currentPeek(),D=C(L);return h.resetPeek(),D}function b(h,p){const{currentType:T}=p;if(T!==2)return!1;g(h);const L=h.currentPeek()===sm;return h.resetPeek(),L}function k(h,p){const{currentType:T}=p;if(T!==8)return!1;g(h);const L=h.currentPeek()===".";return h.resetPeek(),L}function x(h,p){const{currentType:T}=p;if(T!==9)return!1;g(h);const L=_(h.currentPeek());return h.resetPeek(),L}function N(h,p){const{currentType:T}=p;if(!(T===8||T===12))return!1;g(h);const L=h.currentPeek()===":";return h.resetPeek(),L}function O(h,p){const{currentType:T}=p;if(T!==10)return!1;const L=()=>{const H=h.currentPeek();return H==="{"?_(h.peek()):H==="@"||H==="%"||H==="|"||H===":"||H==="."||H===Pn||!H?!1:H===gt?(h.peek(),L()):_(H)},D=L();return h.resetPeek(),D}function B(h){g(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function q(h){const p=g(h),T=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:T,hasSpace:p.length>0}}function Q(h,p=!0){const T=(D=!1,H="",G=!1)=>{const W=h.currentPeek();return W==="{"?H==="%"?!1:D:W==="@"||!W?H==="%"?!0:D:W==="%"?(h.peek(),T(D,"%",!0)):W==="|"?H==="%"||G?!0:!(H===Pn||H===gt):W===Pn?(h.peek(),T(!0,Pn,G)):W===gt?(h.peek(),T(!0,gt,G)):!0},L=T();return p&&h.resetPeek(),L}function ee(h,p){const T=h.currentChar();return T===Zn?Zn:p(T)?(h.next(),T):null}function I(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===95||L===36})}function M(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=48&&L<=57})}function Y(h){return ee(h,T=>{const L=T.charCodeAt(0);return L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102})}function z(h){let p="",T="";for(;p=M(h);)T+=p;return T}function te(h){E(h);const p=h.currentChar();return p!=="%"&&d(Oe.EXPECTED_TOKEN,s(),0,p),h.next(),"%"}function se(h){let p="";for(;;){const T=h.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T==="%")if(Q(h))p+=T,h.next();else break;else if(T===Pn||T===gt)if(Q(h))p+=T,h.next();else{if(B(h))break;p+=T,h.next()}else p+=T,h.next()}return p}function ce(h){E(h);let p="",T="";for(;p=I(h);)T+=p;return h.currentChar()===Zn&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T}function he(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${z(h)}`):p+=z(h),h.currentChar()===Zn&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),p}function fe(h){E(h),w(h,"'");let p="",T="";const L=H=>H!==sm&&H!==gt;for(;p=ee(h,L);)p==="\\"?T+=Ne(h):T+=p;const D=h.currentChar();return D===gt||D===Zn?(d(Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),D===gt&&(h.next(),w(h,"'")),T):(w(h,"'"),T)}function Ne(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return me(h,p,4);case"U":return me(h,p,6);default:return d(Oe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,p),""}}function me(h,p,T){w(h,p);let L="";for(let D=0;DD!=="{"&&D!=="}"&&D!==Pn&&D!==gt;for(;p=ee(h,L);)T+=p;return T}function X(h){let p="",T="";for(;p=I(h);)T+=p;return T}function U(h){const p=(T=!1,L)=>{const D=h.currentChar();return D==="{"||D==="%"||D==="@"||D==="|"||!D||D===Pn?L:D===gt?(L+=D,h.next(),p(T,L)):(L+=D,h.next(),p(!0,L))};return p(!1,"")}function Z(h){E(h);const p=w(h,"|");return E(h),p}function pe(h,p){let T=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&d(Oe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),h.next(),T=f(p,2,"{"),E(h),p.braceNest++,T;case"}":return p.braceNest>0&&p.currentType===2&&d(Oe.EMPTY_PLACEHOLDER,s(),0),h.next(),T=f(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),T;case"@":return p.braceNest>0&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T=ge(h,p)||m(p),p.braceNest=0,T;default:let D=!0,H=!0,G=!0;if(B(h))return p.braceNest>0&&d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),T=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,T;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return d(Oe.UNTERMINATED_CLOSING_BRACE,s(),0),p.braceNest=0,le(h,p);if(D=S(h,p))return T=f(p,5,ce(h)),E(h),T;if(H=v(h,p))return T=f(p,6,he(h)),E(h),T;if(G=b(h,p))return T=f(p,7,fe(h)),E(h),T;if(!D&&!H&&!G)return T=f(p,13,R(h)),d(Oe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,T.value),E(h),T;break}return T}function ge(h,p){const{currentType:T}=p;let L=null;const D=h.currentChar();switch((T===8||T===9||T===12||T===10)&&(D===gt||D===Pn)&&d(Oe.INVALID_LINKED_FORMAT,s(),0),D){case"@":return h.next(),L=f(p,8,"@"),p.inLinked=!0,L;case".":return E(h),h.next(),f(p,9,".");case":":return E(h),h.next(),f(p,10,":");default:return B(h)?(L=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,L):k(h,p)||N(h,p)?(E(h),ge(h,p)):x(h,p)?(E(h),f(p,12,X(h))):O(h,p)?(E(h),D==="{"?pe(h,p)||L:f(p,11,U(h))):(T===8&&d(Oe.INVALID_LINKED_FORMAT,s(),0),p.braceNest=0,p.inLinked=!1,le(h,p))}}function le(h,p){let T={type:14};if(p.braceNest>0)return pe(h,p)||m(p);if(p.inLinked)return ge(h,p)||m(p);switch(h.currentChar()){case"{":return pe(h,p)||m(p);case"}":return d(Oe.UNBALANCED_CLOSING_BRACE,s(),0),h.next(),f(p,3,"}");case"@":return ge(h,p)||m(p);default:if(B(h))return T=f(p,1,Z(h)),p.braceNest=0,p.inLinked=!1,T;const{isModulo:D,hasSpace:H}=q(h);if(D)return H?f(p,0,se(h)):f(p,4,te(h));if(Q(h))return f(p,0,se(h));break}return T}function oe(){const{currentType:h,offset:p,startLoc:T,endLoc:L}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=T,l.lastEndLoc=L,l.offset=i(),l.startLoc=s(),r.currentChar()===Zn?f(l,14):le(r,l)}return{nextToken:oe,currentOffset:i,currentPosition:s,context:c}}const sI="parser",oI=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function aI(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function lI(t={}){const e=t.location!==!1,{onError:n}=t;function r(_,C,S,v,...b){const k=_.currentPosition();if(k.offset+=v,k.column+=v,n){const x=Vc(S,k),N=Ya(C,x,{domain:sI,args:b});n(N)}}function i(_,C,S){const v={type:_,start:C,end:C};return e&&(v.loc={start:S,end:S}),v}function s(_,C,S,v){_.end=C,v&&(_.type=v),e&&_.loc&&(_.loc.end=S)}function o(_,C){const S=_.context(),v=i(3,S.offset,S.startLoc);return v.value=C,s(v,_.currentOffset(),_.currentPosition()),v}function a(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(5,v,b);return k.index=parseInt(C,10),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function l(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(4,v,b);return k.key=C,_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function c(_,C){const S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(9,v,b);return k.value=C.replace(oI,aI),_.nextToken(),s(k,_.currentOffset(),_.currentPosition()),k}function u(_){const C=_.nextToken(),S=_.context(),{lastOffset:v,lastStartLoc:b}=S,k=i(8,v,b);return C.type!==12?(r(_,Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),k.value="",s(k,v,b),{nextConsumeToken:C,node:k}):(C.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,vn(C)),k.value=C.value||"",s(k,_.currentOffset(),_.currentPosition()),{node:k})}function d(_,C){const S=_.context(),v=i(7,S.offset,S.startLoc);return v.value=C,s(v,_.currentOffset(),_.currentPosition()),v}function f(_){const C=_.context(),S=i(6,C.offset,C.startLoc);let v=_.nextToken();if(v.type===9){const b=u(_);S.modifier=b.node,v=b.nextConsumeToken||_.nextToken()}switch(v.type!==10&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),v=_.nextToken(),v.type===2&&(v=_.nextToken()),v.type){case 11:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=d(_,v.value||"");break;case 5:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=l(_,v.value||"");break;case 6:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=a(_,v.value||"");break;case 7:v.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(v)),S.key=c(_,v.value||"");break;default:r(_,Oe.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const b=_.context(),k=i(7,b.offset,b.startLoc);return k.value="",s(k,b.offset,b.startLoc),S.key=k,s(S,b.offset,b.startLoc),{nextConsumeToken:v,node:S}}return s(S,_.currentOffset(),_.currentPosition()),{node:S}}function m(_){const C=_.context(),S=C.currentType===1?_.currentOffset():C.offset,v=C.currentType===1?C.endLoc:C.startLoc,b=i(2,S,v);b.items=[];let k=null;do{const O=k||_.nextToken();switch(k=null,O.type){case 0:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(o(_,O.value||""));break;case 6:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(a(_,O.value||""));break;case 5:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(l(_,O.value||""));break;case 7:O.value==null&&r(_,Oe.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,vn(O)),b.items.push(c(_,O.value||""));break;case 8:const B=f(_);b.items.push(B.node),k=B.nextConsumeToken||null;break}}while(C.currentType!==14&&C.currentType!==1);const x=C.currentType===1?C.lastOffset:_.currentOffset(),N=C.currentType===1?C.lastEndLoc:_.currentPosition();return s(b,x,N),b}function w(_,C,S,v){const b=_.context();let k=v.items.length===0;const x=i(1,C,S);x.cases=[],x.cases.push(v);do{const N=m(_);k||(k=N.items.length===0),x.cases.push(N)}while(b.currentType!==14);return k&&r(_,Oe.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),s(x,_.currentOffset(),_.currentPosition()),x}function g(_){const C=_.context(),{offset:S,startLoc:v}=C,b=m(_);return C.currentType===14?b:w(_,S,v,b)}function E(_){const C=iI(_,st({},t)),S=C.context(),v=i(0,S.offset,S.startLoc);return e&&v.loc&&(v.loc.source=_),v.body=g(C),S.currentType!==14&&r(C,Oe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_[S.offset]||""),s(v,C.currentOffset(),C.currentPosition()),v}return{parse:E}}function vn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function cI(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function om(t,e){for(let n=0;no;function l(g,E){o.code+=g}function c(g,E=!0){const _=E?i:"";l(s?_+" ".repeat(g):_)}function u(g=!0){const E=++o.indentLevel;g&&c(E)}function d(g=!0){const E=--o.indentLevel;g&&c(E)}function f(){c(o.indentLevel)}return{context:a,push:l,indent:u,deindent:d,newline:f,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function dI(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ji(t,e.key),e.modifier?(t.push(", "),Ji(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function hI(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let s=0;s1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let s=0;s{const n=re(e.mode)?e.mode:"normal",r=re(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` +`,o=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=fI(t,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${a.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ji(l,t),l.deindent(o),l.push("}");const{code:c,map:u}=l.context();return{ast:t,code:c,map:u?u.toJSON():void 0}};function _I(t,e={}){const n=st({},e),i=lI(n).parse(t);return uI(i,n),gI(i,n)}/*! * devtools-if v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const Ev={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! + */const wv={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! * core-base v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const kr=[];kr[0]={w:[0],i:[3,0],["["]:[4],o:[7]};kr[1]={w:[1],["."]:[2],["["]:[4],o:[7]};kr[2]={w:[2],i:[3,0],[0]:[3,0]};kr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};kr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};kr[5]={["'"]:[4,0],o:8,l:[5,0]};kr[6]={['"']:[4,0],o:8,l:[6,0]};const _I=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function vI(t){return _I.test(t)}function bI(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function yI(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function EI(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:vI(e)?bI(e):"*"+e}function wI(t){const e=[];let n=-1,r=0,i=0,s,o,a,l,c,u,d;const f=[];f[0]=()=>{o===void 0?o=a:o+=a},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=EI(o),o===!1))return!1;f[1]()}};function m(){const w=t[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,f[0](),!0}for(;r!==null;)if(n++,s=t[n],!(s==="\\"&&m())){if(l=yI(s),d=kr[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return e}}const om=new Map;function TI(t,e){return Be(t)?t[e]:null}function CI(t,e){if(!Be(t))return null;let n=om.get(e);if(n||(n=wI(e),n&&om.set(e,n)),!n)return null;const r=n.length;let i=t,s=0;for(;st,AI=t=>"",kI="text",xI=t=>t.length===0?"":t.join(""),LI=GM;function am(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function NI(t){const e=tt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(tt(t.named.count)||tt(t.named.n))?tt(t.named.count)?t.named.count:tt(t.named.n)?t.named.n:e:e}function OI(t,e){e.count||(e.count=t),e.n||(e.n=t)}function PI(t={}){const e=t.locale,n=NI(t),r=Be(t.pluralRules)&&re(e)&&Ye(t.pluralRules[e])?t.pluralRules[e]:am,i=Be(t.pluralRules)&&re(e)&&Ye(t.pluralRules[e])?am:void 0,s=_=>_[r(n,_.length,i)],o=t.list||[],a=_=>o[_],l=t.named||{};tt(t.pluralIndex)&&OI(n,l);const c=_=>l[_];function u(_){const C=Ye(t.messages)?t.messages(_):Be(t.messages)?t.messages[_]:!1;return C||(t.parent?t.parent.message(_):AI)}const d=_=>t.modifiers?t.modifiers[_]:SI,f=_e(t.processor)&&Ye(t.processor.normalize)?t.processor.normalize:xI,m=_e(t.processor)&&Ye(t.processor.interpolate)?t.processor.interpolate:LI,w=_e(t.processor)&&re(t.processor.type)?t.processor.type:kI,E={list:a,named:c,plural:s,linked:(_,...C)=>{const[S,v]=C;let b="text",k="";C.length===1?Be(S)?(k=S.modifier||k,b=S.type||b):re(S)&&(k=S||k):C.length===2&&(re(S)&&(k=S||k),re(v)&&(b=v||b));let x=u(_)(E);return b==="vnode"&&He(x)&&k&&(x=x[0]),k?d(k)(x,b):x},message:u,type:w,interpolate:m,normalize:f};return E}let Zs=null;function MI(t){Zs=t}function II(t,e,n){Zs&&Zs.emit(Ev.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const DI=$I(Ev.FunctionTranslate);function $I(t){return e=>Zs&&Zs.emit(t,e)}const RI={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function FI(t,e,n){return[...new Set([n,...He(e)?e:Be(e)?Object.keys(e):re(e)?[e]:[n]])]}function wv(t,e,n){const r=re(n)?n:fo,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;He(o);)o=lm(s,o,e);const a=He(e)||!_e(e)?e:e.default?e.default:null;o=re(a)?[a]:a,He(o)&&lm(s,o,!1),i.__localeChainCache.set(r,s)}return s}function lm(t,e,n){let r=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function UI(){return{upper:(t,e)=>e==="text"&&re(t)?t.toUpperCase():e==="vnode"&&Be(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&re(t)?t.toLowerCase():e==="vnode"&&Be(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&re(t)?um(t):e==="vnode"&&Be(t)&&"__v_isVNode"in t?um(t.children):t}}let Tv;function jI(t){Tv=t}let Cv;function WI(t){Cv=t}let Sv;function zI(t){Sv=t}let Av=null;const fm=t=>{Av=t},KI=()=>Av;let kv=null;const dm=t=>{kv=t},YI=()=>kv;let hm=0;function qI(t={}){const e=re(t.version)?t.version:BI,n=re(t.locale)?t.locale:fo,r=He(t.fallbackLocale)||_e(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=_e(t.messages)?t.messages:{[n]:{}},s=_e(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=_e(t.numberFormats)?t.numberFormats:{[n]:{}},a=st({},t.modifiers||{},UI()),l=t.pluralRules||{},c=Ye(t.missing)?t.missing:null,u=Se(t.missingWarn)||br(t.missingWarn)?t.missingWarn:!0,d=Se(t.fallbackWarn)||br(t.fallbackWarn)?t.fallbackWarn:!0,f=!!t.fallbackFormat,m=!!t.unresolving,w=Ye(t.postTranslation)?t.postTranslation:null,g=_e(t.processor)?t.processor:null,E=Se(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter,C=Ye(t.messageCompiler)?t.messageCompiler:Tv,S=Ye(t.messageResolver)?t.messageResolver:Cv||TI,v=Ye(t.localeFallbacker)?t.localeFallbacker:Sv||FI,b=Be(t.fallbackContext)?t.fallbackContext:void 0,k=Ye(t.onWarn)?t.onWarn:YM,x=t,N=Be(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,O=Be(x.__numberFormatters)?x.__numberFormatters:new Map,B=Be(x.__meta)?x.__meta:{};hm++;const q={version:e,cid:hm,locale:n,fallbackLocale:r,messages:i,modifiers:a,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:m,postTranslation:w,processor:g,warnHtmlMessage:E,escapeParameter:_,messageCompiler:C,messageResolver:S,localeFallbacker:v,fallbackContext:b,onWarn:k,__meta:B};return q.datetimeFormats=s,q.numberFormats=o,q.__datetimeFormatters=N,q.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&II(q,e,B),q}function vf(t,e,n,r,i){const{missing:s,onWarn:o}=t;if(s!==null){const a=s(t,n,e,i);return re(a)?a:e}else return e}function hs(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const GI=t=>t;let mm=Object.create(null);function XI(t,e={}){{const r=(e.onCacheKey||GI)(t),i=mm[r];if(i)return i;let s=!1;const o=e.onError||XM;e.onError=c=>{s=!0,o(c)};const{code:a}=gI(t,e),l=new Function(`return ${a}`)();return s?l:mm[r]=l}}let xv=Oe.__EXTEND_POINT__;const jl=()=>++xv,Ti={INVALID_ARGUMENT:xv,INVALID_DATE_ARGUMENT:jl(),INVALID_ISO_DATE_ARGUMENT:jl(),__EXTEND_POINT__:jl()};function Ci(t){return Ya(t,null,void 0)}const pm=()=>"",En=t=>Ye(t);function gm(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=t,[l,c]=Hc(...e),u=Se(c.missingWarn)?c.missingWarn:t.missingWarn,d=Se(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=Se(c.escapeParameter)?c.escapeParameter:t.escapeParameter,m=!!c.resolvedMessage,w=re(c.default)||Se(c.default)?Se(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:"",g=n||w!=="",E=re(c.locale)?c.locale:t.locale;f&&QI(c);let[_,C,S]=m?[l,E,a[E]||{}]:Lv(t,l,E,o,d,u),v=_,b=l;if(!m&&!(re(v)||En(v))&&g&&(v=w,b=v),!m&&(!(re(v)||En(v))||!re(C)))return i?qa:l;let k=!1;const x=()=>{k=!0},N=En(v)?v:Nv(t,l,C,v,b,x);if(k)return v;const O=eD(t,C,S,c),B=PI(O),q=JI(t,N,B),Q=r?r(q,l):q;if(__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:re(l)?l:En(v)?v.key:"",locale:C||(En(v)?v.locale:""),format:re(v)?v:En(v)?v.source:"",message:Q};ee.meta=st({},t.__meta,KI()||{}),DI(ee)}return Q}function QI(t){He(t.list)?t.list=t.list.map(e=>re(e)?rm(e):e):Be(t.named)&&Object.keys(t.named).forEach(e=>{re(t.named[e])&&(t.named[e]=rm(t.named[e]))})}function Lv(t,e,n,r,i,s){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=t,u=c(t,r,n);let d={},f,m=null;const w="translate";for(let g=0;gr;return c.locale=n,c.key=e,c}const l=o(r,ZI(t,n,i,r,a,s));return l.locale=n,l.key=e,l.source=r,l}function JI(t,e,n){return e(n)}function Hc(...t){const[e,n,r]=t,i={};if(!re(e)&&!tt(e)&&!En(e))throw Ci(Ti.INVALID_ARGUMENT);const s=tt(e)?String(e):(En(e),e);return tt(n)?i.plural=n:re(n)?i.default=n:_e(n)&&!Ka(n)?i.named=n:He(n)&&(i.list=n),tt(r)?i.plural=r:re(r)?i.default=r:_e(r)&&st(i,r),[s,i]}function ZI(t,e,n,r,i,s){return{warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>WM(e,n,o)}}function eD(t,e,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=t,f={locale:e,modifiers:i,pluralRules:s,messages:m=>{let w=o(n,m);if(w==null&&u){const[,,g]=Lv(u,m,e,a,l,c);w=o(g,m)}if(re(w)){let g=!1;const _=Nv(t,m,e,w,m,()=>{g=!0});return g?pm:_}else return En(w)?w:pm}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),tt(r.plural)&&(f.pluralIndex=r.plural),f}function _m(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=t,{__datetimeFormatters:a}=t,[l,c,u,d]=Bc(...e),f=Se(u.missingWarn)?u.missingWarn:t.missingWarn;Se(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const m=!!u.part,w=re(u.locale)?u.locale:t.locale,g=o(t,i,w);if(!re(l)||l==="")return new Intl.DateTimeFormat(w,d).format(c);let E={},_,C=null;const S="datetime format";for(let k=0;k{Ov.includes(l)?o[l]=n[l]:s[l]=n[l]}),re(r)?s.locale=r:_e(r)&&(o=r),_e(i)&&(o=i),[s.key||"",a,s,o]}function vm(t,e,n){const r=t;for(const i in n){const s=`${e}__${i}`;!r.__datetimeFormatters.has(s)||r.__datetimeFormatters.delete(s)}}function bm(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=t,{__numberFormatters:a}=t,[l,c,u,d]=Uc(...e),f=Se(u.missingWarn)?u.missingWarn:t.missingWarn;Se(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const m=!!u.part,w=re(u.locale)?u.locale:t.locale,g=o(t,i,w);if(!re(l)||l==="")return new Intl.NumberFormat(w,d).format(c);let E={},_,C=null;const S="number format";for(let k=0;k{Pv.includes(l)?o[l]=n[l]:s[l]=n[l]}),re(r)?s.locale=r:_e(r)&&(o=r),_e(i)&&(o=i),[s.key||"",a,s,o]}function ym(t,e,n){const r=t;for(const i in n){const s=`${e}__${i}`;!r.__numberFormatters.has(s)||r.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + */const kr=[];kr[0]={w:[0],i:[3,0],["["]:[4],o:[7]};kr[1]={w:[1],["."]:[2],["["]:[4],o:[7]};kr[2]={w:[2],i:[3,0],[0]:[3,0]};kr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};kr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};kr[5]={["'"]:[4,0],o:8,l:[5,0]};kr[6]={['"']:[4,0],o:8,l:[6,0]};const vI=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bI(t){return vI.test(t)}function yI(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function EI(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function wI(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:bI(e)?yI(e):"*"+e}function TI(t){const e=[];let n=-1,r=0,i=0,s,o,a,l,c,u,d;const f=[];f[0]=()=>{o===void 0?o=a:o+=a},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=wI(o),o===!1))return!1;f[1]()}};function m(){const w=t[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,f[0](),!0}for(;r!==null;)if(n++,s=t[n],!(s==="\\"&&m())){if(l=EI(s),d=kr[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return e}}const am=new Map;function CI(t,e){return Be(t)?t[e]:null}function SI(t,e){if(!Be(t))return null;let n=am.get(e);if(n||(n=TI(e),n&&am.set(e,n)),!n)return null;const r=n.length;let i=t,s=0;for(;st,kI=t=>"",xI="text",LI=t=>t.length===0?"":t.join(""),NI=XM;function lm(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function OI(t){const e=tt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(tt(t.named.count)||tt(t.named.n))?tt(t.named.count)?t.named.count:tt(t.named.n)?t.named.n:e:e}function PI(t,e){e.count||(e.count=t),e.n||(e.n=t)}function MI(t={}){const e=t.locale,n=OI(t),r=Be(t.pluralRules)&&re(e)&&Ye(t.pluralRules[e])?t.pluralRules[e]:lm,i=Be(t.pluralRules)&&re(e)&&Ye(t.pluralRules[e])?lm:void 0,s=_=>_[r(n,_.length,i)],o=t.list||[],a=_=>o[_],l=t.named||{};tt(t.pluralIndex)&&PI(n,l);const c=_=>l[_];function u(_){const C=Ye(t.messages)?t.messages(_):Be(t.messages)?t.messages[_]:!1;return C||(t.parent?t.parent.message(_):kI)}const d=_=>t.modifiers?t.modifiers[_]:AI,f=_e(t.processor)&&Ye(t.processor.normalize)?t.processor.normalize:LI,m=_e(t.processor)&&Ye(t.processor.interpolate)?t.processor.interpolate:NI,w=_e(t.processor)&&re(t.processor.type)?t.processor.type:xI,E={list:a,named:c,plural:s,linked:(_,...C)=>{const[S,v]=C;let b="text",k="";C.length===1?Be(S)?(k=S.modifier||k,b=S.type||b):re(S)&&(k=S||k):C.length===2&&(re(S)&&(k=S||k),re(v)&&(b=v||b));let x=u(_)(E);return b==="vnode"&&He(x)&&k&&(x=x[0]),k?d(k)(x,b):x},message:u,type:w,interpolate:m,normalize:f};return E}let Zs=null;function II(t){Zs=t}function DI(t,e,n){Zs&&Zs.emit(wv.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const $I=RI(wv.FunctionTranslate);function RI(t){return e=>Zs&&Zs.emit(t,e)}const FI={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function VI(t,e,n){return[...new Set([n,...He(e)?e:Be(e)?Object.keys(e):re(e)?[e]:[n]])]}function Tv(t,e,n){const r=re(n)?n:fo,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;He(o);)o=cm(s,o,e);const a=He(e)||!_e(e)?e:e.default?e.default:null;o=re(a)?[a]:a,He(o)&&cm(s,o,!1),i.__localeChainCache.set(r,s)}return s}function cm(t,e,n){let r=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function jI(){return{upper:(t,e)=>e==="text"&&re(t)?t.toUpperCase():e==="vnode"&&Be(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&re(t)?t.toLowerCase():e==="vnode"&&Be(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&re(t)?fm(t):e==="vnode"&&Be(t)&&"__v_isVNode"in t?fm(t.children):t}}let Cv;function WI(t){Cv=t}let Sv;function zI(t){Sv=t}let Av;function KI(t){Av=t}let kv=null;const dm=t=>{kv=t},YI=()=>kv;let xv=null;const hm=t=>{xv=t},qI=()=>xv;let mm=0;function GI(t={}){const e=re(t.version)?t.version:UI,n=re(t.locale)?t.locale:fo,r=He(t.fallbackLocale)||_e(t.fallbackLocale)||re(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=_e(t.messages)?t.messages:{[n]:{}},s=_e(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=_e(t.numberFormats)?t.numberFormats:{[n]:{}},a=st({},t.modifiers||{},jI()),l=t.pluralRules||{},c=Ye(t.missing)?t.missing:null,u=Se(t.missingWarn)||br(t.missingWarn)?t.missingWarn:!0,d=Se(t.fallbackWarn)||br(t.fallbackWarn)?t.fallbackWarn:!0,f=!!t.fallbackFormat,m=!!t.unresolving,w=Ye(t.postTranslation)?t.postTranslation:null,g=_e(t.processor)?t.processor:null,E=Se(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter,C=Ye(t.messageCompiler)?t.messageCompiler:Cv,S=Ye(t.messageResolver)?t.messageResolver:Sv||CI,v=Ye(t.localeFallbacker)?t.localeFallbacker:Av||VI,b=Be(t.fallbackContext)?t.fallbackContext:void 0,k=Ye(t.onWarn)?t.onWarn:qM,x=t,N=Be(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,O=Be(x.__numberFormatters)?x.__numberFormatters:new Map,B=Be(x.__meta)?x.__meta:{};mm++;const q={version:e,cid:mm,locale:n,fallbackLocale:r,messages:i,modifiers:a,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:m,postTranslation:w,processor:g,warnHtmlMessage:E,escapeParameter:_,messageCompiler:C,messageResolver:S,localeFallbacker:v,fallbackContext:b,onWarn:k,__meta:B};return q.datetimeFormats=s,q.numberFormats=o,q.__datetimeFormatters=N,q.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&DI(q,e,B),q}function vf(t,e,n,r,i){const{missing:s,onWarn:o}=t;if(s!==null){const a=s(t,n,e,i);return re(a)?a:e}else return e}function hs(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const XI=t=>t;let pm=Object.create(null);function QI(t,e={}){{const r=(e.onCacheKey||XI)(t),i=pm[r];if(i)return i;let s=!1;const o=e.onError||QM;e.onError=c=>{s=!0,o(c)};const{code:a}=_I(t,e),l=new Function(`return ${a}`)();return s?l:pm[r]=l}}let Lv=Oe.__EXTEND_POINT__;const jl=()=>++Lv,Ti={INVALID_ARGUMENT:Lv,INVALID_DATE_ARGUMENT:jl(),INVALID_ISO_DATE_ARGUMENT:jl(),__EXTEND_POINT__:jl()};function Ci(t){return Ya(t,null,void 0)}const gm=()=>"",En=t=>Ye(t);function _m(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=t,[l,c]=Hc(...e),u=Se(c.missingWarn)?c.missingWarn:t.missingWarn,d=Se(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=Se(c.escapeParameter)?c.escapeParameter:t.escapeParameter,m=!!c.resolvedMessage,w=re(c.default)||Se(c.default)?Se(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:"",g=n||w!=="",E=re(c.locale)?c.locale:t.locale;f&&JI(c);let[_,C,S]=m?[l,E,a[E]||{}]:Nv(t,l,E,o,d,u),v=_,b=l;if(!m&&!(re(v)||En(v))&&g&&(v=w,b=v),!m&&(!(re(v)||En(v))||!re(C)))return i?qa:l;let k=!1;const x=()=>{k=!0},N=En(v)?v:Ov(t,l,C,v,b,x);if(k)return v;const O=tD(t,C,S,c),B=MI(O),q=ZI(t,N,B),Q=r?r(q,l):q;if(__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:re(l)?l:En(v)?v.key:"",locale:C||(En(v)?v.locale:""),format:re(v)?v:En(v)?v.source:"",message:Q};ee.meta=st({},t.__meta,YI()||{}),$I(ee)}return Q}function JI(t){He(t.list)?t.list=t.list.map(e=>re(e)?im(e):e):Be(t.named)&&Object.keys(t.named).forEach(e=>{re(t.named[e])&&(t.named[e]=im(t.named[e]))})}function Nv(t,e,n,r,i,s){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=t,u=c(t,r,n);let d={},f,m=null;const w="translate";for(let g=0;gr;return c.locale=n,c.key=e,c}const l=o(r,eD(t,n,i,r,a,s));return l.locale=n,l.key=e,l.source=r,l}function ZI(t,e,n){return e(n)}function Hc(...t){const[e,n,r]=t,i={};if(!re(e)&&!tt(e)&&!En(e))throw Ci(Ti.INVALID_ARGUMENT);const s=tt(e)?String(e):(En(e),e);return tt(n)?i.plural=n:re(n)?i.default=n:_e(n)&&!Ka(n)?i.named=n:He(n)&&(i.list=n),tt(r)?i.plural=r:re(r)?i.default=r:_e(r)&&st(i,r),[s,i]}function eD(t,e,n,r,i,s){return{warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>zM(e,n,o)}}function tD(t,e,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=t,f={locale:e,modifiers:i,pluralRules:s,messages:m=>{let w=o(n,m);if(w==null&&u){const[,,g]=Nv(u,m,e,a,l,c);w=o(g,m)}if(re(w)){let g=!1;const _=Ov(t,m,e,w,m,()=>{g=!0});return g?gm:_}else return En(w)?w:gm}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),tt(r.plural)&&(f.pluralIndex=r.plural),f}function vm(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=t,{__datetimeFormatters:a}=t,[l,c,u,d]=Bc(...e),f=Se(u.missingWarn)?u.missingWarn:t.missingWarn;Se(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const m=!!u.part,w=re(u.locale)?u.locale:t.locale,g=o(t,i,w);if(!re(l)||l==="")return new Intl.DateTimeFormat(w,d).format(c);let E={},_,C=null;const S="datetime format";for(let k=0;k{Pv.includes(l)?o[l]=n[l]:s[l]=n[l]}),re(r)?s.locale=r:_e(r)&&(o=r),_e(i)&&(o=i),[s.key||"",a,s,o]}function bm(t,e,n){const r=t;for(const i in n){const s=`${e}__${i}`;!r.__datetimeFormatters.has(s)||r.__datetimeFormatters.delete(s)}}function ym(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=t,{__numberFormatters:a}=t,[l,c,u,d]=Uc(...e),f=Se(u.missingWarn)?u.missingWarn:t.missingWarn;Se(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const m=!!u.part,w=re(u.locale)?u.locale:t.locale,g=o(t,i,w);if(!re(l)||l==="")return new Intl.NumberFormat(w,d).format(c);let E={},_,C=null;const S="number format";for(let k=0;k{Mv.includes(l)?o[l]=n[l]:s[l]=n[l]}),re(r)?s.locale=r:_e(r)&&(o=r),_e(i)&&(o=i),[s.key||"",a,s,o]}function Em(t,e,n){const r=t;for(const i in n){const s=`${e}__${i}`;!r.__numberFormatters.has(s)||r.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1);/*! * vue-i18n v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const tD="9.2.2";function nD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Is().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Is().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1)}RI.__EXTEND_POINT__;let Mv=Oe.__EXTEND_POINT__;const Et=()=>++Mv,Ze={UNEXPECTED_RETURN_TYPE:Mv,INVALID_ARGUMENT:Et(),MUST_BE_CALL_SETUP_TOP:Et(),NOT_INSLALLED:Et(),NOT_AVAILABLE_IN_LEGACY_MODE:Et(),REQUIRED_VALUE:Et(),INVALID_VALUE:Et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Et(),NOT_INSLALLED_WITH_PROVIDE:Et(),UNEXPECTED_ERROR:Et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Et(),BRIDGE_SUPPORT_VUE_2_ONLY:Et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Et(),__EXTEND_POINT__:Et()};function nt(t,...e){return Ya(t,null,void 0)}const jc=Ar("__transrateVNode"),Wc=Ar("__datetimeParts"),zc=Ar("__numberParts"),Iv=Ar("__setPluralRules");Ar("__intlifyMeta");const Dv=Ar("__injectWithOption");function Kc(t){if(!Be(t))return t;for(const e in t)if(!!pf(t,e))if(!e.includes("."))Be(t[e])&&Kc(t[e]);else{const n=e.split("."),r=n.length-1;let i=t;for(let s=0;s{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},Ds(c,o[l])):Ds(c,o)}else re(a)&&Ds(JSON.parse(a),o)}),i==null&&s)for(const a in o)pf(o,a)&&Kc(o[a]);return o}const xo=t=>!Be(t)||He(t);function Ds(t,e){if(xo(t)||xo(e))throw nt(Ze.INVALID_VALUE);for(const n in t)pf(t,n)&&(xo(t[n])||xo(e[n])?e[n]=t[n]:Ds(t[n],e[n]))}function $v(t){return t.type}function Rv(t,e,n){let r=Be(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Ga(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{t.mergeLocaleMessage(s,r[s])});{if(Be(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Be(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Em(t){return ie(Pa,null,t,0)}const wm="__INTLIFY_META__";let Tm=0;function Cm(t){return(e,n,r,i)=>t(n,r,Ln()||void 0,i)}const rD=()=>{const t=Ln();let e=null;return t&&(e=$v(t)[wm])?{[wm]:e}:null};function bf(t={},e){const{__root:n}=t,r=n===void 0;let i=Se(t.inheritLocale)?t.inheritLocale:!0;const s=cn(n&&i?n.locale.value:re(t.locale)?t.locale:fo),o=cn(n&&i?n.fallbackLocale.value:re(t.fallbackLocale)||He(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s.value),a=cn(Ga(s.value,t)),l=cn(_e(t.datetimeFormats)?t.datetimeFormats:{[s.value]:{}}),c=cn(_e(t.numberFormats)?t.numberFormats:{[s.value]:{}});let u=n?n.missingWarn:Se(t.missingWarn)||br(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Se(t.fallbackWarn)||br(t.fallbackWarn)?t.fallbackWarn:!0,f=n?n.fallbackRoot:Se(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,w=Ye(t.missing)?t.missing:null,g=Ye(t.missing)?Cm(t.missing):null,E=Ye(t.postTranslation)?t.postTranslation:null,_=n?n.warnHtmlMessage:Se(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const S=n?n.modifiers:_e(t.modifiers)?t.modifiers:{};let v=t.pluralRules||n&&n.pluralRules,b;b=(()=>{r&&dm(null);const A={version:tD,locale:s.value,fallbackLocale:o.value,messages:a.value,modifiers:S,pluralRules:v,missing:g===null?void 0:g,missingWarn:u,fallbackWarn:d,fallbackFormat:m,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:_,escapeParameter:C,messageResolver:t.messageResolver,__meta:{framework:"vue"}};A.datetimeFormats=l.value,A.numberFormats=c.value,A.__datetimeFormatters=_e(b)?b.__datetimeFormatters:void 0,A.__numberFormatters=_e(b)?b.__numberFormatters:void 0;const $=qI(A);return r&&dm($),$})(),hs(b,s.value,o.value);function x(){return[s.value,o.value,a.value,l.value,c.value]}const N=je({get:()=>s.value,set:A=>{s.value=A,b.locale=s.value}}),O=je({get:()=>o.value,set:A=>{o.value=A,b.fallbackLocale=o.value,hs(b,s.value,A)}}),B=je(()=>a.value),q=je(()=>l.value),Q=je(()=>c.value);function ee(){return Ye(E)?E:null}function I(A){E=A,b.postTranslation=A}function M(){return w}function Y(A){A!==null&&(g=Cm(A)),w=A,b.missing=g}const z=(A,$,J,ne,ue,be)=>{x();let Ce;if(__INTLIFY_PROD_DEVTOOLS__)try{fm(rD()),r||(b.fallbackContext=n?YI():void 0),Ce=A(b)}finally{fm(null),r||(b.fallbackContext=void 0)}else Ce=A(b);if(tt(Ce)&&Ce===qa){const[Me,Ve]=$();return n&&f?ne(n):ue(Me)}else{if(be(Ce))return Ce;throw nt(Ze.UNEXPECTED_RETURN_TYPE)}};function te(...A){return z($=>Reflect.apply(gm,null,[$,...A]),()=>Hc(...A),"translate",$=>Reflect.apply($.t,$,[...A]),$=>$,$=>re($))}function se(...A){const[$,J,ne]=A;if(ne&&!Be(ne))throw nt(Ze.INVALID_ARGUMENT);return te($,J,st({resolvedMessage:!0},ne||{}))}function ce(...A){return z($=>Reflect.apply(_m,null,[$,...A]),()=>Bc(...A),"datetime format",$=>Reflect.apply($.d,$,[...A]),()=>cm,$=>re($))}function he(...A){return z($=>Reflect.apply(bm,null,[$,...A]),()=>Uc(...A),"number format",$=>Reflect.apply($.n,$,[...A]),()=>cm,$=>re($))}function fe(A){return A.map($=>re($)||tt($)||Se($)?Em(String($)):$)}const me={normalize:fe,interpolate:A=>A,type:"vnode"};function R(...A){return z($=>{let J;const ne=$;try{ne.processor=me,J=Reflect.apply(gm,null,[ne,...A])}finally{ne.processor=null}return J},()=>Hc(...A),"translate",$=>$[jc](...A),$=>[Em($)],$=>He($))}function X(...A){return z($=>Reflect.apply(bm,null,[$,...A]),()=>Uc(...A),"number format",$=>$[zc](...A),()=>[],$=>re($)||He($))}function U(...A){return z($=>Reflect.apply(_m,null,[$,...A]),()=>Bc(...A),"datetime format",$=>$[Wc](...A),()=>[],$=>re($)||He($))}function Z(A){v=A,b.pluralRules=v}function pe(A,$){const J=re($)?$:s.value,ne=oe(J);return b.messageResolver(ne,A)!==null}function ge(A){let $=null;const J=wv(b,o.value,s.value);for(let ne=0;ne{i&&(s.value=A,b.locale=A,hs(b,s.value,o.value))}),cr(n.fallbackLocale,A=>{i&&(o.value=A,b.fallbackLocale=A,hs(b,s.value,o.value))}));const j={id:Tm,locale:N,fallbackLocale:O,get inheritLocale(){return i},set inheritLocale(A){i=A,A&&n&&(s.value=n.locale.value,o.value=n.fallbackLocale.value,hs(b,s.value,o.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:B,get modifiers(){return S},get pluralRules(){return v||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(A){u=A,b.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(A){d=A,b.fallbackWarn=d},get fallbackRoot(){return f},set fallbackRoot(A){f=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,b.fallbackFormat=m},get warnHtmlMessage(){return _},set warnHtmlMessage(A){_=A,b.warnHtmlMessage=A},get escapeParameter(){return C},set escapeParameter(A){C=A,b.escapeParameter=A},t:te,getLocaleMessage:oe,setLocaleMessage:h,mergeLocaleMessage:p,getPostTranslationHandler:ee,setPostTranslationHandler:I,getMissingHandler:M,setMissingHandler:Y,[Iv]:Z};return j.datetimeFormats=q,j.numberFormats=Q,j.rt=se,j.te=pe,j.tm=le,j.d=ce,j.n=he,j.getDateTimeFormat=T,j.setDateTimeFormat=L,j.mergeDateTimeFormat=D,j.getNumberFormat=H,j.setNumberFormat=G,j.mergeNumberFormat=W,j[Dv]=t.__injectWithOption,j[jc]=R,j[Wc]=U,j[zc]=X,j}function iD(t){const e=re(t.locale)?t.locale:fo,n=re(t.fallbackLocale)||He(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=Ye(t.missing)?t.missing:void 0,i=Se(t.silentTranslationWarn)||br(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=Se(t.silentFallbackWarn)||br(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Se(t.fallbackRoot)?t.fallbackRoot:!0,a=!!t.formatFallbackMessages,l=_e(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,u=Ye(t.postTranslation)?t.postTranslation:void 0,d=re(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,f=!!t.escapeParameterHtml,m=Se(t.sync)?t.sync:!0;let w=t.messages;if(_e(t.sharedMessages)){const b=t.sharedMessages;w=Object.keys(b).reduce((x,N)=>{const O=x[N]||(x[N]={});return st(O,b[N]),x},w||{})}const{__i18n:g,__root:E,__injectWithOption:_}=t,C=t.datetimeFormats,S=t.numberFormats,v=t.flatJson;return{locale:e,fallbackLocale:n,messages:w,flatJson:v,datetimeFormats:C,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:t.messageResolver,inheritLocale:m,__i18n:g,__root:E,__injectWithOption:_}}function Yc(t={},e){{const n=bf(iD(t)),r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return Se(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Se(i)?!i:i},get silentFallbackWarn(){return Se(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Se(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[s,o,a]=i,l={};let c=null,u=null;if(!re(s))throw nt(Ze.INVALID_ARGUMENT);const d=s;return re(o)?l.locale=o:He(o)?c=o:_e(o)&&(u=o),He(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[d,c||u||{},l])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[s,o,a]=i,l={plural:1};let c=null,u=null;if(!re(s))throw nt(Ze.INVALID_ARGUMENT);const d=s;return re(o)?l.locale=o:tt(o)?l.plural=o:He(o)?c=o:_e(o)&&(u=o),re(a)?l.locale=a:He(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[d,c||u||{},l])},te(i,s){return n.te(i,s)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,s){n.setLocaleMessage(i,s)},mergeLocaleMessage(i,s){n.mergeLocaleMessage(i,s)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,s){n.setDateTimeFormat(i,s)},mergeDateTimeFormat(i,s){n.mergeDateTimeFormat(i,s)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,s){n.setNumberFormat(i,s)},mergeNumberFormat(i,s){n.mergeNumberFormat(i,s)},getChoiceIndex(i,s){return-1},__onComponentInstanceCreated(i){const{componentInstanceCreatedListener:s}=t;s&&s(i,r)}};return r}}const yf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function sD({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>r=[...r,...He(i.children)?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},{})}function Fv(t){return xe}const Sm={name:"i18n-t",props:st({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>tt(t)||!isNaN(t)}},yf),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||Ef({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=re(t.plural)?+t.plural:t.plural);const a=sD(e,s),l=i[jc](t.keypath,a,o),c=st({},r),u=re(t.tag)||Be(t.tag)?t.tag:Fv();return Cr(u,c,l)}}};function oD(t){return He(t)&&!re(t[0])}function Vv(t,e,n,r){const{slots:i,attrs:s}=e;return()=>{const o={part:!0};let a={};t.locale&&(o.locale=t.locale),re(t.format)?o.key=t.format:Be(t.format)&&(re(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((f,m)=>n.includes(m)?st({},f,{[m]:t.format[m]}):f,{}));const l=r(t.value,o,a);let c=[o.key];He(l)?c=l.map((f,m)=>{const w=i[f.type],g=w?w({[f.type]:f.value,index:m,parts:l}):[f.value];return oD(g)&&(g[0].key=`${f.type}-${m}`),g}):re(l)&&(c=[l]);const u=st({},s),d=re(t.tag)||Be(t.tag)?t.tag:Fv();return Cr(d,u,c)}}const Am={name:"i18n-n",props:st({value:{type:Number,required:!0},format:{type:[String,Object]}},yf),setup(t,e){const n=t.i18n||Ef({useScope:"parent",__useComponent:!0});return Vv(t,e,Pv,(...r)=>n[zc](...r))}},km={name:"i18n-d",props:st({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yf),setup(t,e){const n=t.i18n||Ef({useScope:"parent",__useComponent:!0});return Vv(t,e,Ov,(...r)=>n[Wc](...r))}};function aD(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function lD(t){const e=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw nt(Ze.UNEXPECTED_ERROR);const u=aD(t,a.$),d=xm(c);return[Reflect.apply(u.t,u,[...Lm(d)]),u]};return{created:(o,a)=>{const[l,c]=e(a);Fc&&t.global===c&&(o.__i18nWatcher=cr(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Fc&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=xm(a);o.textContent=Reflect.apply(l.t,l,[...Lm(c)])}},getSSRProps:o=>{const[a]=e(o);return{textContent:a}}}}function xm(t){if(re(t))return{path:t};if(_e(t)){if(!("path"in t))throw nt(Ze.REQUIRED_VALUE,"path");return t}else throw nt(Ze.INVALID_VALUE)}function Lm(t){const{path:e,locale:n,args:r,choice:i,plural:s}=t,o={},a=r||{};return re(n)&&(o.locale=n),tt(i)&&(o.plural=i),tt(s)&&(o.plural=s),[e,a,o]}function cD(t,e,...n){const r=_e(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Se(r.globalInstall)?r.globalInstall:!0)&&(t.component(i?"i18n":Sm.name,Sm),t.component(Am.name,Am),t.component(km.name,km)),t.directive("t",lD(e))}function uD(t,e,n){return{beforeCreate(){const r=Ln();if(!r)throw nt(Ze.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;i.__i18n&&(s.__i18n=i.__i18n),s.__root=e,this===this.$root?this.$i18n=Nm(t,s):(s.__injectWithOption=!0,this.$i18n=Yc(s))}else i.__i18n?this===this.$root?this.$i18n=Nm(t,i):this.$i18n=Yc({__i18n:i.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;i.__i18nGlobal&&Rv(e,i,i),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){},unmounted(){const r=Ln();if(!r)throw nt(Ze.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Nm(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Iv](e.pluralizationRules||t.pluralizationRules);const n=Ga(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const fD=Ar("global-vue-i18n");function dD(t={},e){const n=__VUE_I18N_LEGACY_API__&&Se(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Se(t.globalInjection)?t.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,s=new Map,[o,a]=hD(t,n),l=Ar("");function c(f){return s.get(f)||null}function u(f,m){s.set(f,m)}function d(f){s.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(m,...w){m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,f),!n&&r&&wD(m,f.global),__VUE_I18N_FULL_INSTALL__&&cD(m,f,...w),__VUE_I18N_LEGACY_API__&&n&&m.mixin(uD(a,a.__composer,f));const g=m.unmount;m.unmount=()=>{f.dispose(),g()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Ef(t={}){const e=Ln();if(e==null)throw nt(Ze.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw nt(Ze.NOT_INSLALLED);const n=mD(e),r=gD(n),i=$v(e),s=pD(t,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw nt(Ze.NOT_AVAILABLE_IN_LEGACY_MODE);return bD(e,s,r,t)}if(s==="global")return Rv(r,t,i),r;if(s==="parent"){let l=_D(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(e);if(a==null){const l=st({},t);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=bf(l),vD(o,e),o.__setInstance(e,a)}return a}function hD(t,e,n){const r=ow();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Yc(t)):r.run(()=>bf(t));if(i==null)throw nt(Ze.UNEXPECTED_ERROR);return[r,i]}}function mD(t){{const e=Un(t.isCE?fD:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw nt(t.isCE?Ze.NOT_INSLALLED_WITH_PROVIDE:Ze.UNEXPECTED_ERROR);return e}}function pD(t,e){return Ka(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function gD(t){return t.mode==="composition"?t.global:t.global.__composer}function _D(t,e,n=!1){let r=null;const i=e.root;let s=e.parent;for(;s!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Dv]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function vD(t,e,n){xu(()=>{},e),Oa(()=>{t.__deleteInstance(e)},e)}function bD(t,e,n,r={}){const i=e==="local",s=Qp(null);if(i&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw nt(Ze.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Se(r.inheritLocale)?r.inheritLocale:!0,a=cn(i&&o?n.locale.value:re(r.locale)?r.locale:fo),l=cn(i&&o?n.fallbackLocale.value:re(r.fallbackLocale)||He(r.fallbackLocale)||_e(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=cn(Ga(a.value,r)),u=cn(_e(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),d=cn(_e(r.numberFormats)?r.numberFormats:{[a.value]:{}}),f=i?n.missingWarn:Se(r.missingWarn)||br(r.missingWarn)?r.missingWarn:!0,m=i?n.fallbackWarn:Se(r.fallbackWarn)||br(r.fallbackWarn)?r.fallbackWarn:!0,w=i?n.fallbackRoot:Se(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,E=Ye(r.missing)?r.missing:null,_=Ye(r.postTranslation)?r.postTranslation:null,C=i?n.warnHtmlMessage:Se(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,v=i?n.modifiers:_e(r.modifiers)?r.modifiers:{},b=r.pluralRules||i&&n.pluralRules;function k(){return[a.value,l.value,c.value,u.value,d.value]}const x=je({get:()=>s.value?s.value.locale.value:a.value,set:p=>{s.value&&(s.value.locale.value=p),a.value=p}}),N=je({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:p=>{s.value&&(s.value.fallbackLocale.value=p),l.value=p}}),O=je(()=>s.value?s.value.messages.value:c.value),B=je(()=>u.value),q=je(()=>d.value);function Q(){return s.value?s.value.getPostTranslationHandler():_}function ee(p){s.value&&s.value.setPostTranslationHandler(p)}function I(){return s.value?s.value.getMissingHandler():E}function M(p){s.value&&s.value.setMissingHandler(p)}function Y(p){return k(),p()}function z(...p){return s.value?Y(()=>Reflect.apply(s.value.t,null,[...p])):Y(()=>"")}function te(...p){return s.value?Reflect.apply(s.value.rt,null,[...p]):""}function se(...p){return s.value?Y(()=>Reflect.apply(s.value.d,null,[...p])):Y(()=>"")}function ce(...p){return s.value?Y(()=>Reflect.apply(s.value.n,null,[...p])):Y(()=>"")}function he(p){return s.value?s.value.tm(p):{}}function fe(p,T){return s.value?s.value.te(p,T):!1}function Ne(p){return s.value?s.value.getLocaleMessage(p):{}}function me(p,T){s.value&&(s.value.setLocaleMessage(p,T),c.value[p]=T)}function R(p,T){s.value&&s.value.mergeLocaleMessage(p,T)}function X(p){return s.value?s.value.getDateTimeFormat(p):{}}function U(p,T){s.value&&(s.value.setDateTimeFormat(p,T),u.value[p]=T)}function Z(p,T){s.value&&s.value.mergeDateTimeFormat(p,T)}function pe(p){return s.value?s.value.getNumberFormat(p):{}}function ge(p,T){s.value&&(s.value.setNumberFormat(p,T),d.value[p]=T)}function le(p,T){s.value&&s.value.mergeNumberFormat(p,T)}const oe={get id(){return s.value?s.value.id:-1},locale:x,fallbackLocale:N,messages:O,datetimeFormats:B,numberFormats:q,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(p){s.value&&(s.value.inheritLocale=p)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:v},get pluralRules(){return s.value?s.value.pluralRules:b},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:f},set missingWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackWarn(){return s.value?s.value.fallbackWarn:m},set fallbackWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackRoot(){return s.value?s.value.fallbackRoot:w},set fallbackRoot(p){s.value&&(s.value.fallbackRoot=p)},get fallbackFormat(){return s.value?s.value.fallbackFormat:g},set fallbackFormat(p){s.value&&(s.value.fallbackFormat=p)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:C},set warnHtmlMessage(p){s.value&&(s.value.warnHtmlMessage=p)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(p){s.value&&(s.value.escapeParameter=p)},t:z,getPostTranslationHandler:Q,setPostTranslationHandler:ee,getMissingHandler:I,setMissingHandler:M,rt:te,d:se,n:ce,tm:he,te:fe,getLocaleMessage:Ne,setLocaleMessage:me,mergeLocaleMessage:R,getDateTimeFormat:X,setDateTimeFormat:U,mergeDateTimeFormat:Z,getNumberFormat:pe,setNumberFormat:ge,mergeNumberFormat:le};function h(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(c.value).forEach(T=>{p.mergeLocaleMessage(T,c.value[T])}),Object.keys(u.value).forEach(T=>{p.mergeDateTimeFormat(T,u.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=S,p.fallbackFormat=g,p.fallbackRoot=w,p.fallbackWarn=m,p.missingWarn=f,p.warnHtmlMessage=C}return hg(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw nt(Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=s.value=t.proxy.$i18n.__composer;e==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,c.value=p.messages.value,u.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&h(p)}),oe}const yD=["locale","fallbackLocale","availableLocales"],ED=["t","rt","d","n","tm"];function wD(t,e){const n=Object.create(null);yD.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i)throw nt(Ze.UNEXPECTED_ERROR);const s=ct(i.value)?{get(){return i.value.value},set(o){i.value.value=o}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,s)}),t.config.globalProperties.$i18n=n,ED.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i||!i.value)throw nt(Ze.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,i)})}jI(XI);WI(CI);zI(wv);nD();if(__INTLIFY_PROD_DEVTOOLS__){const t=Is();t.__INTLIFY__=!0,MI(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const TD={header:{sessions:"Ladevorg\xE4nge",docs:"Doku",blog:"Blog",github:"GitHub",login:"Fahrzeug Logins",about:"\xDCber evcc",theme:{auto:"Design: System",light:"Design: Hell",dark:"Design: Dunkel"}},footer:{version:{availableShort:"Update",availableLong:"Update verf\xFCgbar",modalTitle:"Update verf\xFCgbar",modalUpdateStarted:"Nach der Aktualisierung wird evcc neu gestartet.",modalInstalledVersion:"Aktuell installierte Version",modalNoReleaseNotes:"Keine Releasenotes verf\xFCgbar. Mehr Informationen zur neuen Version findest du hier:",modalCancel:"Abbrechen",modalUpdate:"Aktualisieren",modalUpdateNow:"Jetzt aktualisieren",modalDownload:"Download",modalUpdateStatusStart:"Aktualisierung gestartet: ",modalUpdateStatusFailed:"Aktualisierung nicht m\xF6glich: "},savings:{tabTitle:"Meine Daten",footerShort:"{percent}% Sonne",footerLong:"{percent}% Sonnenenergie",modalTitle:"Auswertung Ladeenergie",since:"seit {since}",percentTitle:"Sonnenenergie",percentSelf:"{self} kWh Sonne",percentGrid:"{grid} kWh Netz",priceTitle:"Energiepreis",priceFeedIn:"{feedInPrice} Einspeisung",priceGrid:"{gridPrice} Netz",savingsTitle:"Ersparnis",savingsComparedToGrid:"gegen\xFCber Netzbezug",savingsTotalEnergy:"{total} kWh geladen"},community:{tabTitle:"Live-Community",power:"Ladeleistung",powerSub1:"{activeClients} von {totalClients} Nutzern",powerSub2:"laden mit evcc",greenShare:"Sonnenanteil",greenShareSub1:"der Leistung kommt",greenShareSub2:"aus PV & Hausakku",greenEnergy:"Sonnenenergie",greenEnergySub1:"seit Oktober 2022",greenEnergySub2:"\xFCber evcc geladen"},telemetry:{optIn:"Ich m\xF6chte meine Daten auch beisteuern.",optInMoreDetails:"Mehr Details gibts {0}.",optInMoreDetailsLink:"hier",optInSponsorship:"Sponsoring erforderlich."},sponsor:{titleSponsor:"Du bist Unterst\xFCtzer",titleNoSponsor:"Unterst\xFCtze uns",thanks:"Danke f\xFCr dein Sponsoring, {sponsor}! Das hilft uns bei der Weiterentwicklung.",confetti:"Lust auf Konfetti?",supportUs:"Unsere Mission: Sonne tanken zum Standard machen. Hilf uns und unterst\xFCtze evcc finanziell.",sticker:"...oder evcc Sticker?",confettiPromise:"Es gibt auch Sticker und digitales Konfetti ;)",becomeSponsor:"Sponsor werden"}},notifications:{modalTitle:"Meldungen",dismissAll:"Meldungen entfernen"},main:{vehicles:"Parkplatz",energyflow:{noEnergy:"Kein Messwerte",homePower:"Verbrauch",pvProduction:"Erzeugung",loadpoints:"Ladepunkt | Ladepunkt | {count} Ladepunkte",battery:"Batterie",batteryCharge:"Batterie laden",batteryDischarge:"Batterie entladen",gridImport:"Netzbezug",selfConsumption:"Eigenverbrauch",pvExport:"Einspeisung"},mode:{off:"Aus",minpv:"Min+PV",pv:"PV",now:"Schnell"},loadpoint:{fallbackName:"Ladepunkt",remoteDisabledSoft:"{source}: Adaptives PV-Laden deaktiviert",remoteDisabledHard:"{source}: Deaktiviert",power:"Leistung",charged:"Geladen",duration:"Dauer",remaining:"Restzeit"},loadpointSettings:{title:'Einstellungen "{0}"',vehicle:"Fahrzeug",currents:"Ladestrom",default:"default",disclaimerHint:"Hinweis:",disclaimerText:"\xC4nderungen sind aktuell noch nicht persistent und werden nach einem Serverneustart wieder zur\xFCckgesetzt.",minSoC:{label:"Mindestladestand",description:'Reichweite f\xFCr Notf\xE4lle. Fahrzeug wird im PV-Modus "schnell" auf {0}% geladen. Danach weiter mit PV-\xDCberschuss.'},phasesConfigured:{label:"Phasen",phases_0:"automatischer Wechsel",phases_1:"1-phasig",phases_1_hint:"({min} bis {max})",phases_3:"3-phasig",phases_3_hint:"({min} bis {max})"},maxCurrent:{label:"Max. Ladestrom"},minCurrent:{label:"Min. Ladestrom"}},vehicle:{fallbackName:"Fahrzeug",vehicleSoC:"Ladestand",targetSoC:"Ladeziel",none:"Kein Fahrzeug",unknown:"Gastfahrzeug",changeVehicle:"Fahrzeug \xE4ndern",detectionActive:"Fahrzeugerkennung l\xE4uft ..."},vehicleSoC:{disconnected:"getrennt",charging:"l\xE4dt",ready:"bereit",connected:"verbunden",vehicleTarget:"Fahrzeuglimit: {soc}%"},vehicleStatus:{minCharge:"Mindestladung bis {soc}%.",waitForVehicle:"Ladebereit. Warte auf Fahrzeug.",vehicleTargetReached:"Fahrzeuglimit {soc}% erreicht.",charging:"Ladevorgang aktiv.",targetChargePlanned:"Zielladen geplant. Ladung startet {time} Uhr.",targetChargeWaitForVehicle:"Zielladen bereit. Warte auf Fahrzeug.",targetChargeActive:"Zielladen aktiv.",connected:"Verbunden.",pvDisable:"Zu wenig \xDCberschuss. Pausiere in {remaining}.",pvEnable:"\xDCberschuss verf\xFCgbar. Starte in {remaining}.",scale1p:"Reduziere auf einphasig in {remaining}.",scale3p:"Erh\xF6he auf dreiphasig in {remaining}.",disconnected:"Nicht verbunden.",unknown:""},provider:{login:"anmelden",logout:"abmelden"},targetCharge:{title:"Zielzeit",inactiveLabel:"Zielzeit",activeLabel:"{time}",modalTitle:"Zielzeit festlegen",setTargetTime:"keine",description:"Wann soll das Fahrzeug auf {targetSoC}% geladen sein?",today:"heute",tomorrow:"morgen",targetIsInThePast:"Zeitpunkt liegt in der Vergangenheit.",remove:"Entfernen",activate:"Aktivieren",experimentalLabel:"Experimentell",experimentalText:"Dieses Feature funktioniert, ist aber noch nicht perfekt. Bitte melde unerwartetes Verhalten in unseren"},targetEnergy:{label:"Ladeziel",noLimit:"keins"}},startupError:{title:"Fehler beim Starten",description:"Bitte \xFCberpr\xFCfe deine Konfigurationsdatei. Sollte dir die Fehlermeldung nicht weiterhelfen, suche in unseren {0} nach einer L\xF6sung.",discussions:"GitHub Discussions",hint:"Hinweis: Ein weiterer Grund, warum du diese Meldung siehst, k\xF6nnte ein fehlerhaftes Ger\xE4t (Wechselrichter, Z\xE4hler, ...) sein. \xDCberpr\xFCfe deine Netzwerkverbindungen.",configuration:"Konfiguration",configFile:"Verwendete Konfigurationsdatei:",lineError:"In {0} wurde ein Fehler gefunden.",lineErrorLink:"Zeile {0}",fixAndRestart:"Behebe das Problem und starte den Server neu.",restartButton:"Neu starten"},sessions:{title:"Ladevorg\xE4nge",downloadCsv:"Als CSV herunterladen",loadpoint:"Ladepunkt",vehicle:"Fahrzeug",odometer:"Kilometerstand",energy:"Geladen",date:"Zeitraum",csv:{loadpoint:"Ladepunkt",vehicle:"Fahrzeug",identifier:"Kennung",chargedenergy:"Energie (kWh)",meterstart:"Anfangsz\xE4hlerstand (kWh)",meterstop:"Endz\xE4hlerstand (kWh)",created:"Startzeit",finished:"Endzeit"}},offline:{message:"Keine Verbindung zum Server.",reload:"Reload?"}},CD={header:{sessions:"Charging sessions",docs:"Documentation",blog:"Blog",github:"GitHub",login:"Vehicle logins",about:"About evcc",theme:{auto:"Design: system",light:"Design: light",dark:"Design: dark"}},footer:{version:{availableShort:"update",availableLong:"update available",modalTitle:"Update available",modalUpdateStarted:"Evcc will restart after the update..",modalInstalledVersion:"Currently installed version",modalNoReleaseNotes:"No release notes available. More information about the new version can be found here:",modalCancel:"Cancel",modalUpdate:"Update",modalUpdateNow:"Update now",modalDownload:"Download",modalUpdateStatusStart:"Update started: ",modalUpdateStatusFailed:"Update failed: "},savings:{tabTitle:"My data",footerShort:"{percent}% solar",footerLong:"{percent}% solar energy",modalTitle:"Charge Energy Overview",since:"since {since}",percentTitle:"Solar Energy",percentSelf:"{self} kWh solar",percentGrid:"{grid} kWh grid",priceTitle:"Energy Price",priceFeedIn:"{feedInPrice} feed-in",priceGrid:"{gridPrice} grid",savingsTitle:"Savings",savingsComparedToGrid:"compared to grid",savingsTotalEnergy:"{total} kWh charged"},community:{tabTitle:"Live community",power:"Charging power",powerSub1:"{activeClients} of {totalClients} participants",powerSub2:"are charging right now",greenShare:"Solar share",greenShareSub1:"power is covered by",greenShareSub2:"PV & battery storage",greenEnergy:"Solar energy",greenEnergySub1:"charged with evcc",greenEnergySub2:"since October 2022"},telemetry:{optIn:"I want to contribute my data as well.",optInMoreDetails:"More details are available {0}.",optInMoreDetailsLink:"here",optInSponsorship:"Sponsoring required."},sponsor:{titleSponsor:"You are a supporter",titleNoSponsor:"Support us",thanks:"Thanks for your support, {sponsor}! It helps us with the further development.",confetti:"Ready for confetti?",supportUs:"Our mission: Make solar charging the standard. Help us and support evcc financially.",sticker:"...or evcc stickers?",confettiPromise:"There will be stickers and digital confetti ;)",becomeSponsor:"Become a Sponsor"}},notifications:{modalTitle:"Notifications",dismissAll:"Dismiss all"},main:{vehicles:"Parking",energyflow:{noEnergy:"No meter data",homePower:"Consumption",pvProduction:"Production",loadpoints:"Loadpoint | Loadpoint | {count} Loadpoints",battery:"Battery",batteryCharge:"Battery charge",batteryDischarge:"Battery discharge",gridImport:"Grid import",selfConsumption:"Self consumption",pvExport:"Grid export"},mode:{off:"Off",minpv:"Min+PV",pv:"PV",now:"Fast"},loadpoint:{fallbackName:"Loadpoint",remoteDisabledSoft:"{source}: adaptive PV charging disabled",remoteDisabledHard:"{source}: disabled",power:"Power",charged:"Charged",duration:"Duration",remaining:"Remaining"},loadpointSettings:{title:'Settings "{0}"',vehicle:"Vehicle",currents:"Charging",default:"default",disclaimerHint:"Note:",disclaimerText:"Changes are not persistent yet. They will be reset after server restart.",minSoC:{label:"Minimal SoC",description:'Range for emergencies. Vehicle gets "fast" charged to {0}% in PV mode. Then continues with PV surplus only.'},phasesConfigured:{label:"Phases",phases_0:"automatic switching",phases_1:"1 phase",phases_1_hint:"({min} to {max})",phases_3:"3 phases",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Current"},minCurrent:{label:"Min. Current"}},vehicle:{fallbackName:"Vehicle",vehicleSoC:"SoC",targetSoC:"Limit",none:"No vehicle",unknown:"Guest vehicle",changeVehicle:"Change Vehicle",detectionActive:"Detecting vehicle ..."},vehicleSoC:{disconnected:"disconnected",charging:"charging",ready:"ready",connected:"connected",vehicleTarget:"Vehicle limit: {soc}%"},vehicleStatus:{minCharge:"minimum charging to {soc}%.",waitForVehicle:"Ready. Waiting for vehicle.",vehicleTargetReached:"Vehicle limit {soc}% reached.",charging:"Charging.",targetChargePlanned:"Target charge planned. Starting {time}.",targetChargeWaitForVehicle:"Target charge ready. Wait for vehicle.",targetChargeActive:"Target charge active.",connected:"Connected.",pvDisable:"Not enough surplus. Pausing in {remaining}.",pvEnable:"Surplus available. Starting in {remaining}.",scale1p:"Reduce to single phase in {remaining}.",scale3p:"Increase to three phase in {remaining}.",disconnected:"Disconnected.",unknown:""},provider:{login:"login",logout:"logout"},targetCharge:{title:"Target Time",inactiveLabel:"Target time",activeLabel:"{time}",modalTitle:"Set Target Time",setTargetTime:"none",description:"When should the vehicle be charged to {targetSoC}%?",today:"today",tomorrow:"tomorrow",targetIsInThePast:"The chosen time is in the past.",remove:"Remove",activate:"Activate",experimentalLabel:"Experimental",experimentalText:"This feature works but isn't perfect yet. Please report unexpected behaviour in our"},targetEnergy:{label:"Limit",noLimit:"none"}},startupError:{title:"Startup Error",description:"Please check your configuration file. If the error message does not help you, have a look at our {0}.",discussions:"GitHub Discussions",hint:"Note: Another reason why you see this message could be a faulty device (inverter, meter, ...). Check your network connections.",configuration:"Config",configFile:"Configuration file used:",lineError:"We found an error in {0}.",lineErrorLink:"line {0}",fixAndRestart:"Fix the problem and restart the server.",restartButton:"Restart"},sessions:{title:"Charging sessions",downloadCsv:"Download as CSV",loadpoint:"Loadpoint",vehicle:"Vehicle",energy:"Charged",date:"Period",csv:{loadpoint:"Loadpoint",vehicle:"Vehicle",odometer:"Mileage (km)",identifier:"Identifier",chargedenergy:"Energy (kWh)",meterstart:"Meter Start (kWh)",meterstop:"Meter Stop (kWh)",created:"Created",finished:"Finished"}},offline:{message:"No connection to server.",reload:"Reload?"}},SD={header:{docs:"Documentazione",blog:"Blog",github:"GitHub",login:"Iscrizioni"},footer:{version:{availableShort:"aggiornamento",availableLong:"aggiornamento disponibile",modalTitle:"Aggiornamento disponibile",modalUpdateStarted:"Evcc ripartir\xE0 dopo l'aggiornamento..",modalInstalledVersion:"Versione correntemente installata",modalNoReleaseNotes:"Non ci sono note di rilascio disponibili. Altre informazioni circa la nuova versione si trovano qui:",modalCancel:"Cancella",modalUpdate:"Aggiorna",modalUpdateNow:"Aggiorna ora",modalDownload:"Download",modalUpdateStatusStart:"Aggiornamento iniziato: ",modalUpdateStatusFailed:"Aggiornamento fallito: "}},notifications:{modalTitle:"Notifiche",dismissAll:"Rimuovi tutte"},main:{energyflow:{noEnergy:"No Energyflow",homePower:"Consumption",pvProduction:"Produzione",battery:"Batteria",batteryCharge:"Battery charge",batteryDischarge:"Battery discharge",gridImport:"Grid import",selfConsumption:"Self consumption",pvExport:"Grid export"},mode:{off:"Stop",minpv:"Min+FV",pv:"FV",now:"Ora"},loadpoint:{fallbackName:"Punto di carica",remoteDisabledSoft:"{source}: Ricarica FV adattiva disabilitata",remoteDisabledHard:"{source}: Disabilitato"},vehicle:{fallbackName:"Veicolo"},vehicleSoC:{disconnected:"disconesso",charging:"carica",ready:"pronto",connected:"collegato"}}},AD={header:{sessions:"\u012Ekrovimo sesijos ",docs:"Dokumentacija (Vokie\u010Di\u0173 k.)",blog:"Tinklara\u0161tis",github:"GitHub",login:" Automobili\u0173 prisijungimai",about:"Apie EVCC",theme:{auto:"Dizainas: Sistemos",light:"Dizainas: \u0160viesus",dark:"Dizainas: Tamsus"}},footer:{version:{availableShort:"naujinimas",availableLong:"yra naujesn\u0117 versija",modalTitle:"Yra naujesn\u0117 versija",modalUpdateStarted:"Pasibaigus naujinimui EVCC startuos i\u0161 naujo..",modalInstalledVersion:"Dabartin\u0117 versija",modalNoReleaseNotes:"Naujinimo pastab\u0173 n\u0117ra. Daugiau informacijos apie nauj\u0105 versij\u0105 galite rasti rasite \u010Dia:",modalCancel:"At\u0161aukti",modalUpdate:"Naujinti",modalUpdateNow:"Naujinti dabar",modalDownload:"Atsisi\u0173sti",modalUpdateStatusStart:"Naujinimas prasid\u0117jo: ",modalUpdateStatusFailed:"Naujinimas nepavyko: "},savings:{tabTitle:"Mano duomenys",footerShort:"{percent}% saul\u0117s",footerLong:"{percent}% saul\u0117s energija",modalTitle:"\u012Ekrovimo energijos ap\u017Evalga",since:"nuo {since}",percentTitle:"Saul\u0117s energija",percentSelf:"{self} kWh saul\u0117s",percentGrid:"{grid} kWh tinklo",priceTitle:"Energijos kaina",priceFeedIn:"{feedInPrice} eksporto",priceGrid:"{gridPrice} tinklo",savingsTitle:"Sutaupyta",savingsComparedToGrid:"palyginus su tinklu",savingsTotalEnergy:"{total} kWh \u012Fkrauta"},community:{tabTitle:"Bendruomen\u0117s duomenys",power:"\u012Ekrovimo galia",powerSub1:"{activeClients} i\u0161 {totalClients} dalyvi\u0173",powerSub2:"\u012Fkrauna \u0161iuo metu",greenShare:"Saul\u0117s dalis",greenShareSub1:"galios tieka Saul\u0117 ir",greenShareSub2:"energijos kaupikliai",greenEnergy:"Saul\u0117s energija",greenEnergySub1:"\u012Fkrauta su evcc",greenEnergySub2:"nuo 2022 Spalio"},telemetry:{optIn:"Noriu prisid\u0117ti savo duomenimis.",optInMoreDetails:"Daugiau informacijos rasite {0}.",optInMoreDetailsLink:"\u010Dia",optInSponsorship:"(Gali tik r\u0117m\u0117jai.)"},sponsor:{titleSponsor:"Esate r\u0117m\u0117jais",titleNoSponsor:"Paremkite mus",thanks:"A\u010Di\u016B, kad mus remiate {sponsor}! Taip prisidedate prie projekto vystymo.",confetti:"Norite konfeti?",supportUs:"M\u016Bs\u0173 misija: Siekiame, kad \u012Fkrovimas saul\u0117s energija tapt\u0173 standartu. Pad\u0117kite mums ir paremkite evcc finansi\u0161kai.",sticker:"... ar evcc lipduk\u0173?",confettiPromise:"Bus lipduk\u0173 ir skaitmenini\u0173 konfeti ;)",becomeSponsor:"Tapkite r\u0117m\u0117ju"}},notifications:{modalTitle:"Prane\u0161imai",dismissAll:"I\u0161valyti visus"},main:{vehicles:"Autoparkas",energyflow:{noEnergy:"N\u0117ra skaitikli\u0173 duomen\u0173",homePower:"Namo suvartojimas",pvProduction:"Gamyba",loadpoints:"\u012Ekroviklis | \u012Ekroviklis | {count} \u012Ekrovikliai",battery:"Baterija",batteryCharge:"Baterijos \u012Fkrovimas",batteryDischarge:"Baterijos i\u0161krovimas",gridImport:"Tinklo importas",selfConsumption:"Sunaudojama i\u0161kart",pvExport:"Tinklo eksportas"},mode:{off:"Stop",minpv:"Min+S",pv:"Saul\u0117s",now:"Greitas"},loadpoint:{fallbackName:"\u012Ekroviklis",remoteDisabledSoft:"{source}: adaptyvus Saul\u0117s \u012Fkrovimas i\u0161jungtas",remoteDisabledHard:"{source}: i\u0161jungtas",power:"Galia",charged:"\u012Ekrauta",duration:"Trukm\u0117",remaining:"Liko"},loadpointSettings:{title:'Nustatymai "{0}"',vehicle:"Automobilis",currents:"\u012Ekraunama",default:"standarti\u0161kai",disclaimerHint:"Pastaba:",disclaimerText:"\u0160ie pakeitimai nei\u0161lieka ir po EVCC serverio restarto pradings.",minSoC:{label:"Minimali \u012Fkrova",description:'Minimali \u012Fkrova. Automobilis \u012Fkraunamas "Greitai" iki {0}% nustatyme "Saul\u0117" . Toliau \u012Fkraunamas tik saul\u0117s energijos pertekliumi.'},phasesConfigured:{label:"Faz\u0117s",phases_0:"automatinis perjungimas",phases_1:"1 faz\u0117",phases_1_hint:"({min} to {max})",phases_3:"3 faz\u0117s",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Srov\u0117"},minCurrent:{label:"Min. Srov\u0117"}},vehicle:{fallbackName:"Automobilis",vehicleSoC:"\u012Ekrova",targetSoC:"Limitas",none:"N\u0117ra automobilio",unknown:"Ne\u017Einomas automobilis",changeVehicle:"Pakeisti automobil\u012F",detectionActive:"Bandome atpa\u017Einti automobil\u012F ..."},vehicleSoC:{disconnected:"neprijungtas",charging:"vyksta \u012Fkrovimas",ready:"leid\u017Eiama \u012Fkrauti",connected:"automobilis prijungtas",vehicleTarget:"Automobilio limitas: {soc}%"},vehicleStatus:{minCharge:"minimalus \u012Fkrovimas iki {soc}%.",waitForVehicle:"\u012Ekrovimas leid\u017Eiamas. Laukiama automobilio signalo.",vehicleTargetReached:"Automobilio limitas {soc}% pasiektas.",charging:"\u012Ekraunama.",targetChargePlanned:"Suplanuotas \u012Fkrovimas, prasid\u0117s {time}.",targetChargeWaitForVehicle:"Suplanuotas \u012Fkrovimas leid\u017Eiamas. Laukiama automobilio signalo.",targetChargeActive:"Suplanuotas \u012Fkrovimas aktyvuotas.",connected:"Prijungtas.",pvDisable:"Tr\u016Bksta saul\u0117s, \u012Fkrovimo pauz\u0117 u\u017E {remaining}.",pvEnable:"Saul\u0117s u\u017Etenka, \u012Fkrovimas prasid\u0117s u\u017E {remaining}.",scale1p:"Suma\u017Einti \u012F vienfaz\u012F \u012Fkrovim\u0105 u\u017E {remaining}.",scale3p:"Padidinti \u012F trifaz\u012F \u012Fkrovim\u0105 u\u017E {remaining}.",disconnected:"Neprijungtas.",unknown:""},provider:{login:"prisijungti",logout:"atsijungti"},targetCharge:{title:"\u012Ekrauti iki",inactiveLabel:"\u012Ekrauti iki",activeLabel:"{time}",modalTitle:"Nustatyti \u012Fkrovimo pabaigos laik\u0105",setTargetTime:"nenustatytas",description:"Kada automobilis tur\u0117t\u0173 b\u016Bti \u012Fkrautas iki {targetSoC}%?",today:"\u0161iandien",tomorrow:"rytoj",targetIsInThePast:"Pasirinktas laikas yra praeityje.",remove:"Panaikinti",activate:"Aktyvuoti",experimentalLabel:"Eksperimentinis",experimentalText:"\u0160i funkcija veikia, bet dar n\u0117ra tobula. Apie netik\u0117t\u0105 elges\u012F prane\u0161kite m\u016Bs\u0173"},targetEnergy:{label:"Limitas",noLimit:"n\u0117ra"}},startupError:{title:"Klaida startuojant",description:"Patikrinkite konfig\u016Bracijos fail\u0105. Jei klaidos \u017Einut\u0117 jums nepad\u0117jo, atsakym\u0173 ie\u0161kokite m\u016Bs\u0173 {0}.",discussions:"GitHub Diskusijose",hint:"Pastaba: Gali b\u016Bti, kad prane\u0161im\u0105 apie klaid\u0105 matote d\u0117l neteisingai veikian\u010Dio \u012Frenginio (inverterio, skaitiklio, ...). Patikrinkite tiklo jungtis.",configuration:"Konfig\u016Bracija",configFile:"Naudojamas konfiguracijos failas:",lineError:"Radome klaid\u0105 \u010Dia {0}.",lineErrorLink:"eilut\u0117 {0}",fixAndRestart:"I\u0161taisykite klaid\u0105 ir restartuokite server\u012F.",restartButton:"Restartuoti"},sessions:{title:"\u012Ekrovimo sesijos",downloadCsv:"Parsisi\u0173sti CSV fail\u0105",loadpoint:"\u012Ekroviklis",vehicle:"Automobilis",energy:"\u012Ekrauta",date:"Laikotarpis",csv:{loadpoint:"\u012Ekroviklis",vehicle:"Automobilis",identifier:"Identifikatorius",chargedenergy:"Energija (kWh)",meterstart:"Skaitiklis prad\u017Eioje (kWh)",meterstop:"Skaitiklis pabaigoje (kWh)",created:"Prad\u0117ta",finished:"Pabaigta"}},offline:{message:"N\u0117ra ry\u0161io su serveriu.",reload:"Perkrauti?"}},kD="preferred_locale";function xD(){const t=navigator.languages!==void 0?navigator.languages[0]:navigator.language;if(!!t)return t.trim().split(/-|_/)[0]}const LD=dD({locale:window.localStorage[kD]||xD(),fallbackLocale:"en",messages:{de:TD,en:CD,it:SD,lt:AD}}),ND={install:t=>{t.config.globalProperties.$hiddenFeatures=window.localStorage.hidden_features==="true"}};KE.polyfill();const si=d2({data(){return{notifications:[],offline:!1}},watch:{offline:function(t){console.log(`we are ${t?"offline":"online"}`)}},methods:{raise:function(t){console[t.type](t);const e=new Date,n=this.notifications[0];n&&n.message===t.message?(n.count++,n.time=e):this.notifications=[{...t,count:1,time:e},...this.notifications]},clear:function(){this.notifications=[]},error:function(t){t.type="error",this.raise(t)},setOnline:function(){this.offline=!1},setOffline:function(){this.offline=!0},warn:function(t){t.type="warn",this.raise(t)}},render:function(){return Cr(M2,{notifications:this.notifications,offline:this.offline})}});si.use(LD);si.use(UM);si.use(A2());si.use(L2);si.use(ND);si.use(D_);window.app=si.mount("#app");vk()});export default OD(); + */const nD="9.2.2";function rD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Is().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Is().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1)}FI.__EXTEND_POINT__;let Iv=Oe.__EXTEND_POINT__;const Et=()=>++Iv,Ze={UNEXPECTED_RETURN_TYPE:Iv,INVALID_ARGUMENT:Et(),MUST_BE_CALL_SETUP_TOP:Et(),NOT_INSLALLED:Et(),NOT_AVAILABLE_IN_LEGACY_MODE:Et(),REQUIRED_VALUE:Et(),INVALID_VALUE:Et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Et(),NOT_INSLALLED_WITH_PROVIDE:Et(),UNEXPECTED_ERROR:Et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Et(),BRIDGE_SUPPORT_VUE_2_ONLY:Et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Et(),__EXTEND_POINT__:Et()};function nt(t,...e){return Ya(t,null,void 0)}const jc=Ar("__transrateVNode"),Wc=Ar("__datetimeParts"),zc=Ar("__numberParts"),Dv=Ar("__setPluralRules");Ar("__intlifyMeta");const $v=Ar("__injectWithOption");function Kc(t){if(!Be(t))return t;for(const e in t)if(!!pf(t,e))if(!e.includes("."))Be(t[e])&&Kc(t[e]);else{const n=e.split("."),r=n.length-1;let i=t;for(let s=0;s{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},Ds(c,o[l])):Ds(c,o)}else re(a)&&Ds(JSON.parse(a),o)}),i==null&&s)for(const a in o)pf(o,a)&&Kc(o[a]);return o}const xo=t=>!Be(t)||He(t);function Ds(t,e){if(xo(t)||xo(e))throw nt(Ze.INVALID_VALUE);for(const n in t)pf(t,n)&&(xo(t[n])||xo(e[n])?e[n]=t[n]:Ds(t[n],e[n]))}function Rv(t){return t.type}function Fv(t,e,n){let r=Be(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Ga(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{t.mergeLocaleMessage(s,r[s])});{if(Be(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Be(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function wm(t){return ie(Pa,null,t,0)}const Tm="__INTLIFY_META__";let Cm=0;function Sm(t){return(e,n,r,i)=>t(n,r,Ln()||void 0,i)}const iD=()=>{const t=Ln();let e=null;return t&&(e=Rv(t)[Tm])?{[Tm]:e}:null};function bf(t={},e){const{__root:n}=t,r=n===void 0;let i=Se(t.inheritLocale)?t.inheritLocale:!0;const s=cn(n&&i?n.locale.value:re(t.locale)?t.locale:fo),o=cn(n&&i?n.fallbackLocale.value:re(t.fallbackLocale)||He(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s.value),a=cn(Ga(s.value,t)),l=cn(_e(t.datetimeFormats)?t.datetimeFormats:{[s.value]:{}}),c=cn(_e(t.numberFormats)?t.numberFormats:{[s.value]:{}});let u=n?n.missingWarn:Se(t.missingWarn)||br(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Se(t.fallbackWarn)||br(t.fallbackWarn)?t.fallbackWarn:!0,f=n?n.fallbackRoot:Se(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,w=Ye(t.missing)?t.missing:null,g=Ye(t.missing)?Sm(t.missing):null,E=Ye(t.postTranslation)?t.postTranslation:null,_=n?n.warnHtmlMessage:Se(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const S=n?n.modifiers:_e(t.modifiers)?t.modifiers:{};let v=t.pluralRules||n&&n.pluralRules,b;b=(()=>{r&&hm(null);const A={version:nD,locale:s.value,fallbackLocale:o.value,messages:a.value,modifiers:S,pluralRules:v,missing:g===null?void 0:g,missingWarn:u,fallbackWarn:d,fallbackFormat:m,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:_,escapeParameter:C,messageResolver:t.messageResolver,__meta:{framework:"vue"}};A.datetimeFormats=l.value,A.numberFormats=c.value,A.__datetimeFormatters=_e(b)?b.__datetimeFormatters:void 0,A.__numberFormatters=_e(b)?b.__numberFormatters:void 0;const $=GI(A);return r&&hm($),$})(),hs(b,s.value,o.value);function x(){return[s.value,o.value,a.value,l.value,c.value]}const N=je({get:()=>s.value,set:A=>{s.value=A,b.locale=s.value}}),O=je({get:()=>o.value,set:A=>{o.value=A,b.fallbackLocale=o.value,hs(b,s.value,A)}}),B=je(()=>a.value),q=je(()=>l.value),Q=je(()=>c.value);function ee(){return Ye(E)?E:null}function I(A){E=A,b.postTranslation=A}function M(){return w}function Y(A){A!==null&&(g=Sm(A)),w=A,b.missing=g}const z=(A,$,J,ne,ue,be)=>{x();let Ce;if(__INTLIFY_PROD_DEVTOOLS__)try{dm(iD()),r||(b.fallbackContext=n?qI():void 0),Ce=A(b)}finally{dm(null),r||(b.fallbackContext=void 0)}else Ce=A(b);if(tt(Ce)&&Ce===qa){const[Me,Ve]=$();return n&&f?ne(n):ue(Me)}else{if(be(Ce))return Ce;throw nt(Ze.UNEXPECTED_RETURN_TYPE)}};function te(...A){return z($=>Reflect.apply(_m,null,[$,...A]),()=>Hc(...A),"translate",$=>Reflect.apply($.t,$,[...A]),$=>$,$=>re($))}function se(...A){const[$,J,ne]=A;if(ne&&!Be(ne))throw nt(Ze.INVALID_ARGUMENT);return te($,J,st({resolvedMessage:!0},ne||{}))}function ce(...A){return z($=>Reflect.apply(vm,null,[$,...A]),()=>Bc(...A),"datetime format",$=>Reflect.apply($.d,$,[...A]),()=>um,$=>re($))}function he(...A){return z($=>Reflect.apply(ym,null,[$,...A]),()=>Uc(...A),"number format",$=>Reflect.apply($.n,$,[...A]),()=>um,$=>re($))}function fe(A){return A.map($=>re($)||tt($)||Se($)?wm(String($)):$)}const me={normalize:fe,interpolate:A=>A,type:"vnode"};function R(...A){return z($=>{let J;const ne=$;try{ne.processor=me,J=Reflect.apply(_m,null,[ne,...A])}finally{ne.processor=null}return J},()=>Hc(...A),"translate",$=>$[jc](...A),$=>[wm($)],$=>He($))}function X(...A){return z($=>Reflect.apply(ym,null,[$,...A]),()=>Uc(...A),"number format",$=>$[zc](...A),()=>[],$=>re($)||He($))}function U(...A){return z($=>Reflect.apply(vm,null,[$,...A]),()=>Bc(...A),"datetime format",$=>$[Wc](...A),()=>[],$=>re($)||He($))}function Z(A){v=A,b.pluralRules=v}function pe(A,$){const J=re($)?$:s.value,ne=oe(J);return b.messageResolver(ne,A)!==null}function ge(A){let $=null;const J=Tv(b,o.value,s.value);for(let ne=0;ne{i&&(s.value=A,b.locale=A,hs(b,s.value,o.value))}),cr(n.fallbackLocale,A=>{i&&(o.value=A,b.fallbackLocale=A,hs(b,s.value,o.value))}));const j={id:Cm,locale:N,fallbackLocale:O,get inheritLocale(){return i},set inheritLocale(A){i=A,A&&n&&(s.value=n.locale.value,o.value=n.fallbackLocale.value,hs(b,s.value,o.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:B,get modifiers(){return S},get pluralRules(){return v||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(A){u=A,b.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(A){d=A,b.fallbackWarn=d},get fallbackRoot(){return f},set fallbackRoot(A){f=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,b.fallbackFormat=m},get warnHtmlMessage(){return _},set warnHtmlMessage(A){_=A,b.warnHtmlMessage=A},get escapeParameter(){return C},set escapeParameter(A){C=A,b.escapeParameter=A},t:te,getLocaleMessage:oe,setLocaleMessage:h,mergeLocaleMessage:p,getPostTranslationHandler:ee,setPostTranslationHandler:I,getMissingHandler:M,setMissingHandler:Y,[Dv]:Z};return j.datetimeFormats=q,j.numberFormats=Q,j.rt=se,j.te=pe,j.tm=le,j.d=ce,j.n=he,j.getDateTimeFormat=T,j.setDateTimeFormat=L,j.mergeDateTimeFormat=D,j.getNumberFormat=H,j.setNumberFormat=G,j.mergeNumberFormat=W,j[$v]=t.__injectWithOption,j[jc]=R,j[Wc]=U,j[zc]=X,j}function sD(t){const e=re(t.locale)?t.locale:fo,n=re(t.fallbackLocale)||He(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=Ye(t.missing)?t.missing:void 0,i=Se(t.silentTranslationWarn)||br(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=Se(t.silentFallbackWarn)||br(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Se(t.fallbackRoot)?t.fallbackRoot:!0,a=!!t.formatFallbackMessages,l=_e(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,u=Ye(t.postTranslation)?t.postTranslation:void 0,d=re(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,f=!!t.escapeParameterHtml,m=Se(t.sync)?t.sync:!0;let w=t.messages;if(_e(t.sharedMessages)){const b=t.sharedMessages;w=Object.keys(b).reduce((x,N)=>{const O=x[N]||(x[N]={});return st(O,b[N]),x},w||{})}const{__i18n:g,__root:E,__injectWithOption:_}=t,C=t.datetimeFormats,S=t.numberFormats,v=t.flatJson;return{locale:e,fallbackLocale:n,messages:w,flatJson:v,datetimeFormats:C,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:t.messageResolver,inheritLocale:m,__i18n:g,__root:E,__injectWithOption:_}}function Yc(t={},e){{const n=bf(sD(t)),r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return Se(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Se(i)?!i:i},get silentFallbackWarn(){return Se(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Se(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[s,o,a]=i,l={};let c=null,u=null;if(!re(s))throw nt(Ze.INVALID_ARGUMENT);const d=s;return re(o)?l.locale=o:He(o)?c=o:_e(o)&&(u=o),He(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[d,c||u||{},l])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[s,o,a]=i,l={plural:1};let c=null,u=null;if(!re(s))throw nt(Ze.INVALID_ARGUMENT);const d=s;return re(o)?l.locale=o:tt(o)?l.plural=o:He(o)?c=o:_e(o)&&(u=o),re(a)?l.locale=a:He(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[d,c||u||{},l])},te(i,s){return n.te(i,s)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,s){n.setLocaleMessage(i,s)},mergeLocaleMessage(i,s){n.mergeLocaleMessage(i,s)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,s){n.setDateTimeFormat(i,s)},mergeDateTimeFormat(i,s){n.mergeDateTimeFormat(i,s)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,s){n.setNumberFormat(i,s)},mergeNumberFormat(i,s){n.mergeNumberFormat(i,s)},getChoiceIndex(i,s){return-1},__onComponentInstanceCreated(i){const{componentInstanceCreatedListener:s}=t;s&&s(i,r)}};return r}}const yf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function oD({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>r=[...r,...He(i.children)?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},{})}function Vv(t){return xe}const Am={name:"i18n-t",props:st({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>tt(t)||!isNaN(t)}},yf),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||Ef({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=re(t.plural)?+t.plural:t.plural);const a=oD(e,s),l=i[jc](t.keypath,a,o),c=st({},r),u=re(t.tag)||Be(t.tag)?t.tag:Vv();return Cr(u,c,l)}}};function aD(t){return He(t)&&!re(t[0])}function Hv(t,e,n,r){const{slots:i,attrs:s}=e;return()=>{const o={part:!0};let a={};t.locale&&(o.locale=t.locale),re(t.format)?o.key=t.format:Be(t.format)&&(re(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((f,m)=>n.includes(m)?st({},f,{[m]:t.format[m]}):f,{}));const l=r(t.value,o,a);let c=[o.key];He(l)?c=l.map((f,m)=>{const w=i[f.type],g=w?w({[f.type]:f.value,index:m,parts:l}):[f.value];return aD(g)&&(g[0].key=`${f.type}-${m}`),g}):re(l)&&(c=[l]);const u=st({},s),d=re(t.tag)||Be(t.tag)?t.tag:Vv();return Cr(d,u,c)}}const km={name:"i18n-n",props:st({value:{type:Number,required:!0},format:{type:[String,Object]}},yf),setup(t,e){const n=t.i18n||Ef({useScope:"parent",__useComponent:!0});return Hv(t,e,Mv,(...r)=>n[zc](...r))}},xm={name:"i18n-d",props:st({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yf),setup(t,e){const n=t.i18n||Ef({useScope:"parent",__useComponent:!0});return Hv(t,e,Pv,(...r)=>n[Wc](...r))}};function lD(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function cD(t){const e=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw nt(Ze.UNEXPECTED_ERROR);const u=lD(t,a.$),d=Lm(c);return[Reflect.apply(u.t,u,[...Nm(d)]),u]};return{created:(o,a)=>{const[l,c]=e(a);Fc&&t.global===c&&(o.__i18nWatcher=cr(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Fc&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=Lm(a);o.textContent=Reflect.apply(l.t,l,[...Nm(c)])}},getSSRProps:o=>{const[a]=e(o);return{textContent:a}}}}function Lm(t){if(re(t))return{path:t};if(_e(t)){if(!("path"in t))throw nt(Ze.REQUIRED_VALUE,"path");return t}else throw nt(Ze.INVALID_VALUE)}function Nm(t){const{path:e,locale:n,args:r,choice:i,plural:s}=t,o={},a=r||{};return re(n)&&(o.locale=n),tt(i)&&(o.plural=i),tt(s)&&(o.plural=s),[e,a,o]}function uD(t,e,...n){const r=_e(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Se(r.globalInstall)?r.globalInstall:!0)&&(t.component(i?"i18n":Am.name,Am),t.component(km.name,km),t.component(xm.name,xm)),t.directive("t",cD(e))}function fD(t,e,n){return{beforeCreate(){const r=Ln();if(!r)throw nt(Ze.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;i.__i18n&&(s.__i18n=i.__i18n),s.__root=e,this===this.$root?this.$i18n=Om(t,s):(s.__injectWithOption=!0,this.$i18n=Yc(s))}else i.__i18n?this===this.$root?this.$i18n=Om(t,i):this.$i18n=Yc({__i18n:i.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;i.__i18nGlobal&&Fv(e,i,i),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){},unmounted(){const r=Ln();if(!r)throw nt(Ze.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Om(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Dv](e.pluralizationRules||t.pluralizationRules);const n=Ga(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const dD=Ar("global-vue-i18n");function hD(t={},e){const n=__VUE_I18N_LEGACY_API__&&Se(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Se(t.globalInjection)?t.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,s=new Map,[o,a]=mD(t,n),l=Ar("");function c(f){return s.get(f)||null}function u(f,m){s.set(f,m)}function d(f){s.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(m,...w){m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,f),!n&&r&&TD(m,f.global),__VUE_I18N_FULL_INSTALL__&&uD(m,f,...w),__VUE_I18N_LEGACY_API__&&n&&m.mixin(fD(a,a.__composer,f));const g=m.unmount;m.unmount=()=>{f.dispose(),g()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Ef(t={}){const e=Ln();if(e==null)throw nt(Ze.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw nt(Ze.NOT_INSLALLED);const n=pD(e),r=_D(n),i=Rv(e),s=gD(t,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw nt(Ze.NOT_AVAILABLE_IN_LEGACY_MODE);return yD(e,s,r,t)}if(s==="global")return Fv(r,t,i),r;if(s==="parent"){let l=vD(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(e);if(a==null){const l=st({},t);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=bf(l),bD(o,e),o.__setInstance(e,a)}return a}function mD(t,e,n){const r=aw();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Yc(t)):r.run(()=>bf(t));if(i==null)throw nt(Ze.UNEXPECTED_ERROR);return[r,i]}}function pD(t){{const e=Un(t.isCE?dD:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw nt(t.isCE?Ze.NOT_INSLALLED_WITH_PROVIDE:Ze.UNEXPECTED_ERROR);return e}}function gD(t,e){return Ka(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function _D(t){return t.mode==="composition"?t.global:t.global.__composer}function vD(t,e,n=!1){let r=null;const i=e.root;let s=e.parent;for(;s!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[$v]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function bD(t,e,n){xu(()=>{},e),Oa(()=>{t.__deleteInstance(e)},e)}function yD(t,e,n,r={}){const i=e==="local",s=Jp(null);if(i&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw nt(Ze.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Se(r.inheritLocale)?r.inheritLocale:!0,a=cn(i&&o?n.locale.value:re(r.locale)?r.locale:fo),l=cn(i&&o?n.fallbackLocale.value:re(r.fallbackLocale)||He(r.fallbackLocale)||_e(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=cn(Ga(a.value,r)),u=cn(_e(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),d=cn(_e(r.numberFormats)?r.numberFormats:{[a.value]:{}}),f=i?n.missingWarn:Se(r.missingWarn)||br(r.missingWarn)?r.missingWarn:!0,m=i?n.fallbackWarn:Se(r.fallbackWarn)||br(r.fallbackWarn)?r.fallbackWarn:!0,w=i?n.fallbackRoot:Se(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,E=Ye(r.missing)?r.missing:null,_=Ye(r.postTranslation)?r.postTranslation:null,C=i?n.warnHtmlMessage:Se(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,v=i?n.modifiers:_e(r.modifiers)?r.modifiers:{},b=r.pluralRules||i&&n.pluralRules;function k(){return[a.value,l.value,c.value,u.value,d.value]}const x=je({get:()=>s.value?s.value.locale.value:a.value,set:p=>{s.value&&(s.value.locale.value=p),a.value=p}}),N=je({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:p=>{s.value&&(s.value.fallbackLocale.value=p),l.value=p}}),O=je(()=>s.value?s.value.messages.value:c.value),B=je(()=>u.value),q=je(()=>d.value);function Q(){return s.value?s.value.getPostTranslationHandler():_}function ee(p){s.value&&s.value.setPostTranslationHandler(p)}function I(){return s.value?s.value.getMissingHandler():E}function M(p){s.value&&s.value.setMissingHandler(p)}function Y(p){return k(),p()}function z(...p){return s.value?Y(()=>Reflect.apply(s.value.t,null,[...p])):Y(()=>"")}function te(...p){return s.value?Reflect.apply(s.value.rt,null,[...p]):""}function se(...p){return s.value?Y(()=>Reflect.apply(s.value.d,null,[...p])):Y(()=>"")}function ce(...p){return s.value?Y(()=>Reflect.apply(s.value.n,null,[...p])):Y(()=>"")}function he(p){return s.value?s.value.tm(p):{}}function fe(p,T){return s.value?s.value.te(p,T):!1}function Ne(p){return s.value?s.value.getLocaleMessage(p):{}}function me(p,T){s.value&&(s.value.setLocaleMessage(p,T),c.value[p]=T)}function R(p,T){s.value&&s.value.mergeLocaleMessage(p,T)}function X(p){return s.value?s.value.getDateTimeFormat(p):{}}function U(p,T){s.value&&(s.value.setDateTimeFormat(p,T),u.value[p]=T)}function Z(p,T){s.value&&s.value.mergeDateTimeFormat(p,T)}function pe(p){return s.value?s.value.getNumberFormat(p):{}}function ge(p,T){s.value&&(s.value.setNumberFormat(p,T),d.value[p]=T)}function le(p,T){s.value&&s.value.mergeNumberFormat(p,T)}const oe={get id(){return s.value?s.value.id:-1},locale:x,fallbackLocale:N,messages:O,datetimeFormats:B,numberFormats:q,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(p){s.value&&(s.value.inheritLocale=p)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:v},get pluralRules(){return s.value?s.value.pluralRules:b},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:f},set missingWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackWarn(){return s.value?s.value.fallbackWarn:m},set fallbackWarn(p){s.value&&(s.value.missingWarn=p)},get fallbackRoot(){return s.value?s.value.fallbackRoot:w},set fallbackRoot(p){s.value&&(s.value.fallbackRoot=p)},get fallbackFormat(){return s.value?s.value.fallbackFormat:g},set fallbackFormat(p){s.value&&(s.value.fallbackFormat=p)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:C},set warnHtmlMessage(p){s.value&&(s.value.warnHtmlMessage=p)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(p){s.value&&(s.value.escapeParameter=p)},t:z,getPostTranslationHandler:Q,setPostTranslationHandler:ee,getMissingHandler:I,setMissingHandler:M,rt:te,d:se,n:ce,tm:he,te:fe,getLocaleMessage:Ne,setLocaleMessage:me,mergeLocaleMessage:R,getDateTimeFormat:X,setDateTimeFormat:U,mergeDateTimeFormat:Z,getNumberFormat:pe,setNumberFormat:ge,mergeNumberFormat:le};function h(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(c.value).forEach(T=>{p.mergeLocaleMessage(T,c.value[T])}),Object.keys(u.value).forEach(T=>{p.mergeDateTimeFormat(T,u.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=S,p.fallbackFormat=g,p.fallbackRoot=w,p.fallbackWarn=m,p.missingWarn=f,p.warnHtmlMessage=C}return mg(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw nt(Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=s.value=t.proxy.$i18n.__composer;e==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,c.value=p.messages.value,u.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&h(p)}),oe}const ED=["locale","fallbackLocale","availableLocales"],wD=["t","rt","d","n","tm"];function TD(t,e){const n=Object.create(null);ED.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i)throw nt(Ze.UNEXPECTED_ERROR);const s=ct(i.value)?{get(){return i.value.value},set(o){i.value.value=o}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,s)}),t.config.globalProperties.$i18n=n,wD.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i||!i.value)throw nt(Ze.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,i)})}WI(QI);zI(SI);KI(Tv);rD();if(__INTLIFY_PROD_DEVTOOLS__){const t=Is();t.__INTLIFY__=!0,II(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const CD={header:{sessions:"Ladevorg\xE4nge",docs:"Doku",blog:"Blog",github:"GitHub",login:"Fahrzeug Logins",about:"\xDCber evcc",theme:{auto:"Design: System",light:"Design: Hell",dark:"Design: Dunkel"}},footer:{version:{availableShort:"Update",availableLong:"Update verf\xFCgbar",modalTitle:"Update verf\xFCgbar",modalUpdateStarted:"Nach der Aktualisierung wird evcc neu gestartet.",modalInstalledVersion:"Aktuell installierte Version",modalNoReleaseNotes:"Keine Releasenotes verf\xFCgbar. Mehr Informationen zur neuen Version findest du hier:",modalCancel:"Abbrechen",modalUpdate:"Aktualisieren",modalUpdateNow:"Jetzt aktualisieren",modalDownload:"Download",modalUpdateStatusStart:"Aktualisierung gestartet: ",modalUpdateStatusFailed:"Aktualisierung nicht m\xF6glich: "},savings:{tabTitle:"Meine Daten",footerShort:"{percent}% Sonne",footerLong:"{percent}% Sonnenenergie",modalTitle:"Auswertung Ladeenergie",since:"seit {since}",percentTitle:"Sonnenenergie",percentSelf:"{self} kWh Sonne",percentGrid:"{grid} kWh Netz",priceTitle:"Energiepreis",priceFeedIn:"{feedInPrice} Einspeisung",priceGrid:"{gridPrice} Netz",savingsTitle:"Ersparnis",savingsComparedToGrid:"gegen\xFCber Netzbezug",savingsTotalEnergy:"{total} kWh geladen"},community:{tabTitle:"Live-Community",power:"Ladeleistung",powerSub1:"{activeClients} von {totalClients} Nutzern",powerSub2:"laden mit evcc",greenShare:"Sonnenanteil",greenShareSub1:"der Leistung kommt",greenShareSub2:"aus PV & Hausakku",greenEnergy:"Sonnenenergie",greenEnergySub1:"seit Oktober 2022",greenEnergySub2:"\xFCber evcc geladen"},telemetry:{optIn:"Ich m\xF6chte meine Daten auch beisteuern.",optInMoreDetails:"Mehr Details gibts {0}.",optInMoreDetailsLink:"hier",optInSponsorship:"Sponsoring erforderlich."},sponsor:{titleSponsor:"Du bist Unterst\xFCtzer",titleNoSponsor:"Unterst\xFCtze uns",thanks:"Danke f\xFCr dein Sponsoring, {sponsor}! Das hilft uns bei der Weiterentwicklung.",confetti:"Lust auf Konfetti?",supportUs:"Unsere Mission: Sonne tanken zum Standard machen. Hilf uns und unterst\xFCtze evcc finanziell.",sticker:"...oder evcc Sticker?",confettiPromise:"Es gibt auch Sticker und digitales Konfetti ;)",becomeSponsor:"Sponsor werden"}},notifications:{modalTitle:"Meldungen",dismissAll:"Meldungen entfernen"},main:{vehicles:"Parkplatz",energyflow:{noEnergy:"Kein Messwerte",homePower:"Verbrauch",pvProduction:"Erzeugung",loadpoints:"Ladepunkt | Ladepunkt | {count} Ladepunkte",battery:"Batterie",batteryCharge:"Batterie laden",batteryDischarge:"Batterie entladen",gridImport:"Netzbezug",selfConsumption:"Eigenverbrauch",pvExport:"Einspeisung"},mode:{off:"Aus",minpv:"Min+PV",pv:"PV",now:"Schnell"},loadpoint:{fallbackName:"Ladepunkt",remoteDisabledSoft:"{source}: Adaptives PV-Laden deaktiviert",remoteDisabledHard:"{source}: Deaktiviert",power:"Leistung",charged:"Geladen",duration:"Dauer",remaining:"Restzeit"},loadpointSettings:{title:'Einstellungen "{0}"',vehicle:"Fahrzeug",currents:"Ladestrom",default:"default",disclaimerHint:"Hinweis:",disclaimerText:"\xC4nderungen sind aktuell noch nicht persistent und werden nach einem Serverneustart wieder zur\xFCckgesetzt.",minSoC:{label:"Mindestladestand",description:'Reichweite f\xFCr Notf\xE4lle. Fahrzeug wird im PV-Modus "schnell" auf {0}% geladen. Danach weiter mit PV-\xDCberschuss.'},phasesConfigured:{label:"Phasen",phases_0:"automatischer Wechsel",phases_1:"1-phasig",phases_1_hint:"({min} bis {max})",phases_3:"3-phasig",phases_3_hint:"({min} bis {max})"},maxCurrent:{label:"Max. Ladestrom"},minCurrent:{label:"Min. Ladestrom"}},vehicle:{fallbackName:"Fahrzeug",vehicleSoC:"Ladestand",targetSoC:"Ladeziel",none:"Kein Fahrzeug",unknown:"Gastfahrzeug",changeVehicle:"Fahrzeug \xE4ndern",detectionActive:"Fahrzeugerkennung l\xE4uft ..."},vehicleSoC:{disconnected:"getrennt",charging:"l\xE4dt",ready:"bereit",connected:"verbunden",vehicleTarget:"Fahrzeuglimit: {soc}%"},vehicleStatus:{minCharge:"Mindestladung bis {soc}%.",waitForVehicle:"Ladebereit. Warte auf Fahrzeug.",vehicleTargetReached:"Fahrzeuglimit {soc}% erreicht.",charging:"Ladevorgang aktiv.",targetChargePlanned:"Zielladen geplant. Ladung startet {time} Uhr.",targetChargeWaitForVehicle:"Zielladen bereit. Warte auf Fahrzeug.",targetChargeActive:"Zielladen aktiv.",connected:"Verbunden.",pvDisable:"Zu wenig \xDCberschuss. Pausiere in {remaining}.",pvEnable:"\xDCberschuss verf\xFCgbar. Starte in {remaining}.",scale1p:"Reduziere auf einphasig in {remaining}.",scale3p:"Erh\xF6he auf dreiphasig in {remaining}.",disconnected:"Nicht verbunden.",unknown:""},provider:{login:"anmelden",logout:"abmelden"},targetCharge:{title:"Zielzeit",inactiveLabel:"Zielzeit",activeLabel:"{time}",modalTitle:"Zielzeit festlegen",setTargetTime:"keine",description:"Wann soll das Fahrzeug auf {targetSoC}% geladen sein?",today:"heute",tomorrow:"morgen",targetIsInThePast:"Zeitpunkt liegt in der Vergangenheit.",remove:"Entfernen",activate:"Aktivieren",experimentalLabel:"Experimentell",experimentalText:"Dieses Feature funktioniert, ist aber noch nicht perfekt. Bitte melde unerwartetes Verhalten in unseren"},targetEnergy:{label:"Ladeziel",noLimit:"keins"}},startupError:{title:"Fehler beim Starten",description:"Bitte \xFCberpr\xFCfe deine Konfigurationsdatei. Sollte dir die Fehlermeldung nicht weiterhelfen, suche in unseren {0} nach einer L\xF6sung.",discussions:"GitHub Discussions",hint:"Hinweis: Ein weiterer Grund, warum du diese Meldung siehst, k\xF6nnte ein fehlerhaftes Ger\xE4t (Wechselrichter, Z\xE4hler, ...) sein. \xDCberpr\xFCfe deine Netzwerkverbindungen.",configuration:"Konfiguration",configFile:"Verwendete Konfigurationsdatei:",lineError:"In {0} wurde ein Fehler gefunden.",lineErrorLink:"Zeile {0}",fixAndRestart:"Behebe das Problem und starte den Server neu.",restartButton:"Neu starten"},sessions:{title:"Ladevorg\xE4nge",downloadCsv:"Als CSV herunterladen",loadpoint:"Ladepunkt",vehicle:"Fahrzeug",odometer:"Kilometerstand",energy:"Geladen",date:"Zeitraum",csv:{loadpoint:"Ladepunkt",vehicle:"Fahrzeug",identifier:"Kennung",chargedenergy:"Energie (kWh)",meterstart:"Anfangsz\xE4hlerstand (kWh)",meterstop:"Endz\xE4hlerstand (kWh)",created:"Startzeit",finished:"Endzeit"}},offline:{message:"Keine Verbindung zum Server.",reload:"Reload?"}},SD={header:{sessions:"Charging sessions",docs:"Documentation",blog:"Blog",github:"GitHub",login:"Vehicle logins",about:"About evcc",theme:{auto:"Design: system",light:"Design: light",dark:"Design: dark"}},footer:{version:{availableShort:"update",availableLong:"update available",modalTitle:"Update available",modalUpdateStarted:"Evcc will restart after the update..",modalInstalledVersion:"Currently installed version",modalNoReleaseNotes:"No release notes available. More information about the new version can be found here:",modalCancel:"Cancel",modalUpdate:"Update",modalUpdateNow:"Update now",modalDownload:"Download",modalUpdateStatusStart:"Update started: ",modalUpdateStatusFailed:"Update failed: "},savings:{tabTitle:"My data",footerShort:"{percent}% solar",footerLong:"{percent}% solar energy",modalTitle:"Charge Energy Overview",since:"since {since}",percentTitle:"Solar Energy",percentSelf:"{self} kWh solar",percentGrid:"{grid} kWh grid",priceTitle:"Energy Price",priceFeedIn:"{feedInPrice} feed-in",priceGrid:"{gridPrice} grid",savingsTitle:"Savings",savingsComparedToGrid:"compared to grid",savingsTotalEnergy:"{total} kWh charged"},community:{tabTitle:"Live community",power:"Charging power",powerSub1:"{activeClients} of {totalClients} participants",powerSub2:"are charging right now",greenShare:"Solar share",greenShareSub1:"power is covered by",greenShareSub2:"PV & battery storage",greenEnergy:"Solar energy",greenEnergySub1:"charged with evcc",greenEnergySub2:"since October 2022"},telemetry:{optIn:"I want to contribute my data as well.",optInMoreDetails:"More details are available {0}.",optInMoreDetailsLink:"here",optInSponsorship:"Sponsoring required."},sponsor:{titleSponsor:"You are a supporter",titleNoSponsor:"Support us",thanks:"Thanks for your support, {sponsor}! It helps us with the further development.",confetti:"Ready for confetti?",supportUs:"Our mission: Make solar charging the standard. Help us and support evcc financially.",sticker:"...or evcc stickers?",confettiPromise:"There will be stickers and digital confetti ;)",becomeSponsor:"Become a Sponsor"}},notifications:{modalTitle:"Notifications",dismissAll:"Dismiss all"},main:{vehicles:"Parking",energyflow:{noEnergy:"No meter data",homePower:"Consumption",pvProduction:"Production",loadpoints:"Loadpoint | Loadpoint | {count} Loadpoints",battery:"Battery",batteryCharge:"Battery charge",batteryDischarge:"Battery discharge",gridImport:"Grid import",selfConsumption:"Self consumption",pvExport:"Grid export"},mode:{off:"Off",minpv:"Min+PV",pv:"PV",now:"Fast"},loadpoint:{fallbackName:"Loadpoint",remoteDisabledSoft:"{source}: adaptive PV charging disabled",remoteDisabledHard:"{source}: disabled",power:"Power",charged:"Charged",duration:"Duration",remaining:"Remaining"},loadpointSettings:{title:'Settings "{0}"',vehicle:"Vehicle",currents:"Charging",default:"default",disclaimerHint:"Note:",disclaimerText:"Changes are not persistent yet. They will be reset after server restart.",minSoC:{label:"Minimal SoC",description:'Range for emergencies. Vehicle gets "fast" charged to {0}% in PV mode. Then continues with PV surplus only.'},phasesConfigured:{label:"Phases",phases_0:"automatic switching",phases_1:"1 phase",phases_1_hint:"({min} to {max})",phases_3:"3 phases",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Current"},minCurrent:{label:"Min. Current"}},vehicle:{fallbackName:"Vehicle",vehicleSoC:"SoC",targetSoC:"Limit",none:"No vehicle",unknown:"Guest vehicle",changeVehicle:"Change Vehicle",detectionActive:"Detecting vehicle ..."},vehicleSoC:{disconnected:"disconnected",charging:"charging",ready:"ready",connected:"connected",vehicleTarget:"Vehicle limit: {soc}%"},vehicleStatus:{minCharge:"minimum charging to {soc}%.",waitForVehicle:"Ready. Waiting for vehicle.",vehicleTargetReached:"Vehicle limit {soc}% reached.",charging:"Charging.",targetChargePlanned:"Target charge planned. Starting {time}.",targetChargeWaitForVehicle:"Target charge ready. Wait for vehicle.",targetChargeActive:"Target charge active.",connected:"Connected.",pvDisable:"Not enough surplus. Pausing in {remaining}.",pvEnable:"Surplus available. Starting in {remaining}.",scale1p:"Reduce to single phase in {remaining}.",scale3p:"Increase to three phase in {remaining}.",disconnected:"Disconnected.",unknown:""},provider:{login:"login",logout:"logout"},targetCharge:{title:"Target Time",inactiveLabel:"Target time",activeLabel:"{time}",modalTitle:"Set Target Time",setTargetTime:"none",description:"When should the vehicle be charged to {targetSoC}%?",today:"today",tomorrow:"tomorrow",targetIsInThePast:"The chosen time is in the past.",remove:"Remove",activate:"Activate",experimentalLabel:"Experimental",experimentalText:"This feature works but isn't perfect yet. Please report unexpected behaviour in our"},targetEnergy:{label:"Limit",noLimit:"none"}},startupError:{title:"Startup Error",description:"Please check your configuration file. If the error message does not help you, have a look at our {0}.",discussions:"GitHub Discussions",hint:"Note: Another reason why you see this message could be a faulty device (inverter, meter, ...). Check your network connections.",configuration:"Config",configFile:"Configuration file used:",lineError:"We found an error in {0}.",lineErrorLink:"line {0}",fixAndRestart:"Fix the problem and restart the server.",restartButton:"Restart"},sessions:{title:"Charging sessions",downloadCsv:"Download as CSV",loadpoint:"Loadpoint",vehicle:"Vehicle",energy:"Charged",date:"Period",csv:{loadpoint:"Loadpoint",vehicle:"Vehicle",odometer:"Mileage (km)",identifier:"Identifier",chargedenergy:"Energy (kWh)",meterstart:"Meter Start (kWh)",meterstop:"Meter Stop (kWh)",created:"Created",finished:"Finished"}},offline:{message:"No connection to server.",reload:"Reload?"}},AD={header:{docs:"Documentazione",blog:"Blog",github:"GitHub",login:"Iscrizioni"},footer:{version:{availableShort:"aggiornamento",availableLong:"aggiornamento disponibile",modalTitle:"Aggiornamento disponibile",modalUpdateStarted:"Evcc ripartir\xE0 dopo l'aggiornamento..",modalInstalledVersion:"Versione correntemente installata",modalNoReleaseNotes:"Non ci sono note di rilascio disponibili. Altre informazioni circa la nuova versione si trovano qui:",modalCancel:"Cancella",modalUpdate:"Aggiorna",modalUpdateNow:"Aggiorna ora",modalDownload:"Download",modalUpdateStatusStart:"Aggiornamento iniziato: ",modalUpdateStatusFailed:"Aggiornamento fallito: "}},notifications:{modalTitle:"Notifiche",dismissAll:"Rimuovi tutte"},main:{energyflow:{noEnergy:"No Energyflow",homePower:"Consumption",pvProduction:"Produzione",battery:"Batteria",batteryCharge:"Battery charge",batteryDischarge:"Battery discharge",gridImport:"Grid import",selfConsumption:"Self consumption",pvExport:"Grid export"},mode:{off:"Stop",minpv:"Min+FV",pv:"FV",now:"Ora"},loadpoint:{fallbackName:"Punto di carica",remoteDisabledSoft:"{source}: Ricarica FV adattiva disabilitata",remoteDisabledHard:"{source}: Disabilitato"},vehicle:{fallbackName:"Veicolo"},vehicleSoC:{disconnected:"disconesso",charging:"carica",ready:"pronto",connected:"collegato"}}},kD={header:{sessions:"\u012Ekrovimo sesijos ",docs:"Dokumentacija (Vokie\u010Di\u0173 k.)",blog:"Tinklara\u0161tis",github:"GitHub",login:" Automobili\u0173 prisijungimai",about:"Apie EVCC",theme:{auto:"Dizainas: Sistemos",light:"Dizainas: \u0160viesus",dark:"Dizainas: Tamsus"}},footer:{version:{availableShort:"naujinimas",availableLong:"yra naujesn\u0117 versija",modalTitle:"Yra naujesn\u0117 versija",modalUpdateStarted:"Pasibaigus naujinimui EVCC startuos i\u0161 naujo..",modalInstalledVersion:"Dabartin\u0117 versija",modalNoReleaseNotes:"Naujinimo pastab\u0173 n\u0117ra. Daugiau informacijos apie nauj\u0105 versij\u0105 galite rasti rasite \u010Dia:",modalCancel:"At\u0161aukti",modalUpdate:"Naujinti",modalUpdateNow:"Naujinti dabar",modalDownload:"Atsisi\u0173sti",modalUpdateStatusStart:"Naujinimas prasid\u0117jo: ",modalUpdateStatusFailed:"Naujinimas nepavyko: "},savings:{tabTitle:"Mano duomenys",footerShort:"{percent}% saul\u0117s",footerLong:"{percent}% saul\u0117s energija",modalTitle:"\u012Ekrovimo energijos ap\u017Evalga",since:"nuo {since}",percentTitle:"Saul\u0117s energija",percentSelf:"{self} kWh saul\u0117s",percentGrid:"{grid} kWh tinklo",priceTitle:"Energijos kaina",priceFeedIn:"{feedInPrice} eksporto",priceGrid:"{gridPrice} tinklo",savingsTitle:"Sutaupyta",savingsComparedToGrid:"palyginus su tinklu",savingsTotalEnergy:"{total} kWh \u012Fkrauta"},community:{tabTitle:"Bendruomen\u0117s duomenys",power:"\u012Ekrovimo galia",powerSub1:"{activeClients} i\u0161 {totalClients} dalyvi\u0173",powerSub2:"\u012Fkrauna \u0161iuo metu",greenShare:"Saul\u0117s dalis",greenShareSub1:"galios tieka Saul\u0117 ir",greenShareSub2:"energijos kaupikliai",greenEnergy:"Saul\u0117s energija",greenEnergySub1:"\u012Fkrauta su evcc",greenEnergySub2:"nuo 2022 Spalio"},telemetry:{optIn:"Noriu prisid\u0117ti savo duomenimis.",optInMoreDetails:"Daugiau informacijos rasite {0}.",optInMoreDetailsLink:"\u010Dia",optInSponsorship:"(Gali tik r\u0117m\u0117jai.)"},sponsor:{titleSponsor:"Esate r\u0117m\u0117jais",titleNoSponsor:"Paremkite mus",thanks:"A\u010Di\u016B, kad mus remiate {sponsor}! Taip prisidedate prie projekto vystymo.",confetti:"Norite konfeti?",supportUs:"M\u016Bs\u0173 misija: Siekiame, kad \u012Fkrovimas saul\u0117s energija tapt\u0173 standartu. Pad\u0117kite mums ir paremkite evcc finansi\u0161kai.",sticker:"... ar evcc lipduk\u0173?",confettiPromise:"Bus lipduk\u0173 ir skaitmenini\u0173 konfeti ;)",becomeSponsor:"Tapkite r\u0117m\u0117ju"}},notifications:{modalTitle:"Prane\u0161imai",dismissAll:"I\u0161valyti visus"},main:{vehicles:"Autoparkas",energyflow:{noEnergy:"N\u0117ra skaitikli\u0173 duomen\u0173",homePower:"Namo suvartojimas",pvProduction:"Gamyba",loadpoints:"\u012Ekroviklis | \u012Ekroviklis | {count} \u012Ekrovikliai",battery:"Baterija",batteryCharge:"Baterijos \u012Fkrovimas",batteryDischarge:"Baterijos i\u0161krovimas",gridImport:"Tinklo importas",selfConsumption:"Sunaudojama i\u0161kart",pvExport:"Tinklo eksportas"},mode:{off:"Stop",minpv:"Min+S",pv:"Saul\u0117s",now:"Greitas"},loadpoint:{fallbackName:"\u012Ekroviklis",remoteDisabledSoft:"{source}: adaptyvus Saul\u0117s \u012Fkrovimas i\u0161jungtas",remoteDisabledHard:"{source}: i\u0161jungtas",power:"Galia",charged:"\u012Ekrauta",duration:"Trukm\u0117",remaining:"Liko"},loadpointSettings:{title:'Nustatymai "{0}"',vehicle:"Automobilis",currents:"\u012Ekraunama",default:"standarti\u0161kai",disclaimerHint:"Pastaba:",disclaimerText:"\u0160ie pakeitimai nei\u0161lieka ir po EVCC serverio restarto pradings.",minSoC:{label:"Minimali \u012Fkrova",description:'Minimali \u012Fkrova. Automobilis \u012Fkraunamas "Greitai" iki {0}% nustatyme "Saul\u0117" . Toliau \u012Fkraunamas tik saul\u0117s energijos pertekliumi.'},phasesConfigured:{label:"Faz\u0117s",phases_0:"automatinis perjungimas",phases_1:"1 faz\u0117",phases_1_hint:"({min} to {max})",phases_3:"3 faz\u0117s",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Srov\u0117"},minCurrent:{label:"Min. Srov\u0117"}},vehicle:{fallbackName:"Automobilis",vehicleSoC:"\u012Ekrova",targetSoC:"Limitas",none:"N\u0117ra automobilio",unknown:"Ne\u017Einomas automobilis",changeVehicle:"Pakeisti automobil\u012F",detectionActive:"Bandome atpa\u017Einti automobil\u012F ..."},vehicleSoC:{disconnected:"neprijungtas",charging:"vyksta \u012Fkrovimas",ready:"leid\u017Eiama \u012Fkrauti",connected:"automobilis prijungtas",vehicleTarget:"Automobilio limitas: {soc}%"},vehicleStatus:{minCharge:"minimalus \u012Fkrovimas iki {soc}%.",waitForVehicle:"\u012Ekrovimas leid\u017Eiamas. Laukiama automobilio signalo.",vehicleTargetReached:"Automobilio limitas {soc}% pasiektas.",charging:"\u012Ekraunama.",targetChargePlanned:"Suplanuotas \u012Fkrovimas, prasid\u0117s {time}.",targetChargeWaitForVehicle:"Suplanuotas \u012Fkrovimas leid\u017Eiamas. Laukiama automobilio signalo.",targetChargeActive:"Suplanuotas \u012Fkrovimas aktyvuotas.",connected:"Prijungtas.",pvDisable:"Tr\u016Bksta saul\u0117s, \u012Fkrovimo pauz\u0117 u\u017E {remaining}.",pvEnable:"Saul\u0117s u\u017Etenka, \u012Fkrovimas prasid\u0117s u\u017E {remaining}.",scale1p:"Suma\u017Einti \u012F vienfaz\u012F \u012Fkrovim\u0105 u\u017E {remaining}.",scale3p:"Padidinti \u012F trifaz\u012F \u012Fkrovim\u0105 u\u017E {remaining}.",disconnected:"Neprijungtas.",unknown:""},provider:{login:"prisijungti",logout:"atsijungti"},targetCharge:{title:"\u012Ekrauti iki",inactiveLabel:"\u012Ekrauti iki",activeLabel:"{time}",modalTitle:"Nustatyti \u012Fkrovimo pabaigos laik\u0105",setTargetTime:"nenustatytas",description:"Kada automobilis tur\u0117t\u0173 b\u016Bti \u012Fkrautas iki {targetSoC}%?",today:"\u0161iandien",tomorrow:"rytoj",targetIsInThePast:"Pasirinktas laikas yra praeityje.",remove:"Panaikinti",activate:"Aktyvuoti",experimentalLabel:"Eksperimentinis",experimentalText:"\u0160i funkcija veikia, bet dar n\u0117ra tobula. Apie netik\u0117t\u0105 elges\u012F prane\u0161kite m\u016Bs\u0173"},targetEnergy:{label:"Limitas",noLimit:"n\u0117ra"}},startupError:{title:"Klaida startuojant",description:"Patikrinkite konfig\u016Bracijos fail\u0105. Jei klaidos \u017Einut\u0117 jums nepad\u0117jo, atsakym\u0173 ie\u0161kokite m\u016Bs\u0173 {0}.",discussions:"GitHub Diskusijose",hint:"Pastaba: Gali b\u016Bti, kad prane\u0161im\u0105 apie klaid\u0105 matote d\u0117l neteisingai veikian\u010Dio \u012Frenginio (inverterio, skaitiklio, ...). Patikrinkite tiklo jungtis.",configuration:"Konfig\u016Bracija",configFile:"Naudojamas konfiguracijos failas:",lineError:"Radome klaid\u0105 \u010Dia {0}.",lineErrorLink:"eilut\u0117 {0}",fixAndRestart:"I\u0161taisykite klaid\u0105 ir restartuokite server\u012F.",restartButton:"Restartuoti"},sessions:{title:"\u012Ekrovimo sesijos",downloadCsv:"Parsisi\u0173sti CSV fail\u0105",loadpoint:"\u012Ekroviklis",vehicle:"Automobilis",energy:"\u012Ekrauta",date:"Laikotarpis",csv:{loadpoint:"\u012Ekroviklis",vehicle:"Automobilis",identifier:"Identifikatorius",chargedenergy:"Energija (kWh)",meterstart:"Skaitiklis prad\u017Eioje (kWh)",meterstop:"Skaitiklis pabaigoje (kWh)",created:"Prad\u0117ta",finished:"Pabaigta"}},offline:{message:"N\u0117ra ry\u0161io su serveriu.",reload:"Perkrauti?"}},xD="preferred_locale";function LD(){const t=navigator.languages!==void 0?navigator.languages[0]:navigator.language;if(!!t)return t.trim().split(/-|_/)[0]}const ND=hD({locale:window.localStorage[xD]||LD(),fallbackLocale:"en",messages:{de:CD,en:SD,it:AD,lt:kD}}),OD={install:t=>{t.config.globalProperties.$hiddenFeatures=window.localStorage.hidden_features==="true"}};YE.polyfill();const si=h2({data(){return{notifications:[],offline:!1}},watch:{offline:function(t){console.log(`we are ${t?"offline":"online"}`)}},methods:{raise:function(t){console[t.type](t);const e=new Date,n=this.notifications[0];n&&n.message===t.message?(n.count++,n.time=e):this.notifications=[{...t,count:1,time:e},...this.notifications]},clear:function(){this.notifications=[]},error:function(t){t.type="error",this.raise(t)},setOnline:function(){this.offline=!1},setOffline:function(){this.offline=!0},warn:function(t){t.type="warn",this.raise(t)}},render:function(){return Cr(I2,{notifications:this.notifications,offline:this.offline})}});si.use(ND);si.use(jM);si.use(k2());si.use(N2);si.use(OD);si.use($_);window.app=si.mount("#app");bk()});export default PD(); diff --git a/dist/index.html b/dist/index.html index 5139fae5b2..c71b6c624f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -20,7 +20,7 @@ evcc - +