diff --git a/src/dashboard_new.py b/src/dashboard_new.py index 7aa0825..b572622 100644 --- a/src/dashboard_new.py +++ b/src/dashboard_new.py @@ -499,7 +499,7 @@ class DashboardConfig: def __init__(self): self.__config = configparser.ConfigParser(strict=False) - self.__config.read_file(open(DASHBOARD_CONF)) + self.__config.read_file(open(DASHBOARD_CONF, "w+")) self.hiddenAttribute = ["totp_key"] self.__default = { "Account": { @@ -938,7 +938,7 @@ def API_updatePeerSettings(configName): return ResponseObject(False, f"Allowed IP already taken by another peer.") if not _checkIPWithRange(endpoint_allowed_ip): return ResponseObject(False, f"Endpoint Allowed IPs format is incorrect.") - if not _checkDNS(dns_addresses): + if len(dns_addresses) > 0 and _checkDNS(dns_addresses): return ResponseObject(False, f"DNS format is incorrect.") if data['mtu'] < 0 or data['mtu'] > 1460: return ResponseObject(False, "MTU format is not correct.") @@ -1016,17 +1016,21 @@ def API_downloadPeer(configName): peerConfiguration = f'''[Interface] PrivateKey = {peer.private_key} Address = {peer.allowed_ip} -DNS = {peer.DNS} MTU = {str(peer.mtu)} + + ''' + if len(peer.DNS) > 0: + peerConfiguration += f"DNS = {peer.DNS}\n" + peerConfiguration += f''' [Peer] PublicKey = {configuration.PublicKey} AllowedIPs = {peer.endpoint_allowed_ip} Endpoint = {DashboardConfig.GetConfig("Peers", "remote_endpoint")[1]}:{configuration.ListenPort} PersistentKeepalive = {str(peer.keepalive)} - ''' +''' if len(peer.preshared_key) > 0: - peerConfiguration += f"PresharedKey = {peer.preshared_key}" + peerConfiguration += f"PresharedKey = {peer.preshared_key}\n" return ResponseObject(data={ "fileName": filename, "file": peerConfiguration diff --git a/src/static/app/dist/assets/index.css b/src/static/app/dist/assets/index.css index a9412e0..5c29826 100644 --- a/src/static/app/dist/assets/index.css +++ b/src/static/app/dist/assets/index.css @@ -12,4 +12,4 @@ * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2020 Animate.css - */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.dropdown-menu[data-v-3a072aae]{right:1rem}.slide-fade-leave-active[data-v-315acdc2],.slide-fade-enter-active[data-v-315acdc2]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-315acdc2],.slide-fade-leave-to[data-v-315acdc2]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-315acdc2]{background-color:#ffffff20}.peerSettingContainer[data-v-6fc123c2]{background-color:#00000060;z-index:1000}.toggleShowKey[data-v-6fc123c2]{position:absolute;top:35px;right:12px}.peerSettingContainer[data-v-0f1cea80]{background-color:#00000060;z-index:1000}.list-move[data-v-f2538e55],.list-enter-active[data-v-f2538e55],.list-leave-active[data-v-f2538e55]{transition:all .3s ease}.list-enter-from[data-v-f2538e55],.list-leave-to[data-v-f2538e55]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-f2538e55]{position:absolute}.peerSettingContainer[data-v-01862fad]{background-color:#00000060;z-index:9998}div[data-v-01862fad]{transition:.2s ease-in-out}.inactiveField[data-v-01862fad]{opacity:.4}.card[data-v-01862fad]{max-height:100%}.peerNav .nav-link[data-v-ce1252aa].active[data-v-ce1252aa]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.list-move[data-v-ce1252aa],.list-enter-active[data-v-ce1252aa],.list-leave-active[data-v-ce1252aa]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from[data-v-ce1252aa],.list-leave-to[data-v-ce1252aa]{opacity:0;transform:translateY(30px)}.list-leave-active[data-v-ce1252aa]{position:absolute} + */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat)*2);animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat)*3);animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay)*2);animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay)*3);animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay)*4);animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay)*5);animation-delay:calc(var(--animate-delay)*5)}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration)/2);animation-duration:calc(var(--animate-duration)/2)}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration)*.8);animation-duration:calc(var(--animate-duration)*.8)}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2)}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration)*3);animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0)}}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration)*1.3);animation-duration:calc(var(--animate-duration)*1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration)*.75);animation-duration:calc(var(--animate-duration)*.75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0}to{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration)*2);animation-duration:calc(var(--animate-duration)*2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.messageCentre[data-v-54755a4a]{top:calc(50px + 1rem);right:1rem}.dropdown-menu[data-v-3a072aae]{right:1rem}.slide-fade-leave-active[data-v-315acdc2],.slide-fade-enter-active[data-v-315acdc2]{transition:all .2s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-315acdc2],.slide-fade-leave-to[data-v-315acdc2]{transform:translateY(20px);opacity:0}.subMenuBtn.active[data-v-315acdc2]{background-color:#ffffff20}.peerSettingContainer[data-v-6fc123c2]{background-color:#00000060;z-index:1000}.toggleShowKey[data-v-6fc123c2]{position:absolute;top:35px;right:12px}.peerSettingContainer[data-v-0f1cea80]{background-color:#00000060;z-index:1000}.list-move[data-v-f2538e55],.list-enter-active[data-v-f2538e55],.list-leave-active[data-v-f2538e55]{transition:all .3s ease}.list-enter-from[data-v-f2538e55],.list-leave-to[data-v-f2538e55]{opacity:0;transform:translateY(10px)}.list-leave-active[data-v-f2538e55]{position:absolute}.peerSettingContainer[data-v-cbe62677]{background-color:#00000060;z-index:9998}div[data-v-cbe62677]{transition:.2s ease-in-out}.inactiveField[data-v-cbe62677]{opacity:.4}.card[data-v-cbe62677]{max-height:100%}.peerNav .nav-link[data-v-b59a7de8].active[data-v-b59a7de8]{//background: linear-gradient(var(--degree),var(--brandColor1) var(--distance2),var(--brandColor2) 100%);//color: white;background-color:#efefef}.list-move[data-v-b59a7de8],.list-enter-active[data-v-b59a7de8],.list-leave-active[data-v-b59a7de8]{transition:all .4s cubic-bezier(.82,.58,.17,.9)}.list-enter-from[data-v-b59a7de8],.list-leave-to[data-v-b59a7de8]{opacity:0;transform:translateY(30px)}.list-leave-active[data-v-b59a7de8]{position:absolute} diff --git a/src/static/app/dist/assets/index.js b/src/static/app/dist/assets/index.js index cfd7d06..447494b 100644 --- a/src/static/app/dist/assets/index.js +++ b/src/static/app/dist/assets/index.js @@ -1,16 +1,16 @@ -var lx=Object.defineProperty;var cx=(e,t,n)=>t in e?lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>(cx(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Kp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ux(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),n}var hx={exports:{}},_e="top",De="bottom",Ie="right",be="left",Na="auto",Qi=[_e,De,Ie,be],qs="start",ki="end",Yp="clippingParents",qc="viewport",_i="popper",qp="reference",rc=Qi.reduce(function(e,t){return e.concat([t+"-"+qs,t+"-"+ki])},[]),Gc=[].concat(Qi,[Na]).reduce(function(e,t){return e.concat([t,t+"-"+qs,t+"-"+ki])},[]),Gp="beforeRead",Xp="read",Qp="afterRead",Jp="beforeMain",Zp="main",tg="afterMain",eg="beforeWrite",ng="write",sg="afterWrite",ig=[Gp,Xp,Qp,Jp,Zp,tg,eg,ng,sg];function pn(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gs(e){var t=Le(e).Element;return e instanceof t||e instanceof Element}function Ye(e){var t=Le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xc(e){if(typeof ShadowRoot>"u")return!1;var t=Le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fx(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ye(o)||!pn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function px(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!Ye(i)||!pn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qc={name:"applyStyles",enabled:!0,phase:"write",fn:fx,effect:px,requires:["computeStyles"]};function dn(e){return e.split("-")[0]}var Hs=Math.max,ha=Math.min,$i=Math.round;function ac(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function og(){return!/^((?!chrome|android).)*safari/i.test(ac())}function Mi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,o=1;t&&Ye(e)&&(i=e.offsetWidth>0&&$i(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$i(s.height)/e.offsetHeight||1);var r=Gs(e)?Le(e):window,a=r.visualViewport,l=!og()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,u=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/i,f=s.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Jc(e){var t=Mi(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function rg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xc(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function In(e){return Le(e).getComputedStyle(e)}function gx(e){return["table","td","th"].indexOf(pn(e))>=0}function gs(e){return((Gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fa(e){return pn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xc(e)?e.host:null)||gs(e)}function Jd(e){return!Ye(e)||In(e).position==="fixed"?null:e.offsetParent}function mx(e){var t=/firefox/i.test(ac()),n=/Trident/i.test(ac());if(n&&Ye(e)){var s=In(e);if(s.position==="fixed")return null}var i=Fa(e);for(Xc(i)&&(i=i.host);Ye(i)&&["html","body"].indexOf(pn(i))<0;){var o=In(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sr(e){for(var t=Le(e),n=Jd(e);n&&gx(n)&&In(n).position==="static";)n=Jd(n);return n&&(pn(n)==="html"||pn(n)==="body"&&In(n).position==="static")?t:n||mx(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Eo(e,t,n){return Hs(e,ha(t,n))}function _x(e,t,n){var s=Eo(e,t,n);return s>n?n:s}function ag(){return{top:0,right:0,bottom:0,left:0}}function lg(e){return Object.assign({},ag(),e)}function cg(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var bx=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lg(typeof t!="number"?t:cg(t,Qi))};function vx(e){var t,n=e.state,s=e.name,i=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=dn(n.placement),l=Zc(a),c=[be,Ie].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var d=bx(i.padding,n),f=Jc(o),p=l==="y"?_e:be,m=l==="y"?De:Ie,_=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],v=r[l]-n.rects.reference[l],x=sr(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,P=_/2-v/2,A=d[p],y=S-f[u]-d[m],E=S/2-f[u]/2+P,C=Eo(A,E,y),w=l;n.modifiersData[s]=(t={},t[w]=C,t.centerOffset=C-E,t)}}function yx(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||rg(t.elements.popper,i)&&(t.elements.arrow=i))}const ug={name:"arrow",enabled:!0,phase:"main",fn:vx,effect:yx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var xx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wx(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:$i(n*i)/i||0,y:$i(s*i)/i||0}}function Zd(e){var t,n=e.popper,s=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,m=r.y,_=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:_}):{x:p,y:_};p=v.x,_=v.y;var x=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),P=be,A=_e,y=window;if(c){var E=sr(n),C="clientHeight",w="clientWidth";if(E===Le(n)&&(E=gs(n),In(E).position!=="static"&&a==="absolute"&&(C="scrollHeight",w="scrollWidth")),E=E,i===_e||(i===be||i===Ie)&&o===ki){A=De;var $=d&&E===y&&y.visualViewport?y.visualViewport.height:E[C];_-=$-s.height,_*=l?1:-1}if(i===be||(i===_e||i===De)&&o===ki){P=Ie;var D=d&&E===y&&y.visualViewport?y.visualViewport.width:E[w];p-=D-s.width,p*=l?1:-1}}var I=Object.assign({position:a},c&&xx),N=u===!0?wx({x:p,y:_},Le(n)):{x:p,y:_};if(p=N.x,_=N.y,l){var Q;return Object.assign({},I,(Q={},Q[A]=S?"0":"",Q[P]=x?"0":"",Q.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+_+"px)":"translate3d("+p+"px, "+_+"px, 0)",Q))}return Object.assign({},I,(t={},t[A]=S?_+"px":"",t[P]=x?p+"px":"",t.transform="",t))}function Ex(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:dn(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ex,data:{}};var kr={passive:!0};function Sx(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,o=i===void 0?!0:i,r=s.resize,a=r===void 0?!0:r,l=Le(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,kr)}),a&&l.addEventListener("resize",n.update,kr),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,kr)}),a&&l.removeEventListener("resize",n.update,kr)}}const eu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sx,data:{}};var Ax={left:"right",right:"left",bottom:"top",top:"bottom"};function na(e){return e.replace(/left|right|bottom|top/g,function(t){return Ax[t]})}var Cx={start:"end",end:"start"};function th(e){return e.replace(/start|end/g,function(t){return Cx[t]})}function nu(e){var t=Le(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function su(e){return Mi(gs(e)).left+nu(e).scrollLeft}function Tx(e,t){var n=Le(e),s=gs(e),i=n.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=og();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+su(e),y:l}}function Px(e){var t,n=gs(e),s=nu(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Hs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Hs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+su(e),l=-s.scrollTop;return In(i||n).direction==="rtl"&&(a+=Hs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function iu(e){var t=In(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function dg(e){return["html","body","#document"].indexOf(pn(e))>=0?e.ownerDocument.body:Ye(e)&&iu(e)?e:dg(Fa(e))}function So(e,t){var n;t===void 0&&(t=[]);var s=dg(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Le(s),r=i?[o].concat(o.visualViewport||[],iu(s)?s:[]):s,a=t.concat(r);return i?a:a.concat(So(Fa(r)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kx(e,t){var n=Mi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eh(e,t,n){return t===qc?lc(Tx(e,n)):Gs(t)?kx(t,n):lc(Px(gs(e)))}function $x(e){var t=So(Fa(e)),n=["absolute","fixed"].indexOf(In(e).position)>=0,s=n&&Ye(e)?sr(e):e;return Gs(s)?t.filter(function(i){return Gs(i)&&rg(i,s)&&pn(i)!=="body"}):[]}function Mx(e,t,n,s){var i=t==="clippingParents"?$x(e):[].concat(t),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(l,c){var u=eh(e,c,s);return l.top=Hs(u.top,l.top),l.right=ha(u.right,l.right),l.bottom=ha(u.bottom,l.bottom),l.left=Hs(u.left,l.left),l},eh(e,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function hg(e){var t=e.reference,n=e.element,s=e.placement,i=s?dn(s):null,o=s?Oi(s):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case _e:l={x:r,y:t.y-n.height};break;case De:l={x:r,y:t.y+t.height};break;case Ie:l={x:t.x+t.width,y:a};break;case be:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?Zc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case qs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ki:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Di(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Yp:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?_i:d,p=n.altBoundary,m=p===void 0?!1:p,_=n.padding,v=_===void 0?0:_,x=lg(typeof v!="number"?v:cg(v,Qi)),S=f===_i?qp:_i,P=e.rects.popper,A=e.elements[m?S:f],y=Mx(Gs(A)?A:A.contextElement||gs(e.elements.popper),l,u,r),E=Mi(e.elements.reference),C=hg({reference:E,element:P,strategy:"absolute",placement:i}),w=lc(Object.assign({},P,C)),$=f===_i?w:E,D={top:y.top-$.top+x.top,bottom:$.bottom-y.bottom+x.bottom,left:y.left-$.left+x.left,right:$.right-y.right+x.right},I=e.modifiersData.offset;if(f===_i&&I){var N=I[i];Object.keys(D).forEach(function(Q){var Y=[Ie,De].indexOf(Q)>=0?1:-1,H=[_e,De].indexOf(Q)>=0?"y":"x";D[Q]+=N[H]*Y})}return D}function Ox(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Oi(s),d=u?a?rc:rc.filter(function(m){return Oi(m)===u}):Qi,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,_){return m[_]=Di(e,{placement:_,boundary:i,rootBoundary:o,padding:r})[dn(_)],m},{});return Object.keys(p).sort(function(m,_){return p[m]-p[_]})}function Dx(e){if(dn(e)===Na)return[];var t=na(e);return[th(e),t,th(t)]}function Ix(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,_=n.allowedAutoPlacements,v=t.options.placement,x=dn(v),S=x===v,P=l||(S||!m?[na(v)]:Dx(v)),A=[v].concat(P).reduce(function(At,Mt){return At.concat(dn(Mt)===Na?Ox(t,{placement:Mt,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:_}):Mt)},[]),y=t.rects.reference,E=t.rects.popper,C=new Map,w=!0,$=A[0],D=0;D=0,H=Y?"width":"height",R=Di(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),W=Y?Q?Ie:be:Q?De:_e;y[H]>E[H]&&(W=na(W));var U=na(W),rt=[];if(o&&rt.push(R[N]<=0),a&&rt.push(R[W]<=0,R[U]<=0),rt.every(function(At){return At})){$=I,w=!1;break}C.set(I,rt)}if(w)for(var ct=m?3:1,mt=function(Mt){var Ct=A.find(function(j){var nt=C.get(j);if(nt)return nt.slice(0,Mt).every(function(Z){return Z})});if(Ct)return $=Ct,"break"},pt=ct;pt>0;pt--){var Pt=mt(pt);if(Pt==="break")break}t.placement!==$&&(t.modifiersData[s]._skip=!0,t.placement=$,t.reset=!0)}}const fg={name:"flip",enabled:!0,phase:"main",fn:Ix,requiresIfExists:["offset"],data:{_skip:!1}};function nh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sh(e){return[_e,Ie,De,be].some(function(t){return e[t]>=0})}function Lx(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Di(t,{elementContext:"reference"}),a=Di(t,{altBoundary:!0}),l=nh(r,s),c=nh(a,i,o),u=sh(l),d=sh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const pg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lx};function Rx(e,t,n){var s=dn(e),i=[be,_e].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[be,Ie].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function Nx(e){var t=e.state,n=e.options,s=e.name,i=n.offset,o=i===void 0?[0,0]:i,r=Gc.reduce(function(u,d){return u[d]=Rx(d,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const gg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nx};function Fx(e){var t=e.state,n=e.name;t.modifiersData[n]=hg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ou={name:"popperOffsets",enabled:!0,phase:"read",fn:Fx,data:{}};function Bx(e){return e==="x"?"y":"x"}function Vx(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,_=m===void 0?0:m,v=Di(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=dn(t.placement),S=Oi(t.placement),P=!S,A=Zc(x),y=Bx(A),E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(o){var Q,Y=A==="y"?_e:be,H=A==="y"?De:Ie,R=A==="y"?"height":"width",W=E[A],U=W+v[Y],rt=W-v[H],ct=p?-w[R]/2:0,mt=S===qs?C[R]:w[R],pt=S===qs?-w[R]:-C[R],Pt=t.elements.arrow,At=p&&Pt?Jc(Pt):{width:0,height:0},Mt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ag(),Ct=Mt[Y],j=Mt[H],nt=Eo(0,C[R],At[R]),Z=P?C[R]/2-ct-nt-Ct-D.mainAxis:mt-nt-Ct-D.mainAxis,at=P?-C[R]/2+ct+nt+j+D.mainAxis:pt+nt+j+D.mainAxis,F=t.elements.arrow&&sr(t.elements.arrow),T=F?A==="y"?F.clientTop||0:F.clientLeft||0:0,O=(Q=I==null?void 0:I[A])!=null?Q:0,L=W+Z-O-T,V=W+at-O,K=Eo(p?ha(U,L):U,W,p?Hs(rt,V):rt);E[A]=K,N[A]=K-W}if(a){var G,tt=A==="x"?_e:be,J=A==="x"?De:Ie,B=E[y],q=y==="y"?"height":"width",lt=B+v[tt],ft=B-v[J],ut=[_e,be].indexOf(x)!==-1,_t=(G=I==null?void 0:I[y])!=null?G:0,St=ut?lt:B-C[q]-w[q]-_t+D.altAxis,Ot=ut?B+C[q]+w[q]-_t-D.altAxis:ft,Nt=p&&ut?_x(St,B,Ot):Eo(p?St:lt,B,p?Ot:ft);E[y]=Nt,N[y]=Nt-B}t.modifiersData[s]=N}}const mg={name:"preventOverflow",enabled:!0,phase:"main",fn:Vx,requiresIfExists:["offset"]};function Hx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jx(e){return e===Le(e)||!Ye(e)?nu(e):Hx(e)}function Wx(e){var t=e.getBoundingClientRect(),n=$i(t.width)/e.offsetWidth||1,s=$i(t.height)/e.offsetHeight||1;return n!==1||s!==1}function zx(e,t,n){n===void 0&&(n=!1);var s=Ye(t),i=Ye(t)&&Wx(t),o=gs(t),r=Mi(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((pn(t)!=="body"||iu(o))&&(a=jx(t)),Ye(t)?(l=Mi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=su(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Ux(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),s}function Kx(e){var t=Ux(e);return ig.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function Yx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qx(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var ih={placement:"bottom",modifiers:[],strategy:"absolute"};function oh(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?cx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>(ux(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Kp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),n}var fx={exports:{}},_e="top",De="bottom",Ie="right",be="left",Fa="auto",Qi=[_e,De,Ie,be],qs="start",ki="end",Yp="clippingParents",qc="viewport",_i="popper",qp="reference",rc=Qi.reduce(function(e,t){return e.concat([t+"-"+qs,t+"-"+ki])},[]),Gc=[].concat(Qi,[Fa]).reduce(function(e,t){return e.concat([t,t+"-"+qs,t+"-"+ki])},[]),Gp="beforeRead",Xp="read",Qp="afterRead",Jp="beforeMain",Zp="main",tg="afterMain",eg="beforeWrite",ng="write",sg="afterWrite",ig=[Gp,Xp,Qp,Jp,Zp,tg,eg,ng,sg];function pn(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gs(e){var t=Le(e).Element;return e instanceof t||e instanceof Element}function Ye(e){var t=Le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xc(e){if(typeof ShadowRoot>"u")return!1;var t=Le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function px(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ye(o)||!pn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function gx(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var i=t.elements[s],o=t.attributes[s]||{},r=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=r.reduce(function(l,c){return l[c]="",l},{});!Ye(i)||!pn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qc={name:"applyStyles",enabled:!0,phase:"write",fn:px,effect:gx,requires:["computeStyles"]};function dn(e){return e.split("-")[0]}var Hs=Math.max,fa=Math.min,$i=Math.round;function ac(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function og(){return!/^((?!chrome|android).)*safari/i.test(ac())}function Mi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,o=1;t&&Ye(e)&&(i=e.offsetWidth>0&&$i(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$i(s.height)/e.offsetHeight||1);var r=Gs(e)?Le(e):window,a=r.visualViewport,l=!og()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,u=(s.top+(l&&a?a.offsetTop:0))/o,d=s.width/i,f=s.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Jc(e){var t=Mi(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function rg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xc(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function In(e){return Le(e).getComputedStyle(e)}function mx(e){return["table","td","th"].indexOf(pn(e))>=0}function gs(e){return((Gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ba(e){return pn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xc(e)?e.host:null)||gs(e)}function Jd(e){return!Ye(e)||In(e).position==="fixed"?null:e.offsetParent}function _x(e){var t=/firefox/i.test(ac()),n=/Trident/i.test(ac());if(n&&Ye(e)){var s=In(e);if(s.position==="fixed")return null}var i=Ba(e);for(Xc(i)&&(i=i.host);Ye(i)&&["html","body"].indexOf(pn(i))<0;){var o=In(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sr(e){for(var t=Le(e),n=Jd(e);n&&mx(n)&&In(n).position==="static";)n=Jd(n);return n&&(pn(n)==="html"||pn(n)==="body"&&In(n).position==="static")?t:n||_x(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Eo(e,t,n){return Hs(e,fa(t,n))}function bx(e,t,n){var s=Eo(e,t,n);return s>n?n:s}function ag(){return{top:0,right:0,bottom:0,left:0}}function lg(e){return Object.assign({},ag(),e)}function cg(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var vx=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lg(typeof t!="number"?t:cg(t,Qi))};function yx(e){var t,n=e.state,s=e.name,i=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=dn(n.placement),l=Zc(a),c=[be,Ie].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var d=vx(i.padding,n),f=Jc(o),p=l==="y"?_e:be,m=l==="y"?De:Ie,_=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],v=r[l]-n.rects.reference[l],x=sr(o),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,P=_/2-v/2,A=d[p],y=S-f[u]-d[m],E=S/2-f[u]/2+P,C=Eo(A,E,y),w=l;n.modifiersData[s]=(t={},t[w]=C,t.centerOffset=C-E,t)}}function xx(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||rg(t.elements.popper,i)&&(t.elements.arrow=i))}const ug={name:"arrow",enabled:!0,phase:"main",fn:yx,effect:xx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var wx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ex(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:$i(n*i)/i||0,y:$i(s*i)/i||0}}function Zd(e){var t,n=e.popper,s=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,m=r.y,_=m===void 0?0:m,v=typeof u=="function"?u({x:p,y:_}):{x:p,y:_};p=v.x,_=v.y;var x=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),P=be,A=_e,y=window;if(c){var E=sr(n),C="clientHeight",w="clientWidth";if(E===Le(n)&&(E=gs(n),In(E).position!=="static"&&a==="absolute"&&(C="scrollHeight",w="scrollWidth")),E=E,i===_e||(i===be||i===Ie)&&o===ki){A=De;var $=d&&E===y&&y.visualViewport?y.visualViewport.height:E[C];_-=$-s.height,_*=l?1:-1}if(i===be||(i===_e||i===De)&&o===ki){P=Ie;var D=d&&E===y&&y.visualViewport?y.visualViewport.width:E[w];p-=D-s.width,p*=l?1:-1}}var I=Object.assign({position:a},c&&wx),N=u===!0?Ex({x:p,y:_},Le(n)):{x:p,y:_};if(p=N.x,_=N.y,l){var Q;return Object.assign({},I,(Q={},Q[A]=S?"0":"",Q[P]=x?"0":"",Q.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+_+"px)":"translate3d("+p+"px, "+_+"px, 0)",Q))}return Object.assign({},I,(t={},t[A]=S?_+"px":"",t[P]=x?p+"px":"",t.transform="",t))}function Sx(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:dn(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sx,data:{}};var $r={passive:!0};function Ax(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,o=i===void 0?!0:i,r=s.resize,a=r===void 0?!0:r,l=Le(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,$r)}),a&&l.addEventListener("resize",n.update,$r),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,$r)}),a&&l.removeEventListener("resize",n.update,$r)}}const eu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ax,data:{}};var Cx={left:"right",right:"left",bottom:"top",top:"bottom"};function sa(e){return e.replace(/left|right|bottom|top/g,function(t){return Cx[t]})}var Tx={start:"end",end:"start"};function th(e){return e.replace(/start|end/g,function(t){return Tx[t]})}function nu(e){var t=Le(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function su(e){return Mi(gs(e)).left+nu(e).scrollLeft}function Px(e,t){var n=Le(e),s=gs(e),i=n.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var c=og();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+su(e),y:l}}function kx(e){var t,n=gs(e),s=nu(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Hs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Hs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+su(e),l=-s.scrollTop;return In(i||n).direction==="rtl"&&(a+=Hs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function iu(e){var t=In(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function dg(e){return["html","body","#document"].indexOf(pn(e))>=0?e.ownerDocument.body:Ye(e)&&iu(e)?e:dg(Ba(e))}function So(e,t){var n;t===void 0&&(t=[]);var s=dg(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Le(s),r=i?[o].concat(o.visualViewport||[],iu(s)?s:[]):s,a=t.concat(r);return i?a:a.concat(So(Ba(r)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $x(e,t){var n=Mi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eh(e,t,n){return t===qc?lc(Px(e,n)):Gs(t)?$x(t,n):lc(kx(gs(e)))}function Mx(e){var t=So(Ba(e)),n=["absolute","fixed"].indexOf(In(e).position)>=0,s=n&&Ye(e)?sr(e):e;return Gs(s)?t.filter(function(i){return Gs(i)&&rg(i,s)&&pn(i)!=="body"}):[]}function Ox(e,t,n,s){var i=t==="clippingParents"?Mx(e):[].concat(t),o=[].concat(i,[n]),r=o[0],a=o.reduce(function(l,c){var u=eh(e,c,s);return l.top=Hs(u.top,l.top),l.right=fa(u.right,l.right),l.bottom=fa(u.bottom,l.bottom),l.left=Hs(u.left,l.left),l},eh(e,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function hg(e){var t=e.reference,n=e.element,s=e.placement,i=s?dn(s):null,o=s?Oi(s):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case _e:l={x:r,y:t.y-n.height};break;case De:l={x:r,y:t.y+t.height};break;case Ie:l={x:t.x+t.width,y:a};break;case be:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?Zc(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case qs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ki:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Di(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Yp:a,c=n.rootBoundary,u=c===void 0?qc:c,d=n.elementContext,f=d===void 0?_i:d,p=n.altBoundary,m=p===void 0?!1:p,_=n.padding,v=_===void 0?0:_,x=lg(typeof v!="number"?v:cg(v,Qi)),S=f===_i?qp:_i,P=e.rects.popper,A=e.elements[m?S:f],y=Ox(Gs(A)?A:A.contextElement||gs(e.elements.popper),l,u,r),E=Mi(e.elements.reference),C=hg({reference:E,element:P,strategy:"absolute",placement:i}),w=lc(Object.assign({},P,C)),$=f===_i?w:E,D={top:y.top-$.top+x.top,bottom:$.bottom-y.bottom+x.bottom,left:y.left-$.left+x.left,right:$.right-y.right+x.right},I=e.modifiersData.offset;if(f===_i&&I){var N=I[i];Object.keys(D).forEach(function(Q){var Y=[Ie,De].indexOf(Q)>=0?1:-1,H=[_e,De].indexOf(Q)>=0?"y":"x";D[Q]+=N[H]*Y})}return D}function Dx(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Gc:l,u=Oi(s),d=u?a?rc:rc.filter(function(m){return Oi(m)===u}):Qi,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,_){return m[_]=Di(e,{placement:_,boundary:i,rootBoundary:o,padding:r})[dn(_)],m},{});return Object.keys(p).sort(function(m,_){return p[m]-p[_]})}function Ix(e){if(dn(e)===Fa)return[];var t=sa(e);return[th(e),t,th(t)]}function Lx(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,_=n.allowedAutoPlacements,v=t.options.placement,x=dn(v),S=x===v,P=l||(S||!m?[sa(v)]:Ix(v)),A=[v].concat(P).reduce(function(At,Mt){return At.concat(dn(Mt)===Fa?Dx(t,{placement:Mt,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:_}):Mt)},[]),y=t.rects.reference,E=t.rects.popper,C=new Map,w=!0,$=A[0],D=0;D=0,H=Y?"width":"height",R=Di(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),W=Y?Q?Ie:be:Q?De:_e;y[H]>E[H]&&(W=sa(W));var U=sa(W),rt=[];if(o&&rt.push(R[N]<=0),a&&rt.push(R[W]<=0,R[U]<=0),rt.every(function(At){return At})){$=I,w=!1;break}C.set(I,rt)}if(w)for(var ct=m?3:1,mt=function(Mt){var Ct=A.find(function(j){var nt=C.get(j);if(nt)return nt.slice(0,Mt).every(function(Z){return Z})});if(Ct)return $=Ct,"break"},pt=ct;pt>0;pt--){var Pt=mt(pt);if(Pt==="break")break}t.placement!==$&&(t.modifiersData[s]._skip=!0,t.placement=$,t.reset=!0)}}const fg={name:"flip",enabled:!0,phase:"main",fn:Lx,requiresIfExists:["offset"],data:{_skip:!1}};function nh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sh(e){return[_e,Ie,De,be].some(function(t){return e[t]>=0})}function Rx(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=Di(t,{elementContext:"reference"}),a=Di(t,{altBoundary:!0}),l=nh(r,s),c=nh(a,i,o),u=sh(l),d=sh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const pg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rx};function Nx(e,t,n){var s=dn(e),i=[be,_e].indexOf(s)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[be,Ie].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}function Fx(e){var t=e.state,n=e.options,s=e.name,i=n.offset,o=i===void 0?[0,0]:i,r=Gc.reduce(function(u,d){return u[d]=Nx(d,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=r}const gg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fx};function Bx(e){var t=e.state,n=e.name;t.modifiersData[n]=hg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ou={name:"popperOffsets",enabled:!0,phase:"read",fn:Bx,data:{}};function Vx(e){return e==="x"?"y":"x"}function Hx(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,o=i===void 0?!0:i,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,_=m===void 0?0:m,v=Di(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=dn(t.placement),S=Oi(t.placement),P=!S,A=Zc(x),y=Vx(A),E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(o){var Q,Y=A==="y"?_e:be,H=A==="y"?De:Ie,R=A==="y"?"height":"width",W=E[A],U=W+v[Y],rt=W-v[H],ct=p?-w[R]/2:0,mt=S===qs?C[R]:w[R],pt=S===qs?-w[R]:-C[R],Pt=t.elements.arrow,At=p&&Pt?Jc(Pt):{width:0,height:0},Mt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ag(),Ct=Mt[Y],j=Mt[H],nt=Eo(0,C[R],At[R]),Z=P?C[R]/2-ct-nt-Ct-D.mainAxis:mt-nt-Ct-D.mainAxis,at=P?-C[R]/2+ct+nt+j+D.mainAxis:pt+nt+j+D.mainAxis,F=t.elements.arrow&&sr(t.elements.arrow),T=F?A==="y"?F.clientTop||0:F.clientLeft||0:0,O=(Q=I==null?void 0:I[A])!=null?Q:0,L=W+Z-O-T,V=W+at-O,K=Eo(p?fa(U,L):U,W,p?Hs(rt,V):rt);E[A]=K,N[A]=K-W}if(a){var G,tt=A==="x"?_e:be,J=A==="x"?De:Ie,B=E[y],q=y==="y"?"height":"width",lt=B+v[tt],ft=B-v[J],ut=[_e,be].indexOf(x)!==-1,_t=(G=I==null?void 0:I[y])!=null?G:0,St=ut?lt:B-C[q]-w[q]-_t+D.altAxis,Dt=ut?B+C[q]+w[q]-_t-D.altAxis:ft,Nt=p&&ut?bx(St,B,Dt):Eo(p?St:lt,B,p?Dt:ft);E[y]=Nt,N[y]=Nt-B}t.modifiersData[s]=N}}const mg={name:"preventOverflow",enabled:!0,phase:"main",fn:Hx,requiresIfExists:["offset"]};function jx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wx(e){return e===Le(e)||!Ye(e)?nu(e):jx(e)}function zx(e){var t=e.getBoundingClientRect(),n=$i(t.width)/e.offsetWidth||1,s=$i(t.height)/e.offsetHeight||1;return n!==1||s!==1}function Ux(e,t,n){n===void 0&&(n=!1);var s=Ye(t),i=Ye(t)&&zx(t),o=gs(t),r=Mi(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((pn(t)!=="body"||iu(o))&&(a=Wx(t)),Ye(t)?(l=Mi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=su(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Kx(e){var t=new Map,n=new Set,s=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),s}function Yx(e){var t=Kx(e);return ig.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function qx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gx(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var ih={placement:"bottom",modifiers:[],strategy:"absolute"};function oh(){for(var e=arguments.length,t=new Array(e),n=0;nk[b]})}}return h.default=k,Object.freeze(h)}const i=s(n),o=new Map,r={set(k,h,b){o.has(k)||o.set(k,new Map);const M=o.get(k);if(!M.has(h)&&M.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(M.keys())[0]}.`);return}M.set(h,b)},get(k,h){return o.has(k)&&o.get(k).get(h)||null},remove(k,h){if(!o.has(k))return;const b=o.get(k);b.delete(h),b.size===0&&o.delete(k)}},a=1e6,l=1e3,c="transitionend",u=k=>(k&&window.CSS&&window.CSS.escape&&(k=k.replace(/#([^\s"#']+)/g,(h,b)=>`#${CSS.escape(b)}`)),k),d=k=>k==null?`${k}`:Object.prototype.toString.call(k).match(/\s([a-z]+)/i)[1].toLowerCase(),f=k=>{do k+=Math.floor(Math.random()*a);while(document.getElementById(k));return k},p=k=>{if(!k)return 0;let{transitionDuration:h,transitionDelay:b}=window.getComputedStyle(k);const M=Number.parseFloat(h),z=Number.parseFloat(b);return!M&&!z?0:(h=h.split(",")[0],b=b.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(b))*l)},m=k=>{k.dispatchEvent(new Event(c))},_=k=>!k||typeof k!="object"?!1:(typeof k.jquery<"u"&&(k=k[0]),typeof k.nodeType<"u"),v=k=>_(k)?k.jquery?k[0]:k:typeof k=="string"&&k.length>0?document.querySelector(u(k)):null,x=k=>{if(!_(k)||k.getClientRects().length===0)return!1;const h=getComputedStyle(k).getPropertyValue("visibility")==="visible",b=k.closest("details:not([open])");if(!b)return h;if(b!==k){const M=k.closest("summary");if(M&&M.parentNode!==b||M===null)return!1}return h},S=k=>!k||k.nodeType!==Node.ELEMENT_NODE||k.classList.contains("disabled")?!0:typeof k.disabled<"u"?k.disabled:k.hasAttribute("disabled")&&k.getAttribute("disabled")!=="false",P=k=>{if(!document.documentElement.attachShadow)return null;if(typeof k.getRootNode=="function"){const h=k.getRootNode();return h instanceof ShadowRoot?h:null}return k instanceof ShadowRoot?k:k.parentNode?P(k.parentNode):null},A=()=>{},y=k=>{k.offsetHeight},E=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],w=k=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of C)h()}),C.push(k)):k()},$=()=>document.documentElement.dir==="rtl",D=k=>{w(()=>{const h=E();if(h){const b=k.NAME,M=h.fn[b];h.fn[b]=k.jQueryInterface,h.fn[b].Constructor=k,h.fn[b].noConflict=()=>(h.fn[b]=M,k.jQueryInterface)}})},I=(k,h=[],b=k)=>typeof k=="function"?k(...h):b,N=(k,h,b=!0)=>{if(!b){I(k);return}const z=p(h)+5;let st=!1;const et=({target:Tt})=>{Tt===h&&(st=!0,h.removeEventListener(c,et),I(k))};h.addEventListener(c,et),setTimeout(()=>{st||m(h)},z)},Q=(k,h,b,M)=>{const z=k.length;let st=k.indexOf(h);return st===-1?!b&&M?k[z-1]:k[0]:(st+=b?1:-1,M&&(st=(st+z)%z),k[Math.max(0,Math.min(st,z-1))])},Y=/[^.]*(?=\..*)\.|.*/,H=/\..*/,R=/::\d+$/,W={};let U=1;const rt={mouseenter:"mouseover",mouseleave:"mouseout"},ct=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 mt(k,h){return h&&`${h}::${U++}`||k.uidEvent||U++}function pt(k){const h=mt(k);return k.uidEvent=h,W[h]=W[h]||{},W[h]}function Pt(k,h){return function b(M){return T(M,{delegateTarget:k}),b.oneOff&&F.off(k,M.type,h),h.apply(k,[M])}}function At(k,h,b){return function M(z){const st=k.querySelectorAll(h);for(let{target:et}=z;et&&et!==this;et=et.parentNode)for(const Tt of st)if(Tt===et)return T(z,{delegateTarget:et}),M.oneOff&&F.off(k,z.type,h,b),b.apply(et,[z])}}function Mt(k,h,b=null){return Object.values(k).find(M=>M.callable===h&&M.delegationSelector===b)}function Ct(k,h,b){const M=typeof h=="string",z=M?b:h||b;let st=at(k);return ct.has(st)||(st=k),[M,z,st]}function j(k,h,b,M,z){if(typeof h!="string"||!k)return;let[st,et,Tt]=Ct(h,b,M);h in rt&&(et=(ax=>function(hi){if(!hi.relatedTarget||hi.relatedTarget!==hi.delegateTarget&&!hi.delegateTarget.contains(hi.relatedTarget))return ax.call(this,hi)})(et));const ye=pt(k),Ve=ye[Tt]||(ye[Tt]={}),ae=Mt(Ve,et,st?b:null);if(ae){ae.oneOff=ae.oneOff&&z;return}const sn=mt(et,h.replace(Y,"")),Qe=st?At(k,b,et):Pt(k,et);Qe.delegationSelector=st?b:null,Qe.callable=et,Qe.oneOff=z,Qe.uidEvent=sn,Ve[sn]=Qe,k.addEventListener(Tt,Qe,st)}function nt(k,h,b,M,z){const st=Mt(h[b],M,z);st&&(k.removeEventListener(b,st,!!z),delete h[b][st.uidEvent])}function Z(k,h,b,M){const z=h[b]||{};for(const[st,et]of Object.entries(z))st.includes(M)&&nt(k,h,b,et.callable,et.delegationSelector)}function at(k){return k=k.replace(H,""),rt[k]||k}const F={on(k,h,b,M){j(k,h,b,M,!1)},one(k,h,b,M){j(k,h,b,M,!0)},off(k,h,b,M){if(typeof h!="string"||!k)return;const[z,st,et]=Ct(h,b,M),Tt=et!==h,ye=pt(k),Ve=ye[et]||{},ae=h.startsWith(".");if(typeof st<"u"){if(!Object.keys(Ve).length)return;nt(k,ye,et,st,z?b:null);return}if(ae)for(const sn of Object.keys(ye))Z(k,ye,sn,h.slice(1));for(const[sn,Qe]of Object.entries(Ve)){const Pr=sn.replace(R,"");(!Tt||h.includes(Pr))&&nt(k,ye,et,Qe.callable,Qe.delegationSelector)}},trigger(k,h,b){if(typeof h!="string"||!k)return null;const M=E(),z=at(h),st=h!==z;let et=null,Tt=!0,ye=!0,Ve=!1;st&&M&&(et=M.Event(h,b),M(k).trigger(et),Tt=!et.isPropagationStopped(),ye=!et.isImmediatePropagationStopped(),Ve=et.isDefaultPrevented());const ae=T(new Event(h,{bubbles:Tt,cancelable:!0}),b);return Ve&&ae.preventDefault(),ye&&k.dispatchEvent(ae),ae.defaultPrevented&&et&&et.preventDefault(),ae}};function T(k,h={}){for(const[b,M]of Object.entries(h))try{k[b]=M}catch{Object.defineProperty(k,b,{configurable:!0,get(){return M}})}return k}function O(k){if(k==="true")return!0;if(k==="false")return!1;if(k===Number(k).toString())return Number(k);if(k===""||k==="null")return null;if(typeof k!="string")return k;try{return JSON.parse(decodeURIComponent(k))}catch{return k}}function L(k){return k.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const V={setDataAttribute(k,h,b){k.setAttribute(`data-bs-${L(h)}`,b)},removeDataAttribute(k,h){k.removeAttribute(`data-bs-${L(h)}`)},getDataAttributes(k){if(!k)return{};const h={},b=Object.keys(k.dataset).filter(M=>M.startsWith("bs")&&!M.startsWith("bsConfig"));for(const M of b){let z=M.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),h[z]=O(k.dataset[M])}return h},getDataAttribute(k,h){return O(k.getAttribute(`data-bs-${L(h)}`))}};class K{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(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,b){const M=_(b)?V.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof M=="object"?M:{},..._(b)?V.getDataAttributes(b):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,b=this.constructor.DefaultType){for(const[M,z]of Object.entries(b)){const st=h[M],et=_(st)?"element":d(st);if(!new RegExp(z).test(et))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${M}" provided type "${et}" but expected type "${z}".`)}}}const G="5.3.2";class tt extends K{constructor(h,b){super(),h=v(h),h&&(this._element=h,this._config=this._getConfig(b),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,b,M=!0){N(h,b,M)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(v(h),this.DATA_KEY)}static getOrCreateInstance(h,b={}){return this.getInstance(h)||new this(h,typeof b=="object"?b:null)}static get VERSION(){return G}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const J=k=>{let h=k.getAttribute("data-bs-target");if(!h||h==="#"){let b=k.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),h=b&&b!=="#"?u(b.trim()):null}return h},B={find(k,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,k))},findOne(k,h=document.documentElement){return Element.prototype.querySelector.call(h,k)},children(k,h){return[].concat(...k.children).filter(b=>b.matches(h))},parents(k,h){const b=[];let M=k.parentNode.closest(h);for(;M;)b.push(M),M=M.parentNode.closest(h);return b},prev(k,h){let b=k.previousElementSibling;for(;b;){if(b.matches(h))return[b];b=b.previousElementSibling}return[]},next(k,h){let b=k.nextElementSibling;for(;b;){if(b.matches(h))return[b];b=b.nextElementSibling}return[]},focusableChildren(k){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(h,k).filter(b=>!S(b)&&x(b))},getSelectorFromElement(k){const h=J(k);return h&&B.findOne(h)?h:null},getElementFromSelector(k){const h=J(k);return h?B.findOne(h):null},getMultipleElementsFromSelector(k){const h=J(k);return h?B.find(h):[]}},q=(k,h="hide")=>{const b=`click.dismiss${k.EVENT_KEY}`,M=k.NAME;F.on(document,b,`[data-bs-dismiss="${M}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),S(this))return;const st=B.getElementFromSelector(this)||this.closest(`.${M}`);k.getOrCreateInstance(st)[h]()})},lt="alert",ut=".bs.alert",_t=`close${ut}`,St=`closed${ut}`,Ot="fade",Nt="show";class qt extends tt{static get NAME(){return lt}close(){if(F.trigger(this._element,_t).defaultPrevented)return;this._element.classList.remove(Nt);const b=this._element.classList.contains(Ot);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),F.trigger(this._element,St),this.dispose()}static jQueryInterface(h){return this.each(function(){const b=qt.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}q(qt,"close"),D(qt);const Te="button",gr=".bs.button",xs=".data-api",mr="active",he='[data-bs-toggle="button"]',Fe=`click${gr}${xs}`;class Bn extends tt{static get NAME(){return Te}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(mr))}static jQueryInterface(h){return this.each(function(){const b=Bn.getOrCreateInstance(this);h==="toggle"&&b[h]()})}}F.on(document,Fe,he,k=>{k.preventDefault();const h=k.target.closest(he);Bn.getOrCreateInstance(h).toggle()}),D(Bn);const Mb="swipe",ii=".bs.swipe",Ob=`touchstart${ii}`,Db=`touchmove${ii}`,Ib=`touchend${ii}`,Lb=`pointerdown${ii}`,Rb=`pointerup${ii}`,Nb="touch",Fb="pen",Bb="pointer-event",Vb=40,Hb={endCallback:null,leftCallback:null,rightCallback:null},jb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _r extends K{constructor(h,b){super(),this._element=h,!(!h||!_r.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Hb}static get DefaultType(){return jb}static get NAME(){return Mb}dispose(){F.off(this._element,ii)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=Vb)return;const b=h/this._deltaX;this._deltaX=0,b&&I(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,Lb,h=>this._start(h)),F.on(this._element,Rb,h=>this._end(h)),this._element.classList.add(Bb)):(F.on(this._element,Ob,h=>this._start(h)),F.on(this._element,Db,h=>this._move(h)),F.on(this._element,Ib,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===Fb||h.pointerType===Nb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Wb="carousel",Vn=".bs.carousel",dd=".data-api",zb="ArrowLeft",Ub="ArrowRight",Kb=500,io="next",oi="prev",ri="left",br="right",Yb=`slide${Vn}`,gl=`slid${Vn}`,qb=`keydown${Vn}`,Gb=`mouseenter${Vn}`,Xb=`mouseleave${Vn}`,Qb=`dragstart${Vn}`,Jb=`load${Vn}${dd}`,Zb=`click${Vn}${dd}`,hd="carousel",vr="active",tv="slide",ev="carousel-item-end",nv="carousel-item-start",sv="carousel-item-next",iv="carousel-item-prev",fd=".active",pd=".carousel-item",ov=fd+pd,rv=".carousel-item img",av=".carousel-indicators",lv="[data-bs-slide], [data-bs-slide-to]",cv='[data-bs-ride="carousel"]',uv={[zb]:br,[Ub]:ri},dv={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},hv={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ai extends tt{constructor(h,b){super(h,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(av,this._element),this._addEventListeners(),this._config.ride===hd&&this.cycle()}static get Default(){return dv}static get DefaultType(){return hv}static get NAME(){return Wb}next(){this._slide(io)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(oi)}pause(){this._isSliding&&m(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){F.one(this._element,gl,()=>this.cycle());return}this.cycle()}}to(h){const b=this._getItems();if(h>b.length-1||h<0)return;if(this._isSliding){F.one(this._element,gl,()=>this.to(h));return}const M=this._getItemIndex(this._getActive());if(M===h)return;const z=h>M?io:oi;this._slide(z,b[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&F.on(this._element,qb,h=>this._keydown(h)),this._config.pause==="hover"&&(F.on(this._element,Gb,()=>this.pause()),F.on(this._element,Xb,()=>this._maybeEnableCycle())),this._config.touch&&_r.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const M of B.find(rv,this._element))F.on(M,Qb,z=>z.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(ri)),rightCallback:()=>this._slide(this._directionToOrder(br)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Kb+this._config.interval))}};this._swipeHelper=new _r(this._element,b)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const b=uv[h.key];b&&(h.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const b=B.findOne(fd,this._indicatorsElement);b.classList.remove(vr),b.removeAttribute("aria-current");const M=B.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);M&&(M.classList.add(vr),M.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const b=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(h,b=null){if(this._isSliding)return;const M=this._getActive(),z=h===io,st=b||Q(this._getItems(),M,z,this._config.wrap);if(st===M)return;const et=this._getItemIndex(st),Tt=Pr=>F.trigger(this._element,Pr,{relatedTarget:st,direction:this._orderToDirection(h),from:this._getItemIndex(M),to:et});if(Tt(Yb).defaultPrevented||!M||!st)return;const Ve=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(et),this._activeElement=st;const ae=z?nv:ev,sn=z?sv:iv;st.classList.add(sn),y(st),M.classList.add(ae),st.classList.add(ae);const Qe=()=>{st.classList.remove(ae,sn),st.classList.add(vr),M.classList.remove(vr,sn,ae),this._isSliding=!1,Tt(gl)};this._queueCallback(Qe,M,this._isAnimated()),Ve&&this.cycle()}_isAnimated(){return this._element.classList.contains(tv)}_getActive(){return B.findOne(ov,this._element)}_getItems(){return B.find(pd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return $()?h===ri?oi:io:h===ri?io:oi}_orderToDirection(h){return $()?h===oi?ri:br:h===oi?br:ri}static jQueryInterface(h){return this.each(function(){const b=ai.getOrCreateInstance(this,h);if(typeof h=="number"){b.to(h);return}if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,Zb,lv,function(k){const h=B.getElementFromSelector(this);if(!h||!h.classList.contains(hd))return;k.preventDefault();const b=ai.getOrCreateInstance(h),M=this.getAttribute("data-bs-slide-to");if(M){b.to(M),b._maybeEnableCycle();return}if(V.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),F.on(window,Jb,()=>{const k=B.find(cv);for(const h of k)ai.getOrCreateInstance(h)}),D(ai);const fv="collapse",oo=".bs.collapse",pv=".data-api",gv=`show${oo}`,mv=`shown${oo}`,_v=`hide${oo}`,bv=`hidden${oo}`,vv=`click${oo}${pv}`,ml="show",li="collapse",yr="collapsing",yv="collapsed",xv=`:scope .${li} .${li}`,wv="collapse-horizontal",Ev="width",Sv="height",Av=".collapse.show, .collapse.collapsing",_l='[data-bs-toggle="collapse"]',Cv={parent:null,toggle:!0},Tv={parent:"(null|element)",toggle:"boolean"};class ci extends tt{constructor(h,b){super(h,b),this._isTransitioning=!1,this._triggerArray=[];const M=B.find(_l);for(const z of M){const st=B.getSelectorFromElement(z),et=B.find(st).filter(Tt=>Tt===this._element);st!==null&&et.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Cv}static get DefaultType(){return Tv}static get NAME(){return fv}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(Av).filter(Tt=>Tt!==this._element).map(Tt=>ci.getOrCreateInstance(Tt,{toggle:!1}))),h.length&&h[0]._isTransitioning||F.trigger(this._element,gv).defaultPrevented)return;for(const Tt of h)Tt.hide();const M=this._getDimension();this._element.classList.remove(li),this._element.classList.add(yr),this._element.style[M]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const z=()=>{this._isTransitioning=!1,this._element.classList.remove(yr),this._element.classList.add(li,ml),this._element.style[M]="",F.trigger(this._element,mv)},et=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(z,this._element,!0),this._element.style[M]=`${this._element[et]}px`}hide(){if(this._isTransitioning||!this._isShown()||F.trigger(this._element,_v).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,y(this._element),this._element.classList.add(yr),this._element.classList.remove(li,ml);for(const z of this._triggerArray){const st=B.getElementFromSelector(z);st&&!this._isShown(st)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0;const M=()=>{this._isTransitioning=!1,this._element.classList.remove(yr),this._element.classList.add(li),F.trigger(this._element,bv)};this._element.style[b]="",this._queueCallback(M,this._element,!0)}_isShown(h=this._element){return h.classList.contains(ml)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=v(h.parent),h}_getDimension(){return this._element.classList.contains(wv)?Ev:Sv}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(_l);for(const b of h){const M=B.getElementFromSelector(b);M&&this._addAriaAndCollapsedClass([b],this._isShown(M))}}_getFirstLevelChildren(h){const b=B.find(xv,this._config.parent);return B.find(h,this._config.parent).filter(M=>!b.includes(M))}_addAriaAndCollapsedClass(h,b){if(h.length)for(const M of h)M.classList.toggle(yv,!b),M.setAttribute("aria-expanded",b)}static jQueryInterface(h){const b={};return typeof h=="string"&&/show|hide/.test(h)&&(b.toggle=!1),this.each(function(){const M=ci.getOrCreateInstance(this,b);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h]()}})}}F.on(document,vv,_l,function(k){(k.target.tagName==="A"||k.delegateTarget&&k.delegateTarget.tagName==="A")&&k.preventDefault();for(const h of B.getMultipleElementsFromSelector(this))ci.getOrCreateInstance(h,{toggle:!1}).toggle()}),D(ci);const gd="dropdown",ws=".bs.dropdown",bl=".data-api",Pv="Escape",md="Tab",kv="ArrowUp",_d="ArrowDown",$v=2,Mv=`hide${ws}`,Ov=`hidden${ws}`,Dv=`show${ws}`,Iv=`shown${ws}`,bd=`click${ws}${bl}`,vd=`keydown${ws}${bl}`,Lv=`keyup${ws}${bl}`,ui="show",Rv="dropup",Nv="dropend",Fv="dropstart",Bv="dropup-center",Vv="dropdown-center",Es='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hv=`${Es}.${ui}`,xr=".dropdown-menu",jv=".navbar",Wv=".navbar-nav",zv=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Uv=$()?"top-end":"top-start",Kv=$()?"top-start":"top-end",Yv=$()?"bottom-end":"bottom-start",qv=$()?"bottom-start":"bottom-end",Gv=$()?"left-start":"right-start",Xv=$()?"right-start":"left-start",Qv="top",Jv="bottom",Zv={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ty={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xe extends tt{constructor(h,b){super(h,b),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,xr)[0]||B.prev(this._element,xr)[0]||B.findOne(xr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Zv}static get DefaultType(){return ty}static get NAME(){return gd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!F.trigger(this._element,Dv,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Wv))for(const M of[].concat(...document.body.children))F.on(M,"mouseover",A);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ui),this._element.classList.add(ui),F.trigger(this._element,Iv,h)}}hide(){if(S(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!F.trigger(this._element,Mv,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const M of[].concat(...document.body.children))F.off(M,"mouseover",A);this._popper&&this._popper.destroy(),this._menu.classList.remove(ui),this._element.classList.remove(ui),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,Ov,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!_(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${gd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:_(this._config.reference)?h=v(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,b)}_isShown(){return this._menu.classList.contains(ui)}_getPlacement(){const h=this._parent;if(h.classList.contains(Nv))return Gv;if(h.classList.contains(Fv))return Xv;if(h.classList.contains(Bv))return Qv;if(h.classList.contains(Vv))return Jv;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(Rv)?b?Kv:Uv:b?qv:Yv}_detectNavbar(){return this._element.closest(jv)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(V.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...I(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:b}){const M=B.find(zv,this._menu).filter(z=>x(z));M.length&&Q(M,b,h===_d,!M.includes(b)).focus()}static jQueryInterface(h){return this.each(function(){const b=Xe.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}static clearMenus(h){if(h.button===$v||h.type==="keyup"&&h.key!==md)return;const b=B.find(Hv);for(const M of b){const z=Xe.getInstance(M);if(!z||z._config.autoClose===!1)continue;const st=h.composedPath(),et=st.includes(z._menu);if(st.includes(z._element)||z._config.autoClose==="inside"&&!et||z._config.autoClose==="outside"&&et||z._menu.contains(h.target)&&(h.type==="keyup"&&h.key===md||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const Tt={relatedTarget:z._element};h.type==="click"&&(Tt.clickEvent=h),z._completeHide(Tt)}}static dataApiKeydownHandler(h){const b=/input|textarea/i.test(h.target.tagName),M=h.key===Pv,z=[kv,_d].includes(h.key);if(!z&&!M||b&&!M)return;h.preventDefault();const st=this.matches(Es)?this:B.prev(this,Es)[0]||B.next(this,Es)[0]||B.findOne(Es,h.delegateTarget.parentNode),et=Xe.getOrCreateInstance(st);if(z){h.stopPropagation(),et.show(),et._selectMenuItem(h);return}et._isShown()&&(h.stopPropagation(),et.hide(),st.focus())}}F.on(document,vd,Es,Xe.dataApiKeydownHandler),F.on(document,vd,xr,Xe.dataApiKeydownHandler),F.on(document,bd,Xe.clearMenus),F.on(document,Lv,Xe.clearMenus),F.on(document,bd,Es,function(k){k.preventDefault(),Xe.getOrCreateInstance(this).toggle()}),D(Xe);const yd="backdrop",ey="fade",xd="show",wd=`mousedown.bs.${yd}`,ny={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},sy={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ed extends K{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return ny}static get DefaultType(){return sy}static get NAME(){return yd}show(h){if(!this._config.isVisible){I(h);return}this._append();const b=this._getElement();this._config.isAnimated&&y(b),b.classList.add(xd),this._emulateAnimation(()=>{I(h)})}hide(h){if(!this._config.isVisible){I(h);return}this._getElement().classList.remove(xd),this._emulateAnimation(()=>{this.dispose(),I(h)})}dispose(){this._isAppended&&(F.off(this._element,wd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(ey),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=v(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),F.on(h,wd,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const iy="focustrap",wr=".bs.focustrap",oy=`focusin${wr}`,ry=`keydown.tab${wr}`,ay="Tab",ly="forward",Sd="backward",cy={autofocus:!0,trapElement:null},uy={autofocus:"boolean",trapElement:"element"};class Ad extends K{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cy}static get DefaultType(){return uy}static get NAME(){return iy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,wr),F.on(document,oy,h=>this._handleFocusin(h)),F.on(document,ry,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,wr))}_handleFocusin(h){const{trapElement:b}=this._config;if(h.target===document||h.target===b||b.contains(h.target))return;const M=B.focusableChildren(b);M.length===0?b.focus():this._lastTabNavDirection===Sd?M[M.length-1].focus():M[0].focus()}_handleKeydown(h){h.key===ay&&(this._lastTabNavDirection=h.shiftKey?Sd:ly)}}const Cd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Td=".sticky-top",Er="padding-right",Pd="margin-right";class vl{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Er,b=>b+h),this._setElementAttributes(Cd,Er,b=>b+h),this._setElementAttributes(Td,Pd,b=>b-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Er),this._resetElementAttributes(Cd,Er),this._resetElementAttributes(Td,Pd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,b,M){const z=this.getWidth(),st=et=>{if(et!==this._element&&window.innerWidth>et.clientWidth+z)return;this._saveInitialAttribute(et,b);const Tt=window.getComputedStyle(et).getPropertyValue(b);et.style.setProperty(b,`${M(Number.parseFloat(Tt))}px`)};this._applyManipulationCallback(h,st)}_saveInitialAttribute(h,b){const M=h.style.getPropertyValue(b);M&&V.setDataAttribute(h,b,M)}_resetElementAttributes(h,b){const M=z=>{const st=V.getDataAttribute(z,b);if(st===null){z.style.removeProperty(b);return}V.removeDataAttribute(z,b),z.style.setProperty(b,st)};this._applyManipulationCallback(h,M)}_applyManipulationCallback(h,b){if(_(h)){b(h);return}for(const M of B.find(h,this._element))b(M)}}const dy="modal",Be=".bs.modal",hy=".data-api",fy="Escape",py=`hide${Be}`,gy=`hidePrevented${Be}`,kd=`hidden${Be}`,$d=`show${Be}`,my=`shown${Be}`,_y=`resize${Be}`,by=`click.dismiss${Be}`,vy=`mousedown.dismiss${Be}`,yy=`keydown.dismiss${Be}`,xy=`click${Be}${hy}`,Md="modal-open",wy="fade",Od="show",yl="modal-static",Ey=".modal.show",Sy=".modal-dialog",Ay=".modal-body",Cy='[data-bs-toggle="modal"]',Ty={backdrop:!0,focus:!0,keyboard:!0},Py={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ss extends tt{constructor(h,b){super(h,b),this._dialog=B.findOne(Sy,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new vl,this._addEventListeners()}static get Default(){return Ty}static get DefaultType(){return Py}static get NAME(){return dy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||F.trigger(this._element,$d,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Md),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||F.trigger(this._element,py).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Od),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){F.off(window,Be),F.off(this._dialog,Be),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ed({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_showElement(h){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 b=B.findOne(Ay,this._dialog);b&&(b.scrollTop=0),y(this._element),this._element.classList.add(Od);const M=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,my,{relatedTarget:h})};this._queueCallback(M,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,yy,h=>{if(h.key===fy){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),F.on(window,_y,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),F.on(this._element,vy,h=>{F.one(this._element,by,b=>{if(!(this._element!==h.target||this._element!==b.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(Md),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,kd)})}_isAnimated(){return this._element.classList.contains(wy)}_triggerBackdropTransition(){if(F.trigger(this._element,gy).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,M=this._element.style.overflowY;M==="hidden"||this._element.classList.contains(yl)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(yl),this._queueCallback(()=>{this._element.classList.remove(yl),this._queueCallback(()=>{this._element.style.overflowY=M},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),M=b>0;if(M&&!h){const z=$()?"paddingLeft":"paddingRight";this._element.style[z]=`${b}px`}if(!M&&h){const z=$()?"paddingRight":"paddingLeft";this._element.style[z]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,b){return this.each(function(){const M=Ss.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h](b)}})}}F.on(document,xy,Cy,function(k){const h=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&k.preventDefault(),F.one(h,$d,z=>{z.defaultPrevented||F.one(h,kd,()=>{x(this)&&this.focus()})});const b=B.findOne(Ey);b&&Ss.getInstance(b).hide(),Ss.getOrCreateInstance(h).toggle(this)}),q(Ss),D(Ss);const ky="offcanvas",bn=".bs.offcanvas",Dd=".data-api",$y=`load${bn}${Dd}`,My="Escape",Id="show",Ld="showing",Rd="hiding",Oy="offcanvas-backdrop",Nd=".offcanvas.show",Dy=`show${bn}`,Iy=`shown${bn}`,Ly=`hide${bn}`,Fd=`hidePrevented${bn}`,Bd=`hidden${bn}`,Ry=`resize${bn}`,Ny=`click${bn}${Dd}`,Fy=`keydown.dismiss${bn}`,By='[data-bs-toggle="offcanvas"]',Vy={backdrop:!0,keyboard:!0,scroll:!1},Hy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vn extends tt{constructor(h,b){super(h,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Vy}static get DefaultType(){return Hy}static get NAME(){return ky}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||F.trigger(this._element,Dy,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new vl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ld);const M=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Id),this._element.classList.remove(Ld),F.trigger(this._element,Iy,{relatedTarget:h})};this._queueCallback(M,this._element,!0)}hide(){if(!this._isShown||F.trigger(this._element,Ly).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rd),this._backdrop.hide();const b=()=>{this._element.classList.remove(Id,Rd),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new vl().reset(),F.trigger(this._element,Bd)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){F.trigger(this._element,Fd);return}this.hide()},b=!!this._config.backdrop;return new Ed({className:Oy,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?h:null})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_addEventListeners(){F.on(this._element,Fy,h=>{if(h.key===My){if(this._config.keyboard){this.hide();return}F.trigger(this._element,Fd)}})}static jQueryInterface(h){return this.each(function(){const b=vn.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}F.on(document,Ny,By,function(k){const h=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&k.preventDefault(),S(this))return;F.one(h,Bd,()=>{x(this)&&this.focus()});const b=B.findOne(Nd);b&&b!==h&&vn.getInstance(b).hide(),vn.getOrCreateInstance(h).toggle(this)}),F.on(window,$y,()=>{for(const k of B.find(Nd))vn.getOrCreateInstance(k).show()}),F.on(window,Ry,()=>{for(const k of B.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(k).position!=="fixed"&&vn.getOrCreateInstance(k).hide()}),q(vn),D(vn);const Vd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},jy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,zy=(k,h)=>{const b=k.nodeName.toLowerCase();return h.includes(b)?jy.has(b)?!!Wy.test(k.nodeValue):!0:h.filter(M=>M instanceof RegExp).some(M=>M.test(b))};function Uy(k,h,b){if(!k.length)return k;if(b&&typeof b=="function")return b(k);const z=new window.DOMParser().parseFromString(k,"text/html"),st=[].concat(...z.body.querySelectorAll("*"));for(const et of st){const Tt=et.nodeName.toLowerCase();if(!Object.keys(h).includes(Tt)){et.remove();continue}const ye=[].concat(...et.attributes),Ve=[].concat(h["*"]||[],h[Tt]||[]);for(const ae of ye)zy(ae,Ve)||et.removeAttribute(ae.nodeName)}return z.body.innerHTML}const Ky="TemplateFactory",Yy={allowList:Vd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},qy={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Gy={entry:"(string|element|function|null)",selector:"(string|element)"};class Xy extends K{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return Yy}static get DefaultType(){return qy}static get NAME(){return Ky}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[z,st]of Object.entries(this._config.content))this._setContent(h,st,z);const b=h.children[0],M=this._resolvePossibleFunction(this._config.extraClass);return M&&b.classList.add(...M.split(" ")),b}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[b,M]of Object.entries(h))super._typeCheckConfig({selector:b,entry:M},Gy)}_setContent(h,b,M){const z=B.findOne(M,h);if(z){if(b=this._resolvePossibleFunction(b),!b){z.remove();return}if(_(b)){this._putElementInTemplate(v(b),z);return}if(this._config.html){z.innerHTML=this._maybeSanitize(b);return}z.textContent=b}}_maybeSanitize(h){return this._config.sanitize?Uy(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return I(h,[this])}_putElementInTemplate(h,b){if(this._config.html){b.innerHTML="",b.append(h);return}b.textContent=h.textContent}}const Qy="tooltip",Jy=new Set(["sanitize","allowList","sanitizeFn"]),xl="fade",Zy="modal",Sr="show",t0=".tooltip-inner",Hd=`.${Zy}`,jd="hide.bs.modal",ro="hover",wl="focus",e0="click",n0="manual",s0="hide",i0="hidden",o0="show",r0="shown",a0="inserted",l0="click",c0="focusin",u0="focusout",d0="mouseenter",h0="mouseleave",f0={AUTO:"auto",TOP:"top",RIGHT:$()?"left":"right",BOTTOM:"bottom",LEFT:$()?"right":"left"},p0={allowList:Vd,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},g0={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 As extends tt{constructor(h,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,b),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 p0}static get DefaultType(){return g0}static get NAME(){return Qy}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),F.off(this._element.closest(Hd),jd,this._hideModalHandler),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 h=F.trigger(this._element,this.constructor.eventName(o0)),M=(P(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!M)return;this._disposePopper();const z=this._getTipElement();this._element.setAttribute("aria-describedby",z.getAttribute("id"));const{container:st}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(st.append(z),F.trigger(this._element,this.constructor.eventName(a0))),this._popper=this._createPopper(z),z.classList.add(Sr),"ontouchstart"in document.documentElement)for(const Tt of[].concat(...document.body.children))F.on(Tt,"mouseover",A);const et=()=>{F.trigger(this._element,this.constructor.eventName(r0)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(et,this.tip,this._isAnimated())}hide(){if(!this._isShown()||F.trigger(this._element,this.constructor.eventName(s0)).defaultPrevented)return;if(this._getTipElement().classList.remove(Sr),"ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))F.off(z,"mouseover",A);this._activeTrigger[e0]=!1,this._activeTrigger[wl]=!1,this._activeTrigger[ro]=!1,this._isHovered=null;const M=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(i0)))};this._queueCallback(M,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(h){const b=this._getTemplateFactory(h).toHtml();if(!b)return null;b.classList.remove(xl,Sr),b.classList.add(`bs-${this.constructor.NAME}-auto`);const M=f(this.constructor.NAME).toString();return b.setAttribute("id",M),this._isAnimated()&&b.classList.add(xl),b}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new Xy({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[t0]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(xl)}_isShown(){return this.tip&&this.tip.classList.contains(Sr)}_createPopper(h){const b=I(this._config.placement,[this,h,this._element]),M=f0[b.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(M))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_resolvePossibleFunction(h){return I(h,[this._element])}_getPopperConfig(h){const b={placement:h,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:M=>{this._getTipElement().setAttribute("data-popper-placement",M.state.placement)}}]};return{...b,...I(this._config.popperConfig,[b])}}_setListeners(){const h=this._config.trigger.split(" ");for(const b of h)if(b==="click")F.on(this._element,this.constructor.eventName(l0),this._config.selector,M=>{this._initializeOnDelegatedTarget(M).toggle()});else if(b!==n0){const M=b===ro?this.constructor.eventName(d0):this.constructor.eventName(c0),z=b===ro?this.constructor.eventName(h0):this.constructor.eventName(u0);F.on(this._element,M,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusin"?wl:ro]=!0,et._enter()}),F.on(this._element,z,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusout"?wl:ro]=et._element.contains(st.relatedTarget),et._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Hd),jd,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),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(h,b){clearTimeout(this._timeout),this._timeout=setTimeout(h,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const b=V.getDataAttributes(this._element);for(const M of Object.keys(b))Jy.has(M)&&delete b[M];return h={...b,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:v(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[b,M]of Object.entries(this._config))this.constructor.Default[b]!==M&&(h[b]=M);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const b=As.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(As);const m0="popover",_0=".popover-header",b0=".popover-body",v0={...As.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},y0={...As.DefaultType,content:"(null|string|element|function)"};class Ar extends As{static get Default(){return v0}static get DefaultType(){return y0}static get NAME(){return m0}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_0]:this._getTitle(),[b0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const b=Ar.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(Ar);const x0="scrollspy",El=".bs.scrollspy",w0=".data-api",E0=`activate${El}`,Wd=`click${El}`,S0=`load${El}${w0}`,A0="dropdown-item",di="active",C0='[data-bs-spy="scroll"]',Sl="[href]",T0=".nav, .list-group",zd=".nav-link",P0=`${zd}, .nav-item > ${zd}, .list-group-item`,k0=".dropdown",$0=".dropdown-toggle",M0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},O0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ao extends tt{constructor(h,b){super(h,b),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 M0}static get DefaultType(){return O0}static get NAME(){return x0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=v(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(b=>Number.parseFloat(b))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,Wd),F.on(this._config.target,Wd,Sl,h=>{const b=this._observableSections.get(h.target.hash);if(b){h.preventDefault();const M=this._rootElement||window,z=b.offsetTop-this._element.offsetTop;if(M.scrollTo){M.scrollTo({top:z,behavior:"smooth"});return}M.scrollTop=z}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),h)}_observerCallback(h){const b=et=>this._targetLinks.get(`#${et.target.id}`),M=et=>{this._previousScrollData.visibleEntryTop=et.target.offsetTop,this._process(b(et))},z=(this._rootElement||document.documentElement).scrollTop,st=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const et of h){if(!et.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(et));continue}const Tt=et.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(st&&Tt){if(M(et),!z)return;continue}!st&&!Tt&&M(et)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=B.find(Sl,this._config.target);for(const b of h){if(!b.hash||S(b))continue;const M=B.findOne(decodeURI(b.hash),this._element);x(M)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,M))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(di),this._activateParents(h),F.trigger(this._element,E0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(A0)){B.findOne($0,h.closest(k0)).classList.add(di);return}for(const b of B.parents(h,T0))for(const M of B.prev(b,P0))M.classList.add(di)}_clearActiveClass(h){h.classList.remove(di);const b=B.find(`${Sl}.${di}`,h);for(const M of b)M.classList.remove(di)}static jQueryInterface(h){return this.each(function(){const b=ao.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(window,S0,()=>{for(const k of B.find(C0))ao.getOrCreateInstance(k)}),D(ao);const D0="tab",Cs=".bs.tab",I0=`hide${Cs}`,L0=`hidden${Cs}`,R0=`show${Cs}`,N0=`shown${Cs}`,F0=`click${Cs}`,B0=`keydown${Cs}`,V0=`load${Cs}`,H0="ArrowLeft",Ud="ArrowRight",j0="ArrowUp",Kd="ArrowDown",Al="Home",Yd="End",Ts="active",qd="fade",Cl="show",W0="dropdown",Gd=".dropdown-toggle",z0=".dropdown-menu",Tl=`:not(${Gd})`,U0='.list-group, .nav, [role="tablist"]',K0=".nav-item, .list-group-item",Y0=`.nav-link${Tl}, .list-group-item${Tl}, [role="tab"]${Tl}`,Xd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Pl=`${Y0}, ${Xd}`,q0=`.${Ts}[data-bs-toggle="tab"], .${Ts}[data-bs-toggle="pill"], .${Ts}[data-bs-toggle="list"]`;class Ps extends tt{constructor(h){super(h),this._parent=this._element.closest(U0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,B0,b=>this._keydown(b)))}static get NAME(){return D0}show(){const h=this._element;if(this._elemIsActive(h))return;const b=this._getActiveElem(),M=b?F.trigger(b,I0,{relatedTarget:h}):null;F.trigger(h,R0,{relatedTarget:b}).defaultPrevented||M&&M.defaultPrevented||(this._deactivate(b,h),this._activate(h,b))}_activate(h,b){if(!h)return;h.classList.add(Ts),this._activate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add(Cl);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),F.trigger(h,N0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_deactivate(h,b){if(!h)return;h.classList.remove(Ts),h.blur(),this._deactivate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove(Cl);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),F.trigger(h,L0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_keydown(h){if(![H0,Ud,j0,Kd,Al,Yd].includes(h.key))return;h.stopPropagation(),h.preventDefault();const b=this._getChildren().filter(z=>!S(z));let M;if([Al,Yd].includes(h.key))M=b[h.key===Al?0:b.length-1];else{const z=[Ud,Kd].includes(h.key);M=Q(b,h.target,z,!0)}M&&(M.focus({preventScroll:!0}),Ps.getOrCreateInstance(M).show())}_getChildren(){return B.find(Pl,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,b){this._setAttributeIfNotExists(h,"role","tablist");for(const M of b)this._setInitialAttributesOnChild(M)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const b=this._elemIsActive(h),M=this._getOuterElement(h);h.setAttribute("aria-selected",b),M!==h&&this._setAttributeIfNotExists(M,"role","presentation"),b||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const b=B.getElementFromSelector(h);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,b){const M=this._getOuterElement(h);if(!M.classList.contains(W0))return;const z=(st,et)=>{const Tt=B.findOne(st,M);Tt&&Tt.classList.toggle(et,b)};z(Gd,Ts),z(z0,Cl),M.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(h,b,M){h.hasAttribute(b)||h.setAttribute(b,M)}_elemIsActive(h){return h.classList.contains(Ts)}_getInnerElement(h){return h.matches(Pl)?h:B.findOne(Pl,h)}_getOuterElement(h){return h.closest(K0)||h}static jQueryInterface(h){return this.each(function(){const b=Ps.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,F0,Xd,function(k){["A","AREA"].includes(this.tagName)&&k.preventDefault(),!S(this)&&Ps.getOrCreateInstance(this).show()}),F.on(window,V0,()=>{for(const k of B.find(q0))Ps.getOrCreateInstance(k)}),D(Ps);const G0="toast",Hn=".bs.toast",X0=`mouseover${Hn}`,Q0=`mouseout${Hn}`,J0=`focusin${Hn}`,Z0=`focusout${Hn}`,tx=`hide${Hn}`,ex=`hidden${Hn}`,nx=`show${Hn}`,sx=`shown${Hn}`,ix="fade",Qd="hide",Cr="show",Tr="showing",ox={animation:"boolean",autohide:"boolean",delay:"number"},rx={animation:!0,autohide:!0,delay:5e3};class lo extends tt{constructor(h,b){super(h,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return rx}static get DefaultType(){return ox}static get NAME(){return G0}show(){if(F.trigger(this._element,nx).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ix);const b=()=>{this._element.classList.remove(Tr),F.trigger(this._element,sx),this._maybeScheduleHide()};this._element.classList.remove(Qd),y(this._element),this._element.classList.add(Cr,Tr),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||F.trigger(this._element,tx).defaultPrevented)return;const b=()=>{this._element.classList.add(Qd),this._element.classList.remove(Tr,Cr),F.trigger(this._element,ex)};this._element.classList.add(Tr),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Cr),super.dispose()}isShown(){return this._element.classList.contains(Cr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,b){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const M=h.relatedTarget;this._element===M||this._element.contains(M)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,X0,h=>this._onInteraction(h,!0)),F.on(this._element,Q0,h=>this._onInteraction(h,!1)),F.on(this._element,J0,h=>this._onInteraction(h,!0)),F.on(this._element,Z0,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const b=lo.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}return q(lo),D(lo),{Alert:qt,Button:Bn,Carousel:ai,Collapse:ci,Dropdown:Xe,Modal:Ss,Offcanvas:vn,Popover:Ar,ScrollSpy:ao,Tab:Ps,Toast:lo,Tooltip:As}})})(hx);function ru(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Wt={},wi=[],ze=()=>{},n1=()=>!1,Va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),au=e=>e.startsWith("onUpdate:"),se=Object.assign,lu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},s1=Object.prototype.hasOwnProperty,Dt=(e,t)=>s1.call(e,t),ht=Array.isArray,Ei=e=>ir(e)==="[object Map]",Ji=e=>ir(e)==="[object Set]",rh=e=>ir(e)==="[object Date]",xt=e=>typeof e=="function",ee=e=>typeof e=="string",ls=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",_g=e=>(Vt(e)||xt(e))&&xt(e.then)&&xt(e.catch),bg=Object.prototype.toString,ir=e=>bg.call(e),i1=e=>ir(e).slice(8,-1),vg=e=>ir(e)==="[object Object]",cu=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sa=ru(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ha=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},o1=/-(\w)/g,gn=Ha(e=>e.replace(o1,(t,n)=>n?n.toUpperCase():"")),r1=/\B([A-Z])/g,Zi=Ha(e=>e.replace(r1,"-$1").toLowerCase()),ja=Ha(e=>e.charAt(0).toUpperCase()+e.slice(1)),kl=Ha(e=>e?`on${ja(e)}`:""),cs=(e,t)=>!Object.is(e,t),ia=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pa=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yg=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let ah;const xg=()=>ah||(ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uu(e){if(ht(e)){const t={};for(let n=0;n{if(n){const s=n.split(l1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(ee(e))t=e;else if(ht(e))for(let n=0;nXs(n,t))}const wt=e=>ee(e)?e:e==null?"":ht(e)||Vt(e)&&(e.toString===bg||!xt(e.toString))?JSON.stringify(e,Eg,2):String(e),Eg=(e,t)=>t&&t.__v_isRef?Eg(e,t.value):Ei(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[$l(s,o)+" =>"]=i,n),{})}:Ji(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$l(n))}:ls(t)?$l(t):Vt(t)&&!ht(t)&&!vg(t)?String(t):t,$l=(e,t="")=>{var n;return ls(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ke;class Sg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){ke=this}off(){ke=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break;ti(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ss,n=js;try{return ss=!0,js=this,this._runnings++,lh(this),this.fn()}finally{ch(this),this._runnings--,js=n,ss=t}}stop(){var t;this.active&&(lh(this),ch(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function g1(e){return e.value}function lh(e){e._trackId++,e._depsLength=0}function ch(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ga=new WeakMap,Ws=Symbol(""),dc=Symbol("");function Ae(e,t,n){if(ss&&js){let s=ga.get(e);s||ga.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Mg(()=>s.delete(n))),kg(js,i)}}function Dn(e,t,n,s,i,o){const r=ga.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&ht(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!ls(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":ht(e)?cu(n)&&a.push(r.get("length")):(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"delete":ht(e)||(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"set":Ei(e)&&a.push(r.get(Ws));break}pu();for(const l of a)l&&$g(l,3);gu()}function m1(e,t){var n;return(n=ga.get(e))==null?void 0:n.get(t)}const _1=ru("__proto__,__v_isRef,__isVue"),Og=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ls)),uh=b1();function b1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=kt(this);for(let o=0,r=this.length;o{e[t]=function(...n){Zs(),pu();const s=kt(this)[t].apply(this,n);return gu(),ti(),s}}),e}function v1(e){const t=kt(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class Dg{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?O1:Ng:o?Rg:Lg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ht(t);if(!i){if(r&&Dt(uh,n))return Reflect.get(uh,n,s);if(n==="hasOwnProperty")return v1}const a=Reflect.get(t,n,s);return(ls(n)?Og.has(n):_1(n))||(i||Ae(t,"get",n),o)?a:re(a)?r&&cu(n)?a:a.value:Vt(a)?i?Bg(a):or(a):a}}class Ig extends Dg{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._shallow){const l=Ii(o);if(!vi(s)&&!Ii(s)&&(o=kt(o),s=kt(s)),!ht(t)&&re(o)&&!re(s))return l?!1:(o.value=s,!0)}const r=ht(t)&&cu(n)?Number(n)e,Wa=e=>Reflect.getPrototypeOf(e);function $r(e,t,n=!1,s=!1){e=e.__v_raw;const i=kt(e),o=kt(t);n||(cs(t,o)&&Ae(i,"get",t),Ae(i,"get",o));const{has:r}=Wa(i),a=s?mu:n?vu:Ho;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Mr(e,t=!1){const n=this.__v_raw,s=kt(n),i=kt(e);return t||(cs(e,i)&&Ae(s,"has",e),Ae(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Or(e,t=!1){return e=e.__v_raw,!t&&Ae(kt(e),"iterate",Ws),Reflect.get(e,"size",e)}function dh(e){e=kt(e);const t=kt(this);return Wa(t).has.call(t,e)||(t.add(e),Dn(t,"add",e,e)),this}function hh(e,t){t=kt(t);const n=kt(this),{has:s,get:i}=Wa(n);let o=s.call(n,e);o||(e=kt(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?cs(t,r)&&Dn(n,"set",e,t):Dn(n,"add",e,t),this}function fh(e){const t=kt(this),{has:n,get:s}=Wa(t);let i=n.call(t,e);i||(e=kt(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Dn(t,"delete",e,void 0),o}function ph(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Dn(e,"clear",void 0,void 0),n}function Dr(e,t){return function(s,i){const o=this,r=o.__v_raw,a=kt(r),l=t?mu:e?vu:Ho;return!e&&Ae(a,"iterate",Ws),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function Ir(e,t,n){return function(...s){const i=this.__v_raw,o=kt(i),r=Ei(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?mu:t?vu:Ho;return!t&&Ae(o,"iterate",l?dc:Ws),{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 jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function S1(){const e={get(o){return $r(this,o)},get size(){return Or(this)},has:Mr,add:dh,set:hh,delete:fh,clear:ph,forEach:Dr(!1,!1)},t={get(o){return $r(this,o,!1,!0)},get size(){return Or(this)},has:Mr,add:dh,set:hh,delete:fh,clear:ph,forEach:Dr(!1,!0)},n={get(o){return $r(this,o,!0)},get size(){return Or(this,!0)},has(o){return Mr.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Dr(!0,!1)},s={get(o){return $r(this,o,!0,!0)},get size(){return Or(this,!0)},has(o){return Mr.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ir(o,!1,!1),n[o]=Ir(o,!0,!1),t[o]=Ir(o,!1,!0),s[o]=Ir(o,!0,!0)}),[e,n,t,s]}const[A1,C1,T1,P1]=S1();function _u(e,t){const n=t?e?P1:T1:e?C1:A1;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Dt(n,i)&&i in s?n:s,i,o)}const k1={get:_u(!1,!1)},$1={get:_u(!1,!0)},M1={get:_u(!0,!1)},Lg=new WeakMap,Rg=new WeakMap,Ng=new WeakMap,O1=new WeakMap;function D1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function I1(e){return e.__v_skip||!Object.isExtensible(e)?0:D1(i1(e))}function or(e){return Ii(e)?e:bu(e,!1,x1,k1,Lg)}function Fg(e){return bu(e,!1,E1,$1,Rg)}function Bg(e){return bu(e,!0,w1,M1,Ng)}function bu(e,t,n,s,i){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=I1(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function is(e){return Ii(e)?is(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function vi(e){return!!(e&&e.__v_isShallow)}function za(e){return is(e)||Ii(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function rr(e){return fa(e,"__v_skip",!0),e}const Ho=e=>Vt(e)?or(e):e,vu=e=>Vt(e)?Bg(e):e;class Vg{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fu(()=>t(this._value),()=>hc(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=kt(this);return Hg(t),(!t._cacheable||t.effect.dirty)&&cs(t._value,t._value=t.effect.run())&&hc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function L1(e,t,n=!1){let s,i;const o=xt(e);return o?(s=e,i=ze):(s=e.get,i=e.set),new Vg(s,i,o||!i,n)}function Hg(e){ss&&js&&(e=kt(e),kg(js,e.dep||(e.dep=Mg(()=>e.dep=void 0,e instanceof Vg?e:void 0))))}function hc(e,t=3,n){e=kt(e);const s=e.dep;s&&$g(s,t)}function re(e){return!!(e&&e.__v_isRef===!0)}function Li(e){return jg(e,!1)}function yu(e){return jg(e,!0)}function jg(e,t){return re(e)?e:new R1(e,t)}class R1{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:kt(t),this._value=n?t:Ho(t)}get value(){return Hg(this),this._value}set value(t){const n=this.__v_isShallow||vi(t)||Ii(t);t=n?t:kt(t),cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ho(t),hc(this,3))}}function os(e){return re(e)?e.value:e}const N1={get:(e,t,n)=>os(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return re(i)&&!re(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Wg(e){return is(e)?e:new Proxy(e,N1)}function F1(e){const t=ht(e)?new Array(e.length):{};for(const n in e)t[n]=V1(e,n);return t}class B1{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return m1(kt(this._object),this._key)}}function V1(e,t,n){const s=e[t];return re(s)?s:new B1(e,t,n)}function rs(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){ar(o,t,n)}return i}function qe(e,t,n,s){if(xt(e)){const o=rs(e,t,n,s);return o&&_g(o)&&o.catch(r=>{ar(r,t,n)}),o}const i=[];for(let o=0;o>>1,i=pe[s],o=Wo(i);oln&&pe.splice(t,1)}function pc(e){ht(e)?Si.push(...e):(!An||!An.includes(e,e.allowRecurse?Fs+1:Fs))&&Si.push(e),Ug()}function gh(e,t,n=jo?ln+1:0){for(;nWo(n)-Wo(s)),Fs=0;Fse.id==null?1/0:e.id,z1=(e,t)=>{const n=Wo(e)-Wo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yg(e){fc=!1,jo=!0,pe.sort(z1);try{for(ln=0;lnee(p)?p.trim():p)),d&&(i=n.map(pa))}let a,l=s[a=kl(t)]||s[a=kl(gn(t))];!l&&o&&(l=s[a=kl(Zi(t))]),l&&qe(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(c,e,6,i)}}function qg(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!xt(e)){const l=c=>{const u=qg(c,t,!0);u&&(a=!0,se(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Vt(e)&&s.set(e,null),null):(ht(o)?o.forEach(l=>r[l]=null):se(r,o),Vt(e)&&s.set(e,r),r)}function Ka(e,t){return!e||!Va(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(e,t[0].toLowerCase()+t.slice(1))||Dt(e,Zi(t))||Dt(e,t))}let Se=null,Ya=null;function ma(e){const t=Se;return Se=e,Ya=e&&e.type.__scopeId||null,t}function ei(e){Ya=e}function ni(){Ya=null}function Gt(e,t=Se,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&kh(-1);const o=ma(t);let r;try{r=e(...i)}finally{ma(o),s._d&&kh(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ml(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:m,inheritAttrs:_}=e;let v,x;const S=ma(e);try{if(n.shapeFlag&4){const A=i||s,y=A;v=Ze(u.call(y,A,d,o,p,f,m)),x=l}else{const A=t;v=Ze(A.length>1?A(o,{attrs:l,slots:a,emit:c}):A(o,null)),x=t.props?l:Y1(l)}}catch(A){Co.length=0,ar(A,e,1),v=dt(Oe)}let P=v;if(x&&_!==!1){const A=Object.keys(x),{shapeFlag:y}=P;A.length&&y&7&&(r&&A.some(au)&&(x=q1(x,r)),P=ds(P,x))}return n.dirs&&(P=ds(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),v=P,ma(S),v}function K1(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Va(n))&&((t||(t={}))[n]=e[n]);return t},q1=(e,t)=>{const n={};for(const s in e)(!au(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function G1(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?mh(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;let bh=0;const Q1={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){e==null?J1(t,n,s,i,o,r,a,l,c):Z1(e,t,n,s,i,r,a,l,c)},hydrate:tw,create:Tu,normalize:ew},Cu=Q1;function zo(e,t){const n=e.props&&e.props[t];xt(n)&&n()}function J1(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=Tu(e,i,s,t,d,n,o,r,a,l);c(null,f.pendingBranch=e.ssContent,d,null,s,f,o,r),f.deps>0?(zo(e,"onPending"),zo(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),Ai(f,e.ssFallback)):f.resolve(!1,!0)}function Z1(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:_,isInFallback:v,isHydrating:x}=d;if(_)d.pendingBranch=f,cn(f,_)?(l(_,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():v&&(x||(l(m,p,n,s,i,null,o,r,a),Ai(d,p)))):(d.pendingId=bh++,x?(d.isHydrating=!1,d.activeBranch=_):c(_,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,n,s,i,null,o,r,a),Ai(d,p))):m&&cn(f,m)?(l(m,f,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&cn(f,m))l(m,f,n,s,i,d,o,r,a),Ai(d,f);else if(zo(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=bh++,l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:P}=d;S>0?setTimeout(()=>{d.pendingId===P&&d.fallback(p)},S):S===0&&d.fallback(p)}}function Tu(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:f,um:p,n:m,o:{parentNode:_,remove:v}}=c;let x;const S=sw(e);S&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const P=e.props?yg(e.props.timeout):void 0,A={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(y=!1,E=!1){const{vnode:C,activeBranch:w,pendingBranch:$,pendingId:D,effects:I,parentComponent:N,container:Q}=A;let Y=!1;if(A.isHydrating)A.isHydrating=!1;else if(!y){Y=w&&$.transition&&$.transition.mode==="out-in",Y&&(w.transition.afterLeave=()=>{D===A.pendingId&&(f($,Q,m(w),0),pc(I))});let{anchor:W}=A;w&&(W=m(w),p(w,N,A,!0)),Y||f($,Q,W,0)}Ai(A,$),A.pendingBranch=null,A.isInFallback=!1;let H=A.parent,R=!1;for(;H;){if(H.pendingBranch){H.effects.push(...I),R=!0;break}H=H.parent}!R&&!Y&&pc(I),A.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),zo(C,"onResolve")},fallback(y){if(!A.pendingBranch)return;const{vnode:E,activeBranch:C,parentComponent:w,container:$,namespace:D}=A;zo(E,"onFallback");const I=m(C),N=()=>{A.isInFallback&&(d(null,y,$,I,w,null,D,a,l),Ai(A,y))},Q=y.transition&&y.transition.mode==="out-in";Q&&(C.transition.afterLeave=N),A.isInFallback=!0,p(C,w,null,!0),Q||N()},move(y,E,C){A.activeBranch&&f(A.activeBranch,y,E,C),A.container=y},next(){return A.activeBranch&&m(A.activeBranch)},registerDep(y,E){const C=!!A.pendingBranch;C&&A.deps++;const w=y.vnode.el;y.asyncDep.catch($=>{ar($,y,0)}).then($=>{if(y.isUnmounted||A.isUnmounted||A.pendingId!==y.suspenseId)return;y.asyncResolved=!0;const{vnode:D}=y;xc(y,$,!1),w&&(D.el=w);const I=!w&&y.subTree.el;E(y,D,_(w||y.subTree.el),w?null:m(y.subTree),A,r,l),I&&v(I),Eu(y,D.el),C&&--A.deps===0&&A.resolve()})},unmount(y,E){A.isUnmounted=!0,A.activeBranch&&p(A.activeBranch,n,y,E),A.pendingBranch&&p(A.pendingBranch,n,y,E)}};return A}function tw(e,t,n,s,i,o,r,a,l){const c=t.suspense=Tu(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function ew(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=vh(s?n.default:n),e.ssFallback=s?vh(n.fallback):dt(Oe)}function vh(e){let t;if(xt(e)){const n=Ri&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=Ue,pm())}return ht(e)&&(e=K1(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function nw(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function Ai(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,i=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=i,Eu(s,i))}function sw(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const iw=Symbol.for("v-scx"),ow=()=>hn(iw),Lr={};function zs(e,t,n){return Qg(e,t,n)}function Qg(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Wt){var l;if(t&&o){const y=t;t=(...E)=>{y(...E),A()}}const c=hu()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,f=!1;if(re(e)?(u=()=>e.value,d=vi(e)):is(e)?(u=vi(e)||s===!1?()=>Pn(e,1):()=>Pn(e),d=!0):ht(e)?(f=!0,d=e.some(y=>is(y)||vi(y)),u=()=>e.map(y=>{if(re(y))return y.value;if(is(y))return Pn(y,vi(y)||s===!1?1:void 0);if(xt(y))return rs(y,c,2)})):xt(e)?t?u=()=>rs(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return p&&p(),qe(e,c,3,[m])}:u=ze,t&&s){const y=u;u=()=>Pn(y())}let p,m=y=>{p=P.onStop=()=>{rs(y,c,4),p=P.onStop=void 0}},_;if(Za)if(m=ze,t?n&&qe(t,c,3,[u(),f?[]:void 0,m]):u(),i==="sync"){const y=ow();_=y.__watcherHandles||(y.__watcherHandles=[])}else return ze;let v=f?new Array(e.length).fill(Lr):Lr;const x=()=>{if(!(!P.active||!P.dirty))if(t){const y=P.run();(s||d||(f?y.some((E,C)=>cs(E,v[C])):cs(y,v)))&&(p&&p(),qe(t,c,3,[y,v===Lr?void 0:f&&v[0]===Lr?[]:v,m]),v=y)}else P.run()};x.allowRecurse=!!t;let S;i==="sync"?S=x:i==="post"?S=()=>we(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),S=()=>wu(x));const P=new fu(u,ze,S),A=()=>{P.stop(),c&&c.scope&&lu(c.scope.effects,P)};return t?n?x():v=P.run():i==="post"?we(P.run.bind(P),c&&c.suspense):P.run(),_&&_.push(A),A}function rw(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?Jg(s,e):()=>s[e]:e.bind(s,s);let o;xt(t)?o=t:(o=t.handler,n=t);const r=ie;Ni(this);const a=Qg(i,o.bind(s),n);return r?Ni(r):Us(),a}function Jg(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),re(e))Pn(e.value,t,n,s);else if(ht(e))for(let i=0;i{Pn(i,t,n,s)});else if(vg(e))for(const i in e)Pn(e[i],t,n,s);return e}function bt(e,t){const n=Se;if(n===null)return e;const s=tl(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),$u(()=>{e.isUnmounting=!0}),e}const He=[Function,Array],tm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:He,onEnter:He,onAfterEnter:He,onEnterCancelled:He,onBeforeLeave:He,onLeave:He,onAfterLeave:He,onLeaveCancelled:He,onBeforeAppear:He,onAppear:He,onAfterAppear:He,onAppearCancelled:He},aw={name:"BaseTransition",props:tm,setup(e,{slots:t}){const n=_m(),s=Zg();let i;return()=>{const o=t.default&&Pu(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const _ of o)if(_.type!==Oe){r=_;break}}const a=kt(e),{mode:l}=a;if(s.isLeaving)return Ol(r);const c=yh(r);if(!c)return Ol(r);const u=Uo(c,a,s,n);Ko(c,u);const d=n.subTree,f=d&&yh(d);let p=!1;const{getTransitionKey:m}=c.type;if(m){const _=m();i===void 0?i=_:_!==i&&(i=_,p=!0)}if(f&&f.type!==Oe&&(!cn(c,f)||p)){const _=Uo(f,a,s,n);if(Ko(f,_),l==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ol(r);l==="in-out"&&c.type!==Oe&&(_.delayLeave=(v,x,S)=>{const P=em(s,f);P[String(f.key)]=f,v[qn]=()=>{x(),v[qn]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return r}}},lw=aw;function em(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Uo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:_,onAppear:v,onAfterAppear:x,onAppearCancelled:S}=t,P=String(e.key),A=em(n,e),y=(w,$)=>{w&&qe(w,s,9,$)},E=(w,$)=>{const D=$[1];y(w,$),ht(w)?w.every(I=>I.length<=1)&&D():w.length<=1&&D()},C={mode:o,persisted:r,beforeEnter(w){let $=a;if(!n.isMounted)if(i)$=_||a;else return;w[qn]&&w[qn](!0);const D=A[P];D&&cn(e,D)&&D.el[qn]&&D.el[qn](),y($,[w])},enter(w){let $=l,D=c,I=u;if(!n.isMounted)if(i)$=v||l,D=x||c,I=S||u;else return;let N=!1;const Q=w[Rr]=Y=>{N||(N=!0,Y?y(I,[w]):y(D,[w]),C.delayedLeave&&C.delayedLeave(),w[Rr]=void 0)};$?E($,[w,Q]):Q()},leave(w,$){const D=String(e.key);if(w[Rr]&&w[Rr](!0),n.isUnmounting)return $();y(d,[w]);let I=!1;const N=w[qn]=Q=>{I||(I=!0,$(),Q?y(m,[w]):y(p,[w]),w[qn]=void 0,A[D]===e&&delete A[D])};A[D]=e,f?E(f,[w,N]):N()},clone(w){return Uo(w,t,n,s)}};return C}function Ol(e){if(Ga(e))return e=ds(e),e.children=null,e}function yh(e){return Ga(e)?e.children?e.children[0]:void 0:e}function Ko(e,t){e.shapeFlag&6&&e.component?Ko(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pu(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Ga=e=>e.type.__isKeepAlive;function cw(e,t){nm(e,"a",t)}function uw(e,t){nm(e,"da",t)}function nm(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Xa(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Ga(i.parent.vnode)&&dw(s,t,n,i),i=i.parent}}function dw(e,t,n,s){const i=Xa(t,e,s,!0);im(()=>{lu(s[t],i)},n)}function Xa(e,t,n=ie,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zs(),Ni(n);const a=qe(t,n,e,r);return Us(),ti(),a});return s?i.unshift(o):i.push(o),o}}const Nn=e=>(t,n=ie)=>(!Za||e==="sp")&&Xa(e,(...s)=>t(...s),n),hw=Nn("bm"),ku=Nn("m"),fw=Nn("bu"),sm=Nn("u"),$u=Nn("bum"),im=Nn("um"),pw=Nn("sp"),gw=Nn("rtg"),mw=Nn("rtc");function _w(e,t=ie){Xa("ec",e,t)}function us(e,t,n,s){let i;const o=n&&n[s];if(ht(e)||ee(e)){i=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;ae?bm(e)?tl(e)||e.proxy:gc(e.parent):null,Ao=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gc(e.parent),$root:e=>gc(e.root),$emit:e=>e.emit,$options:e=>Mu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,wu(e.update)}),$nextTick:e=>e.n||(e.n=Ua.bind(e.proxy)),$watch:e=>rw.bind(e)}),Dl=(e,t)=>e!==Wt&&!e.__isScriptSetup&&Dt(e,t),bw={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Dl(s,t))return r[t]=1,s[t];if(i!==Wt&&Dt(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&Dt(c,t))return r[t]=3,o[t];if(n!==Wt&&Dt(n,t))return r[t]=4,n[t];mc&&(r[t]=0)}}const u=Ao[t];let d,f;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Wt&&Dt(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,Dt(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Dl(i,t)?(i[t]=n,!0):s!==Wt&&Dt(s,t)?(s[t]=n,!0):Dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==Wt&&Dt(e,r)||Dl(t,r)||(a=o[0])&&Dt(a,r)||Dt(s,r)||Dt(Ao,r)||Dt(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xh(e){return ht(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let mc=!0;function vw(e){const t=Mu(e),n=e.proxy,s=e.ctx;mc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:_,deactivated:v,beforeDestroy:x,beforeUnmount:S,destroyed:P,unmounted:A,render:y,renderTracked:E,renderTriggered:C,errorCaptured:w,serverPrefetch:$,expose:D,inheritAttrs:I,components:N,directives:Q,filters:Y}=t;if(c&&yw(c,s,null),r)for(const W in r){const U=r[W];xt(U)&&(s[W]=U.bind(n))}if(i){const W=i.call(n,n);Vt(W)&&(e.data=or(W))}if(mc=!0,o)for(const W in o){const U=o[W],rt=xt(U)?U.bind(n,n):xt(U.get)?U.get.bind(n,n):ze,ct=!xt(U)&&xt(U.set)?U.set.bind(n):ze,mt=We({get:rt,set:ct});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>mt.value,set:pt=>mt.value=pt})}if(a)for(const W in a)om(a[W],s,n,W);if(l){const W=xt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(U=>{ra(U,W[U])})}u&&wh(u,e,"c");function R(W,U){ht(U)?U.forEach(rt=>W(rt.bind(n))):U&&W(U.bind(n))}if(R(hw,d),R(ku,f),R(fw,p),R(sm,m),R(cw,_),R(uw,v),R(_w,w),R(mw,E),R(gw,C),R($u,S),R(im,A),R(pw,$),ht(D))if(D.length){const W=e.exposed||(e.exposed={});D.forEach(U=>{Object.defineProperty(W,U,{get:()=>n[U],set:rt=>n[U]=rt})})}else e.exposed||(e.exposed={});y&&e.render===ze&&(e.render=y),I!=null&&(e.inheritAttrs=I),N&&(e.components=N),Q&&(e.directives=Q)}function yw(e,t,n=ze){ht(e)&&(e=_c(e));for(const s in e){const i=e[s];let o;Vt(i)?"default"in i?o=hn(i.from||s,i.default,!0):o=hn(i.from||s):o=hn(i),re(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function wh(e,t,n){qe(ht(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function om(e,t,n,s){const i=s.includes(".")?Jg(n,s):()=>n[s];if(ee(e)){const o=t[e];xt(o)&&zs(i,o)}else if(xt(e))zs(i,e.bind(n));else if(Vt(e))if(ht(e))e.forEach(o=>om(o,t,n,s));else{const o=xt(e.handler)?e.handler.bind(n):t[e.handler];xt(o)&&zs(i,o,e)}}function Mu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>_a(l,c,r,!0)),_a(l,t,r)),Vt(t)&&o.set(t,l),l}function _a(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&_a(e,o,n,!0),i&&i.forEach(r=>_a(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=xw[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const xw={data:Eh,props:Sh,emits:Sh,methods:_o,computed:_o,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:_o,directives:_o,watch:Ew,provide:Eh,inject:ww};function Eh(e,t){return t?e?function(){return se(xt(e)?e.call(this,this):e,xt(t)?t.call(this,this):t)}:t:e}function ww(e,t){return _o(_c(e),_c(t))}function _c(e){if(ht(e)){const t={};for(let n=0;n1)return n&&xt(t)?t.call(s&&s.proxy):t}}function Cw(){return!!(ie||Se||Yo)}function Tw(e,t,n,s=!1){const i={},o={};fa(o,Ja,1),e.propsDefaults=Object.create(null),am(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Fg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Pw(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=kt(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=lm(d,t,!0);se(r,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Vt(e)&&s.set(e,wi),wi;if(ht(o))for(let u=0;u-1,p[1]=_<0||m<_,(m>-1||Dt(p,"default"))&&a.push(d)}}}const c=[r,a];return Vt(e)&&s.set(e,c),c}function Ah(e){return e[0]!=="$"}function Ch(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Th(e,t){return Ch(e)===Ch(t)}function Ph(e,t){return ht(t)?t.findIndex(n=>Th(n,e)):xt(t)&&Th(t,e)?0:-1}const cm=e=>e[0]==="_"||e==="$stable",Ou=e=>ht(e)?e.map(Ze):[Ze(e)],kw=(e,t,n)=>{if(t._n)return t;const s=Gt((...i)=>Ou(t(...i)),n);return s._c=!1,s},um=(e,t,n)=>{const s=e._ctx;for(const i in e){if(cm(i))continue;const o=e[i];if(xt(o))t[i]=kw(i,o,s);else if(o!=null){const r=Ou(o);t[i]=()=>r}}},dm=(e,t)=>{const n=Ou(t);e.slots.default=()=>n},$w=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),fa(t,"_",n)):um(t,e.slots={})}else e.slots={},t&&dm(e,t);fa(e.slots,Ja,1)},Mw=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Wt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(se(i,t),!n&&a===1&&delete i._):(o=!t.$stable,um(t,i)),r=t}else t&&(dm(e,t),r={default:1});if(o)for(const a in i)!cm(a)&&r[a]==null&&delete i[a]};function vc(e,t,n,s,i=!1){if(ht(e)){e.forEach((f,p)=>vc(f,t&&(ht(t)?t[p]:t),n,s,i));return}if(oa(s)&&!i)return;const o=s.shapeFlag&4?tl(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Wt?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(ee(c)?(u[c]=null,Dt(d,c)&&(d[c]=null)):re(c)&&(c.value=null)),xt(l))rs(l,a,12,[r,u]);else{const f=ee(l),p=re(l);if(f||p){const m=()=>{if(e.f){const _=f?Dt(d,l)?d[l]:u[l]:l.value;i?ht(_)&&lu(_,o):ht(_)?_.includes(o)||_.push(o):f?(u[l]=[o],Dt(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,Dt(d,l)&&(d[l]=r)):p&&(l.value=r,e.k&&(u[e.k]=r))};r?(m.id=-1,we(m,n)):m()}}}const we=nw;function Ow(e){return Dw(e)}function Dw(e,t){const n=xg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=ze,insertStaticContent:m}=e,_=(T,O,L,V=null,K=null,G=null,tt=void 0,J=null,B=!!O.dynamicChildren)=>{if(T===O)return;T&&!cn(T,O)&&(V=j(T),pt(T,K,G,!0),T=null),O.patchFlag===-2&&(B=!1,O.dynamicChildren=null);const{type:q,ref:lt,shapeFlag:ft}=O;switch(q){case Qa:v(T,O,L,V);break;case Oe:x(T,O,L,V);break;case aa:T==null&&S(O,L,V,tt);break;case Qt:N(T,O,L,V,K,G,tt,J,B);break;default:ft&1?y(T,O,L,V,K,G,tt,J,B):ft&6?Q(T,O,L,V,K,G,tt,J,B):(ft&64||ft&128)&&q.process(T,O,L,V,K,G,tt,J,B,Z)}lt!=null&&K&&vc(lt,T&&T.ref,G,O||T,!O)},v=(T,O,L,V)=>{if(T==null)s(O.el=a(O.children),L,V);else{const K=O.el=T.el;O.children!==T.children&&c(K,O.children)}},x=(T,O,L,V)=>{T==null?s(O.el=l(O.children||""),L,V):O.el=T.el},S=(T,O,L,V)=>{[T.el,T.anchor]=m(T.children,O,L,V,T.el,T.anchor)},P=({el:T,anchor:O},L,V)=>{let K;for(;T&&T!==O;)K=f(T),s(T,L,V),T=K;s(O,L,V)},A=({el:T,anchor:O})=>{let L;for(;T&&T!==O;)L=f(T),i(T),T=L;i(O)},y=(T,O,L,V,K,G,tt,J,B)=>{O.type==="svg"?tt="svg":O.type==="math"&&(tt="mathml"),T==null?E(O,L,V,K,G,tt,J,B):$(T,O,K,G,tt,J,B)},E=(T,O,L,V,K,G,tt,J)=>{let B,q;const{props:lt,shapeFlag:ft,transition:ut,dirs:_t}=T;if(B=T.el=r(T.type,G,lt&<.is,lt),ft&8?u(B,T.children):ft&16&&w(T.children,B,null,V,K,Il(T,G),tt,J),_t&&ks(T,null,V,"created"),C(B,T,T.scopeId,tt,V),lt){for(const Ot in lt)Ot!=="value"&&!sa(Ot)&&o(B,Ot,null,lt[Ot],G,T.children,V,K,Ct);"value"in lt&&o(B,"value",null,lt.value,G),(q=lt.onVnodeBeforeMount)&&on(q,V,T)}_t&&ks(T,null,V,"beforeMount");const St=Iw(K,ut);St&&ut.beforeEnter(B),s(B,O,L),((q=lt&<.onVnodeMounted)||St||_t)&&we(()=>{q&&on(q,V,T),St&&ut.enter(B),_t&&ks(T,null,V,"mounted")},K)},C=(T,O,L,V,K)=>{if(L&&p(T,L),V)for(let G=0;G{for(let q=B;q{const J=O.el=T.el;let{patchFlag:B,dynamicChildren:q,dirs:lt}=O;B|=T.patchFlag&16;const ft=T.props||Wt,ut=O.props||Wt;let _t;if(L&&$s(L,!1),(_t=ut.onVnodeBeforeUpdate)&&on(_t,L,O,T),lt&&ks(O,T,L,"beforeUpdate"),L&&$s(L,!0),q?D(T.dynamicChildren,q,J,L,V,Il(O,K),G):tt||U(T,O,J,null,L,V,Il(O,K),G,!1),B>0){if(B&16)I(J,O,ft,ut,L,V,K);else if(B&2&&ft.class!==ut.class&&o(J,"class",null,ut.class,K),B&4&&o(J,"style",ft.style,ut.style,K),B&8){const St=O.dynamicProps;for(let Ot=0;Ot{_t&&on(_t,L,O,T),lt&&ks(O,T,L,"updated")},V)},D=(T,O,L,V,K,G,tt)=>{for(let J=0;J{if(L!==V){if(L!==Wt)for(const J in L)!sa(J)&&!(J in V)&&o(T,J,L[J],null,tt,O.children,K,G,Ct);for(const J in V){if(sa(J))continue;const B=V[J],q=L[J];B!==q&&J!=="value"&&o(T,J,q,B,tt,O.children,K,G,Ct)}"value"in V&&o(T,"value",L.value,V.value,tt)}},N=(T,O,L,V,K,G,tt,J,B)=>{const q=O.el=T?T.el:a(""),lt=O.anchor=T?T.anchor:a("");let{patchFlag:ft,dynamicChildren:ut,slotScopeIds:_t}=O;_t&&(J=J?J.concat(_t):_t),T==null?(s(q,L,V),s(lt,L,V),w(O.children,L,lt,K,G,tt,J,B)):ft>0&&ft&64&&ut&&T.dynamicChildren?(D(T.dynamicChildren,ut,L,K,G,tt,J),(O.key!=null||K&&O===K.subTree)&&hm(T,O,!0)):U(T,O,L,lt,K,G,tt,J,B)},Q=(T,O,L,V,K,G,tt,J,B)=>{O.slotScopeIds=J,T==null?O.shapeFlag&512?K.ctx.activate(O,L,V,tt,B):Y(O,L,V,K,G,tt,B):H(T,O,B)},Y=(T,O,L,V,K,G,tt)=>{const J=T.component=Ww(T,V,K);if(Ga(T)&&(J.ctx.renderer=Z),zw(J),J.asyncDep){if(K&&K.registerDep(J,R),!T.el){const B=J.subTree=dt(Oe);x(null,B,O,L)}}else R(J,T,O,L,K,G,tt)},H=(T,O,L)=>{const V=O.component=T.component;if(G1(T,O,L))if(V.asyncDep&&!V.asyncResolved){W(V,O,L);return}else V.next=O,W1(V.update),V.effect.dirty=!0,V.update();else O.el=T.el,V.vnode=O},R=(T,O,L,V,K,G,tt)=>{const J=()=>{if(T.isMounted){let{next:lt,bu:ft,u:ut,parent:_t,vnode:St}=T;{const ys=fm(T);if(ys){lt&&(lt.el=St.el,W(T,lt,tt)),ys.asyncDep.then(()=>{T.isUnmounted||J()});return}}let Ot=lt,Nt;$s(T,!1),lt?(lt.el=St.el,W(T,lt,tt)):lt=St,ft&&ia(ft),(Nt=lt.props&<.props.onVnodeBeforeUpdate)&&on(Nt,_t,lt,St),$s(T,!0);const qt=Ml(T),Te=T.subTree;T.subTree=qt,_(Te,qt,d(Te.el),j(Te),T,K,G),lt.el=qt.el,Ot===null&&Eu(T,qt.el),ut&&we(ut,K),(Nt=lt.props&<.props.onVnodeUpdated)&&we(()=>on(Nt,_t,lt,St),K)}else{let lt;const{el:ft,props:ut}=O,{bm:_t,m:St,parent:Ot}=T,Nt=oa(O);if($s(T,!1),_t&&ia(_t),!Nt&&(lt=ut&&ut.onVnodeBeforeMount)&&on(lt,Ot,O),$s(T,!0),ft&&F){const qt=()=>{T.subTree=Ml(T),F(ft,T.subTree,T,K,null)};Nt?O.type.__asyncLoader().then(()=>!T.isUnmounted&&qt()):qt()}else{const qt=T.subTree=Ml(T);_(null,qt,L,V,T,K,G),O.el=qt.el}if(St&&we(St,K),!Nt&&(lt=ut&&ut.onVnodeMounted)){const qt=O;we(()=>on(lt,Ot,qt),K)}(O.shapeFlag&256||Ot&&oa(Ot.vnode)&&Ot.vnode.shapeFlag&256)&&T.a&&we(T.a,K),T.isMounted=!0,O=L=V=null}},B=T.effect=new fu(J,ze,()=>wu(q),T.scope),q=T.update=()=>{B.dirty&&B.run()};q.id=T.uid,$s(T,!0),q()},W=(T,O,L)=>{O.component=T;const V=T.vnode.props;T.vnode=O,T.next=null,Pw(T,O.props,V,L),Mw(T,O.children,L),Zs(),gh(T),ti()},U=(T,O,L,V,K,G,tt,J,B=!1)=>{const q=T&&T.children,lt=T?T.shapeFlag:0,ft=O.children,{patchFlag:ut,shapeFlag:_t}=O;if(ut>0){if(ut&128){ct(q,ft,L,V,K,G,tt,J,B);return}else if(ut&256){rt(q,ft,L,V,K,G,tt,J,B);return}}_t&8?(lt&16&&Ct(q,K,G),ft!==q&&u(L,ft)):lt&16?_t&16?ct(q,ft,L,V,K,G,tt,J,B):Ct(q,K,G,!0):(lt&8&&u(L,""),_t&16&&w(ft,L,V,K,G,tt,J,B))},rt=(T,O,L,V,K,G,tt,J,B)=>{T=T||wi,O=O||wi;const q=T.length,lt=O.length,ft=Math.min(q,lt);let ut;for(ut=0;utlt?Ct(T,K,G,!0,!1,ft):w(O,L,V,K,G,tt,J,B,ft)},ct=(T,O,L,V,K,G,tt,J,B)=>{let q=0;const lt=O.length;let ft=T.length-1,ut=lt-1;for(;q<=ft&&q<=ut;){const _t=T[q],St=O[q]=B?Gn(O[q]):Ze(O[q]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;q++}for(;q<=ft&&q<=ut;){const _t=T[ft],St=O[ut]=B?Gn(O[ut]):Ze(O[ut]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;ft--,ut--}if(q>ft){if(q<=ut){const _t=ut+1,St=_tut)for(;q<=ft;)pt(T[q],K,G,!0),q++;else{const _t=q,St=q,Ot=new Map;for(q=St;q<=ut;q++){const he=O[q]=B?Gn(O[q]):Ze(O[q]);he.key!=null&&Ot.set(he.key,q)}let Nt,qt=0;const Te=ut-St+1;let ys=!1,gr=0;const xs=new Array(Te);for(q=0;q=Te){pt(he,K,G,!0);continue}let Fe;if(he.key!=null)Fe=Ot.get(he.key);else for(Nt=St;Nt<=ut;Nt++)if(xs[Nt-St]===0&&cn(he,O[Nt])){Fe=Nt;break}Fe===void 0?pt(he,K,G,!0):(xs[Fe-St]=q+1,Fe>=gr?gr=Fe:ys=!0,_(he,O[Fe],L,null,K,G,tt,J,B),qt++)}const mr=ys?Lw(xs):wi;for(Nt=mr.length-1,q=Te-1;q>=0;q--){const he=St+q,Fe=O[he],Bn=he+1{const{el:G,type:tt,transition:J,children:B,shapeFlag:q}=T;if(q&6){mt(T.component.subTree,O,L,V);return}if(q&128){T.suspense.move(O,L,V);return}if(q&64){tt.move(T,O,L,Z);return}if(tt===Qt){s(G,O,L);for(let ft=0;ftJ.enter(G),K);else{const{leave:ft,delayLeave:ut,afterLeave:_t}=J,St=()=>s(G,O,L),Ot=()=>{ft(G,()=>{St(),_t&&_t()})};ut?ut(G,St,Ot):Ot()}else s(G,O,L)},pt=(T,O,L,V=!1,K=!1)=>{const{type:G,props:tt,ref:J,children:B,dynamicChildren:q,shapeFlag:lt,patchFlag:ft,dirs:ut}=T;if(J!=null&&vc(J,null,L,T,!0),lt&256){O.ctx.deactivate(T);return}const _t=lt&1&&ut,St=!oa(T);let Ot;if(St&&(Ot=tt&&tt.onVnodeBeforeUnmount)&&on(Ot,O,T),lt&6)Mt(T.component,L,V);else{if(lt&128){T.suspense.unmount(L,V);return}_t&&ks(T,null,O,"beforeUnmount"),lt&64?T.type.remove(T,O,L,K,Z,V):q&&(G!==Qt||ft>0&&ft&64)?Ct(q,O,L,!1,!0):(G===Qt&&ft&384||!K&<&16)&&Ct(B,O,L),V&&Pt(T)}(St&&(Ot=tt&&tt.onVnodeUnmounted)||_t)&&we(()=>{Ot&&on(Ot,O,T),_t&&ks(T,null,O,"unmounted")},L)},Pt=T=>{const{type:O,el:L,anchor:V,transition:K}=T;if(O===Qt){At(L,V);return}if(O===aa){A(T);return}const G=()=>{i(L),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(T.shapeFlag&1&&K&&!K.persisted){const{leave:tt,delayLeave:J}=K,B=()=>tt(L,G);J?J(T.el,G,B):B()}else G()},At=(T,O)=>{let L;for(;T!==O;)L=f(T),i(T),T=L;i(O)},Mt=(T,O,L)=>{const{bum:V,scope:K,update:G,subTree:tt,um:J}=T;V&&ia(V),K.stop(),G&&(G.active=!1,pt(tt,T,O,L)),J&&we(J,O),we(()=>{T.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Ct=(T,O,L,V=!1,K=!1,G=0)=>{for(let tt=G;ttT.shapeFlag&6?j(T.component.subTree):T.shapeFlag&128?T.suspense.next():f(T.anchor||T.el),nt=(T,O,L)=>{T==null?O._vnode&&pt(O._vnode,null,null,!0):_(O._vnode||null,T,O,null,null,null,L),gh(),Kg(),O._vnode=T},Z={p:_,um:pt,m:mt,r:Pt,mt:Y,mc:w,pc:U,pbc:D,n:j,o:e};let at,F;return t&&([at,F]=t(Z)),{render:nt,hydrate:at,createApp:Aw(nt,at)}}function Il({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Iw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hm(e,t,n=!1){const s=e.children,i=t.children;if(ht(s)&&ht(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function fm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fm(t)}const Rw=e=>e.__isTeleport,Qt=Symbol.for("v-fgt"),Qa=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),aa=Symbol.for("v-stc"),Co=[];let Ue=null;function X(e=!1){Co.push(Ue=e?null:[])}function pm(){Co.pop(),Ue=Co[Co.length-1]||null}let Ri=1;function kh(e){Ri+=e}function gm(e){return e.dynamicChildren=Ri>0?Ue||wi:null,pm(),Ri>0&&Ue&&Ue.push(e),e}function ot(e,t,n,s,i,o){return gm(g(e,t,n,s,i,o,!0))}function ue(e,t,n,s,i){return gm(dt(e,t,n,s,i,!0))}function ba(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Ja="__vInternal",mm=({key:e})=>e??null,la=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||re(e)||xt(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,i=null,o=e===Qt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mm(t),ref:t&&la(t),scopeId:Ya,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:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Se};return a?(Du(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ee(n)?8:16),Ri>0&&!r&&Ue&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ue.push(l),l}const dt=Nw;function Nw(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Gg)&&(e=Oe),ba(e)){const a=ds(e,t,!0);return n&&Du(a,n),Ri>0&&!o&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(e)]=a:Ue.push(a)),a.patchFlag|=-2,a}if(Gw(e)&&(e=e.__vccOpts),t){t=Fw(t);let{class:a,style:l}=t;a&&!ee(a)&&(t.class=jt(a)),Vt(l)&&(za(l)&&!ht(l)&&(l=se({},l)),t.style=uu(l))}const r=ee(e)?1:X1(e)?128:Rw(e)?64:Vt(e)?4:xt(e)?2:0;return g(e,t,n,s,i,r,o,!0)}function Fw(e){return e?za(e)||Ja in e?se({},e):e:null}function ds(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?Vw(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&mm(a),ref:t&&t.ref?n&&i?ht(i)?i.concat(la(t)):[i,la(t)]:la(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ds(e.ssContent),ssFallback:e.ssFallback&&ds(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gt(e=" ",t=0){return dt(Qa,null,e,t)}function Bw(e,t){const n=dt(aa,null,e);return n.staticCount=t,n}function Ut(e="",t=!1){return t?(X(),ue(Oe,null,e)):dt(Oe,null,e)}function Ze(e){return e==null||typeof e=="boolean"?dt(Oe):ht(e)?dt(Qt,null,e.slice()):typeof e=="object"?Gn(e):dt(Qa,null,String(e))}function Gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ds(e)}function Du(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ht(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Du(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ja in t)?t._ctx=Se:i===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xt(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),s&64?(n=16,t=[gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vw(...e){const t={};for(let n=0;nie||Se;let Iu,yc;{const e=xg(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Iu=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),yc=t("__VUE_SSR_SETTERS__",n=>Za=n)}const Ni=e=>{Iu(e),e.scope.on()},Us=()=>{ie&&ie.scope.off(),Iu(null)};function bm(e){return e.vnode.shapeFlag&4}let Za=!1;function zw(e,t=!1){t&&yc(t);const{props:n,children:s}=e.vnode,i=bm(e);Tw(e,n,i,t),$w(e,s);const o=i?Uw(e,t):void 0;return t&&yc(!1),o}function Uw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rr(new Proxy(e.ctx,bw));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?Yw(e):null;Ni(e),Zs();const o=rs(s,e,0,[e.props,i]);if(ti(),Us(),_g(o)){if(o.then(Us,Us),t)return o.then(r=>{xc(e,r,t)}).catch(r=>{ar(r,e,0)});e.asyncDep=o}else xc(e,o,t)}else vm(e,t)}function xc(e,t,n){xt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=Wg(t)),vm(e,n)}let $h;function vm(e,t,n){const s=e.type;if(!e.render){if(!t&&$h&&!s.render){const i=s.template||Mu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=se(se({isCustomElement:o,delimiters:a},r),l);s.render=$h(i,c)}}e.render=s.render||ze}{Ni(e),Zs();try{vw(e)}finally{ti(),Us()}}}function Kw(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Yw(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Kw(e)},slots:e.slots,emit:e.emit,expose:t}}function tl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wg(rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ao)return Ao[n](e)},has(t,n){return n in t||n in Ao}}))}function qw(e,t=!0){return xt(e)?e.displayName||e.name:e.name||t&&e.__name}function Gw(e){return xt(e)&&"__vccOpts"in e}const We=(e,t)=>L1(e,t,Za);function Fi(e,t,n){const s=arguments.length;return s===2?Vt(t)&&!ht(t)?ba(t)?dt(e,null,[t]):dt(e,t):dt(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ba(n)&&(n=[n]),dt(e,t,n))}const ym="3.4.3",Xw="http://www.w3.org/2000/svg",Qw="http://www.w3.org/1998/Math/MathML",Xn=typeof document<"u"?document:null,Mh=Xn&&Xn.createElement("template"),Jw={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Xn.createElementNS(Xw,e):t==="mathml"?Xn.createElementNS(Qw,e):Xn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Xn.createTextNode(e),createComment:e=>Xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Mh.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=Mh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wn="transition",co="animation",Bi=Symbol("_vtc"),Ln=(e,{slots:t})=>Fi(lw,wm(e),t);Ln.displayName="Transition";const xm={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=Ln.props=se({},tm,xm),Ms=(e,t=[])=>{ht(e)?e.forEach(n=>n(...t)):e&&e(...t)},Oh=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function wm(e){const t={};for(const N in e)N in xm||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=tE(i),_=m&&m[0],v=m&&m[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:P,onLeave:A,onLeaveCancelled:y,onBeforeAppear:E=x,onAppear:C=S,onAppearCancelled:w=P}=t,$=(N,Q,Y)=>{Kn(N,Q?u:a),Kn(N,Q?c:r),Y&&Y()},D=(N,Q)=>{N._isLeaving=!1,Kn(N,d),Kn(N,p),Kn(N,f),Q&&Q()},I=N=>(Q,Y)=>{const H=N?C:S,R=()=>$(Q,N,Y);Ms(H,[Q,R]),Dh(()=>{Kn(Q,N?l:o),wn(Q,N?u:a),Oh(H)||Ih(Q,s,_,R)})};return se(t,{onBeforeEnter(N){Ms(x,[N]),wn(N,o),wn(N,r)},onBeforeAppear(N){Ms(E,[N]),wn(N,l),wn(N,c)},onEnter:I(!1),onAppear:I(!0),onLeave(N,Q){N._isLeaving=!0;const Y=()=>D(N,Q);wn(N,d),Sm(),wn(N,f),Dh(()=>{N._isLeaving&&(Kn(N,d),wn(N,p),Oh(A)||Ih(N,s,v,Y))}),Ms(A,[N,Y])},onEnterCancelled(N){$(N,!1),Ms(P,[N])},onAppearCancelled(N){$(N,!0),Ms(w,[N])},onLeaveCancelled(N){D(N),Ms(y,[N])}})}function tE(e){if(e==null)return null;if(Vt(e))return[Ll(e.enter),Ll(e.leave)];{const t=Ll(e);return[t,t]}}function Ll(e){return yg(e)}function wn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bi]||(e[Bi]=new Set)).add(t)}function Kn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Bi];n&&(n.delete(t),n.size||(e[Bi]=void 0))}function Dh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eE=0;function Ih(e,t,n,s){const i=e._endId=++eE,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=Em(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[m]||"").split(", "),i=s(`${Wn}Delay`),o=s(`${Wn}Duration`),r=Lh(i,o),a=s(`${co}Delay`),l=s(`${co}Duration`),c=Lh(a,l);let u=null,d=0,f=0;t===Wn?r>0&&(u=Wn,d=r,f=o.length):t===co?c>0&&(u=co,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Wn:co:null,f=u?u===Wn?o.length:l.length:0);const p=u===Wn&&/\b(transform|all)(,|$)/.test(s(`${Wn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Lh(e,t){for(;e.lengthRh(n)+Rh(e[s])))}function Rh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sm(){return document.body.offsetHeight}function nE(e,t,n){const s=e[Bi];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sE=Symbol("_vod"),iE=Symbol("");function oE(e,t,n){const s=e.style,i=ee(n);if(n&&!i){if(t&&!ee(t))for(const o in t)n[o]==null&&wc(s,o,"");for(const o in n)wc(s,o,n[o])}else{const o=s.display;if(i){if(t!==n){const r=s[iE];r&&(n+=";"+r),s.cssText=n}}else t&&e.removeAttribute("style");sE in e&&(s.display=o)}}const Nh=/\s*!important$/;function wc(e,t,n){if(ht(n))n.forEach(s=>wc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rE(e,t);Nh.test(n)?e.setProperty(Zi(s),n.replace(Nh,""),"important"):e[s]=n}}const Fh=["Webkit","Moz","ms"],Rl={};function rE(e,t){const n=Rl[t];if(n)return n;let s=gn(t);if(s!=="filter"&&s in e)return Rl[t]=s;s=ja(s);for(let i=0;iNl||(hE.then(()=>Nl=0),Nl=Date.now());function pE(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(gE(s,n.value),t,5,[s])};return n.value=e,n.attached=fE(),n}function gE(e,t){if(ht(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const jh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mE=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?nE(e,s,c):t==="style"?oE(e,n,s):Va(t)?au(t)||uE(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_E(e,t,s,c))?lE(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),aE(e,t,s,c))};function _E(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&jh(t)&&xt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return jh(t)&&ee(n)?!1:t in e}const Am=new WeakMap,Cm=new WeakMap,va=Symbol("_moveCb"),Wh=Symbol("_enterCb"),Tm={name:"TransitionGroup",props:se({},Zw,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_m(),s=Zg();let i,o;return sm(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!wE(i[0].el,n.vnode.el,r))return;i.forEach(vE),i.forEach(yE);const a=i.filter(xE);Sm(),a.forEach(l=>{const c=l.el,u=c.style;wn(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[va]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[va]=null,Kn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=kt(e),a=wm(r);let l=r.tag||Qt;i=o,o=t.default?Pu(t.default()):[];for(let c=0;cdelete e.mode;Tm.props;const Lu=Tm;function vE(e){const t=e.el;t[va]&&t[va](),t[Wh]&&t[Wh]()}function yE(e){Cm.set(e,e.el.getBoundingClientRect())}function xE(e){const t=Am.get(e),n=Cm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function wE(e,t,n){const s=e.cloneNode(),i=e[Bi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=Em(s);return o.removeChild(s),r}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ht(t)?n=>ia(t,n):t};function EE(e){e.target.composing=!0}function zh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),vt={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ge]=hs(i);const o=s||i.props&&i.props.type==="number";Tn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=pa(a)),e[Ge](a)}),n&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",EE),Tn(e,"compositionend",zh),Tn(e,"change",zh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e[Ge]=hs(o),e.composing)return;const r=i||e.type==="number"?pa(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},lr={deep:!0,created(e,t,n){e[Ge]=hs(n),Tn(e,"change",()=>{const s=e._modelValue,i=Vi(e),o=e.checked,r=e[Ge];if(ht(s)){const a=du(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c)}}else if(Ji(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a)}else r(Pm(e,o))})},mounted:Uh,beforeUpdate(e,t,n){e[Ge]=hs(n),Uh(e,t,n)}};function Uh(e,{value:t,oldValue:n},s){e._modelValue=t,ht(t)?e.checked=du(t,s.props.value)>-1:Ji(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xs(t,Pm(e,!0)))}const SE={created(e,{value:t},n){e.checked=Xs(t,n.props.value),e[Ge]=hs(n),Tn(e,"change",()=>{e[Ge](Vi(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ge]=hs(s),t!==n&&(e.checked=Xs(t,s.props.value))}},AE={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=Ji(t);Tn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?pa(Vi(r)):Vi(r));e[Ge](e.multiple?i?new Set(o):o:o[0])}),e[Ge]=hs(s)},mounted(e,{value:t}){Kh(e,t)},beforeUpdate(e,t,n){e[Ge]=hs(n)},updated(e,{value:t}){Kh(e,t)}};function Kh(e,t){const n=e.multiple;if(!(n&&!ht(t)&&!Ji(t))){for(let s=0,i=e.options.length;s-1:o.selected=t.has(r);else if(Xs(Vi(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vi(e){return"_value"in e?e._value:e.value}function Pm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const CE={created(e,t,n){Nr(e,t,n,null,"created")},mounted(e,t,n){Nr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Nr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Nr(e,t,n,s,"updated")}};function TE(e,t){switch(e){case"SELECT":return AE;case"TEXTAREA":return vt;default:switch(t){case"checkbox":return lr;case"radio":return SE;default:return vt}}}function Nr(e,t,n,s,i){const r=TE(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s)}const PE=se({patchProp:mE},Jw);let Yh;function kE(){return Yh||(Yh=Ow(PE))}const $E=(...e)=>{const t=kE().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=OE(s);if(!i)return;const o=t._component;!xt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,ME(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function ME(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OE(e){return ee(e)?document.querySelector(e):e}var DE=!1;/*! + */(function(e,t){(function(n,s){e.exports=s(n1)})(Kp,function(n){function s(k){const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(k){for(const b in k)if(b!=="default"){const M=Object.getOwnPropertyDescriptor(k,b);Object.defineProperty(h,b,M.get?M:{enumerable:!0,get:()=>k[b]})}}return h.default=k,Object.freeze(h)}const i=s(n),o=new Map,r={set(k,h,b){o.has(k)||o.set(k,new Map);const M=o.get(k);if(!M.has(h)&&M.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(M.keys())[0]}.`);return}M.set(h,b)},get(k,h){return o.has(k)&&o.get(k).get(h)||null},remove(k,h){if(!o.has(k))return;const b=o.get(k);b.delete(h),b.size===0&&o.delete(k)}},a=1e6,l=1e3,c="transitionend",u=k=>(k&&window.CSS&&window.CSS.escape&&(k=k.replace(/#([^\s"#']+)/g,(h,b)=>`#${CSS.escape(b)}`)),k),d=k=>k==null?`${k}`:Object.prototype.toString.call(k).match(/\s([a-z]+)/i)[1].toLowerCase(),f=k=>{do k+=Math.floor(Math.random()*a);while(document.getElementById(k));return k},p=k=>{if(!k)return 0;let{transitionDuration:h,transitionDelay:b}=window.getComputedStyle(k);const M=Number.parseFloat(h),z=Number.parseFloat(b);return!M&&!z?0:(h=h.split(",")[0],b=b.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(b))*l)},m=k=>{k.dispatchEvent(new Event(c))},_=k=>!k||typeof k!="object"?!1:(typeof k.jquery<"u"&&(k=k[0]),typeof k.nodeType<"u"),v=k=>_(k)?k.jquery?k[0]:k:typeof k=="string"&&k.length>0?document.querySelector(u(k)):null,x=k=>{if(!_(k)||k.getClientRects().length===0)return!1;const h=getComputedStyle(k).getPropertyValue("visibility")==="visible",b=k.closest("details:not([open])");if(!b)return h;if(b!==k){const M=k.closest("summary");if(M&&M.parentNode!==b||M===null)return!1}return h},S=k=>!k||k.nodeType!==Node.ELEMENT_NODE||k.classList.contains("disabled")?!0:typeof k.disabled<"u"?k.disabled:k.hasAttribute("disabled")&&k.getAttribute("disabled")!=="false",P=k=>{if(!document.documentElement.attachShadow)return null;if(typeof k.getRootNode=="function"){const h=k.getRootNode();return h instanceof ShadowRoot?h:null}return k instanceof ShadowRoot?k:k.parentNode?P(k.parentNode):null},A=()=>{},y=k=>{k.offsetHeight},E=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],w=k=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const h of C)h()}),C.push(k)):k()},$=()=>document.documentElement.dir==="rtl",D=k=>{w(()=>{const h=E();if(h){const b=k.NAME,M=h.fn[b];h.fn[b]=k.jQueryInterface,h.fn[b].Constructor=k,h.fn[b].noConflict=()=>(h.fn[b]=M,k.jQueryInterface)}})},I=(k,h=[],b=k)=>typeof k=="function"?k(...h):b,N=(k,h,b=!0)=>{if(!b){I(k);return}const z=p(h)+5;let st=!1;const et=({target:Tt})=>{Tt===h&&(st=!0,h.removeEventListener(c,et),I(k))};h.addEventListener(c,et),setTimeout(()=>{st||m(h)},z)},Q=(k,h,b,M)=>{const z=k.length;let st=k.indexOf(h);return st===-1?!b&&M?k[z-1]:k[0]:(st+=b?1:-1,M&&(st=(st+z)%z),k[Math.max(0,Math.min(st,z-1))])},Y=/[^.]*(?=\..*)\.|.*/,H=/\..*/,R=/::\d+$/,W={};let U=1;const rt={mouseenter:"mouseover",mouseleave:"mouseout"},ct=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 mt(k,h){return h&&`${h}::${U++}`||k.uidEvent||U++}function pt(k){const h=mt(k);return k.uidEvent=h,W[h]=W[h]||{},W[h]}function Pt(k,h){return function b(M){return T(M,{delegateTarget:k}),b.oneOff&&F.off(k,M.type,h),h.apply(k,[M])}}function At(k,h,b){return function M(z){const st=k.querySelectorAll(h);for(let{target:et}=z;et&&et!==this;et=et.parentNode)for(const Tt of st)if(Tt===et)return T(z,{delegateTarget:et}),M.oneOff&&F.off(k,z.type,h,b),b.apply(et,[z])}}function Mt(k,h,b=null){return Object.values(k).find(M=>M.callable===h&&M.delegationSelector===b)}function Ct(k,h,b){const M=typeof h=="string",z=M?b:h||b;let st=at(k);return ct.has(st)||(st=k),[M,z,st]}function j(k,h,b,M,z){if(typeof h!="string"||!k)return;let[st,et,Tt]=Ct(h,b,M);h in rt&&(et=(lx=>function(hi){if(!hi.relatedTarget||hi.relatedTarget!==hi.delegateTarget&&!hi.delegateTarget.contains(hi.relatedTarget))return lx.call(this,hi)})(et));const ye=pt(k),Ve=ye[Tt]||(ye[Tt]={}),ae=Mt(Ve,et,st?b:null);if(ae){ae.oneOff=ae.oneOff&&z;return}const sn=mt(et,h.replace(Y,"")),Qe=st?At(k,b,et):Pt(k,et);Qe.delegationSelector=st?b:null,Qe.callable=et,Qe.oneOff=z,Qe.uidEvent=sn,Ve[sn]=Qe,k.addEventListener(Tt,Qe,st)}function nt(k,h,b,M,z){const st=Mt(h[b],M,z);st&&(k.removeEventListener(b,st,!!z),delete h[b][st.uidEvent])}function Z(k,h,b,M){const z=h[b]||{};for(const[st,et]of Object.entries(z))st.includes(M)&&nt(k,h,b,et.callable,et.delegationSelector)}function at(k){return k=k.replace(H,""),rt[k]||k}const F={on(k,h,b,M){j(k,h,b,M,!1)},one(k,h,b,M){j(k,h,b,M,!0)},off(k,h,b,M){if(typeof h!="string"||!k)return;const[z,st,et]=Ct(h,b,M),Tt=et!==h,ye=pt(k),Ve=ye[et]||{},ae=h.startsWith(".");if(typeof st<"u"){if(!Object.keys(Ve).length)return;nt(k,ye,et,st,z?b:null);return}if(ae)for(const sn of Object.keys(ye))Z(k,ye,sn,h.slice(1));for(const[sn,Qe]of Object.entries(Ve)){const kr=sn.replace(R,"");(!Tt||h.includes(kr))&&nt(k,ye,et,Qe.callable,Qe.delegationSelector)}},trigger(k,h,b){if(typeof h!="string"||!k)return null;const M=E(),z=at(h),st=h!==z;let et=null,Tt=!0,ye=!0,Ve=!1;st&&M&&(et=M.Event(h,b),M(k).trigger(et),Tt=!et.isPropagationStopped(),ye=!et.isImmediatePropagationStopped(),Ve=et.isDefaultPrevented());const ae=T(new Event(h,{bubbles:Tt,cancelable:!0}),b);return Ve&&ae.preventDefault(),ye&&k.dispatchEvent(ae),ae.defaultPrevented&&et&&et.preventDefault(),ae}};function T(k,h={}){for(const[b,M]of Object.entries(h))try{k[b]=M}catch{Object.defineProperty(k,b,{configurable:!0,get(){return M}})}return k}function O(k){if(k==="true")return!0;if(k==="false")return!1;if(k===Number(k).toString())return Number(k);if(k===""||k==="null")return null;if(typeof k!="string")return k;try{return JSON.parse(decodeURIComponent(k))}catch{return k}}function L(k){return k.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}const V={setDataAttribute(k,h,b){k.setAttribute(`data-bs-${L(h)}`,b)},removeDataAttribute(k,h){k.removeAttribute(`data-bs-${L(h)}`)},getDataAttributes(k){if(!k)return{};const h={},b=Object.keys(k.dataset).filter(M=>M.startsWith("bs")&&!M.startsWith("bsConfig"));for(const M of b){let z=M.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),h[z]=O(k.dataset[M])}return h},getDataAttribute(k,h){return O(k.getAttribute(`data-bs-${L(h)}`))}};class K{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(h){return h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h}_mergeConfigObj(h,b){const M=_(b)?V.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof M=="object"?M:{},..._(b)?V.getDataAttributes(b):{},...typeof h=="object"?h:{}}}_typeCheckConfig(h,b=this.constructor.DefaultType){for(const[M,z]of Object.entries(b)){const st=h[M],et=_(st)?"element":d(st);if(!new RegExp(z).test(et))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${M}" provided type "${et}" but expected type "${z}".`)}}}const G="5.3.2";class tt extends K{constructor(h,b){super(),h=v(h),h&&(this._element=h,this._config=this._getConfig(b),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const h of Object.getOwnPropertyNames(this))this[h]=null}_queueCallback(h,b,M=!0){N(h,b,M)}_getConfig(h){return h=this._mergeConfigObj(h,this._element),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}static getInstance(h){return r.get(v(h),this.DATA_KEY)}static getOrCreateInstance(h,b={}){return this.getInstance(h)||new this(h,typeof b=="object"?b:null)}static get VERSION(){return G}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(h){return`${h}${this.EVENT_KEY}`}}const J=k=>{let h=k.getAttribute("data-bs-target");if(!h||h==="#"){let b=k.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),h=b&&b!=="#"?u(b.trim()):null}return h},B={find(k,h=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(h,k))},findOne(k,h=document.documentElement){return Element.prototype.querySelector.call(h,k)},children(k,h){return[].concat(...k.children).filter(b=>b.matches(h))},parents(k,h){const b=[];let M=k.parentNode.closest(h);for(;M;)b.push(M),M=M.parentNode.closest(h);return b},prev(k,h){let b=k.previousElementSibling;for(;b;){if(b.matches(h))return[b];b=b.previousElementSibling}return[]},next(k,h){let b=k.nextElementSibling;for(;b;){if(b.matches(h))return[b];b=b.nextElementSibling}return[]},focusableChildren(k){const h=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(h,k).filter(b=>!S(b)&&x(b))},getSelectorFromElement(k){const h=J(k);return h&&B.findOne(h)?h:null},getElementFromSelector(k){const h=J(k);return h?B.findOne(h):null},getMultipleElementsFromSelector(k){const h=J(k);return h?B.find(h):[]}},q=(k,h="hide")=>{const b=`click.dismiss${k.EVENT_KEY}`,M=k.NAME;F.on(document,b,`[data-bs-dismiss="${M}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),S(this))return;const st=B.getElementFromSelector(this)||this.closest(`.${M}`);k.getOrCreateInstance(st)[h]()})},lt="alert",ut=".bs.alert",_t=`close${ut}`,St=`closed${ut}`,Dt="fade",Nt="show";class Gt extends tt{static get NAME(){return lt}close(){if(F.trigger(this._element,_t).defaultPrevented)return;this._element.classList.remove(Nt);const b=this._element.classList.contains(Dt);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),F.trigger(this._element,St),this.dispose()}static jQueryInterface(h){return this.each(function(){const b=Gt.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}q(Gt,"close"),D(Gt);const Te="button",mr=".bs.button",xs=".data-api",_r="active",he='[data-bs-toggle="button"]',Fe=`click${mr}${xs}`;class Bn extends tt{static get NAME(){return Te}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_r))}static jQueryInterface(h){return this.each(function(){const b=Bn.getOrCreateInstance(this);h==="toggle"&&b[h]()})}}F.on(document,Fe,he,k=>{k.preventDefault();const h=k.target.closest(he);Bn.getOrCreateInstance(h).toggle()}),D(Bn);const Ob="swipe",ii=".bs.swipe",Db=`touchstart${ii}`,Ib=`touchmove${ii}`,Lb=`touchend${ii}`,Rb=`pointerdown${ii}`,Nb=`pointerup${ii}`,Fb="touch",Bb="pen",Vb="pointer-event",Hb=40,jb={endCallback:null,leftCallback:null,rightCallback:null},Wb={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class br extends K{constructor(h,b){super(),this._element=h,!(!h||!br.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return jb}static get DefaultType(){return Wb}static get NAME(){return Ob}dispose(){F.off(this._element,ii)}_start(h){if(!this._supportPointerEvents){this._deltaX=h.touches[0].clientX;return}this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX)}_end(h){this._eventIsPointerPenTouch(h)&&(this._deltaX=h.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(h){this._deltaX=h.touches&&h.touches.length>1?0:h.touches[0].clientX-this._deltaX}_handleSwipe(){const h=Math.abs(this._deltaX);if(h<=Hb)return;const b=h/this._deltaX;this._deltaX=0,b&&I(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(F.on(this._element,Rb,h=>this._start(h)),F.on(this._element,Nb,h=>this._end(h)),this._element.classList.add(Vb)):(F.on(this._element,Db,h=>this._start(h)),F.on(this._element,Ib,h=>this._move(h)),F.on(this._element,Lb,h=>this._end(h)))}_eventIsPointerPenTouch(h){return this._supportPointerEvents&&(h.pointerType===Bb||h.pointerType===Fb)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const zb="carousel",Vn=".bs.carousel",dd=".data-api",Ub="ArrowLeft",Kb="ArrowRight",Yb=500,io="next",oi="prev",ri="left",vr="right",qb=`slide${Vn}`,gl=`slid${Vn}`,Gb=`keydown${Vn}`,Xb=`mouseenter${Vn}`,Qb=`mouseleave${Vn}`,Jb=`dragstart${Vn}`,Zb=`load${Vn}${dd}`,tv=`click${Vn}${dd}`,hd="carousel",yr="active",ev="slide",nv="carousel-item-end",sv="carousel-item-start",iv="carousel-item-next",ov="carousel-item-prev",fd=".active",pd=".carousel-item",rv=fd+pd,av=".carousel-item img",lv=".carousel-indicators",cv="[data-bs-slide], [data-bs-slide-to]",uv='[data-bs-ride="carousel"]',dv={[Ub]:vr,[Kb]:ri},hv={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},fv={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ai extends tt{constructor(h,b){super(h,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(lv,this._element),this._addEventListeners(),this._config.ride===hd&&this.cycle()}static get Default(){return hv}static get DefaultType(){return fv}static get NAME(){return zb}next(){this._slide(io)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(oi)}pause(){this._isSliding&&m(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){F.one(this._element,gl,()=>this.cycle());return}this.cycle()}}to(h){const b=this._getItems();if(h>b.length-1||h<0)return;if(this._isSliding){F.one(this._element,gl,()=>this.to(h));return}const M=this._getItemIndex(this._getActive());if(M===h)return;const z=h>M?io:oi;this._slide(z,b[h])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(h){return h.defaultInterval=h.interval,h}_addEventListeners(){this._config.keyboard&&F.on(this._element,Gb,h=>this._keydown(h)),this._config.pause==="hover"&&(F.on(this._element,Xb,()=>this.pause()),F.on(this._element,Qb,()=>this._maybeEnableCycle())),this._config.touch&&br.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const M of B.find(av,this._element))F.on(M,Jb,z=>z.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(ri)),rightCallback:()=>this._slide(this._directionToOrder(vr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Yb+this._config.interval))}};this._swipeHelper=new br(this._element,b)}_keydown(h){if(/input|textarea/i.test(h.target.tagName))return;const b=dv[h.key];b&&(h.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(h){return this._getItems().indexOf(h)}_setActiveIndicatorElement(h){if(!this._indicatorsElement)return;const b=B.findOne(fd,this._indicatorsElement);b.classList.remove(yr),b.removeAttribute("aria-current");const M=B.findOne(`[data-bs-slide-to="${h}"]`,this._indicatorsElement);M&&(M.classList.add(yr),M.setAttribute("aria-current","true"))}_updateInterval(){const h=this._activeElement||this._getActive();if(!h)return;const b=Number.parseInt(h.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(h,b=null){if(this._isSliding)return;const M=this._getActive(),z=h===io,st=b||Q(this._getItems(),M,z,this._config.wrap);if(st===M)return;const et=this._getItemIndex(st),Tt=kr=>F.trigger(this._element,kr,{relatedTarget:st,direction:this._orderToDirection(h),from:this._getItemIndex(M),to:et});if(Tt(qb).defaultPrevented||!M||!st)return;const Ve=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(et),this._activeElement=st;const ae=z?sv:nv,sn=z?iv:ov;st.classList.add(sn),y(st),M.classList.add(ae),st.classList.add(ae);const Qe=()=>{st.classList.remove(ae,sn),st.classList.add(yr),M.classList.remove(yr,sn,ae),this._isSliding=!1,Tt(gl)};this._queueCallback(Qe,M,this._isAnimated()),Ve&&this.cycle()}_isAnimated(){return this._element.classList.contains(ev)}_getActive(){return B.findOne(rv,this._element)}_getItems(){return B.find(pd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(h){return $()?h===ri?oi:io:h===ri?io:oi}_orderToDirection(h){return $()?h===oi?ri:vr:h===oi?vr:ri}static jQueryInterface(h){return this.each(function(){const b=ai.getOrCreateInstance(this,h);if(typeof h=="number"){b.to(h);return}if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,tv,cv,function(k){const h=B.getElementFromSelector(this);if(!h||!h.classList.contains(hd))return;k.preventDefault();const b=ai.getOrCreateInstance(h),M=this.getAttribute("data-bs-slide-to");if(M){b.to(M),b._maybeEnableCycle();return}if(V.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),F.on(window,Zb,()=>{const k=B.find(uv);for(const h of k)ai.getOrCreateInstance(h)}),D(ai);const pv="collapse",oo=".bs.collapse",gv=".data-api",mv=`show${oo}`,_v=`shown${oo}`,bv=`hide${oo}`,vv=`hidden${oo}`,yv=`click${oo}${gv}`,ml="show",li="collapse",xr="collapsing",xv="collapsed",wv=`:scope .${li} .${li}`,Ev="collapse-horizontal",Sv="width",Av="height",Cv=".collapse.show, .collapse.collapsing",_l='[data-bs-toggle="collapse"]',Tv={parent:null,toggle:!0},Pv={parent:"(null|element)",toggle:"boolean"};class ci extends tt{constructor(h,b){super(h,b),this._isTransitioning=!1,this._triggerArray=[];const M=B.find(_l);for(const z of M){const st=B.getSelectorFromElement(z),et=B.find(st).filter(Tt=>Tt===this._element);st!==null&&et.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Tv}static get DefaultType(){return Pv}static get NAME(){return pv}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let h=[];if(this._config.parent&&(h=this._getFirstLevelChildren(Cv).filter(Tt=>Tt!==this._element).map(Tt=>ci.getOrCreateInstance(Tt,{toggle:!1}))),h.length&&h[0]._isTransitioning||F.trigger(this._element,mv).defaultPrevented)return;for(const Tt of h)Tt.hide();const M=this._getDimension();this._element.classList.remove(li),this._element.classList.add(xr),this._element.style[M]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const z=()=>{this._isTransitioning=!1,this._element.classList.remove(xr),this._element.classList.add(li,ml),this._element.style[M]="",F.trigger(this._element,_v)},et=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(z,this._element,!0),this._element.style[M]=`${this._element[et]}px`}hide(){if(this._isTransitioning||!this._isShown()||F.trigger(this._element,bv).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,y(this._element),this._element.classList.add(xr),this._element.classList.remove(li,ml);for(const z of this._triggerArray){const st=B.getElementFromSelector(z);st&&!this._isShown(st)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0;const M=()=>{this._isTransitioning=!1,this._element.classList.remove(xr),this._element.classList.add(li),F.trigger(this._element,vv)};this._element.style[b]="",this._queueCallback(M,this._element,!0)}_isShown(h=this._element){return h.classList.contains(ml)}_configAfterMerge(h){return h.toggle=!!h.toggle,h.parent=v(h.parent),h}_getDimension(){return this._element.classList.contains(Ev)?Sv:Av}_initializeChildren(){if(!this._config.parent)return;const h=this._getFirstLevelChildren(_l);for(const b of h){const M=B.getElementFromSelector(b);M&&this._addAriaAndCollapsedClass([b],this._isShown(M))}}_getFirstLevelChildren(h){const b=B.find(wv,this._config.parent);return B.find(h,this._config.parent).filter(M=>!b.includes(M))}_addAriaAndCollapsedClass(h,b){if(h.length)for(const M of h)M.classList.toggle(xv,!b),M.setAttribute("aria-expanded",b)}static jQueryInterface(h){const b={};return typeof h=="string"&&/show|hide/.test(h)&&(b.toggle=!1),this.each(function(){const M=ci.getOrCreateInstance(this,b);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h]()}})}}F.on(document,yv,_l,function(k){(k.target.tagName==="A"||k.delegateTarget&&k.delegateTarget.tagName==="A")&&k.preventDefault();for(const h of B.getMultipleElementsFromSelector(this))ci.getOrCreateInstance(h,{toggle:!1}).toggle()}),D(ci);const gd="dropdown",ws=".bs.dropdown",bl=".data-api",kv="Escape",md="Tab",$v="ArrowUp",_d="ArrowDown",Mv=2,Ov=`hide${ws}`,Dv=`hidden${ws}`,Iv=`show${ws}`,Lv=`shown${ws}`,bd=`click${ws}${bl}`,vd=`keydown${ws}${bl}`,Rv=`keyup${ws}${bl}`,ui="show",Nv="dropup",Fv="dropend",Bv="dropstart",Vv="dropup-center",Hv="dropdown-center",Es='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',jv=`${Es}.${ui}`,wr=".dropdown-menu",Wv=".navbar",zv=".navbar-nav",Uv=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Kv=$()?"top-end":"top-start",Yv=$()?"top-start":"top-end",qv=$()?"bottom-end":"bottom-start",Gv=$()?"bottom-start":"bottom-end",Xv=$()?"left-start":"right-start",Qv=$()?"right-start":"left-start",Jv="top",Zv="bottom",ty={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ey={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xe extends tt{constructor(h,b){super(h,b),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,wr)[0]||B.prev(this._element,wr)[0]||B.findOne(wr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ty}static get DefaultType(){return ey}static get NAME(){return gd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(S(this._element)||this._isShown())return;const h={relatedTarget:this._element};if(!F.trigger(this._element,Iv,h).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(zv))for(const M of[].concat(...document.body.children))F.on(M,"mouseover",A);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ui),this._element.classList.add(ui),F.trigger(this._element,Lv,h)}}hide(){if(S(this._element)||!this._isShown())return;const h={relatedTarget:this._element};this._completeHide(h)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(h){if(!F.trigger(this._element,Ov,h).defaultPrevented){if("ontouchstart"in document.documentElement)for(const M of[].concat(...document.body.children))F.off(M,"mouseover",A);this._popper&&this._popper.destroy(),this._menu.classList.remove(ui),this._element.classList.remove(ui),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,Dv,h)}}_getConfig(h){if(h=super._getConfig(h),typeof h.reference=="object"&&!_(h.reference)&&typeof h.reference.getBoundingClientRect!="function")throw new TypeError(`${gd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return h}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let h=this._element;this._config.reference==="parent"?h=this._parent:_(this._config.reference)?h=v(this._config.reference):typeof this._config.reference=="object"&&(h=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(h,this._menu,b)}_isShown(){return this._menu.classList.contains(ui)}_getPlacement(){const h=this._parent;if(h.classList.contains(Fv))return Xv;if(h.classList.contains(Bv))return Qv;if(h.classList.contains(Vv))return Jv;if(h.classList.contains(Hv))return Zv;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return h.classList.contains(Nv)?b?Yv:Kv:b?Gv:qv}_detectNavbar(){return this._element.closest(Wv)!==null}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_getPopperConfig(){const h={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(V.setDataAttribute(this._menu,"popper","static"),h.modifiers=[{name:"applyStyles",enabled:!1}]),{...h,...I(this._config.popperConfig,[h])}}_selectMenuItem({key:h,target:b}){const M=B.find(Uv,this._menu).filter(z=>x(z));M.length&&Q(M,b,h===_d,!M.includes(b)).focus()}static jQueryInterface(h){return this.each(function(){const b=Xe.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}static clearMenus(h){if(h.button===Mv||h.type==="keyup"&&h.key!==md)return;const b=B.find(jv);for(const M of b){const z=Xe.getInstance(M);if(!z||z._config.autoClose===!1)continue;const st=h.composedPath(),et=st.includes(z._menu);if(st.includes(z._element)||z._config.autoClose==="inside"&&!et||z._config.autoClose==="outside"&&et||z._menu.contains(h.target)&&(h.type==="keyup"&&h.key===md||/input|select|option|textarea|form/i.test(h.target.tagName)))continue;const Tt={relatedTarget:z._element};h.type==="click"&&(Tt.clickEvent=h),z._completeHide(Tt)}}static dataApiKeydownHandler(h){const b=/input|textarea/i.test(h.target.tagName),M=h.key===kv,z=[$v,_d].includes(h.key);if(!z&&!M||b&&!M)return;h.preventDefault();const st=this.matches(Es)?this:B.prev(this,Es)[0]||B.next(this,Es)[0]||B.findOne(Es,h.delegateTarget.parentNode),et=Xe.getOrCreateInstance(st);if(z){h.stopPropagation(),et.show(),et._selectMenuItem(h);return}et._isShown()&&(h.stopPropagation(),et.hide(),st.focus())}}F.on(document,vd,Es,Xe.dataApiKeydownHandler),F.on(document,vd,wr,Xe.dataApiKeydownHandler),F.on(document,bd,Xe.clearMenus),F.on(document,Rv,Xe.clearMenus),F.on(document,bd,Es,function(k){k.preventDefault(),Xe.getOrCreateInstance(this).toggle()}),D(Xe);const yd="backdrop",ny="fade",xd="show",wd=`mousedown.bs.${yd}`,sy={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},iy={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ed extends K{constructor(h){super(),this._config=this._getConfig(h),this._isAppended=!1,this._element=null}static get Default(){return sy}static get DefaultType(){return iy}static get NAME(){return yd}show(h){if(!this._config.isVisible){I(h);return}this._append();const b=this._getElement();this._config.isAnimated&&y(b),b.classList.add(xd),this._emulateAnimation(()=>{I(h)})}hide(h){if(!this._config.isVisible){I(h);return}this._getElement().classList.remove(xd),this._emulateAnimation(()=>{this.dispose(),I(h)})}dispose(){this._isAppended&&(F.off(this._element,wd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const h=document.createElement("div");h.className=this._config.className,this._config.isAnimated&&h.classList.add(ny),this._element=h}return this._element}_configAfterMerge(h){return h.rootElement=v(h.rootElement),h}_append(){if(this._isAppended)return;const h=this._getElement();this._config.rootElement.append(h),F.on(h,wd,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(h){N(h,this._getElement(),this._config.isAnimated)}}const oy="focustrap",Er=".bs.focustrap",ry=`focusin${Er}`,ay=`keydown.tab${Er}`,ly="Tab",cy="forward",Sd="backward",uy={autofocus:!0,trapElement:null},dy={autofocus:"boolean",trapElement:"element"};class Ad extends K{constructor(h){super(),this._config=this._getConfig(h),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return uy}static get DefaultType(){return dy}static get NAME(){return oy}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),F.off(document,Er),F.on(document,ry,h=>this._handleFocusin(h)),F.on(document,ay,h=>this._handleKeydown(h)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,F.off(document,Er))}_handleFocusin(h){const{trapElement:b}=this._config;if(h.target===document||h.target===b||b.contains(h.target))return;const M=B.focusableChildren(b);M.length===0?b.focus():this._lastTabNavDirection===Sd?M[M.length-1].focus():M[0].focus()}_handleKeydown(h){h.key===ly&&(this._lastTabNavDirection=h.shiftKey?Sd:cy)}}const Cd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Td=".sticky-top",Sr="padding-right",Pd="margin-right";class vl{constructor(){this._element=document.body}getWidth(){const h=document.documentElement.clientWidth;return Math.abs(window.innerWidth-h)}hide(){const h=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Sr,b=>b+h),this._setElementAttributes(Cd,Sr,b=>b+h),this._setElementAttributes(Td,Pd,b=>b-h)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Sr),this._resetElementAttributes(Cd,Sr),this._resetElementAttributes(Td,Pd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(h,b,M){const z=this.getWidth(),st=et=>{if(et!==this._element&&window.innerWidth>et.clientWidth+z)return;this._saveInitialAttribute(et,b);const Tt=window.getComputedStyle(et).getPropertyValue(b);et.style.setProperty(b,`${M(Number.parseFloat(Tt))}px`)};this._applyManipulationCallback(h,st)}_saveInitialAttribute(h,b){const M=h.style.getPropertyValue(b);M&&V.setDataAttribute(h,b,M)}_resetElementAttributes(h,b){const M=z=>{const st=V.getDataAttribute(z,b);if(st===null){z.style.removeProperty(b);return}V.removeDataAttribute(z,b),z.style.setProperty(b,st)};this._applyManipulationCallback(h,M)}_applyManipulationCallback(h,b){if(_(h)){b(h);return}for(const M of B.find(h,this._element))b(M)}}const hy="modal",Be=".bs.modal",fy=".data-api",py="Escape",gy=`hide${Be}`,my=`hidePrevented${Be}`,kd=`hidden${Be}`,$d=`show${Be}`,_y=`shown${Be}`,by=`resize${Be}`,vy=`click.dismiss${Be}`,yy=`mousedown.dismiss${Be}`,xy=`keydown.dismiss${Be}`,wy=`click${Be}${fy}`,Md="modal-open",Ey="fade",Od="show",yl="modal-static",Sy=".modal.show",Ay=".modal-dialog",Cy=".modal-body",Ty='[data-bs-toggle="modal"]',Py={backdrop:!0,focus:!0,keyboard:!0},ky={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ss extends tt{constructor(h,b){super(h,b),this._dialog=B.findOne(Ay,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new vl,this._addEventListeners()}static get Default(){return Py}static get DefaultType(){return ky}static get NAME(){return hy}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){this._isShown||this._isTransitioning||F.trigger(this._element,$d,{relatedTarget:h}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Md),this._adjustDialog(),this._backdrop.show(()=>this._showElement(h)))}hide(){!this._isShown||this._isTransitioning||F.trigger(this._element,gy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Od),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){F.off(window,Be),F.off(this._dialog,Be),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ed({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_showElement(h){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 b=B.findOne(Cy,this._dialog);b&&(b.scrollTop=0),y(this._element),this._element.classList.add(Od);const M=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,F.trigger(this._element,_y,{relatedTarget:h})};this._queueCallback(M,this._dialog,this._isAnimated())}_addEventListeners(){F.on(this._element,xy,h=>{if(h.key===py){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),F.on(window,by,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),F.on(this._element,yy,h=>{F.one(this._element,vy,b=>{if(!(this._element!==h.target||this._element!==b.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(Md),this._resetAdjustments(),this._scrollBar.reset(),F.trigger(this._element,kd)})}_isAnimated(){return this._element.classList.contains(Ey)}_triggerBackdropTransition(){if(F.trigger(this._element,my).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,M=this._element.style.overflowY;M==="hidden"||this._element.classList.contains(yl)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(yl),this._queueCallback(()=>{this._element.classList.remove(yl),this._queueCallback(()=>{this._element.style.overflowY=M},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const h=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),M=b>0;if(M&&!h){const z=$()?"paddingLeft":"paddingRight";this._element.style[z]=`${b}px`}if(!M&&h){const z=$()?"paddingRight":"paddingLeft";this._element.style[z]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(h,b){return this.each(function(){const M=Ss.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof M[h]>"u")throw new TypeError(`No method named "${h}"`);M[h](b)}})}}F.on(document,wy,Ty,function(k){const h=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&k.preventDefault(),F.one(h,$d,z=>{z.defaultPrevented||F.one(h,kd,()=>{x(this)&&this.focus()})});const b=B.findOne(Sy);b&&Ss.getInstance(b).hide(),Ss.getOrCreateInstance(h).toggle(this)}),q(Ss),D(Ss);const $y="offcanvas",bn=".bs.offcanvas",Dd=".data-api",My=`load${bn}${Dd}`,Oy="Escape",Id="show",Ld="showing",Rd="hiding",Dy="offcanvas-backdrop",Nd=".offcanvas.show",Iy=`show${bn}`,Ly=`shown${bn}`,Ry=`hide${bn}`,Fd=`hidePrevented${bn}`,Bd=`hidden${bn}`,Ny=`resize${bn}`,Fy=`click${bn}${Dd}`,By=`keydown.dismiss${bn}`,Vy='[data-bs-toggle="offcanvas"]',Hy={backdrop:!0,keyboard:!0,scroll:!1},jy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vn extends tt{constructor(h,b){super(h,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hy}static get DefaultType(){return jy}static get NAME(){return $y}toggle(h){return this._isShown?this.hide():this.show(h)}show(h){if(this._isShown||F.trigger(this._element,Iy,{relatedTarget:h}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new vl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ld);const M=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Id),this._element.classList.remove(Ld),F.trigger(this._element,Ly,{relatedTarget:h})};this._queueCallback(M,this._element,!0)}hide(){if(!this._isShown||F.trigger(this._element,Ry).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rd),this._backdrop.hide();const b=()=>{this._element.classList.remove(Id,Rd),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new vl().reset(),F.trigger(this._element,Bd)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const h=()=>{if(this._config.backdrop==="static"){F.trigger(this._element,Fd);return}this.hide()},b=!!this._config.backdrop;return new Ed({className:Dy,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?h:null})}_initializeFocusTrap(){return new Ad({trapElement:this._element})}_addEventListeners(){F.on(this._element,By,h=>{if(h.key===Oy){if(this._config.keyboard){this.hide();return}F.trigger(this._element,Fd)}})}static jQueryInterface(h){return this.each(function(){const b=vn.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}F.on(document,Fy,Vy,function(k){const h=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&k.preventDefault(),S(this))return;F.one(h,Bd,()=>{x(this)&&this.focus()});const b=B.findOne(Nd);b&&b!==h&&vn.getInstance(b).hide(),vn.getOrCreateInstance(h).toggle(this)}),F.on(window,My,()=>{for(const k of B.find(Nd))vn.getOrCreateInstance(k).show()}),F.on(window,Ny,()=>{for(const k of B.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(k).position!=="fixed"&&vn.getOrCreateInstance(k).hide()}),q(vn),D(vn);const Vd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},Wy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),zy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Uy=(k,h)=>{const b=k.nodeName.toLowerCase();return h.includes(b)?Wy.has(b)?!!zy.test(k.nodeValue):!0:h.filter(M=>M instanceof RegExp).some(M=>M.test(b))};function Ky(k,h,b){if(!k.length)return k;if(b&&typeof b=="function")return b(k);const z=new window.DOMParser().parseFromString(k,"text/html"),st=[].concat(...z.body.querySelectorAll("*"));for(const et of st){const Tt=et.nodeName.toLowerCase();if(!Object.keys(h).includes(Tt)){et.remove();continue}const ye=[].concat(...et.attributes),Ve=[].concat(h["*"]||[],h[Tt]||[]);for(const ae of ye)Uy(ae,Ve)||et.removeAttribute(ae.nodeName)}return z.body.innerHTML}const Yy="TemplateFactory",qy={allowList:Vd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Gy={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 Qy extends K{constructor(h){super(),this._config=this._getConfig(h)}static get Default(){return qy}static get DefaultType(){return Gy}static get NAME(){return Yy}getContent(){return Object.values(this._config.content).map(h=>this._resolvePossibleFunction(h)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(h){return this._checkContent(h),this._config.content={...this._config.content,...h},this}toHtml(){const h=document.createElement("div");h.innerHTML=this._maybeSanitize(this._config.template);for(const[z,st]of Object.entries(this._config.content))this._setContent(h,st,z);const b=h.children[0],M=this._resolvePossibleFunction(this._config.extraClass);return M&&b.classList.add(...M.split(" ")),b}_typeCheckConfig(h){super._typeCheckConfig(h),this._checkContent(h.content)}_checkContent(h){for(const[b,M]of Object.entries(h))super._typeCheckConfig({selector:b,entry:M},Xy)}_setContent(h,b,M){const z=B.findOne(M,h);if(z){if(b=this._resolvePossibleFunction(b),!b){z.remove();return}if(_(b)){this._putElementInTemplate(v(b),z);return}if(this._config.html){z.innerHTML=this._maybeSanitize(b);return}z.textContent=b}}_maybeSanitize(h){return this._config.sanitize?Ky(h,this._config.allowList,this._config.sanitizeFn):h}_resolvePossibleFunction(h){return I(h,[this])}_putElementInTemplate(h,b){if(this._config.html){b.innerHTML="",b.append(h);return}b.textContent=h.textContent}}const Jy="tooltip",Zy=new Set(["sanitize","allowList","sanitizeFn"]),xl="fade",t0="modal",Ar="show",e0=".tooltip-inner",Hd=`.${t0}`,jd="hide.bs.modal",ro="hover",wl="focus",n0="click",s0="manual",i0="hide",o0="hidden",r0="show",a0="shown",l0="inserted",c0="click",u0="focusin",d0="focusout",h0="mouseenter",f0="mouseleave",p0={AUTO:"auto",TOP:"top",RIGHT:$()?"left":"right",BOTTOM:"bottom",LEFT:$()?"right":"left"},g0={allowList:Vd,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},m0={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 As extends tt{constructor(h,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(h,b),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 g0}static get DefaultType(){return m0}static get NAME(){return Jy}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),F.off(this._element.closest(Hd),jd,this._hideModalHandler),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 h=F.trigger(this._element,this.constructor.eventName(r0)),M=(P(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(h.defaultPrevented||!M)return;this._disposePopper();const z=this._getTipElement();this._element.setAttribute("aria-describedby",z.getAttribute("id"));const{container:st}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(st.append(z),F.trigger(this._element,this.constructor.eventName(l0))),this._popper=this._createPopper(z),z.classList.add(Ar),"ontouchstart"in document.documentElement)for(const Tt of[].concat(...document.body.children))F.on(Tt,"mouseover",A);const et=()=>{F.trigger(this._element,this.constructor.eventName(a0)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(et,this.tip,this._isAnimated())}hide(){if(!this._isShown()||F.trigger(this._element,this.constructor.eventName(i0)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ar),"ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))F.off(z,"mouseover",A);this._activeTrigger[n0]=!1,this._activeTrigger[wl]=!1,this._activeTrigger[ro]=!1,this._isHovered=null;const M=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName(o0)))};this._queueCallback(M,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(h){const b=this._getTemplateFactory(h).toHtml();if(!b)return null;b.classList.remove(xl,Ar),b.classList.add(`bs-${this.constructor.NAME}-auto`);const M=f(this.constructor.NAME).toString();return b.setAttribute("id",M),this._isAnimated()&&b.classList.add(xl),b}setContent(h){this._newContent=h,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(h){return this._templateFactory?this._templateFactory.changeContent(h):this._templateFactory=new Qy({...this._config,content:h,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[e0]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(h){return this.constructor.getOrCreateInstance(h.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(xl)}_isShown(){return this.tip&&this.tip.classList.contains(Ar)}_createPopper(h){const b=I(this._config.placement,[this,h,this._element]),M=p0[b.toUpperCase()];return i.createPopper(this._element,h,this._getPopperConfig(M))}_getOffset(){const{offset:h}=this._config;return typeof h=="string"?h.split(",").map(b=>Number.parseInt(b,10)):typeof h=="function"?b=>h(b,this._element):h}_resolvePossibleFunction(h){return I(h,[this._element])}_getPopperConfig(h){const b={placement:h,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:M=>{this._getTipElement().setAttribute("data-popper-placement",M.state.placement)}}]};return{...b,...I(this._config.popperConfig,[b])}}_setListeners(){const h=this._config.trigger.split(" ");for(const b of h)if(b==="click")F.on(this._element,this.constructor.eventName(c0),this._config.selector,M=>{this._initializeOnDelegatedTarget(M).toggle()});else if(b!==s0){const M=b===ro?this.constructor.eventName(h0):this.constructor.eventName(u0),z=b===ro?this.constructor.eventName(f0):this.constructor.eventName(d0);F.on(this._element,M,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusin"?wl:ro]=!0,et._enter()}),F.on(this._element,z,this._config.selector,st=>{const et=this._initializeOnDelegatedTarget(st);et._activeTrigger[st.type==="focusout"?wl:ro]=et._element.contains(st.relatedTarget),et._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Hd),jd,this._hideModalHandler)}_fixTitle(){const h=this._element.getAttribute("title");h&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",h),this._element.setAttribute("data-bs-original-title",h),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(h,b){clearTimeout(this._timeout),this._timeout=setTimeout(h,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(h){const b=V.getDataAttributes(this._element);for(const M of Object.keys(b))Zy.has(M)&&delete b[M];return h={...b,...typeof h=="object"&&h?h:{}},h=this._mergeConfigObj(h),h=this._configAfterMerge(h),this._typeCheckConfig(h),h}_configAfterMerge(h){return h.container=h.container===!1?document.body:v(h.container),typeof h.delay=="number"&&(h.delay={show:h.delay,hide:h.delay}),typeof h.title=="number"&&(h.title=h.title.toString()),typeof h.content=="number"&&(h.content=h.content.toString()),h}_getDelegateConfig(){const h={};for(const[b,M]of Object.entries(this._config))this.constructor.Default[b]!==M&&(h[b]=M);return h.selector=!1,h.trigger="manual",h}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(h){return this.each(function(){const b=As.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(As);const _0="popover",b0=".popover-header",v0=".popover-body",y0={...As.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},x0={...As.DefaultType,content:"(null|string|element|function)"};class Cr extends As{static get Default(){return y0}static get DefaultType(){return x0}static get NAME(){return _0}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[b0]:this._getTitle(),[v0]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(h){return this.each(function(){const b=Cr.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h]()}})}}D(Cr);const w0="scrollspy",El=".bs.scrollspy",E0=".data-api",S0=`activate${El}`,Wd=`click${El}`,A0=`load${El}${E0}`,C0="dropdown-item",di="active",T0='[data-bs-spy="scroll"]',Sl="[href]",P0=".nav, .list-group",zd=".nav-link",k0=`${zd}, .nav-item > ${zd}, .list-group-item`,$0=".dropdown",M0=".dropdown-toggle",O0={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},D0={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ao extends tt{constructor(h,b){super(h,b),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 O0}static get DefaultType(){return D0}static get NAME(){return w0}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const h of this._observableSections.values())this._observer.observe(h)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(h){return h.target=v(h.target)||document.body,h.rootMargin=h.offset?`${h.offset}px 0px -30%`:h.rootMargin,typeof h.threshold=="string"&&(h.threshold=h.threshold.split(",").map(b=>Number.parseFloat(b))),h}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(F.off(this._config.target,Wd),F.on(this._config.target,Wd,Sl,h=>{const b=this._observableSections.get(h.target.hash);if(b){h.preventDefault();const M=this._rootElement||window,z=b.offsetTop-this._element.offsetTop;if(M.scrollTo){M.scrollTo({top:z,behavior:"smooth"});return}M.scrollTop=z}}))}_getNewObserver(){const h={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),h)}_observerCallback(h){const b=et=>this._targetLinks.get(`#${et.target.id}`),M=et=>{this._previousScrollData.visibleEntryTop=et.target.offsetTop,this._process(b(et))},z=(this._rootElement||document.documentElement).scrollTop,st=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const et of h){if(!et.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(et));continue}const Tt=et.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(st&&Tt){if(M(et),!z)return;continue}!st&&!Tt&&M(et)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const h=B.find(Sl,this._config.target);for(const b of h){if(!b.hash||S(b))continue;const M=B.findOne(decodeURI(b.hash),this._element);x(M)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,M))}}_process(h){this._activeTarget!==h&&(this._clearActiveClass(this._config.target),this._activeTarget=h,h.classList.add(di),this._activateParents(h),F.trigger(this._element,S0,{relatedTarget:h}))}_activateParents(h){if(h.classList.contains(C0)){B.findOne(M0,h.closest($0)).classList.add(di);return}for(const b of B.parents(h,P0))for(const M of B.prev(b,k0))M.classList.add(di)}_clearActiveClass(h){h.classList.remove(di);const b=B.find(`${Sl}.${di}`,h);for(const M of b)M.classList.remove(di)}static jQueryInterface(h){return this.each(function(){const b=ao.getOrCreateInstance(this,h);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(window,A0,()=>{for(const k of B.find(T0))ao.getOrCreateInstance(k)}),D(ao);const I0="tab",Cs=".bs.tab",L0=`hide${Cs}`,R0=`hidden${Cs}`,N0=`show${Cs}`,F0=`shown${Cs}`,B0=`click${Cs}`,V0=`keydown${Cs}`,H0=`load${Cs}`,j0="ArrowLeft",Ud="ArrowRight",W0="ArrowUp",Kd="ArrowDown",Al="Home",Yd="End",Ts="active",qd="fade",Cl="show",z0="dropdown",Gd=".dropdown-toggle",U0=".dropdown-menu",Tl=`:not(${Gd})`,K0='.list-group, .nav, [role="tablist"]',Y0=".nav-item, .list-group-item",q0=`.nav-link${Tl}, .list-group-item${Tl}, [role="tab"]${Tl}`,Xd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Pl=`${q0}, ${Xd}`,G0=`.${Ts}[data-bs-toggle="tab"], .${Ts}[data-bs-toggle="pill"], .${Ts}[data-bs-toggle="list"]`;class Ps extends tt{constructor(h){super(h),this._parent=this._element.closest(K0),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),F.on(this._element,V0,b=>this._keydown(b)))}static get NAME(){return I0}show(){const h=this._element;if(this._elemIsActive(h))return;const b=this._getActiveElem(),M=b?F.trigger(b,L0,{relatedTarget:h}):null;F.trigger(h,N0,{relatedTarget:b}).defaultPrevented||M&&M.defaultPrevented||(this._deactivate(b,h),this._activate(h,b))}_activate(h,b){if(!h)return;h.classList.add(Ts),this._activate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.add(Cl);return}h.removeAttribute("tabindex"),h.setAttribute("aria-selected",!0),this._toggleDropDown(h,!0),F.trigger(h,F0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_deactivate(h,b){if(!h)return;h.classList.remove(Ts),h.blur(),this._deactivate(B.getElementFromSelector(h));const M=()=>{if(h.getAttribute("role")!=="tab"){h.classList.remove(Cl);return}h.setAttribute("aria-selected",!1),h.setAttribute("tabindex","-1"),this._toggleDropDown(h,!1),F.trigger(h,R0,{relatedTarget:b})};this._queueCallback(M,h,h.classList.contains(qd))}_keydown(h){if(![j0,Ud,W0,Kd,Al,Yd].includes(h.key))return;h.stopPropagation(),h.preventDefault();const b=this._getChildren().filter(z=>!S(z));let M;if([Al,Yd].includes(h.key))M=b[h.key===Al?0:b.length-1];else{const z=[Ud,Kd].includes(h.key);M=Q(b,h.target,z,!0)}M&&(M.focus({preventScroll:!0}),Ps.getOrCreateInstance(M).show())}_getChildren(){return B.find(Pl,this._parent)}_getActiveElem(){return this._getChildren().find(h=>this._elemIsActive(h))||null}_setInitialAttributes(h,b){this._setAttributeIfNotExists(h,"role","tablist");for(const M of b)this._setInitialAttributesOnChild(M)}_setInitialAttributesOnChild(h){h=this._getInnerElement(h);const b=this._elemIsActive(h),M=this._getOuterElement(h);h.setAttribute("aria-selected",b),M!==h&&this._setAttributeIfNotExists(M,"role","presentation"),b||h.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(h,"role","tab"),this._setInitialAttributesOnTargetPanel(h)}_setInitialAttributesOnTargetPanel(h){const b=B.getElementFromSelector(h);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),h.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${h.id}`))}_toggleDropDown(h,b){const M=this._getOuterElement(h);if(!M.classList.contains(z0))return;const z=(st,et)=>{const Tt=B.findOne(st,M);Tt&&Tt.classList.toggle(et,b)};z(Gd,Ts),z(U0,Cl),M.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(h,b,M){h.hasAttribute(b)||h.setAttribute(b,M)}_elemIsActive(h){return h.classList.contains(Ts)}_getInnerElement(h){return h.matches(Pl)?h:B.findOne(Pl,h)}_getOuterElement(h){return h.closest(Y0)||h}static jQueryInterface(h){return this.each(function(){const b=Ps.getOrCreateInstance(this);if(typeof h=="string"){if(b[h]===void 0||h.startsWith("_")||h==="constructor")throw new TypeError(`No method named "${h}"`);b[h]()}})}}F.on(document,B0,Xd,function(k){["A","AREA"].includes(this.tagName)&&k.preventDefault(),!S(this)&&Ps.getOrCreateInstance(this).show()}),F.on(window,H0,()=>{for(const k of B.find(G0))Ps.getOrCreateInstance(k)}),D(Ps);const X0="toast",Hn=".bs.toast",Q0=`mouseover${Hn}`,J0=`mouseout${Hn}`,Z0=`focusin${Hn}`,tx=`focusout${Hn}`,ex=`hide${Hn}`,nx=`hidden${Hn}`,sx=`show${Hn}`,ix=`shown${Hn}`,ox="fade",Qd="hide",Tr="show",Pr="showing",rx={animation:"boolean",autohide:"boolean",delay:"number"},ax={animation:!0,autohide:!0,delay:5e3};class lo extends tt{constructor(h,b){super(h,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ax}static get DefaultType(){return rx}static get NAME(){return X0}show(){if(F.trigger(this._element,sx).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ox);const b=()=>{this._element.classList.remove(Pr),F.trigger(this._element,ix),this._maybeScheduleHide()};this._element.classList.remove(Qd),y(this._element),this._element.classList.add(Tr,Pr),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||F.trigger(this._element,ex).defaultPrevented)return;const b=()=>{this._element.classList.add(Qd),this._element.classList.remove(Pr,Tr),F.trigger(this._element,nx)};this._element.classList.add(Pr),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tr),super.dispose()}isShown(){return this._element.classList.contains(Tr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(h,b){switch(h.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const M=h.relatedTarget;this._element===M||this._element.contains(M)||this._maybeScheduleHide()}_setListeners(){F.on(this._element,Q0,h=>this._onInteraction(h,!0)),F.on(this._element,J0,h=>this._onInteraction(h,!1)),F.on(this._element,Z0,h=>this._onInteraction(h,!0)),F.on(this._element,tx,h=>this._onInteraction(h,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(h){return this.each(function(){const b=lo.getOrCreateInstance(this,h);if(typeof h=="string"){if(typeof b[h]>"u")throw new TypeError(`No method named "${h}"`);b[h](this)}})}}return q(lo),D(lo),{Alert:Gt,Button:Bn,Carousel:ai,Collapse:ci,Dropdown:Xe,Modal:Ss,Offcanvas:vn,Popover:Cr,ScrollSpy:ao,Tab:Ps,Toast:lo,Tooltip:As}})})(fx);function ru(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Wt={},wi=[],ze=()=>{},s1=()=>!1,Ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),au=e=>e.startsWith("onUpdate:"),se=Object.assign,lu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i1=Object.prototype.hasOwnProperty,It=(e,t)=>i1.call(e,t),ht=Array.isArray,Ei=e=>ir(e)==="[object Map]",Ji=e=>ir(e)==="[object Set]",rh=e=>ir(e)==="[object Date]",xt=e=>typeof e=="function",ee=e=>typeof e=="string",ls=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",_g=e=>(Vt(e)||xt(e))&&xt(e.then)&&xt(e.catch),bg=Object.prototype.toString,ir=e=>bg.call(e),o1=e=>ir(e).slice(8,-1),vg=e=>ir(e)==="[object Object]",cu=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ia=ru(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ja=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},r1=/-(\w)/g,gn=ja(e=>e.replace(r1,(t,n)=>n?n.toUpperCase():"")),a1=/\B([A-Z])/g,Zi=ja(e=>e.replace(a1,"-$1").toLowerCase()),Wa=ja(e=>e.charAt(0).toUpperCase()+e.slice(1)),kl=ja(e=>e?`on${Wa(e)}`:""),cs=(e,t)=>!Object.is(e,t),oa=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ga=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yg=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let ah;const xg=()=>ah||(ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uu(e){if(ht(e)){const t={};for(let n=0;n{if(n){const s=n.split(c1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(ee(e))t=e;else if(ht(e))for(let n=0;nXs(n,t))}const wt=e=>ee(e)?e:e==null?"":ht(e)||Vt(e)&&(e.toString===bg||!xt(e.toString))?JSON.stringify(e,Eg,2):String(e),Eg=(e,t)=>t&&t.__v_isRef?Eg(e,t.value):Ei(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[$l(s,o)+" =>"]=i,n),{})}:Ji(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$l(n))}:ls(t)?$l(t):Vt(t)&&!ht(t)&&!vg(t)?String(t):t,$l=(e,t="")=>{var n;return ls(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ke;class Sg{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){ke=this}off(){ke=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break;ti(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ss,n=js;try{return ss=!0,js=this,this._runnings++,lh(this),this.fn()}finally{ch(this),this._runnings--,js=n,ss=t}}stop(){var t;this.active&&(lh(this),ch(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function m1(e){return e.value}function lh(e){e._trackId++,e._depsLength=0}function ch(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},ma=new WeakMap,Ws=Symbol(""),dc=Symbol("");function Ae(e,t,n){if(ss&&js){let s=ma.get(e);s||ma.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Mg(()=>s.delete(n))),kg(js,i)}}function Dn(e,t,n,s,i,o){const r=ma.get(e);if(!r)return;let a=[];if(t==="clear")a=[...r.values()];else if(n==="length"&&ht(e)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!ls(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(r.get(n)),t){case"add":ht(e)?cu(n)&&a.push(r.get("length")):(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"delete":ht(e)||(a.push(r.get(Ws)),Ei(e)&&a.push(r.get(dc)));break;case"set":Ei(e)&&a.push(r.get(Ws));break}pu();for(const l of a)l&&$g(l,3);gu()}function _1(e,t){var n;return(n=ma.get(e))==null?void 0:n.get(t)}const b1=ru("__proto__,__v_isRef,__isVue"),Og=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ls)),uh=v1();function v1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=kt(this);for(let o=0,r=this.length;o{e[t]=function(...n){Zs(),pu();const s=kt(this)[t].apply(this,n);return gu(),ti(),s}}),e}function y1(e){const t=kt(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class Dg{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?D1:Ng:o?Rg:Lg).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ht(t);if(!i){if(r&&It(uh,n))return Reflect.get(uh,n,s);if(n==="hasOwnProperty")return y1}const a=Reflect.get(t,n,s);return(ls(n)?Og.has(n):b1(n))||(i||Ae(t,"get",n),o)?a:re(a)?r&&cu(n)?a:a.value:Vt(a)?i?Bg(a):or(a):a}}class Ig extends Dg{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];if(!this._shallow){const l=Ii(o);if(!vi(s)&&!Ii(s)&&(o=kt(o),s=kt(s)),!ht(t)&&re(o)&&!re(s))return l?!1:(o.value=s,!0)}const r=ht(t)&&cu(n)?Number(n)e,za=e=>Reflect.getPrototypeOf(e);function Mr(e,t,n=!1,s=!1){e=e.__v_raw;const i=kt(e),o=kt(t);n||(cs(t,o)&&Ae(i,"get",t),Ae(i,"get",o));const{has:r}=za(i),a=s?mu:n?vu:Ho;if(r.call(i,t))return a(e.get(t));if(r.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Or(e,t=!1){const n=this.__v_raw,s=kt(n),i=kt(e);return t||(cs(e,i)&&Ae(s,"has",e),Ae(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Dr(e,t=!1){return e=e.__v_raw,!t&&Ae(kt(e),"iterate",Ws),Reflect.get(e,"size",e)}function dh(e){e=kt(e);const t=kt(this);return za(t).has.call(t,e)||(t.add(e),Dn(t,"add",e,e)),this}function hh(e,t){t=kt(t);const n=kt(this),{has:s,get:i}=za(n);let o=s.call(n,e);o||(e=kt(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?cs(t,r)&&Dn(n,"set",e,t):Dn(n,"add",e,t),this}function fh(e){const t=kt(this),{has:n,get:s}=za(t);let i=n.call(t,e);i||(e=kt(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Dn(t,"delete",e,void 0),o}function ph(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Dn(e,"clear",void 0,void 0),n}function Ir(e,t){return function(s,i){const o=this,r=o.__v_raw,a=kt(r),l=t?mu:e?vu:Ho;return!e&&Ae(a,"iterate",Ws),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function Lr(e,t,n){return function(...s){const i=this.__v_raw,o=kt(i),r=Ei(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...s),u=n?mu:t?vu:Ho;return!t&&Ae(o,"iterate",l?dc:Ws),{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 jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function A1(){const e={get(o){return Mr(this,o)},get size(){return Dr(this)},has:Or,add:dh,set:hh,delete:fh,clear:ph,forEach:Ir(!1,!1)},t={get(o){return Mr(this,o,!1,!0)},get size(){return Dr(this)},has:Or,add:dh,set:hh,delete:fh,clear:ph,forEach:Ir(!1,!0)},n={get(o){return Mr(this,o,!0)},get size(){return Dr(this,!0)},has(o){return Or.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Ir(!0,!1)},s={get(o){return Mr(this,o,!0,!0)},get size(){return Dr(this,!0)},has(o){return Or.call(this,o,!0)},add:jn("add"),set:jn("set"),delete:jn("delete"),clear:jn("clear"),forEach:Ir(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Lr(o,!1,!1),n[o]=Lr(o,!0,!1),t[o]=Lr(o,!1,!0),s[o]=Lr(o,!0,!0)}),[e,n,t,s]}const[C1,T1,P1,k1]=A1();function _u(e,t){const n=t?e?k1:P1:e?T1:C1;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(It(n,i)&&i in s?n:s,i,o)}const $1={get:_u(!1,!1)},M1={get:_u(!1,!0)},O1={get:_u(!0,!1)},Lg=new WeakMap,Rg=new WeakMap,Ng=new WeakMap,D1=new WeakMap;function I1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L1(e){return e.__v_skip||!Object.isExtensible(e)?0:I1(o1(e))}function or(e){return Ii(e)?e:bu(e,!1,w1,$1,Lg)}function Fg(e){return bu(e,!1,S1,M1,Rg)}function Bg(e){return bu(e,!0,E1,O1,Ng)}function bu(e,t,n,s,i){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=L1(e);if(r===0)return e;const a=new Proxy(e,r===2?s:n);return i.set(e,a),a}function is(e){return Ii(e)?is(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function vi(e){return!!(e&&e.__v_isShallow)}function Ua(e){return is(e)||Ii(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function rr(e){return pa(e,"__v_skip",!0),e}const Ho=e=>Vt(e)?or(e):e,vu=e=>Vt(e)?Bg(e):e;class Vg{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fu(()=>t(this._value),()=>hc(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=kt(this);return Hg(t),(!t._cacheable||t.effect.dirty)&&cs(t._value,t._value=t.effect.run())&&hc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function R1(e,t,n=!1){let s,i;const o=xt(e);return o?(s=e,i=ze):(s=e.get,i=e.set),new Vg(s,i,o||!i,n)}function Hg(e){ss&&js&&(e=kt(e),kg(js,e.dep||(e.dep=Mg(()=>e.dep=void 0,e instanceof Vg?e:void 0))))}function hc(e,t=3,n){e=kt(e);const s=e.dep;s&&$g(s,t)}function re(e){return!!(e&&e.__v_isRef===!0)}function Li(e){return jg(e,!1)}function yu(e){return jg(e,!0)}function jg(e,t){return re(e)?e:new N1(e,t)}class N1{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:kt(t),this._value=n?t:Ho(t)}get value(){return Hg(this),this._value}set value(t){const n=this.__v_isShallow||vi(t)||Ii(t);t=n?t:kt(t),cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ho(t),hc(this,3))}}function os(e){return re(e)?e.value:e}const F1={get:(e,t,n)=>os(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return re(i)&&!re(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Wg(e){return is(e)?e:new Proxy(e,F1)}function B1(e){const t=ht(e)?new Array(e.length):{};for(const n in e)t[n]=H1(e,n);return t}class V1{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return _1(kt(this._object),this._key)}}function H1(e,t,n){const s=e[t];return re(s)?s:new V1(e,t,n)}function rs(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){ar(o,t,n)}return i}function qe(e,t,n,s){if(xt(e)){const o=rs(e,t,n,s);return o&&_g(o)&&o.catch(r=>{ar(r,t,n)}),o}const i=[];for(let o=0;o>>1,i=pe[s],o=Wo(i);oln&&pe.splice(t,1)}function pc(e){ht(e)?Si.push(...e):(!An||!An.includes(e,e.allowRecurse?Fs+1:Fs))&&Si.push(e),Ug()}function gh(e,t,n=jo?ln+1:0){for(;nWo(n)-Wo(s)),Fs=0;Fse.id==null?1/0:e.id,U1=(e,t)=>{const n=Wo(e)-Wo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yg(e){fc=!1,jo=!0,pe.sort(U1);try{for(ln=0;lnee(p)?p.trim():p)),d&&(i=n.map(ga))}let a,l=s[a=kl(t)]||s[a=kl(gn(t))];!l&&o&&(l=s[a=kl(Zi(t))]),l&&qe(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(c,e,6,i)}}function qg(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!xt(e)){const l=c=>{const u=qg(c,t,!0);u&&(a=!0,se(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Vt(e)&&s.set(e,null),null):(ht(o)?o.forEach(l=>r[l]=null):se(r,o),Vt(e)&&s.set(e,r),r)}function Ya(e,t){return!e||!Ha(t)?!1:(t=t.slice(2).replace(/Once$/,""),It(e,t[0].toLowerCase()+t.slice(1))||It(e,Zi(t))||It(e,t))}let Se=null,qa=null;function _a(e){const t=Se;return Se=e,qa=e&&e.type.__scopeId||null,t}function ei(e){qa=e}function ni(){qa=null}function Ut(e,t=Se,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&kh(-1);const o=_a(t);let r;try{r=e(...i)}finally{_a(o),s._d&&kh(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ml(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:m,inheritAttrs:_}=e;let v,x;const S=_a(e);try{if(n.shapeFlag&4){const A=i||s,y=A;v=Ze(u.call(y,A,d,o,p,f,m)),x=l}else{const A=t;v=Ze(A.length>1?A(o,{attrs:l,slots:a,emit:c}):A(o,null)),x=t.props?l:q1(l)}}catch(A){Co.length=0,ar(A,e,1),v=dt(Oe)}let P=v;if(x&&_!==!1){const A=Object.keys(x),{shapeFlag:y}=P;A.length&&y&7&&(r&&A.some(au)&&(x=G1(x,r)),P=ds(P,x))}return n.dirs&&(P=ds(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),v=P,_a(S),v}function Y1(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ha(n))&&((t||(t={}))[n]=e[n]);return t},G1=(e,t)=>{const n={};for(const s in e)(!au(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function X1(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?mh(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;let bh=0;const J1={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){e==null?Z1(t,n,s,i,o,r,a,l,c):tw(e,t,n,s,i,r,a,l,c)},hydrate:ew,create:Tu,normalize:nw},Cu=J1;function zo(e,t){const n=e.props&&e.props[t];xt(n)&&n()}function Z1(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=Tu(e,i,s,t,d,n,o,r,a,l);c(null,f.pendingBranch=e.ssContent,d,null,s,f,o,r),f.deps>0?(zo(e,"onPending"),zo(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),Ai(f,e.ssFallback)):f.resolve(!1,!0)}function tw(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:_,isInFallback:v,isHydrating:x}=d;if(_)d.pendingBranch=f,cn(f,_)?(l(_,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():v&&(x||(l(m,p,n,s,i,null,o,r,a),Ai(d,p)))):(d.pendingId=bh++,x?(d.isHydrating=!1,d.activeBranch=_):c(_,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,n,s,i,null,o,r,a),Ai(d,p))):m&&cn(f,m)?(l(m,f,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&cn(f,m))l(m,f,n,s,i,d,o,r,a),Ai(d,f);else if(zo(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=bh++,l(null,f,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:P}=d;S>0?setTimeout(()=>{d.pendingId===P&&d.fallback(p)},S):S===0&&d.fallback(p)}}function Tu(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:f,um:p,n:m,o:{parentNode:_,remove:v}}=c;let x;const S=iw(e);S&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const P=e.props?yg(e.props.timeout):void 0,A={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(y=!1,E=!1){const{vnode:C,activeBranch:w,pendingBranch:$,pendingId:D,effects:I,parentComponent:N,container:Q}=A;let Y=!1;if(A.isHydrating)A.isHydrating=!1;else if(!y){Y=w&&$.transition&&$.transition.mode==="out-in",Y&&(w.transition.afterLeave=()=>{D===A.pendingId&&(f($,Q,m(w),0),pc(I))});let{anchor:W}=A;w&&(W=m(w),p(w,N,A,!0)),Y||f($,Q,W,0)}Ai(A,$),A.pendingBranch=null,A.isInFallback=!1;let H=A.parent,R=!1;for(;H;){if(H.pendingBranch){H.effects.push(...I),R=!0;break}H=H.parent}!R&&!Y&&pc(I),A.effects=[],S&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),zo(C,"onResolve")},fallback(y){if(!A.pendingBranch)return;const{vnode:E,activeBranch:C,parentComponent:w,container:$,namespace:D}=A;zo(E,"onFallback");const I=m(C),N=()=>{A.isInFallback&&(d(null,y,$,I,w,null,D,a,l),Ai(A,y))},Q=y.transition&&y.transition.mode==="out-in";Q&&(C.transition.afterLeave=N),A.isInFallback=!0,p(C,w,null,!0),Q||N()},move(y,E,C){A.activeBranch&&f(A.activeBranch,y,E,C),A.container=y},next(){return A.activeBranch&&m(A.activeBranch)},registerDep(y,E){const C=!!A.pendingBranch;C&&A.deps++;const w=y.vnode.el;y.asyncDep.catch($=>{ar($,y,0)}).then($=>{if(y.isUnmounted||A.isUnmounted||A.pendingId!==y.suspenseId)return;y.asyncResolved=!0;const{vnode:D}=y;xc(y,$,!1),w&&(D.el=w);const I=!w&&y.subTree.el;E(y,D,_(w||y.subTree.el),w?null:m(y.subTree),A,r,l),I&&v(I),Eu(y,D.el),C&&--A.deps===0&&A.resolve()})},unmount(y,E){A.isUnmounted=!0,A.activeBranch&&p(A.activeBranch,n,y,E),A.pendingBranch&&p(A.pendingBranch,n,y,E)}};return A}function ew(e,t,n,s,i,o,r,a,l){const c=t.suspense=Tu(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function nw(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=vh(s?n.default:n),e.ssFallback=s?vh(n.fallback):dt(Oe)}function vh(e){let t;if(xt(e)){const n=Ri&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=Ue,pm())}return ht(e)&&(e=Y1(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function sw(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function Ai(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,i=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=i,Eu(s,i))}function iw(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const ow=Symbol.for("v-scx"),rw=()=>hn(ow),Rr={};function zs(e,t,n){return Qg(e,t,n)}function Qg(e,t,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Wt){var l;if(t&&o){const y=t;t=(...E)=>{y(...E),A()}}const c=hu()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,f=!1;if(re(e)?(u=()=>e.value,d=vi(e)):is(e)?(u=vi(e)||s===!1?()=>Pn(e,1):()=>Pn(e),d=!0):ht(e)?(f=!0,d=e.some(y=>is(y)||vi(y)),u=()=>e.map(y=>{if(re(y))return y.value;if(is(y))return Pn(y,vi(y)||s===!1?1:void 0);if(xt(y))return rs(y,c,2)})):xt(e)?t?u=()=>rs(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return p&&p(),qe(e,c,3,[m])}:u=ze,t&&s){const y=u;u=()=>Pn(y())}let p,m=y=>{p=P.onStop=()=>{rs(y,c,4),p=P.onStop=void 0}},_;if(tl)if(m=ze,t?n&&qe(t,c,3,[u(),f?[]:void 0,m]):u(),i==="sync"){const y=rw();_=y.__watcherHandles||(y.__watcherHandles=[])}else return ze;let v=f?new Array(e.length).fill(Rr):Rr;const x=()=>{if(!(!P.active||!P.dirty))if(t){const y=P.run();(s||d||(f?y.some((E,C)=>cs(E,v[C])):cs(y,v)))&&(p&&p(),qe(t,c,3,[y,v===Rr?void 0:f&&v[0]===Rr?[]:v,m]),v=y)}else P.run()};x.allowRecurse=!!t;let S;i==="sync"?S=x:i==="post"?S=()=>we(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),S=()=>wu(x));const P=new fu(u,ze,S),A=()=>{P.stop(),c&&c.scope&&lu(c.scope.effects,P)};return t?n?x():v=P.run():i==="post"?we(P.run.bind(P),c&&c.suspense):P.run(),_&&_.push(A),A}function aw(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?Jg(s,e):()=>s[e]:e.bind(s,s);let o;xt(t)?o=t:(o=t.handler,n=t);const r=ie;Ni(this);const a=Qg(i,o.bind(s),n);return r?Ni(r):Us(),a}function Jg(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),re(e))Pn(e.value,t,n,s);else if(ht(e))for(let i=0;i{Pn(i,t,n,s)});else if(vg(e))for(const i in e)Pn(e[i],t,n,s);return e}function bt(e,t){const n=Se;if(n===null)return e;const s=el(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),$u(()=>{e.isUnmounting=!0}),e}const He=[Function,Array],tm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:He,onEnter:He,onAfterEnter:He,onEnterCancelled:He,onBeforeLeave:He,onLeave:He,onAfterLeave:He,onLeaveCancelled:He,onBeforeAppear:He,onAppear:He,onAfterAppear:He,onAppearCancelled:He},lw={name:"BaseTransition",props:tm,setup(e,{slots:t}){const n=_m(),s=Zg();let i;return()=>{const o=t.default&&Pu(t.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const _ of o)if(_.type!==Oe){r=_;break}}const a=kt(e),{mode:l}=a;if(s.isLeaving)return Ol(r);const c=yh(r);if(!c)return Ol(r);const u=Uo(c,a,s,n);Ko(c,u);const d=n.subTree,f=d&&yh(d);let p=!1;const{getTransitionKey:m}=c.type;if(m){const _=m();i===void 0?i=_:_!==i&&(i=_,p=!0)}if(f&&f.type!==Oe&&(!cn(c,f)||p)){const _=Uo(f,a,s,n);if(Ko(f,_),l==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ol(r);l==="in-out"&&c.type!==Oe&&(_.delayLeave=(v,x,S)=>{const P=em(s,f);P[String(f.key)]=f,v[qn]=()=>{x(),v[qn]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return r}}},cw=lw;function em(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Uo(e,t,n,s){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:_,onAppear:v,onAfterAppear:x,onAppearCancelled:S}=t,P=String(e.key),A=em(n,e),y=(w,$)=>{w&&qe(w,s,9,$)},E=(w,$)=>{const D=$[1];y(w,$),ht(w)?w.every(I=>I.length<=1)&&D():w.length<=1&&D()},C={mode:o,persisted:r,beforeEnter(w){let $=a;if(!n.isMounted)if(i)$=_||a;else return;w[qn]&&w[qn](!0);const D=A[P];D&&cn(e,D)&&D.el[qn]&&D.el[qn](),y($,[w])},enter(w){let $=l,D=c,I=u;if(!n.isMounted)if(i)$=v||l,D=x||c,I=S||u;else return;let N=!1;const Q=w[Nr]=Y=>{N||(N=!0,Y?y(I,[w]):y(D,[w]),C.delayedLeave&&C.delayedLeave(),w[Nr]=void 0)};$?E($,[w,Q]):Q()},leave(w,$){const D=String(e.key);if(w[Nr]&&w[Nr](!0),n.isUnmounting)return $();y(d,[w]);let I=!1;const N=w[qn]=Q=>{I||(I=!0,$(),Q?y(m,[w]):y(p,[w]),w[qn]=void 0,A[D]===e&&delete A[D])};A[D]=e,f?E(f,[w,N]):N()},clone(w){return Uo(w,t,n,s)}};return C}function Ol(e){if(Xa(e))return e=ds(e),e.children=null,e}function yh(e){return Xa(e)?e.children?e.children[0]:void 0:e}function Ko(e,t){e.shapeFlag&6&&e.component?Ko(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pu(e,t=!1,n){let s=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Xa=e=>e.type.__isKeepAlive;function uw(e,t){nm(e,"a",t)}function dw(e,t){nm(e,"da",t)}function nm(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qa(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Xa(i.parent.vnode)&&hw(s,t,n,i),i=i.parent}}function hw(e,t,n,s){const i=Qa(t,e,s,!0);im(()=>{lu(s[t],i)},n)}function Qa(e,t,n=ie,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Zs(),Ni(n);const a=qe(t,n,e,r);return Us(),ti(),a});return s?i.unshift(o):i.push(o),o}}const Nn=e=>(t,n=ie)=>(!tl||e==="sp")&&Qa(e,(...s)=>t(...s),n),fw=Nn("bm"),ku=Nn("m"),pw=Nn("bu"),sm=Nn("u"),$u=Nn("bum"),im=Nn("um"),gw=Nn("sp"),mw=Nn("rtg"),_w=Nn("rtc");function bw(e,t=ie){Qa("ec",e,t)}function us(e,t,n,s){let i;const o=n&&n[s];if(ht(e)||ee(e)){i=new Array(e.length);for(let r=0,a=e.length;rt(r,a,void 0,o&&o[a]));else{const r=Object.keys(e);i=new Array(r.length);for(let a=0,l=r.length;ae?bm(e)?el(e)||e.proxy:gc(e.parent):null,Ao=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gc(e.parent),$root:e=>gc(e.root),$emit:e=>e.emit,$options:e=>Mu(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,wu(e.update)}),$nextTick:e=>e.n||(e.n=Ka.bind(e.proxy)),$watch:e=>aw.bind(e)}),Dl=(e,t)=>e!==Wt&&!e.__isScriptSetup&&It(e,t),vw={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Dl(s,t))return r[t]=1,s[t];if(i!==Wt&&It(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&It(c,t))return r[t]=3,o[t];if(n!==Wt&&It(n,t))return r[t]=4,n[t];mc&&(r[t]=0)}}const u=Ao[t];let d,f;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Wt&&It(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,It(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Dl(i,t)?(i[t]=n,!0):s!==Wt&&It(s,t)?(s[t]=n,!0):It(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!n[r]||e!==Wt&&It(e,r)||Dl(t,r)||(a=o[0])&&It(a,r)||It(s,r)||It(Ao,r)||It(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:It(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xh(e){return ht(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let mc=!0;function yw(e){const t=Mu(e),n=e.proxy,s=e.ctx;mc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:_,deactivated:v,beforeDestroy:x,beforeUnmount:S,destroyed:P,unmounted:A,render:y,renderTracked:E,renderTriggered:C,errorCaptured:w,serverPrefetch:$,expose:D,inheritAttrs:I,components:N,directives:Q,filters:Y}=t;if(c&&xw(c,s,null),r)for(const W in r){const U=r[W];xt(U)&&(s[W]=U.bind(n))}if(i){const W=i.call(n,n);Vt(W)&&(e.data=or(W))}if(mc=!0,o)for(const W in o){const U=o[W],rt=xt(U)?U.bind(n,n):xt(U.get)?U.get.bind(n,n):ze,ct=!xt(U)&&xt(U.set)?U.set.bind(n):ze,mt=We({get:rt,set:ct});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>mt.value,set:pt=>mt.value=pt})}if(a)for(const W in a)om(a[W],s,n,W);if(l){const W=xt(l)?l.call(n):l;Reflect.ownKeys(W).forEach(U=>{aa(U,W[U])})}u&&wh(u,e,"c");function R(W,U){ht(U)?U.forEach(rt=>W(rt.bind(n))):U&&W(U.bind(n))}if(R(fw,d),R(ku,f),R(pw,p),R(sm,m),R(uw,_),R(dw,v),R(bw,w),R(_w,E),R(mw,C),R($u,S),R(im,A),R(gw,$),ht(D))if(D.length){const W=e.exposed||(e.exposed={});D.forEach(U=>{Object.defineProperty(W,U,{get:()=>n[U],set:rt=>n[U]=rt})})}else e.exposed||(e.exposed={});y&&e.render===ze&&(e.render=y),I!=null&&(e.inheritAttrs=I),N&&(e.components=N),Q&&(e.directives=Q)}function xw(e,t,n=ze){ht(e)&&(e=_c(e));for(const s in e){const i=e[s];let o;Vt(i)?"default"in i?o=hn(i.from||s,i.default,!0):o=hn(i.from||s):o=hn(i),re(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function wh(e,t,n){qe(ht(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function om(e,t,n,s){const i=s.includes(".")?Jg(n,s):()=>n[s];if(ee(e)){const o=t[e];xt(o)&&zs(i,o)}else if(xt(e))zs(i,e.bind(n));else if(Vt(e))if(ht(e))e.forEach(o=>om(o,t,n,s));else{const o=xt(e.handler)?e.handler.bind(n):t[e.handler];xt(o)&&zs(i,o,e)}}function Mu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>ba(l,c,r,!0)),ba(l,t,r)),Vt(t)&&o.set(t,l),l}function ba(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&ba(e,o,n,!0),i&&i.forEach(r=>ba(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=ww[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const ww={data:Eh,props:Sh,emits:Sh,methods:_o,computed:_o,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:_o,directives:_o,watch:Sw,provide:Eh,inject:Ew};function Eh(e,t){return t?e?function(){return se(xt(e)?e.call(this,this):e,xt(t)?t.call(this,this):t)}:t:e}function Ew(e,t){return _o(_c(e),_c(t))}function _c(e){if(ht(e)){const t={};for(let n=0;n1)return n&&xt(t)?t.call(s&&s.proxy):t}}function Tw(){return!!(ie||Se||Yo)}function Pw(e,t,n,s=!1){const i={},o={};pa(o,Za,1),e.propsDefaults=Object.create(null),am(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:Fg(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function kw(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=kt(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=lm(d,t,!0);se(r,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Vt(e)&&s.set(e,wi),wi;if(ht(o))for(let u=0;u-1,p[1]=_<0||m<_,(m>-1||It(p,"default"))&&a.push(d)}}}const c=[r,a];return Vt(e)&&s.set(e,c),c}function Ah(e){return e[0]!=="$"}function Ch(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Th(e,t){return Ch(e)===Ch(t)}function Ph(e,t){return ht(t)?t.findIndex(n=>Th(n,e)):xt(t)&&Th(t,e)?0:-1}const cm=e=>e[0]==="_"||e==="$stable",Ou=e=>ht(e)?e.map(Ze):[Ze(e)],$w=(e,t,n)=>{if(t._n)return t;const s=Ut((...i)=>Ou(t(...i)),n);return s._c=!1,s},um=(e,t,n)=>{const s=e._ctx;for(const i in e){if(cm(i))continue;const o=e[i];if(xt(o))t[i]=$w(i,o,s);else if(o!=null){const r=Ou(o);t[i]=()=>r}}},dm=(e,t)=>{const n=Ou(t);e.slots.default=()=>n},Mw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),pa(t,"_",n)):um(t,e.slots={})}else e.slots={},t&&dm(e,t);pa(e.slots,Za,1)},Ow=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Wt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(se(i,t),!n&&a===1&&delete i._):(o=!t.$stable,um(t,i)),r=t}else t&&(dm(e,t),r={default:1});if(o)for(const a in i)!cm(a)&&r[a]==null&&delete i[a]};function vc(e,t,n,s,i=!1){if(ht(e)){e.forEach((f,p)=>vc(f,t&&(ht(t)?t[p]:t),n,s,i));return}if(ra(s)&&!i)return;const o=s.shapeFlag&4?el(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Wt?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(ee(c)?(u[c]=null,It(d,c)&&(d[c]=null)):re(c)&&(c.value=null)),xt(l))rs(l,a,12,[r,u]);else{const f=ee(l),p=re(l);if(f||p){const m=()=>{if(e.f){const _=f?It(d,l)?d[l]:u[l]:l.value;i?ht(_)&&lu(_,o):ht(_)?_.includes(o)||_.push(o):f?(u[l]=[o],It(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else f?(u[l]=r,It(d,l)&&(d[l]=r)):p&&(l.value=r,e.k&&(u[e.k]=r))};r?(m.id=-1,we(m,n)):m()}}}const we=sw;function Dw(e){return Iw(e)}function Iw(e,t){const n=xg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=ze,insertStaticContent:m}=e,_=(T,O,L,V=null,K=null,G=null,tt=void 0,J=null,B=!!O.dynamicChildren)=>{if(T===O)return;T&&!cn(T,O)&&(V=j(T),pt(T,K,G,!0),T=null),O.patchFlag===-2&&(B=!1,O.dynamicChildren=null);const{type:q,ref:lt,shapeFlag:ft}=O;switch(q){case Ja:v(T,O,L,V);break;case Oe:x(T,O,L,V);break;case la:T==null&&S(O,L,V,tt);break;case Qt:N(T,O,L,V,K,G,tt,J,B);break;default:ft&1?y(T,O,L,V,K,G,tt,J,B):ft&6?Q(T,O,L,V,K,G,tt,J,B):(ft&64||ft&128)&&q.process(T,O,L,V,K,G,tt,J,B,Z)}lt!=null&&K&&vc(lt,T&&T.ref,G,O||T,!O)},v=(T,O,L,V)=>{if(T==null)s(O.el=a(O.children),L,V);else{const K=O.el=T.el;O.children!==T.children&&c(K,O.children)}},x=(T,O,L,V)=>{T==null?s(O.el=l(O.children||""),L,V):O.el=T.el},S=(T,O,L,V)=>{[T.el,T.anchor]=m(T.children,O,L,V,T.el,T.anchor)},P=({el:T,anchor:O},L,V)=>{let K;for(;T&&T!==O;)K=f(T),s(T,L,V),T=K;s(O,L,V)},A=({el:T,anchor:O})=>{let L;for(;T&&T!==O;)L=f(T),i(T),T=L;i(O)},y=(T,O,L,V,K,G,tt,J,B)=>{O.type==="svg"?tt="svg":O.type==="math"&&(tt="mathml"),T==null?E(O,L,V,K,G,tt,J,B):$(T,O,K,G,tt,J,B)},E=(T,O,L,V,K,G,tt,J)=>{let B,q;const{props:lt,shapeFlag:ft,transition:ut,dirs:_t}=T;if(B=T.el=r(T.type,G,lt&<.is,lt),ft&8?u(B,T.children):ft&16&&w(T.children,B,null,V,K,Il(T,G),tt,J),_t&&ks(T,null,V,"created"),C(B,T,T.scopeId,tt,V),lt){for(const Dt in lt)Dt!=="value"&&!ia(Dt)&&o(B,Dt,null,lt[Dt],G,T.children,V,K,Ct);"value"in lt&&o(B,"value",null,lt.value,G),(q=lt.onVnodeBeforeMount)&&on(q,V,T)}_t&&ks(T,null,V,"beforeMount");const St=Lw(K,ut);St&&ut.beforeEnter(B),s(B,O,L),((q=lt&<.onVnodeMounted)||St||_t)&&we(()=>{q&&on(q,V,T),St&&ut.enter(B),_t&&ks(T,null,V,"mounted")},K)},C=(T,O,L,V,K)=>{if(L&&p(T,L),V)for(let G=0;G{for(let q=B;q{const J=O.el=T.el;let{patchFlag:B,dynamicChildren:q,dirs:lt}=O;B|=T.patchFlag&16;const ft=T.props||Wt,ut=O.props||Wt;let _t;if(L&&$s(L,!1),(_t=ut.onVnodeBeforeUpdate)&&on(_t,L,O,T),lt&&ks(O,T,L,"beforeUpdate"),L&&$s(L,!0),q?D(T.dynamicChildren,q,J,L,V,Il(O,K),G):tt||U(T,O,J,null,L,V,Il(O,K),G,!1),B>0){if(B&16)I(J,O,ft,ut,L,V,K);else if(B&2&&ft.class!==ut.class&&o(J,"class",null,ut.class,K),B&4&&o(J,"style",ft.style,ut.style,K),B&8){const St=O.dynamicProps;for(let Dt=0;Dt{_t&&on(_t,L,O,T),lt&&ks(O,T,L,"updated")},V)},D=(T,O,L,V,K,G,tt)=>{for(let J=0;J{if(L!==V){if(L!==Wt)for(const J in L)!ia(J)&&!(J in V)&&o(T,J,L[J],null,tt,O.children,K,G,Ct);for(const J in V){if(ia(J))continue;const B=V[J],q=L[J];B!==q&&J!=="value"&&o(T,J,q,B,tt,O.children,K,G,Ct)}"value"in V&&o(T,"value",L.value,V.value,tt)}},N=(T,O,L,V,K,G,tt,J,B)=>{const q=O.el=T?T.el:a(""),lt=O.anchor=T?T.anchor:a("");let{patchFlag:ft,dynamicChildren:ut,slotScopeIds:_t}=O;_t&&(J=J?J.concat(_t):_t),T==null?(s(q,L,V),s(lt,L,V),w(O.children,L,lt,K,G,tt,J,B)):ft>0&&ft&64&&ut&&T.dynamicChildren?(D(T.dynamicChildren,ut,L,K,G,tt,J),(O.key!=null||K&&O===K.subTree)&&hm(T,O,!0)):U(T,O,L,lt,K,G,tt,J,B)},Q=(T,O,L,V,K,G,tt,J,B)=>{O.slotScopeIds=J,T==null?O.shapeFlag&512?K.ctx.activate(O,L,V,tt,B):Y(O,L,V,K,G,tt,B):H(T,O,B)},Y=(T,O,L,V,K,G,tt)=>{const J=T.component=zw(T,V,K);if(Xa(T)&&(J.ctx.renderer=Z),Uw(J),J.asyncDep){if(K&&K.registerDep(J,R),!T.el){const B=J.subTree=dt(Oe);x(null,B,O,L)}}else R(J,T,O,L,K,G,tt)},H=(T,O,L)=>{const V=O.component=T.component;if(X1(T,O,L))if(V.asyncDep&&!V.asyncResolved){W(V,O,L);return}else V.next=O,z1(V.update),V.effect.dirty=!0,V.update();else O.el=T.el,V.vnode=O},R=(T,O,L,V,K,G,tt)=>{const J=()=>{if(T.isMounted){let{next:lt,bu:ft,u:ut,parent:_t,vnode:St}=T;{const ys=fm(T);if(ys){lt&&(lt.el=St.el,W(T,lt,tt)),ys.asyncDep.then(()=>{T.isUnmounted||J()});return}}let Dt=lt,Nt;$s(T,!1),lt?(lt.el=St.el,W(T,lt,tt)):lt=St,ft&&oa(ft),(Nt=lt.props&<.props.onVnodeBeforeUpdate)&&on(Nt,_t,lt,St),$s(T,!0);const Gt=Ml(T),Te=T.subTree;T.subTree=Gt,_(Te,Gt,d(Te.el),j(Te),T,K,G),lt.el=Gt.el,Dt===null&&Eu(T,Gt.el),ut&&we(ut,K),(Nt=lt.props&<.props.onVnodeUpdated)&&we(()=>on(Nt,_t,lt,St),K)}else{let lt;const{el:ft,props:ut}=O,{bm:_t,m:St,parent:Dt}=T,Nt=ra(O);if($s(T,!1),_t&&oa(_t),!Nt&&(lt=ut&&ut.onVnodeBeforeMount)&&on(lt,Dt,O),$s(T,!0),ft&&F){const Gt=()=>{T.subTree=Ml(T),F(ft,T.subTree,T,K,null)};Nt?O.type.__asyncLoader().then(()=>!T.isUnmounted&&Gt()):Gt()}else{const Gt=T.subTree=Ml(T);_(null,Gt,L,V,T,K,G),O.el=Gt.el}if(St&&we(St,K),!Nt&&(lt=ut&&ut.onVnodeMounted)){const Gt=O;we(()=>on(lt,Dt,Gt),K)}(O.shapeFlag&256||Dt&&ra(Dt.vnode)&&Dt.vnode.shapeFlag&256)&&T.a&&we(T.a,K),T.isMounted=!0,O=L=V=null}},B=T.effect=new fu(J,ze,()=>wu(q),T.scope),q=T.update=()=>{B.dirty&&B.run()};q.id=T.uid,$s(T,!0),q()},W=(T,O,L)=>{O.component=T;const V=T.vnode.props;T.vnode=O,T.next=null,kw(T,O.props,V,L),Ow(T,O.children,L),Zs(),gh(T),ti()},U=(T,O,L,V,K,G,tt,J,B=!1)=>{const q=T&&T.children,lt=T?T.shapeFlag:0,ft=O.children,{patchFlag:ut,shapeFlag:_t}=O;if(ut>0){if(ut&128){ct(q,ft,L,V,K,G,tt,J,B);return}else if(ut&256){rt(q,ft,L,V,K,G,tt,J,B);return}}_t&8?(lt&16&&Ct(q,K,G),ft!==q&&u(L,ft)):lt&16?_t&16?ct(q,ft,L,V,K,G,tt,J,B):Ct(q,K,G,!0):(lt&8&&u(L,""),_t&16&&w(ft,L,V,K,G,tt,J,B))},rt=(T,O,L,V,K,G,tt,J,B)=>{T=T||wi,O=O||wi;const q=T.length,lt=O.length,ft=Math.min(q,lt);let ut;for(ut=0;utlt?Ct(T,K,G,!0,!1,ft):w(O,L,V,K,G,tt,J,B,ft)},ct=(T,O,L,V,K,G,tt,J,B)=>{let q=0;const lt=O.length;let ft=T.length-1,ut=lt-1;for(;q<=ft&&q<=ut;){const _t=T[q],St=O[q]=B?Gn(O[q]):Ze(O[q]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;q++}for(;q<=ft&&q<=ut;){const _t=T[ft],St=O[ut]=B?Gn(O[ut]):Ze(O[ut]);if(cn(_t,St))_(_t,St,L,null,K,G,tt,J,B);else break;ft--,ut--}if(q>ft){if(q<=ut){const _t=ut+1,St=_tut)for(;q<=ft;)pt(T[q],K,G,!0),q++;else{const _t=q,St=q,Dt=new Map;for(q=St;q<=ut;q++){const he=O[q]=B?Gn(O[q]):Ze(O[q]);he.key!=null&&Dt.set(he.key,q)}let Nt,Gt=0;const Te=ut-St+1;let ys=!1,mr=0;const xs=new Array(Te);for(q=0;q=Te){pt(he,K,G,!0);continue}let Fe;if(he.key!=null)Fe=Dt.get(he.key);else for(Nt=St;Nt<=ut;Nt++)if(xs[Nt-St]===0&&cn(he,O[Nt])){Fe=Nt;break}Fe===void 0?pt(he,K,G,!0):(xs[Fe-St]=q+1,Fe>=mr?mr=Fe:ys=!0,_(he,O[Fe],L,null,K,G,tt,J,B),Gt++)}const _r=ys?Rw(xs):wi;for(Nt=_r.length-1,q=Te-1;q>=0;q--){const he=St+q,Fe=O[he],Bn=he+1{const{el:G,type:tt,transition:J,children:B,shapeFlag:q}=T;if(q&6){mt(T.component.subTree,O,L,V);return}if(q&128){T.suspense.move(O,L,V);return}if(q&64){tt.move(T,O,L,Z);return}if(tt===Qt){s(G,O,L);for(let ft=0;ftJ.enter(G),K);else{const{leave:ft,delayLeave:ut,afterLeave:_t}=J,St=()=>s(G,O,L),Dt=()=>{ft(G,()=>{St(),_t&&_t()})};ut?ut(G,St,Dt):Dt()}else s(G,O,L)},pt=(T,O,L,V=!1,K=!1)=>{const{type:G,props:tt,ref:J,children:B,dynamicChildren:q,shapeFlag:lt,patchFlag:ft,dirs:ut}=T;if(J!=null&&vc(J,null,L,T,!0),lt&256){O.ctx.deactivate(T);return}const _t=lt&1&&ut,St=!ra(T);let Dt;if(St&&(Dt=tt&&tt.onVnodeBeforeUnmount)&&on(Dt,O,T),lt&6)Mt(T.component,L,V);else{if(lt&128){T.suspense.unmount(L,V);return}_t&&ks(T,null,O,"beforeUnmount"),lt&64?T.type.remove(T,O,L,K,Z,V):q&&(G!==Qt||ft>0&&ft&64)?Ct(q,O,L,!1,!0):(G===Qt&&ft&384||!K&<&16)&&Ct(B,O,L),V&&Pt(T)}(St&&(Dt=tt&&tt.onVnodeUnmounted)||_t)&&we(()=>{Dt&&on(Dt,O,T),_t&&ks(T,null,O,"unmounted")},L)},Pt=T=>{const{type:O,el:L,anchor:V,transition:K}=T;if(O===Qt){At(L,V);return}if(O===la){A(T);return}const G=()=>{i(L),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(T.shapeFlag&1&&K&&!K.persisted){const{leave:tt,delayLeave:J}=K,B=()=>tt(L,G);J?J(T.el,G,B):B()}else G()},At=(T,O)=>{let L;for(;T!==O;)L=f(T),i(T),T=L;i(O)},Mt=(T,O,L)=>{const{bum:V,scope:K,update:G,subTree:tt,um:J}=T;V&&oa(V),K.stop(),G&&(G.active=!1,pt(tt,T,O,L)),J&&we(J,O),we(()=>{T.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Ct=(T,O,L,V=!1,K=!1,G=0)=>{for(let tt=G;ttT.shapeFlag&6?j(T.component.subTree):T.shapeFlag&128?T.suspense.next():f(T.anchor||T.el),nt=(T,O,L)=>{T==null?O._vnode&&pt(O._vnode,null,null,!0):_(O._vnode||null,T,O,null,null,null,L),gh(),Kg(),O._vnode=T},Z={p:_,um:pt,m:mt,r:Pt,mt:Y,mc:w,pc:U,pbc:D,n:j,o:e};let at,F;return t&&([at,F]=t(Z)),{render:nt,hydrate:at,createApp:Cw(nt,at)}}function Il({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hm(e,t,n=!1){const s=e.children,i=t.children;if(ht(s)&&ht(i))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function fm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fm(t)}const Nw=e=>e.__isTeleport,Qt=Symbol.for("v-fgt"),Ja=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),la=Symbol.for("v-stc"),Co=[];let Ue=null;function X(e=!1){Co.push(Ue=e?null:[])}function pm(){Co.pop(),Ue=Co[Co.length-1]||null}let Ri=1;function kh(e){Ri+=e}function gm(e){return e.dynamicChildren=Ri>0?Ue||wi:null,pm(),Ri>0&&Ue&&Ue.push(e),e}function ot(e,t,n,s,i,o){return gm(g(e,t,n,s,i,o,!0))}function de(e,t,n,s,i){return gm(dt(e,t,n,s,i,!0))}function va(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Za="__vInternal",mm=({key:e})=>e??null,ca=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||re(e)||xt(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,i=null,o=e===Qt?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mm(t),ref:t&&ca(t),scopeId:qa,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:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Se};return a?(Du(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ee(n)?8:16),Ri>0&&!r&&Ue&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ue.push(l),l}const dt=Fw;function Fw(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Gg)&&(e=Oe),va(e)){const a=ds(e,t,!0);return n&&Du(a,n),Ri>0&&!o&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(e)]=a:Ue.push(a)),a.patchFlag|=-2,a}if(Xw(e)&&(e=e.__vccOpts),t){t=Bw(t);let{class:a,style:l}=t;a&&!ee(a)&&(t.class=jt(a)),Vt(l)&&(Ua(l)&&!ht(l)&&(l=se({},l)),t.style=uu(l))}const r=ee(e)?1:Q1(e)?128:Nw(e)?64:Vt(e)?4:xt(e)?2:0;return g(e,t,n,s,i,r,o,!0)}function Bw(e){return e?Ua(e)||Za in e?se({},e):e:null}function ds(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,a=t?Hw(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&mm(a),ref:t&&t.ref?n&&i?ht(i)?i.concat(ca(t)):[i,ca(t)]:ca(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ds(e.ssContent),ssFallback:e.ssFallback&&ds(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gt(e=" ",t=0){return dt(Ja,null,e,t)}function Vw(e,t){const n=dt(la,null,e);return n.staticCount=t,n}function Kt(e="",t=!1){return t?(X(),de(Oe,null,e)):dt(Oe,null,e)}function Ze(e){return e==null||typeof e=="boolean"?dt(Oe):ht(e)?dt(Qt,null,e.slice()):typeof e=="object"?Gn(e):dt(Ja,null,String(e))}function Gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ds(e)}function Du(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ht(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Du(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Za in t)?t._ctx=Se:i===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xt(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),s&64?(n=16,t=[gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Hw(...e){const t={};for(let n=0;nie||Se;let Iu,yc;{const e=xg(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Iu=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),yc=t("__VUE_SSR_SETTERS__",n=>tl=n)}const Ni=e=>{Iu(e),e.scope.on()},Us=()=>{ie&&ie.scope.off(),Iu(null)};function bm(e){return e.vnode.shapeFlag&4}let tl=!1;function Uw(e,t=!1){t&&yc(t);const{props:n,children:s}=e.vnode,i=bm(e);Pw(e,n,i,t),Mw(e,s);const o=i?Kw(e,t):void 0;return t&&yc(!1),o}function Kw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rr(new Proxy(e.ctx,vw));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?qw(e):null;Ni(e),Zs();const o=rs(s,e,0,[e.props,i]);if(ti(),Us(),_g(o)){if(o.then(Us,Us),t)return o.then(r=>{xc(e,r,t)}).catch(r=>{ar(r,e,0)});e.asyncDep=o}else xc(e,o,t)}else vm(e,t)}function xc(e,t,n){xt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=Wg(t)),vm(e,n)}let $h;function vm(e,t,n){const s=e.type;if(!e.render){if(!t&&$h&&!s.render){const i=s.template||Mu(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=se(se({isCustomElement:o,delimiters:a},r),l);s.render=$h(i,c)}}e.render=s.render||ze}{Ni(e),Zs();try{yw(e)}finally{ti(),Us()}}}function Yw(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function qw(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Yw(e)},slots:e.slots,emit:e.emit,expose:t}}function el(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wg(rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ao)return Ao[n](e)},has(t,n){return n in t||n in Ao}}))}function Gw(e,t=!0){return xt(e)?e.displayName||e.name:e.name||t&&e.__name}function Xw(e){return xt(e)&&"__vccOpts"in e}const We=(e,t)=>R1(e,t,tl);function Fi(e,t,n){const s=arguments.length;return s===2?Vt(t)&&!ht(t)?va(t)?dt(e,null,[t]):dt(e,t):dt(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&va(n)&&(n=[n]),dt(e,t,n))}const ym="3.4.3",Qw="http://www.w3.org/2000/svg",Jw="http://www.w3.org/1998/Math/MathML",Xn=typeof document<"u"?document:null,Mh=Xn&&Xn.createElement("template"),Zw={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Xn.createElementNS(Qw,e):t==="mathml"?Xn.createElementNS(Jw,e):Xn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Xn.createTextNode(e),createComment:e=>Xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Mh.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=Mh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wn="transition",co="animation",Bi=Symbol("_vtc"),Ln=(e,{slots:t})=>Fi(cw,wm(e),t);Ln.displayName="Transition";const xm={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},tE=Ln.props=se({},tm,xm),Ms=(e,t=[])=>{ht(e)?e.forEach(n=>n(...t)):e&&e(...t)},Oh=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function wm(e){const t={};for(const N in e)N in xm||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=eE(i),_=m&&m[0],v=m&&m[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:P,onLeave:A,onLeaveCancelled:y,onBeforeAppear:E=x,onAppear:C=S,onAppearCancelled:w=P}=t,$=(N,Q,Y)=>{Kn(N,Q?u:a),Kn(N,Q?c:r),Y&&Y()},D=(N,Q)=>{N._isLeaving=!1,Kn(N,d),Kn(N,p),Kn(N,f),Q&&Q()},I=N=>(Q,Y)=>{const H=N?C:S,R=()=>$(Q,N,Y);Ms(H,[Q,R]),Dh(()=>{Kn(Q,N?l:o),wn(Q,N?u:a),Oh(H)||Ih(Q,s,_,R)})};return se(t,{onBeforeEnter(N){Ms(x,[N]),wn(N,o),wn(N,r)},onBeforeAppear(N){Ms(E,[N]),wn(N,l),wn(N,c)},onEnter:I(!1),onAppear:I(!0),onLeave(N,Q){N._isLeaving=!0;const Y=()=>D(N,Q);wn(N,d),Sm(),wn(N,f),Dh(()=>{N._isLeaving&&(Kn(N,d),wn(N,p),Oh(A)||Ih(N,s,v,Y))}),Ms(A,[N,Y])},onEnterCancelled(N){$(N,!1),Ms(P,[N])},onAppearCancelled(N){$(N,!0),Ms(w,[N])},onLeaveCancelled(N){D(N),Ms(y,[N])}})}function eE(e){if(e==null)return null;if(Vt(e))return[Ll(e.enter),Ll(e.leave)];{const t=Ll(e);return[t,t]}}function Ll(e){return yg(e)}function wn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bi]||(e[Bi]=new Set)).add(t)}function Kn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Bi];n&&(n.delete(t),n.size||(e[Bi]=void 0))}function Dh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nE=0;function Ih(e,t,n,s){const i=e._endId=++nE,o=()=>{i===e._endId&&s()};if(n)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=Em(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,f),o()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[m]||"").split(", "),i=s(`${Wn}Delay`),o=s(`${Wn}Duration`),r=Lh(i,o),a=s(`${co}Delay`),l=s(`${co}Duration`),c=Lh(a,l);let u=null,d=0,f=0;t===Wn?r>0&&(u=Wn,d=r,f=o.length):t===co?c>0&&(u=co,d=c,f=l.length):(d=Math.max(r,c),u=d>0?r>c?Wn:co:null,f=u?u===Wn?o.length:l.length:0);const p=u===Wn&&/\b(transform|all)(,|$)/.test(s(`${Wn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Lh(e,t){for(;e.lengthRh(n)+Rh(e[s])))}function Rh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sm(){return document.body.offsetHeight}function sE(e,t,n){const s=e[Bi];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const iE=Symbol("_vod"),oE=Symbol("");function rE(e,t,n){const s=e.style,i=ee(n);if(n&&!i){if(t&&!ee(t))for(const o in t)n[o]==null&&wc(s,o,"");for(const o in n)wc(s,o,n[o])}else{const o=s.display;if(i){if(t!==n){const r=s[oE];r&&(n+=";"+r),s.cssText=n}}else t&&e.removeAttribute("style");iE in e&&(s.display=o)}}const Nh=/\s*!important$/;function wc(e,t,n){if(ht(n))n.forEach(s=>wc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=aE(e,t);Nh.test(n)?e.setProperty(Zi(s),n.replace(Nh,""),"important"):e[s]=n}}const Fh=["Webkit","Moz","ms"],Rl={};function aE(e,t){const n=Rl[t];if(n)return n;let s=gn(t);if(s!=="filter"&&s in e)return Rl[t]=s;s=Wa(s);for(let i=0;iNl||(fE.then(()=>Nl=0),Nl=Date.now());function gE(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(mE(s,n.value),t,5,[s])};return n.value=e,n.attached=pE(),n}function mE(e,t){if(ht(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const jh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_E=(e,t,n,s,i,o,r,a,l)=>{const c=i==="svg";t==="class"?sE(e,s,c):t==="style"?rE(e,n,s):Ha(t)?au(t)||dE(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bE(e,t,s,c))?cE(e,t,s,o,r,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),lE(e,t,s,c))};function bE(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&jh(t)&&xt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return jh(t)&&ee(n)?!1:t in e}const Am=new WeakMap,Cm=new WeakMap,ya=Symbol("_moveCb"),Wh=Symbol("_enterCb"),Tm={name:"TransitionGroup",props:se({},tE,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_m(),s=Zg();let i,o;return sm(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!EE(i[0].el,n.vnode.el,r))return;i.forEach(yE),i.forEach(xE);const a=i.filter(wE);Sm(),a.forEach(l=>{const c=l.el,u=c.style;wn(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ya]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[ya]=null,Kn(c,r))};c.addEventListener("transitionend",d)})}),()=>{const r=kt(e),a=wm(r);let l=r.tag||Qt;i=o,o=t.default?Pu(t.default()):[];for(let c=0;cdelete e.mode;Tm.props;const Lu=Tm;function yE(e){const t=e.el;t[ya]&&t[ya](),t[Wh]&&t[Wh]()}function xE(e){Cm.set(e,e.el.getBoundingClientRect())}function wE(e){const t=Am.get(e),n=Cm.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${i}px)`,o.transitionDuration="0s",e}}function EE(e,t,n){const s=e.cloneNode(),i=e[Bi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=Em(s);return o.removeChild(s),r}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ht(t)?n=>oa(t,n):t};function SE(e){e.target.composing=!0}function zh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),vt={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ge]=hs(i);const o=s||i.props&&i.props.type==="number";Tn(e,t?"change":"input",r=>{if(r.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ga(a)),e[Ge](a)}),n&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",SE),Tn(e,"compositionend",zh),Tn(e,"change",zh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e[Ge]=hs(o),e.composing)return;const r=i||e.type==="number"?ga(e.value):e.value,a=t??"";r!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},lr={deep:!0,created(e,t,n){e[Ge]=hs(n),Tn(e,"change",()=>{const s=e._modelValue,i=Vi(e),o=e.checked,r=e[Ge];if(ht(s)){const a=du(s,i),l=a!==-1;if(o&&!l)r(s.concat(i));else if(!o&&l){const c=[...s];c.splice(a,1),r(c)}}else if(Ji(s)){const a=new Set(s);o?a.add(i):a.delete(i),r(a)}else r(Pm(e,o))})},mounted:Uh,beforeUpdate(e,t,n){e[Ge]=hs(n),Uh(e,t,n)}};function Uh(e,{value:t,oldValue:n},s){e._modelValue=t,ht(t)?e.checked=du(t,s.props.value)>-1:Ji(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Xs(t,Pm(e,!0)))}const AE={created(e,{value:t},n){e.checked=Xs(t,n.props.value),e[Ge]=hs(n),Tn(e,"change",()=>{e[Ge](Vi(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ge]=hs(s),t!==n&&(e.checked=Xs(t,s.props.value))}},CE={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=Ji(t);Tn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?ga(Vi(r)):Vi(r));e[Ge](e.multiple?i?new Set(o):o:o[0])}),e[Ge]=hs(s)},mounted(e,{value:t}){Kh(e,t)},beforeUpdate(e,t,n){e[Ge]=hs(n)},updated(e,{value:t}){Kh(e,t)}};function Kh(e,t){const n=e.multiple;if(!(n&&!ht(t)&&!Ji(t))){for(let s=0,i=e.options.length;s-1:o.selected=t.has(r);else if(Xs(Vi(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vi(e){return"_value"in e?e._value:e.value}function Pm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const TE={created(e,t,n){Fr(e,t,n,null,"created")},mounted(e,t,n){Fr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Fr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Fr(e,t,n,s,"updated")}};function PE(e,t){switch(e){case"SELECT":return CE;case"TEXTAREA":return vt;default:switch(t){case"checkbox":return lr;case"radio":return AE;default:return vt}}}function Fr(e,t,n,s,i){const r=PE(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s)}const kE=se({patchProp:_E},Zw);let Yh;function $E(){return Yh||(Yh=Dw(kE))}const ME=(...e)=>{const t=$E().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=DE(s);if(!i)return;const o=t._component;!xt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,OE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function OE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DE(e){return ee(e)?document.querySelector(e):e}var IE=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let km;const el=e=>km=e,$m=Symbol();function Ec(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var To;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(To||(To={}));function IE(){const e=Ag(!0),t=e.run(()=>Li({}));let n=[],s=[];const i=rr({install(o){el(i),i._a=o,o.provide($m,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!DE?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Mm=()=>{};function qh(e,t,n,s=Mm){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&hu()&&Cg(i),i}function fi(e,...t){e.slice().forEach(n=>{n(...t)})}const LE=e=>e();function Sc(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ec(i)&&Ec(s)&&e.hasOwnProperty(n)&&!re(s)&&!is(s)?e[n]=Sc(i,s):e[n]=s}return e}const RE=Symbol();function NE(e){return!Ec(e)||!e.hasOwnProperty(RE)}const{assign:Yn}=Object;function FE(e){return!!(re(e)&&e.effect)}function BE(e,t,n,s){const{state:i,actions:o,getters:r}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=i?i():{});const u=F1(n.state.value[e]);return Yn(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=rr(We(()=>{el(n);const p=n._s.get(e);return r[f].call(p,p)})),d),{}))}return l=Om(e,c,t,n,s,!0),l}function Om(e,t,n={},s,i,o){let r;const a=Yn({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const m=s.state.value[e];!o&&!m&&(s.state.value[e]={}),Li({});let _;function v(w){let $;c=u=!1,typeof w=="function"?(w(s.state.value[e]),$={type:To.patchFunction,storeId:e,events:p}):(Sc(s.state.value[e],w),$={type:To.patchObject,payload:w,storeId:e,events:p});const D=_=Symbol();Ua().then(()=>{_===D&&(c=!0)}),u=!0,fi(d,$,s.state.value[e])}const x=o?function(){const{state:$}=n,D=$?$():{};this.$patch(I=>{Yn(I,D)})}:Mm;function S(){r.stop(),d=[],f=[],s._s.delete(e)}function P(w,$){return function(){el(s);const D=Array.from(arguments),I=[],N=[];function Q(R){I.push(R)}function Y(R){N.push(R)}fi(f,{args:D,name:w,store:y,after:Q,onError:Y});let H;try{H=$.apply(this&&this.$id===e?this:y,D)}catch(R){throw fi(N,R),R}return H instanceof Promise?H.then(R=>(fi(I,R),R)).catch(R=>(fi(N,R),Promise.reject(R))):(fi(I,H),H)}}const A={_p:s,$id:e,$onAction:qh.bind(null,f),$patch:v,$reset:x,$subscribe(w,$={}){const D=qh(d,w,$.detached,()=>I()),I=r.run(()=>zs(()=>s.state.value[e],N=>{($.flush==="sync"?u:c)&&w({storeId:e,type:To.direct,events:p},N)},Yn({},l,$)));return D},$dispose:S},y=or(A);s._s.set(e,y);const C=(s._a&&s._a.runWithContext||LE)(()=>s._e.run(()=>(r=Ag()).run(t)));for(const w in C){const $=C[w];if(re($)&&!FE($)||is($))o||(m&&NE($)&&(re($)?$.value=m[w]:Sc($,m[w])),s.state.value[e][w]=$);else if(typeof $=="function"){const D=P(w,$);C[w]=D,a.actions[w]=$}}return Yn(y,C),Yn(kt(y),C),Object.defineProperty(y,"$state",{get:()=>s.state.value[e],set:w=>{v($=>{Yn($,w)})}}),s._p.forEach(w=>{Yn(y,r.run(()=>w({store:y,app:s._a,pinia:s,options:a})))}),m&&o&&n.hydrate&&n.hydrate(y.$state,m),c=!0,u=!0,y}function Ru(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(a,l){const c=Cw();return a=a||(c?hn($m,null):null),a&&el(a),a=km,a._s.has(s)||(o?Om(s,t,i,a):BE(s,i,a)),a._s.get(s)}return r.$id=s,r}/*! + */let km;const nl=e=>km=e,$m=Symbol();function Ec(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var To;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(To||(To={}));function LE(){const e=Ag(!0),t=e.run(()=>Li({}));let n=[],s=[];const i=rr({install(o){nl(i),i._a=o,o.provide($m,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!IE?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Mm=()=>{};function qh(e,t,n,s=Mm){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&hu()&&Cg(i),i}function fi(e,...t){e.slice().forEach(n=>{n(...t)})}const RE=e=>e();function Sc(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ec(i)&&Ec(s)&&e.hasOwnProperty(n)&&!re(s)&&!is(s)?e[n]=Sc(i,s):e[n]=s}return e}const NE=Symbol();function FE(e){return!Ec(e)||!e.hasOwnProperty(NE)}const{assign:Yn}=Object;function BE(e){return!!(re(e)&&e.effect)}function VE(e,t,n,s){const{state:i,actions:o,getters:r}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=i?i():{});const u=B1(n.state.value[e]);return Yn(u,o,Object.keys(r||{}).reduce((d,f)=>(d[f]=rr(We(()=>{nl(n);const p=n._s.get(e);return r[f].call(p,p)})),d),{}))}return l=Om(e,c,t,n,s,!0),l}function Om(e,t,n={},s,i,o){let r;const a=Yn({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const m=s.state.value[e];!o&&!m&&(s.state.value[e]={}),Li({});let _;function v(w){let $;c=u=!1,typeof w=="function"?(w(s.state.value[e]),$={type:To.patchFunction,storeId:e,events:p}):(Sc(s.state.value[e],w),$={type:To.patchObject,payload:w,storeId:e,events:p});const D=_=Symbol();Ka().then(()=>{_===D&&(c=!0)}),u=!0,fi(d,$,s.state.value[e])}const x=o?function(){const{state:$}=n,D=$?$():{};this.$patch(I=>{Yn(I,D)})}:Mm;function S(){r.stop(),d=[],f=[],s._s.delete(e)}function P(w,$){return function(){nl(s);const D=Array.from(arguments),I=[],N=[];function Q(R){I.push(R)}function Y(R){N.push(R)}fi(f,{args:D,name:w,store:y,after:Q,onError:Y});let H;try{H=$.apply(this&&this.$id===e?this:y,D)}catch(R){throw fi(N,R),R}return H instanceof Promise?H.then(R=>(fi(I,R),R)).catch(R=>(fi(N,R),Promise.reject(R))):(fi(I,H),H)}}const A={_p:s,$id:e,$onAction:qh.bind(null,f),$patch:v,$reset:x,$subscribe(w,$={}){const D=qh(d,w,$.detached,()=>I()),I=r.run(()=>zs(()=>s.state.value[e],N=>{($.flush==="sync"?u:c)&&w({storeId:e,type:To.direct,events:p},N)},Yn({},l,$)));return D},$dispose:S},y=or(A);s._s.set(e,y);const C=(s._a&&s._a.runWithContext||RE)(()=>s._e.run(()=>(r=Ag()).run(t)));for(const w in C){const $=C[w];if(re($)&&!BE($)||is($))o||(m&&FE($)&&(re($)?$.value=m[w]:Sc($,m[w])),s.state.value[e][w]=$);else if(typeof $=="function"){const D=P(w,$);C[w]=D,a.actions[w]=$}}return Yn(y,C),Yn(kt(y),C),Object.defineProperty(y,"$state",{get:()=>s.state.value[e],set:w=>{v($=>{Yn($,w)})}}),s._p.forEach(w=>{Yn(y,r.run(()=>w({store:y,app:s._a,pinia:s,options:a})))}),m&&o&&n.hydrate&&n.hydrate(y.$state,m),c=!0,u=!0,y}function Ru(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(a,l){const c=Tw();return a=a||(c?hn($m,null):null),a&&nl(a),a=km,a._s.has(s)||(o?Om(s,t,i,a):VE(s,i,a)),a._s.get(s)}return r.$id=s,r}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const bi=typeof window<"u";function VE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ft=Object.assign;function Fl(e,t){const n={};for(const s in t){const i=t[s];n[s]=nn(i)?i.map(e):e(i)}return n}const Po=()=>{},nn=Array.isArray,HE=/\/$/,jE=e=>e.replace(HE,"");function Bl(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=KE(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function WE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Gh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function zE(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Hi(t.matched[s],n.matched[i])&&Dm(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!UE(e[n],t[n]))return!1;return!0}function UE(e,t){return nn(e)?Xh(e,t):nn(t)?Xh(t,e):e===t}function Xh(e,t){return nn(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function KE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var qo;(function(e){e.pop="pop",e.push="push"})(qo||(qo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function YE(e){if(!e)if(bi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jE(e)}const qE=/^[^#]+#/;function GE(e,t){return e.replace(qE,"#")+t}function XE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const nl=()=>({left:window.pageXOffset,top:window.pageYOffset});function QE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=XE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qh(e,t){return(history.state?history.state.position-t:-1)+e}const Ac=new Map;function JE(e,t){Ac.set(e,t)}function ZE(e){const t=Ac.get(e);return Ac.delete(e),t}let tS=()=>location.protocol+"//"+location.host;function Im(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Gh(l,"")}return Gh(n,e)+s+i}function eS(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const p=Im(e,location),m=n.value,_=t.value;let v=0;if(f){if(n.value=p,t.value=f,r&&r===m){r=null;return}v=_?f.position-_.position:0}else s(p);i.forEach(x=>{x(n.value,m,{delta:v,type:qo.pop,direction:v?v>0?ko.forward:ko.back:ko.unknown})})};function l(){r=n.value}function c(f){i.push(f);const p=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Ft({},f.state,{scroll:nl()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Jh(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?nl():null}}function nS(e){const{history:t,location:n}=window,s={value:Im(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:tS()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=Ft({},t.state,Jh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Ft({},i.value,t.state,{forward:l,scroll:nl()});o(u.current,u,!0);const d=Ft({},Jh(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function sS(e){e=YE(e);const t=nS(e),n=eS(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Ft({location:"",base:e,go:s,createHref:GE.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function iS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),sS(e)}function oS(e){return typeof e=="string"||e&&typeof e=="object"}function Lm(e){return typeof e=="string"||typeof e=="symbol"}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rm=Symbol("");var Zh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zh||(Zh={}));function ji(e,t){return Ft(new Error,{type:e,[Rm]:!0},t)}function yn(e,t){return e instanceof Error&&Rm in e&&(t==null||!!(e.type&t))}const tf="[^/]+?",rS={sensitive:!1,strict:!1,start:!0,end:!0},aS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const n=Ft({},rS,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function uS(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const dS={type:0,value:""},hS=/[a-zA-Z0-9_]/;function fS(e){if(!e)return[[]];if(e==="/")return[[dS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(S)}:Po}function r(u){if(Lm(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Nm(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!sf(u)&&s.set(u.record.name,u)}function c(u,d){let f,p={},m,_;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw ji(1,{location:u});_=f.record.name,p=Ft(nf(d.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&nf(u.params,f.keys.map(S=>S.name))),m=f.stringify(p)}else if("path"in u)m=u.path,f=n.find(S=>S.re.test(m)),f&&(p=f.parse(m),_=f.record.name);else{if(f=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!f)throw ji(1,{location:u,currentLocation:d});_=f.record.name,p=Ft({},d.params,u.params),m=f.stringify(p)}const v=[];let x=f;for(;x;)v.unshift(x.record),x=x.parent;return{name:_,path:m,params:p,matched:v,meta:bS(v)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function nf(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:_S(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function _S(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function sf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bS(e){return e.reduce((t,n)=>Ft(t,n.meta),{})}function of(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nm(e,t){return t.children.some(n=>n===e||Nm(e,n))}const Fm=/#/g,vS=/&/g,yS=/\//g,xS=/=/g,wS=/\?/g,Bm=/\+/g,ES=/%5B/g,SS=/%5D/g,Vm=/%5E/g,AS=/%60/g,Hm=/%7B/g,CS=/%7C/g,jm=/%7D/g,TS=/%20/g;function Nu(e){return encodeURI(""+e).replace(CS,"|").replace(ES,"[").replace(SS,"]")}function PS(e){return Nu(e).replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function Cc(e){return Nu(e).replace(Bm,"%2B").replace(TS,"+").replace(Fm,"%23").replace(vS,"%26").replace(AS,"`").replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function kS(e){return Cc(e).replace(xS,"%3D")}function $S(e){return Nu(e).replace(Fm,"%23").replace(wS,"%3F")}function MS(e){return e==null?"":$S(e).replace(yS,"%2F")}function ya(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function OS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Cc(o)):[s&&Cc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function DS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=nn(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const IS=Symbol(""),af=Symbol(""),Fu=Symbol(""),Wm=Symbol(""),Tc=Symbol("");function uo(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qn(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(ji(4,{from:n,to:t})):d instanceof Error?a(d):oS(d)?a(ji(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),r())},c=e.call(s&&s.instances[i],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function Vl(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(LS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Qn(c,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const u=VE(c)?c.default:c;o.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Qn(f,n,s,o,r)()}))}}return i}function LS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lf(e){const t=hn(Fu),n=hn(Wm),s=We(()=>t.resolve(os(e.to))),i=We(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Hi.bind(null,u));if(f>-1)return f;const p=cf(l[c-2]);return c>1&&cf(u)===p&&d[d.length-1].path!==p?d.findIndex(Hi.bind(null,l[c-2])):f}),o=We(()=>i.value>-1&&BS(n.params,s.value.params)),r=We(()=>i.value>-1&&i.value===n.matched.length-1&&Dm(n.params,s.value.params));function a(l={}){return FS(l)?t[os(e.replace)?"replace":"push"](os(e.to)).catch(Po):Promise.resolve()}return{route:s,href:We(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const RS=qa({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:lf,setup(e,{slots:t}){const n=or(lf(e)),{options:s}=hn(Fu),i=We(()=>({[uf(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[uf(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Fi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),NS=RS;function FS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function BS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!nn(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function cf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uf=(e,t,n)=>e??t??n,VS=qa({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=hn(Tc),i=We(()=>e.route||s.value),o=hn(af,0),r=We(()=>{let c=os(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=We(()=>i.value.matched[r.value]);ra(af,We(()=>r.value+1)),ra(IS,a),ra(Tc,i);const l=Li();return zs(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Hi(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return df(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=Fi(f,Ft({},m,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return df(n.default,{Component:v,route:c})||v}}});function df(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zm=VS;function HS(e){const t=gS(e.routes,e),n=e.parseQuery||OS,s=e.stringifyQuery||rf,i=e.history,o=uo(),r=uo(),a=uo(),l=yu(zn);let c=zn;bi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fl.bind(null,j=>""+j),d=Fl.bind(null,MS),f=Fl.bind(null,ya);function p(j,nt){let Z,at;return Lm(j)?(Z=t.getRecordMatcher(j),at=nt):at=j,t.addRoute(at,Z)}function m(j){const nt=t.getRecordMatcher(j);nt&&t.removeRoute(nt)}function _(){return t.getRoutes().map(j=>j.record)}function v(j){return!!t.getRecordMatcher(j)}function x(j,nt){if(nt=Ft({},nt||l.value),typeof j=="string"){const L=Bl(n,j,nt.path),V=t.resolve({path:L.path},nt),K=i.createHref(L.fullPath);return Ft(L,V,{params:f(V.params),hash:ya(L.hash),redirectedFrom:void 0,href:K})}let Z;if("path"in j)Z=Ft({},j,{path:Bl(n,j.path,nt.path).path});else{const L=Ft({},j.params);for(const V in L)L[V]==null&&delete L[V];Z=Ft({},j,{params:d(L)}),nt.params=d(nt.params)}const at=t.resolve(Z,nt),F=j.hash||"";at.params=u(f(at.params));const T=WE(s,Ft({},j,{hash:PS(F),path:at.path})),O=i.createHref(T);return Ft({fullPath:T,hash:F,query:s===rf?DS(j.query):j.query||{}},at,{redirectedFrom:void 0,href:O})}function S(j){return typeof j=="string"?Bl(n,j,l.value.path):Ft({},j)}function P(j,nt){if(c!==j)return ji(8,{from:nt,to:j})}function A(j){return C(j)}function y(j){return A(Ft(S(j),{replace:!0}))}function E(j){const nt=j.matched[j.matched.length-1];if(nt&&nt.redirect){const{redirect:Z}=nt;let at=typeof Z=="function"?Z(j):Z;return typeof at=="string"&&(at=at.includes("?")||at.includes("#")?at=S(at):{path:at},at.params={}),Ft({query:j.query,hash:j.hash,params:"path"in at?{}:j.params},at)}}function C(j,nt){const Z=c=x(j),at=l.value,F=j.state,T=j.force,O=j.replace===!0,L=E(Z);if(L)return C(Ft(S(L),{state:typeof L=="object"?Ft({},F,L.state):F,force:T,replace:O}),nt||Z);const V=Z;V.redirectedFrom=nt;let K;return!T&&zE(s,at,Z)&&(K=ji(16,{to:V,from:at}),mt(at,at,!0,!1)),(K?Promise.resolve(K):D(V,at)).catch(G=>yn(G)?yn(G,2)?G:ct(G):U(G,V,at)).then(G=>{if(G){if(yn(G,2))return C(Ft({replace:O},S(G.to),{state:typeof G.to=="object"?Ft({},F,G.to.state):F,force:T}),nt||V)}else G=N(V,at,!0,O,F);return I(V,at,G),G})}function w(j,nt){const Z=P(j,nt);return Z?Promise.reject(Z):Promise.resolve()}function $(j){const nt=At.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(j):j()}function D(j,nt){let Z;const[at,F,T]=jS(j,nt);Z=Vl(at.reverse(),"beforeRouteLeave",j,nt);for(const L of at)L.leaveGuards.forEach(V=>{Z.push(Qn(V,j,nt))});const O=w.bind(null,j,nt);return Z.push(O),Ct(Z).then(()=>{Z=[];for(const L of o.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).then(()=>{Z=Vl(F,"beforeRouteUpdate",j,nt);for(const L of F)L.updateGuards.forEach(V=>{Z.push(Qn(V,j,nt))});return Z.push(O),Ct(Z)}).then(()=>{Z=[];for(const L of T)if(L.beforeEnter)if(nn(L.beforeEnter))for(const V of L.beforeEnter)Z.push(Qn(V,j,nt));else Z.push(Qn(L.beforeEnter,j,nt));return Z.push(O),Ct(Z)}).then(()=>(j.matched.forEach(L=>L.enterCallbacks={}),Z=Vl(T,"beforeRouteEnter",j,nt),Z.push(O),Ct(Z))).then(()=>{Z=[];for(const L of r.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).catch(L=>yn(L,8)?L:Promise.reject(L))}function I(j,nt,Z){a.list().forEach(at=>$(()=>at(j,nt,Z)))}function N(j,nt,Z,at,F){const T=P(j,nt);if(T)return T;const O=nt===zn,L=bi?history.state:{};Z&&(at||O?i.replace(j.fullPath,Ft({scroll:O&&L&&L.scroll},F)):i.push(j.fullPath,F)),l.value=j,mt(j,nt,Z,O),ct()}let Q;function Y(){Q||(Q=i.listen((j,nt,Z)=>{if(!Mt.listening)return;const at=x(j),F=E(at);if(F){C(Ft(F,{replace:!0}),at).catch(Po);return}c=at;const T=l.value;bi&&JE(Qh(T.fullPath,Z.delta),nl()),D(at,T).catch(O=>yn(O,12)?O:yn(O,2)?(C(O.to,at).then(L=>{yn(L,20)&&!Z.delta&&Z.type===qo.pop&&i.go(-1,!1)}).catch(Po),Promise.reject()):(Z.delta&&i.go(-Z.delta,!1),U(O,at,T))).then(O=>{O=O||N(at,T,!1),O&&(Z.delta&&!yn(O,8)?i.go(-Z.delta,!1):Z.type===qo.pop&&yn(O,20)&&i.go(-1,!1)),I(at,T,O)}).catch(Po)}))}let H=uo(),R=uo(),W;function U(j,nt,Z){ct(j);const at=R.list();return at.length?at.forEach(F=>F(j,nt,Z)):console.error(j),Promise.reject(j)}function rt(){return W&&l.value!==zn?Promise.resolve():new Promise((j,nt)=>{H.add([j,nt])})}function ct(j){return W||(W=!j,Y(),H.list().forEach(([nt,Z])=>j?Z(j):nt()),H.reset()),j}function mt(j,nt,Z,at){const{scrollBehavior:F}=e;if(!bi||!F)return Promise.resolve();const T=!Z&&ZE(Qh(j.fullPath,0))||(at||!Z)&&history.state&&history.state.scroll||null;return Ua().then(()=>F(j,nt,T)).then(O=>O&&QE(O)).catch(O=>U(O,j,nt))}const pt=j=>i.go(j);let Pt;const At=new Set,Mt={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:v,getRoutes:_,resolve:x,options:e,push:A,replace:y,go:pt,back:()=>pt(-1),forward:()=>pt(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:rt,install(j){const nt=this;j.component("RouterLink",NS),j.component("RouterView",zm),j.config.globalProperties.$router=nt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>os(l)}),bi&&!Pt&&l.value===zn&&(Pt=!0,A(i.location).catch(F=>{}));const Z={};for(const F in zn)Object.defineProperty(Z,F,{get:()=>l.value[F],enumerable:!0});j.provide(Fu,nt),j.provide(Wm,Fg(Z)),j.provide(Tc,l);const at=j.unmount;At.add(j),j.unmount=function(){At.delete(j),At.size<1&&(c=zn,Q&&Q(),Q=null,l.value=zn,Pt=!1,W=!1),at()}}};function Ct(j){return j.reduce((nt,Z)=>nt.then(()=>$(Z)),Promise.resolve())}return Mt}function jS(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rHi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Hi(c,l))||i.push(l))}return[n,s,i]}const Re=async(e,t=void 0,n=void 0)=>{const s=new URLSearchParams(t);await fetch(`${e}?${s.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>n?n(i):void 0)},Ce=async(e,t,n)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(s=>s.json()).then(s=>n?n(s):void 0)};let Fr;const WS=new Uint8Array(16);function zS(){if(!Fr&&(Fr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fr(WS)}const ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function US(e,t=0){return ce[e[t+0]]+ce[e[t+1]]+ce[e[t+2]]+ce[e[t+3]]+"-"+ce[e[t+4]]+ce[e[t+5]]+"-"+ce[e[t+6]]+ce[e[t+7]]+"-"+ce[e[t+8]]+ce[e[t+9]]+"-"+ce[e[t+10]]+ce[e[t+11]]+ce[e[t+12]]+ce[e[t+13]]+ce[e[t+14]]+ce[e[t+15]]}const KS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hf={randomUUID:KS};function to(e,t,n){if(hf.randomUUID&&!t&&!e)return hf.randomUUID();e=e||{};const s=e.random||(e.rng||zS)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=s[i];return t}return US(s)}const Xt=Ru("DashboardConfigurationStore",{state:()=>({Configuration:void 0,Messages:[]}),actions:{async getConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await Ce("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await Re("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,n){this.Messages.push({id:to(),from:e,content:t,type:n,show:!0})}}}),YS=g("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[g("div",{class:"container-fluid"},[g("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),qS={__name:"App",setup(e){return Xt(),(t,n)=>(X(),ot(Qt,null,[YS,(X(),ue(Cu,null,{default:Gt(()=>[dt(os(zm),null,{default:Gt(({Component:s})=>[dt(Ln,{name:"fade",mode:"out-in"},{default:Gt(()=>[(X(),ue(Au(s)))]),_:2},1024)]),_:1})]),_:1}))],64))}},GS={getCookie(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length===2)return n.pop().split(";").shift()}};Ru("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const ff="[a-fA-F\\d:]",Jn=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${ff})|(?<=${ff})(?=\\s|$))`:"",Je="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ne="[a-fA-F\\d]{1,4}",sl=` + */const bi=typeof window<"u";function HE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ft=Object.assign;function Fl(e,t){const n={};for(const s in t){const i=t[s];n[s]=nn(i)?i.map(e):e(i)}return n}const Po=()=>{},nn=Array.isArray,jE=/\/$/,WE=e=>e.replace(jE,"");function Bl(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=YE(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:r}}function zE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Gh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function UE(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Hi(t.matched[s],n.matched[i])&&Dm(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!KE(e[n],t[n]))return!1;return!0}function KE(e,t){return nn(e)?Xh(e,t):nn(t)?Xh(t,e):e===t}function Xh(e,t){return nn(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function YE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var qo;(function(e){e.pop="pop",e.push="push"})(qo||(qo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function qE(e){if(!e)if(bi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),WE(e)}const GE=/^[^#]+#/;function XE(e,t){return e.replace(GE,"#")+t}function QE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const sl=()=>({left:window.pageXOffset,top:window.pageYOffset});function JE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=QE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qh(e,t){return(history.state?history.state.position-t:-1)+e}const Ac=new Map;function ZE(e,t){Ac.set(e,t)}function tS(e){const t=Ac.get(e);return Ac.delete(e),t}let eS=()=>location.protocol+"//"+location.host;function Im(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Gh(l,"")}return Gh(n,e)+s+i}function nS(e,t,n,s){let i=[],o=[],r=null;const a=({state:f})=>{const p=Im(e,location),m=n.value,_=t.value;let v=0;if(f){if(n.value=p,t.value=f,r&&r===m){r=null;return}v=_?f.position-_.position:0}else s(p);i.forEach(x=>{x(n.value,m,{delta:v,type:qo.pop,direction:v?v>0?ko.forward:ko.back:ko.unknown})})};function l(){r=n.value}function c(f){i.push(f);const p=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return o.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Ft({},f.state,{scroll:sl()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Jh(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?sl():null}}function sS(e){const{history:t,location:n}=window,s={value:Im(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:eS()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=Ft({},t.state,Jh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Ft({},i.value,t.state,{forward:l,scroll:sl()});o(u.current,u,!0);const d=Ft({},Jh(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function iS(e){e=qE(e);const t=sS(e),n=nS(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Ft({location:"",base:e,go:s,createHref:XE.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function oS(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),iS(e)}function rS(e){return typeof e=="string"||e&&typeof e=="object"}function Lm(e){return typeof e=="string"||typeof e=="symbol"}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rm=Symbol("");var Zh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zh||(Zh={}));function ji(e,t){return Ft(new Error,{type:e,[Rm]:!0},t)}function yn(e,t){return e instanceof Error&&Rm in e&&(t==null||!!(e.type&t))}const tf="[^/]+?",aS={sensitive:!1,strict:!1,start:!0,end:!0},lS=/[.+*?^${}()[\]/\\]/g;function cS(e,t){const n=Ft({},aS,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function dS(e,t){let n=0;const s=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const hS={type:0,value:""},fS=/[a-zA-Z0-9_]/;function pS(e){if(!e)return[[]];if(e==="/")return[[hS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{r(S)}:Po}function r(u){if(Lm(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Nm(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!sf(u)&&s.set(u.record.name,u)}function c(u,d){let f,p={},m,_;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw ji(1,{location:u});_=f.record.name,p=Ft(nf(d.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&nf(u.params,f.keys.map(S=>S.name))),m=f.stringify(p)}else if("path"in u)m=u.path,f=n.find(S=>S.re.test(m)),f&&(p=f.parse(m),_=f.record.name);else{if(f=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!f)throw ji(1,{location:u,currentLocation:d});_=f.record.name,p=Ft({},d.params,u.params),m=f.stringify(p)}const v=[];let x=f;for(;x;)v.unshift(x.record),x=x.parent;return{name:_,path:m,params:p,matched:v,meta:vS(v)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:i}}function nf(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function _S(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function sf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vS(e){return e.reduce((t,n)=>Ft(t,n.meta),{})}function of(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nm(e,t){return t.children.some(n=>n===e||Nm(e,n))}const Fm=/#/g,yS=/&/g,xS=/\//g,wS=/=/g,ES=/\?/g,Bm=/\+/g,SS=/%5B/g,AS=/%5D/g,Vm=/%5E/g,CS=/%60/g,Hm=/%7B/g,TS=/%7C/g,jm=/%7D/g,PS=/%20/g;function Nu(e){return encodeURI(""+e).replace(TS,"|").replace(SS,"[").replace(AS,"]")}function kS(e){return Nu(e).replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function Cc(e){return Nu(e).replace(Bm,"%2B").replace(PS,"+").replace(Fm,"%23").replace(yS,"%26").replace(CS,"`").replace(Hm,"{").replace(jm,"}").replace(Vm,"^")}function $S(e){return Cc(e).replace(wS,"%3D")}function MS(e){return Nu(e).replace(Fm,"%23").replace(ES,"%3F")}function OS(e){return e==null?"":MS(e).replace(xS,"%2F")}function xa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function DS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Cc(o)):[s&&Cc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function IS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=nn(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const LS=Symbol(""),af=Symbol(""),Fu=Symbol(""),Wm=Symbol(""),Tc=Symbol("");function uo(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qn(e,t,n,s,i){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(ji(4,{from:n,to:t})):d instanceof Error?a(d):rS(d)?a(ji(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),r())},c=e.call(s&&s.instances[i],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function Vl(e,t,n,s){const i=[];for(const o of e)for(const r in o.components){let a=o.components[r];if(!(t!=="beforeRouteEnter"&&!o.instances[r]))if(RS(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Qn(c,n,s,o,r))}else{let l=a();i.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const u=HE(c)?c.default:c;o.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Qn(f,n,s,o,r)()}))}}return i}function RS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lf(e){const t=hn(Fu),n=hn(Wm),s=We(()=>t.resolve(os(e.to))),i=We(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Hi.bind(null,u));if(f>-1)return f;const p=cf(l[c-2]);return c>1&&cf(u)===p&&d[d.length-1].path!==p?d.findIndex(Hi.bind(null,l[c-2])):f}),o=We(()=>i.value>-1&&VS(n.params,s.value.params)),r=We(()=>i.value>-1&&i.value===n.matched.length-1&&Dm(n.params,s.value.params));function a(l={}){return BS(l)?t[os(e.replace)?"replace":"push"](os(e.to)).catch(Po):Promise.resolve()}return{route:s,href:We(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}const NS=Ga({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:lf,setup(e,{slots:t}){const n=or(lf(e)),{options:s}=hn(Fu),i=We(()=>({[uf(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[uf(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Fi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),FS=NS;function BS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function VS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!nn(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function cf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uf=(e,t,n)=>e??t??n,HS=Ga({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=hn(Tc),i=We(()=>e.route||s.value),o=hn(af,0),r=We(()=>{let c=os(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=We(()=>i.value.matched[r.value]);aa(af,We(()=>r.value+1)),aa(LS,a),aa(Tc,i);const l=Li();return zs(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Hi(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return df(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=Fi(f,Ft({},m,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return df(n.default,{Component:v,route:c})||v}}});function df(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zm=HS;function jS(e){const t=mS(e.routes,e),n=e.parseQuery||DS,s=e.stringifyQuery||rf,i=e.history,o=uo(),r=uo(),a=uo(),l=yu(zn);let c=zn;bi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fl.bind(null,j=>""+j),d=Fl.bind(null,OS),f=Fl.bind(null,xa);function p(j,nt){let Z,at;return Lm(j)?(Z=t.getRecordMatcher(j),at=nt):at=j,t.addRoute(at,Z)}function m(j){const nt=t.getRecordMatcher(j);nt&&t.removeRoute(nt)}function _(){return t.getRoutes().map(j=>j.record)}function v(j){return!!t.getRecordMatcher(j)}function x(j,nt){if(nt=Ft({},nt||l.value),typeof j=="string"){const L=Bl(n,j,nt.path),V=t.resolve({path:L.path},nt),K=i.createHref(L.fullPath);return Ft(L,V,{params:f(V.params),hash:xa(L.hash),redirectedFrom:void 0,href:K})}let Z;if("path"in j)Z=Ft({},j,{path:Bl(n,j.path,nt.path).path});else{const L=Ft({},j.params);for(const V in L)L[V]==null&&delete L[V];Z=Ft({},j,{params:d(L)}),nt.params=d(nt.params)}const at=t.resolve(Z,nt),F=j.hash||"";at.params=u(f(at.params));const T=zE(s,Ft({},j,{hash:kS(F),path:at.path})),O=i.createHref(T);return Ft({fullPath:T,hash:F,query:s===rf?IS(j.query):j.query||{}},at,{redirectedFrom:void 0,href:O})}function S(j){return typeof j=="string"?Bl(n,j,l.value.path):Ft({},j)}function P(j,nt){if(c!==j)return ji(8,{from:nt,to:j})}function A(j){return C(j)}function y(j){return A(Ft(S(j),{replace:!0}))}function E(j){const nt=j.matched[j.matched.length-1];if(nt&&nt.redirect){const{redirect:Z}=nt;let at=typeof Z=="function"?Z(j):Z;return typeof at=="string"&&(at=at.includes("?")||at.includes("#")?at=S(at):{path:at},at.params={}),Ft({query:j.query,hash:j.hash,params:"path"in at?{}:j.params},at)}}function C(j,nt){const Z=c=x(j),at=l.value,F=j.state,T=j.force,O=j.replace===!0,L=E(Z);if(L)return C(Ft(S(L),{state:typeof L=="object"?Ft({},F,L.state):F,force:T,replace:O}),nt||Z);const V=Z;V.redirectedFrom=nt;let K;return!T&&UE(s,at,Z)&&(K=ji(16,{to:V,from:at}),mt(at,at,!0,!1)),(K?Promise.resolve(K):D(V,at)).catch(G=>yn(G)?yn(G,2)?G:ct(G):U(G,V,at)).then(G=>{if(G){if(yn(G,2))return C(Ft({replace:O},S(G.to),{state:typeof G.to=="object"?Ft({},F,G.to.state):F,force:T}),nt||V)}else G=N(V,at,!0,O,F);return I(V,at,G),G})}function w(j,nt){const Z=P(j,nt);return Z?Promise.reject(Z):Promise.resolve()}function $(j){const nt=At.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(j):j()}function D(j,nt){let Z;const[at,F,T]=WS(j,nt);Z=Vl(at.reverse(),"beforeRouteLeave",j,nt);for(const L of at)L.leaveGuards.forEach(V=>{Z.push(Qn(V,j,nt))});const O=w.bind(null,j,nt);return Z.push(O),Ct(Z).then(()=>{Z=[];for(const L of o.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).then(()=>{Z=Vl(F,"beforeRouteUpdate",j,nt);for(const L of F)L.updateGuards.forEach(V=>{Z.push(Qn(V,j,nt))});return Z.push(O),Ct(Z)}).then(()=>{Z=[];for(const L of T)if(L.beforeEnter)if(nn(L.beforeEnter))for(const V of L.beforeEnter)Z.push(Qn(V,j,nt));else Z.push(Qn(L.beforeEnter,j,nt));return Z.push(O),Ct(Z)}).then(()=>(j.matched.forEach(L=>L.enterCallbacks={}),Z=Vl(T,"beforeRouteEnter",j,nt),Z.push(O),Ct(Z))).then(()=>{Z=[];for(const L of r.list())Z.push(Qn(L,j,nt));return Z.push(O),Ct(Z)}).catch(L=>yn(L,8)?L:Promise.reject(L))}function I(j,nt,Z){a.list().forEach(at=>$(()=>at(j,nt,Z)))}function N(j,nt,Z,at,F){const T=P(j,nt);if(T)return T;const O=nt===zn,L=bi?history.state:{};Z&&(at||O?i.replace(j.fullPath,Ft({scroll:O&&L&&L.scroll},F)):i.push(j.fullPath,F)),l.value=j,mt(j,nt,Z,O),ct()}let Q;function Y(){Q||(Q=i.listen((j,nt,Z)=>{if(!Mt.listening)return;const at=x(j),F=E(at);if(F){C(Ft(F,{replace:!0}),at).catch(Po);return}c=at;const T=l.value;bi&&ZE(Qh(T.fullPath,Z.delta),sl()),D(at,T).catch(O=>yn(O,12)?O:yn(O,2)?(C(O.to,at).then(L=>{yn(L,20)&&!Z.delta&&Z.type===qo.pop&&i.go(-1,!1)}).catch(Po),Promise.reject()):(Z.delta&&i.go(-Z.delta,!1),U(O,at,T))).then(O=>{O=O||N(at,T,!1),O&&(Z.delta&&!yn(O,8)?i.go(-Z.delta,!1):Z.type===qo.pop&&yn(O,20)&&i.go(-1,!1)),I(at,T,O)}).catch(Po)}))}let H=uo(),R=uo(),W;function U(j,nt,Z){ct(j);const at=R.list();return at.length?at.forEach(F=>F(j,nt,Z)):console.error(j),Promise.reject(j)}function rt(){return W&&l.value!==zn?Promise.resolve():new Promise((j,nt)=>{H.add([j,nt])})}function ct(j){return W||(W=!j,Y(),H.list().forEach(([nt,Z])=>j?Z(j):nt()),H.reset()),j}function mt(j,nt,Z,at){const{scrollBehavior:F}=e;if(!bi||!F)return Promise.resolve();const T=!Z&&tS(Qh(j.fullPath,0))||(at||!Z)&&history.state&&history.state.scroll||null;return Ka().then(()=>F(j,nt,T)).then(O=>O&&JE(O)).catch(O=>U(O,j,nt))}const pt=j=>i.go(j);let Pt;const At=new Set,Mt={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:v,getRoutes:_,resolve:x,options:e,push:A,replace:y,go:pt,back:()=>pt(-1),forward:()=>pt(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:rt,install(j){const nt=this;j.component("RouterLink",FS),j.component("RouterView",zm),j.config.globalProperties.$router=nt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>os(l)}),bi&&!Pt&&l.value===zn&&(Pt=!0,A(i.location).catch(F=>{}));const Z={};for(const F in zn)Object.defineProperty(Z,F,{get:()=>l.value[F],enumerable:!0});j.provide(Fu,nt),j.provide(Wm,Fg(Z)),j.provide(Tc,l);const at=j.unmount;At.add(j),j.unmount=function(){At.delete(j),At.size<1&&(c=zn,Q&&Q(),Q=null,l.value=zn,Pt=!1,W=!1),at()}}};function Ct(j){return j.reduce((nt,Z)=>nt.then(()=>$(Z)),Promise.resolve())}return Mt}function WS(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;rHi(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Hi(c,l))||i.push(l))}return[n,s,i]}const Re=async(e,t=void 0,n=void 0)=>{const s=new URLSearchParams(t);await fetch(`${e}?${s.toString()}`,{headers:{"content-type":"application/json"}}).then(i=>i.json()).then(i=>n?n(i):void 0)},Ce=async(e,t,n)=>{await fetch(`${e}`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(t)}).then(s=>s.json()).then(s=>n?n(s):void 0)};let Br;const zS=new Uint8Array(16);function US(){if(!Br&&(Br=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Br))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Br(zS)}const ue=[];for(let e=0;e<256;++e)ue.push((e+256).toString(16).slice(1));function KS(e,t=0){return ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]}const YS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hf={randomUUID:YS};function to(e,t,n){if(hf.randomUUID&&!t&&!e)return hf.randomUUID();e=e||{};const s=e.random||(e.rng||US)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=s[i];return t}return KS(s)}const Xt=Ru("DashboardConfigurationStore",{state:()=>({Configuration:void 0,Messages:[]}),actions:{async getConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{e.status&&(this.Configuration=e.data)})},async updateConfiguration(){await Ce("/api/updateDashboardConfiguration",{DashboardConfiguration:this.Configuration},e=>{console.log(e)})},async signOut(){await Re("/api/signout",{},e=>{this.$router.go("/signin")})},newMessage(e,t,n){this.Messages.push({id:to(),from:e,content:t,type:n,show:!0})}}}),qS=g("nav",{class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},[g("div",{class:"container-fluid"},[g("span",{class:"navbar-brand mb-0 h1"},"WGDashboard")])],-1),GS={__name:"App",setup(e){return Xt(),(t,n)=>(X(),ot(Qt,null,[qS,(X(),de(Cu,null,{default:Ut(()=>[dt(os(zm),null,{default:Ut(({Component:s})=>[dt(Ln,{name:"fade",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(s)))]),_:2},1024)]),_:1})]),_:1}))],64))}},XS={getCookie(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length===2)return n.pop().split(";").shift()}};Ru("WGDashboardStore",{state:()=>({WireguardConfigurations:void 0,DashboardConfiguration:void 0}),actions:{async getDashboardConfiguration(){await Re("/api/getDashboardConfiguration",{},e=>{console.log(e.status),e.status&&(this.DashboardConfiguration=e.data)})}}});const ff="[a-fA-F\\d:]",Jn=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${ff})|(?<=${ff})(?=\\s|$))`:"",Je="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ne="[a-fA-F\\d]{1,4}",il=` (?: (?:${ne}:){7}(?:${ne}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 (?:${ne}:){6}(?:${Je}|:${ne}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 @@ -21,31 +21,31 @@ var lx=Object.defineProperty;var cx=(e,t,n)=>t in e?lx(e,t,{enumerable:!0,config (?:${ne}:){1}(?:(?::${ne}){0,4}:${Je}|(?::${ne}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::${ne}){0,5}:${Je}|(?::${ne}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 -`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),XS=new RegExp(`(?:^${Je}$)|(?:^${sl}$)`),QS=new RegExp(`^${Je}$`),JS=new RegExp(`^${sl}$`),il=e=>e&&e.exact?XS:new RegExp(`(?:${Jn(e)}${Je}${Jn(e)})|(?:${Jn(e)}${sl}${Jn(e)})`,"g");il.v4=e=>e&&e.exact?QS:new RegExp(`${Jn(e)}${Je}${Jn(e)}`,"g");il.v6=e=>e&&e.exact?JS:new RegExp(`${Jn(e)}${sl}${Jn(e)}`,"g");const Um={exact:!1},Km=`${il.v4().source}\\/(3[0-2]|[12]?[0-9])`,Ym=`${il.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,ZS=new RegExp(`^${Km}$`),tA=new RegExp(`^${Ym}$`),eA=({exact:e}=Um)=>e?ZS:new RegExp(Km,"g"),nA=({exact:e}=Um)=>e?tA:new RegExp(Ym,"g"),qm=eA({exact:!0}),Gm=nA({exact:!0}),Bu=e=>qm.test(e)?4:Gm.test(e)?6:0;Bu.v4=e=>qm.test(e);Bu.v6=e=>Gm.test(e);const mn=Ru("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await Re("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Bu(e)!==0}}}),Lt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},sA={name:"navbar",setup(){const e=mn(),t=Xt();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},iA={class:"col-md-3 col-lg-2 d-md-block p-3"},oA={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},rA={class:"sidebar-sticky pt-3"},aA={class:"nav flex-column"},lA={class:"nav-item"},cA={class:"nav-item"},uA=g("hr",null,null,-1),dA=g("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[g("span",null,"Configurations")],-1),hA={class:"nav flex-column"},fA={class:"nav-item"},pA=Bw('

',4),gA={class:"nav flex-column"},mA={class:"nav-item"},_A=g("ul",{class:"nav flex-column"},[g("li",{class:"nav-item"},[g("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[g("small",{class:"nav-link text-muted"})])])],-1);function bA(e,t,n,s,i,o){const r=Rt("RouterLink");return X(),ot("div",iA,[g("nav",oA,[g("div",rA,[g("ul",aA,[g("li",lA,[dt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Gt(()=>[gt("Home")]),_:1})]),g("li",cA,[dt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Gt(()=>[gt("Settings")]),_:1})])]),uA,dA,g("ul",hA,[g("li",fA,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,a=>(X(),ue(r,{to:"/configuration/"+a.Name,class:"nav-link nav-conf-link"},{default:Gt(()=>[g("samp",null,wt(a.Name),1)]),_:2},1032,["to"]))),256))])]),pA,g("ul",gA,[g("li",mA,[g("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),_A])])])}const vA=Lt(sA,[["render",bA]]),yA={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},xA=["id"],wA={class:"card-body"},EA={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function SA(e,t,n,s,i,o){return X(),ot("div",{class:jt(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[g("div",wA,[g("small",EA,"FROM "+wt(this.message.from),1),gt(" "+wt(this.message.content),1)])],10,xA)}const AA=Lt(yA,[["render",SA]]),CA={name:"index",components:{Message:AA,Navbar:vA},async setup(){return{dashboardConfigurationStore:Xt()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},TA=["data-bs-theme"],PA={class:"row h-100"},kA={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},$A={class:"messageCentre text-body position-fixed"};function MA(e,t,n,s,i,o){const r=Rt("Navbar"),a=Rt("RouterView"),l=Rt("Message");return X(),ot("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[g("div",PA,[dt(r),g("main",kA,[(X(),ue(Cu,null,{default:Gt(()=>[dt(a,null,{default:Gt(({Component:c})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Gt(()=>[(X(),ue(Au(c)))]),_:2},1024)]),_:1})]),_:1})),g("div",$A,[dt(Lu,{name:"message",tag:"div",class:"position-relative"},{default:Gt(()=>[(X(!0),ot(Qt,null,us(o.getMessages.slice().reverse(),c=>(X(),ue(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,TA)}const OA=Lt(CA,[["render",MA],["__scopeId","data-v-54755a4a"]]),DA={name:"signin",async setup(){const e=Xt();let t="",n=!1;return await Re("/api/getDashboardTheme",{},s=>{t=s.data}),await Re("/api/isTotpEnabled",{},s=>{n=s.data}),{store:e,theme:t,totpEnabled:n}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await Ce("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},IA=["data-bs-theme"],LA={class:"login-box m-auto",style:{width:"500px"}},RA=g("h4",{class:"mb-0 text-body"},"Welcome to",-1),NA=g("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),FA={class:"m-auto"},BA={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},VA={class:"form-group text-body"},HA=g("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-person-circle"})],-1),jA={class:"form-group text-body"},WA=g("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-key-fill"})],-1),zA={key:0,class:"form-group text-body"},UA=g("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-lock-fill"})],-1),KA={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},YA={key:0,class:"d-flex w-100"},qA=g("i",{class:"ms-auto bi bi-chevron-right"},null,-1),GA={key:1,class:"d-flex w-100 align-items-center"},XA=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function QA(e,t,n,s,i,o){return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main","data-bs-theme":this.theme},[g("div",LA,[RA,NA,g("div",FA,[i.loginError?(X(),ot("div",BA,wt(this.loginErrorMessage),1)):Ut("",!0),g("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[g("div",VA,[HA,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[vt,i.username]])]),g("div",jA,[WA,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[vt,i.password]])]),s.totpEnabled?(X(),ot("div",zA,[UA,bt(g("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[vt,this.totp]])])):Ut("",!0),g("button",KA,[this.loading?(X(),ot("span",GA,[gt(" Signing In... "),XA])):(X(),ot("span",YA,[gt(" Sign In"),qA]))],512)],32)])])],8,IA)}const JA=Lt(DA,[["render",QA]]),ZA={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{toggle(){Re("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data})}}},tC={class:"card conf_card rounded-3 shadow text-decoration-none"},eC={class:"mb-0"},nC={class:"card-title mb-0"},sC=g("h6",{class:"mb-0 ms-auto"},[g("i",{class:"bi bi-chevron-right"})],-1),iC={class:"card-footer d-flex align-items-center"},oC=g("small",{class:"me-2 text-muted"},[g("strong",null,"PUBLIC KEY")],-1),rC={class:"mb-0 d-block d-lg-inline-block"},aC={style:{"line-break":"anywhere"}},lC={class:"form-check form-switch ms-auto"},cC=["for"],uC=["id"];function dC(e,t,n,s,i,o){const r=Rt("RouterLink");return X(),ot("div",tC,[dt(r,{to:"/configuration/"+n.c.Name,class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Gt(()=>[g("h6",eC,[g("span",{class:jt(["dot",{active:n.c.Status}])},null,2)]),g("h6",nC,[g("samp",null,wt(n.c.Name),1)]),sC]),_:1},8,["to"]),g("div",iC,[oC,g("small",rC,[g("samp",aC,wt(n.c.PublicKey),1)]),g("div",lC,[g("label",{class:"form-check-label",for:"switch"+n.c.PrivateKey},wt(n.c.Status?"On":"Off"),9,cC),bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>n.c.Status=a)},null,40,uC),[[lr,n.c.Status]])])])])}const hC=Lt(ZA,[["render",dC]]),fC={name:"configurationList",components:{ConfigurationCard:hC},async setup(){const e=mn();return await e.getConfigurations(),{wireguardConfigurationsStore:e}}},pC={class:"mt-4"},gC={class:"container"},mC={class:"d-flex mb-4"},_C=g("h3",{class:"text-body"},"WireGuard Configurations",-1),bC=g("i",{class:"bi bi-plus-circle-fill ms-2"},null,-1),vC={key:0,class:"text-muted"},yC={key:1,class:"d-flex gap-3 flex-column"};function xC(e,t,n,s,i,o){const r=Rt("RouterLink"),a=Rt("ConfigurationCard");return X(),ot("div",pC,[g("div",gC,[g("div",mC,[_C,dt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Gt(()=>[gt(" Configuration "),bC]),_:1})]),this.wireguardConfigurationsStore.Configurations.length===0?(X(),ot("p",vC,`You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard".`)):(X(),ot("div",yC,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,l=>(X(),ue(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])])}const wC=Lt(fC,[["render",xC]]),EC={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},SC={class:"form-group mb-2"},AC=["for"],CC=["id","disabled"],TC={class:"invalid-feedback"},PC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},kC=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),$C=["innerHTML"];function MC(e,t,n,s,i,o){return X(),ot("div",SC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,AC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,CC),[[vt,this.value]]),g("div",TC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",PC,[g("small",null,[kC,g("span",{innerHTML:n.warningText},null,8,$C)])])):Ut("",!0)])}const OC=Lt(EC,[["render",MC]]),DC=e=>{},IC={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},LC={class:"form-group mb-2"},RC=["for"],NC=["id","disabled"],FC={class:"invalid-feedback"},BC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},VC=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),HC=["innerHTML"];function jC(e,t,n,s,i,o){return X(),ot("div",LC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,RC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,NC),[[vt,this.value]]),g("div",FC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",BC,[g("small",null,[VC,g("span",{innerHTML:n.warningText},null,8,HC)])])):Ut("",!0)])}const WC=Lt(IC,[["render",jC]]),zC={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},UC={class:"row"},KC={class:"col-sm"},YC={class:"form-group mb-2"},qC=["for"],GC=g("strong",null,[g("small",null,"Current Password")],-1),XC=[GC],QC=["id"],JC={key:0,class:"invalid-feedback d-block"},ZC={class:"col-sm"},tT={class:"form-group mb-2"},eT=["for"],nT=g("strong",null,[g("small",null,"New Password")],-1),sT=[nT],iT=["id"],oT={class:"col-sm"},rT={class:"form-group mb-2"},aT=["for"],lT=g("strong",null,[g("small",null,"Repeat New Password")],-1),cT=[lT],uT=["id"],dT=g("i",{class:"bi bi-key-fill me-2"},null,-1);function hT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",UC,[g("div",KC,[g("div",YC,[g("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},XC,8,qC),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,QC),[[vt,this.value.currentPassword]]),i.showInvalidFeedback?(X(),ot("div",JC,wt(this.invalidFeedback),1)):Ut("",!0)])]),g("div",ZC,[g("div",tT,[g("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},sT,8,eT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,iT),[[vt,this.value.newPassword]])])]),g("div",oT,[g("div",rT,[g("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},cT,8,aT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,uT),[[vt,this.value.repeatNewPassword]])])])]),g("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[dT,gt("Update Password ")])])}const fT=Lt(zC,[["render",hT]]),pT={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},gT={class:"form-group mb-2"},mT=["for"],_T=["id","disabled"],bT={class:"invalid-feedback"},vT={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},yT=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),xT=["innerHTML"];function wT(e,t,n,s,i,o){return X(),ot("div",gT,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,mT),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,_T),[[vt,this.value]]),g("div",bT,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",vT,[g("small",null,[yT,g("span",{innerHTML:n.warningText},null,8,xT)])])):Ut("",!0)])}const ET=Lt(pT,[["render",wT]]),ST={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:Xt()}},methods:{async switchTheme(e){await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},AT={class:"card mb-4 shadow rounded-3"},CT=g("p",{class:"card-header"},"Dashboard Theme",-1),TT={class:"card-body d-flex gap-2"},PT=g("i",{class:"bi bi-sun-fill"},null,-1),kT=g("i",{class:"bi bi-moon-fill"},null,-1);function $T(e,t,n,s,i,o){return X(),ot("div",AT,[CT,g("div",TT,[g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[PT,gt(" Light ")],2),g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[kT,gt(" Dark ")],2)])])}const MT=Lt(ST,[["render",$T]]),OT={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},DT={class:"invalid-feedback d-block mt-0"},IT={class:"row"},LT={class:"form-group mb-2 col-sm"},RT=["for"],NT=g("strong",null,[g("small",null,"Dashboard IP Address")],-1),FT=[NT],BT=["id"],VT=g("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[g("small",null,[g("i",{class:"bi bi-exclamation-triangle-fill me-2"}),g("code",null,"0.0.0.0"),gt(" means it can be access by anyone with your server IP Address.")])],-1),HT={class:"form-group col-sm"},jT=["for"],WT=g("strong",null,[g("small",null,"Dashboard Port")],-1),zT=[WT],UT=["id"],KT=g("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[g("i",{class:"bi bi-floppy-fill me-2"}),gt("Update Dashboard Settings & Restart ")],-1);function YT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",DT,wt(this.invalidFeedback),1),g("div",IT,[g("div",LT,[g("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},FT,8,RT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,BT),[[vt,this.app_ip]]),VT]),g("div",HT,[g("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},zT,8,jT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,UT),[[vt,this.app_port]])])]),KT])}const qT=Lt(OT,[["render",YT]]),GT={name:"settings",methods:{ipV46RegexCheck:DC},components:{DashboardSettingsInputIPAddressAndPort:qT,DashboardTheme:MT,DashboardSettingsInputWireguardConfigurationPath:ET,AccountSettingsInputPassword:fT,AccountSettingsInputUsername:WC,PeersDefaultSettingsInput:OC},setup(){return{dashboardConfigurationStore:Xt()}},watch:{}},XT={class:"mt-4"},QT={class:"container"},JT=g("h3",{class:"mb-3 text-body"},"Settings",-1),ZT={class:"card mb-4 shadow rounded-3"},tP=g("p",{class:"card-header"},"Peers Default Settings",-1),eP={class:"card-body"},nP={class:"card mb-4 shadow rounded-3"},sP=g("p",{class:"card-header"},"WireGuard Configurations Settings",-1),iP={class:"card-body"},oP={class:"card mb-4 shadow rounded-3"},rP=g("p",{class:"card-header"},"Account Settings",-1),aP={class:"card-body"},lP=g("hr",null,null,-1);function cP(e,t,n,s,i,o){const r=Rt("DashboardTheme"),a=Rt("PeersDefaultSettingsInput"),l=Rt("DashboardSettingsInputWireguardConfigurationPath"),c=Rt("AccountSettingsInputUsername"),u=Rt("AccountSettingsInputPassword");return X(),ot("div",XT,[g("div",QT,[JT,dt(r),g("div",ZT,[tP,g("div",eP,[dt(a,{targetData:"peer_global_dns",title:"DNS"}),dt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),dt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),dt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),dt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),g("div",nP,[sP,g("div",iP,[dt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),g("div",oP,[rP,g("div",aP,[dt(c,{targetData:"username",title:"Username"}),lP,dt(u,{targetData:"password"})])])])])}const uP=Lt(GT,[["render",cP]]);var eo={},dP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Xm={},Ne={};let Vu;const hP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ne.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ne.getSymbolTotalCodewords=function(t){return hP[t]};Ne.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ne.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Vu=t};Ne.isKanjiModeEnabled=function(){return typeof Vu<"u"};Ne.toSJIS=function(t){return Vu(t)};var ol={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,i){if(e.isValid(s))return s;try{return t(s)}catch{return i}}})(ol);function Qm(){this.buffer=[],this.length=0}Qm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var fP=Qm;function cr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}cr.prototype.set=function(e,t,n,s){const i=e*this.size+t;this.data[i]=n,s&&(this.reservedBit[i]=!0)};cr.prototype.get=function(e,t){return this.data[e*this.size+t]};cr.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};cr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var pP=cr,Jm={};(function(e){const t=Ne.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const i=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(r+=t.N1+(a-5)),c=p,a=1),p=i.get(f,d),p===u?l++:(l>=5&&(r+=t.N1+(l-5)),u=p,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(s,i),o}return s};var mP=Hu,s_={},ms={},ju={};ju.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _n={};const i_="[0-9]+",_P="[A-Z $%*+\\-./:]+";let Go="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Go=Go.replace(/u/g,"\\u");const bP="(?:(?![A-Z0-9 $%*+\\-./:]|"+Go+`)(?:.|[\r -]))+`;_n.KANJI=new RegExp(Go,"g");_n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_n.BYTE=new RegExp(bP,"g");_n.NUMERIC=new RegExp(i_,"g");_n.ALPHANUMERIC=new RegExp(_P,"g");const vP=new RegExp("^"+Go+"$"),yP=new RegExp("^"+i_+"$"),xP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_n.testKanji=function(t){return vP.test(t)};_n.testNumeric=function(t){return yP.test(t)};_n.testAlphanumeric=function(t){return xP.test(t)};(function(e){const t=ju,n=_n;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(ms);(function(e){const t=Ne,n=rl,s=ol,i=ms,o=ju,r=7973,a=t.getBCHDigit(r);function l(f,p,m){for(let _=1;_<=40;_++)if(p<=e.getCapacity(_,m,f))return _}function c(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let m=0;return f.forEach(function(_){const v=c(_.mode,p);m+=v+_.getBitsLength()}),m}function d(f,p){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,p,i.MIXED))return m}e.from=function(p,m){return o.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,_){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=i.BYTE);const v=t.getSymbolTotalCodewords(p),x=n.getTotalCodewordsCount(p,m),S=(v-x)*8;if(_===i.MIXED)return S;const P=S-c(_,p);switch(_){case i.NUMERIC:return Math.floor(P/10*3);case i.ALPHANUMERIC:return Math.floor(P/11*2);case i.KANJI:return Math.floor(P/13);case i.BYTE:default:return Math.floor(P/8)}},e.getBestVersionForData=function(p,m){let _;const v=s.from(m,s.M);if(Array.isArray(p)){if(p.length>1)return d(p,v);if(p.length===0)return 1;_=p[0]}else _=p;return l(_.mode,_.getLength(),v)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-a>=0;)m^=r<=0;)i^=r_<0&&(s=this.data.substr(n),i=parseInt(s,10),t.put(i,o*3+1))};var SP=Wi;const AP=ms,Hl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function zi(e){this.mode=AP.ALPHANUMERIC,this.data=e}zi.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};zi.prototype.getLength=function(){return this.data.length};zi.prototype.getBitsLength=function(){return zi.getBitsLength(this.data.length)};zi.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=Hl.indexOf(this.data[n])*45;s+=Hl.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(Hl.indexOf(this.data[n]),6)};var CP=zi,TP=function(t){for(var n=[],s=t.length,i=0;i=55296&&o<=56319&&s>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const PP=TP,kP=ms;function Ui(e){this.mode=kP.BYTE,typeof e=="string"&&(e=PP(e)),this.data=new Uint8Array(e)}Ui.getBitsLength=function(t){return t*8};Ui.prototype.getLength=function(){return this.data.length};Ui.prototype.getBitsLength=function(){return Ui.getBitsLength(this.data.length)};Ui.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var DP=Ki,l_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,s,i){var o={},r={};r[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var l,c,u,d,f,p,m,_,v;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],m=d+p,_=r[u],v=typeof r[u]>"u",(v||_>m)&&(r[u]=m,a.push(u,m),o[u]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var x=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(x)}return o},extract_shortest_path_from_predecessor_list:function(n,s){for(var i=[],o=s;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,s,i){var o=t.single_source_shortest_paths(n,s,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var s=t.PriorityQueue,i={},o;n=n||{};for(o in s)s.hasOwnProperty(o)&&(i[o]=s[o]);return i.queue=[],i.sorter=n.sorter||s.default_sorter,i},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var i={value:n,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(l_);var IP=l_.exports;(function(e){const t=ms,n=SP,s=CP,i=$P,o=DP,r=_n,a=Ne,l=IP;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,P){const A=[];let y;for(;(y=x.exec(P))!==null;)A.push({data:y[0],index:y.index,mode:S,length:y[0].length});return A}function d(x){const S=u(r.NUMERIC,t.NUMERIC,x),P=u(r.ALPHANUMERIC,t.ALPHANUMERIC,x);let A,y;return a.isKanjiModeEnabled()?(A=u(r.BYTE,t.BYTE,x),y=u(r.KANJI,t.KANJI,x)):(A=u(r.BYTE_KANJI,t.BYTE,x),y=[]),S.concat(P,A,y).sort(function(C,w){return C.index-w.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(x,S){switch(S){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return o.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,P){const A=S.length-1>=0?S[S.length-1]:null;return A&&A.mode===P.mode?(S[S.length-1].data+=P.data,S):(S.push(P),S)},[])}function m(x){const S=[];for(let P=0;P=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function WP(e){const t=e.size;for(let n=8;n>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function zl(e,t,n){const s=e.size,i=VP.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function KP(e,t){const n=e.size;let s=-1,i=n-1,o=7,r=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=s,i<0||n<=i){i-=s,s=-s;break}}}function YP(e,t,n){const s=new LP;n.forEach(function(l){s.put(l.mode.bit,4),s.put(l.getLength(),HP.getCharCountIndicator(l.mode,e)),l.write(s)});const i=ll.getSymbolTotalCodewords(e),o=$c.getTotalCodewordsCount(e,t),r=(i-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(r-s.getLengthInBits())/8;for(let l=0;le&&e.exact?QS:new RegExp(`(?:${Jn(e)}${Je}${Jn(e)})|(?:${Jn(e)}${il}${Jn(e)})`,"g");ol.v4=e=>e&&e.exact?JS:new RegExp(`${Jn(e)}${Je}${Jn(e)}`,"g");ol.v6=e=>e&&e.exact?ZS:new RegExp(`${Jn(e)}${il}${Jn(e)}`,"g");const Um={exact:!1},Km=`${ol.v4().source}\\/(3[0-2]|[12]?[0-9])`,Ym=`${ol.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,tA=new RegExp(`^${Km}$`),eA=new RegExp(`^${Ym}$`),nA=({exact:e}=Um)=>e?tA:new RegExp(Km,"g"),sA=({exact:e}=Um)=>e?eA:new RegExp(Ym,"g"),qm=nA({exact:!0}),Gm=sA({exact:!0}),Bu=e=>qm.test(e)?4:Gm.test(e)?6:0;Bu.v4=e=>qm.test(e);Bu.v6=e=>Gm.test(e);const mn=Ru("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:""}),actions:{async getConfigurations(){await Re("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Bu(e)!==0}}}),Rt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},iA={name:"navbar",setup(){const e=mn(),t=Xt();return{wireguardConfigurationsStore:e,dashboardConfigurationStore:t}}},oA={class:"col-md-3 col-lg-2 d-md-block p-3"},rA={id:"sidebarMenu",class:"bg-body-tertiary sidebar border h-100 rounded-3 shadow"},aA={class:"sidebar-sticky pt-3"},lA={class:"nav flex-column"},cA={class:"nav-item"},uA={class:"nav-item"},dA=g("hr",null,null,-1),hA=g("h6",{class:"sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"},[g("span",null,"Configurations")],-1),fA={class:"nav flex-column"},pA={class:"nav-item"},gA=Vw('

',4),mA={class:"nav flex-column"},_A={class:"nav-item"},bA=g("ul",{class:"nav flex-column"},[g("li",{class:"nav-item"},[g("a",{href:"https://github.com/donaldzou/WGDashboard/releases/tag/"},[g("small",{class:"nav-link text-muted"})])])],-1);function vA(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",oA,[g("nav",rA,[g("div",aA,[g("ul",lA,[g("li",cA,[dt(r,{class:"nav-link",to:"/","exact-active-class":"active"},{default:Ut(()=>[gt("Home")]),_:1})]),g("li",uA,[dt(r,{class:"nav-link",to:"/settings","exact-active-class":"active"},{default:Ut(()=>[gt("Settings")]),_:1})])]),dA,hA,g("ul",fA,[g("li",pA,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,a=>(X(),de(r,{to:"/configuration/"+a.Name+"/peers",class:"nav-link nav-conf-link"},{default:Ut(()=>[g("samp",null,wt(a.Name),1)]),_:2},1032,["to"]))),256))])]),gA,g("ul",mA,[g("li",_A,[g("a",{class:"nav-link text-danger",onClick:t[0]||(t[0]=a=>this.dashboardConfigurationStore.signOut()),role:"button",style:{"font-weight":"bold"}},"Sign Out")])]),bA])])])}const yA=Rt(iA,[["render",vA]]),xA={name:"message",props:{message:Object},mounted(){setTimeout(()=>{this.message.show=!1},5e3)}},wA=["id"],EA={class:"card-body"},SA={class:"fw-bold d-block",style:{"text-transform":"uppercase"}};function AA(e,t,n,s,i,o){return X(),ot("div",{class:jt(["card shadow rounded-3 position-relative mb-2",{"text-bg-danger":this.message.type==="danger","text-bg-success":this.message.type==="success","text-bg-warning":this.message.type==="warning"}]),id:this.message.id,style:{width:"400px"}},[g("div",EA,[g("small",SA,"FROM "+wt(this.message.from),1),gt(" "+wt(this.message.content),1)])],10,wA)}const CA=Rt(xA,[["render",AA]]),TA={name:"index",components:{Message:CA,Navbar:yA},async setup(){return{dashboardConfigurationStore:Xt()}},computed:{getMessages(){return this.dashboardConfigurationStore.Messages.filter(e=>e.show)}}},PA=["data-bs-theme"],kA={class:"row h-100"},$A={class:"col-md-9 ml-sm-auto col-lg-10 px-md-4 overflow-y-scroll mb-0",style:{height:"calc(100vh - 50px)"}},MA={class:"messageCentre text-body position-fixed"};function OA(e,t,n,s,i,o){const r=Ot("Navbar"),a=Ot("RouterView"),l=Ot("Message");return X(),ot("div",{class:"container-fluid flex-grow-1 main","data-bs-theme":this.dashboardConfigurationStore.Configuration.Server.dashboard_theme},[g("div",kA,[dt(r),g("main",$A,[(X(),de(Cu,null,{default:Ut(()=>[dt(a,null,{default:Ut(({Component:c})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(c)))]),_:2},1024)]),_:1})]),_:1})),g("div",MA,[dt(Lu,{name:"message",tag:"div",class:"position-relative"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(o.getMessages.slice().reverse(),c=>(X(),de(l,{message:c,key:c.id},null,8,["message"]))),128))]),_:1})])])])],8,PA)}const DA=Rt(TA,[["render",OA],["__scopeId","data-v-54755a4a"]]),IA={name:"signin",async setup(){const e=Xt();let t="",n=!1;return await Re("/api/getDashboardTheme",{},s=>{t=s.data}),await Re("/api/isTotpEnabled",{},s=>{n=s.data}),{store:e,theme:t,totpEnabled:n}},data(){return{username:"",password:"",totp:"",loginError:!1,loginErrorMessage:"",loading:!1}},methods:{async auth(){this.username&&this.password&&(this.totpEnabled&&this.totp||!this.totpEnabled)?(this.loading=!0,await Ce("/api/authenticate",{username:this.username,password:this.password,totp:this.totp},e=>{e.status?(this.loginError=!1,this.$refs.signInBtn.classList.add("signedIn"),e.message?this.$router.push("/welcome"):this.$router.push("/")):(this.loginError=!0,this.loginErrorMessage=e.message,document.querySelectorAll("input[required]").forEach(t=>{t.classList.remove("is-valid"),t.classList.add("is-invalid")}),this.loading=!1)})):document.querySelectorAll("input[required]").forEach(e=>{e.value.length===0?(e.classList.remove("is-valid"),e.classList.add("is-invalid")):(e.classList.remove("is-invalid"),e.classList.add("is-valid"))})}}},LA=["data-bs-theme"],RA={class:"login-box m-auto",style:{width:"500px"}},NA=g("h4",{class:"mb-0 text-body"},"Welcome to",-1),FA=g("span",{class:"dashboardLogo display-3"},"WGDashboard",-1),BA={class:"m-auto"},VA={key:0,class:"alert alert-danger mt-2 mb-0",role:"alert"},HA={class:"form-group text-body"},jA=g("label",{for:"username",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-person-circle"})],-1),WA={class:"form-group text-body"},zA=g("label",{for:"password",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-key-fill"})],-1),UA={key:0,class:"form-group text-body"},KA=g("label",{for:"totp",class:"text-left",style:{"font-size":"1rem"}},[g("i",{class:"bi bi-lock-fill"})],-1),YA={class:"btn btn-lg btn-dark ms-auto mt-4 w-100 d-flex btn-brand shadow signInBtn",ref:"signInBtn"},qA={key:0,class:"d-flex w-100"},GA=g("i",{class:"ms-auto bi bi-chevron-right"},null,-1),XA={key:1,class:"d-flex w-100 align-items-center"},QA=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function JA(e,t,n,s,i,o){return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main","data-bs-theme":this.theme},[g("div",RA,[NA,FA,g("div",BA,[i.loginError?(X(),ot("div",VA,wt(this.loginErrorMessage),1)):Kt("",!0),g("form",{onSubmit:t[3]||(t[3]=r=>{r.preventDefault(),this.auth()})},[g("div",HA,[jA,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=r=>i.username=r),class:"form-control",id:"username",name:"username",autocomplete:"on",placeholder:"Username",required:""},null,512),[[vt,i.username]])]),g("div",WA,[zA,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=r=>i.password=r),class:"form-control",id:"password",name:"password",autocomplete:"on",placeholder:"Password",required:""},null,512),[[vt,i.password]])]),s.totpEnabled?(X(),ot("div",UA,[KA,bt(g("input",{class:"form-control totp",required:"",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code",placeholder:"OTP from your authenticator","onUpdate:modelValue":t[2]||(t[2]=r=>this.totp=r)},null,512),[[vt,this.totp]])])):Kt("",!0),g("button",YA,[this.loading?(X(),ot("span",XA,[gt(" Signing In... "),QA])):(X(),ot("span",qA,[gt(" Sign In"),GA]))],512)],32)])])],8,LA)}const ZA=Rt(IA,[["render",JA]]),tC={name:"configurationCard",props:{c:{Name:String,Status:Boolean,PublicKey:String,PrivateKey:String}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{toggle(){Re("/api/toggleWireguardConfiguration/",{configurationName:this.c.Name},e=>{e.status?this.dashboardConfigurationStore.newMessage("Server",`${this.c.Name} is ${e.data?"is on":"is off"}`):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.c.Status=e.data})}}},eC={class:"card conf_card rounded-3 shadow text-decoration-none"},nC={class:"mb-0"},sC={class:"card-title mb-0"},iC=g("h6",{class:"mb-0 ms-auto"},[g("i",{class:"bi bi-chevron-right"})],-1),oC={class:"card-footer d-flex align-items-center"},rC=g("small",{class:"me-2 text-muted"},[g("strong",null,"PUBLIC KEY")],-1),aC={class:"mb-0 d-block d-lg-inline-block"},lC={style:{"line-break":"anywhere"}},cC={class:"form-check form-switch ms-auto"},uC=["for"],dC=["id"];function hC(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",eC,[dt(r,{to:"/configuration/"+n.c.Name+"/peers",class:"card-body d-flex align-items-center gap-3 flex-wrap text-decoration-none"},{default:Ut(()=>[g("h6",nC,[g("span",{class:jt(["dot",{active:n.c.Status}])},null,2)]),g("h6",sC,[g("samp",null,wt(n.c.Name),1)]),iC]),_:1},8,["to"]),g("div",oC,[rC,g("small",aC,[g("samp",lC,wt(n.c.PublicKey),1)]),g("div",cC,[g("label",{class:"form-check-label",for:"switch"+n.c.PrivateKey},wt(n.c.Status?"On":"Off"),9,uC),bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"switch"+n.c.PrivateKey,onChange:t[0]||(t[0]=a=>this.toggle()),"onUpdate:modelValue":t[1]||(t[1]=a=>n.c.Status=a)},null,40,dC),[[lr,n.c.Status]])])])])}const fC=Rt(tC,[["render",hC]]),pC={name:"configurationList",components:{ConfigurationCard:fC},async setup(){const e=mn();return await e.getConfigurations(),{wireguardConfigurationsStore:e}}},gC={class:"mt-4"},mC={class:"container"},_C={class:"d-flex mb-4"},bC=g("h3",{class:"text-body"},"WireGuard Configurations",-1),vC=g("i",{class:"bi bi-plus-circle-fill ms-2"},null,-1),yC={key:0,class:"text-muted"},xC={key:1,class:"d-flex gap-3 flex-column"};function wC(e,t,n,s,i,o){const r=Ot("RouterLink"),a=Ot("ConfigurationCard");return X(),ot("div",gC,[g("div",mC,[g("div",_C,[bC,dt(r,{to:"/new_configuration",class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto rounded-3"},{default:Ut(()=>[gt(" Configuration "),vC]),_:1})]),this.wireguardConfigurationsStore.Configurations.length===0?(X(),ot("p",yC,`You don't have any WireGuard configurations yet. Please check the configuration folder or change it in "Settings". By default the folder is "/etc/wireguard".`)):(X(),ot("div",xC,[(X(!0),ot(Qt,null,us(this.wireguardConfigurationsStore.Configurations,l=>(X(),de(a,{key:l.Name,c:l},null,8,["c"]))),128))]))])])}const EC=Rt(pC,[["render",wC]]),SC={props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Peers[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Peers",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Peers[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},AC={class:"form-group mb-2"},CC=["for"],TC=["id","disabled"],PC={class:"invalid-feedback"},kC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},$C=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),MC=["innerHTML"];function OC(e,t,n,s,i,o){return X(),ot("div",AC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,CC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,TC),[[vt,this.value]]),g("div",PC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",kC,[g("small",null,[$C,g("span",{innerHTML:n.warningText},null,8,MC)])])):Kt("",!0)])}const DC=Rt(SC,[["render",OC]]),IC=e=>{},LC={name:"accountSettingsInputUsername",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Account[this.targetData]},methods:{async useValidation(){this.changed&&(this.updating=!0,await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1}))}}},RC={class:"form-group mb-2"},NC=["for"],FC=["id","disabled"],BC={class:"invalid-feedback"},VC={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},HC=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),jC=["innerHTML"];function WC(e,t,n,s,i,o){return X(),ot("div",RC,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,NC),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>o.useValidation()),disabled:this.updating},null,42,FC),[[vt,this.value]]),g("div",BC,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",VC,[g("small",null,[HC,g("span",{innerHTML:n.warningText},null,8,jC)])])):Kt("",!0)])}const zC=Rt(LC,[["render",WC]]),UC={name:"accountSettingsInputPassword",props:{targetData:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:{currentPassword:"",newPassword:"",repeatNewPassword:""},invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0}},methods:{async useValidation(){Object.values(this.value).find(e=>e.length===0)===void 0?this.value.newPassword===this.value.repeatNewPassword?await Ce("/api/updateDashboardConfigurationItem",{section:"Account",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isValid=!1,this.value={currentPassword:"",newPassword:"",repeatNewPassword:""}},5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)}):(this.showInvalidFeedback=!0,this.invalidFeedback="New passwords does not match"):(this.showInvalidFeedback=!0,this.invalidFeedback="Please fill in all required fields.")}}},KC={class:"row"},YC={class:"col-sm"},qC={class:"form-group mb-2"},GC=["for"],XC=g("strong",null,[g("small",null,"Current Password")],-1),QC=[XC],JC=["id"],ZC={key:0,class:"invalid-feedback d-block"},tT={class:"col-sm"},eT={class:"form-group mb-2"},nT=["for"],sT=g("strong",null,[g("small",null,"New Password")],-1),iT=[sT],oT=["id"],rT={class:"col-sm"},aT={class:"form-group mb-2"},lT=["for"],cT=g("strong",null,[g("small",null,"Repeat New Password")],-1),uT=[cT],dT=["id"],hT=g("i",{class:"bi bi-key-fill me-2"},null,-1);function fT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",KC,[g("div",YC,[g("div",qC,[g("label",{for:"currentPassword_"+this.uuid,class:"text-muted mb-1"},QC,8,GC),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.value.currentPassword=r),id:"currentPassword_"+this.uuid},null,10,JC),[[vt,this.value.currentPassword]]),i.showInvalidFeedback?(X(),ot("div",ZC,wt(this.invalidFeedback),1)):Kt("",!0)])]),g("div",tT,[g("div",eT,[g("label",{for:"newPassword_"+this.uuid,class:"text-muted mb-1"},iT,8,nT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[1]||(t[1]=r=>this.value.newPassword=r),id:"newPassword_"+this.uuid},null,10,oT),[[vt,this.value.newPassword]])])]),g("div",rT,[g("div",aT,[g("label",{for:"repeatNewPassword_"+this.uuid,class:"text-muted mb-1"},uT,8,lT),bt(g("input",{type:"password",class:jt(["form-control mb-2",{"is-invalid":i.showInvalidFeedback,"is-valid":i.isValid}]),"onUpdate:modelValue":t[2]||(t[2]=r=>this.value.repeatNewPassword=r),id:"repeatNewPassword_"+this.uuid},null,10,dT),[[vt,this.value.repeatNewPassword]])])])]),g("button",{class:"btn btn-success btn-sm fw-bold rounded-3",onClick:t[3]||(t[3]=r=>this.useValidation())},[hT,gt("Update Password ")])])}const pT=Rt(UC,[["render",fT]]),gT={name:"dashboardSettingsInputWireguardConfigurationPath",props:{targetData:String,title:String,warning:!1,warningText:""},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{value:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.value=this.store.Configuration.Server[this.targetData]},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message),this.changed=!1,this.updating=!1})}}},mT={class:"form-group mb-2"},_T=["for"],bT=["id","disabled"],vT={class:"invalid-feedback"},yT={key:0,class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block mt-1"},xT=g("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1),wT=["innerHTML"];function ET(e,t,n,s,i,o){return X(),ot("div",mT,[g("label",{for:this.uuid,class:"text-muted mb-1"},[g("strong",null,[g("small",null,wt(this.title),1)])],8,_T),bt(g("input",{type:"text",class:jt(["form-control",{"is-invalid":this.showInvalidFeedback,"is-valid":this.isValid}]),id:this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.value=r),onKeydown:t[1]||(t[1]=r=>this.changed=!0),onBlur:t[2]||(t[2]=r=>this.useValidation()),disabled:this.updating},null,42,bT),[[vt,this.value]]),g("div",vT,wt(this.invalidFeedback),1),n.warning?(X(),ot("div",yT,[g("small",null,[xT,g("span",{innerHTML:n.warningText},null,8,wT)])])):Kt("",!0)])}const ST=Rt(gT,[["render",ET]]),AT={name:"dashboardTheme",setup(){return{dashboardConfigurationStore:Xt()}},methods:{async switchTheme(e){await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_theme",value:e},t=>{t.status&&(this.dashboardConfigurationStore.Configuration.Server.dashboard_theme=e)})}}},CT={class:"card mb-4 shadow rounded-3"},TT=g("p",{class:"card-header"},"Dashboard Theme",-1),PT={class:"card-body d-flex gap-2"},kT=g("i",{class:"bi bi-sun-fill"},null,-1),$T=g("i",{class:"bi bi-moon-fill"},null,-1);function MT(e,t,n,s,i,o){return X(),ot("div",CT,[TT,g("div",PT,[g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="light"}]),onClick:t[0]||(t[0]=r=>this.switchTheme("light"))},[kT,gt(" Light ")],2),g("button",{class:jt(["btn btn-outline-primary flex-grow-1",{active:this.dashboardConfigurationStore.Configuration.Server.dashboard_theme==="dark"}]),onClick:t[1]||(t[1]=r=>this.switchTheme("dark"))},[$T,gt(" Dark ")],2)])])}const OT=Rt(AT,[["render",MT]]),DT={name:"dashboardSettingsInputIPAddressAndPort",props:{},setup(){const e=Xt(),t=`input_${to()}`;return{store:e,uuid:t}},data(){return{app_ip:"",app_port:"",invalidFeedback:"",showInvalidFeedback:!1,isValid:!1,timeout:void 0,changed:!1,updating:!1}},mounted(){this.app_ip=this.store.Configuration.Server.app_ip,this.app_port=this.store.Configuration.Server.app_port},methods:{async useValidation(){this.changed&&await Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:this.targetData,value:this.value},e=>{e.status?(this.isValid=!0,this.showInvalidFeedback=!1,this.store.Configuration.Account[this.targetData]=this.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.isValid=!1,5e3)):(this.isValid=!1,this.showInvalidFeedback=!0,this.invalidFeedback=e.message)})}}},IT={class:"invalid-feedback d-block mt-0"},LT={class:"row"},RT={class:"form-group mb-2 col-sm"},NT=["for"],FT=g("strong",null,[g("small",null,"Dashboard IP Address")],-1),BT=[FT],VT=["id"],HT=g("div",{class:"px-2 py-1 text-warning-emphasis bg-warning-subtle border border-warning-subtle rounded-2 d-inline-block"},[g("small",null,[g("i",{class:"bi bi-exclamation-triangle-fill me-2"}),g("code",null,"0.0.0.0"),gt(" means it can be access by anyone with your server IP Address.")])],-1),jT={class:"form-group col-sm"},WT=["for"],zT=g("strong",null,[g("small",null,"Dashboard Port")],-1),UT=[zT],KT=["id"],YT=g("button",{class:"btn btn-success btn-sm fw-bold rounded-3"},[g("i",{class:"bi bi-floppy-fill me-2"}),gt("Update Dashboard Settings & Restart ")],-1);function qT(e,t,n,s,i,o){return X(),ot("div",null,[g("div",IT,wt(this.invalidFeedback),1),g("div",LT,[g("div",RT,[g("label",{for:"app_ip_"+this.uuid,class:"text-muted mb-1"},BT,8,NT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_ip_"+this.uuid,"onUpdate:modelValue":t[0]||(t[0]=r=>this.app_ip=r)},null,8,VT),[[vt,this.app_ip]]),HT]),g("div",jT,[g("label",{for:"app_port_"+this.uuid,class:"text-muted mb-1"},UT,8,WT),bt(g("input",{type:"text",class:"form-control mb-2",id:"app_port_"+this.uuid,"onUpdate:modelValue":t[1]||(t[1]=r=>this.app_port=r)},null,8,KT),[[vt,this.app_port]])])]),YT])}const GT=Rt(DT,[["render",qT]]),XT={name:"settings",methods:{ipV46RegexCheck:IC},components:{DashboardSettingsInputIPAddressAndPort:GT,DashboardTheme:OT,DashboardSettingsInputWireguardConfigurationPath:ST,AccountSettingsInputPassword:pT,AccountSettingsInputUsername:zC,PeersDefaultSettingsInput:DC},setup(){return{dashboardConfigurationStore:Xt()}},watch:{}},QT={class:"mt-4"},JT={class:"container"},ZT=g("h3",{class:"mb-3 text-body"},"Settings",-1),tP={class:"card mb-4 shadow rounded-3"},eP=g("p",{class:"card-header"},"Peers Default Settings",-1),nP={class:"card-body"},sP={class:"card mb-4 shadow rounded-3"},iP=g("p",{class:"card-header"},"WireGuard Configurations Settings",-1),oP={class:"card-body"},rP={class:"card mb-4 shadow rounded-3"},aP=g("p",{class:"card-header"},"Account Settings",-1),lP={class:"card-body"},cP=g("hr",null,null,-1);function uP(e,t,n,s,i,o){const r=Ot("DashboardTheme"),a=Ot("PeersDefaultSettingsInput"),l=Ot("DashboardSettingsInputWireguardConfigurationPath"),c=Ot("AccountSettingsInputUsername"),u=Ot("AccountSettingsInputPassword");return X(),ot("div",QT,[g("div",JT,[ZT,dt(r),g("div",tP,[eP,g("div",nP,[dt(a,{targetData:"peer_global_dns",title:"DNS"}),dt(a,{targetData:"peer_endpoint_allowed_ip",title:"Peer Endpoint Allowed IPs"}),dt(a,{targetData:"peer_mtu",title:"MTU (Max Transmission Unit)"}),dt(a,{targetData:"peer_keep_alive",title:"Persistent Keepalive"}),dt(a,{targetData:"remote_endpoint",title:"Peer Remote Endpoint",warning:!0,warningText:"This will be change globally, and will be apply to all peer's QR code and configuration file."})])]),g("div",sP,[iP,g("div",oP,[dt(l,{targetData:"wg_conf_path",title:"Configurations Directory",warning:!0,"warning-text":"Remember to remove / at the end of your path. e.g /etc/wireguard"})])]),g("div",rP,[aP,g("div",lP,[dt(c,{targetData:"username",title:"Username"}),cP,dt(u,{targetData:"password"})])])])])}const dP=Rt(XT,[["render",uP]]);var eo={},hP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Xm={},Ne={};let Vu;const fP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ne.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ne.getSymbolTotalCodewords=function(t){return fP[t]};Ne.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ne.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Vu=t};Ne.isKanjiModeEnabled=function(){return typeof Vu<"u"};Ne.toSJIS=function(t){return Vu(t)};var rl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,i){if(e.isValid(s))return s;try{return t(s)}catch{return i}}})(rl);function Qm(){this.buffer=[],this.length=0}Qm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var pP=Qm;function cr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}cr.prototype.set=function(e,t,n,s){const i=e*this.size+t;this.data[i]=n,s&&(this.reservedBit[i]=!0)};cr.prototype.get=function(e,t){return this.data[e*this.size+t]};cr.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};cr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var gP=cr,Jm={};(function(e){const t=Ne.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const i=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let l=1;l=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let r=0,a=0,l=0,c=null,u=null;for(let d=0;d=5&&(r+=t.N1+(a-5)),c=p,a=1),p=i.get(f,d),p===u?l++:(l>=5&&(r+=t.N1+(l-5)),u=p,l=1)}a>=5&&(r+=t.N1+(a-5)),l>=5&&(r+=t.N1+(l-5))}return r},e.getPenaltyN2=function(i){const o=i.size;let r=0;for(let a=0;a=10&&(a===1488||a===93)&&r++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&r++}return r*t.N3},e.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let l=0;l=0;){const r=o[0];for(let l=0;l0){const o=new Uint8Array(this.degree);return o.set(s,i),o}return s};var _P=Hu,s_={},ms={},ju={};ju.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _n={};const i_="[0-9]+",bP="[A-Z $%*+\\-./:]+";let Go="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Go=Go.replace(/u/g,"\\u");const vP="(?:(?![A-Z0-9 $%*+\\-./:]|"+Go+`)(?:.|[\r +]))+`;_n.KANJI=new RegExp(Go,"g");_n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_n.BYTE=new RegExp(vP,"g");_n.NUMERIC=new RegExp(i_,"g");_n.ALPHANUMERIC=new RegExp(bP,"g");const yP=new RegExp("^"+Go+"$"),xP=new RegExp("^"+i_+"$"),wP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_n.testKanji=function(t){return yP.test(t)};_n.testNumeric=function(t){return xP.test(t)};_n.testAlphanumeric=function(t){return wP.test(t)};(function(e){const t=ju,n=_n;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(ms);(function(e){const t=Ne,n=al,s=rl,i=ms,o=ju,r=7973,a=t.getBCHDigit(r);function l(f,p,m){for(let _=1;_<=40;_++)if(p<=e.getCapacity(_,m,f))return _}function c(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let m=0;return f.forEach(function(_){const v=c(_.mode,p);m+=v+_.getBitsLength()}),m}function d(f,p){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,p,i.MIXED))return m}e.from=function(p,m){return o.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,_){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=i.BYTE);const v=t.getSymbolTotalCodewords(p),x=n.getTotalCodewordsCount(p,m),S=(v-x)*8;if(_===i.MIXED)return S;const P=S-c(_,p);switch(_){case i.NUMERIC:return Math.floor(P/10*3);case i.ALPHANUMERIC:return Math.floor(P/11*2);case i.KANJI:return Math.floor(P/13);case i.BYTE:default:return Math.floor(P/8)}},e.getBestVersionForData=function(p,m){let _;const v=s.from(m,s.M);if(Array.isArray(p)){if(p.length>1)return d(p,v);if(p.length===0)return 1;_=p[0]}else _=p;return l(_.mode,_.getLength(),v)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-a>=0;)m^=r<=0;)i^=r_<0&&(s=this.data.substr(n),i=parseInt(s,10),t.put(i,o*3+1))};var AP=Wi;const CP=ms,Hl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function zi(e){this.mode=CP.ALPHANUMERIC,this.data=e}zi.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};zi.prototype.getLength=function(){return this.data.length};zi.prototype.getBitsLength=function(){return zi.getBitsLength(this.data.length)};zi.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=Hl.indexOf(this.data[n])*45;s+=Hl.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(Hl.indexOf(this.data[n]),6)};var TP=zi,PP=function(t){for(var n=[],s=t.length,i=0;i=55296&&o<=56319&&s>i+1){var r=t.charCodeAt(i+1);r>=56320&&r<=57343&&(o=(o-55296)*1024+r-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const kP=PP,$P=ms;function Ui(e){this.mode=$P.BYTE,typeof e=="string"&&(e=kP(e)),this.data=new Uint8Array(e)}Ui.getBitsLength=function(t){return t*8};Ui.prototype.getLength=function(){return this.data.length};Ui.prototype.getBitsLength=function(){return Ui.getBitsLength(this.data.length)};Ui.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var IP=Ki,l_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,s,i){var o={},r={};r[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var l,c,u,d,f,p,m,_,v;!a.empty();){l=a.pop(),c=l.value,d=l.cost,f=n[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],m=d+p,_=r[u],v=typeof r[u]>"u",(v||_>m)&&(r[u]=m,a.push(u,m),o[u]=c))}if(typeof i<"u"&&typeof r[i]>"u"){var x=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(x)}return o},extract_shortest_path_from_predecessor_list:function(n,s){for(var i=[],o=s;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,s,i){var o=t.single_source_shortest_paths(n,s,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var s=t.PriorityQueue,i={},o;n=n||{};for(o in s)s.hasOwnProperty(o)&&(i[o]=s[o]);return i.queue=[],i.sorter=n.sorter||s.default_sorter,i},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var i={value:n,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(l_);var LP=l_.exports;(function(e){const t=ms,n=AP,s=TP,i=MP,o=IP,r=_n,a=Ne,l=LP;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,P){const A=[];let y;for(;(y=x.exec(P))!==null;)A.push({data:y[0],index:y.index,mode:S,length:y[0].length});return A}function d(x){const S=u(r.NUMERIC,t.NUMERIC,x),P=u(r.ALPHANUMERIC,t.ALPHANUMERIC,x);let A,y;return a.isKanjiModeEnabled()?(A=u(r.BYTE,t.BYTE,x),y=u(r.KANJI,t.KANJI,x)):(A=u(r.BYTE_KANJI,t.BYTE,x),y=[]),S.concat(P,A,y).sort(function(C,w){return C.index-w.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(x,S){switch(S){case t.NUMERIC:return n.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return o.getBitsLength(x);case t.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,P){const A=S.length-1>=0?S[S.length-1]:null;return A&&A.mode===P.mode?(S[S.length-1].data+=P.data,S):(S.push(P),S)},[])}function m(x){const S=[];for(let P=0;P=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,r+l,!0,!0):e.set(o+a,r+l,!1,!0))}}function zP(e){const t=e.size;for(let n=8;n>a&1)===1,e.set(i,o,r,!0),e.set(o,i,r,!0)}function zl(e,t,n){const s=e.size,i=HP.getEncodedBits(t,n);let o,r;for(o=0;o<15;o++)r=(i>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function YP(e,t){const n=e.size;let s=-1,i=n-1,o=7,r=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let c=!1;r>>o&1)===1),e.set(i,a-l,c),o--,o===-1&&(r++,o=7)}if(i+=s,i<0||n<=i){i-=s,s=-s;break}}}function qP(e,t,n){const s=new RP;n.forEach(function(l){s.put(l.mode.bit,4),s.put(l.getLength(),jP.getCharCountIndicator(l.mode,e)),l.write(s)});const i=cl.getSymbolTotalCodewords(e),o=$c.getTotalCodewordsCount(e,t),r=(i-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(r-s.getLengthInBits())/8;for(let l=0;l=7&&UP(l,t),KP(l,r),isNaN(s)&&(s=kc.getBestMask(l,zl.bind(null,l,n))),kc.applyMask(s,l),zl(l,n,s),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:s,segments:i}}Xm.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let s=jl.M,i,o;return typeof n<"u"&&(s=jl.from(n.errorCorrectionLevel,jl.M),i=wa.from(n.version),o=kc.from(n.maskPattern),n.toSJISFunc&&ll.setToSJISFunction(n.toSJISFunc)),GP(t,i,s,o)};var c_={},Wu={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const i=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},e.getImageWidth=function(s,i){const o=e.getScale(s,i);return Math.floor((s+i.margin*2)*o)},e.qrToImageData=function(s,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),u=o.margin*l,d=[o.color.light,o.color.dark];for(let f=0;f=u&&p>=u&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=s()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,l),n(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(c_);var u_={};const XP=Wu;function mf(e,t){const n=e.a/255,s=t+'="'+e.hex+'"';return n<1?s+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':s}function Ul(e,t,n){let s=e+t;return typeof n<"u"&&(s+=" "+n),s}function QP(e,t,n){let s="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(s+=o?Ul("M",l+n,.5+c+n):Ul("m",i,0),i=0,o=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` -`;return typeof s=="function"&&s(null,f),f};const JP=dP,Mc=Xm,d_=c_,ZP=u_;function zu(e,t,n,s,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!JP())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=n,n=t,t=s=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=s,s=void 0):(i=s,s=n,n=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(n=t,t=s=void 0):r===2&&!t.getContext&&(s=n,n=t,t=void 0),new Promise(function(l,c){try{const u=Mc.create(n,s);l(e(u,t,s))}catch(u){c(u)}})}try{const l=Mc.create(n,s);i(null,e(l,t,s))}catch(l){i(l)}}eo.create=Mc.create;eo.toCanvas=zu.bind(null,d_.render);eo.toDataURL=zu.bind(null,d_.renderToDataURL);eo.toString=zu.bind(null,function(e,t,n){return ZP.render(e,n)});const tk={name:"totp",async setup(){let e="";return await Re("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&eo.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?Ce("/api/Welcome_VerifyTotpLink",{totp:e},n=>{n.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},ek={class:"mb-3"},nk=g("p",{class:"mb-2"},[g("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),sk=g("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),ik={class:"p-3 bg-body-secondary rounded-3 border mb-3"},ok=g("p",{class:"text-muted mb-0"},[g("small",null,"Or you can click the link below:")],-1),rk=["href"],ak={style:{"line-break":"anywhere"}},lk=g("label",{for:"totp",class:"mb-2"},[g("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),ck={class:"form-group"},uk=["disabled"],dk={class:"invalid-feedback"},hk=g("div",{class:"valid-feedback"}," TOTP verified! ",-1);function fk(e,t,n,s,i,o){return X(),ot("div",ek,[nk,sk,g("div",ik,[ok,g("a",{href:this.l},[g("code",ak,wt(this.l),1)],8,rk)]),lk,g("div",ck,[bt(g("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,uk),[[vt,this.totp]]),g("div",dk,wt(this.totpInvalidMessage),1),hk])])}const pk=Lt(tk,[["render",fk]]),gk={name:"setup",components:{Totp:pk},setup(){return{store:Xt()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,Ce("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},mk=["data-bs-theme"],_k={class:"mx-auto text-body",style:{width:"500px"}},bk=g("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),vk=g("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),yk=g("h3",null,"Create an account",-1),xk={key:0,class:"alert alert-danger"},wk={class:"d-flex flex-column gap-3"},Ek={id:"createAccount"},Sk={class:"form-group text-body"},Ak=g("label",{for:"username",class:"mb-1 text-muted"},[g("small",null,"Pick an username you like")],-1),Ck={class:"form-group text-body"},Tk=g("label",{for:"password",class:"mb-1 text-muted"},[g("small",null,"Create a password (at least 8 characters)")],-1),Pk={class:"form-group text-body"},kk=g("label",{for:"confirmPassword",class:"mb-1 text-muted"},[g("small",null,"Confirm password")],-1),$k=g("hr",null,null,-1),Mk={class:"form-check form-switch"},Ok=g("label",{class:"form-check-label",for:"enable_totp"},[gt("Enable 2 Factor Authentication? "),g("strong",null,"Strongly recommended")],-1),Dk=["disabled"],Ik={key:0,class:"d-flex align-items-center w-100"},Lk=g("i",{class:"bi bi-chevron-right ms-auto"},null,-1),Rk={key:1,class:"d-flex align-items-center w-100"},Nk={key:2,class:"d-flex align-items-center w-100"},Fk=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function Bk(e,t,n,s,i,o){const r=Rt("Totp");return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[g("div",_k,[bk,vk,g("div",null,[yk,this.errorMessage?(X(),ot("div",xk,wt(this.errorMessage),1)):Ut("",!0),g("div",wk,[g("div",Ek,[g("div",Sk,[Ak,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[vt,this.setup.username]])]),g("div",Ck,[Tk,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[vt,this.setup.newPassword]])]),g("div",Pk,[kk,bt(g("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[vt,this.setup.repeatNewPassword]])])]),$k,g("div",Mk,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[lr,this.setup.enable_totp]]),Ok]),(X(),ue(Cu,null,{default:Gt(()=>[dt(Ln,{name:"fade"},{default:Gt(()=>[this.setup.enable_totp?(X(),ue(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):Ut("",!0)]),_:1})]),_:1})),g("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(X(),ot("span",Ik,[gt(" Finish"),Lk])):this.done?(X(),ot("span",Rk," Welcome to WGDashboard!")):(X(),ot("span",Nk,[gt(" Saving..."),Fk]))],8,Dk)])])])],8,mk)}const Vk=Lt(gk,[["render",Bk]]);function Uu(e){return e.includes(":")?6:e.includes(".")?4:0}function Hk(e){const t=Uu(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let n=0n,s=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())n+=o*2n**s,s+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())n+=a*2n**s,s+=16n}return i.number=n,i.version=t,i}const _f={4:32,6:128},jk=e=>e.includes("/")?Uu(e):0;function Wk(e){const t=jk(e),n=Object.create(null);if(n.single=!1,t)n.cidr=e,n.version=t;else{const d=Uu(e);if(d)n.cidr=`${e}/${_f[d]}`,n.version=d,n.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[s,i]=n.cidr.split("/");n.prefix=i;const{number:o,version:r}=Hk(s),a=_f[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),u=l.substring(0,a-c);return n.start=BigInt(`0b${u}${"0".repeat(c)}`),n.end=BigInt(`0b${u}${"1".repeat(c)}`),n}/*! SPDX-License-Identifier: GPL-2.0 +`);const r=qP(t,n,i),a=cl.getSymbolSize(t),l=new NP(a);return WP(l,t),zP(l),UP(l,t),zl(l,n,0),t>=7&&KP(l,t),YP(l,r),isNaN(s)&&(s=kc.getBestMask(l,zl.bind(null,l,n))),kc.applyMask(s,l),zl(l,n,s),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:s,segments:i}}Xm.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let s=jl.M,i,o;return typeof n<"u"&&(s=jl.from(n.errorCorrectionLevel,jl.M),i=Ea.from(n.version),o=kc.from(n.maskPattern),n.toSJISFunc&&cl.setToSJISFunction(n.toSJISFunc)),XP(t,i,s,o)};var c_={},Wu={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const i=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:i,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},e.getImageWidth=function(s,i){const o=e.getScale(s,i);return Math.floor((s+i.margin*2)*o)},e.qrToImageData=function(s,i,o){const r=i.modules.size,a=i.modules.data,l=e.getScale(r,o),c=Math.floor((r+o.margin*2)*l),u=o.margin*l,d=[o.color.light,o.color.dark];for(let f=0;f=u&&p>=u&&f"u"&&(!r||!r.getContext)&&(l=r,r=void 0),r||(c=s()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,l),n(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(o,r,a){let l=a;typeof l>"u"&&(!r||!r.getContext)&&(l=r,r=void 0),l||(l={});const c=e.render(o,r,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(c_);var u_={};const QP=Wu;function mf(e,t){const n=e.a/255,s=t+'="'+e.hex+'"';return n<1?s+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':s}function Ul(e,t,n){let s=e+t;return typeof n<"u"&&(s+=" "+n),s}function JP(e,t,n){let s="",i=0,o=!1,r=0;for(let a=0;a0&&l>0&&e[a-1]||(s+=o?Ul("M",l+n,.5+c+n):Ul("m",i,0),i=0,o=!1),l+1':"",c="',u='viewBox="0 0 '+a+" "+a+'"',f=''+l+c+` +`;return typeof s=="function"&&s(null,f),f};const ZP=hP,Mc=Xm,d_=c_,tk=u_;function zu(e,t,n,s,i){const o=[].slice.call(arguments,1),r=o.length,a=typeof o[r-1]=="function";if(!a&&!ZP())throw new Error("Callback required as last argument");if(a){if(r<2)throw new Error("Too few arguments provided");r===2?(i=n,n=t,t=s=void 0):r===3&&(t.getContext&&typeof i>"u"?(i=s,s=void 0):(i=s,s=n,n=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(n=t,t=s=void 0):r===2&&!t.getContext&&(s=n,n=t,t=void 0),new Promise(function(l,c){try{const u=Mc.create(n,s);l(e(u,t,s))}catch(u){c(u)}})}try{const l=Mc.create(n,s);i(null,e(l,t,s))}catch(l){i(l)}}eo.create=Mc.create;eo.toCanvas=zu.bind(null,d_.render);eo.toDataURL=zu.bind(null,d_.renderToDataURL);eo.toString=zu.bind(null,function(e,t,n){return tk.render(e,n)});const ek={name:"totp",async setup(){let e="";return await Re("/api/Welcome_GetTotpLink",{},t=>{t.status&&(e=t.data)}),{l:e}},mounted(){this.l&&eo.toCanvas(document.getElementById("qrcode"),this.l,function(e){})},data(){return{totp:"",totpInvalidMessage:"",verified:!1}},methods:{validateTotp(){}},watch:{totp(e){const t=document.querySelector("#totp");t.classList.remove("is-invalid","is-valid"),e.length===6&&(console.log(e),/[0-9]{6}/.test(e)?Ce("/api/Welcome_VerifyTotpLink",{totp:e},n=>{n.status?(this.verified=!0,t.classList.add("is-valid"),this.$emit("verified")):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP does not match.")}):(t.classList.add("is-invalid"),this.totpInvalidMessage="TOTP can only contain numbers"))}}},nk={class:"mb-3"},sk=g("p",{class:"mb-2"},[g("small",{class:"text-muted"},"1. Please scan the following QR Code to generate TOTP")],-1),ik=g("canvas",{id:"qrcode",class:"rounded-3 mb-2"},null,-1),ok={class:"p-3 bg-body-secondary rounded-3 border mb-3"},rk=g("p",{class:"text-muted mb-0"},[g("small",null,"Or you can click the link below:")],-1),ak=["href"],lk={style:{"line-break":"anywhere"}},ck=g("label",{for:"totp",class:"mb-2"},[g("small",{class:"text-muted"},"2. Enter the TOTP generated by your authenticator to verify")],-1),uk={class:"form-group"},dk=["disabled"],hk={class:"invalid-feedback"},fk=g("div",{class:"valid-feedback"}," TOTP verified! ",-1);function pk(e,t,n,s,i,o){return X(),ot("div",nk,[sk,ik,g("div",ok,[rk,g("a",{href:this.l},[g("code",lk,wt(this.l),1)],8,ak)]),ck,g("div",uk,[bt(g("input",{class:"form-control text-center totp",id:"totp",maxlength:"6",type:"text",inputmode:"numeric",autocomplete:"one-time-code","onUpdate:modelValue":t[0]||(t[0]=r=>this.totp=r),disabled:this.verified},null,8,dk),[[vt,this.totp]]),g("div",hk,wt(this.totpInvalidMessage),1),fk])])}const gk=Rt(ek,[["render",pk]]),mk={name:"setup",components:{Totp:gk},setup(){return{store:Xt()}},data(){return{setup:{username:"",newPassword:"",repeatNewPassword:"",enable_totp:!1,verified_totp:!1},loading:!1,errorMessage:"",done:!1}},computed:{goodToSubmit(){return this.setup.username&&this.setup.newPassword.length>=8&&this.setup.repeatNewPassword.length>=8&&this.setup.newPassword===this.setup.repeatNewPassword&&(this.setup.enable_totp&&this.setup.verified_totp||!this.setup.enable_totp)}},methods:{submit(){this.loading=!0,Ce("/api/Welcome_Finish",this.setup,e=>{e.status?(this.done=!0,setTimeout(()=>{this.$router.push("/")},500)):(document.querySelectorAll("#createAccount input").forEach(t=>t.classList.add("is-invalid")),this.errorMessage=e.message,document.querySelector(".login-container-fluid").scrollTo({top:0,left:0,behavior:"smooth"})),this.loading=!1})}}},_k=["data-bs-theme"],bk={class:"mx-auto text-body",style:{width:"500px"}},vk=g("span",{class:"dashboardLogo display-4"},"Nice to meet you!",-1),yk=g("p",{class:"mb-5"},"Please fill in the following fields to finish setup 😊",-1),xk=g("h3",null,"Create an account",-1),wk={key:0,class:"alert alert-danger"},Ek={class:"d-flex flex-column gap-3"},Sk={id:"createAccount"},Ak={class:"form-group text-body"},Ck=g("label",{for:"username",class:"mb-1 text-muted"},[g("small",null,"Pick an username you like")],-1),Tk={class:"form-group text-body"},Pk=g("label",{for:"password",class:"mb-1 text-muted"},[g("small",null,"Create a password (at least 8 characters)")],-1),kk={class:"form-group text-body"},$k=g("label",{for:"confirmPassword",class:"mb-1 text-muted"},[g("small",null,"Confirm password")],-1),Mk=g("hr",null,null,-1),Ok={class:"form-check form-switch"},Dk=g("label",{class:"form-check-label",for:"enable_totp"},[gt("Enable 2 Factor Authentication? "),g("strong",null,"Strongly recommended")],-1),Ik=["disabled"],Lk={key:0,class:"d-flex align-items-center w-100"},Rk=g("i",{class:"bi bi-chevron-right ms-auto"},null,-1),Nk={key:1,class:"d-flex align-items-center w-100"},Fk={key:2,class:"d-flex align-items-center w-100"},Bk=g("span",{class:"spinner-border ms-auto spinner-border-sm",role:"status"},[g("span",{class:"visually-hidden"},"Loading...")],-1);function Vk(e,t,n,s,i,o){const r=Ot("Totp");return X(),ot("div",{class:"container-fluid login-container-fluid d-flex main pt-5 overflow-scroll","data-bs-theme":this.store.Configuration.Server.dashboard_theme},[g("div",bk,[vk,yk,g("div",null,[xk,this.errorMessage?(X(),ot("div",wk,wt(this.errorMessage),1)):Kt("",!0),g("div",Ek,[g("div",Sk,[g("div",Ak,[Ck,bt(g("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>this.setup.username=a),class:"form-control",id:"username",name:"username",placeholder:"Maybe something like 'wiredragon'?",required:""},null,512),[[vt,this.setup.username]])]),g("div",Tk,[Pk,bt(g("input",{type:"password","onUpdate:modelValue":t[1]||(t[1]=a=>this.setup.newPassword=a),class:"form-control",id:"password",name:"password",placeholder:"Make sure is strong enough",required:""},null,512),[[vt,this.setup.newPassword]])]),g("div",kk,[$k,bt(g("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=a=>this.setup.repeatNewPassword=a),class:"form-control",id:"confirmPassword",name:"confirmPassword",placeholder:"and you can remember it :)",required:""},null,512),[[vt,this.setup.repeatNewPassword]])])]),Mk,g("div",Ok,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"enable_totp","onUpdate:modelValue":t[3]||(t[3]=a=>this.setup.enable_totp=a)},null,512),[[lr,this.setup.enable_totp]]),Dk]),(X(),de(Cu,null,{default:Ut(()=>[dt(Ln,{name:"fade"},{default:Ut(()=>[this.setup.enable_totp?(X(),de(r,{key:0,onVerified:t[4]||(t[4]=a=>this.setup.verified_totp=!0)})):Kt("",!0)]),_:1})]),_:1})),g("button",{class:"btn btn-dark btn-lg mb-5 d-flex btn-brand shadow align-items-center",ref:"signInBtn",disabled:!this.goodToSubmit||this.loading||this.done,onClick:t[5]||(t[5]=a=>this.submit())},[!this.loading&&!this.done?(X(),ot("span",Lk,[gt(" Finish"),Rk])):this.done?(X(),ot("span",Nk," Welcome to WGDashboard!")):(X(),ot("span",Fk,[gt(" Saving..."),Bk]))],8,Ik)])])])],8,_k)}const Hk=Rt(mk,[["render",Vk]]);function Uu(e){return e.includes(":")?6:e.includes(".")?4:0}function jk(e){const t=Uu(e);if(!t)throw new Error(`Invalid IP address: ${e}`);let n=0n,s=0n;const i=Object.create(null);if(t===4)for(const o of e.split(".").map(BigInt).reverse())n+=o*2n**s,s+=8n;else{if(e.includes(".")&&(i.ipv4mapped=!0,e=e.split(":").map(a=>{if(a.includes(".")){const[l,c,u,d]=a.split(".").map(f=>Number(f).toString(16).padStart(2,"0"));return`${l}${c}:${u}${d}`}else return a}).join(":")),e.includes("%")){let a;[,e,a]=/(.+)%(.+)/.exec(e),i.scopeid=a}const o=e.split(":"),r=o.indexOf("");if(r!==-1)for(;o.length<8;)o.splice(r,0,"");for(const a of o.map(l=>BigInt(parseInt(l||0,16))).reverse())n+=a*2n**s,s+=16n}return i.number=n,i.version=t,i}const _f={4:32,6:128},Wk=e=>e.includes("/")?Uu(e):0;function zk(e){const t=Wk(e),n=Object.create(null);if(n.single=!1,t)n.cidr=e,n.version=t;else{const d=Uu(e);if(d)n.cidr=`${e}/${_f[d]}`,n.version=d,n.single=!0;else throw new Error(`Network is not a CIDR or IP: ${e}`)}const[s,i]=n.cidr.split("/");n.prefix=i;const{number:o,version:r}=jk(s),a=_f[r],l=o.toString(2).padStart(a,"0"),c=Number(a-i),u=l.substring(0,a-c);return n.start=BigInt(`0b${u}${"0".repeat(c)}`),n.end=BigInt(`0b${u}${"1".repeat(c)}`),n}/*! SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. - */(function(){function e(y){var E=new Float64Array(16);if(y)for(var C=0;C>16&1),w[D-1]&=65535;w[15]=$[15]-32767-(w[14]>>16&1),C=w[15]>>16&1,w[14]&=65535,s($,w,1-C)}for(var D=0;D<16;++D)y[2*D]=$[D]&255,y[2*D+1]=$[D]>>8}function n(y){for(var E=0;E<16;++E)y[(E+1)%16]+=(E<15?1:38)*Math.floor(y[E]/65536),y[E]&=65535}function s(y,E,C){for(var w,$=~(C-1),D=0;D<16;++D)w=$&(y[D]^E[D]),y[D]^=w,E[D]^=w}function i(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]+C[w]|0}function o(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]-C[w]|0}function r(y,E,C){for(var w=new Float64Array(31),$=0;$<16;++$)for(var D=0;D<16;++D)w[$+D]+=E[$]*C[D];for(var $=0;$<15;++$)w[$]+=38*w[$+16];for(var $=0;$<16;++$)y[$]=w[$];n(y),n(y)}function a(y,E){for(var C=e(),w=0;w<16;++w)C[w]=E[w];for(var w=253;w>=0;--w)r(C,C,C),w!==2&&w!==4&&r(C,C,E);for(var w=0;w<16;++w)y[w]=C[w]}function l(y){y[31]=y[31]&127|64,y[0]&=248}function c(y){for(var E,C=new Uint8Array(32),w=e([1]),$=e([9]),D=e(),I=e([1]),N=e(),Q=e(),Y=e([56129,1]),H=e([9]),R=0;R<32;++R)C[R]=y[R];l(C);for(var R=254;R>=0;--R)E=C[R>>>3]>>>(R&7)&1,s(w,$,E),s(D,I,E),i(N,w,D),o(w,w,D),i(D,$,I),o($,$,I),r(I,N,N),r(Q,w,w),r(w,D,w),r(D,$,N),i(N,w,D),o(w,w,D),r($,w,w),o(D,I,Q),r(w,D,Y),i(w,w,I),r(D,D,w),r(w,I,Q),r(I,$,H),r($,N,N),s(w,$,E),s(D,I,E);return a(D,D),r(w,w,D),t(C,w),C}function u(){var y=new Uint8Array(32);return window.crypto.getRandomValues(y),y}function d(){var y=u();return l(y),y}function f(y,E){for(var C=Uint8Array.from([E[0]>>2&63,(E[0]<<4|E[1]>>4)&63,(E[1]<<2|E[2]>>6)&63,E[2]&63]),w=0;w<4;++w)y[w]=C[w]+65+(25-C[w]>>8&6)-(51-C[w]>>8&75)-(61-C[w]>>8&15)+(62-C[w]>>8&3)}function p(y){var E,C=new Uint8Array(44);for(E=0;E<32/3;++E)f(C.subarray(E*4),y.subarray(E*3));return f(C.subarray(E*4),Uint8Array.from([y[E*3+0],y[E*3+1],0])),C[43]=61,String.fromCharCode.apply(null,C)}function m(y){let E=window.atob(y),C=E.length,w=new Uint8Array(C);for(let D=0;D>>8&255,E>>>16&255,E>>>24&255)}function v(y,E){y.push(E&255,E>>>8&255)}function x(y,E){for(var C=0;C>>1:E>>>1;P.table[C]=E}}for(var $=-1,D=0;D>>8^P.table[($^y[D])&255];return($^-1)>>>0}function A(y){for(var E=[],C=[],w=0,$=0;${e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(n=>this.newConfiguration[n].length===0)===void 0&&t.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let n=Wk(e),s=n.end-n.start;this.numberOfAvailableIPs=s.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(n=>n.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},Uk={class:"mt-4"},Kk={class:"container mb-4"},Yk={class:"mb-4 d-flex align-items-center gap-4"},qk=g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1),Gk=g("h3",{class:"text-body mb-0"},"New Configuration",-1),Xk={class:"card rounded-3 shadow"},Qk=g("div",{class:"card-header"},"Configuration Name",-1),Jk={class:"card-body"},Zk=["disabled"],t$={class:"invalid-feedback"},e$={key:0},n$={key:1},s$=g("ul",{class:"mb-0"},[g("li",null,"Configuration name already exist."),g("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),i$={class:"card rounded-3 shadow"},o$=g("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),r$={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},a$={class:"mb-2"},l$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PRIVATE KEY")],-1),c$={class:"input-group"},u$=["disabled"],d$=g("i",{class:"bi bi-arrow-repeat"},null,-1),h$=[d$],f$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PUBLIC KEY")],-1),p$={class:"card rounded-3 shadow"},g$=g("div",{class:"card-header"},"Listen Port",-1),m$={class:"card-body"},_$=["disabled"],b$={class:"invalid-feedback"},v$={key:0},y$={key:1},x$={class:"card rounded-3 shadow"},w$={class:"card-header d-flex align-items-center"},E$={class:"badge rounded-pill text-bg-success ms-auto"},S$={class:"card-body"},A$=["disabled"],C$={class:"invalid-feedback"},T$={key:0},P$={key:1},k$=g("hr",null,null,-1),$$={class:"accordion",id:"newConfigurationOptionalAccordion"},M$={class:"accordion-item"},O$=g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),D$={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},I$={class:"accordion-body d-flex flex-column gap-3"},L$={class:"card rounded-3"},R$=g("div",{class:"card-header"},"PreUp",-1),N$={class:"card-body"},F$={class:"card rounded-3"},B$=g("div",{class:"card-header"},"PreDown",-1),V$={class:"card-body"},H$={class:"card rounded-3"},j$=g("div",{class:"card-header"},"PostUp",-1),W$={class:"card-body"},z$={class:"card rounded-3"},U$=g("div",{class:"card-header"},"PostDown",-1),K$={class:"card-body"},Y$=["disabled"],q$={key:0,class:"d-flex w-100"},G$=g("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),X$={key:1,class:"d-flex w-100"},Q$=g("i",{class:"bi bi-save-fill ms-2"},null,-1),J$={key:2,class:"d-flex w-100 align-items-center"},Z$=g("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function tM(e,t,n,s,i,o){const r=Rt("RouterLink");return X(),ot("div",Uk,[g("div",Kk,[g("div",Yk,[dt(r,{to:"/"},{default:Gt(()=>[qk]),_:1}),Gk]),g("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[g("div",Xk,[Qk,g("div",Jk,[bt(g("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,Zk),[[vt,this.newConfiguration.ConfigurationName]]),g("div",t$,[this.error?(X(),ot("div",e$,wt(this.errorMessage),1)):(X(),ot("div",n$,[gt(" Configuration name is invalid. Possible reasons: "),s$]))])])]),g("div",i$,[o$,g("div",r$,[g("div",a$,[l$,g("div",c$,[bt(g("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,u$),[[vt,this.newConfiguration.PrivateKey]]),g("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},h$)])]),g("div",null,[f$,bt(g("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[vt,this.newConfiguration.PublicKey]])])])]),g("div",p$,[g$,g("div",m$,[bt(g("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,_$),[[vt,this.newConfiguration.ListenPort]]),g("div",b$,[this.error?(X(),ot("div",v$,wt(this.errorMessage),1)):(X(),ot("div",y$," Invalid port "))])])]),g("div",x$,[g("div",w$,[gt(" IP Address & Range "),g("span",E$,wt(i.numberOfAvailableIPs)+" Available IPs",1)]),g("div",S$,[bt(g("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,A$),[[vt,this.newConfiguration.Address]]),g("div",C$,[this.error?(X(),ot("div",T$,wt(this.errorMessage),1)):(X(),ot("div",P$," IP address & range is invalid. "))])])]),k$,g("div",$$,[g("div",M$,[O$,g("div",D$,[g("div",I$,[g("div",L$,[R$,g("div",N$,[bt(g("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[vt,this.newConfiguration.PreUp]])])]),g("div",F$,[B$,g("div",V$,[bt(g("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[vt,this.newConfiguration.PreDown]])])]),g("div",H$,[j$,g("div",W$,[bt(g("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[vt,this.newConfiguration.PostUp]])])]),g("div",z$,[U$,g("div",K$,[bt(g("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[vt,this.newConfiguration.PostDown]])])])])])])]),g("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(X(),ot("span",q$,[gt(" Success! "),G$])):this.loading?(X(),ot("span",J$,[gt(" Saving... "),Z$])):(X(),ot("span",X$,[gt(" Save Configuration "),Q$]))],8,Y$)],32)])])}const eM=Lt(zk,[["render",tM]]);function nM(e){return hu()?(Cg(e),!0):!1}function h_(e){return typeof e=="function"?e():os(e)}const f_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const sM=Object.prototype.toString,iM=e=>sM.call(e)==="[object Object]",ca=()=>{},oM=rM();function rM(){var e,t;return f_&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function bo(e){var t;const n=h_(e);return(t=n==null?void 0:n.$el)!=null?t:n}const p_=f_?window:void 0;function Kl(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=p_):[t,n,s,i]=e,!t)return ca;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=zs(()=>[bo(t),h_(i)],([u,d])=>{if(r(),!u)return;const f=iM(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return nM(c),c}let bf=!1;function aM(e,t,n={}){const{window:s=p_,ignore:i=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return ca;oM&&!bf&&(bf=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",ca)),s.document.documentElement.addEventListener("click",ca));let a=!0;const l=f=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===f.target||f.composedPath().includes(m));{const m=bo(p);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Kl(s,"click",f=>{const p=bo(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),Kl(s,"pointerdown",f=>{const p=bo(e);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),r&&Kl(s,"blur",f=>{setTimeout(()=>{var p;const m=bo(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const lM={name:"peerSettingsDropdown",setup(){return{dashboardStore:Xt()}},props:{Peer:Object},methods:{downloadPeer(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{if(e.status){const t=new Blob([e.data.file],{type:"text/plain"}),n=URL.createObjectURL(t),s=`${e.data.fileName}.conf`,i=document.createElement("a");i.href=n,i.download=s,i.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",e.message,"danger")})},downloadQRCode(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{e.status?this.$emit("qrcode",e.data.file):this.dashboardStore.newMessage("Server",e.message,"danger")})}}},_s=e=>(ei("data-v-3a072aae"),e=e(),ni(),e),cM={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},uM=_s(()=>g("li",null,[g("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[gt("Download & QR Code is not available due to no "),g("code",null,"private key"),gt(" set for this peer ")])],-1)),dM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),hM=_s(()=>g("i",{class:"me-auto bi bi-pen"},null,-1)),fM=_s(()=>g("i",{class:"me-auto bi bi-download"},null,-1)),pM=_s(()=>g("i",{class:"me-auto bi bi-qr-code"},null,-1)),gM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),mM=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex text-warning",role:"button"},[g("i",{class:"me-auto bi bi-lock"}),gt(" Lock ")])],-1)),_M=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex fw-bold text-danger",role:"button"},[g("i",{class:"me-auto bi bi-trash"}),gt(" Delete ")])],-1));function bM(e,t,n,s,i,o){return X(),ot("ul",cM,[this.Peer.private_key?Ut("",!0):(X(),ot(Qt,{key:0},[uM,dM],64)),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[0]||(t[0]=r=>this.$emit("setting"))},[hM,gt(" Edit ")])]),this.Peer.private_key?(X(),ot(Qt,{key:1},[g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[1]||(t[1]=r=>this.downloadPeer())},[fM,gt(" Download ")])]),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[2]||(t[2]=r=>this.downloadQRCode())},[pM,gt(" QR Code ")])])],64)):Ut("",!0),gM,mM,_M])}const vM=Lt(lM,[["render",bM],["__scopeId","data-v-3a072aae"]]),yM={name:"peer",components:{PeerSettingsDropdown:vM},props:{Peer:Object},data(){return{}},setup(){const e=Li(null),t=Li(!1);return aM(e,n=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},no=e=>(ei("data-v-315acdc2"),e=e(),ni(),e),xM={class:"card shadow-sm rounded-3"},wM={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},EM={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},SM={class:"text-primary"},AM=no(()=>g("i",{class:"bi bi-arrow-down"},null,-1)),CM={class:"text-success"},TM=no(()=>g("i",{class:"bi bi-arrow-up"},null,-1)),PM={key:0,class:"text-secondary"},kM=no(()=>g("i",{class:"bi bi-arrows-angle-contract"},null,-1)),$M={class:"card-body pt-1",style:{"font-size":"0.9rem"}},MM={class:"mb-2"},OM=no(()=>g("small",{class:"text-muted"},"Public Key",-1)),DM={class:"mb-0"},IM={class:"d-flex align-items-end"},LM=no(()=>g("small",{class:"text-muted"},"Allowed IP",-1)),RM={class:"mb-0"},NM=no(()=>g("h5",{class:"mb-0"},[g("i",{class:"bi bi-three-dots"})],-1)),FM=[NM];function BM(e,t,n,s,i,o){const r=Rt("PeerSettingsDropdown");return X(),ot("div",xM,[g("div",wM,[g("div",{class:jt(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),g("div",EM,[g("span",SM,[AM,g("strong",null,wt((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),gt(" GB ")]),g("span",CM,[TM,g("strong",null,wt((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),gt(" GB ")]),n.Peer.latest_handshake!=="No Handshake"?(X(),ot("span",PM,[kM,gt(" "+wt(o.getLatestHandshake)+" ago ",1)])):Ut("",!0)])]),g("div",$M,[g("h5",null,wt(n.Peer.name?n.Peer.name:"Untitled Peer"),1),g("div",MM,[OM,g("p",DM,[g("samp",null,wt(n.Peer.id),1)])]),g("div",IM,[g("div",null,[LM,g("p",RM,[g("samp",null,wt(n.Peer.allowed_ip),1)])]),g("div",{class:jt(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[g("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},FM),dt(Ln,{name:"slide-fade"},{default:Gt(()=>[this.subMenuOpened?(X(),ue(r,{key:0,onQrcode:t[1]||(t[1]=a=>this.$emit("qrcode",a)),onSetting:t[2]||(t[2]=a=>this.$emit("setting")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):Ut("",!0)]),_:1})],2)])])])}const VM=Lt(yM,[["render",BM],["__scopeId","data-v-315acdc2"]]);/*! + */(function(){function e(y){var E=new Float64Array(16);if(y)for(var C=0;C>16&1),w[D-1]&=65535;w[15]=$[15]-32767-(w[14]>>16&1),C=w[15]>>16&1,w[14]&=65535,s($,w,1-C)}for(var D=0;D<16;++D)y[2*D]=$[D]&255,y[2*D+1]=$[D]>>8}function n(y){for(var E=0;E<16;++E)y[(E+1)%16]+=(E<15?1:38)*Math.floor(y[E]/65536),y[E]&=65535}function s(y,E,C){for(var w,$=~(C-1),D=0;D<16;++D)w=$&(y[D]^E[D]),y[D]^=w,E[D]^=w}function i(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]+C[w]|0}function o(y,E,C){for(var w=0;w<16;++w)y[w]=E[w]-C[w]|0}function r(y,E,C){for(var w=new Float64Array(31),$=0;$<16;++$)for(var D=0;D<16;++D)w[$+D]+=E[$]*C[D];for(var $=0;$<15;++$)w[$]+=38*w[$+16];for(var $=0;$<16;++$)y[$]=w[$];n(y),n(y)}function a(y,E){for(var C=e(),w=0;w<16;++w)C[w]=E[w];for(var w=253;w>=0;--w)r(C,C,C),w!==2&&w!==4&&r(C,C,E);for(var w=0;w<16;++w)y[w]=C[w]}function l(y){y[31]=y[31]&127|64,y[0]&=248}function c(y){for(var E,C=new Uint8Array(32),w=e([1]),$=e([9]),D=e(),I=e([1]),N=e(),Q=e(),Y=e([56129,1]),H=e([9]),R=0;R<32;++R)C[R]=y[R];l(C);for(var R=254;R>=0;--R)E=C[R>>>3]>>>(R&7)&1,s(w,$,E),s(D,I,E),i(N,w,D),o(w,w,D),i(D,$,I),o($,$,I),r(I,N,N),r(Q,w,w),r(w,D,w),r(D,$,N),i(N,w,D),o(w,w,D),r($,w,w),o(D,I,Q),r(w,D,Y),i(w,w,I),r(D,D,w),r(w,I,Q),r(I,$,H),r($,N,N),s(w,$,E),s(D,I,E);return a(D,D),r(w,w,D),t(C,w),C}function u(){var y=new Uint8Array(32);return window.crypto.getRandomValues(y),y}function d(){var y=u();return l(y),y}function f(y,E){for(var C=Uint8Array.from([E[0]>>2&63,(E[0]<<4|E[1]>>4)&63,(E[1]<<2|E[2]>>6)&63,E[2]&63]),w=0;w<4;++w)y[w]=C[w]+65+(25-C[w]>>8&6)-(51-C[w]>>8&75)-(61-C[w]>>8&15)+(62-C[w]>>8&3)}function p(y){var E,C=new Uint8Array(44);for(E=0;E<32/3;++E)f(C.subarray(E*4),y.subarray(E*3));return f(C.subarray(E*4),Uint8Array.from([y[E*3+0],y[E*3+1],0])),C[43]=61,String.fromCharCode.apply(null,C)}function m(y){let E=window.atob(y),C=E.length,w=new Uint8Array(C);for(let D=0;D>>8&255,E>>>16&255,E>>>24&255)}function v(y,E){y.push(E&255,E>>>8&255)}function x(y,E){for(var C=0;C>>1:E>>>1;P.table[C]=E}}for(var $=-1,D=0;D>>8^P.table[($^y[D])&255];return($^-1)>>>0}function A(y){for(var E=[],C=[],w=0,$=0;${e.status?(this.success=!0,await this.store.getConfigurations(),setTimeout(()=>{this.$router.push("/")},1e3)):(this.error=!0,this.errorMessage=e.message,document.querySelector(`#${e.data}`).classList.remove("is-valid"),document.querySelector(`#${e.data}`).classList.add("is-invalid"))}))}},computed:{goodToSubmit(){let e=["ConfigurationName","Address","ListenPort","PrivateKey"],t=[...document.querySelectorAll("input[required]")];return e.find(n=>this.newConfiguration[n].length===0)===void 0&&t.find(n=>n.classList.contains("is-invalid"))===void 0}},watch:{"newConfiguration.Address"(e){let t=document.querySelector("#Address");t.classList.remove("is-invalid","is-valid");try{if(e.trim().split("/").filter(i=>i.length>0).length!==2)throw Error();let n=zk(e),s=n.end-n.start;this.numberOfAvailableIPs=s.toLocaleString(),t.classList.add("is-valid")}catch{this.numberOfAvailableIPs="0",t.classList.add("is-invalid")}},"newConfiguration.ListenPort"(e){let t=document.querySelector("#ListenPort");t.classList.remove("is-invalid","is-valid"),e<0||e>65353||!Number.isInteger(e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.ConfigurationName"(e){let t=document.querySelector("#ConfigurationName");t.classList.remove("is-invalid","is-valid"),!/^[a-zA-Z0-9_=+.-]{1,15}$/.test(e)||e.length===0||this.store.Configurations.find(n=>n.Name===e)?t.classList.add("is-invalid"):t.classList.add("is-valid")},"newConfiguration.PrivateKey"(e){let t=document.querySelector("#PrivateKey");t.classList.remove("is-invalid","is-valid");try{wireguard.generatePublicKey(e),t.classList.add("is-valid")}catch{t.classList.add("is-invalid")}}}},Kk={class:"mt-4"},Yk={class:"container mb-4"},qk={class:"mb-4 d-flex align-items-center gap-4"},Gk=g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1),Xk=g("h3",{class:"text-body mb-0"},"New Configuration",-1),Qk={class:"card rounded-3 shadow"},Jk=g("div",{class:"card-header"},"Configuration Name",-1),Zk={class:"card-body"},t$=["disabled"],e$={class:"invalid-feedback"},n$={key:0},s$={key:1},i$=g("ul",{class:"mb-0"},[g("li",null,"Configuration name already exist."),g("li",null,'Configuration name can only contain 15 lower/uppercase alphabet, numbers, "_"(underscore), "="(equal), "+"(plus), "."(period/dot), "-"(dash/hyphen)')],-1),o$={class:"card rounded-3 shadow"},r$=g("div",{class:"card-header"},"Private Key / Public Key / Pre-Shared Key",-1),a$={class:"card-body",style:{"font-family":"var(--bs-font-monospace)"}},l$={class:"mb-2"},c$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PRIVATE KEY")],-1),u$={class:"input-group"},d$=["disabled"],h$=g("i",{class:"bi bi-arrow-repeat"},null,-1),f$=[h$],p$=g("label",{class:"text-muted fw-bold mb-1"},[g("small",null,"PUBLIC KEY")],-1),g$={class:"card rounded-3 shadow"},m$=g("div",{class:"card-header"},"Listen Port",-1),_$={class:"card-body"},b$=["disabled"],v$={class:"invalid-feedback"},y$={key:0},x$={key:1},w$={class:"card rounded-3 shadow"},E$={class:"card-header d-flex align-items-center"},S$={class:"badge rounded-pill text-bg-success ms-auto"},A$={class:"card-body"},C$=["disabled"],T$={class:"invalid-feedback"},P$={key:0},k$={key:1},$$=g("hr",null,null,-1),M$={class:"accordion",id:"newConfigurationOptionalAccordion"},O$={class:"accordion-item"},D$=g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#newConfigurationOptionalAccordionCollapse"}," Optional Settings ")],-1),I$={id:"newConfigurationOptionalAccordionCollapse",class:"accordion-collapse collapse","data-bs-parent":"#newConfigurationOptionalAccordion"},L$={class:"accordion-body d-flex flex-column gap-3"},R$={class:"card rounded-3"},N$=g("div",{class:"card-header"},"PreUp",-1),F$={class:"card-body"},B$={class:"card rounded-3"},V$=g("div",{class:"card-header"},"PreDown",-1),H$={class:"card-body"},j$={class:"card rounded-3"},W$=g("div",{class:"card-header"},"PostUp",-1),z$={class:"card-body"},U$={class:"card rounded-3"},K$=g("div",{class:"card-header"},"PostDown",-1),Y$={class:"card-body"},q$=["disabled"],G$={key:0,class:"d-flex w-100"},X$=g("i",{class:"bi bi-check-circle-fill ms-2"},null,-1),Q$={key:1,class:"d-flex w-100"},J$=g("i",{class:"bi bi-save-fill ms-2"},null,-1),Z$={key:2,class:"d-flex w-100 align-items-center"},tM=g("span",{class:"ms-2 spinner-border spinner-border-sm",role:"status"},null,-1);function eM(e,t,n,s,i,o){const r=Ot("RouterLink");return X(),ot("div",Kk,[g("div",Yk,[g("div",qk,[dt(r,{to:"/"},{default:Ut(()=>[Gk]),_:1}),Xk]),g("form",{class:"text-body d-flex flex-column gap-3",onSubmit:t[10]||(t[10]=a=>{a.preventDefault(),this.saveNewConfiguration()})},[g("div",Qk,[Jk,g("div",Zk,[bt(g("input",{type:"text",class:"form-control",placeholder:"ex. wg1",id:"ConfigurationName","onUpdate:modelValue":t[0]||(t[0]=a=>this.newConfiguration.ConfigurationName=a),disabled:this.loading,required:""},null,8,t$),[[vt,this.newConfiguration.ConfigurationName]]),g("div",e$,[this.error?(X(),ot("div",n$,wt(this.errorMessage),1)):(X(),ot("div",s$,[gt(" Configuration name is invalid. Possible reasons: "),i$]))])])]),g("div",o$,[r$,g("div",a$,[g("div",l$,[c$,g("div",u$,[bt(g("input",{type:"text",class:"form-control",id:"PrivateKey",required:"",disabled:this.loading,"onUpdate:modelValue":t[1]||(t[1]=a=>this.newConfiguration.PrivateKey=a)},null,8,d$),[[vt,this.newConfiguration.PrivateKey]]),g("button",{class:"btn btn-outline-primary",type:"button",title:"Regenerate Private Key",onClick:t[2]||(t[2]=a=>o.wireguardGenerateKeypair())},f$)])]),g("div",null,[p$,bt(g("input",{type:"text",class:"form-control",id:"PublicKey","onUpdate:modelValue":t[3]||(t[3]=a=>this.newConfiguration.PublicKey=a),disabled:""},null,512),[[vt,this.newConfiguration.PublicKey]])])])]),g("div",g$,[m$,g("div",_$,[bt(g("input",{type:"number",class:"form-control",placeholder:"0-65353",id:"ListenPort",min:"1",max:"65353","onUpdate:modelValue":t[4]||(t[4]=a=>this.newConfiguration.ListenPort=a),disabled:this.loading,required:""},null,8,b$),[[vt,this.newConfiguration.ListenPort]]),g("div",v$,[this.error?(X(),ot("div",y$,wt(this.errorMessage),1)):(X(),ot("div",x$," Invalid port "))])])]),g("div",w$,[g("div",E$,[gt(" IP Address & Range "),g("span",S$,wt(i.numberOfAvailableIPs)+" Available IPs",1)]),g("div",A$,[bt(g("input",{type:"text",class:"form-control",placeholder:"Ex: 10.0.0.1/24",id:"Address","onUpdate:modelValue":t[5]||(t[5]=a=>this.newConfiguration.Address=a),disabled:this.loading,required:""},null,8,C$),[[vt,this.newConfiguration.Address]]),g("div",T$,[this.error?(X(),ot("div",P$,wt(this.errorMessage),1)):(X(),ot("div",k$," IP address & range is invalid. "))])])]),$$,g("div",M$,[g("div",O$,[D$,g("div",I$,[g("div",L$,[g("div",R$,[N$,g("div",F$,[bt(g("input",{type:"text",class:"form-control",id:"preUp","onUpdate:modelValue":t[6]||(t[6]=a=>this.newConfiguration.PreUp=a)},null,512),[[vt,this.newConfiguration.PreUp]])])]),g("div",B$,[V$,g("div",H$,[bt(g("input",{type:"text",class:"form-control",id:"preDown","onUpdate:modelValue":t[7]||(t[7]=a=>this.newConfiguration.PreDown=a)},null,512),[[vt,this.newConfiguration.PreDown]])])]),g("div",j$,[W$,g("div",z$,[bt(g("input",{type:"text",class:"form-control",id:"postUp","onUpdate:modelValue":t[8]||(t[8]=a=>this.newConfiguration.PostUp=a)},null,512),[[vt,this.newConfiguration.PostUp]])])]),g("div",U$,[K$,g("div",Y$,[bt(g("input",{type:"text",class:"form-control",id:"postDown","onUpdate:modelValue":t[9]||(t[9]=a=>this.newConfiguration.PostDown=a)},null,512),[[vt,this.newConfiguration.PostDown]])])])])])])]),g("button",{class:"btn btn-dark btn-brand rounded-3 px-3 py-2 shadow ms-auto",disabled:!this.goodToSubmit},[this.success?(X(),ot("span",G$,[gt(" Success! "),X$])):this.loading?(X(),ot("span",Z$,[gt(" Saving... "),tM])):(X(),ot("span",Q$,[gt(" Save Configuration "),J$]))],8,q$)],32)])])}const nM=Rt(Uk,[["render",eM]]);function sM(e){return hu()?(Cg(e),!0):!1}function h_(e){return typeof e=="function"?e():os(e)}const f_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const iM=Object.prototype.toString,oM=e=>iM.call(e)==="[object Object]",ua=()=>{},rM=aM();function aM(){var e,t;return f_&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function bo(e){var t;const n=h_(e);return(t=n==null?void 0:n.$el)!=null?t:n}const p_=f_?window:void 0;function Kl(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=p_):[t,n,s,i]=e,!t)return ua;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=zs(()=>[bo(t),h_(i)],([u,d])=>{if(r(),!u)return;const f=oM(d)?{...d}:d;o.push(...n.flatMap(p=>s.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),r()};return sM(c),c}let bf=!1;function lM(e,t,n={}){const{window:s=p_,ignore:i=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return ua;rM&&!bf&&(bf=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",ua)),s.document.documentElement.addEventListener("click",ua));let a=!0;const l=f=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===f.target||f.composedPath().includes(m));{const m=bo(p);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Kl(s,"click",f=>{const p=bo(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}t(f)}},{passive:!0,capture:o}),Kl(s,"pointerdown",f=>{const p=bo(e);a=!l(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),r&&Kl(s,"blur",f=>{setTimeout(()=>{var p;const m=bo(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const cM={name:"peerSettingsDropdown",setup(){return{dashboardStore:Xt()}},props:{Peer:Object},methods:{downloadPeer(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{if(e.status){const t=new Blob([e.data.file],{type:"text/plain"}),n=URL.createObjectURL(t),s=`${e.data.fileName}.conf`,i=document.createElement("a");i.href=n,i.download=s,i.click(),this.dashboardStore.newMessage("WGDashboard","Peer download started","success")}else this.dashboardStore.newMessage("Server",e.message,"danger")})},downloadQRCode(){Re("/api/downloadPeer/"+this.$route.params.id,{id:this.Peer.id},e=>{e.status?this.$emit("qrcode",e.data.file):this.dashboardStore.newMessage("Server",e.message,"danger")})}}},_s=e=>(ei("data-v-3a072aae"),e=e(),ni(),e),uM={class:"dropdown-menu mt-2 shadow-lg d-block rounded-3",style:{"max-width":"200px"}},dM=_s(()=>g("li",null,[g("small",{class:"w-100 dropdown-item text-muted",style:{"white-space":"break-spaces","font-size":"0.7rem"}},[gt("Download & QR Code is not available due to no "),g("code",null,"private key"),gt(" set for this peer ")])],-1)),hM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),fM=_s(()=>g("i",{class:"me-auto bi bi-pen"},null,-1)),pM=_s(()=>g("i",{class:"me-auto bi bi-download"},null,-1)),gM=_s(()=>g("i",{class:"me-auto bi bi-qr-code"},null,-1)),mM=_s(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),_M=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex text-warning",role:"button"},[g("i",{class:"me-auto bi bi-lock"}),gt(" Lock ")])],-1)),bM=_s(()=>g("li",null,[g("a",{class:"dropdown-item d-flex fw-bold text-danger",role:"button"},[g("i",{class:"me-auto bi bi-trash"}),gt(" Delete ")])],-1));function vM(e,t,n,s,i,o){return X(),ot("ul",uM,[this.Peer.private_key?Kt("",!0):(X(),ot(Qt,{key:0},[dM,hM],64)),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[0]||(t[0]=r=>this.$emit("setting"))},[fM,gt(" Edit ")])]),this.Peer.private_key?(X(),ot(Qt,{key:1},[g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[1]||(t[1]=r=>this.downloadPeer())},[pM,gt(" Download ")])]),g("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:t[2]||(t[2]=r=>this.downloadQRCode())},[gM,gt(" QR Code ")])])],64)):Kt("",!0),mM,_M,bM])}const yM=Rt(cM,[["render",vM],["__scopeId","data-v-3a072aae"]]),xM={name:"peer",components:{PeerSettingsDropdown:yM},props:{Peer:Object},data(){return{}},setup(){const e=Li(null),t=Li(!1);return lM(e,n=>{t.value=!1}),{target:e,subMenuOpened:t}},computed:{getLatestHandshake(){return this.Peer.latest_handshake.includes(",")?this.Peer.latest_handshake.split(",")[0]:this.Peer.latest_handshake}}},no=e=>(ei("data-v-315acdc2"),e=e(),ni(),e),wM={class:"card shadow-sm rounded-3"},EM={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0"},SM={style:{"font-size":"0.8rem"},class:"ms-auto d-flex gap-2"},AM={class:"text-primary"},CM=no(()=>g("i",{class:"bi bi-arrow-down"},null,-1)),TM={class:"text-success"},PM=no(()=>g("i",{class:"bi bi-arrow-up"},null,-1)),kM={key:0,class:"text-secondary"},$M=no(()=>g("i",{class:"bi bi-arrows-angle-contract"},null,-1)),MM={class:"card-body pt-1",style:{"font-size":"0.9rem"}},OM={class:"mb-2"},DM=no(()=>g("small",{class:"text-muted"},"Public Key",-1)),IM={class:"mb-0"},LM={class:"d-flex align-items-end"},RM=no(()=>g("small",{class:"text-muted"},"Allowed IP",-1)),NM={class:"mb-0"},FM=no(()=>g("h5",{class:"mb-0"},[g("i",{class:"bi bi-three-dots"})],-1)),BM=[FM];function VM(e,t,n,s,i,o){const r=Ot("PeerSettingsDropdown");return X(),ot("div",wM,[g("div",EM,[g("div",{class:jt(["dot ms-0",{active:n.Peer.status==="running"}])},null,2),g("div",SM,[g("span",AM,[CM,g("strong",null,wt((n.Peer.cumu_receive+n.Peer.total_receive).toFixed(4)),1),gt(" GB ")]),g("span",TM,[PM,g("strong",null,wt((n.Peer.cumu_sent+n.Peer.total_sent).toFixed(4)),1),gt(" GB ")]),n.Peer.latest_handshake!=="No Handshake"?(X(),ot("span",kM,[$M,gt(" "+wt(o.getLatestHandshake)+" ago ",1)])):Kt("",!0)])]),g("div",MM,[g("h5",null,wt(n.Peer.name?n.Peer.name:"Untitled Peer"),1),g("div",OM,[DM,g("p",IM,[g("samp",null,wt(n.Peer.id),1)])]),g("div",LM,[g("div",null,[RM,g("p",NM,[g("samp",null,wt(n.Peer.allowed_ip),1)])]),g("div",{class:jt(["ms-auto px-2 rounded-3 subMenuBtn",{active:this.subMenuOpened}])},[g("a",{role:"button",class:"text-body",onClick:t[0]||(t[0]=a=>this.subMenuOpened=!0)},BM),dt(Ln,{name:"slide-fade"},{default:Ut(()=>[this.subMenuOpened?(X(),de(r,{key:0,onQrcode:t[1]||(t[1]=a=>this.$emit("qrcode",a)),onSetting:t[2]||(t[2]=a=>this.$emit("setting")),Peer:n.Peer,ref:"target"},null,8,["Peer"])):Kt("",!0)]),_:1})],2)])])])}const HM=Rt(xM,[["render",VM],["__scopeId","data-v-315acdc2"]]);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function ur(e){return e+.5|0}const ts=(e,t,n)=>Math.max(Math.min(e,n),t);function vo(e){return ts(ur(e*2.55),0,255)}function as(e){return ts(ur(e*255),0,255)}function Cn(e){return ts(ur(e/2.55)/100,0,1)}function vf(e){return ts(ur(e*100),0,100)}const je={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Oc=[..."0123456789ABCDEF"],HM=e=>Oc[e&15],jM=e=>Oc[(e&240)>>4]+Oc[e&15],Hr=e=>(e&240)>>4===(e&15),WM=e=>Hr(e.r)&&Hr(e.g)&&Hr(e.b)&&Hr(e.a);function zM(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&je[e[1]]*17,g:255&je[e[2]]*17,b:255&je[e[3]]*17,a:t===5?je[e[4]]*17:255}:(t===7||t===9)&&(n={r:je[e[1]]<<4|je[e[2]],g:je[e[3]]<<4|je[e[4]],b:je[e[5]]<<4|je[e[6]],a:t===9?je[e[7]]<<4|je[e[8]]:255})),n}const UM=(e,t)=>e<255?t(e):"";function KM(e){var t=WM(e)?HM:jM;return e?"#"+t(e.r)+t(e.g)+t(e.b)+UM(e.a,t):void 0}const YM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g_(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function qM(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function GM(e,t,n){const s=g_(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function XM(e,t,n,s,i){return e===i?(t-n)/s+(t.5?u/(2-o-r):u/(o+r),l=XM(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function Yu(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(as)}function qu(e,t,n){return Yu(g_,e,t,n)}function QM(e,t,n){return Yu(GM,e,t,n)}function JM(e,t,n){return Yu(qM,e,t,n)}function m_(e){return(e%360+360)%360}function ZM(e){const t=YM.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?vo(+t[5]):as(+t[5]));const i=m_(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=QM(i,o,r):t[1]==="hsv"?s=JM(i,o,r):s=qu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function tO(e,t){var n=Ku(e);n[0]=m_(n[0]+t),n=qu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function eO(e){if(!e)return;const t=Ku(e),n=t[0],s=vf(t[1]),i=vf(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${Cn(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const yf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function nO(){const e={},t=Object.keys(xf),n=Object.keys(yf);let s,i,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}let jr;function sO(e){jr||(jr=nO(),jr.transparent=[0,0,0,0]);const t=jr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const iO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function oO(e){const t=iO.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?vo(r):ts(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?vo(s):ts(s,0,255)),i=255&(t[4]?vo(i):ts(i,0,255)),o=255&(t[6]?vo(o):ts(o,0,255)),{r:s,g:i,b:o,a:n}}}function rO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Cn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Yl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function aO(e,t,n){const s=pi(Cn(e.r)),i=pi(Cn(e.g)),o=pi(Cn(e.b));return{r:as(Yl(s+n*(pi(Cn(t.r))-s))),g:as(Yl(i+n*(pi(Cn(t.g))-i))),b:as(Yl(o+n*(pi(Cn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Wr(e,t,n){if(e){let s=Ku(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=qu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function __(e,t){return e&&Object.assign(t||{},e)}function wf(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=as(e[3]))):(t=__(e,{r:0,g:0,b:0,a:1}),t.a=as(t.a)),t}function lO(e){return e.charAt(0)==="r"?oO(e):ZM(e)}class Xo{constructor(t){if(t instanceof Xo)return t;const n=typeof t;let s;n==="object"?s=wf(t):n==="string"&&(s=zM(t)||sO(t)||lO(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=__(this._rgb);return t&&(t.a=Cn(t.a)),t}set rgb(t){this._rgb=wf(t)}rgbString(){return this._valid?rO(this._rgb):void 0}hexString(){return this._valid?KM(this._rgb):void 0}hslString(){return this._valid?eO(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=aO(this._rgb,t._rgb,n)),this}clone(){return new Xo(this.rgb)}alpha(t){return this._rgb.a=as(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ur(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Wr(this._rgb,2,t),this}darken(t){return Wr(this._rgb,2,-t),this}saturate(t){return Wr(this._rgb,1,t),this}desaturate(t){return Wr(this._rgb,1,-t),this}rotate(t){return tO(this._rgb,t),this}}/*! + */function ur(e){return e+.5|0}const ts=(e,t,n)=>Math.max(Math.min(e,n),t);function vo(e){return ts(ur(e*2.55),0,255)}function as(e){return ts(ur(e*255),0,255)}function Cn(e){return ts(ur(e/2.55)/100,0,1)}function vf(e){return ts(ur(e*100),0,100)}const je={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Oc=[..."0123456789ABCDEF"],jM=e=>Oc[e&15],WM=e=>Oc[(e&240)>>4]+Oc[e&15],jr=e=>(e&240)>>4===(e&15),zM=e=>jr(e.r)&&jr(e.g)&&jr(e.b)&&jr(e.a);function UM(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&je[e[1]]*17,g:255&je[e[2]]*17,b:255&je[e[3]]*17,a:t===5?je[e[4]]*17:255}:(t===7||t===9)&&(n={r:je[e[1]]<<4|je[e[2]],g:je[e[3]]<<4|je[e[4]],b:je[e[5]]<<4|je[e[6]],a:t===9?je[e[7]]<<4|je[e[8]]:255})),n}const KM=(e,t)=>e<255?t(e):"";function YM(e){var t=zM(e)?jM:WM;return e?"#"+t(e.r)+t(e.g)+t(e.b)+KM(e.a,t):void 0}const qM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g_(e,t,n){const s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function GM(e,t,n){const s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function XM(e,t,n){const s=g_(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function QM(e,t,n,s,i){return e===i?(t-n)/s+(t.5?u/(2-o-r):u/(o+r),l=QM(n,s,i,u,o),l=l*60+.5),[l|0,c||0,a]}function Yu(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(as)}function qu(e,t,n){return Yu(g_,e,t,n)}function JM(e,t,n){return Yu(XM,e,t,n)}function ZM(e,t,n){return Yu(GM,e,t,n)}function m_(e){return(e%360+360)%360}function tO(e){const t=qM.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?vo(+t[5]):as(+t[5]));const i=m_(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=JM(i,o,r):t[1]==="hsv"?s=ZM(i,o,r):s=qu(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function eO(e,t){var n=Ku(e);n[0]=m_(n[0]+t),n=qu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function nO(e){if(!e)return;const t=Ku(e),n=t[0],s=vf(t[1]),i=vf(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${Cn(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const yf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function sO(){const e={},t=Object.keys(xf),n=Object.keys(yf);let s,i,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}let Wr;function iO(e){Wr||(Wr=sO(),Wr.transparent=[0,0,0,0]);const t=Wr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const oO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rO(e){const t=oO.exec(e);let n=255,s,i,o;if(t){if(t[7]!==s){const r=+t[7];n=t[8]?vo(r):ts(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?vo(s):ts(s,0,255)),i=255&(t[4]?vo(i):ts(i,0,255)),o=255&(t[6]?vo(o):ts(o,0,255)),{r:s,g:i,b:o,a:n}}}function aO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Cn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Yl=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function lO(e,t,n){const s=pi(Cn(e.r)),i=pi(Cn(e.g)),o=pi(Cn(e.b));return{r:as(Yl(s+n*(pi(Cn(t.r))-s))),g:as(Yl(i+n*(pi(Cn(t.g))-i))),b:as(Yl(o+n*(pi(Cn(t.b))-o))),a:e.a+n*(t.a-e.a)}}function zr(e,t,n){if(e){let s=Ku(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=qu(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function __(e,t){return e&&Object.assign(t||{},e)}function wf(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=as(e[3]))):(t=__(e,{r:0,g:0,b:0,a:1}),t.a=as(t.a)),t}function cO(e){return e.charAt(0)==="r"?rO(e):tO(e)}class Xo{constructor(t){if(t instanceof Xo)return t;const n=typeof t;let s;n==="object"?s=wf(t):n==="string"&&(s=UM(t)||iO(t)||cO(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=__(this._rgb);return t&&(t.a=Cn(t.a)),t}set rgb(t){this._rgb=wf(t)}rgbString(){return this._valid?aO(this._rgb):void 0}hexString(){return this._valid?YM(this._rgb):void 0}hslString(){return this._valid?nO(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*i.r+.5,s.g=255&c*s.g+o*i.g+.5,s.b=255&c*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=lO(this._rgb,t._rgb,n)),this}clone(){return new Xo(this.rgb)}alpha(t){return this._rgb.a=as(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ur(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return zr(this._rgb,2,t),this}darken(t){return zr(this._rgb,2,-t),this}saturate(t){return zr(this._rgb,1,t),this}desaturate(t){return zr(this._rgb,1,-t),this}rotate(t){return eO(this._rgb,t),this}}/*! * Chart.js v4.4.1 * https://www.chartjs.org * (c) 2023 Chart.js Contributors * Released under the MIT License - */function xn(){}const cO=(()=>{let e=0;return()=>e++})();function It(e){return e===null||typeof e>"u"}function zt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function $t(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Jt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Pe(e,t){return Jt(e)?e:t}function Et(e,t){return typeof e>"u"?t:e}const uO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,b_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ht(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Bt(e,t,n,s){let i,o,r;if(zt(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function fO(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function pO(e){const t=fO(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function fs(e,t){return(Ef[t]||(Ef[t]=pO(t)))(e)}function Gu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Jo=e=>typeof e<"u",ps=e=>typeof e=="function",Sf=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function gO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Yt=Math.PI,Kt=2*Yt,mO=Kt+Yt,Aa=Number.POSITIVE_INFINITY,_O=Yt/180,te=Yt/2,Os=Yt/4,Af=Yt*2/3,es=Math.log10,fn=Math.sign;function Oo(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Yi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function vO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function y_(e,t,n){let s,i,o;for(s=0,i=e.length;sl&&c=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Qu(e,t,n){n=n||(r=>e[r]1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const $n=(e,t,n,s)=>Qu(e,n,s?i=>{const o=e[i][t];return oe[i][t]Qu(e,n,s=>e[s][t]>=n);function EO(e,t,n){let s=0,i=e.length;for(;ss&&e[i-1]>n;)i--;return s>0||i{const s="_onData"+Gu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Pf(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(w_.forEach(o=>{delete e[o]}),delete e._chartjs)}function E_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const S_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A_(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,S_.call(window,()=>{s=!1,e.apply(t,n)}))}}function AO(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const Ju=e=>e==="start"?"left":e==="end"?"right":"center",fe=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,CO=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function C_(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=le(Math.min($n(a,l,c).lo,n?s:$n(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=le(Math.max($n(a,r.axis,u,!0).hi+1,n?0:$n(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function T_(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const zr=e=>e===0||e===1,kf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Kt/n)),$f=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Kt/n)+1,Do={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*te)+1,easeOutSine:e=>Math.sin(e*te),easeInOutSine:e=>-.5*(Math.cos(Yt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zr(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zr(e)?e:kf(e,.075,.3),easeOutElastic:e=>zr(e)?e:$f(e,.075,.3),easeInOutElastic(e){return zr(e)?e:e<.5?.5*kf(e*2,.1125,.45):.5+.5*$f(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Do.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Do.easeInBounce(e*2)*.5:Do.easeOutBounce(e*2-1)*.5+.5};function Zu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Mf(e){return Zu(e)?e:new Xo(e)}function ql(e){return Zu(e)?e:new Xo(e).saturate(.5).darken(.1).hexString()}const TO=["x","y","borderWidth","radius","tension"],PO=["color","borderColor","backgroundColor"];function kO(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:PO},numbers:{type:"number",properties:TO}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function $O(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Of=new Map;function MO(e,t){t=t||{};const n=e+JSON.stringify(t);let s=Of.get(n);return s||(s=new Intl.NumberFormat(e,t),Of.set(n,s)),s}function dr(e,t,n){return MO(t,n).format(e)}const P_={values(e){return zt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=OO(e,n)}const r=es(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),dr(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(es(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?P_.numeric.call(this,e,t,n):""}};function OO(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var cl={formatters:P_};function DO(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:cl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Qs=Object.create(null),Ic=Object.create(null);function Io(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,i)=>ql(i.backgroundColor),this.hoverBorderColor=(s,i)=>ql(i.borderColor),this.hoverColor=(s,i)=>ql(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Gl(this,t,n)}get(t){return Io(this,t)}describe(t,n){return Gl(Ic,t,n)}override(t,n){return Gl(Qs,t,n)}route(t,n,s,i){const o=Io(this,t),r=Io(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return $t(l)?Object.assign({},c,l):Et(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Zt=new IO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[kO,$O,DO]);function LO(e){return!e||It(e.size)||It(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ca(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function RO(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Mn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,BO(e,o),l=0;l+e||0;function td(e,t){const n={},s=$t(t),i=s?Object.keys(t):t,o=$t(e)?s?r=>Et(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=UO(o(r));return n}function $_(e){return td(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ks(e){return td(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(e){const t=$_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function oe(e,t){e=e||{},t=t||Zt.font;let n=Et(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=Et(e.style,t.style);s&&!(""+s).match(WO)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:Et(e.family,t.family),lineHeight:zO(Et(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:Et(e.weight,t.weight),string:""};return i.string=LO(i),i}function yo(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;on&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function bs(e,t){return Object.assign(Object.create(e),t)}function ed(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=I_("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>ed([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return O_(a,l,()=>tD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Lf(a).includes(l)},ownKeys(a){return Lf(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function qi(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:M_(e,s),setContext:o=>qi(e,o,n,s),override:o=>qi(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return O_(o,r,()=>qO(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function M_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:ps(n)?n:()=>n,isIndexable:ps(s)?s:()=>s}}const YO=(e,t)=>e?e+Gu(t):t,nd=(e,t)=>$t(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function O_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function qO(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return ps(a)&&r.isScriptable(t)&&(a=GO(t,a,e,n)),zt(a)&&a.length&&(a=XO(t,a,e,r.isIndexable)),nd(t,a)&&(a=qi(a,i,o&&o[t],r)),a}function GO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),nd(e,l)&&(l=sd(i._scopes,i,e,l)),l}function XO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if($t(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=sd(c,i,e,u);t.push(qi(d,o,r&&r[e],a))}}return t}function D_(e,t,n){return ps(e)?e(t,n):e}const QO=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function JO(e,t,n,s,i){for(const o of t){const r=QO(n,o);if(r){e.add(r);const a=D_(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function sd(e,t,n,s){const i=t._rootScopes,o=D_(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=If(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=If(a,r,o,l,s),l===null)?!1:ed(Array.from(a),[""],i,o,()=>ZO(t,n,s))}function If(e,t,n,s,i){for(;n;)n=JO(e,t,n,s,i);return n}function ZO(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return zt(i)&&$t(n)?n:i||{}}function tD(e,t,n,s){let i;for(const o of t)if(i=I_(YO(o,e),n),typeof i<"u")return nd(e,i)?sd(n,s,e,i):i}function I_(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function Lf(e){let t=e._keys;return t||(t=e._keys=eD(e._scopes)),t}function eD(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function L_(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;ate==="x"?"y":"x";function sD(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=Dc(o,i),l=Dc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function iD(e,t,n){const s=e.length;let i,o,r,a,l,c=Gi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")rD(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function cD(e,t){return hl(e).getPropertyValue(t)}const uD=["top","right","bottom","left"];function Ys(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=uD[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const dD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function hD(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(dD(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Rs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=hl(n),o=i.boxSizing==="border-box",r=Ys(i,"padding"),a=Ys(i,"border","width"),{x:l,y:c,box:u}=hD(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:m}=t;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/p*n.width/s),y:Math.round((c-f)/m*n.height/s)}}function fD(e,t,n){let s,i;if(t===void 0||n===void 0){const o=od(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=hl(o),l=Ys(a,"border","width"),c=Ys(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=Ta(a.maxWidth,o,"clientWidth"),i=Ta(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||Aa,maxHeight:i||Aa}}const Kr=e=>Math.round(e*10)/10;function pD(e,t,n,s){const i=hl(e),o=Ys(i,"margin"),r=Ta(i.maxWidth,e,"clientWidth")||Aa,a=Ta(i.maxHeight,e,"clientHeight")||Aa,l=fD(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Ys(i,"border","width"),p=Ys(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=Kr(Math.min(c,r,l.maxWidth)),u=Kr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Kr(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=Kr(Math.floor(u*s))),{width:c,height:u}}function Rf(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const gD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};id()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Nf(e,t){const n=cD(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ns(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function mD(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function _D(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ns(e,i,n),a=Ns(i,o,n),l=Ns(o,t,n),c=Ns(r,a,n),u=Ns(a,l,n);return Ns(c,u,n)}const bD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},vD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ci(e,t,n){return e?bD(t,n):vD()}function N_(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function F_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function B_(e){return e==="angle"?{between:Zo,compare:yO,normalize:$e}:{between:kn,compare:(t,n)=>t-n,normalize:t=>t}}function Ff({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function yD(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=B_(s),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,P,x)&&a(i,P)!==0,y=()=>a(o,x)===0||l(o,P,x),E=()=>_||A(),C=()=>!_||y();for(let w=u,$=u;w<=d;++w)S=t[w%r],!S.skip&&(x=c(S[s]),x!==P&&(_=l(x,i,o),v===null&&E()&&(v=a(x,i)===0?w:$),v!==null&&C()&&(m.push(Ff({start:v,end:w,loop:f,count:r,style:p})),v=null),$=w,P=x));return v!==null&&m.push(Ff({start:v,end:d,loop:f,count:r,style:p})),m}function H_(e,t){const n=[],s=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function wD(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function ED(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=xD(n,i,o,s);if(s===!0)return Bf(e,[{start:r,end:a,loop:o}],n,t);const l=a{let e=0;return()=>e++})();function Lt(e){return e===null||typeof e>"u"}function zt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function $t(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Jt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Pe(e,t){return Jt(e)?e:t}function Et(e,t){return typeof e>"u"?t:e}const dO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,b_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ht(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Bt(e,t,n,s){let i,o,r;if(zt(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function pO(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function gO(e){const t=pO(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function fs(e,t){return(Ef[t]||(Ef[t]=gO(t)))(e)}function Gu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Jo=e=>typeof e<"u",ps=e=>typeof e=="function",Sf=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function mO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const qt=Math.PI,Yt=2*qt,_O=Yt+qt,Ca=Number.POSITIVE_INFINITY,bO=qt/180,te=qt/2,Os=qt/4,Af=qt*2/3,es=Math.log10,fn=Math.sign;function Oo(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Yi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function yO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function y_(e,t,n){let s,i,o;for(s=0,i=e.length;sl&&c=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Qu(e,t,n){n=n||(r=>e[r]1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}const $n=(e,t,n,s)=>Qu(e,n,s?i=>{const o=e[i][t];return oe[i][t]Qu(e,n,s=>e[s][t]>=n);function SO(e,t,n){let s=0,i=e.length;for(;ss&&e[i-1]>n;)i--;return s>0||i{const s="_onData"+Gu(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Pf(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(w_.forEach(o=>{delete e[o]}),delete e._chartjs)}function E_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const S_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A_(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,S_.call(window,()=>{s=!1,e.apply(t,n)}))}}function CO(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const Ju=e=>e==="start"?"left":e==="end"?"right":"center",fe=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,TO=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function C_(e,t,n){const s=t.length;let i=0,o=s;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(i=le(Math.min($n(a,l,c).lo,n?s:$n(t,l,r.getPixelForValue(c)).lo),0,s-1)),f?o=le(Math.max($n(a,r.axis,u,!0).hi+1,n?0:$n(t,l,r.getPixelForValue(u),!0).hi+1),i,s)-i:o=s-i}return{start:i,count:o}}function T_(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),o}const Ur=e=>e===0||e===1,kf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Yt/n)),$f=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Yt/n)+1,Do={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*te)+1,easeOutSine:e=>Math.sin(e*te),easeInOutSine:e=>-.5*(Math.cos(qt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ur(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ur(e)?e:kf(e,.075,.3),easeOutElastic:e=>Ur(e)?e:$f(e,.075,.3),easeInOutElastic(e){return Ur(e)?e:e<.5?.5*kf(e*2,.1125,.45):.5+.5*$f(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Do.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Do.easeInBounce(e*2)*.5:Do.easeOutBounce(e*2-1)*.5+.5};function Zu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Mf(e){return Zu(e)?e:new Xo(e)}function ql(e){return Zu(e)?e:new Xo(e).saturate(.5).darken(.1).hexString()}const PO=["x","y","borderWidth","radius","tension"],kO=["color","borderColor","backgroundColor"];function $O(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:kO},numbers:{type:"number",properties:PO}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function MO(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Of=new Map;function OO(e,t){t=t||{};const n=e+JSON.stringify(t);let s=Of.get(n);return s||(s=new Intl.NumberFormat(e,t),Of.set(n,s)),s}function dr(e,t,n){return OO(t,n).format(e)}const P_={values(e){return zt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=DO(e,n)}const r=es(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),dr(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(es(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?P_.numeric.call(this,e,t,n):""}};function DO(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ul={formatters:P_};function IO(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ul.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Qs=Object.create(null),Ic=Object.create(null);function Io(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,i)=>ql(i.backgroundColor),this.hoverBorderColor=(s,i)=>ql(i.borderColor),this.hoverColor=(s,i)=>ql(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Gl(this,t,n)}get(t){return Io(this,t)}describe(t,n){return Gl(Ic,t,n)}override(t,n){return Gl(Qs,t,n)}route(t,n,s,i){const o=Io(this,t),r=Io(this,s),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[i];return $t(l)?Object.assign({},c,l):Et(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Zt=new LO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$O,MO,IO]);function RO(e){return!e||Lt(e.size)||Lt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ta(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function NO(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Mn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,VO(e,o),l=0;l+e||0;function td(e,t){const n={},s=$t(t),i=s?Object.keys(t):t,o=$t(e)?s?r=>Et(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of i)n[r]=KO(o(r));return n}function $_(e){return td(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ks(e){return td(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(e){const t=$_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function oe(e,t){e=e||{},t=t||Zt.font;let n=Et(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=Et(e.style,t.style);s&&!(""+s).match(zO)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:Et(e.family,t.family),lineHeight:UO(Et(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:Et(e.weight,t.weight),string:""};return i.string=RO(i),i}function yo(e,t,n,s){let i=!0,o,r,a;for(o=0,r=e.length;on&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function bs(e,t){return Object.assign(Object.create(e),t)}function ed(e,t=[""],n,s,i=()=>e[0]){const o=n||e;typeof s>"u"&&(s=I_("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:a=>ed([a,...e],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return O_(a,l,()=>eD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Lf(a).includes(l)},ownKeys(a){return Lf(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function qi(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:M_(e,s),setContext:o=>qi(e,o,n,s),override:o=>qi(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return O_(o,r,()=>GO(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function M_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:ps(n)?n:()=>n,isIndexable:ps(s)?s:()=>s}}const qO=(e,t)=>e?e+Gu(t):t,nd=(e,t)=>$t(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function O_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const s=n();return e[t]=s,s}function GO(e,t,n){const{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e;let a=s[t];return ps(a)&&r.isScriptable(t)&&(a=XO(t,a,e,n)),zt(a)&&a.length&&(a=QO(t,a,e,r.isIndexable)),nd(t,a)&&(a=qi(a,i,o&&o[t],r)),a}function XO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||s);return a.delete(e),nd(e,l)&&(l=sd(i._scopes,i,e,l)),l}function QO(e,t,n,s){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if($t(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=sd(c,i,e,u);t.push(qi(d,o,r&&r[e],a))}}return t}function D_(e,t,n){return ps(e)?e(t,n):e}const JO=(e,t)=>e===!0?t:typeof e=="string"?fs(t,e):void 0;function ZO(e,t,n,s,i){for(const o of t){const r=JO(n,o);if(r){e.add(r);const a=D_(r._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function sd(e,t,n,s){const i=t._rootScopes,o=D_(t._fallback,n,s),r=[...e,...i],a=new Set;a.add(s);let l=If(a,r,n,o||n,s);return l===null||typeof o<"u"&&o!==n&&(l=If(a,r,o,l,s),l===null)?!1:ed(Array.from(a),[""],i,o,()=>tD(t,n,s))}function If(e,t,n,s,i){for(;n;)n=ZO(e,t,n,s,i);return n}function tD(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return zt(i)&&$t(n)?n:i||{}}function eD(e,t,n,s){let i;for(const o of t)if(i=I_(qO(o,e),n),typeof i<"u")return nd(e,i)?sd(n,s,e,i):i}function I_(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function Lf(e){let t=e._keys;return t||(t=e._keys=nD(e._scopes)),t}function nD(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}function L_(e,t,n,s){const{iScale:i}=e,{key:o="r"}=this._parsing,r=new Array(s);let a,l,c,u;for(a=0,l=s;ate==="x"?"y":"x";function iD(e,t,n,s){const i=e.skip?t:e,o=t,r=n.skip?t:n,a=Dc(o,i),l=Dc(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:o.x-d*(r.x-i.x),y:o.y-d*(r.y-i.y)},next:{x:o.x+f*(r.x-i.x),y:o.y+f*(r.y-i.y)}}}function oD(e,t,n){const s=e.length;let i,o,r,a,l,c=Gi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")aD(e,i);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function uD(e,t){return fl(e).getPropertyValue(t)}const dD=["top","right","bottom","left"];function Ys(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=dD[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const hD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function fD(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s;let r=!1,a,l;if(hD(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Rs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=fl(n),o=i.boxSizing==="border-box",r=Ys(i,"padding"),a=Ys(i,"border","width"),{x:l,y:c,box:u}=fD(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:m}=t;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/p*n.width/s),y:Math.round((c-f)/m*n.height/s)}}function pD(e,t,n){let s,i;if(t===void 0||n===void 0){const o=od(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=fl(o),l=Ys(a,"border","width"),c=Ys(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,s=Pa(a.maxWidth,o,"clientWidth"),i=Pa(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||Ca,maxHeight:i||Ca}}const Yr=e=>Math.round(e*10)/10;function gD(e,t,n,s){const i=fl(e),o=Ys(i,"margin"),r=Pa(i.maxWidth,e,"clientWidth")||Ca,a=Pa(i.maxHeight,e,"clientHeight")||Ca,l=pD(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=Ys(i,"border","width"),p=Ys(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,s?c/s:u-o.height),c=Yr(Math.min(c,r,l.maxWidth)),u=Yr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Yr(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=Yr(Math.floor(u*s))),{width:c,height:u}}function Rf(e,t,n){const s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const mD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};id()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Nf(e,t){const n=uD(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ns(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function _D(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function bD(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=Ns(e,i,n),a=Ns(i,o,n),l=Ns(o,t,n),c=Ns(r,a,n),u=Ns(a,l,n);return Ns(c,u,n)}const vD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},yD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ci(e,t,n){return e?vD(t,n):yD()}function N_(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function F_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function B_(e){return e==="angle"?{between:Zo,compare:xO,normalize:$e}:{between:kn,compare:(t,n)=>t-n,normalize:t=>t}}function Ff({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function xD(e,t,n){const{property:s,start:i,end:o}=n,{between:r,normalize:a}=B_(s),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,P,x)&&a(i,P)!==0,y=()=>a(o,x)===0||l(o,P,x),E=()=>_||A(),C=()=>!_||y();for(let w=u,$=u;w<=d;++w)S=t[w%r],!S.skip&&(x=c(S[s]),x!==P&&(_=l(x,i,o),v===null&&E()&&(v=a(x,i)===0?w:$),v!==null&&C()&&(m.push(Ff({start:v,end:w,loop:f,count:r,style:p})),v=null),$=w,P=x));return v!==null&&m.push(Ff({start:v,end:d,loop:f,count:r,style:p})),m}function H_(e,t){const n=[],s=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function ED(e,t,n,s){const i=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,o.push({start:t%i,end:(l-1)%i,loop:s}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%i,end:r%i,loop:s}),o}function SD(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:r,end:a}=wD(n,i,o,s);if(s===!0)return Bf(e,[{start:r,end:a,loop:o}],n,t);const l=aa({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=S_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var En=new CD;const Hf="transparent",TD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=Mf(e||Hf),i=s.valid&&Mf(t||Hf);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class PD{constructor(t,n,s,i){const o=n[s];i=yo([t.to,i,o,t.from]);const r=yo([t.from,o,i]);this._active=!0,this._fn=t.fn||TD[t.type||typeof r],this._easing=Do[t.easing]||Do.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yo([t.to,n,i,t.from]),this._from=yo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i{const o=t[i];if(!$t(o))return;const r={};for(const a of n)r[a]=o[a];(zt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=$D(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&kD(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new PD(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return En.add(this._chart,s),!0}}function kD(e,t){const n=[],s=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Kf(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=ID(o,r,s),d=t.length;let f;for(let p=0;pn[s].axis===t).shift()}function ND(e,t){return bs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function FD(e,t,n){return bs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ho(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Ql=e=>e==="reset"||e==="none",Yf=(e,t)=>t?e:Object.assign({},e),BD=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:W_(n,!0),values:null};class en{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ho(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,p,m)=>d==="x"?f:d==="r"?m:p,o=n.xAxisID=Et(s.xAxisID,Xl(t,"x")),r=n.yAxisID=Et(s.yAxisID,Xl(t,"y")),a=n.rAxisID=Et(s.rAxisID,Xl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pf(this._data,this),t._stacked&&ho(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if($t(n))this._data=DD(n);else if(s!==n){if(s){Pf(s,this);const i=this._cachedMeta;ho(i),i._parsed=[]}n&&Object.isExtensible(n)&&SO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=zf(n.vScale,n),n.stack!==s.stack&&(i=!0,ho(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Kf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{zt(i[t])?f=this.parseArrayData(s,i,t,n):$t(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const p=()=>d[a]===null||c&&d[a]_||d<_}for(f=0;f=0;--f)if(!m()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i=0&&tthis.getContext(s,i,n),_=c.resolveNamedOptions(f,p,m,d);return _.$shared&&(_.$shared=l,o[r]=Object.freeze(Yf(_,l))),_}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new j_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ql(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Ql(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Ql(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function HD(e){const t=e.iScale,n=VD(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Jo(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function z_(e,t,n,s){return zt(e)?zD(e,t,n,s):t[n.axis]=n.parse(e,s),t}function qf(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c=n?1:-1)}function KD(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.basel.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(It(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;fZo(P,a,l,!0)?1:Math.max(A,A*n,y,y*n),m=(P,A,y)=>Zo(P,a,l,!0)?-1:Math.min(A,A*n,y,y*n),_=p(0,c,d),v=p(te,u,f),x=m(Yt,c,d),S=m(Yt+te,u,f);s=(_-x)/2,i=(v-S)/2,o=-(_+x)/2,r=-(v+S)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Vs extends en{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if($t(s[t])){const{key:l="value"}=this._parsing;o=c=>+fs(s[c],l)}let r,a;for(r=t,a=t+n;r0&&!isNaN(t)?Kt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),it(Vs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class Pi extends en{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=C_(n,i,r);this._drawStart=a,this._drawCount=l,T_(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,p=a.axis,{spanGaps:m,segment:_}=this.options,v=Yi(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+s,P=t.length;let A=n>0&&this.getParsed(n-1);for(let y=0;y=S){C.skip=!0;continue}const w=this.getParsed(y),$=It(w[p]),D=C[f]=r.getPixelForValue(w[f],y),I=C[p]=o||$?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],y);C.skip=isNaN(D)||isNaN(I)||$,C.stop=y>0&&Math.abs(w[f]-A[f])>v,_&&(C.parsed=w,C.raw=c.data[y]),d&&(C.options=u||this.resolveDataElementOptions(y,E.active?"active":i)),x||this.updateElement(E,y,C,i),A=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}it(Pi,"id","line"),it(Pi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),it(Pi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ro extends en{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Yt;let p=f,m;const _=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?tn(this.resolveDataElementOptions(t,n).angle||s):0}}it(Ro,"id","polarArea"),it(Ro,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),it(Ro,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Pa extends Vs{}it(Pa,"id","pie"),it(Pa,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class No extends en{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let A=n;A0&&Math.abs(E[p]-P[p])>x,v&&(C.parsed=E,C.raw=c.data[A]),f&&(C.options=d||this.resolveDataElementOptions(A,y.active?"active":i)),S||this.updateElement(y,A,C,i),P=E}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}it(Fo,"id","scatter"),it(Fo,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),it(Fo,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Is(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class rd{constructor(t){it(this,"options");this.options=t||{}}static override(t){Object.assign(rd.prototype,t)}init(){}formats(){return Is()}parse(){return Is()}format(){return Is()}add(){return Is()}diff(){return Is()}startOf(){return Is()}endOf(){return Is()}}var QD={_date:rd};function JD(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?wO:$n;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function hr(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var nI={evaluateInteractionItems:hr,modes:{index(e,t,n,s){const i=Rs(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=Rs(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===t)}function Jf(e,t){return e.filter(n=>U_.indexOf(n.pos)===-1&&n.box.axis===t)}function po(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function sI(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;nc.box.fullSize),!0),s=po(fo(t,"left"),!0),i=po(fo(t,"right")),o=po(fo(t,"top"),!0),r=po(fo(t,"bottom")),a=Jf(t,"x"),l=Jf(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:fo(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Zf(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function K_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function aI(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!$t(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&K_(r,o.getPadding());const a=Math.max(0,t.outerWidth-Zf(r,e,"left","right")),l=Math.max(0,t.outerHeight-Zf(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function lI(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function cI(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function xo(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const u=l.reduce((_,v)=>v.box.options&&v.box.options.display===!1?_:_+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);K_(f,ge(s));const p=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=oI(l.concat(c),d);xo(a.fullSize,p,d,m),xo(l,p,d,m),xo(c,p,d,m)&&xo(l,p,d,m),lI(p),tp(a.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,tp(a.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Bt(a.chartArea,_=>{const v=_.box;Object.assign(v,e.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Y_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class uI extends Y_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ua="$chartjs",dI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ep=e=>e===null||e==="";function hI(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[ua]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ep(i)){const o=Nf(e,"width");o!==void 0&&(e.width=o)}if(ep(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Nf(e,"height");o!==void 0&&(e.height=o)}return e}const q_=gD?{passive:!0}:!1;function fI(e,t,n){e.addEventListener(t,n,q_)}function pI(e,t,n){e.canvas.removeEventListener(t,n,q_)}function gI(e,t){const n=dI[e.type]||e.type,{x:s,y:i}=Rs(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function ka(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function mI(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ka(a.addedNodes,s),r=r&&!ka(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function _I(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ka(a.removedNodes,s),r=r&&!ka(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const er=new Map;let np=0;function G_(){const e=window.devicePixelRatio;e!==np&&(np=e,er.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function bI(e,t){er.size||window.addEventListener("resize",G_),er.set(e,t)}function vI(e){er.delete(e),er.size||window.removeEventListener("resize",G_)}function yI(e,t,n){const s=e.canvas,i=s&&od(s);if(!i)return;const o=A_((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),bI(e,o),r}function ec(e,t,n){n&&n.disconnect(),t==="resize"&&vI(e)}function xI(e,t,n){const s=e.canvas,i=A_(o=>{e.ctx!==null&&n(gI(o,e))},e);return fI(s,t,i),i}class wI extends Y_{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(hI(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[ua])return!1;const s=n[ua].initial;["height","width"].forEach(o=>{const r=s[o];It(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ua],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:mI,detach:_I,resize:yI}[n]||xI;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:ec,detach:ec,resize:ec}[n]||pI)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return pD(t,n,s,i)}isAttached(t){const n=od(t);return!!(n&&n.isConnected)}}function EI(e){return!id()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?uI:wI}var ea;let Fn=(ea=class{constructor(){it(this,"x");it(this,"y");it(this,"active",!1);it(this,"options");it(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return Yi(this.x)&&Yi(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},it(ea,"defaults",{}),it(ea,"defaultRoutes"),ea);function SI(e,t){const n=e.options.ticks,s=AI(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?TI(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return PI(t,c,o,r/i),c;const u=CI(o,t,i);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(qr(t,c,u,It(p)?0:a-p,a),d=0,f=r-1;di)return l}return Math.max(i,1)}function TI(e){const t=[];let n,s;for(n=0,s=e.length;ne==="left"?"right":e==="right"?"left":e,sp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ip=(e,t)=>Math.min(t||e,e);function op(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function OI(e,t){Bt(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;os?s:n,s=i&&n>s?n:s,{min:Pe(n,Pe(s,n)),max:Pe(s,Pe(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ht(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=KO(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=le(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),d+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-go(t.grid)-n.padding-rp(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Xu(Math.min(Math.asin(le((u.highest.height+6)/a,-1,1)),Math.asin(le(l/c,-1,1))-Math.asin(le(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Ht(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ht(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=rp(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=go(o)+l):(t.height=this.maxHeight,t.width=go(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=s.padding*2,m=tn(this.labelRotation),_=Math.cos(m),v=Math.sin(m);if(a){const x=s.mirror?0:v*d.width+_*f.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:_*d.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,u,v,_)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=s*n.height):(f=s*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ht(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n({width:r[$]||0,height:a[$]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return xO(this._alignToPixels?Ds(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/s:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=go(o),p=[],m=a.setContext(this.getContext()),_=m.display?m.width:0,v=_/2,x=function(R){return Ds(s,R,_)};let S,P,A,y,E,C,w,$,D,I,N,Q;if(r==="top")S=x(this.bottom),C=this.bottom-f,$=S-v,I=x(t.top)+v,Q=t.bottom;else if(r==="bottom")S=x(this.top),I=t.top,Q=x(t.bottom)-v,C=S+v,$=this.top+f;else if(r==="left")S=x(this.right),E=this.right-f,w=S-v,D=x(t.left)+v,N=t.right;else if(r==="right")S=x(this.left),D=t.left,N=x(t.right)-v,E=S+v,w=this.left+f;else if(n==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}I=t.top,Q=t.bottom,C=S+v,$=C+f}else if(n==="y"){if(r==="center")S=x((t.left+t.right)/2);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}E=S-v,w=E-f,D=t.left,N=t.right}const Y=Et(i.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/Y));for(P=0;P0&&(Ct-=At/2);break}mt={left:Ct,top:Mt,width:At+pt.width,height:Pt+pt.height,color:H.backdropColor}}v.push({label:A,font:$,textOffset:N,options:{rotation:_,color:W,strokeColor:U,strokeWidth:rt,textAlign:ct,textBaseline:Q,translation:[y,E],backdrop:mt}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-tn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");Zt.route(o,i,l,a)})}function BI(e){return"id"in e&&"defaults"in e}class VI{constructor(){this.controllers=new Gr(en,"datasets",!0),this.elements=new Gr(Fn,"elements"),this.plugins=new Gr(Object,"plugins"),this.scales=new Gr(si,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Bt(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Gu(t);Ht(s["before"+i],[],s),n[t](s),Ht(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;no.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function jI(e){const t={},n=[],s=Object.keys(an.plugins.items);for(let o=0;o1&&ap(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function GI(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return lp(e,"x",n[0])||lp(e,"y",n[0])}return{}}function XI(e,t){const n=Qs[e.type]||{scales:{}},s=t.scales||{},i=Rc(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!$t(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Nc(r,a,GI(r,e),Zt.scales[a.type]),c=YI(l,i),u=n.scales||{};o[r]=Mo(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Rc(a,t),u=(Qs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=KI(d,l),p=r[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),Mo(o[p],[{axis:f},s[p],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Mo(a,[Zt.scales[a.type],Zt.scale])}),o}function X_(e){const t=e.options||(e.options={});t.plugins=Et(t.plugins,{}),t.scales=XI(e,t)}function Q_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function QI(e){return e=e||{},e.data=Q_(e.data),X_(e),e}const cp=new Map,J_=new Set;function Xr(e,t){let n=cp.get(e);return n||(n=t(),cp.set(e,n),J_.add(n)),n}const mo=(e,t,n)=>{const s=fs(t,n);s!==void 0&&e.add(s)};let JI=class{constructor(t){this._config=QI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Q_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),X_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Xr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Xr(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Xr(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Xr(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>mo(l,t,d))),u.forEach(d=>mo(l,i,d)),u.forEach(d=>mo(l,Qs[o]||{},d)),u.forEach(d=>mo(l,Zt,d)),u.forEach(d=>mo(l,Ic,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),J_.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Qs[n]||{},Zt.datasets[n]||{},{type:n},Zt,Ic]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=up(this._resolverCache,t,i);let l=r;if(t2(r,n)){o.$shared=!1,s=ps(s)?s():s;const c=this.createResolver(t,s,a);l=qi(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=up(this._resolverCache,t,s);return $t(n)?qi(o,n,void 0,i):o}};function up(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:ed(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const ZI=e=>$t(e)&&Object.getOwnPropertyNames(e).some(t=>ps(e[t]));function t2(e,t){const{isScriptable:n,isIndexable:s}=M_(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(ps(a)||ZI(a))||r&&zt(a))return!0}return!1}var e2="4.4.1";const n2=["top","bottom","left","right","chartArea"];function dp(e,t){return e==="top"||e==="bottom"||n2.indexOf(e)===-1&&t==="x"}function hp(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function fp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ht(n&&n.onComplete,[e],t)}function s2(e){const t=e.chart,n=t.options.animation;Ht(n&&n.onProgress,[e],t)}function Z_(e){return id()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const da={},pp=e=>{const t=Z_(e);return Object.values(da).filter(n=>n.canvas===t).pop()};function i2(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function o2(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Qr(e,t,n){return e.options.clip?e[n]:t[n]}function r2(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Qr(n,t,"left"),right:Qr(n,t,"right"),top:Qr(s,t,"top"),bottom:Qr(s,t,"bottom")}:t}var Un;let fr=(Un=class{static register(...t){an.add(...t),gp()}static unregister(...t){an.remove(...t),gp()}constructor(t,n){const s=this.config=new JI(n),i=Z_(t),o=pp(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||EI(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=cO(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new HI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=AO(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],da[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}En.listen(this,"complete",fp),En.listen(this,"progress",s2),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return It(t)?n&&o?o:i?s/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return an}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Df(this.canvas,this.ctx),this}stop(){return En.stop(this),this}resize(t,n){En.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Rf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Ht(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Bt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Nc(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Bt(o,r=>{const a=r.options,l=a.id,c=Nc(l,a),u=Et(a.type,r.dtype);(a.position===void 0||dp(a.position,c)!==dp(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=an.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Bt(i,(r,a)=>{r||delete s[a]}),Bt(s,r=>{Ke.configure(this,r,r.options),Ke.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;in.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hp("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Bt(this.scales,t=>{Ke.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Sf(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;i2(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ke.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Bt(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=r2(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&ul(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&dl(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Mn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=nI.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=bs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Jo(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),En.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Bt(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Bt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Bt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Ea(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=gO(t),c=o2(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Ht(o.onHover,[t,a,this],this),l&&Ht(o.onClick,[t,a,this],this));const u=!Ea(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},it(Un,"defaults",Zt),it(Un,"instances",da),it(Un,"overrides",Qs),it(Un,"registry",an),it(Un,"version",e2),it(Un,"getChart",pp),Un);function gp(){return Bt(fr.instances,e=>e._plugins.invalidate())}function a2(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+te,s-te),e.closePath(),e.clip()}function l2(e){return td(e,["outerStart","outerEnd","innerStart","innerEnd"])}function c2(e,t,n,s){const i=l2(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return le(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:le(i.innerStart,0,r),innerEnd:le(i.innerEnd,0,r)}}function gi(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function $a(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let p=0;const m=i-l;if(s){const H=u>0?u-s:0,R=d>0?d-s:0,W=(H+R)/2,U=W!==0?m*W/(W+s):m;p=(m-U)/2}const _=Math.max(.001,m*d-n/Yt)/d,v=(m-_)/2,x=l+v+p,S=i-v-p,{outerStart:P,outerEnd:A,innerStart:y,innerEnd:E}=c2(t,f,d,S-x),C=d-P,w=d-A,$=x+P/C,D=S-A/w,I=f+y,N=f+E,Q=x+y/I,Y=S-E/N;if(e.beginPath(),o){const H=($+D)/2;if(e.arc(r,a,d,$,H),e.arc(r,a,d,H,D),A>0){const rt=gi(w,D,r,a);e.arc(rt.x,rt.y,A,D,S+te)}const R=gi(N,S,r,a);if(e.lineTo(R.x,R.y),E>0){const rt=gi(N,Y,r,a);e.arc(rt.x,rt.y,E,S+te,Y+Math.PI)}const W=(S-E/f+(x+y/f))/2;if(e.arc(r,a,f,S-E/f,W,!0),e.arc(r,a,f,W,x+y/f,!0),y>0){const rt=gi(I,Q,r,a);e.arc(rt.x,rt.y,y,Q+Math.PI,x-te)}const U=gi(C,x,r,a);if(e.lineTo(U.x,U.y),P>0){const rt=gi(C,$,r,a);e.arc(rt.x,rt.y,P,x-te,$)}}else{e.moveTo(r,a);const H=Math.cos($)*d+r,R=Math.sin($)*d+a;e.lineTo(H,R);const W=Math.cos(D)*d+r,U=Math.sin(D)*d+a;e.lineTo(W,U)}e.closePath()}function u2(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){$a(e,t,n,s,l,i);for(let c=0;c=Kt||Zo(r,l,c),v=kn(a,u+p,d+p);return _&&v}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>Kt?Math.floor(i/Kt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Yt,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,u2(n,this,u,r,a),d2(n,this,u,r,a),n.restore()}}it(yi,"id","arc"),it(yi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),it(yi,"defaultRoutes",{backgroundColor:"backgroundColor"}),it(yi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function tb(e,t,n=t){e.lineCap=Et(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Et(n.borderDash,t.borderDash)),e.lineDashOffset=Et(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Et(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Et(n.borderWidth,t.borderWidth),e.strokeStyle=Et(n.borderColor,t.borderColor)}function h2(e,t,n){e.lineTo(n.x,n.y)}function f2(e){return e.stepped?NO:e.tension||e.cubicInterpolationMode==="monotone"?FO:h2}function eb(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=ia&&o>a;return{count:s,start:l,loop:t.loop,ilen:c(r+(c?a-A:A))%o,P=()=>{_!==v&&(e.lineTo(u,v),e.lineTo(u,_),e.lineTo(u,x))};for(l&&(p=i[S(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=i[S(f)],p.skip)continue;const A=p.x,y=p.y,E=A|0;E===m?(y<_?_=y:y>v&&(v=y),u=(d*u+A)/++d):(P(),e.lineTo(A,y),m=E,d=0,_=v=y),x=y}P()}function Fc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?g2:p2}function m2(e){return e.stepped?mD:e.tension||e.cubicInterpolationMode==="monotone"?_D:Ns}function _2(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),tb(e,t.options),e.stroke(i)}function b2(e,t,n,s){const{segments:i,options:o}=t,r=Fc(t);for(const a of i)tb(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const v2=typeof Path2D=="function";function y2(e,t,n,s){v2&&!t.options.segment?_2(e,t,n,s):b2(e,t,n,s)}class On extends Fn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;lD(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=ED(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=H_(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=m2(s);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function mp(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,p,m,_;for(r[l++]=e[u],d=0;dp&&(p=m,f=e[S],_=S);r[l++]=f,u=_}return r[l++]=e[c],r}function T2(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,p,m,_;const v=[],x=t+n-1,S=e[t].x,A=e[x].x-S;for(r=t;r_&&(_=c,f=r),i=(o*i+a.x)/++o;else{const E=r-1;if(!It(d)&&!It(f)){const C=Math.min(d,f),w=Math.max(d,f);C!==p&&C!==E&&v.push({...e[C],x:i}),w!==p&&w!==E&&v.push({...e[w],x:i})}r>0&&E!==p&&v.push(e[E]),v.push(a),u=y,o=0,m=_=c,d=f=p=r}}return v}function sb(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _p(e){e.data.datasets.forEach(t=>{sb(t)})}function P2(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=le($n(t,o.axis,r).lo,0,n-1)),c?i=le($n(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var ib={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){_p(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(yo([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=P2(l,c);const p=n.threshold||4*s;if(f<=p){sb(i);return}It(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let m;switch(n.algorithm){case"lttb":m=C2(c,d,f,s,n);break;case"min-max":m=T2(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=m})},destroy(e){_p(e)}};function k2(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=ad(l,c,i);const u=Bc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=H_(t,u);for(const f of d){const p=Bc(n,o[f.start],o[f.end],f.loop),m=V_(a,i,p);for(const _ of m)r.push({source:_,target:f,start:{[n]:bp(u,p,"start",Math.max)},end:{[n]:bp(u,p,"end",Math.min)}})}}return r}function Bc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=$e(i),o=$e(o)),{property:e,start:i,end:o}}function $2(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=ad(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function ad(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function bp(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function ob(e,t){let n=[],s=!1;return zt(e)?(s=!0,n=e):n=$2(e,t),n.length?new On({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function vp(e){return e&&e.fill!==!1}function M2(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Jt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function O2(e,t,n){const s=R2(e);if($t(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return Jt(i)&&Math.floor(i)===i?D2(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function D2(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function I2(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:$t(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function L2(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:$t(e)?s=e.value:s=t.getBaseValue(),s}function R2(e){const t=e.options,n=t.fill;let s=Et(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function N2(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=F2(t,n);a.push(ob({x:null,y:t.bottom},s));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&ic(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;vp(o)&&ic(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!vp(s)||n.drawTime!=="beforeDatasetDraw"||ic(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ep=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},q2=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sp extends Fn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ht(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=oe(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Ep(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((m,_)=>{const v=s+n/2+o.measureText(m.text).width;(_===0||c[c.length-1]+v+2*a>r)&&(d+=u,c[c.length-(_>0?0:1)]=0,p+=u,f++),l[_]={left:0,top:p,row:f,width:v,height:i},c[c.length-1]+=v+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,m=0,_=0;return this.legendItems.forEach((v,x)=>{const{itemWidth:S,itemHeight:P}=G2(s,n,o,v,i);x>0&&p+P+2*a>u&&(d+=f+a,c.push({width:f,height:p}),m+=f+a,_++,f=p=0),l[x]={left:m,top:p,col:_,width:S,height:P},f=Math.max(f,S),p+=P+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=Ci(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=fe(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=fe(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ul(t,this),this._draw(),dl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=Zt.color,l=Ci(t.rtl,this.left,this.width),c=oe(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:_,itemHeight:v}=Ep(r,d),x=function(E,C,w){if(isNaN(m)||m<=0||isNaN(_)||_<0)return;i.save();const $=Et(w.lineWidth,1);if(i.fillStyle=Et(w.fillStyle,a),i.lineCap=Et(w.lineCap,"butt"),i.lineDashOffset=Et(w.lineDashOffset,0),i.lineJoin=Et(w.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Et(w.strokeStyle,a),i.setLineDash(Et(w.lineDash,[])),r.usePointStyle){const D={radius:_*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:$},I=l.xPlus(E,m/2),N=C+f;k_(i,D,I,N,r.pointStyleWidth&&m)}else{const D=C+Math.max((d-_)/2,0),I=l.leftForLtr(E,m),N=Ks(w.borderRadius);i.beginPath(),Object.values(N).some(Q=>Q!==0)?tr(i,{x:I,y:D,w:m,h:_,radius:N}):i.rect(I,D,m,_),i.fill(),$!==0&&i.stroke()}i.restore()},S=function(E,C,w){Js(i,w.text,E,C+v/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},P=this.isHorizontal(),A=this._computeTitleHeight();P?p={x:fe(o,this.left+u,this.right-s[0]),y:this.top+u+A,line:0}:p={x:this.left+u,y:fe(o,this.top+A+u,this.bottom-n[0].height),line:0},N_(this.ctx,t.textDirection);const y=v+u;this.legendItems.forEach((E,C)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,$=l.textAlign(E.textAlign||(E.textAlign=r.textAlign)),D=m+f+w;let I=p.x,N=p.y;l.setWidth(this.width),P?C>0&&I+D+u>this.right&&(N=p.y+=y,p.line++,I=p.x=fe(o,this.left+u,this.right-s[p.line])):C>0&&N+y>this.bottom&&(I=p.x=I+n[p.line].width+u,p.line++,N=p.y=fe(o,this.top+A+u,this.bottom-n[p.line].height));const Q=l.x(I);if(x(Q,N,E),I=CO($,I+m+f,P?I+D:this.right,t.rtl),S(l.x(I),N,E),P)p.x+=D+u;else if(typeof E.text!="string"){const Y=c.lineHeight;p.y+=lb(E,Y)+u}else p.y+=y}),F_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=oe(n.font),i=ge(n.padding);if(!n.display)return;const o=Ci(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=fe(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((_,v)=>Math.max(_,v.height),0);u=c+fe(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=fe(a,d,d+f);r.textAlign=o.textAlign(Ju(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Js(r,n.text,p,u,s)}_computeTitleHeight(){const t=this.options.title,n=oe(t.font),s=ge(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(kn(t,this.left,this.right)&&kn(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function Q2(e,t,n){let s=e;return typeof t.text!="string"&&(s=lb(t,n)),s}function lb(e,t){const n=e.text?e.text.length:0;return t*n}function J2(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var cb={id:"legend",_element:Sp,start(e,t,n){const s=e.legend=new Sp({ctx:e.ctx,options:n,chart:e});Ke.configure(e,s,n),Ke.addBox(e,s)},stop(e){Ke.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;Ke.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=ge(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ub extends Fn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=zt(s.text)?s.text.length:1;this._padding=ge(s.padding);const o=i*oe(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=fe(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=fe(a,i,n),l=Yt*-.5):(u=o-t,d=fe(a,n,i),l=Yt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=oe(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Js(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:Ju(n.align),textBaseline:"middle",translation:[r,a]})}}function Z2(e,t){const n=new ub({ctx:e.ctx,options:t,chart:e});Ke.configure(e,n,t),Ke.addBox(e,n),e.titleBlock=n}var db={id:"title",_element:ub,start(e,t,n){Z2(e,n)},stop(e){const t=e.titleBlock;Ke.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;Ke.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wo={average(e){if(!e.length)return!1;let t,n,s=0,i=0,o=0;for(t=0,n=e.length;ta({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=S_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var En=new TD;const Hf="transparent",PD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=Mf(e||Hf),i=s.valid&&Mf(t||Hf);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class kD{constructor(t,n,s,i){const o=n[s];i=yo([t.to,i,o,t.from]);const r=yo([t.from,o,i]);this._active=!0,this._fn=t.fn||PD[t.type||typeof r],this._easing=Do[t.easing]||Do.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yo([t.to,n,i,t.from]),this._from=yo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i{const o=t[i];if(!$t(o))return;const r={};for(const a of n)r[a]=o[a];(zt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,n){const s=n.options,i=MD(t,s);if(!i)return[];const o=this._createAnimations(i,s);return s.$shared&&$D(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){const s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new kD(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return En.add(this._chart,s),!0}}function $D(e,t){const n=[],s=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Kf(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,u=LD(o,r,s),d=t.length;let f;for(let p=0;pn[s].axis===t).shift()}function FD(e,t){return bs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function BD(e,t,n){return bs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ho(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}const Ql=e=>e==="reset"||e==="none",Yf=(e,t)=>t?e:Object.assign({},e),VD=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:W_(n,!0),values:null};class en{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=zf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ho(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,p,m)=>d==="x"?f:d==="r"?m:p,o=n.xAxisID=Et(s.xAxisID,Xl(t,"x")),r=n.yAxisID=Et(s.yAxisID,Xl(t,"y")),a=n.rAxisID=Et(s.rAxisID,Xl(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,r,a),u=n.vAxisID=i(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pf(this._data,this),t._stacked&&ho(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if($t(n))this._data=ID(n);else if(s!==n){if(s){Pf(s,this);const i=this._cachedMeta;ho(i),i._parsed=[]}n&&Object.isExtensible(n)&&AO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=zf(n.vScale,n),n.stack!==s.stack&&(i=!0,ho(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&Kf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{zt(i[t])?f=this.parseArrayData(s,i,t,n):$t(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);const p=()=>d[a]===null||c&&d[a]_||d<_}for(f=0;f=0;--f)if(!m()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,o,r;for(i=0,o=n.length;i=0&&tthis.getContext(s,i,n),_=c.resolveNamedOptions(f,p,m,d);return _.$shared&&(_.$shared=l,o[r]=Object.freeze(Yf(_,l))),_}_resolveAnimations(t,n,s){const i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,s,n))}const c=new j_(i,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ql(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Ql(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Ql(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function jD(e){const t=e.iScale,n=HD(t,e.type);let s=t._length,i,o,r,a;const l=()=>{r===32767||r===-32768||(Jo(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:r,max:a}}function z_(e,t,n,s){return zt(e)?UD(e,t,n,s):t[n.axis]=n.parse(e,s),t}function qf(e,t,n,s){const i=e.iScale,o=e.vScale,r=i.getLabels(),a=i===o,l=[];let c,u,d,f;for(c=n,u=n+s;c=n?1:-1)}function YD(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.basel.controller.options.grouped),o=s.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Lt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let o,r;for(o=0,r=n.data.length;o=0;--s)n=Math.max(n,t[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:o}=n,r=this.getParsed(t),a=i.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:s[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=r.axis,d=a.axis;for(let f=n;fZo(P,a,l,!0)?1:Math.max(A,A*n,y,y*n),m=(P,A,y)=>Zo(P,a,l,!0)?-1:Math.min(A,A*n,y,y*n),_=p(0,c,d),v=p(te,u,f),x=m(qt,c,d),S=m(qt+te,u,f);s=(_-x)/2,i=(v-S)/2,o=-(_+x)/2,r=-(v+S)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}class Vs extends en{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=l=>+s[l];if($t(s[t])){const{key:l="value"}=this._parsing;o=c=>+fs(s[c],l)}let r,a;for(r=t,a=t+n;r0&&!isNaN(t)?Yt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const s=this.chart;let i,o,r,a,l;if(!t){for(i=0,o=s.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),it(Vs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});class Pi extends en{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=C_(n,i,r);this._drawStart=a,this._drawCount=l,T_(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!r,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const o=i==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=r.axis,p=a.axis,{spanGaps:m,segment:_}=this.options,v=Yi(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",S=n+s,P=t.length;let A=n>0&&this.getParsed(n-1);for(let y=0;y=S){C.skip=!0;continue}const w=this.getParsed(y),$=Lt(w[p]),D=C[f]=r.getPixelForValue(w[f],y),I=C[p]=o||$?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],y);C.skip=isNaN(D)||isNaN(I)||$,C.stop=y>0&&Math.abs(w[f]-A[f])>v,_&&(C.parsed=w,C.raw=c.data[y]),d&&(C.options=u||this.resolveDataElementOptions(y,E.active?"active":i)),x||this.updateElement(E,y,C,i),A=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}it(Pi,"id","line"),it(Pi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),it(Pi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ro extends en{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=dr(n._parsed[t].r,s.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,s=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),r=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,s,i){const o=i==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*qt;let p=f,m;const _=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,s){return this.chart.getDataVisibility(t)?tn(this.resolveDataElementOptions(t,n).angle||s):0}}it(Ro,"id","polarArea"),it(Ro,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),it(Ro,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ka extends Vs{}it(ka,"id","pie"),it(ka,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class No extends en{getLabelAndValue(t){const n=this._cachedMeta.vScale,s=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(t,n,s,i){return L_.bind(this)(t,n,s,i)}update(t){const n=this._cachedMeta,s=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(s.points=i,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:r};this.updateElement(s,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,s,i){const o=this._cachedMeta.rScale,r=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let A=n;A0&&Math.abs(E[p]-P[p])>x,v&&(C.parsed=E,C.raw=c.data[A]),f&&(C.options=d||this.resolveDataElementOptions(A,y.active?"active":i)),S||this.updateElement(y,A,C,i),P=E}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=t.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,r)/2}}it(Fo,"id","scatter"),it(Fo,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),it(Fo,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Is(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class rd{constructor(t){it(this,"options");this.options=t||{}}static override(t){Object.assign(rd.prototype,t)}init(){}formats(){return Is()}parse(){return Is()}format(){return Is()}add(){return Is()}diff(){return Is()}startOf(){return Is()}endOf(){return Is()}}var JD={_date:rd};function ZD(e,t,n,s){const{controller:i,data:o,_sorted:r}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?EO:$n;if(s){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function hr(e,t,n,s,i){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a{l[r](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:o}var sI={evaluateInteractionItems:hr,modes:{index(e,t,n,s){const i=Rs(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,s){const i=Rs(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Zl(e,i,o,s,r):tc(e,i,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===t)}function Jf(e,t){return e.filter(n=>U_.indexOf(n.pos)===-1&&n.box.axis===t)}function po(e,t){return e.sort((n,s)=>{const i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function iI(e){const t=[];let n,s,i,o,r,a;for(n=0,s=(e||[]).length;nc.box.fullSize),!0),s=po(fo(t,"left"),!0),i=po(fo(t,"right")),o=po(fo(t,"top"),!0),r=po(fo(t,"bottom")),a=Jf(t,"x"),l=Jf(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(l).concat(r).concat(a),chartArea:fo(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:o.concat(r).concat(a)}}function Zf(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function K_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function lI(e,t,n,s){const{pos:i,box:o}=n,r=e.maxPadding;if(!$t(i)){n.size&&(e[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&K_(r,o.getPadding());const a=Math.max(0,t.outerWidth-Zf(r,e,"left","right")),l=Math.max(0,t.outerHeight-Zf(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function cI(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function uI(e,t){const n=t.maxPadding;function s(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function xo(e,t,n,s){const i=[];let o,r,a,l,c,u;for(o=0,r=e.length,c=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const u=l.reduce((_,v)=>v.box.options&&v.box.options.display===!1?_:_+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},i);K_(f,ge(s));const p=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),m=rI(l.concat(c),d);xo(a.fullSize,p,d,m),xo(l,p,d,m),xo(c,p,d,m)&&xo(l,p,d,m),cI(p),tp(a.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,tp(a.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Bt(a.chartArea,_=>{const v=_.box;Object.assign(v,e.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Y_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class dI extends Y_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const da="$chartjs",hI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ep=e=>e===null||e==="";function fI(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[da]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ep(i)){const o=Nf(e,"width");o!==void 0&&(e.width=o)}if(ep(s))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Nf(e,"height");o!==void 0&&(e.height=o)}return e}const q_=mD?{passive:!0}:!1;function pI(e,t,n){e.addEventListener(t,n,q_)}function gI(e,t,n){e.canvas.removeEventListener(t,n,q_)}function mI(e,t){const n=hI[e.type]||e.type,{x:s,y:i}=Rs(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function $a(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function _I(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||$a(a.addedNodes,s),r=r&&!$a(a.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function bI(e,t,n){const s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||$a(a.removedNodes,s),r=r&&!$a(a.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const er=new Map;let np=0;function G_(){const e=window.devicePixelRatio;e!==np&&(np=e,er.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function vI(e,t){er.size||window.addEventListener("resize",G_),er.set(e,t)}function yI(e){er.delete(e),er.size||window.removeEventListener("resize",G_)}function xI(e,t,n){const s=e.canvas,i=s&&od(s);if(!i)return;const o=A_((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(i),vI(e,o),r}function ec(e,t,n){n&&n.disconnect(),t==="resize"&&yI(e)}function wI(e,t,n){const s=e.canvas,i=A_(o=>{e.ctx!==null&&n(mI(o,e))},e);return pI(s,t,i),i}class EI extends Y_{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(fI(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[da])return!1;const s=n[da].initial;["height","width"].forEach(o=>{const r=s[o];Lt(r)?n.removeAttribute(o):n.setAttribute(o,r)});const i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[da],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),r={attach:_I,detach:bI,resize:xI}[n]||wI;i[n]=r(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:ec,detach:ec,resize:ec}[n]||gI)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return gD(t,n,s,i)}isAttached(t){const n=od(t);return!!(n&&n.isConnected)}}function SI(e){return!id()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?dI:EI}var na;let Fn=(na=class{constructor(){it(this,"x");it(this,"y");it(this,"active",!1);it(this,"options");it(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return Yi(this.x)&&Yi(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}},it(na,"defaults",{}),it(na,"defaultRoutes"),na);function AI(e,t){const n=e.options.ticks,s=CI(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?PI(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>i)return kI(t,c,o,r/i),c;const u=TI(o,t,i);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(Gr(t,c,u,Lt(p)?0:a-p,a),d=0,f=r-1;di)return l}return Math.max(i,1)}function PI(e){const t=[];let n,s;for(n=0,s=e.length;ne==="left"?"right":e==="right"?"left":e,sp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ip=(e,t)=>Math.min(t||e,e);function op(e,t){const n=[],s=e.length/t,i=e.length;let o=0;for(;or+a)))return l}function DI(e,t){Bt(e,n=>{const s=n.gc,i=s.length/2;let o;if(i>t){for(o=0;os?s:n,s=i&&n>s?n:s,{min:Pe(n,Pe(s,n)),max:Pe(s,Pe(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ht(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=YO(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=le(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),d+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-go(t.grid)-n.padding-rp(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Xu(Math.min(Math.asin(le((u.highest.height+6)/a,-1,1)),Math.asin(le(l/c,-1,1))-Math.asin(le(f/c,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Ht(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ht(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=rp(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=go(o)+l):(t.height=this.maxHeight,t.width=go(o)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=s.padding*2,m=tn(this.labelRotation),_=Math.cos(m),v=Math.sin(m);if(a){const x=s.mirror?0:v*d.width+_*f.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:_*d.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,u,v,_)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=s*n.height):(f=s*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ht(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n({width:r[$]||0,height:a[$]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return wO(this._alignToPixels?Ds(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/s:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:a}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=go(o),p=[],m=a.setContext(this.getContext()),_=m.display?m.width:0,v=_/2,x=function(R){return Ds(s,R,_)};let S,P,A,y,E,C,w,$,D,I,N,Q;if(r==="top")S=x(this.bottom),C=this.bottom-f,$=S-v,I=x(t.top)+v,Q=t.bottom;else if(r==="bottom")S=x(this.top),I=t.top,Q=x(t.bottom)-v,C=S+v,$=this.top+f;else if(r==="left")S=x(this.right),E=this.right-f,w=S-v,D=x(t.left)+v,N=t.right;else if(r==="right")S=x(this.left),D=t.left,N=x(t.right)-v,E=S+v,w=this.left+f;else if(n==="x"){if(r==="center")S=x((t.top+t.bottom)/2+.5);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}I=t.top,Q=t.bottom,C=S+v,$=C+f}else if(n==="y"){if(r==="center")S=x((t.left+t.right)/2);else if($t(r)){const R=Object.keys(r)[0],W=r[R];S=x(this.chart.scales[R].getPixelForValue(W))}E=S-v,w=E-f,D=t.left,N=t.right}const Y=Et(i.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/Y));for(P=0;P0&&(Ct-=At/2);break}mt={left:Ct,top:Mt,width:At+pt.width,height:Pt+pt.height,color:H.backdropColor}}v.push({label:A,font:$,textOffset:N,options:{rotation:_,color:W,strokeColor:U,strokeWidth:rt,textAlign:ct,textBaseline:Q,translation:[y,E],backdrop:mt}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-tn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return n==="left"?i?(u=this.right+o,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let o,r;for(o=0,r=n.length;o{const s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");Zt.route(o,i,l,a)})}function VI(e){return"id"in e&&"defaults"in e}class HI{constructor(){this.controllers=new Xr(en,"datasets",!0),this.elements=new Xr(Fn,"elements"),this.plugins=new Xr(Object,"plugins"),this.scales=new Xr(si,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Bt(i,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,s){const i=Gu(t);Ht(s["before"+i],[],s),n[t](s),Ht(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;no.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function WI(e){const t={},n=[],s=Object.keys(an.plugins.items);for(let o=0;o1&&ap(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function XI(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return lp(e,"x",n[0])||lp(e,"y",n[0])}return{}}function QI(e,t){const n=Qs[e.type]||{scales:{}},s=t.scales||{},i=Rc(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!$t(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Nc(r,a,XI(r,e),Zt.scales[a.type]),c=qI(l,i),u=n.scales||{};o[r]=Mo(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Rc(a,t),u=(Qs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=YI(d,l),p=r[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),Mo(o[p],[{axis:f},s[p],u[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Mo(a,[Zt.scales[a.type],Zt.scale])}),o}function X_(e){const t=e.options||(e.options={});t.plugins=Et(t.plugins,{}),t.scales=QI(e,t)}function Q_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function JI(e){return e=e||{},e.data=Q_(e.data),X_(e),e}const cp=new Map,J_=new Set;function Qr(e,t){let n=cp.get(e);return n||(n=t(),cp.set(e,n),J_.add(n)),n}const mo=(e,t,n)=>{const s=fs(t,n);s!==void 0&&e.add(s)};let ZI=class{constructor(t){this._config=JI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Q_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),X_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Qr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Qr(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Qr(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Qr(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:o}=this,r=this._cachedScopes(t,s),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>mo(l,t,d))),u.forEach(d=>mo(l,i,d)),u.forEach(d=>mo(l,Qs[o]||{},d)),u.forEach(d=>mo(l,Zt,d)),u.forEach(d=>mo(l,Ic,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),J_.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Qs[n]||{},Zt.datasets[n]||{},{type:n},Zt,Ic]}resolveNamedOptions(t,n,s,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=up(this._resolverCache,t,i);let l=r;if(e2(r,n)){o.$shared=!1,s=ps(s)?s():s;const c=this.createResolver(t,s,a);l=qi(r,s,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,s=[""],i){const{resolver:o}=up(this._resolverCache,t,s);return $t(n)?qi(o,n,void 0,i):o}};function up(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let o=s.get(i);return o||(o={resolver:ed(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,o)),o}const t2=e=>$t(e)&&Object.getOwnPropertyNames(e).some(t=>ps(e[t]));function e2(e,t){const{isScriptable:n,isIndexable:s}=M_(e);for(const i of t){const o=n(i),r=s(i),a=(r||o)&&e[i];if(o&&(ps(a)||t2(a))||r&&zt(a))return!0}return!1}var n2="4.4.1";const s2=["top","bottom","left","right","chartArea"];function dp(e,t){return e==="top"||e==="bottom"||s2.indexOf(e)===-1&&t==="x"}function hp(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function fp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ht(n&&n.onComplete,[e],t)}function i2(e){const t=e.chart,n=t.options.animation;Ht(n&&n.onProgress,[e],t)}function Z_(e){return id()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ha={},pp=e=>{const t=Z_(e);return Object.values(ha).filter(n=>n.canvas===t).pop()};function o2(e,t,n){const s=Object.keys(e);for(const i of s){const o=+i;if(o>=t){const r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function r2(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Jr(e,t,n){return e.options.clip?e[n]:t[n]}function a2(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Jr(n,t,"left"),right:Jr(n,t,"right"),top:Jr(s,t,"top"),bottom:Jr(s,t,"bottom")}:t}var Un;let fr=(Un=class{static register(...t){an.add(...t),gp()}static unregister(...t){an.remove(...t),gp()}constructor(t,n){const s=this.config=new ZI(n),i=Z_(t),o=pp(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||SI(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=uO(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=CO(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],ha[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}En.listen(this,"complete",fp),En.listen(this,"progress",i2),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return Lt(t)?n&&o?o:i?s/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return an}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Rf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Df(this.canvas,this.ctx),this}stop(){return En.stop(this),this}resize(t,n){En.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Rf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Ht(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Bt(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Nc(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Bt(o,r=>{const a=r.options,l=a.id,c=Nc(l,a),u=Et(a.type,r.dtype);(a.position===void 0||dp(a.position,c)!==dp(r.dposition))&&(a.position=r.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=an.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),Bt(i,(r,a)=>{r||delete s[a]}),Bt(s,r=>{Ke.configure(this,r,r.options),Ke.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;in.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hp("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Bt(this.scales,t=>{Ke.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Sf(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:o}of n){const r=s==="_removeElements"?-o:o;o2(t,i,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),i=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ke.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],Bt(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,o=a2(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&dl(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&hl(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Mn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const o=sI.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=bs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Jo(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),En.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,r),t[o]=r},i=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};Bt(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Bt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Bt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Sa(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=o(n,t),a=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:o}=this,r=n,a=this._getActiveElements(t,i,s,r),l=mO(t),c=r2(t,this._lastEvent,s,l);s&&(this._lastEvent=null,Ht(o.onHover,[t,a,this],this),l&&Ht(o.onClick,[t,a,this],this));const u=!Sa(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},it(Un,"defaults",Zt),it(Un,"instances",ha),it(Un,"overrides",Qs),it(Un,"registry",an),it(Un,"version",n2),it(Un,"getChart",pp),Un);function gp(){return Bt(fr.instances,e=>e._plugins.invalidate())}function l2(e,t,n){const{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,r,a,s-c,n+c),l>i?(c=i/l,e.arc(o,r,l,n+c,s-c,!0)):e.arc(o,r,i,n+te,s-te),e.closePath(),e.clip()}function c2(e){return td(e,["outerStart","outerEnd","innerStart","innerEnd"])}function u2(e,t,n,s){const i=c2(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(n-Math.min(o,l))*s/2;return le(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:le(i.innerStart,0,r),innerEnd:le(i.innerEnd,0,r)}}function gi(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function Ma(e,t,n,s,i,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let p=0;const m=i-l;if(s){const H=u>0?u-s:0,R=d>0?d-s:0,W=(H+R)/2,U=W!==0?m*W/(W+s):m;p=(m-U)/2}const _=Math.max(.001,m*d-n/qt)/d,v=(m-_)/2,x=l+v+p,S=i-v-p,{outerStart:P,outerEnd:A,innerStart:y,innerEnd:E}=u2(t,f,d,S-x),C=d-P,w=d-A,$=x+P/C,D=S-A/w,I=f+y,N=f+E,Q=x+y/I,Y=S-E/N;if(e.beginPath(),o){const H=($+D)/2;if(e.arc(r,a,d,$,H),e.arc(r,a,d,H,D),A>0){const rt=gi(w,D,r,a);e.arc(rt.x,rt.y,A,D,S+te)}const R=gi(N,S,r,a);if(e.lineTo(R.x,R.y),E>0){const rt=gi(N,Y,r,a);e.arc(rt.x,rt.y,E,S+te,Y+Math.PI)}const W=(S-E/f+(x+y/f))/2;if(e.arc(r,a,f,S-E/f,W,!0),e.arc(r,a,f,W,x+y/f,!0),y>0){const rt=gi(I,Q,r,a);e.arc(rt.x,rt.y,y,Q+Math.PI,x-te)}const U=gi(C,x,r,a);if(e.lineTo(U.x,U.y),P>0){const rt=gi(C,$,r,a);e.arc(rt.x,rt.y,P,x-te,$)}}else{e.moveTo(r,a);const H=Math.cos($)*d+r,R=Math.sin($)*d+a;e.lineTo(H,R);const W=Math.cos(D)*d+r,U=Math.sin(D)*d+a;e.lineTo(W,U)}e.closePath()}function d2(e,t,n,s,i){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Ma(e,t,n,s,l,i);for(let c=0;c=Yt||Zo(r,l,c),v=kn(a,u+p,d+p);return _&&v}getCenterPoint(n){const{x:s,y:i,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(o+r)/2,f=(a+l+u+c)/2;return{x:s+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>Yt?Math.floor(i/Yt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(qt,i||0)),u=o*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,d2(n,this,u,r,a),h2(n,this,u,r,a),n.restore()}}it(yi,"id","arc"),it(yi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),it(yi,"defaultRoutes",{backgroundColor:"backgroundColor"}),it(yi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function tb(e,t,n=t){e.lineCap=Et(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Et(n.borderDash,t.borderDash)),e.lineDashOffset=Et(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Et(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Et(n.borderWidth,t.borderWidth),e.strokeStyle=Et(n.borderColor,t.borderColor)}function f2(e,t,n){e.lineTo(n.x,n.y)}function p2(e){return e.stepped?FO:e.tension||e.cubicInterpolationMode==="monotone"?BO:f2}function eb(e,t,n={}){const s=e.length,{start:i=0,end:o=s-1}=n,{start:r,end:a}=t,l=Math.max(i,r),c=Math.min(o,a),u=ia&&o>a;return{count:s,start:l,loop:t.loop,ilen:c(r+(c?a-A:A))%o,P=()=>{_!==v&&(e.lineTo(u,v),e.lineTo(u,_),e.lineTo(u,x))};for(l&&(p=i[S(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=i[S(f)],p.skip)continue;const A=p.x,y=p.y,E=A|0;E===m?(y<_?_=y:y>v&&(v=y),u=(d*u+A)/++d):(P(),e.lineTo(A,y),m=E,d=0,_=v=y),x=y}P()}function Fc(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?m2:g2}function _2(e){return e.stepped?_D:e.tension||e.cubicInterpolationMode==="monotone"?bD:Ns}function b2(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),tb(e,t.options),e.stroke(i)}function v2(e,t,n,s){const{segments:i,options:o}=t,r=Fc(t);for(const a of i)tb(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const y2=typeof Path2D=="function";function x2(e,t,n,s){y2&&!t.options.segment?b2(e,t,n,s):v2(e,t,n,s)}class On extends Fn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;cD(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SD(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],o=this.points,r=H_(this,{property:n,start:i,end:i});if(!r.length)return;const a=[],l=_2(s);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function mp(e,t,n,s){const i=e.options,{[n]:o}=e.getProps([n],s);return Math.abs(t-o)=n)return e.slice(t,t+n);const r=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,f,p,m,_;for(r[l++]=e[u],d=0;dp&&(p=m,f=e[S],_=S);r[l++]=f,u=_}return r[l++]=e[c],r}function P2(e,t,n,s){let i=0,o=0,r,a,l,c,u,d,f,p,m,_;const v=[],x=t+n-1,S=e[t].x,A=e[x].x-S;for(r=t;r_&&(_=c,f=r),i=(o*i+a.x)/++o;else{const E=r-1;if(!Lt(d)&&!Lt(f)){const C=Math.min(d,f),w=Math.max(d,f);C!==p&&C!==E&&v.push({...e[C],x:i}),w!==p&&w!==E&&v.push({...e[w],x:i})}r>0&&E!==p&&v.push(e[E]),v.push(a),u=y,o=0,m=_=c,d=f=p=r}}return v}function sb(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _p(e){e.data.datasets.forEach(t=>{sb(t)})}function k2(e,t){const n=t.length;let s=0,i;const{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=le($n(t,o.axis,r).lo,0,n-1)),c?i=le($n(t,o.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var ib={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){_p(e);return}const s=e.width;e.data.datasets.forEach((i,o)=>{const{_data:r,indexAxis:a}=i,l=e.getDatasetMeta(o),c=r||i.data;if(yo([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=k2(l,c);const p=n.threshold||4*s;if(f<=p){sb(i);return}Lt(r)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let m;switch(n.algorithm){case"lttb":m=T2(c,d,f,s,n);break;case"min-max":m=P2(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=m})},destroy(e){_p(e)}};function $2(e,t,n){const s=e.segments,i=e.points,o=t.points,r=[];for(const a of s){let{start:l,end:c}=a;c=ad(l,c,i);const u=Bc(n,i[l],i[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=H_(t,u);for(const f of d){const p=Bc(n,o[f.start],o[f.end],f.loop),m=V_(a,i,p);for(const _ of m)r.push({source:_,target:f,start:{[n]:bp(u,p,"start",Math.max)},end:{[n]:bp(u,p,"end",Math.min)}})}}return r}function Bc(e,t,n,s){if(s)return;let i=t[e],o=n[e];return e==="angle"&&(i=$e(i),o=$e(o)),{property:e,start:i,end:o}}function M2(e,t){const{x:n=null,y:s=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=ad(r,a,i);const l=i[r],c=i[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function ad(e,t,n){for(;t>e;t--){const s=n[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function bp(e,t,n,s){return e&&t?s(e[n],t[n]):e?e[n]:t?t[n]:0}function ob(e,t){let n=[],s=!1;return zt(e)?(s=!0,n=e):n=M2(e,t),n.length?new On({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function vp(e){return e&&e.fill!==!1}function O2(e,t,n){let i=e[t].fill;const o=[t];let r;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Jt(i))return i;if(r=e[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function D2(e,t,n){const s=N2(e);if($t(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return Jt(i)&&Math.floor(i)===i?I2(s[0],t,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function I2(e,t,n,s){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=s?!1:n}function L2(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:$t(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function R2(e,t,n){let s;return e==="start"?s=n:e==="end"?s=t.options.reverse?t.min:t.max:$t(e)?s=e.value:s=t.getBaseValue(),s}function N2(e){const t=e.options,n=t.fill;let s=Et(n&&n.target,n);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function F2(e){const{scale:t,index:n,line:s}=e,i=[],o=s.segments,r=s.points,a=B2(t,n);a.push(ob({x:null,y:t.bottom},s));for(let l=0;l=0;--r){const a=i[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&ic(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const o=s[i].$filler;vp(o)&&ic(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const s=t.meta.$filler;!vp(s)||n.drawTime!=="beforeDatasetDraw"||ic(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ep=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},G2=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sp extends Fn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ht(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=oe(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Ep(s,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((m,_)=>{const v=s+n/2+o.measureText(m.text).width;(_===0||c[c.length-1]+v+2*a>r)&&(d+=u,c[c.length-(_>0?0:1)]=0,p+=u,f++),l[_]={left:0,top:p,row:f,width:v,height:i},c[c.length-1]+=v+a}),d}_fitCols(t,n,s,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,m=0,_=0;return this.legendItems.forEach((v,x)=>{const{itemWidth:S,itemHeight:P}=X2(s,n,o,v,i);x>0&&p+P+2*a>u&&(d+=f+a,c.push({width:f,height:p}),m+=f+a,_++,f=p=0),l[x]={left:m,top:p,col:_,width:S,height:P},f=Math.max(f,S),p+=P+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=Ci(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=fe(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=fe(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+i}else{let a=0,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=fe(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;dl(t,this),this._draw(),hl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,a=Zt.color,l=Ci(t.rtl,this.left,this.width),c=oe(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:_,itemHeight:v}=Ep(r,d),x=function(E,C,w){if(isNaN(m)||m<=0||isNaN(_)||_<0)return;i.save();const $=Et(w.lineWidth,1);if(i.fillStyle=Et(w.fillStyle,a),i.lineCap=Et(w.lineCap,"butt"),i.lineDashOffset=Et(w.lineDashOffset,0),i.lineJoin=Et(w.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Et(w.strokeStyle,a),i.setLineDash(Et(w.lineDash,[])),r.usePointStyle){const D={radius:_*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:$},I=l.xPlus(E,m/2),N=C+f;k_(i,D,I,N,r.pointStyleWidth&&m)}else{const D=C+Math.max((d-_)/2,0),I=l.leftForLtr(E,m),N=Ks(w.borderRadius);i.beginPath(),Object.values(N).some(Q=>Q!==0)?tr(i,{x:I,y:D,w:m,h:_,radius:N}):i.rect(I,D,m,_),i.fill(),$!==0&&i.stroke()}i.restore()},S=function(E,C,w){Js(i,w.text,E,C+v/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},P=this.isHorizontal(),A=this._computeTitleHeight();P?p={x:fe(o,this.left+u,this.right-s[0]),y:this.top+u+A,line:0}:p={x:this.left+u,y:fe(o,this.top+A+u,this.bottom-n[0].height),line:0},N_(this.ctx,t.textDirection);const y=v+u;this.legendItems.forEach((E,C)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,$=l.textAlign(E.textAlign||(E.textAlign=r.textAlign)),D=m+f+w;let I=p.x,N=p.y;l.setWidth(this.width),P?C>0&&I+D+u>this.right&&(N=p.y+=y,p.line++,I=p.x=fe(o,this.left+u,this.right-s[p.line])):C>0&&N+y>this.bottom&&(I=p.x=I+n[p.line].width+u,p.line++,N=p.y=fe(o,this.top+A+u,this.bottom-n[p.line].height));const Q=l.x(I);if(x(Q,N,E),I=TO($,I+m+f,P?I+D:this.right,t.rtl),S(l.x(I),N,E),P)p.x+=D+u;else if(typeof E.text!="string"){const Y=c.lineHeight;p.y+=lb(E,Y)+u}else p.y+=y}),F_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=oe(n.font),i=ge(n.padding);if(!n.display)return;const o=Ci(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=fe(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((_,v)=>Math.max(_,v.height),0);u=c+fe(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=fe(a,d,d+f);r.textAlign=o.textAlign(Ju(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Js(r,n.text,p,u,s)}_computeTitleHeight(){const t=this.options.title,n=oe(t.font),s=ge(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(kn(t,this.left,this.right)&&kn(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function J2(e,t,n){let s=e;return typeof t.text!="string"&&(s=lb(t,n)),s}function lb(e,t){const n=e.text?e.text.length:0;return t*n}function Z2(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var cb={id:"legend",_element:Sp,start(e,t,n){const s=e.legend=new Sp({ctx:e.ctx,options:n,chart:e});Ke.configure(e,s,n),Ke.addBox(e,s)},stop(e){Ke.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;Ke.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=ge(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ub extends Fn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=zt(s.text)?s.text.length:1;this._padding=ge(s.padding);const o=i*oe(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:o,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=fe(a,s,o),d=n+t,c=o-s):(r.position==="left"?(u=s+t,d=fe(a,i,n),l=qt*-.5):(u=o-t,d=fe(a,n,i),l=qt*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=oe(n.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Js(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:Ju(n.align),textBaseline:"middle",translation:[r,a]})}}function tL(e,t){const n=new ub({ctx:e.ctx,options:t,chart:e});Ke.configure(e,n,t),Ke.addBox(e,n),e.titleBlock=n}var db={id:"title",_element:ub,start(e,t,n){tL(e,n)},stop(e){const t=e.titleBlock;Ke.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;Ke.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wo={average(e){if(!e.length)return!1;let t,n,s=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function tL(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function Ap(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=oe(t.bodyFont),c=oe(t.titleFont),u=oe(t.footerFont),d=o.length,f=i.length,p=s.length,m=ge(t.padding);let _=m.height,v=0,x=s.reduce((A,y)=>A+y.before.length+y.lines.length+y.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,d&&(_+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),x){const A=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=p*A+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}f&&(_+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let S=0;const P=function(A){v=Math.max(v,n.measureText(A).width+S)};return n.save(),n.font=c.string,Bt(e.title,P),n.font=l.string,Bt(e.beforeBody.concat(e.afterBody),P),S=t.displayColors?r+2+t.boxPadding:0,Bt(s,A=>{Bt(A.before,P),Bt(A.lines,P),Bt(A.after,P)}),S=0,n.font=u.string,Bt(e.footer,P),n.restore(),v+=m.width,{width:v,height:_}}function eL(e,t){const{y:n,height:s}=t;return ne.height-s/2?"bottom":"center"}function nL(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function sL(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),nL(c,e,t,n)&&(c="center"),c}function Cp(e,t,n){const s=n.yAlign||t.yAlign||eL(e,n);return{xAlign:n.xAlign||t.xAlign||sL(e,t,n,s),yAlign:s}}function iL(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function oL(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function Tp(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ks(r);let m=iL(t,a);const _=oL(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+i:a==="right"&&(m+=Math.max(d,p)+i),{x:le(m,0,s.width-t.width),y:le(_,0,s.height-t.height)}}function Jr(e,t,n){const s=ge(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function Pp(e){return rn([],Sn(e))}function rL(e,t,n){return bs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function kp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const hb={beforeTitle:xn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?hb[t].call(n,s):i}class Vc extends Fn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new j_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=rL(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=xe(s,"beforeTitle",this,t),o=xe(s,"title",this,t),r=xe(s,"afterTitle",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}getBeforeBody(t,n){return Pp(xe(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return Bt(t,o=>{const r={before:[],lines:[],after:[]},a=kp(s,o);rn(r.before,Sn(xe(a,"beforeLabel",this,o))),rn(r.lines,xe(a,"label",this,o)),rn(r.after,Sn(xe(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return Pp(xe(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=xe(s,"beforeFooter",this,t),o=xe(s,"footer",this,t),r=xe(s,"afterFooter",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),Bt(a,u=>{const d=kp(t.callbacks,u);i.push(xe(d,"labelColor",this,u)),o.push(xe(d,"labelPointStyle",this,u)),r.push(xe(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=wo[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Ap(this,s),c=Object.assign({},a,l),u=Cp(this.chart,s,c),d=Tp(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ks(a),{x:f,y:p}=t,{width:m,height:_}=n;let v,x,S,P,A,y;return o==="center"?(A=p+_/2,i==="left"?(v=f,x=v-r,P=A+r,y=A-r):(v=f+m,x=v+r,P=A-r,y=A+r),S=v):(i==="left"?x=f+Math.max(l,u)+r:i==="right"?x=f+m-Math.max(c,d)-r:x=this.caretX,o==="top"?(P=p,A=P-r,v=x-r,S=x+r):(P=p+_,A=P+r,v=x+r,S=x-r),y=P),{x1:v,x2:x,x3:S,y1:P,y2:A,y3:y}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=Ci(s.rtl,this.x,this.width);for(t.x=Jr(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=oe(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,tr(t,{x:_,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),tr(t,{x:v,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(_,m,c,l),t.strokeRect(_,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(v,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=oe(s.bodyFont);let f=d.lineHeight,p=0;const m=Ci(s.rtl,this.x,this.width),_=function(w){n.fillText(w,m.x(t.x+p),t.y+f/2),t.y+=f+o},v=m.textAlign(r);let x,S,P,A,y,E,C;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Jr(this,v,s),n.fillStyle=s.bodyColor,Bt(this.beforeBody,_),p=a&&v!=="right"?r==="center"?c/2+u:c+2+u:0,A=0,E=i.length;A0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=wo[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Ap(this,t),l=Object.assign({},r,this._size),c=Cp(n,t,l),u=Tp(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=ge(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),N_(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),F_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Ea(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!Ea(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=wo[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}it(Vc,"positioners",wo);var fb={id:"tooltip",_element:Vc,positioners:wo,afterInit(e,t,n){n&&(e.tooltip=new Vc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hb},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const aL=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function lL(e,t,n,s){const i=e.indexOf(t);if(i===-1)return aL(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const cL=(e,t)=>e===null?null:le(Math.round(e),0,t);function $p(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}it(Ma,"id","category"),it(Ma,"defaults",{ticks:{callback:$p}});function uL(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,m=u-1,{min:_,max:v}=t,x=!It(r),S=!It(a),P=!It(c),A=(v-_)/(d+1);let y=Cf((v-_)/m/p)*p,E,C,w,$;if(y<1e-14&&!x&&!S)return[{value:_},{value:v}];$=Math.ceil(v/y)-Math.floor(_/y),$>m&&(y=Cf($*y/m/p)*p),It(l)||(E=Math.pow(10,l),y=Math.ceil(y*E)/E),i==="ticks"?(C=Math.floor(_/y)*y,w=Math.ceil(v/y)*y):(C=_,w=v),x&&S&&o&&vO((a-r)/o,y/1e3)?($=Math.round(Math.min((a-r)/y,u)),y=(a-r)/$,C=r,w=a):P?(C=x?r:C,w=S?a:w,$=c-1,y=(w-C)/$):($=(w-C)/y,Oo($,Math.round($),y/1e3)?$=Math.round($):$=Math.ceil($));const D=Math.max(Tf(y),Tf(C));E=Math.pow(10,It(l)?D:l),C=Math.round(C*E)/E,w=Math.round(w*E)/E;let I=0;for(x&&(f&&C!==r?(n.push({value:r}),Ca)break;n.push({value:N})}return S&&f&&w!==a?n.length&&Oo(n[n.length-1].value,a,Mp(a,A,e))?n[n.length-1].value=a:n.push({value:a}):(!S||w===a)&&n.push({value:w}),n}function Mp(e,t,{horizontal:n,minRotation:s}){const i=tn(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class Oa extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return It(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=fn(i),c=fn(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=uL(i,o);return t.bounds==="ticks"&&y_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return dr(t,this.chart.options.locale,this.options.ticks.format)}}class Da extends Oa{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?t:0,this.max=Jt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=tn(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}it(Da,"id","linear"),it(Da,"defaults",{ticks:{callback:cl.formatters.numeric}});const nr=e=>Math.floor(es(e)),Ls=(e,t)=>Math.pow(10,nr(e)+t);function Op(e){return e/Math.pow(10,nr(e))===1}function Dp(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function dL(e,t){const n=t-e;let s=nr(n);for(;Dp(e,t,s)>10;)s++;for(;Dp(e,t,s)<10;)s--;return Math.min(s,nr(e))}function hL(e,{min:t,max:n}){t=Pe(e.min,t);const s=[],i=nr(t);let o=dL(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Pe(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const p=Pe(e.max,f);return s.push({value:p,major:Op(p),significand:d}),s}class Ia extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=Oa.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return Jt(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?Math.max(0,t):null,this.max=Jt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Jt(this._userMin)&&(this.min=t===Ls(this.min,0)?Ls(this.min,-1):Ls(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(Ls(s,-1)),r(Ls(i,1)))),s<=0&&o(Ls(i,-1)),i<=0&&r(Ls(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=hL(n,this);return t.bounds==="ticks"&&y_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":dr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=es(t),this._valueRange=es(this.max)-es(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(es(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}it(Ia,"id","logarithmic"),it(Ia,"defaults",{ticks:{callback:cl.formatters.logarithmic,major:{enabled:!0}}});function Hc(e){const t=e.ticks;if(t.display&&e.display){const n=ge(t.backdropPadding);return Et(t.font&&t.font.size,Zt.font.size)+n.height}return 0}function fL(e,t,n){return n=zt(n)?n:[n],{w:RO(e,t.string,n),h:n.length*t.lineHeight}}function Ip(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function pL(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?Yt/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function mL(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Xu($e(l.angle+te))),u=xL(l.y,a.h,c),d=vL(c),f=yL(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function _L(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Mn({x:n,y:s},t)||Mn({x:n,y:o},t)||Mn({x:i,y:s},t)||Mn({x:i,y:o},t))}function bL(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Hc(o)/2,additionalAngle:r?Yt/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function wL(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!It(a)){const l=Ks(t.borderRadius),c=ge(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,p=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),tr(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function EL(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));wL(n,r,o);const a=oe(r.font),{x:l,y:c,textAlign:u}=o;Js(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function pb(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Kt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Ht(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?pL(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=Kt/(this._pointLabels.length||1),s=this.options.startAngle||0;return $e(t*n+tn(s))}getDistanceFromCenterForValue(t){if(It(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(It(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),m=o.setContext(f);SL(this,p,l,r,m)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=oe(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ge(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}Js(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}it(xi,"id","radialLinear"),it(xi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:cl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),it(xi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),it(xi,"descriptors",{angleLines:{_fallback:"grid"}});const fl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ee=Object.keys(fl);function Lp(e,t){return e-t}function Rp(e,t){if(It(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),Jt(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(Yi(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function Np(e,t,n,s){const i=Ee.length;for(let o=Ee.indexOf(e);o=Ee.indexOf(n);o--){const r=Ee[o];if(fl[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return Ee[n?Ee.indexOf(n):0]}function TL(e){for(let t=Ee.indexOf(e)+1,n=Ee.length;t=t?n[s]:n[i];e[o]=!0}}function PL(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Bp(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=le(n,0,r),s=le(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||Np(o.minUnit,n,s,this._getLabelCapacity(n)),a=Et(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Yi(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+_)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return Ht(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=$n(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=$n(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class La extends Xi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zr(n,this.min),this._tableRange=Zr(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Zr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return Zr(this._table,s*this._tableRange+this._minPos,!0)}}it(La,"id","timeseries"),it(La,"defaults",Xi.defaults);const gb={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},kL={ariaLabel:{type:String},ariaDescribedby:{type:String}},$L={type:{type:String,required:!0},...gb,...kL},ML=ym[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function mi(e){return za(e)?kt(e):e}function OL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return za(t)?new Proxy(e,{}):e}function DL(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function mb(e,t){e.labels=t}function _b(e,t,n){const s=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function IL(e,t){const n={labels:[],datasets:[]};return mb(n,e.labels),_b(n,e.datasets,t),n}const LL=qa({props:$L,setup(e,t){let{expose:n,slots:s}=t;const i=Li(null),o=yu(null);n({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:p}=e,m=IL(u,p),_=OL(m,u);o.value=new fr(i.value,{type:c,data:_,options:{...d},plugins:f})},a=()=>{const c=kt(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return ku(r),$u(a),zs([()=>e.options,()=>e.data],(c,u)=>{let[d,f]=c,[p,m]=u;const _=kt(o.value);if(!_)return;let v=!1;if(d){const x=mi(d),S=mi(p);x&&x!==S&&(DL(_,x),v=!0)}if(f){const x=mi(f.labels),S=mi(m.labels),P=mi(f.datasets),A=mi(m.datasets);x!==S&&(mb(_.config.data,x),v=!0),P&&P!==A&&(_b(_.config.data,P,e.datasetIdKey),v=!0)}v&&Ua(()=>{l(_)})},{deep:!0}),()=>Fi("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Fi("p",{},[s.default?s.default():""])])}});function bb(e,t){return fr.register(t),qa({props:gb,setup(n,s){let{expose:i}=s;const o=yu(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Fi(LL,ML({ref:r},{type:e,...n}))}})}const RL=bb("bar",Ti),NL=bb("line",Pi);function Rn(e){return Array.isArray?Array.isArray(e):xb(e)==="[object Array]"}const FL=1/0;function BL(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-FL?"-0":t}function VL(e){return e==null?"":BL(e)}function un(e){return typeof e=="string"}function vb(e){return typeof e=="number"}function HL(e){return e===!0||e===!1||jL(e)&&xb(e)=="[object Boolean]"}function yb(e){return typeof e=="object"}function jL(e){return yb(e)&&e!==null}function Me(e){return e!=null}function oc(e){return!e.trim().length}function xb(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const WL="Incorrect 'index' type",zL=e=>`Invalid value for key ${e}`,UL=e=>`Pattern length exceeds max of ${e}.`,KL=e=>`Missing ${e} property in key`,YL=e=>`Property 'weight' in key '${e}' must be a positive integer`,Vp=Object.prototype.hasOwnProperty;class qL{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=wb(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wb(e){let t=null,n=null,s=null,i=1,o=null;if(un(e)||Rn(e))s=e,t=Hp(e),n=jc(e);else{if(!Vp.call(e,"name"))throw new Error(KL("name"));const r=e.name;if(s=r,Vp.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(YL(r));t=Hp(r),n=jc(r),o=e.getFn}return{path:t,id:n,weight:i,src:s,getFn:o}}function Hp(e){return Rn(e)?e:e.split(".")}function jc(e){return Rn(e)?e.join("."):e}function GL(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(Me(o))if(!r[a])n.push(o);else{let l=r[a];const c=o[l];if(!Me(c))return;if(a===r.length-1&&(un(c)||vb(c)||HL(c)))n.push(VL(c));else if(Rn(c)){s=!0;for(let u=0,d=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,un(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();un(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Me(r)){if(Rn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Me(u))if(un(u)&&!oc(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else Rn(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}s.$[o]=a}else if(un(r)&&!oc(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Eb(e,t,{getFn:n=yt.getFn,fieldNormWeight:s=yt.fieldNormWeight}={}){const i=new ld({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(wb)),i.setSources(t),i.create(),i}function nR(e,{getFn:t=yt.getFn,fieldNormWeight:n=yt.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new ld({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function ta(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=yt.distance,ignoreLocation:o=yt.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function sR(e=[],t=yt.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Bs=32;function iR(e,t,n,{location:s=yt.location,distance:i=yt.distance,threshold:o=yt.threshold,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,includeMatches:l=yt.includeMatches,ignoreLocation:c=yt.ignoreLocation}={}){if(t.length>Bs)throw new Error(UL(Bs));const u=t.length,d=e.length,f=Math.max(0,Math.min(s,d));let p=o,m=f;const _=a>1||l,v=_?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let C=ta(t,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(C,p),m=x+u,_){let w=0;for(;w=D;Y-=1){let H=Y-1,R=n[e.charAt(H)];if(_&&(v[H]=+!!R),N[Y]=(N[Y+1]<<1|1)&R,C&&(N[Y]|=(S[Y+1]|S[Y])<<1|1|S[Y+1]),N[Y]&y&&(P=ta(t,{errors:C,currentLocation:H,expectedLocation:f,distance:i,ignoreLocation:c}),P<=p)){if(p=P,m=H,m<=f)break;D=Math.max(1,2*f-m)}}if(ta(t,{errors:C+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;S=N}const E={isMatch:m>=0,score:Math.max(.001,P)};if(_){const C=sR(v,a);C.length?l&&(E.indices=C):E.isMatch=!1}return E}function oR(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:oR(f),startIndex:p})},d=this.pattern.length;if(d>Bs){let f=0;const p=d%Bs,m=d-p;for(;f{const{isMatch:x,score:S,indices:P}=iR(t,m,_,{location:i+v,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});x&&(f=!0),d+=S,x&&P&&(u=[...u,...P])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(p.indices=u),p}}class vs{constructor(t){this.pattern=t}static isMultiMatch(t){return jp(t,this.multiRegex)}static isSingleMatch(t){return jp(t,this.singleRegex)}search(){}}function jp(e,t){const n=e.match(t);return n?n[1]:null}class rR extends vs{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class aR extends vs{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class lR extends vs{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class cR extends vs{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class uR extends vs{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class dR extends vs{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ab extends vs{constructor(t,{location:n=yt.location,threshold:s=yt.threshold,distance:i=yt.distance,includeMatches:o=yt.includeMatches,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,isCaseSensitive:l=yt.isCaseSensitive,ignoreLocation:c=yt.ignoreLocation}={}){super(t),this._bitapSearch=new Sb(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Cb extends vs{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Wc=[rR,Cb,lR,cR,dR,uR,aR,Ab],Wp=Wc.length,hR=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,fR="|";function pR(e,t={}){return e.split(fR).map(n=>{let s=n.trim().split(hR).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Ra.AND]||e[Ra.OR]),bR=e=>!!e[Kc.PATH],vR=e=>!Rn(e)&&yb(e)&&!Yc(e),zp=e=>({[Ra.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Tb(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=bR(i);if(!r&&o.length>1&&!Yc(i))return s(zp(i));if(vR(i)){const l=r?i[Kc.PATH]:o[0],c=r?i[Kc.PATTERN]:i[l];if(!un(c))throw new Error(zL(l));const u={keyId:jc(l),pattern:c};return n&&(u.searcher=Uc(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Rn(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return Yc(e)||(e=zp(e)),s(e)}function yR(e,{ignoreFieldNorm:t=yt.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),n.score=s})}function xR(e,t){const n=e.matches;t.matches=[],Me(n)&&n.forEach(s=>{if(!Me(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r)})}function wR(e,t){t.score=e.score}function ER(e,t,{includeMatches:n=yt.includeMatches,includeScore:s=yt.includeScore}={}){const i=[];return n&&i.push(xR),s&&i.push(wR),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class so{constructor(t,n={},s){this.options={...yt,...n},this.options.useExtendedSearch,this._keyStore=new qL(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ld))throw new Error(WL);this._myIndex=n||Eb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Me(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),ER(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Uc(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]})}),i}_searchLogical(t){const n=Tb(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(Me(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),r}_searchObjectList(t){const n=Uc(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!Me(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!Me(n))return[];let i=[];if(Rn(n))n.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u})});else{const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}so.version="7.0.0";so.createIndex=Eb;so.parseIndex=nR;so.config=yt;so.parseQuery=Tb;_R(mR);var Pb={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Kp,function(){var n=1e3,s=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",m="date",_="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var H=["th","st","nd","rd"],R=Y%100;return"["+Y+(H[(R-20)%10]||H[R]||H[0])+"]"}},P=function(Y,H,R){var W=String(Y);return!W||W.length>=H?Y:""+Array(H+1-W.length).join(R)+Y},A={s:P,z:function(Y){var H=-Y.utcOffset(),R=Math.abs(H),W=Math.floor(R/60),U=R%60;return(H<=0?"+":"-")+P(W,2,"0")+":"+P(U,2,"0")},m:function Y(H,R){if(H.date()1)return Y(ct[0])}else{var mt=H.name;E[mt]=H,U=mt}return!W&&U&&(y=U),U||!W&&y},D=function(Y,H){if(w(Y))return Y.clone();var R=typeof H=="object"?H:{};return R.date=Y,R.args=arguments,new N(R)},I=A;I.l=$,I.i=w,I.w=function(Y,H){return D(Y,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var N=function(){function Y(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[C]=!0}var H=Y.prototype;return H.parse=function(R){this.$d=function(W){var U=W.date,rt=W.utc;if(U===null)return new Date(NaN);if(I.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ct=U.match(v);if(ct){var mt=ct[2]-1||0,pt=(ct[7]||"0").substring(0,3);return rt?new Date(Date.UTC(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)):new Date(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)}}return new Date(U)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==_},H.isSame=function(R,W){var U=D(R);return this.startOf(W)<=U&&U<=this.endOf(W)},H.isAfter=function(R,W){return D(R){t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})}},mounted(){this.$el.querySelectorAll(".dropdown").forEach(e=>{e.addEventListener("show.bs.dropdown",t=>{console.log(t.target.parentNode.children),console.log(t.target.closest("ul.dropdown-menu"))})})}},CR={class:"d-flex gap-2 mb-3 z-3"},TR={class:"dropdown"},PR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-filter-circle me-2"}),gt(" Sort ")],-1),kR={class:"dropdown-menu mt-2 shadow"},$R=["onClick"],MR={class:"me-auto"},OR={key:0,class:"bi bi-check"},DR={class:"dropdown"},IR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-arrow-repeat me-2"}),gt("Refresh Interval ")],-1),LR={class:"dropdown-menu shadow mt-2"},RR=["onClick"],NR={class:"me-auto"},FR={key:0,class:"bi bi-check"},BR={class:"ms-auto d-flex align-items-center"},VR=g("label",{class:"d-flex me-2 text-muted",for:"searchPeers"},[g("i",{class:"bi bi-search me-1"})],-1);function HR(e,t,n,s,i,o){return X(),ot("div",CR,[g("div",TR,[PR,g("ul",kR,[(X(!0),ot(Qt,null,us(this.sort,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.updateSort(a)},[g("span",MR,wt(r),1),s.store.Configuration.Server.dashboard_sort===a?(X(),ot("i",OR)):Ut("",!0)],8,$R)]))),256))])]),g("div",DR,[IR,g("ul",LR,[(X(!0),ot(Qt,null,us(this.interval,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>o.updateRefreshInterval(a)},[g("span",NR,wt(r),1),s.store.Configuration.Server.dashboard_refresh_interval===a?(X(),ot("i",FR)):Ut("",!0)],8,RR)]))),256))])]),g("div",BR,[VR,bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[0]||(t[0]=r=>this.wireguardConfigurationStore.searchString=r)},null,512),[[vt,this.wireguardConfigurationStore.searchString]])])])}const jR=Lt(AR,[["render",HR]]),WR={name:"peerSettings",props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,Ce(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer Updated!","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(e=>{e.addEventListener("keyup",()=>{this.dataChanged=!0})})}},ve=e=>(ei("data-v-6fc123c2"),e=e(),ni(),e),zR={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},UR={class:"container d-flex h-100 w-100"},KR={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},YR={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},qR=ve(()=>g("h4",{class:"mb-0"},"Peer Settings",-1)),GR={key:0,class:"card-body px-4 pb-4"},XR={class:"d-flex flex-column gap-2 mb-4"},QR=ve(()=>g("small",{class:"text-muted"},"Public Key",-1)),JR=ve(()=>g("br",null,null,-1)),ZR=ve(()=>g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1)),tN=["disabled"],eN={class:"d-flex position-relative"},nN=ve(()=>g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1)),sN=["type","disabled"],iN=ve(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),oN=["disabled"],rN=ve(()=>g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1)),aN=["disabled"],lN=ve(()=>g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1)),cN=["disabled"],uN=ve(()=>g("hr",null,null,-1)),dN={class:"accordion mt-2",id:"peerSettingsAccordion"},hN={class:"accordion-item"},fN=ve(()=>g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"}," Optional Settings ")],-1)),pN={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},gN={class:"accordion-body d-flex flex-column gap-2 mb-2"},mN=ve(()=>g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1)),_N=["disabled"],bN=ve(()=>g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1)),vN=["disabled"],yN=ve(()=>g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1)),xN=["disabled"],wN={class:"d-flex align-items-center gap-2"},EN=["disabled"],SN=ve(()=>g("i",{class:"bi bi-arrow-clockwise ms-2"},null,-1)),AN=["disabled"],CN=ve(()=>g("i",{class:"bi bi-save-fill ms-2"},null,-1));function TN(e,t,n,s,i,o){return X(),ot("div",zR,[g("div",UR,[g("div",KR,[g("div",YR,[qR,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),this.data?(X(),ot("div",GR,[g("div",XR,[g("div",null,[QR,JR,g("small",null,[g("samp",null,wt(this.data.id),1)])]),g("div",null,[ZR,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,tN),[[vt,this.data.name]])]),g("div",null,[g("div",eN,[nN,g("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:t[2]||(t[2]=r=>this.showKey=!this.showKey)},[g("i",{class:jt(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),bt(g("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[3]||(t[3]=r=>this.data.private_key=r),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,sN),[[CE,this.data.private_key]])]),g("div",null,[iN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[4]||(t[4]=r=>this.data.allowed_ip=r),id:"peer_allowed_ip_textbox"},null,8,oN),[[vt,this.data.allowed_ip]])]),g("div",null,[rN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[5]||(t[5]=r=>this.data.DNS=r),id:"peer_DNS_textbox"},null,8,aN),[[vt,this.data.DNS]])]),g("div",null,[lN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[6]||(t[6]=r=>this.data.endpoint_allowed_ip=r),id:"peer_endpoint_allowed_ips"},null,8,cN),[[vt,this.data.endpoint_allowed_ip]])]),uN,g("div",dN,[g("div",hN,[fN,g("div",pN,[g("div",gN,[g("div",null,[mN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[7]||(t[7]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,_N),[[vt,this.data.preshared_key]])]),g("div",null,[bN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[8]||(t[8]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,vN),[[vt,this.data.mtu]])]),g("div",null,[yN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[9]||(t[9]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,xN),[[vt,this.data.keepalive]])])])])])])]),g("div",wN,[g("button",{class:"btn btn-secondary rounded-3 shadow",onClick:t[10]||(t[10]=r=>this.reset()),disabled:!this.dataChanged||this.saving},[gt(" Reset "),SN],8,EN),g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:t[11]||(t[11]=r=>this.savePeer())},[gt(" Save Peer"),CN],8,AN)])])):Ut("",!0)])])])}const PN=Lt(WR,[["render",TN],["__scopeId","data-v-6fc123c2"]]),kN={name:"peerQRCode",props:{peerConfigData:String},mounted(){eo.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,function(e){e&&console.error(e)})}},$N=e=>(ei("data-v-0f1cea80"),e=e(),ni(),e),MN={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},ON={class:"container d-flex h-100 w-100"},DN={class:"card m-auto rounded-3 shadow"},IN={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},LN=$N(()=>g("h4",{class:"mb-0"},"QR Code",-1)),RN={class:"card-body"},NN={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function FN(e,t,n,s,i,o){return X(),ot("div",MN,[g("div",ON,[g("div",DN,[g("div",IN,[LN,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),g("div",RN,[g("canvas",NN,null,512)])])])])}const BN=Lt(kN,[["render",FN],["__scopeId","data-v-0f1cea80"]]),VN={name:"nameInput",props:{bulk:Boolean,data:Object,saving:Boolean}},HN=g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1),jN=["disabled"];function WN(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[HN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,jN),[[vt,this.data.name]])],2)}const zN=Lt(VN,[["render",WN]]),UN={name:"privatePublicKeyInput",props:{data:Object,saving:Boolean,bulk:Boolean},setup(){return{dashboardStore:Xt()}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},checkMatching(){try{window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey&&(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private Key and Public Key does not match.","danger"))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},KN=g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1),YN={class:"input-group"},qN=["disabled"],GN=["disabled"],XN=g("i",{class:"bi bi-arrow-repeat"},null,-1),QN=[XN],JN={class:"d-flex"},ZN=g("label",{for:"public_key",class:"form-label"},[g("small",{class:"text-muted"},[gt("Public Key "),g("code",null,"(Required)")])],-1),tF={class:"form-check form-switch ms-auto"},eF=["disabled"],nF=g("label",{class:"form-check-label",for:"enablePublicKeyEdit"},[g("small",null,"Edit")],-1),sF=["disabled"];function iF(e,t,n,s,i,o){return X(),ot("div",{class:jt(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[g("div",null,[KN,g("div",YN,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.keypair.privateKey=r),disabled:!this.editKey||this.bulk,onBlur:t[1]||(t[1]=r=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,qN),[[vt,this.keypair.privateKey]]),g("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:t[2]||(t[2]=r=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},QN,8,GN)])]),g("div",null,[g("div",JN,[ZN,g("div",tF,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":t[3]||(t[3]=r=>this.editKey=r)},null,8,eF),[[lr,this.editKey]]),nF])]),bt(g("input",{class:jt(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[4]||(t[4]=r=>this.keypair.publicKey=r),onBlur:t[5]||(t[5]=r=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,sF),[[vt,this.keypair.publicKey]])])],2)}const oF=Lt(UN,[["render",iF]]),rF={name:"allowedIPsInput",props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(e=>e.includes(this.availableIpSearchString)&&!this.data.allowed_ip.includes(e)):this.availableIp.filter(e=>!this.data.allowed_ip.includes(e))}},methods:{addAllowedIp(e){return this.store.checkCIDR(e)?(this.data.allowed_ip.push(e),!0):!1}},watch:{customAvailableIp(){this.allowedIpFormatError=!1}}},pr=e=>(ei("data-v-f2538e55"),e=e(),ni(),e),aF=pr(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),lF=["onClick"],cF=pr(()=>g("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)),uF=[cF],dF={class:"d-flex gap-2 align-items-center"},hF={class:"input-group"},fF=["disabled"],pF=["disabled"],gF=pr(()=>g("i",{class:"bi bi-plus-lg"},null,-1)),mF=[gF],_F=pr(()=>g("small",{class:"text-muted"},"or",-1)),bF={class:"dropdown flex-grow-1"},vF=["disabled"],yF=pr(()=>g("i",{class:"bi bi-filter-circle me-2"},null,-1)),xF={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},wF={class:"px-3 pb-2 pt-1"},EF=["onClick"],SF={class:"me-auto"},AF={key:0},CF={class:"px-3 text-muted"};function TF(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[aF,g("div",{class:jt(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ip.length>0}])},[dt(Lu,{name:"list"},{default:Gt(()=>[(X(!0),ot(Qt,null,us(this.data.allowed_ip,(r,a)=>(X(),ot("span",{class:"badge rounded-pill text-bg-success",key:r},[gt(wt(r)+" ",1),g("a",{role:"button",onClick:l=>this.data.allowed_ip.splice(a,1)},uF,8,lF)]))),128))]),_:1})],2),g("div",dF,[g("div",hF,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:"Enter IP Address/CIDR","onUpdate:modelValue":t[0]||(t[0]=r=>i.customAvailableIp=r),disabled:n.bulk},null,10,fF),[[vt,i.customAvailableIp]]),g("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:n.bulk||!this.customAvailableIp,onClick:t[1]||(t[1]=r=>{this.addAllowedIp(this.customAvailableIp)?this.customAvailableIp="":this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IP is invalid","danger")}),type:"button",id:"button-addon2"},mF,8,pF)]),_F,g("div",bF,[g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!n.availableIp||n.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[yF,gt(" Pick Available IP ")],8,vF),this.availableIp?(X(),ot("ul",xF,[g("li",null,[g("div",wF,[bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[2]||(t[2]=r=>this.availableIpSearchString=r),placeholder:"Search..."},null,512),[[vt,this.availableIpSearchString]])])]),(X(!0),ot(Qt,null,us(this.searchAvailableIps,r=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:a=>this.addAllowedIp(r)},[g("span",SF,[g("small",null,wt(r),1)])],8,EF)]))),256)),this.searchAvailableIps.length===0?(X(),ot("li",AF,[g("small",CF,'No available IP containing "'+wt(this.availableIpSearchString)+'"',1)])):Ut("",!0)])):Ut("",!0)])])],2)}const PF=Lt(rF,[["render",TF],["__scopeId","data-v-f2538e55"]]),kF={name:"dnsInput",props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},methods:{checkDNS(){let e=this.dns.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.regexCheckIP(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS is invalid","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}},watch:{dns(){this.checkDNS()}}},$F=g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1),MF=["disabled"];function OF(e,t,n,s,i,o){return X(),ot("div",null,[$F,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.dns=r),id:"peer_DNS_textbox"},null,10,MF),[[vt,this.dns]])])}const DF=Lt(kF,[["render",OF]]),IF={name:"endpointAllowedIps",props:{data:Object,saving:Boolean},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let e=this.endpointAllowedIps.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.checkCIDR(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IP is invalid.","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},LF=g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1),RF=["disabled"];function NF(e,t,n,s,i,o){return X(),ot("div",null,[LF,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":i.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.endpointAllowedIps=r),onBlur:t[1]||(t[1]=r=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,RF),[[vt,this.endpointAllowedIps]])])}const FF=Lt(IF,[["render",NF]]),BF={name:"presharedKeyInput",props:{data:Object,saving:Boolean}},VF=g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1),HF=["disabled"];function jF(e,t,n,s,i,o){return X(),ot("div",null,[VF,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,HF),[[vt,this.data.preshared_key]])])}const WF=Lt(BF,[["render",jF]]),zF={name:"mtuInput",props:{data:Object,saving:Boolean}},UF=g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1),KF=["disabled"];function YF(e,t,n,s,i,o){return X(),ot("div",null,[UF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,KF),[[vt,this.data.mtu]])])}const qF=Lt(zF,[["render",YF]]),GF={name:"persistentKeepAliveInput",props:{data:Object,saving:Boolean}},XF=g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1),QF=["disabled"];function JF(e,t,n,s,i,o){return X(),ot("div",null,[XF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,QF),[[vt,this.data.keepalive]])])}const ZF=Lt(GF,[["render",JF]]),tB={name:"bulkAdd",props:{saving:Boolean,data:Object,availableIp:void 0}},eB={class:"form-check form-switch"},nB=["disabled"],sB=g("label",{class:"form-check-label me-2",for:"bulk_add"},[g("small",null,[g("strong",null,"Bulk Add")])],-1),iB=g("small",{class:"text-muted d-block"}," By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP. ",-1),oB=[iB],rB={key:0,class:"form-group"},aB=["max"],lB={class:"text-muted"};function cB(e,t,n,s,i,o){return X(),ot("div",null,[g("div",eB,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":t[0]||(t[0]=r=>this.data.bulkAdd=r)},null,8,nB),[[lr,this.data.bulkAdd]]),sB]),g("p",{class:jt({"mb-0":!this.data.bulkAdd})},oB,2),this.data.bulkAdd?(X(),ot("div",rB,[bt(g("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.bulkAddAmount=r),placeholder:"How many peers you want to add?"},null,8,aB),[[vt,this.data.bulkAddAmount]]),g("small",lB,[gt(" You can add up to "),g("strong",null,wt(this.availableIp.length),1),gt(" peers ")])])):Ut("",!0)])}const uB=Lt(tB,[["render",cB]]),dB={name:"peerCreate",components:{BulkAdd:uB,PersistentKeepAliveInput:ZF,MtuInput:qF,PresharedKeyInput:WF,EndpointAllowedIps:FF,DnsInput:DF,AllowedIPsInput:PF,PrivatePublicKeyInput:oF,NameInput:zN},data(){return{data:{bulkAdd:!1,bulkAddAmount:"",name:"",allowed_ip:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:""},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){Re("/api/getAvailableIPs/"+this.$route.params.id,{},e=>{e.status&&(this.availableIp=e.data)})},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{allRequireFieldsFilled(){let e=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(e=!1):["allowed_ip","private_key","public_key","DNS","endpoint_allowed_ip","keepalive","mtu"].forEach(n=>{this.data[n].length===0&&(e=!1)}),e}},watch:{bulkAdd(e){e||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},pl=e=>(ei("data-v-01862fad"),e=e(),ni(),e),hB={class:"modal fade",id:"peerCreateModal","data-bs-backdrop":"static"},fB={class:"modal-dialog",style:{"max-width":"700px !important"}},pB={class:"modal-content rounded-3 border-0 shadow"},gB=pl(()=>g("div",{class:"modal-header border-0 pb-0"},[g("h1",{class:"modal-title fs-5",id:"staticBackdropLabel"},"Add Peer"),g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})],-1)),mB={class:"modal-body"},_B={class:"d-flex flex-column gap-2"},bB=pl(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),vB=pl(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),yB={class:"row"},xB={key:0,class:"col-sm"},wB={class:"col-sm"},EB={class:"col-sm"},SB={class:"d-flex mt-2"},AB=["disabled"],CB=pl(()=>g("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function TB(e,t,n,s,i,o){const r=Rt("BulkAdd"),a=Rt("NameInput"),l=Rt("PrivatePublicKeyInput"),c=Rt("AllowedIPsInput"),u=Rt("DnsInput"),d=Rt("EndpointAllowedIps"),f=Rt("PresharedKeyInput"),p=Rt("MtuInput"),m=Rt("PersistentKeepAliveInput");return X(),ot("div",hB,[g("div",fB,[g("div",pB,[gB,g("div",mB,[g("div",_B,[dt(r,{saving:i.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),bB,this.data.bulkAdd?Ut("",!0):(X(),ue(a,{key:0,saving:i.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?Ut("",!0):(X(),ue(l,{key:1,saving:i.saving,data:i.data},null,8,["saving","data"])),this.data.bulkAdd?Ut("",!0):(X(),ue(c,{key:2,availableIp:this.availableIp,saving:i.saving,data:i.data},null,8,["availableIp","saving","data"])),dt(u,{saving:i.saving,data:i.data},null,8,["saving","data"]),dt(d,{saving:i.saving,data:i.data},null,8,["saving","data"]),vB,g("div",yB,[this.data.bulkAdd?Ut("",!0):(X(),ot("div",xB,[dt(f,{saving:i.saving,data:i.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),g("div",wB,[dt(p,{saving:i.saving,data:i.data},null,8,["saving","data"])]),g("div",EB,[dt(m,{saving:i.saving,data:i.data},null,8,["saving","data"])])]),g("div",SB,[g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled},[CB,gt("Add ")],8,AB)])])])])])])}const PB=Lt(dB,[["render",TB],["__scopeId","data-v-01862fad"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,Pa,Ro,No,Fo,Ma,Da,Ia,xi,Xi,La,ib,ab,cb,db,fb);const kB={name:"peerList",components:{PeerCreate:PB,PeerQRCode:BN,PeerSettings:PN,PeerSearch:jR,Peer:VM,Line:NL,Bar:RL},setup(){const e=Xt(),t=mn();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]},peerSetting:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1}}},watch:{"$route.params":{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{getPeers(e){Re("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),s=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((n-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(n)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==s&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((s-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(s))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers(this.$route.params.id)},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new so(this.configurationPeers,{keys:["name","id","allowed_ip"]});return(this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(n=>n.item):this.configurationPeers).slice().sort((n,s)=>n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},de=e=>(ei("data-v-ce1252aa"),e=e(),ni(),e),$B={key:0},MB=de(()=>g("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),OB={class:"d-flex align-items-center gap-3"},DB={class:"mb-0"},IB=de(()=>g("div",{class:"dot active ms-0"},null,-1)),LB={class:"row mt-3 gy-2 gx-2 mb-2"},RB={class:"col-6 col-lg-3"},NB={class:"card rounded-3 bg-transparent shadow-sm"},FB={class:"card-body py-2"},BB=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Address")],-1)),VB={class:"col-6 col-lg-3"},HB={class:"card rounded-3 bg-transparent shadow-sm"},jB={class:"card-body py-2"},WB=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Listen Port")],-1)),zB={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},UB={class:"card rounded-3 bg-transparent shadow-sm"},KB={class:"card-body py-2"},YB=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Public Key")],-1)),qB={class:"row gx-2 gy-2 mb-2"},GB={class:"col-6 col-lg-3"},XB={class:"card rounded-3 bg-transparent shadow-sm"},QB={class:"card-body d-flex"},JB=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Connected Peers")],-1)),ZB={class:"h4"},t3=de(()=>g("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),e3={class:"col-6 col-lg-3"},n3={class:"card rounded-3 bg-transparent shadow-sm"},s3={class:"card-body d-flex"},i3=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Usage")],-1)),o3={class:"h4"},r3=de(()=>g("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),a3={class:"col-6 col-lg-3"},l3={class:"card rounded-3 bg-transparent shadow-sm"},c3={class:"card-body d-flex"},u3=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Received")],-1)),d3={class:"h4 text-primary"},h3=de(()=>g("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),f3={class:"col-6 col-lg-3"},p3={class:"card rounded-3 bg-transparent shadow-sm"},g3={class:"card-body d-flex"},m3=de(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Sent")],-1)),_3={class:"h4 text-success"},b3=de(()=>g("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),v3={class:"row gx-2 gy-2 mb-5"},y3={class:"col-12 col-lg-6"},x3={class:"card rounded-3 bg-transparent shadow-sm"},w3=de(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),E3={class:"card-body pt-1"},S3={class:"col-sm col-lg-3"},A3={class:"card rounded-3 bg-transparent shadow-sm"},C3=de(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),T3={class:"card-body pt-1"},P3={class:"col-sm col-lg-3"},k3={class:"card rounded-3 bg-transparent shadow-sm"},$3=de(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),M3={class:"card-body pt-1"},O3={class:"mb-4"},D3=de(()=>g("div",{class:"d-flex align-items-center gap-3 mb-2"},[g("h3",null,"Peers"),g("a",{role:"button","data-bs-toggle":"modal","data-bs-target":"#peerCreateModal",class:"text-decoration-none ms-auto"},[g("i",{class:"bi bi-plus-circle-fill me-2"}),gt("Add Peer")])],-1));function I3(e,t,n,s,i,o){const r=Rt("Bar"),a=Rt("Line"),l=Rt("PeerSearch"),c=Rt("Peer"),u=Rt("PeerSettings"),d=Rt("PeerQRCode"),f=Rt("PeerCreate");return this.loading?Ut("",!0):(X(),ot("div",$B,[g("div",null,[MB,g("div",OB,[g("h1",DB,[g("samp",null,wt(this.configurationInfo.Name),1)]),IB])]),g("div",LB,[g("div",RB,[g("div",NB,[g("div",FB,[BB,gt(" "+wt(this.configurationInfo.Address),1)])])]),g("div",VB,[g("div",HB,[g("div",jB,[WB,gt(" "+wt(this.configurationInfo.ListenPort),1)])])]),g("div",zB,[g("div",UB,[g("div",KB,[YB,g("samp",null,wt(this.configurationInfo.PublicKey),1)])])])]),g("div",qB,[g("div",GB,[g("div",XB,[g("div",QB,[g("div",null,[JB,g("strong",ZB,wt(o.configurationSummary.connectedPeers),1)]),t3])])]),g("div",e3,[g("div",n3,[g("div",s3,[g("div",null,[i3,g("strong",o3,wt(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),r3])])]),g("div",a3,[g("div",l3,[g("div",c3,[g("div",null,[u3,g("strong",d3,wt(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),h3])])]),g("div",f3,[g("div",p3,[g("div",g3,[g("div",null,[m3,g("strong",_3,wt(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),b3])])])]),g("div",v3,[g("div",y3,[g("div",x3,[w3,g("div",E3,[dt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{height:"200px",width:"100%"}},null,8,["data","options"])])])]),g("div",S3,[g("div",A3,[C3,g("div",T3,[dt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])]),g("div",P3,[g("div",k3,[$3,g("div",M3,[dt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])])]),g("div",O3,[D3,dt(l),dt(Lu,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Gt(()=>[(X(!0),ot(Qt,null,us(this.searchPeers,p=>(X(),ot("div",{class:"col-12 col-lg-6 col-xl-4",key:p.id},[dt(c,{Peer:p,onSetting:m=>{i.peerSetting.modalOpen=!0,i.peerSetting.selectedPeer=this.configurationPeers.find(_=>_.id===p.id)},onQrcode:t[0]||(t[0]=m=>{this.peerQRCode.peerConfigData=m,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onSetting"])]))),128))]),_:1})]),dt(Ln,{name:"fade"},{default:Gt(()=>[this.peerSetting.modalOpen?(X(),ue(u,{key:0,selectedPeer:this.peerSetting.selectedPeer,onRefresh:t[1]||(t[1]=p=>this.getPeers(this.$route.params.id)),onClose:t[2]||(t[2]=p=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):Ut("",!0)]),_:1}),dt(Ln,{name:"fade"},{default:Gt(()=>[i.peerQRCode.modalOpen?(X(),ue(d,{key:0,peerConfigData:this.peerQRCode.peerConfigData,onClose:t[3]||(t[3]=p=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):Ut("",!0)]),_:1}),dt(f)]))}const kb=Lt(kB,[["render",I3],["__scopeId","data-v-ce1252aa"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,Pa,Ro,No,Fo,Ma,Da,Ia,xi,Xi,La,ib,ab,cb,db,fb);const L3={name:"configuration",components:{PeerList:kb}},R3={class:"mt-5 text-body"};function N3(e,t,n,s,i,o){const r=Rt("RouterView");return X(),ot("div",R3,[dt(r,null,{default:Gt(({Component:a})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Gt(()=>[(X(),ue(Au(a)))]),_:2},1024)]),_:1})])}const F3=Lt(L3,[["render",N3]]),B3=async()=>{let e=!1;return await Re("/api/validateAuthentication",{},t=>{e=t.status}),e},cd=HS({history:iS(),routes:[{name:"Index",path:"/",component:OA,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:wC,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:uP,meta:{title:"Settings"}},{name:"New Configuration",path:"/new_configuration",component:eM,meta:{title:"New Configuration"}},{name:"Configuration",path:"/configuration/:id",component:F3,meta:{title:"Configuration"},children:[{name:"Peers List",path:"",component:kb}]}]},{path:"/signin",component:JA,meta:{title:"Sign In"}},{path:"/welcome",component:Vk,meta:{requiresAuth:!0}}]});cd.beforeEach(async(e,t,n)=>{const s=mn(),i=Xt();e.meta.title?e.params.id?document.title=e.params.id+" | WGDashboard":document.title=e.meta.title+" | WGDashboard":document.title="WGDashboard",e.meta.requiresAuth?GS.getCookie("authToken")&&await B3()?(await i.getConfiguration(),!s.Configurations&&e.name!=="Configuration List"&&await s.getConfigurations(),n()):n("/signin"):n()});const ud=$E(qS);ud.use(cd);const $b=IE();$b.use(({store:e})=>{e.$router=rr(cd)});ud.use($b);ud.mount("#app"); +`):e}function eL(e,t){const{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function Ap(e,t){const n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=oe(t.bodyFont),c=oe(t.titleFont),u=oe(t.footerFont),d=o.length,f=i.length,p=s.length,m=ge(t.padding);let _=m.height,v=0,x=s.reduce((A,y)=>A+y.before.length+y.lines.length+y.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,d&&(_+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),x){const A=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=p*A+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}f&&(_+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let S=0;const P=function(A){v=Math.max(v,n.measureText(A).width+S)};return n.save(),n.font=c.string,Bt(e.title,P),n.font=l.string,Bt(e.beforeBody.concat(e.afterBody),P),S=t.displayColors?r+2+t.boxPadding:0,Bt(s,A=>{Bt(A.before,P),Bt(A.lines,P),Bt(A.after,P)}),S=0,n.font=u.string,Bt(e.footer,P),n.restore(),v+=m.width,{width:v,height:_}}function nL(e,t){const{y:n,height:s}=t;return ne.height-s/2?"bottom":"center"}function sL(e,t,n,s){const{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function iL(e,t,n,s){const{x:i,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=r-o/2&&(c="right"),sL(c,e,t,n)&&(c="center"),c}function Cp(e,t,n){const s=n.yAlign||t.yAlign||nL(e,n);return{xAlign:n.xAlign||t.xAlign||iL(e,t,n,s),yAlign:s}}function oL(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function rL(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function Tp(e,t,n,s){const{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ks(r);let m=oL(t,a);const _=rL(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,f)+i:a==="right"&&(m+=Math.max(d,p)+i),{x:le(m,0,s.width-t.width),y:le(_,0,s.height-t.height)}}function Zr(e,t,n){const s=ge(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function Pp(e){return rn([],Sn(e))}function aL(e,t,n){return bs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function kp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const hb={beforeTitle:xn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?hb[t].call(n,s):i}class Vc extends Fn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new j_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=aL(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=xe(s,"beforeTitle",this,t),o=xe(s,"title",this,t),r=xe(s,"afterTitle",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}getBeforeBody(t,n){return Pp(xe(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return Bt(t,o=>{const r={before:[],lines:[],after:[]},a=kp(s,o);rn(r.before,Sn(xe(a,"beforeLabel",this,o))),rn(r.lines,xe(a,"label",this,o)),rn(r.after,Sn(xe(a,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return Pp(xe(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=xe(s,"beforeFooter",this,t),o=xe(s,"footer",this,t),r=xe(s,"afterFooter",this,t);let a=[];return a=rn(a,Sn(i)),a=rn(a,Sn(o)),a=rn(a,Sn(r)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,s))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,s))),Bt(a,u=>{const d=kp(t.callbacks,u);i.push(xe(d,"labelColor",this,u)),o.push(xe(d,"labelPointStyle",this,u)),r.push(xe(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=wo[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Ap(this,s),c=Object.assign({},a,l),u=Cp(this.chart,s,c),d=Tp(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ks(a),{x:f,y:p}=t,{width:m,height:_}=n;let v,x,S,P,A,y;return o==="center"?(A=p+_/2,i==="left"?(v=f,x=v-r,P=A+r,y=A-r):(v=f+m,x=v+r,P=A-r,y=A+r),S=v):(i==="left"?x=f+Math.max(l,u)+r:i==="right"?x=f+m-Math.max(c,d)-r:x=this.caretX,o==="top"?(P=p,A=P-r,v=x-r,S=x+r):(P=p+_,A=P+r,v=x+r,S=x-r),y=P),{x1:v,x2:x,x3:S,y1:P,y2:A,y3:y}}drawTitle(t,n,s){const i=this.title,o=i.length;let r,a,l;if(o){const c=Ci(s.rtl,this.x,this.width);for(t.x=Zr(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",r=oe(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,l=0;lS!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,tr(t,{x:_,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),tr(t,{x:v,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(_,m,c,l),t.strokeRect(_,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(v,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=oe(s.bodyFont);let f=d.lineHeight,p=0;const m=Ci(s.rtl,this.x,this.width),_=function(w){n.fillText(w,m.x(t.x+p),t.y+f/2),t.y+=f+o},v=m.textAlign(r);let x,S,P,A,y,E,C;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Zr(this,v,s),n.fillStyle=s.bodyColor,Bt(this.beforeBody,_),p=a&&v!=="right"?r==="center"?c/2+u:c+2+u:0,A=0,E=i.length;A0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){const r=wo[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Ap(this,t),l=Object.assign({},r,this._size),c=Cp(n,t,l),u=Tp(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=ge(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),N_(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),F_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Sa(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),a=this._positionChanged(r,t),l=n||!Sa(r,o)||a;return l&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:s,caretY:i,options:o}=this,r=wo[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}}it(Vc,"positioners",wo);var fb={id:"tooltip",_element:Vc,positioners:wo,afterInit(e,t,n){n&&(e.tooltip=new Vc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hb},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const lL=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function cL(e,t,n,s){const i=e.indexOf(t);if(i===-1)return lL(e,t,n,s);const o=e.lastIndexOf(t);return i!==o?n:i}const uL=(e,t)=>e===null?null:le(Math.round(e),0,t);function $p(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}it(Oa,"id","category"),it(Oa,"defaults",{ticks:{callback:$p}});function dL(e,t){const n=[],{bounds:i,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,m=u-1,{min:_,max:v}=t,x=!Lt(r),S=!Lt(a),P=!Lt(c),A=(v-_)/(d+1);let y=Cf((v-_)/m/p)*p,E,C,w,$;if(y<1e-14&&!x&&!S)return[{value:_},{value:v}];$=Math.ceil(v/y)-Math.floor(_/y),$>m&&(y=Cf($*y/m/p)*p),Lt(l)||(E=Math.pow(10,l),y=Math.ceil(y*E)/E),i==="ticks"?(C=Math.floor(_/y)*y,w=Math.ceil(v/y)*y):(C=_,w=v),x&&S&&o&&yO((a-r)/o,y/1e3)?($=Math.round(Math.min((a-r)/y,u)),y=(a-r)/$,C=r,w=a):P?(C=x?r:C,w=S?a:w,$=c-1,y=(w-C)/$):($=(w-C)/y,Oo($,Math.round($),y/1e3)?$=Math.round($):$=Math.ceil($));const D=Math.max(Tf(y),Tf(C));E=Math.pow(10,Lt(l)?D:l),C=Math.round(C*E)/E,w=Math.round(w*E)/E;let I=0;for(x&&(f&&C!==r?(n.push({value:r}),Ca)break;n.push({value:N})}return S&&f&&w!==a?n.length&&Oo(n[n.length-1].value,a,Mp(a,A,e))?n[n.length-1].value=a:n.push({value:a}):(!S||w===a)&&n.push({value:w}),n}function Mp(e,t,{horizontal:n,minRotation:s}){const i=tn(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class Da extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Lt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:o}=this;const r=l=>i=n?i:l,a=l=>o=s?o:l;if(t){const l=fn(i),c=fn(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=dL(i,o);return t.bounds==="ticks"&&y_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return dr(t,this.chart.options.locale,this.options.ticks.format)}}class Ia extends Da{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?t:0,this.max=Jt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=tn(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}it(Ia,"id","linear"),it(Ia,"defaults",{ticks:{callback:ul.formatters.numeric}});const nr=e=>Math.floor(es(e)),Ls=(e,t)=>Math.pow(10,nr(e)+t);function Op(e){return e/Math.pow(10,nr(e))===1}function Dp(e,t,n){const s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function hL(e,t){const n=t-e;let s=nr(n);for(;Dp(e,t,s)>10;)s++;for(;Dp(e,t,s)<10;)s--;return Math.min(s,nr(e))}function fL(e,{min:t,max:n}){t=Pe(e.min,t);const s=[],i=nr(t);let o=hL(t,n),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),f=Pe(e.min,Math.round((l+u+d*Math.pow(10,o))*r)/r);for(;f=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((l+u+d*Math.pow(10,o))*r)/r;const p=Pe(e.max,f);return s.push({value:p,major:Op(p),significand:d}),s}class La extends si{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const s=Da.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return Jt(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Jt(t)?Math.max(0,t):null,this.max=Jt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Jt(this._userMin)&&(this.min=t===Ls(this.min,0)?Ls(this.min,-1):Ls(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const o=a=>s=t?s:a,r=a=>i=n?i:a;s===i&&(s<=0?(o(1),r(10)):(o(Ls(s,-1)),r(Ls(i,1)))),s<=0&&o(Ls(i,-1)),i<=0&&r(Ls(s,1)),this.min=s,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},s=fL(n,this);return t.bounds==="ticks"&&y_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":dr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=es(t),this._valueRange=es(this.max)-es(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(es(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}it(La,"id","logarithmic"),it(La,"defaults",{ticks:{callback:ul.formatters.logarithmic,major:{enabled:!0}}});function Hc(e){const t=e.ticks;if(t.display&&e.display){const n=ge(t.backdropPadding);return Et(t.font&&t.font.size,Zt.font.size)+n.height}return 0}function pL(e,t,n){return n=zt(n)?n:[n],{w:NO(e,t.string,n),h:n.length*t.lineHeight}}function Ip(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function gL(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?qt/o:0;for(let l=0;lt.r&&(a=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function _L(e,t,n){const s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:a}=n,l=e.getPointPosition(t,s+i+r,o),c=Math.round(Xu($e(l.angle+te))),u=wL(l.y,a.h,c),d=yL(c),f=xL(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function bL(e,t){if(!t)return!0;const{left:n,top:s,right:i,bottom:o}=e;return!(Mn({x:n,y:s},t)||Mn({x:n,y:o},t)||Mn({x:i,y:s},t)||Mn({x:i,y:o},t))}function vL(e,t,n){const s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Hc(o)/2,additionalAngle:r?qt/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function EL(e,t,n){const{left:s,top:i,right:o,bottom:r}=n,{backdropColor:a}=t;if(!Lt(a)){const l=Ks(t.borderRadius),c=ge(t.backdropPadding);e.fillStyle=a;const u=s-c.left,d=i-c.top,f=o-s+c.width,p=r-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),tr(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function SL(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const r=s.setContext(e.getPointLabelContext(i));EL(n,r,o);const a=oe(r.font),{x:l,y:c,textAlign:u}=o;Js(n,e._pointLabels[i],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function pb(e,t,n,s){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Yt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r{const i=Ht(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?gL(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){const n=Yt/(this._pointLabels.length||1),s=this.options.startAngle||0;return $e(t*n+tn(s))}getDistanceFromCenterForValue(t){if(Lt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Lt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=i.setContext(f),m=o.setContext(f);AL(this,p,l,r,m)}}),s.display){for(t.save(),a=r-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=oe(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=ge(c.backdropPadding);t.fillRect(-r/2-d.left,-o-u.size/2-d.top,r+d.width,u.size+d.height)}Js(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}it(xi,"id","radialLinear"),it(xi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ul.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),it(xi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),it(xi,"descriptors",{angleLines:{_fallback:"grid"}});const pl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ee=Object.keys(pl);function Lp(e,t){return e-t}function Rp(e,t){if(Lt(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),Jt(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(Yi(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function Np(e,t,n,s){const i=Ee.length;for(let o=Ee.indexOf(e);o=Ee.indexOf(n);o--){const r=Ee[o];if(pl[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return Ee[n?Ee.indexOf(n):0]}function PL(e){for(let t=Ee.indexOf(e)+1,n=Ee.length;t=t?n[s]:n[i];e[o]=!0}}function kL(e,t,n,s){const i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function Bp(e,t,n){const s=[],i={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=le(n,0,r),s=le(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||Np(o.minUnit,n,s,this._getLabelCapacity(n)),a=Et(i.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=Yi(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,n,r)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+_)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){const o=this.options,r=o.ticks.callback;if(r)return Ht(r,[t,n,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=$n(e,"pos",t)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=$n(e,"time",t)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[i]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Ra extends Xi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=ta(n,this.min),this._tableRange=ta(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,a=i.length;ri-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(ta(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return ta(this._table,s*this._tableRange+this._minPos,!0)}}it(Ra,"id","timeseries"),it(Ra,"defaults",Xi.defaults);const gb={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},$L={ariaLabel:{type:String},ariaDescribedby:{type:String}},ML={type:{type:String,required:!0},...gb,...$L},OL=ym[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function mi(e){return Ua(e)?kt(e):e}function DL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return Ua(t)?new Proxy(e,{}):e}function IL(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function mb(e,t){e.labels=t}function _b(e,t,n){const s=[];e.datasets=t.map(i=>{const o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function LL(e,t){const n={labels:[],datasets:[]};return mb(n,e.labels),_b(n,e.datasets,t),n}const RL=Ga({props:ML,setup(e,t){let{expose:n,slots:s}=t;const i=Li(null),o=yu(null);n({chart:o});const r=()=>{if(!i.value)return;const{type:c,data:u,options:d,plugins:f,datasetIdKey:p}=e,m=LL(u,p),_=DL(m,u);o.value=new fr(i.value,{type:c,data:_,options:{...d},plugins:f})},a=()=>{const c=kt(o.value);c&&(c.destroy(),o.value=null)},l=c=>{c.update(e.updateMode)};return ku(r),$u(a),zs([()=>e.options,()=>e.data],(c,u)=>{let[d,f]=c,[p,m]=u;const _=kt(o.value);if(!_)return;let v=!1;if(d){const x=mi(d),S=mi(p);x&&x!==S&&(IL(_,x),v=!0)}if(f){const x=mi(f.labels),S=mi(m.labels),P=mi(f.datasets),A=mi(m.datasets);x!==S&&(mb(_.config.data,x),v=!0),P&&P!==A&&(_b(_.config.data,P,e.datasetIdKey),v=!0)}v&&Ka(()=>{l(_)})},{deep:!0}),()=>Fi("canvas",{role:"img",ariaLabel:e.ariaLabel,ariaDescribedby:e.ariaDescribedby,ref:i},[Fi("p",{},[s.default?s.default():""])])}});function bb(e,t){return fr.register(t),Ga({props:gb,setup(n,s){let{expose:i}=s;const o=yu(null),r=a=>{o.value=a==null?void 0:a.chart};return i({chart:o}),()=>Fi(RL,OL({ref:r},{type:e,...n}))}})}const NL=bb("bar",Ti),FL=bb("line",Pi);function Rn(e){return Array.isArray?Array.isArray(e):xb(e)==="[object Array]"}const BL=1/0;function VL(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-BL?"-0":t}function HL(e){return e==null?"":VL(e)}function un(e){return typeof e=="string"}function vb(e){return typeof e=="number"}function jL(e){return e===!0||e===!1||WL(e)&&xb(e)=="[object Boolean]"}function yb(e){return typeof e=="object"}function WL(e){return yb(e)&&e!==null}function Me(e){return e!=null}function oc(e){return!e.trim().length}function xb(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zL="Incorrect 'index' type",UL=e=>`Invalid value for key ${e}`,KL=e=>`Pattern length exceeds max of ${e}.`,YL=e=>`Missing ${e} property in key`,qL=e=>`Property 'weight' in key '${e}' must be a positive integer`,Vp=Object.prototype.hasOwnProperty;class GL{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let i=wb(s);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wb(e){let t=null,n=null,s=null,i=1,o=null;if(un(e)||Rn(e))s=e,t=Hp(e),n=jc(e);else{if(!Vp.call(e,"name"))throw new Error(YL("name"));const r=e.name;if(s=r,Vp.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(qL(r));t=Hp(r),n=jc(r),o=e.getFn}return{path:t,id:n,weight:i,src:s,getFn:o}}function Hp(e){return Rn(e)?e:e.split(".")}function jc(e){return Rn(e)?e.join("."):e}function XL(e,t){let n=[],s=!1;const i=(o,r,a)=>{if(Me(o))if(!r[a])n.push(o);else{let l=r[a];const c=o[l];if(!Me(c))return;if(a===r.length-1&&(un(c)||vb(c)||jL(c)))n.push(HL(c));else if(Rn(c)){s=!0;for(let u=0,d=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,un(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();un(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let r=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Me(r)){if(Rn(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Me(u))if(un(u)&&!oc(u)){let d={v:u,i:c,n:this.norm.get(u)};a.push(d)}else Rn(u)&&u.forEach((d,f)=>{l.push({nestedArrIndex:f,value:d})})}s.$[o]=a}else if(un(r)&&!oc(r)){let a={v:r,n:this.norm.get(r)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Eb(e,t,{getFn:n=yt.getFn,fieldNormWeight:s=yt.fieldNormWeight}={}){const i=new ld({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(wb)),i.setSources(t),i.create(),i}function sR(e,{getFn:t=yt.getFn,fieldNormWeight:n=yt.fieldNormWeight}={}){const{keys:s,records:i}=e,o=new ld({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(i),o}function ea(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=yt.distance,ignoreLocation:o=yt.ignoreLocation}={}){const r=t/e.length;if(o)return r;const a=Math.abs(s-n);return i?r+a/i:a?1:r}function iR(e=[],t=yt.minMatchCharLength){let n=[],s=-1,i=-1,o=0;for(let r=e.length;o=t&&n.push([s,i]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Bs=32;function oR(e,t,n,{location:s=yt.location,distance:i=yt.distance,threshold:o=yt.threshold,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,includeMatches:l=yt.includeMatches,ignoreLocation:c=yt.ignoreLocation}={}){if(t.length>Bs)throw new Error(KL(Bs));const u=t.length,d=e.length,f=Math.max(0,Math.min(s,d));let p=o,m=f;const _=a>1||l,v=_?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let C=ea(t,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(C,p),m=x+u,_){let w=0;for(;w=D;Y-=1){let H=Y-1,R=n[e.charAt(H)];if(_&&(v[H]=+!!R),N[Y]=(N[Y+1]<<1|1)&R,C&&(N[Y]|=(S[Y+1]|S[Y])<<1|1|S[Y+1]),N[Y]&y&&(P=ea(t,{errors:C,currentLocation:H,expectedLocation:f,distance:i,ignoreLocation:c}),P<=p)){if(p=P,m=H,m<=f)break;D=Math.max(1,2*f-m)}}if(ea(t,{errors:C+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;S=N}const E={isMatch:m>=0,score:Math.max(.001,P)};if(_){const C=iR(v,a);C.length?l&&(E.indices=C):E.isMatch=!1}return E}function rR(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:rR(f),startIndex:p})},d=this.pattern.length;if(d>Bs){let f=0;const p=d%Bs,m=d-p;for(;f{const{isMatch:x,score:S,indices:P}=oR(t,m,_,{location:i+v,distance:o,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:s,ignoreLocation:c});x&&(f=!0),d+=S,x&&P&&(u=[...u,...P])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(p.indices=u),p}}class vs{constructor(t){this.pattern=t}static isMultiMatch(t){return jp(t,this.multiRegex)}static isSingleMatch(t){return jp(t,this.singleRegex)}search(){}}function jp(e,t){const n=e.match(t);return n?n[1]:null}class aR extends vs{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class lR extends vs{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class cR extends vs{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class uR extends vs{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class dR extends vs{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class hR extends vs{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ab extends vs{constructor(t,{location:n=yt.location,threshold:s=yt.threshold,distance:i=yt.distance,includeMatches:o=yt.includeMatches,findAllMatches:r=yt.findAllMatches,minMatchCharLength:a=yt.minMatchCharLength,isCaseSensitive:l=yt.isCaseSensitive,ignoreLocation:c=yt.ignoreLocation}={}){super(t),this._bitapSearch=new Sb(t,{location:n,threshold:s,distance:i,includeMatches:o,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Cb extends vs{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const i=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,i.push([s,n-1]);const r=!!i.length;return{isMatch:r,score:r?0:1,indices:i}}}const Wc=[aR,Cb,cR,uR,hR,dR,lR,Ab],Wp=Wc.length,fR=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pR="|";function gR(e,t={}){return e.split(pR).map(n=>{let s=n.trim().split(fR).filter(o=>o&&!!o.trim()),i=[];for(let o=0,r=s.length;o!!(e[Na.AND]||e[Na.OR]),vR=e=>!!e[Kc.PATH],yR=e=>!Rn(e)&&yb(e)&&!Yc(e),zp=e=>({[Na.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Tb(e,t,{auto:n=!0}={}){const s=i=>{let o=Object.keys(i);const r=vR(i);if(!r&&o.length>1&&!Yc(i))return s(zp(i));if(yR(i)){const l=r?i[Kc.PATH]:o[0],c=r?i[Kc.PATTERN]:i[l];if(!un(c))throw new Error(UL(l));const u={keyId:jc(l),pattern:c};return n&&(u.searcher=Uc(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];Rn(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return Yc(e)||(e=zp(e)),s(e)}function xR(e,{ignoreFieldNorm:t=yt.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:i,norm:o,score:r})=>{const a=i?i.weight:null;s*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(t?1:o))}),n.score=s})}function wR(e,t){const n=e.matches;t.matches=[],Me(n)&&n.forEach(s=>{if(!Me(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let r={indices:i,value:o};s.key&&(r.key=s.key.src),s.idx>-1&&(r.refIndex=s.idx),t.matches.push(r)})}function ER(e,t){t.score=e.score}function SR(e,t,{includeMatches:n=yt.includeMatches,includeScore:s=yt.includeScore}={}){const i=[];return n&&i.push(wR),s&&i.push(ER),e.map(o=>{const{idx:r}=o,a={item:t[r],refIndex:r};return i.length&&i.forEach(l=>{l(o,a)}),a})}class so{constructor(t,n={},s){this.options={...yt,...n},this.options.useExtendedSearch,this._keyStore=new GL(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ld))throw new Error(zL);this._myIndex=n||Eb(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Me(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,i=this._docs.length;s-1&&(l=l.slice(0,n)),SR(l,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(t){const n=Uc(t,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({item:o,idx:r,matches:[{score:c,value:o,norm:a,indices:u}]})}),i}_searchLogical(t){const n=Tb(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:d,searcher:f}=a,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:f});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let d=0,f=a.children.length;d{if(Me(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},r.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),r}_searchObjectList(t){const n=Uc(t,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:r,i:a})=>{if(!Me(r))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:r[u],searcher:n}))}),l.length&&o.push({idx:a,item:r,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!Me(n))return[];let i=[];if(Rn(n))n.forEach(({v:o,i:r,n:a})=>{if(!Me(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&i.push({score:c,key:t,value:o,idx:r,norm:a,indices:u})});else{const{v:o,n:r}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&i.push({score:l,key:t,value:o,norm:r,indices:c})}return i}}so.version="7.0.0";so.createIndex=Eb;so.parseIndex=sR;so.config=yt;so.parseQuery=Tb;bR(_R);var Pb={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Kp,function(){var n=1e3,s=6e4,i=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",m="date",_="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var H=["th","st","nd","rd"],R=Y%100;return"["+Y+(H[(R-20)%10]||H[R]||H[0])+"]"}},P=function(Y,H,R){var W=String(Y);return!W||W.length>=H?Y:""+Array(H+1-W.length).join(R)+Y},A={s:P,z:function(Y){var H=-Y.utcOffset(),R=Math.abs(H),W=Math.floor(R/60),U=R%60;return(H<=0?"+":"-")+P(W,2,"0")+":"+P(U,2,"0")},m:function Y(H,R){if(H.date()1)return Y(ct[0])}else{var mt=H.name;E[mt]=H,U=mt}return!W&&U&&(y=U),U||!W&&y},D=function(Y,H){if(w(Y))return Y.clone();var R=typeof H=="object"?H:{};return R.date=Y,R.args=arguments,new N(R)},I=A;I.l=$,I.i=w,I.w=function(Y,H){return D(Y,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var N=function(){function Y(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[C]=!0}var H=Y.prototype;return H.parse=function(R){this.$d=function(W){var U=W.date,rt=W.utc;if(U===null)return new Date(NaN);if(I.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ct=U.match(v);if(ct){var mt=ct[2]-1||0,pt=(ct[7]||"0").substring(0,3);return rt?new Date(Date.UTC(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)):new Date(ct[1],mt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,pt)}}return new Date(U)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==_},H.isSame=function(R,W){var U=D(R);return this.startOf(W)<=U&&U<=this.endOf(W)},H.isAfter=function(R,W){return D(R){t.status&&this.store.getConfiguration()})},updateRefreshInterval(e){Ce("/api/updateDashboardConfigurationItem",{section:"Server",key:"dashboard_refresh_interval",value:e},t=>{t.status&&this.store.getConfiguration()})}},mounted(){this.$el.querySelectorAll(".dropdown").forEach(e=>{e.addEventListener("show.bs.dropdown",t=>{console.log(t.target.parentNode.children),console.log(t.target.closest("ul.dropdown-menu"))})})}},TR={class:"d-flex gap-2 mb-3 z-3"},PR={class:"dropdown"},kR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-filter-circle me-2"}),gt(" Sort ")],-1),$R={class:"dropdown-menu mt-2 shadow"},MR=["onClick"],OR={class:"me-auto"},DR={key:0,class:"bi bi-check"},IR={class:"dropdown"},LR=g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[g("i",{class:"bi bi-arrow-repeat me-2"}),gt("Refresh Interval ")],-1),RR={class:"dropdown-menu shadow mt-2"},NR=["onClick"],FR={class:"me-auto"},BR={key:0,class:"bi bi-check"},VR={class:"ms-auto d-flex align-items-center"},HR=g("label",{class:"d-flex me-2 text-muted",for:"searchPeers"},[g("i",{class:"bi bi-search me-1"})],-1);function jR(e,t,n,s,i,o){return X(),ot("div",TR,[g("div",PR,[kR,g("ul",$R,[(X(!0),ot(Qt,null,us(this.sort,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>this.updateSort(a)},[g("span",OR,wt(r),1),s.store.Configuration.Server.dashboard_sort===a?(X(),ot("i",DR)):Kt("",!0)],8,MR)]))),256))])]),g("div",IR,[LR,g("ul",RR,[(X(!0),ot(Qt,null,us(this.interval,(r,a)=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:l=>o.updateRefreshInterval(a)},[g("span",FR,wt(r),1),s.store.Configuration.Server.dashboard_refresh_interval===a?(X(),ot("i",BR)):Kt("",!0)],8,NR)]))),256))])]),g("div",VR,[HR,bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[0]||(t[0]=r=>this.wireguardConfigurationStore.searchString=r)},null,512),[[vt,this.wireguardConfigurationStore.searchString]])])])}const WR=Rt(CR,[["render",jR]]),zR={name:"peerSettings",props:{selectedPeer:Object},data(){return{data:void 0,dataChanged:!1,showKey:!1,saving:!1}},setup(){return{dashboardConfigurationStore:Xt()}},methods:{reset(){this.selectedPeer&&(this.data=JSON.parse(JSON.stringify(this.selectedPeer)),this.dataChanged=!1)},savePeer(){this.saving=!0,Ce(`/api/updatePeerSettings/${this.$route.params.id}`,this.data,e=>{this.saving=!1,e.status?this.dashboardConfigurationStore.newMessage("Server","Peer Updated!","success"):this.dashboardConfigurationStore.newMessage("Server",e.message,"danger"),this.$emit("refresh")})}},beforeMount(){this.reset()},mounted(){this.$el.querySelectorAll("input").forEach(e=>{e.addEventListener("keyup",()=>{this.dataChanged=!0})})}},ve=e=>(ei("data-v-6fc123c2"),e=e(),ni(),e),UR={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},KR={class:"container d-flex h-100 w-100"},YR={class:"card m-auto rounded-3 shadow",style:{width:"700px"}},qR={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4"},GR=ve(()=>g("h4",{class:"mb-0"},"Peer Settings",-1)),XR={key:0,class:"card-body px-4 pb-4"},QR={class:"d-flex flex-column gap-2 mb-4"},JR=ve(()=>g("small",{class:"text-muted"},"Public Key",-1)),ZR=ve(()=>g("br",null,null,-1)),tN=ve(()=>g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1)),eN=["disabled"],nN={class:"d-flex position-relative"},sN=ve(()=>g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1)),iN=["type","disabled"],oN=ve(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),rN=["disabled"],aN=ve(()=>g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1)),lN=["disabled"],cN=ve(()=>g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1)),uN=["disabled"],dN=ve(()=>g("hr",null,null,-1)),hN={class:"accordion mt-2",id:"peerSettingsAccordion"},fN={class:"accordion-item"},pN=ve(()=>g("h2",{class:"accordion-header"},[g("button",{class:"accordion-button rounded-3 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#peerSettingsAccordionOptional"}," Optional Settings ")],-1)),gN={id:"peerSettingsAccordionOptional",class:"accordion-collapse collapse","data-bs-parent":"#peerSettingsAccordion"},mN={class:"accordion-body d-flex flex-column gap-2 mb-2"},_N=ve(()=>g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1)),bN=["disabled"],vN=ve(()=>g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1)),yN=["disabled"],xN=ve(()=>g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1)),wN=["disabled"],EN={class:"d-flex align-items-center gap-2"},SN=["disabled"],AN=ve(()=>g("i",{class:"bi bi-arrow-clockwise ms-2"},null,-1)),CN=["disabled"],TN=ve(()=>g("i",{class:"bi bi-save-fill ms-2"},null,-1));function PN(e,t,n,s,i,o){return X(),ot("div",UR,[g("div",KR,[g("div",YR,[g("div",qR,[GR,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),this.data?(X(),ot("div",XR,[g("div",QR,[g("div",null,[JR,ZR,g("small",null,[g("samp",null,wt(this.data.id),1)])]),g("div",null,[tN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,eN),[[vt,this.data.name]])]),g("div",null,[g("div",nN,[sN,g("a",{role:"button",class:"ms-auto text-decoration-none toggleShowKey",onClick:t[2]||(t[2]=r=>this.showKey=!this.showKey)},[g("i",{class:jt(["bi",[this.showKey?"bi-eye-slash-fill":"bi-eye-fill"]])},null,2)])]),bt(g("input",{type:[this.showKey?"text":"password"],class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[3]||(t[3]=r=>this.data.private_key=r),id:"peer_private_key_textbox",style:{"padding-right":"40px"}},null,8,iN),[[TE,this.data.private_key]])]),g("div",null,[oN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[4]||(t[4]=r=>this.data.allowed_ip=r),id:"peer_allowed_ip_textbox"},null,8,rN),[[vt,this.data.allowed_ip]])]),g("div",null,[aN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[5]||(t[5]=r=>this.data.DNS=r),id:"peer_DNS_textbox"},null,8,lN),[[vt,this.data.DNS]])]),g("div",null,[cN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[6]||(t[6]=r=>this.data.endpoint_allowed_ip=r),id:"peer_endpoint_allowed_ips"},null,8,uN),[[vt,this.data.endpoint_allowed_ip]])]),dN,g("div",hN,[g("div",fN,[pN,g("div",gN,[g("div",mN,[g("div",null,[_N,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[7]||(t[7]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,bN),[[vt,this.data.preshared_key]])]),g("div",null,[vN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[8]||(t[8]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,yN),[[vt,this.data.mtu]])]),g("div",null,[xN,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[9]||(t[9]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,wN),[[vt,this.data.keepalive]])])])])])])]),g("div",EN,[g("button",{class:"btn btn-secondary rounded-3 shadow",onClick:t[10]||(t[10]=r=>this.reset()),disabled:!this.dataChanged||this.saving},[gt(" Reset "),AN],8,SN),g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.dataChanged||this.saving,onClick:t[11]||(t[11]=r=>this.savePeer())},[gt(" Save Peer"),TN],8,CN)])])):Kt("",!0)])])])}const kN=Rt(zR,[["render",PN],["__scopeId","data-v-6fc123c2"]]),$N={name:"peerQRCode",props:{peerConfigData:String},mounted(){eo.toCanvas(document.querySelector("#qrcode"),this.peerConfigData,function(e){e&&console.error(e)})}},MN=e=>(ei("data-v-0f1cea80"),e=e(),ni(),e),ON={class:"peerSettingContainer w-100 h-100 position-absolute top-0 start-0"},DN={class:"container d-flex h-100 w-100"},IN={class:"card m-auto rounded-3 shadow"},LN={class:"card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-0"},RN=MN(()=>g("h4",{class:"mb-0"},"QR Code",-1)),NN={class:"card-body"},FN={id:"qrcode",class:"rounded-3 shadow",ref:"qrcode"};function BN(e,t,n,s,i,o){return X(),ot("div",ON,[g("div",DN,[g("div",IN,[g("div",LN,[RN,g("button",{type:"button",class:"btn-close ms-auto",onClick:t[0]||(t[0]=r=>this.$emit("close"))})]),g("div",NN,[g("canvas",FN,null,512)])])])])}const VN=Rt($N,[["render",BN],["__scopeId","data-v-0f1cea80"]]),HN={name:"nameInput",props:{bulk:Boolean,data:Object,saving:Boolean}},jN=g("label",{for:"peer_name_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Name")],-1),WN=["disabled"];function zN(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[jN,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving||this.bulk,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.name=r),id:"peer_name_textbox",placeholder:""},null,8,WN),[[vt,this.data.name]])],2)}const UN=Rt(HN,[["render",zN]]),KN={name:"privatePublicKeyInput",props:{data:Object,saving:Boolean,bulk:Boolean},setup(){return{dashboardStore:Xt()}},data(){return{keypair:{publicKey:"",privateKey:"",presharedKey:""},editKey:!1,error:!1}},methods:{genKeyPair(){this.editKey=!1,this.keypair=window.wireguard.generateKeypair(),this.data.private_key=this.keypair.privateKey,this.data.public_key=this.keypair.publicKey},checkMatching(){try{window.wireguard.generatePublicKey(this.keypair.privateKey)!==this.keypair.publicKey&&(this.error=!0,this.dashboardStore.newMessage("WGDashboard","Private Key and Public Key does not match.","danger"))}catch{this.error=!0,this.data.private_key="",this.data.public_key=""}}},mounted(){this.genKeyPair()},watch:{keypair:{deep:!0,handler(){this.error=!1,this.checkMatching()}}}},YN=g("label",{for:"peer_private_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Private Key "),g("code",null,"(Required for QR Code and Download)")])],-1),qN={class:"input-group"},GN=["disabled"],XN=["disabled"],QN=g("i",{class:"bi bi-arrow-repeat"},null,-1),JN=[QN],ZN={class:"d-flex"},tF=g("label",{for:"public_key",class:"form-label"},[g("small",{class:"text-muted"},[gt("Public Key "),g("code",null,"(Required)")])],-1),eF={class:"form-check form-switch ms-auto"},nF=["disabled"],sF=g("label",{class:"form-check-label",for:"enablePublicKeyEdit"},[g("small",null,"Edit")],-1),iF=["disabled"];function oF(e,t,n,s,i,o){return X(),ot("div",{class:jt(["d-flex gap-2 flex-column",{inactiveField:this.bulk}])},[g("div",null,[YN,g("div",qN,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[0]||(t[0]=r=>this.keypair.privateKey=r),disabled:!this.editKey||this.bulk,onBlur:t[1]||(t[1]=r=>this.checkMatching()),id:"peer_private_key_textbox"},null,42,GN),[[vt,this.keypair.privateKey]]),g("button",{class:"btn btn-outline-info btn-sm rounded-end-3",onClick:t[2]||(t[2]=r=>this.genKeyPair()),disabled:this.bulk,type:"button",id:"button-addon2"},JN,8,XN)])]),g("div",null,[g("div",ZN,[tF,g("div",eF,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:this.bulk,id:"enablePublicKeyEdit","onUpdate:modelValue":t[3]||(t[3]=r=>this.editKey=r)},null,8,nF),[[lr,this.editKey]]),sF])]),bt(g("input",{class:jt(["form-control-sm form-control rounded-3",{"is-invalid":this.error}]),"onUpdate:modelValue":t[4]||(t[4]=r=>this.keypair.publicKey=r),onBlur:t[5]||(t[5]=r=>this.checkMatching()),disabled:!this.editKey||this.bulk,type:"text",id:"public_key"},null,42,iF),[[vt,this.keypair.publicKey]])])],2)}const rF=Rt(KN,[["render",oF]]),aF={name:"allowedIPsInput",props:{data:Object,saving:Boolean,bulk:Boolean,availableIp:void 0},data(){return{allowedIp:[],availableIpSearchString:"",customAvailableIp:"",allowedIpFormatError:!1}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{searchAvailableIps(){return this.availableIpSearchString?this.availableIp.filter(e=>e.includes(this.availableIpSearchString)&&!this.data.allowed_ip.includes(e)):this.availableIp.filter(e=>!this.data.allowed_ip.includes(e))}},methods:{addAllowedIp(e){return this.store.checkCIDR(e)?(this.data.allowed_ip.push(e),!0):!1}},watch:{customAvailableIp(){this.allowedIpFormatError=!1}}},pr=e=>(ei("data-v-f2538e55"),e=e(),ni(),e),lF=pr(()=>g("label",{for:"peer_allowed_ip_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("Allowed IPs "),g("code",null,"(Required)")])],-1)),cF=["onClick"],uF=pr(()=>g("i",{class:"bi bi-x-circle-fill ms-1"},null,-1)),dF=[uF],hF={class:"d-flex gap-2 align-items-center"},fF={class:"input-group"},pF=["disabled"],gF=["disabled"],mF=pr(()=>g("i",{class:"bi bi-plus-lg"},null,-1)),_F=[mF],bF=pr(()=>g("small",{class:"text-muted"},"or",-1)),vF={class:"dropdown flex-grow-1"},yF=["disabled"],xF=pr(()=>g("i",{class:"bi bi-filter-circle me-2"},null,-1)),wF={key:0,class:"dropdown-menu mt-2 shadow w-100 dropdown-menu-end rounded-3",style:{"overflow-y":"scroll","max-height":"270px",width:"300px !important"}},EF={class:"px-3 pb-2 pt-1"},SF=["onClick"],AF={class:"me-auto"},CF={key:0},TF={class:"px-3 text-muted"};function PF(e,t,n,s,i,o){return X(),ot("div",{class:jt({inactiveField:this.bulk})},[lF,g("div",{class:jt(["d-flex gap-2 flex-wrap",{"mb-2":this.data.allowed_ip.length>0}])},[dt(Lu,{name:"list"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(this.data.allowed_ip,(r,a)=>(X(),ot("span",{class:"badge rounded-pill text-bg-success",key:r},[gt(wt(r)+" ",1),g("a",{role:"button",onClick:l=>this.data.allowed_ip.splice(a,1)},dF,8,cF)]))),128))]),_:1})],2),g("div",hF,[g("div",fF,[bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-start-3",{"is-invalid":this.allowedIpFormatError}]),placeholder:"Enter IP Address/CIDR","onUpdate:modelValue":t[0]||(t[0]=r=>i.customAvailableIp=r),disabled:n.bulk},null,10,pF),[[vt,i.customAvailableIp]]),g("button",{class:"btn btn-outline-success btn-sm rounded-end-3",disabled:n.bulk||!this.customAvailableIp,onClick:t[1]||(t[1]=r=>{this.addAllowedIp(this.customAvailableIp)?this.customAvailableIp="":this.allowedIpFormatError=!0,this.dashboardStore.newMessage("WGDashboard","Allowed IP is invalid","danger")}),type:"button",id:"button-addon2"},_F,8,gF)]),bF,g("div",vF,[g("button",{class:"btn btn-outline-secondary btn-sm dropdown-toggle rounded-3 w-100",disabled:!n.availableIp||n.bulk,"data-bs-auto-close":"outside",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[xF,gt(" Pick Available IP ")],8,yF),this.availableIp?(X(),ot("ul",wF,[g("li",null,[g("div",EF,[bt(g("input",{class:"form-control form-control-sm rounded-3","onUpdate:modelValue":t[2]||(t[2]=r=>this.availableIpSearchString=r),placeholder:"Search..."},null,512),[[vt,this.availableIpSearchString]])])]),(X(!0),ot(Qt,null,us(this.searchAvailableIps,r=>(X(),ot("li",null,[g("a",{class:"dropdown-item d-flex",role:"button",onClick:a=>this.addAllowedIp(r)},[g("span",AF,[g("small",null,wt(r),1)])],8,SF)]))),256)),this.searchAvailableIps.length===0?(X(),ot("li",CF,[g("small",TF,'No available IP containing "'+wt(this.availableIpSearchString)+'"',1)])):Kt("",!0)])):Kt("",!0)])])],2)}const kF=Rt(aF,[["render",PF],["__scopeId","data-v-f2538e55"]]),$F={name:"dnsInput",props:{data:Object,saving:Boolean},data(){return{error:!1,dns:JSON.parse(JSON.stringify(this.data.DNS))}},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},methods:{checkDNS(){let e=this.dns.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.regexCheckIP(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","DNS is invalid","danger"),this.error=!0,this.data.DNS="";return}this.error=!1,this.data.DNS=this.dns}},watch:{dns(){this.checkDNS()}}},MF=g("label",{for:"peer_DNS_textbox",class:"form-label"},[g("small",{class:"text-muted"},[gt("DNS "),g("code",null,"(Required)")])],-1),OF=["disabled"];function DF(e,t,n,s,i,o){return X(),ot("div",null,[MF,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":this.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.dns=r),id:"peer_DNS_textbox"},null,10,OF),[[vt,this.dns]])])}const IF=Rt($F,[["render",DF]]),LF={name:"endpointAllowedIps",props:{data:Object,saving:Boolean},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},data(){return{endpointAllowedIps:JSON.parse(JSON.stringify(this.data.endpoint_allowed_ip)),error:!1}},methods:{checkAllowedIP(){let e=this.endpointAllowedIps.split(",").map(t=>t.replaceAll(" ",""));for(let t in e)if(!this.store.checkCIDR(e[t])){this.error||this.dashboardStore.newMessage("WGDashboard","Endpoint Allowed IP is invalid.","danger"),this.data.endpoint_allowed_ip="",this.error=!0;return}this.error=!1,this.data.endpoint_allowed_ip=this.endpointAllowedIps}},watch:{endpointAllowedIps(){this.checkAllowedIP()}}},RF=g("label",{for:"peer_endpoint_allowed_ips",class:"form-label"},[g("small",{class:"text-muted"},[gt("Endpoint Allowed IPs "),g("code",null,"(Required)")])],-1),NF=["disabled"];function FF(e,t,n,s,i,o){return X(),ot("div",null,[RF,bt(g("input",{type:"text",class:jt(["form-control form-control-sm rounded-3",{"is-invalid":i.error}]),disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.endpointAllowedIps=r),onBlur:t[1]||(t[1]=r=>this.checkAllowedIP()),id:"peer_endpoint_allowed_ips"},null,42,NF),[[vt,this.endpointAllowedIps]])])}const BF=Rt(LF,[["render",FF]]),VF={name:"presharedKeyInput",props:{data:Object,saving:Boolean}},HF=g("label",{for:"peer_preshared_key_textbox",class:"form-label"},[g("small",{class:"text-muted"},"Pre-Shared Key")],-1),jF=["disabled"];function WF(e,t,n,s,i,o){return X(),ot("div",null,[HF,bt(g("input",{type:"text",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.preshared_key=r),id:"peer_preshared_key_textbox"},null,8,jF),[[vt,this.data.preshared_key]])])}const zF=Rt(VF,[["render",WF]]),UF={name:"mtuInput",props:{data:Object,saving:Boolean}},KF=g("label",{for:"peer_mtu",class:"form-label"},[g("small",{class:"text-muted"},"MTU")],-1),YF=["disabled"];function qF(e,t,n,s,i,o){return X(),ot("div",null,[KF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.mtu=r),id:"peer_mtu"},null,8,YF),[[vt,this.data.mtu]])])}const GF=Rt(UF,[["render",qF]]),XF={name:"persistentKeepAliveInput",props:{data:Object,saving:Boolean}},QF=g("label",{for:"peer_keep_alive",class:"form-label"},[g("small",{class:"text-muted"},"Persistent Keepalive")],-1),JF=["disabled"];function ZF(e,t,n,s,i,o){return X(),ot("div",null,[QF,bt(g("input",{type:"number",class:"form-control form-control-sm rounded-3",disabled:this.saving,"onUpdate:modelValue":t[0]||(t[0]=r=>this.data.keepalive=r),id:"peer_keep_alive"},null,8,JF),[[vt,this.data.keepalive]])])}const tB=Rt(XF,[["render",ZF]]),eB={name:"bulkAdd",props:{saving:Boolean,data:Object,availableIp:void 0}},nB={class:"form-check form-switch"},sB=["disabled"],iB=g("label",{class:"form-check-label me-2",for:"bulk_add"},[g("small",null,[g("strong",null,"Bulk Add")])],-1),oB=g("small",{class:"text-muted d-block"}," By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP. ",-1),rB=[oB],aB={key:0,class:"form-group"},lB=["max"],cB={class:"text-muted"};function uB(e,t,n,s,i,o){return X(),ot("div",null,[g("div",nB,[bt(g("input",{class:"form-check-input",type:"checkbox",role:"switch",disabled:!this.availableIp,id:"bulk_add","onUpdate:modelValue":t[0]||(t[0]=r=>this.data.bulkAdd=r)},null,8,sB),[[lr,this.data.bulkAdd]]),iB]),g("p",{class:jt({"mb-0":!this.data.bulkAdd})},rB,2),this.data.bulkAdd?(X(),ot("div",aB,[bt(g("input",{class:"form-control form-control-sm rounded-3 mb-1",type:"number",min:"1",max:this.availableIp.length,"onUpdate:modelValue":t[1]||(t[1]=r=>this.data.bulkAddAmount=r),placeholder:"How many peers you want to add?"},null,8,lB),[[vt,this.data.bulkAddAmount]]),g("small",cB,[gt(" You can add up to "),g("strong",null,wt(this.availableIp.length),1),gt(" peers ")])])):Kt("",!0)])}const dB=Rt(eB,[["render",uB]]),hB={name:"peerCreate",components:{BulkAdd:dB,PersistentKeepAliveInput:tB,MtuInput:GF,PresharedKeyInput:zF,EndpointAllowedIps:BF,DnsInput:IF,AllowedIPsInput:kF,PrivatePublicKeyInput:rF,NameInput:UN},data(){return{data:{bulkAdd:!1,bulkAddAmount:"",name:"",allowed_ip:[],private_key:"",public_key:"",DNS:this.dashboardStore.Configuration.Peers.peer_global_dns,endpoint_allowed_ip:this.dashboardStore.Configuration.Peers.peer_endpoint_allowed_ip,keepalive:parseInt(this.dashboardStore.Configuration.Peers.peer_keep_alive),mtu:parseInt(this.dashboardStore.Configuration.Peers.peer_mtu),preshared_key:""},availableIp:void 0,availableIpSearchString:"",saving:!1,allowedIpDropdown:void 0}},mounted(){Re("/api/getAvailableIPs/"+this.$route.params.id,{},e=>{e.status&&(this.availableIp=e.data)})},setup(){const e=mn(),t=Xt();return{store:e,dashboardStore:t}},computed:{allRequireFieldsFilled(){let e=!0;return this.data.bulkAdd?(this.data.bulkAddAmount.length===0||this.data.bulkAddAmount>this.availableIp.length)&&(e=!1):["allowed_ip","private_key","public_key","DNS","endpoint_allowed_ip","keepalive","mtu"].forEach(n=>{this.data[n].length===0&&(e=!1)}),e}},watch:{bulkAdd(e){e||(this.data.bulkAddAmount="")},"data.bulkAddAmount"(){this.data.bulkAddAmount>this.availableIp.length&&(this.data.bulkAddAmount=this.availableIp.length)}}},gr=e=>(ei("data-v-cbe62677"),e=e(),ni(),e),fB={class:"container"},pB={class:"mb-4 d-flex align-items-center gap-4"},gB=gr(()=>g("h3",{class:"mb-0 text-body"},[g("i",{class:"bi bi-chevron-left"})],-1)),mB=gr(()=>g("h3",{class:"text-body mb-0"},"New Configuration",-1)),_B={class:"d-flex flex-column gap-2"},bB=gr(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),vB=gr(()=>g("hr",{class:"mb-0 mt-2"},null,-1)),yB={class:"row"},xB={key:0,class:"col-sm"},wB={class:"col-sm"},EB={class:"col-sm"},SB={class:"d-flex mt-2"},AB=["disabled"],CB=gr(()=>g("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function TB(e,t,n,s,i,o){const r=Ot("RouterLink"),a=Ot("BulkAdd"),l=Ot("NameInput"),c=Ot("PrivatePublicKeyInput"),u=Ot("AllowedIPsInput"),d=Ot("DnsInput"),f=Ot("EndpointAllowedIps"),p=Ot("PresharedKeyInput"),m=Ot("MtuInput"),_=Ot("PersistentKeepAliveInput");return X(),ot("div",fB,[g("div",pB,[dt(r,{to:"peers"},{default:Ut(()=>[gB]),_:1}),mB]),g("div",_B,[dt(a,{saving:i.saving,data:this.data,availableIp:this.availableIp},null,8,["saving","data","availableIp"]),bB,this.data.bulkAdd?Kt("",!0):(X(),de(l,{key:0,saving:i.saving,data:this.data},null,8,["saving","data"])),this.data.bulkAdd?Kt("",!0):(X(),de(c,{key:1,saving:i.saving,data:i.data},null,8,["saving","data"])),this.data.bulkAdd?Kt("",!0):(X(),de(u,{key:2,availableIp:this.availableIp,saving:i.saving,data:i.data},null,8,["availableIp","saving","data"])),dt(d,{saving:i.saving,data:i.data},null,8,["saving","data"]),dt(f,{saving:i.saving,data:i.data},null,8,["saving","data"]),vB,g("div",yB,[this.data.bulkAdd?Kt("",!0):(X(),ot("div",xB,[dt(p,{saving:i.saving,data:i.data,bulk:this.data.bulkAdd},null,8,["saving","data","bulk"])])),g("div",wB,[dt(m,{saving:i.saving,data:i.data},null,8,["saving","data"])]),g("div",EB,[dt(_,{saving:i.saving,data:i.data},null,8,["saving","data"])])]),g("div",SB,[g("button",{class:"ms-auto btn btn-dark btn-brand rounded-3 px-3 py-2 shadow",disabled:!this.allRequireFieldsFilled},[CB,gt("Add ")],8,AB)])])])}const kb=Rt(hB,[["render",TB],["__scopeId","data-v-cbe62677"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,ka,Ro,No,Fo,Oa,Ia,La,xi,Xi,Ra,ib,ab,cb,db,fb);const PB={name:"peerList",components:{PeerCreate:kb,PeerQRCode:VN,PeerSettings:kN,PeerSearch:WR,Peer:HM,Line:FL,Bar:NL},setup(){const e=Xt(),t=mn();return{dashboardConfigurationStore:e,wireguardConfigurationStore:t}},data(){return{loading:!1,error:null,configurationInfo:[],configurationPeers:[],historyDataSentDifference:[],historyDataReceivedDifference:[],historySentData:{labels:[],datasets:[{label:"Data Sent",data:[],fill:!1,borderColor:"#198754",tension:0}]},historyReceiveData:{labels:[],datasets:[{label:"Data Received",data:[],fill:!1,borderColor:"#0d6efd",tension:0}]},peerSetting:{modalOpen:!1,selectedPeer:void 0},peerQRCode:{modalOpen:!1,peerConfigData:void 0},peerCreate:{modalOpen:!1}}},watch:{"$route.params":{immediate:!0,handler(){clearInterval(this.interval),this.loading=!0;let e=this.$route.params.id;this.configurationInfo=[],this.configurationPeers=[],e&&(this.getPeers(e),this.setInterval())}},"dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval"(){clearInterval(this.interval),this.setInterval()}},beforeRouteLeave(){clearInterval(this.interval)},methods:{getPeers(e){Re("/api/getWireguardConfigurationInfo",{configurationName:e},t=>{if(this.configurationInfo=t.data.configurationInfo,this.configurationPeers=t.data.configurationPeers,this.loading=!1,this.configurationPeers.length>0){const n=this.configurationPeers.map(i=>i.total_sent+i.cumu_sent).reduce((i,o)=>i+o).toFixed(4),s=this.configurationPeers.map(i=>i.total_receive+i.cumu_receive).reduce((i,o)=>i+o).toFixed(4);this.historyDataSentDifference[this.historyDataSentDifference.length-1]!==n&&(this.historyDataSentDifference.length>0&&(this.historySentData={labels:[...this.historySentData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Sent",data:[...this.historySentData.datasets[0].data,((n-this.historyDataSentDifference[this.historyDataSentDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:" #198754",tension:0}]}),this.historyDataSentDifference.push(n)),this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1]!==s&&(this.historyDataReceivedDifference.length>0&&(this.historyReceiveData={labels:[...this.historyReceiveData.labels,Up().format("HH:mm:ss A")],datasets:[{label:"Data Received",data:[...this.historyReceiveData.datasets[0].data,((s-this.historyDataReceivedDifference[this.historyDataReceivedDifference.length-1])*1e3).toFixed(4)],fill:!1,borderColor:"#0d6efd",tension:0}]}),this.historyDataReceivedDifference.push(s))}})},setInterval(){this.interval=setInterval(()=>{this.getPeers(this.$route.params.id)},parseInt(this.dashboardConfigurationStore.Configuration.Server.dashboard_refresh_interval))}},computed:{configurationSummary(){return{connectedPeers:this.configurationPeers.filter(e=>e.status==="running").length,totalUsage:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_data+e.cumu_data).reduce((e,t)=>e+t):0,totalReceive:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_receive+e.cumu_receive).reduce((e,t)=>e+t):0,totalSent:this.configurationPeers.length>0?this.configurationPeers.map(e=>e.total_sent+e.cumu_sent).reduce((e,t)=>e+t):0}},receiveData(){return this.historyReceiveData},sentData(){return this.historySentData},individualDataUsage(){return{labels:this.configurationPeers.map(e=>e.name?e.name:`Untitled Peer - ${e.id}`),datasets:[{label:"Total Data Usage",data:this.configurationPeers.map(e=>e.cumu_data+e.total_data),backgroundColor:this.configurationPeers.map(e=>"#0dcaf0"),tooltip:{callbacks:{label:e=>`${e.formattedValue} GB`}}}]}},individualDataUsageChartOption(){return{responsive:!0,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} GB`},grid:{display:!1}}}}},chartOptions(){return{responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.formattedValue} MB/s`}}},scales:{x:{ticks:{display:!1},grid:{display:!1}},y:{ticks:{callback:(e,t)=>`${e} MB/s`},grid:{display:!1}}}}},searchPeers(){const e=new so(this.configurationPeers,{keys:["name","id","allowed_ip"]});return(this.wireguardConfigurationStore.searchString?e.search(this.wireguardConfigurationStore.searchString).map(n=>n.item):this.configurationPeers).slice().sort((n,s)=>n[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]s[this.dashboardConfigurationStore.Configuration.Server.dashboard_sort]?1:0)}}},ce=e=>(ei("data-v-b59a7de8"),e=e(),ni(),e),kB={key:0},$B=ce(()=>g("small",{CLASS:"text-muted"},"CONFIGURATION",-1)),MB={class:"d-flex align-items-center gap-3"},OB={class:"mb-0"},DB=ce(()=>g("div",{class:"dot active ms-0"},null,-1)),IB={class:"row mt-3 gy-2 gx-2 mb-2"},LB={class:"col-6 col-lg-3"},RB={class:"card rounded-3 bg-transparent shadow-sm"},NB={class:"card-body py-2"},FB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Address")],-1)),BB={class:"col-6 col-lg-3"},VB={class:"card rounded-3 bg-transparent shadow-sm"},HB={class:"card-body py-2"},jB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Listen Port")],-1)),WB={style:{"word-break":"break-all"},class:"col-12 col-lg-6"},zB={class:"card rounded-3 bg-transparent shadow-sm"},UB={class:"card-body py-2"},KB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Public Key")],-1)),YB={class:"row gx-2 gy-2 mb-2"},qB={class:"col-6 col-lg-3"},GB={class:"card rounded-3 bg-transparent shadow-sm"},XB={class:"card-body d-flex"},QB=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Connected Peers")],-1)),JB={class:"h4"},ZB=ce(()=>g("i",{class:"bi bi-ethernet ms-auto h2 text-muted"},null,-1)),t3={class:"col-6 col-lg-3"},e3={class:"card rounded-3 bg-transparent shadow-sm"},n3={class:"card-body d-flex"},s3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Usage")],-1)),i3={class:"h4"},o3=ce(()=>g("i",{class:"bi bi-arrow-down-up ms-auto h2 text-muted"},null,-1)),r3={class:"col-6 col-lg-3"},a3={class:"card rounded-3 bg-transparent shadow-sm"},l3={class:"card-body d-flex"},c3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Received")],-1)),u3={class:"h4 text-primary"},d3=ce(()=>g("i",{class:"bi bi-arrow-down ms-auto h2 text-muted"},null,-1)),h3={class:"col-6 col-lg-3"},f3={class:"card rounded-3 bg-transparent shadow-sm"},p3={class:"card-body d-flex"},g3=ce(()=>g("p",{class:"mb-0 text-muted"},[g("small",null,"Total Sent")],-1)),m3={class:"h4 text-success"},_3=ce(()=>g("i",{class:"bi bi-arrow-up ms-auto h2 text-muted"},null,-1)),b3={class:"row gx-2 gy-2 mb-5"},v3={class:"col-12 col-lg-6"},y3={class:"card rounded-3 bg-transparent shadow-sm"},x3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Peers Total Data Usage")],-1)),w3={class:"card-body pt-1"},E3={class:"col-sm col-lg-3"},S3={class:"card rounded-3 bg-transparent shadow-sm"},A3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Received Data Usage")],-1)),C3={class:"card-body pt-1"},T3={class:"col-sm col-lg-3"},P3={class:"card rounded-3 bg-transparent shadow-sm"},k3=ce(()=>g("div",{class:"card-header bg-transparent border-0"},[g("small",{class:"text-muted"},"Real Time Sent Data Usage")],-1)),$3={class:"card-body pt-1"},M3={class:"mb-4"},O3={class:"d-flex align-items-center gap-3 mb-2"},D3=ce(()=>g("h3",null,"Peers",-1)),I3=ce(()=>g("i",{class:"bi bi-plus-circle-fill me-2"},null,-1));function L3(e,t,n,s,i,o){const r=Ot("Bar"),a=Ot("Line"),l=Ot("RouterLink"),c=Ot("PeerSearch"),u=Ot("Peer"),d=Ot("PeerSettings"),f=Ot("PeerQRCode"),p=Ot("PeerCreate");return this.loading?Kt("",!0):(X(),ot("div",kB,[g("div",null,[$B,g("div",MB,[g("h1",OB,[g("samp",null,wt(this.configurationInfo.Name),1)]),DB])]),g("div",IB,[g("div",LB,[g("div",RB,[g("div",NB,[FB,gt(" "+wt(this.configurationInfo.Address),1)])])]),g("div",BB,[g("div",VB,[g("div",HB,[jB,gt(" "+wt(this.configurationInfo.ListenPort),1)])])]),g("div",WB,[g("div",zB,[g("div",UB,[KB,g("samp",null,wt(this.configurationInfo.PublicKey),1)])])])]),g("div",YB,[g("div",qB,[g("div",GB,[g("div",XB,[g("div",null,[QB,g("strong",JB,wt(o.configurationSummary.connectedPeers),1)]),ZB])])]),g("div",t3,[g("div",e3,[g("div",n3,[g("div",null,[s3,g("strong",i3,wt(o.configurationSummary.totalUsage.toFixed(4))+" GB",1)]),o3])])]),g("div",r3,[g("div",a3,[g("div",l3,[g("div",null,[c3,g("strong",u3,wt(o.configurationSummary.totalReceive.toFixed(4))+" GB",1)]),d3])])]),g("div",h3,[g("div",f3,[g("div",p3,[g("div",null,[g3,g("strong",m3,wt(o.configurationSummary.totalSent.toFixed(4))+" GB",1)]),_3])])])]),g("div",b3,[g("div",v3,[g("div",y3,[x3,g("div",w3,[dt(r,{data:o.individualDataUsage,options:o.individualDataUsageChartOption,style:{height:"200px",width:"100%"}},null,8,["data","options"])])])]),g("div",E3,[g("div",S3,[A3,g("div",C3,[dt(a,{options:o.chartOptions,data:o.receiveData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])]),g("div",T3,[g("div",P3,[k3,g("div",$3,[dt(a,{options:o.chartOptions,data:o.sentData,style:{width:"100%",height:"200px"}},null,8,["options","data"])])])])]),g("div",M3,[g("div",O3,[D3,dt(l,{to:"create",class:"text-decoration-none ms-auto"},{default:Ut(()=>[I3,gt("Add Peer")]),_:1})]),dt(c),dt(Lu,{name:"list",tag:"div",class:"row gx-2 gy-2 z-0"},{default:Ut(()=>[(X(!0),ot(Qt,null,us(this.searchPeers,m=>(X(),ot("div",{class:"col-12 col-lg-6 col-xl-4",key:m.id},[dt(u,{Peer:m,onSetting:_=>{i.peerSetting.modalOpen=!0,i.peerSetting.selectedPeer=this.configurationPeers.find(v=>v.id===m.id)},onQrcode:t[0]||(t[0]=_=>{this.peerQRCode.peerConfigData=_,this.peerQRCode.modalOpen=!0})},null,8,["Peer","onSetting"])]))),128))]),_:1})]),dt(Ln,{name:"fade"},{default:Ut(()=>[this.peerSetting.modalOpen?(X(),de(d,{key:0,selectedPeer:this.peerSetting.selectedPeer,onRefresh:t[1]||(t[1]=m=>this.getPeers(this.$route.params.id)),onClose:t[2]||(t[2]=m=>this.peerSetting.modalOpen=!1)},null,8,["selectedPeer"])):Kt("",!0)]),_:1}),dt(Ln,{name:"fade"},{default:Ut(()=>[i.peerQRCode.modalOpen?(X(),de(f,{key:0,peerConfigData:this.peerQRCode.peerConfigData,onClose:t[3]||(t[3]=m=>this.peerQRCode.modalOpen=!1)},null,8,["peerConfigData"])):Kt("",!0)]),_:1}),dt(p)]))}const $b=Rt(PB,[["render",L3],["__scopeId","data-v-b59a7de8"]]);fr.register(yi,On,Vo,Bo,Ti,Lo,Vs,Pi,ka,Ro,No,Fo,Oa,Ia,La,xi,Xi,Ra,ib,ab,cb,db,fb);const R3={name:"configuration",components:{PeerList:$b}},N3={class:"mt-5 text-body"};function F3(e,t,n,s,i,o){const r=Ot("RouterView");return X(),ot("div",N3,[dt(r,null,{default:Ut(({Component:a})=>[dt(Ln,{name:"fade2",mode:"out-in"},{default:Ut(()=>[(X(),de(Au(a)))]),_:2},1024)]),_:1})])}const B3=Rt(R3,[["render",F3]]),V3=async()=>{let e=!1;return await Re("/api/validateAuthentication",{},t=>{e=t.status}),e},cd=jS({history:oS(),routes:[{name:"Index",path:"/",component:DA,meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:EC,meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:dP,meta:{title:"Settings"}},{name:"New Configuration",path:"/new_configuration",component:nM,meta:{title:"New Configuration"}},{name:"Configuration",path:"/configuration/:id",component:B3,meta:{title:"Configuration"},children:[{name:"Peers List",path:"peers",component:$b},{name:"Peers Create",path:"create",component:kb}]}]},{path:"/signin",component:ZA,meta:{title:"Sign In"}},{path:"/welcome",component:Hk,meta:{requiresAuth:!0}}]});cd.beforeEach(async(e,t,n)=>{const s=mn(),i=Xt();e.meta.title?e.params.id?document.title=e.params.id+" | WGDashboard":document.title=e.meta.title+" | WGDashboard":document.title="WGDashboard",e.meta.requiresAuth?XS.getCookie("authToken")&&await V3()?(await i.getConfiguration(),!s.Configurations&&e.name!=="Configuration List"&&await s.getConfigurations(),n()):n("/signin"):n()});const ud=ME(GS);ud.use(cd);const Mb=LE();Mb.use(({store:e})=>{e.$router=rr(cd)});ud.use(Mb);ud.mount("#app"); diff --git a/src/static/app/src/components/configurationComponents/newPeersComponents/dnsInput.vue b/src/static/app/src/components/configurationComponents/newPeersComponents/dnsInput.vue index f45f317..ed67e56 100644 --- a/src/static/app/src/components/configurationComponents/newPeersComponents/dnsInput.vue +++ b/src/static/app/src/components/configurationComponents/newPeersComponents/dnsInput.vue @@ -22,19 +22,21 @@ export default { }, methods:{ checkDNS(){ - let i = this.dns.split(',').map(x => x.replaceAll(' ', '')); - for(let ip in i){ - if (!this.store.regexCheckIP(i[ip])){ - if (!this.error){ - this.dashboardStore.newMessage("WGDashboard", "DNS is invalid", "danger"); + if(this.dns){ + let i = this.dns.split(',').map(x => x.replaceAll(' ', '')); + for(let ip in i){ + if (!this.store.regexCheckIP(i[ip])){ + if (!this.error){ + this.dashboardStore.newMessage("WGDashboard", "DNS is invalid", "danger"); + } + this.error = true; + this.data.DNS = ""; + return; } - this.error = true; - this.data.DNS = ""; - return; } + this.error = false; + this.data.DNS = this.dns; } - this.error = false; - this.data.DNS = this.dns; } }, watch: { @@ -48,7 +50,7 @@ export default {