@moonbase.sh/storefront 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.moonbase .moonbase\\:toolbar{position:fixed;bottom:32px;border-radius:16px;background-color:#1a1a1a;color:#f9f9f9;display:flex;transition-duration:.1s;transition-property:all;transition-timing-function:ease-out;transform:translateY(8px);opacity:0}.moonbase .moonbase\\:toolbar[data-location=bottom-right]{right:32px}.moonbase .moonbase\\:toolbar[data-location=bottom-left]{left:32px}.moonbase .moonbase\\:toolbar[data-visible=true]{transform:translateY(0);opacity:1;transition-duration:.5s}.moonbase .moonbase\\:toolbar-action{padding:12px 16px;transition:background-color .25s ease-out;cursor:pointer;display:flex;align-items:center}.moonbase .moonbase\\:toolbar-action:nth-child(1){border-top-left-radius:16px;border-bottom-left-radius:16px}.moonbase .moonbase\\:toolbar-action:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}.moonbase .moonbase\\:toolbar-action:hover{background-color:#ffffff1a}.moonbase .moonbase\\:toolbar-action[data-action-width=narrow]{padding:12px}.moonbase\\:input[data-v-47c5c102] label[data-v-47c5c102]{display:block;font-size:14px;font-weight:500;line-height:20px;color:#374151}.moonbase\\:input[data-v-47c5c102] input[data-v-47c5c102]{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:calc(var(--moonbase-input-border-radius) * .5);border-width:1px;border-color:#d1d5db;background-color:var(--moonbase-input-background-color);font-size:.875rem;line-height:1.25rem;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:input[data-v-47c5c102] input[data-v-47c5c102][data-v-47c5c102]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:input[data-v-47c5c102] .moonbase\\:input-hint[data-v-47c5c102]{margin-top:8px;font-size:14px;line-height:20px}.moonbase\\:input[data-v-47c5c102] .moonbase\\:input-hint[data-v-47c5c102][data-type=error][data-v-47c5c102]{color:var(--moonbase-input-error-color)}@keyframes moonbase\\:spin-f9a322c4{to{transform:rotate(360deg)}}.moonbase svg[data-v-f9a322c4]{animation:moonbase\\:spin-f9a322c4 1s linear infinite}.moonbase .moonbase\\:submit-button[data-v-052f0f36]{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36],.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:hover,.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:focus,.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:var(--moonbase-button-border-radius);border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);padding:var(--moonbase-button-padding);height:unset;width:unset}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-success][data-v-052f0f36]{background-color:var(--moonbase-button-success-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-error][data-v-052f0f36]{background-color:var(--moonbase-button-error-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36]{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36][data-visible][data-v-052f0f36]{width:20px;opacity:1}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36] svg[data-v-052f0f36]{height:20px;width:20px}.moonbase\\:checkbox[data-v-20c4336e]{display:flex;align-items:flex-start}.moonbase\\:checkbox[data-v-20c4336e] label[data-v-20c4336e]{font-size:14px;font-weight:500;line-height:20px;color:#374151}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-container[data-v-20c4336e]{display:flex;height:24px;align-items:center}.moonbase\\:checkbox[data-v-20c4336e] input[data-v-20c4336e]{height:16px;width:16px;border-radius:var(--moonbase-input-border-radius);border-width:1px;border-color:#d1d5db;background-color:var(--moonbase-input-background-color);font-size:.875rem;line-height:1.25rem;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:checkbox[data-v-20c4336e] input[data-v-20c4336e][data-v-20c4336e]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e]{margin-left:12px}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] label[data-v-20c4336e]{font-size:14px;line-height:24px;font-weight:500;color:hsl(from var(--moonbase-text-color) h s calc(l + 5))}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] p[data-v-20c4336e]{font-size:14px;line-height:24px;color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] p[data-v-20c4336e][data-type=error][data-v-20c4336e]{color:var(--moonbase-input-error-color)}.moonbase .moonbase\\:sign-up{display:flex;flex-direction:column}.moonbase .moonbase\\:sign-up>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:sign-up .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:sign-up .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:confirm-account{display:flex;flex-direction:column}.moonbase .moonbase\\:confirm-account>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:confirm-account>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:confirm-account>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:confirm-account .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:confirm-account .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:reset-password{display:flex;flex-direction:column}.moonbase .moonbase\\:reset-password>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:reset-password .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:reset-password .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:confirm-email-change{display:flex;flex-direction:column}.moonbase .moonbase\\:confirm-email-change>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:confirm-email-change .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:confirm-email-change .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}.moonbase .moonbase\\:modal-container{display:flex;min-height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px;text-align:center}@media (min-width: 640px){.moonbase .moonbase\\:modal-container{display:block;padding:0}}.moonbase .moonbase\\:modal-center{display:none}@media (min-width: 640px){.moonbase .moonbase\\:modal-center{display:inline-block;height:100svh;vertical-align:middle}}.moonbase .moonbase\\:modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity}.moonbase .moonbase\\:modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:modal-overlay[data-transition~=enter-from],.moonbase .moonbase\\:modal-overlay[data-transition~=leave-to]{opacity:0}.moonbase .moonbase\\:modal-overlay[data-transition~=enter-to],.moonbase .moonbase\\:modal-overlay[data-transition~=leave-from]{opacity:1}.moonbase .moonbase\\:modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:modal-content{position:relative;display:inline-block;margin:80px auto 16px;background-color:var(--moonbase-background-color, white);box-shadow:#64646f33 0 8px 32px;border-radius:calc(var(--moonbase-border-radius, 6px) * 2);vertical-align:bottom;transition-property:all;text-align:left}@media (min-width: 640px){.moonbase .moonbase\\:modal-content{vertical-align:middle}}.moonbase .moonbase\\:modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:modal-content[data-transition~=enter-from]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=enter-from]{transform:scale(.95)}}.moonbase .moonbase\\:modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=enter-to]{transform:scale(1)}}.moonbase .moonbase\\:modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=leave-from]{transform:scale(1)}}.moonbase .moonbase\\:modal-content[data-transition~=leave-to]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=leave-to]{transform:scale(.95)}}.moonbase .moonbase\\:sign-in{display:flex;flex-direction:column}.moonbase .moonbase\\:sign-in>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:sign-in .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:sign-in .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:authentication{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){.moonbase .moonbase\\:authentication{width:100vw;max-width:26rem}}.moonbase .moonbase\\:authentication>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase .moonbase\\:authentication>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:authentication>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:product-cart-item{display:flex;align-items:center}.moonbase .moonbase\\:product-cart-item>:not(:first-child){margin-left:24px}.moonbase .moonbase\\:product-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:product-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content h3{font-weight:600}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}.moonbase .moonbase\\:bundle-cart-item{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item>:not(:first-child){margin-left:24px}.moonbase .moonbase\\:bundle-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content h3{font-weight:600}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary{display:flex;align-items:flex-start;flex-direction:column}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary>:not(:first-child){margin-top:2px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg{margin-left:4px;margin-top:4px;height:16px;width:16px;transition:transform .2s ease-in-out;transform:rotate(0)}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg[data-open]{transform:rotate(180deg)}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}.moonbase .moonbase\\:bundle-cart-item-product-list{overflow:hidden;padding-left:24px;transition-property:height;transition-duration:.3s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:bundle-cart-item-product-list>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:bundle-cart-item-product-list>div{display:flex;align-items:center;padding:8px 0}.moonbase .moonbase\\:bundle-cart-item-product-list>div>:not(:first-child){margin-left:16px}.moonbase .moonbase\\:bundle-cart-item-product-list>div>img{height:64px;width:64px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:bundle-cart-item-product-list>div>.moonbase\\:image-placeholder{height:64px;width:64px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div{display:flex;flex:auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3:not([data-included]){text-decoration:line-through;opacity:.75}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3 svg{margin-right:4px;height:16px;width:16px}.moonbase .moonbase\\:cart-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}.moonbase .moonbase\\:cart-modal-container{display:flex;height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-container{display:block;padding:0}}.moonbase .moonbase\\:cart-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-from],.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-to]{opacity:0}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-to],.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-from]{opacity:1}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:cart-modal-content{position:fixed;top:0;right:0;bottom:0;display:inline-block;background-color:var(--moonbase-background-color, white);box-shadow:#64646f33 0 8px 32px;transition-property:all}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-from]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-from]{transform:translate(48px)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{transform:translate(0)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{transform:translate(0)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-to]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-to]{transform:translate(48px)}}.moonbase .moonbase\\:button{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:button[data-variant=secondary]{--moonbase-button-background-color: rgb(107 114 128);--moonbase-button-text-color: white}.moonbase .moonbase\\:button,.moonbase .moonbase\\:button:hover,.moonbase .moonbase\\:button:focus,.moonbase .moonbase\\:button:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:var(--moonbase-button-border-radius);border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);padding:var(--moonbase-button-padding);height:unset;width:unset}.moonbase .moonbase\\:button:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:button[data-success]{background-color:var(--moonbase-button-success-color)}.moonbase .moonbase\\:button[data-error]{background-color:var(--moonbase-button-error-color)}.moonbase .moonbase\\:button div{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:button div[data-visible]{width:20px;opacity:1}.moonbase .moonbase\\:button div svg{height:20px;width:20px}.moonbase .moonbase\\:cart{display:inline-block;color:var(--moonbase-text-color, black);padding:32px}@media (min-width: 640px){.moonbase .moonbase\\:cart{width:100vw;max-width:26rem}}.moonbase .moonbase\\:cart>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase .moonbase\\:cart>.moonbase\\:cart-items{font-size:14px;line-height:20px;font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>:not(:first-child){border-top-width:1px;border-color:#00000026}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>li{padding:24px 0}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>li>:not(:first-child){margin-left:16px}.moonbase .moonbase\\:cart>.moonbase\\:cart-empty{padding:32px 0;font-size:1.1rem;line-height:1.3rem;font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-total{width:100%;margin-top:16px;padding:8px;border-radius:4px;background:#0000001a;display:grid;grid-template-columns:repeat(2,1fr);justify-content:space-between}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>label{font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>span{font-weight:600;text-align:right}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>p{grid-column:-1 / 1;padding-top:8px;text-align:center}.moonbase .moonbase\\:cart>button{--moonbase-button-padding: 12px 32px;margin:32px auto 16px;min-width:164px}.moonbase .moonbase\\:account{padding-bottom:32px}.moonbase .moonbase\\:account>*:not(:last-child){margin-bottom:16px}.moonbase .moonbase\\:account form{margin:auto;max-width:420px}.moonbase .moonbase\\:account form>*:not(:first-child){margin-top:8px}.moonbase .moonbase\\:account form .moonbase\\:error{font-size:14px;line-height:20px;font-weight:600;color:var(--moonbase-error-color)}.moonbase .moonbase\\:account form .moonbase\\:notification{font-size:14px;line-height:20px;font-weight:600}.moonbase .moonbase\\:account>button{margin:32px auto 0}.moonbase .moonbase\\:product-downloads{display:flex;border-radius:var(--moonbase-border-radius);box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads button{position:relative;display:inline-flex;align-items:center;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads button,.moonbase .moonbase\\:product-downloads button:hover,.moonbase .moonbase\\:product-downloads button:focus,.moonbase .moonbase\\:product-downloads button:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:0;border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);margin:0 -1px;padding:8px;height:unset;width:unset}.moonbase .moonbase\\:product-downloads button:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:product-downloads button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:inset #fff 0 0 0 2px,inset var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads>button{border-radius:0}.moonbase .moonbase\\:product-downloads>button:first-child{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads>button[data-last]{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group{position:relative;margin:0 -1px;display:block}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group:first-child>button{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group[data-last]>button{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group button>:last-child{margin-left:8px}.moonbase .moonbase\\:product-downloads svg{height:20px;width:20px;color:#fff}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list{position:absolute;display:flex;flex-direction:column;right:0;margin-right:-4px;margin-top:8px;width:128px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list:focus{outline:none}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button{border-radius:0}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:first-child{border-top-right-radius:var(--moonbase-border-radius);border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:last-child{border-bottom-right-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:active{color:var(--moonbase-text-color);background-color:transparent;margin:0;padding:8px;height:unset;width:unset}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{background-color:hsl(from var(--moonbase-background-color) h s calc(l - 5))}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{box-shadow:none}.moonbase .moonbase\\:product-activations{position:absolute;right:8px;margin-top:8px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}.moonbase .moonbase\\:product-activations>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}.moonbase .moonbase\\:product-activations>thead>tr>th:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:8px 12px}.moonbase .moonbase\\:product-activations>thead>tr>th:last-child{text-align:right;padding:8px 16px 8px 12px;border-top-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:product-activations>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative;font-size:14px;font-weight:600;line-height:20px}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div{display:flex;align-items:center}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:product-activations>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px;border-top-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:product-activations>tbody>tr>td>button{margin:auto}.moonbase .moonbase\\:product-activations>tbody>tr>td>button,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:hover,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:focus,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:active{width:100%}.moonbase .moonbase\\:products{min-width:calc(100% + 128px);margin:0 -64px}.moonbase .moonbase\\:products>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}.moonbase .moonbase\\:products>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}.moonbase .moonbase\\:products>thead>tr>th:first-child{width:100%;padding:14px 12px 14px 16px}.moonbase .moonbase\\:products>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:products>thead>tr>th:last-child{text-align:right;padding:14px 16px 14px 12px}.moonbase .moonbase\\:products>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:products>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative}.moonbase .moonbase\\:products>tbody>tr>td:first-child{width:100%;padding:14px 12px 14px 16px}.moonbase .moonbase\\:products>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div{display:flex;align-items:center}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:products>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:products>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px}.moonbase .moonbase\\:products>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}.moonbase .moonbase\\:products>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:products>tbody>tr>td>button{margin:auto}.moonbase .moonbase\\:products>tbody>tr>td>button,.moonbase .moonbase\\:products>tbody>tr>td>button:hover,.moonbase .moonbase\\:products>tbody>tr>td>button:focus,.moonbase .moonbase\\:products>tbody>tr>td>button:active{width:100%}.moonbase .moonbase\\:redeem>form{display:flex;flex-direction:column;max-width:240px;margin:64px auto 32px}.moonbase .moonbase\\:redeem>form>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:redeem>form>button{margin:auto}.moonbase .moonbase\\:redeem>form .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:redeem>form .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher{max-width:320px;margin:16px auto;padding:16px;box-shadow:0 0 0 2px var(--moonbase-button-shadow-color);border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle{display:flex;align-items:center;padding:8px 0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>*:not(:first-child),.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>*:not(:first-child){margin-left:12px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child{flex-shrink:0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>img,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>.moonbase\\:image-placeholder,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child{flex:1;min-width:0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:first-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:first-child{font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:last-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:last-child{font-size:14px;line-height:20px;text-overflow:ellipsis}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products{padding-left:32px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}.moonbase .moonbase\\:customer{display:inline-block;color:var(--moonbase-text-color);padding:32px 64px 16px}@media (min-width: 640px){.moonbase .moonbase\\:customer{width:100vw;max-width:32rem}}.moonbase .moonbase\\:customer>[role=tablist]{margin:0 -32px 16px;padding:0 32px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(from var(--moonbase-button-background-color) r g b / .25);display:flex}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab]{margin-bottom:-1px;width:33%;padding:8px 4px;text-align:center;font-size:14px;font-weight:500;line-height:20px;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;color:hsl(from var(--moonbase-text-color) h s calc(l + 15));transition-property:border-bottom-color,color;transition-duration:.25s;transition-timing-function:ease-out}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab]:hover{color:hsl(from var(--moonbase-text-color) h s calc(l + 5));border-bottom-color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab][aria-selected=true]{color:hsl(from var(--moonbase-primary-color) h s calc(l - 15));border-bottom-color:hsl(from var(--moonbase-primary-color) h s calc(l - 10))}.moonbase .moonbase\\:auto-activate .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}.moonbase .moonbase\\:auto-activate .moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:auto-activate .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}.moonbase .moonbase\\:auto-activate .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product{display:flex;align-items:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div{margin-left:8px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content{margin-top:16px;text-align:center;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-trial{margin-top:16px;padding-top:16px;border-top-width:1px;border-color:rgb(from var(--moonbase-text-color) r g b / .2);border-style:solid}.moonbase .moonbase\\:activation{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){.moonbase .moonbase\\:activation{width:100vw;max-width:26rem}}.moonbase .moonbase\\:activation>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase,.moonbase *:not(svg,path),.moonbase :before,.moonbase :after{all:revert;box-sizing:border-box;border-width:0;border-style:solid}.moonbase *:not(svg,path){margin:0;padding:0;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.moonbase{--moonbase-text-color: rgb(17 24 39);--moonbase-primary-color: rgb(79 70 229);--moonbase-error-color: rgb(167, 33, 33);--moonbase-background-color: white;--moonbase-button-padding: 8px 32px;--moonbase-button-text-color: rgb(255 255 255);--moonbase-button-background-color: var(--moonbase-primary-color);--moonbase-button-shadow-color: rgb(0 0 0 / .05);--moonbase-button-success-color: rgb(22 163 74);--moonbase-button-error-color: rgb(167, 33, 33);--moonbase-button-border-radius: var(--moonbase-border-radius, 6px);--moonbase-input-active-color: var(--moonbase-primary-color, var(--moonbase-primary-color));--moonbase-input-shadow-color: rgb(0 0 0 / .05);--moonbase-input-error-color: rgb(167, 33, 33);--moonbase-input-background-color: transparent;--moonbase-input-text-color:var(--moonbase-text-color);--moonbase-input-border-radius: var(--moonbase-border-radius, 6px);--moonbase-modal-padding: 8px 32px;--moonbase-modal-text-color: var(--moonbase-text-color);--moonbase-modal-background-color: rgb(255 255 255);--moonbase-modal-shadow-color: rgb(0 0 0 / .05);--moonbase-modal-border-radius: var(--moonbase-border-radius, 6px)}.moonbase .moonbase\\:scale-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}.moonbase .moonbase\\:scale-enter-from{opacity:0;transform:scale(.95)}.moonbase .moonbase\\:scale-enter-to{opacity:1;transform:scale(1)}.moonbase .moonbase\\:scale-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}.moonbase .moonbase\\:scale-leave-from{opacity:1;transform:scale(1)}.moonbase .moonbase\\:scale-leave-to{opacity:0;transform:scale(.95)}.moonbase .moonbase\\:slide-left-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}.moonbase .moonbase\\:slide-left-enter-from{opacity:0;transform:translate(1rem)}.moonbase .moonbase\\:slide-left-enter-to{opacity:1;transform:translate(0)}.moonbase .moonbase\\:slide-left-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}.moonbase .moonbase\\:slide-left-leave-from{opacity:1;transform:translate(0)}.moonbase .moonbase\\:slide-left-leave-to{opacity:0;transform:translate(-1rem)}.moonbase .moonbase\\:sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.moonbase a{color:inherit;text-decoration:inherit}.moonbase input,.moonbase button,.moonbase textarea,.moonbase select{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;background:none;font-size:100%;line-height:1.15;margin:0;padding:0;color:inherit}.moonbase button,.moonbase select{text-transform:none}.moonbase button,.moonbase [role=button]{cursor:pointer}.moonbase button,.moonbase [type=button],.moonbase [type=reset],.moonbase [type=submit]{-webkit-appearance:button}.moonbase h1,.moonbase h2,.moonbase h3,.moonbase h4,.moonbase h5,.moonbase h6{font-size:inherit;font-weight:inherit}.moonbase b,.moonbase strong{font-weight:bolder}.moonbase svg,.moonbase svg *{color:inherit}.moonbase table{text-indent:0;border-color:inherit;border-collapse:collapse}.moonbase img,.moonbase svg,.moonbase video,.moonbase canvas,.moonbase audio,.moonbase iframe,.moonbase embed,.moonbase object{display:block;vertical-align:middle}.moonbase ol,.moonbase ul,.moonbase menu{list-style:none;margin:0;padding:0}.moonbase img,.moonbase video{max-width:100%;height:auto}.moonbase :disabled{cursor:default}.moonbase [hidden]{display:none}.moonbase ::-moz-focus-inner{border-style:none;padding:0}.moonbase :-moz-focusring{outline:none}.moonbase :-moz-ui-invalid{box-shadow:none}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- (function(wt,ye){typeof exports=="object"&&typeof module<"u"?ye(exports):typeof define=="function"&&define.amd?define(["exports"],ye):(wt=typeof globalThis<"u"?globalThis:wt||self,ye(wt.Moonbase={}))})(this,function(wt){"use strict";var W1=Object.defineProperty;var z1=(wt,ye,bn)=>ye in wt?W1(wt,ye,{enumerable:!0,configurable:!0,writable:!0,value:bn}):wt[ye]=bn;var Or=(wt,ye,bn)=>z1(wt,typeof ye!="symbol"?ye+"":ye,bn);var ye;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(ye||(ye={}));var bn;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(bn||(bn={}));const ee=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},H=ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Fd=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class $t extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}$t.create=e=>new $t(e);const Mr=(e,t)=>{let n;switch(e.code){case H.invalid_type:e.received===ee.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:n="Invalid function arguments";break;case H.invalid_return_type:n="Invalid function return type";break;case H.invalid_date:n="Invalid date";break;case H.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case H.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case H.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case H.custom:n="Invalid input";break;case H.invalid_intersection_types:n="Intersection results could not be merged";break;case H.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let qa=Mr;function Bd(e){qa=e}function Mo(){return qa}const Uo=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...o,path:s,message:o.message||a}},Hd=[];function te(e,t){const n=Uo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Mo(),Mr].filter(r=>!!r)});e.common.issues.push(n)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return _e;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n)r.push({key:await o.key,value:await o.value});return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return _e;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const _e=Object.freeze({status:"aborted"}),Wa=e=>({status:"dirty",value:e}),ht=e=>({status:"valid",value:e}),ni=e=>e.status==="aborted",ri=e=>e.status==="dirty",Ur=e=>e.status==="valid",Fo=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class Ut{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const za=(e,t)=>{if(Ur(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new $t(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>i.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:o}}class Oe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return wn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:wn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Fo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wn(t)},s=this._parseSync({data:t,path:o.path,parent:o});return za(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wn(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Fo(o)?o:Promise.resolve(o));return za(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:H.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new At({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return en.create(this,this._def)}nullable(){return Xn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dt.create(this,this._def)}promise(){return Tr.create(this,this._def)}or(t){return Zr.create([this,t],this._def)}and(t){return qr.create(this,t,this._def)}transform(t){return new At({...Ee(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Jr({...Ee(this._def),innerType:this,defaultValue:n,typeName:pe.ZodDefault})}brand(){return new Ga({typeName:pe.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new zo({...Ee(this._def),innerType:this,catchValue:n,typeName:pe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Yr.create(this,t)}readonly(){return Go.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zd=/^c[^\s-]{8,}$/i,qd=/^[a-z][a-z0-9]*$/,Wd=/^[0-9A-HJKMNP-TV-Z]{26}$/,zd=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Kd=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oi;const Jd=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Yd=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Xd=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Qd(e,t){return!!((t==="v4"||!t)&&Jd.test(e)||(t==="v6"||!t)&&Yd.test(e))}class It extends Oe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.string,received:s.parsedType}),_e}const r=new ut;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?te(o,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&te(o,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")Kd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"email",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")oi||(oi=new RegExp(Gd,"u")),oi.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"emoji",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")zd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"uuid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")Zd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"cuid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")qd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"cuid2",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Wd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"ulid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),te(o,{validation:"url",code:H.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"regex",code:H.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?Xd(s).test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="ip"?Qd(t.data,s.version)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"ip",code:H.invalid_string,message:s.message}),r.dirty()):ye.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:H.invalid_string,...ce.errToObj(r)})}_addCheck(t){return new It({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...ce.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new It({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new It({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new It({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}It.create=e=>{var t;return new It({checks:[],typeName:pe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function ef(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class En extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ee.number){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.number,received:s.parsedType}),_e}let r;const o=new ut;for(const s of this._def.checks)s.kind==="int"?ye.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?ef(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_finite,message:s.message}),o.dirty()):ye.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new En({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new En({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}En.create=e=>new En({checks:[],typeName:pe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class On extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ee.bigint){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.bigint,received:s.parsedType}),_e}let r;const o=new ut;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):ye.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new On({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new On({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}On.create=e=>{var t;return new On({checks:[],typeName:pe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class Fr extends Oe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.boolean,received:r.parsedType}),_e}return ht(t.data)}}Fr.create=e=>new Fr({typeName:pe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Gn extends Oe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.date,received:s.parsedType}),_e}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_date}),_e}const r=new ut;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):ye.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Gn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Gn.create=e=>new Gn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:pe.ZodDate,...Ee(e)});class Bo extends Oe{_parse(t){if(this._getType(t)!==ee.symbol){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.symbol,received:r.parsedType}),_e}return ht(t.data)}}Bo.create=e=>new Bo({typeName:pe.ZodSymbol,...Ee(e)});class Br extends Oe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.undefined,received:r.parsedType}),_e}return ht(t.data)}}Br.create=e=>new Br({typeName:pe.ZodUndefined,...Ee(e)});class Hr extends Oe{_parse(t){if(this._getType(t)!==ee.null){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.null,received:r.parsedType}),_e}return ht(t.data)}}Hr.create=e=>new Hr({typeName:pe.ZodNull,...Ee(e)});class Nr extends Oe{constructor(){super(...arguments),this._any=!0}_parse(t){return ht(t.data)}}Nr.create=e=>new Nr({typeName:pe.ZodAny,...Ee(e)});class Jn extends Oe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ht(t.data)}}Jn.create=e=>new Jn({typeName:pe.ZodUnknown,...Ee(e)});class Qt extends Oe{_parse(t){const n=this._getOrReturnCtx(t);return te(n,{code:H.invalid_type,expected:ee.never,received:n.parsedType}),_e}}Qt.create=e=>new Qt({typeName:pe.ZodNever,...Ee(e)});class Ho extends Oe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.void,received:r.parsedType}),_e}return ht(t.data)}}Ho.create=e=>new Ho({typeName:pe.ZodVoid,...Ee(e)});class Dt extends Oe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==ee.array)return te(n,{code:H.invalid_type,expected:ee.array,received:n.parsedType}),_e;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(te(n,{code:i?H.too_big:H.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(te(n,{code:H.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(te(n,{code:H.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Ut(n,i,n.path,a)))).then(i=>ut.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Ut(n,i,n.path,a)));return ut.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Dt({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Dt({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Dt({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Dt.create=(e,t)=>new Dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,...Ee(t)});function Sr(e){if(e instanceof Ze){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=en.create(Sr(r))}return new Ze({...e._def,shape:()=>t})}else return e instanceof Dt?new Dt({...e._def,type:Sr(e.element)}):e instanceof en?en.create(Sr(e.unwrap())):e instanceof Xn?Xn.create(Sr(e.unwrap())):e instanceof Ft?Ft.create(e.items.map(t=>Sr(t))):e}class Ze extends Oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ee.object){const u=this._getOrReturnCtx(t);return te(u,{code:H.invalid_type,expected:ee.object,received:u.parsedType}),_e}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Qt&&this._def.unknownKeys==="strip"))for(const u in o.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const c=s[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ut(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Qt){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(te(o,{code:H.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ut(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key;u.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Ze({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ce.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ze({...this._def,unknownKeys:"strip"})}passthrough(){return new Ze({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ze({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ze({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:pe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ze({...this._def,catchall:t})}pick(t){const n={};return ye.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}omit(t){const n={};return ye.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}deepPartial(){return Sr(this)}partial(t){const n={};return ye.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ze({...this._def,shape:()=>n})}required(t){const n={};return ye.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof en;)s=s._def.innerType;n[r]=s}}),new Ze({...this._def,shape:()=>n})}keyof(){return Ka(ye.objectKeys(this.shape))}}Ze.create=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strip",catchall:Qt.create(),typeName:pe.ZodObject,...Ee(t)}),Ze.strictCreate=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strict",catchall:Qt.create(),typeName:pe.ZodObject,...Ee(t)}),Ze.lazycreate=(e,t)=>new Ze({shape:e,unknownKeys:"strip",catchall:Qt.create(),typeName:pe.ZodObject,...Ee(t)});class Zr extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new $t(a.ctx.common.issues));return te(n,{code:H.invalid_union,unionErrors:i}),_e}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new $t(l));return te(n,{code:H.invalid_union,unionErrors:a}),_e}}get options(){return this._def.options}}Zr.create=(e,t)=>new Zr({options:e,typeName:pe.ZodUnion,...Ee(t)});const Zo=e=>e instanceof zr?Zo(e.schema):e instanceof At?Zo(e.innerType()):e instanceof Kr?[e.value]:e instanceof Nn?e.options:e instanceof Gr?Object.keys(e.enum):e instanceof Jr?Zo(e._def.innerType):e instanceof Br?[void 0]:e instanceof Hr?[null]:null;class qo extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.object)return te(n,{code:H.invalid_type,expected:ee.object,received:n.parsedType}),_e;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),_e)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=Zo(s.shape[t]);if(!i)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new qo({typeName:pe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ee(r)})}}function si(e,t){const n=wn(e),r=wn(t);if(e===t)return{valid:!0,data:e};if(n===ee.object&&r===ee.object){const o=ye.objectKeys(t),s=ye.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=si(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===ee.array&&r===ee.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=si(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===ee.date&&r===ee.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class qr extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(ni(s)||ni(i))return _e;const a=si(s.value,i.value);return a.valid?((ri(s)||ri(i))&&n.dirty(),{status:n.value,value:a.data}):(te(r,{code:H.invalid_intersection_types}),_e)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}qr.create=(e,t,n)=>new qr({left:e,right:t,typeName:pe.ZodIntersection,...Ee(n)});class Ft extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.array)return te(r,{code:H.invalid_type,expected:ee.array,received:r.parsedType}),_e;if(r.data.length<this._def.items.length)return te(r,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&r.data.length>this._def.items.length&&(te(r,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Ut(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ut.mergeArray(n,i)):ut.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Ft({...this._def,rest:t})}}Ft.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ft({items:e,typeName:pe.ZodTuple,rest:null,...Ee(t)})};class Wr extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.object)return te(r,{code:H.invalid_type,expected:ee.object,received:r.parsedType}),_e;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Ut(r,a,r.path,a)),value:i._parse(new Ut(r,r.data[a],r.path,a))});return r.common.async?ut.mergeObjectAsync(n,o):ut.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Oe?new Wr({keyType:t,valueType:n,typeName:pe.ZodRecord,...Ee(r)}):new Wr({keyType:It.create(),valueType:t,typeName:pe.ZodRecord,...Ee(n)})}}class Wo extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.map)return te(r,{code:H.invalid_type,expected:ee.map,received:r.parsedType}),_e;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Ut(r,a,r.path,[u,"key"])),value:s._parse(new Ut(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return _e;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return _e;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}Wo.create=(e,t,n)=>new Wo({valueType:t,keyType:e,typeName:pe.ZodMap,...Ee(n)});class Yn extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.set)return te(r,{code:H.invalid_type,expected:ee.set,received:r.parsedType}),_e;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(te(r,{code:H.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(te(r,{code:H.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return _e;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>s._parse(new Ut(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Yn({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new Yn({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Yn.create=(e,t)=>new Yn({valueType:e,minSize:null,maxSize:null,typeName:pe.ZodSet,...Ee(t)});class xr extends Oe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.function)return te(n,{code:H.invalid_type,expected:ee.function,received:n.parsedType}),_e;function r(a,l){return Uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Mo(),Mr].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:l}})}function o(a,l){return Uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Mo(),Mr].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Tr){const a=this;return ht(async function(...l){const u=new $t([]),c=await a._def.args.parseAsync(l,s).catch(v=>{throw u.addIssue(r(l,v)),u}),d=await Reflect.apply(i,this,c);return await a._def.returns._def.type.parseAsync(d,s).catch(v=>{throw u.addIssue(o(d,v)),u})})}else{const a=this;return ht(function(...l){const u=a._def.args.safeParse(l,s);if(!u.success)throw new $t([r(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=a._def.returns.safeParse(c,s);if(!d.success)throw new $t([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new xr({...this._def,args:Ft.create(t).rest(Jn.create())})}returns(t){return new xr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new xr({args:t||Ft.create([]).rest(Jn.create()),returns:n||Jn.create(),typeName:pe.ZodFunction,...Ee(r)})}}class zr extends Oe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}zr.create=(e,t)=>new zr({getter:e,typeName:pe.ZodLazy,...Ee(t)});class Kr extends Oe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:t.data}}get value(){return this._def.value}}Kr.create=(e,t)=>new Kr({value:e,typeName:pe.ZodLiteral,...Ee(t)});function Ka(e,t){return new Nn({values:e,typeName:pe.ZodEnum,...Ee(t)})}class Nn extends Oe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return te(n,{expected:ye.joinValues(r),received:n.parsedType,code:H.invalid_type}),_e}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return te(n,{received:n.data,code:H.invalid_enum_value,options:r}),_e}return ht(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Nn.create(t)}exclude(t){return Nn.create(this.options.filter(n=>!t.includes(n)))}}Nn.create=Ka;class Gr extends Oe{_parse(t){const n=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ee.string&&r.parsedType!==ee.number){const o=ye.objectValues(n);return te(r,{expected:ye.joinValues(o),received:r.parsedType,code:H.invalid_type}),_e}if(n.indexOf(t.data)===-1){const o=ye.objectValues(n);return te(r,{received:r.data,code:H.invalid_enum_value,options:o}),_e}return ht(t.data)}get enum(){return this._def.values}}Gr.create=(e,t)=>new Gr({values:e,typeName:pe.ZodNativeEnum,...Ee(t)});class Tr extends Oe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.promise&&n.common.async===!1)return te(n,{code:H.invalid_type,expected:ee.promise,received:n.parsedType}),_e;const r=n.parsedType===ee.promise?n.data:Promise.resolve(n.data);return ht(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Tr.create=(e,t)=>new Tr({type:e,typeName:pe.ZodPromise,...Ee(t)});class At extends Oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{te(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(i).then(a=>this._def.schema._parseAsync({data:a,path:r.path,parent:r})):this._def.schema._parseSync({data:i,path:r.path,parent:r})}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?_e:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?_e:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ur(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Ur(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);ye.assertNever(o)}}At.create=(e,t,n)=>new At({schema:e,typeName:pe.ZodEffects,effect:t,...Ee(n)}),At.createWithPreprocess=(e,t,n)=>new At({schema:t,effect:{type:"preprocess",transform:e},typeName:pe.ZodEffects,...Ee(n)});class en extends Oe{_parse(t){return this._getType(t)===ee.undefined?ht(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:pe.ZodOptional,...Ee(t)});class Xn extends Oe{_parse(t){return this._getType(t)===ee.null?ht(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xn.create=(e,t)=>new Xn({innerType:e,typeName:pe.ZodNullable,...Ee(t)});class Jr extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ee.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Jr.create=(e,t)=>new Jr({innerType:e,typeName:pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class zo extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Fo(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new $t(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new $t(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}zo.create=(e,t)=>new zo({innerType:e,typeName:pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class Ko extends Oe{_parse(t){if(this._getType(t)!==ee.nan){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.nan,received:r.parsedType}),_e}return{status:"valid",value:t.data}}}Ko.create=e=>new Ko({typeName:pe.ZodNaN,...Ee(e)});const tf=Symbol("zod_brand");class Ga extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Yr extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?_e:s.status==="dirty"?(n.dirty(),Wa(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?_e:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Yr({in:t,out:n,typeName:pe.ZodPipeline})}}class Go extends Oe{_parse(t){const n=this._def.innerType._parse(t);return Ur(n)&&(n.value=Object.freeze(n.value)),n}}Go.create=(e,t)=>new Go({innerType:e,typeName:pe.ZodReadonly,...Ee(t)});const Ja=(e,t={},n)=>e?Nr.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,u=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...u,fatal:l})}}):Nr.create(),nf={object:Ze.lazycreate};var pe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(pe||(pe={}));const rf=(e,t={message:`Input not instance of ${e.name}`})=>Ja(n=>n instanceof e,t),Ya=It.create,Xa=En.create,of=Ko.create,sf=On.create,Qa=Fr.create,af=Gn.create,lf=Bo.create,uf=Br.create,cf=Hr.create,df=Nr.create,ff=Jn.create,pf=Qt.create,hf=Ho.create,mf=Dt.create,vf=Ze.create,gf=Ze.strictCreate,yf=Zr.create,_f=qo.create,bf=qr.create,wf=Ft.create,Ef=Wr.create,Of=Wo.create,Nf=Yn.create,Sf=xr.create,xf=zr.create,Tf=Kr.create,kf=Nn.create,Cf=Gr.create,Pf=Tr.create,el=At.create,$f=en.create,If=Xn.create,Df=At.createWithPreprocess,Af=Yr.create;var y=Object.freeze({__proto__:null,defaultErrorMap:Mr,setErrorMap:Bd,getErrorMap:Mo,makeIssue:Uo,EMPTY_PATH:Hd,addIssueToContext:te,ParseStatus:ut,INVALID:_e,DIRTY:Wa,OK:ht,isAborted:ni,isDirty:ri,isValid:Ur,isAsync:Fo,get util(){return ye},get objectUtil(){return bn},ZodParsedType:ee,getParsedType:wn,ZodType:Oe,ZodString:It,ZodNumber:En,ZodBigInt:On,ZodBoolean:Fr,ZodDate:Gn,ZodSymbol:Bo,ZodUndefined:Br,ZodNull:Hr,ZodAny:Nr,ZodUnknown:Jn,ZodNever:Qt,ZodVoid:Ho,ZodArray:Dt,ZodObject:Ze,ZodUnion:Zr,ZodDiscriminatedUnion:qo,ZodIntersection:qr,ZodTuple:Ft,ZodRecord:Wr,ZodMap:Wo,ZodSet:Yn,ZodFunction:xr,ZodLazy:zr,ZodLiteral:Kr,ZodEnum:Nn,ZodNativeEnum:Gr,ZodPromise:Tr,ZodEffects:At,ZodTransformer:At,ZodOptional:en,ZodNullable:Xn,ZodDefault:Jr,ZodCatch:zo,ZodNaN:Ko,BRAND:tf,ZodBranded:Ga,ZodPipeline:Yr,ZodReadonly:Go,custom:Ja,Schema:Oe,ZodSchema:Oe,late:nf,get ZodFirstPartyTypeKind(){return pe},coerce:{string:e=>It.create({...e,coerce:!0}),number:e=>En.create({...e,coerce:!0}),boolean:e=>Fr.create({...e,coerce:!0}),bigint:e=>On.create({...e,coerce:!0}),date:e=>Gn.create({...e,coerce:!0})},any:df,array:mf,bigint:sf,boolean:Qa,date:af,discriminatedUnion:_f,effect:el,enum:kf,function:Sf,instanceof:rf,intersection:bf,lazy:xf,literal:Tf,map:Of,nan:of,nativeEnum:Cf,never:pf,null:cf,nullable:If,number:Xa,object:vf,oboolean:()=>Qa().optional(),onumber:()=>Xa().optional(),optional:$f,ostring:()=>Ya().optional(),pipeline:Af,preprocess:Df,promise:Pf,record:Ef,set:Nf,strictObject:gf,string:Ya,symbol:lf,transformer:el,tuple:wf,undefined:uf,union:yf,unknown:ff,void:hf,NEVER:_e,ZodIssueCode:H,quotelessJson:Fd,ZodError:$t}),Vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ii={exports:{}};(function(e,t){var n=typeof self<"u"?self:Vf,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(i){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(_){return _&&DataView.prototype.isPrototypeOf(_)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(_){return _&&u.indexOf(Object.prototype.toString.call(_))>-1};function d(_){if(typeof _!="string"&&(_=String(_)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(_))throw new TypeError("Invalid character in header field name");return _.toLowerCase()}function f(_){return typeof _!="string"&&(_=String(_)),_}function v(_){var I={next:function(){var ne=_.shift();return{done:ne===void 0,value:ne}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function g(_){this.map={},_ instanceof g?_.forEach(function(I,ne){this.append(ne,I)},this):Array.isArray(_)?_.forEach(function(I){this.append(I[0],I[1])},this):_&&Object.getOwnPropertyNames(_).forEach(function(I){this.append(I,_[I])},this)}g.prototype.append=function(_,I){_=d(_),I=f(I);var ne=this.map[_];this.map[_]=ne?ne+", "+I:I},g.prototype.delete=function(_){delete this.map[d(_)]},g.prototype.get=function(_){return _=d(_),this.has(_)?this.map[_]:null},g.prototype.has=function(_){return this.map.hasOwnProperty(d(_))},g.prototype.set=function(_,I){this.map[d(_)]=f(I)},g.prototype.forEach=function(_,I){for(var ne in this.map)this.map.hasOwnProperty(ne)&&_.call(I,this.map[ne],ne,this)},g.prototype.keys=function(){var _=[];return this.forEach(function(I,ne){_.push(ne)}),v(_)},g.prototype.values=function(){var _=[];return this.forEach(function(I){_.push(I)}),v(_)},g.prototype.entries=function(){var _=[];return this.forEach(function(I,ne){_.push([ne,I])}),v(_)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function E(_){if(_.bodyUsed)return Promise.reject(new TypeError("Already read"));_.bodyUsed=!0}function O(_){return new Promise(function(I,ne){_.onload=function(){I(_.result)},_.onerror=function(){ne(_.error)}})}function L(_){var I=new FileReader,ne=O(I);return I.readAsArrayBuffer(_),ne}function F(_){var I=new FileReader,ne=O(I);return I.readAsText(_),ne}function C(_){for(var I=new Uint8Array(_),ne=new Array(I.length),ae=0;ae<I.length;ae++)ne[ae]=String.fromCharCode(I[ae]);return ne.join("")}function z(_){if(_.slice)return _.slice(0);var I=new Uint8Array(_.byteLength);return I.set(new Uint8Array(_)),I.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(_){this._bodyInit=_,_?typeof _=="string"?this._bodyText=_:a.blob&&Blob.prototype.isPrototypeOf(_)?this._bodyBlob=_:a.formData&&FormData.prototype.isPrototypeOf(_)?this._bodyFormData=_:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(_)?this._bodyText=_.toString():a.arrayBuffer&&a.blob&&l(_)?(this._bodyArrayBuffer=z(_.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(_)||c(_))?this._bodyArrayBuffer=z(_):this._bodyText=_=Object.prototype.toString.call(_):this._bodyText="",this.headers.get("content-type")||(typeof _=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(_)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var _=E(this);if(_)return _;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?E(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var _=E(this);if(_)return _;if(this._bodyBlob)return F(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function N(_){var I=_.toUpperCase();return Z.indexOf(I)>-1?I:_}function de(_,I){I=I||{};var ne=I.body;if(_ instanceof de){if(_.bodyUsed)throw new TypeError("Already read");this.url=_.url,this.credentials=_.credentials,I.headers||(this.headers=new g(_.headers)),this.method=_.method,this.mode=_.mode,this.signal=_.signal,!ne&&_._bodyInit!=null&&(ne=_._bodyInit,_.bodyUsed=!0)}else this.url=String(_);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new g(I.headers)),this.method=N(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ne)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ne)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})};function J(_){var I=new FormData;return _.trim().split("&").forEach(function(ne){if(ne){var ae=ne.split("="),re=ae.shift().replace(/\+/g," "),ue=ae.join("=").replace(/\+/g," ");I.append(decodeURIComponent(re),decodeURIComponent(ue))}}),I}function A(_){var I=new g,ne=_.replace(/\r?\n[\t ]+/g," ");return ne.split(/\r?\n/).forEach(function(ae){var re=ae.split(":"),ue=re.shift().trim();if(ue){var Ce=re.join(":").trim();I.append(ue,Ce)}}),I}$.call(de.prototype);function k(_,I){I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in I?I.statusText:"OK",this.headers=new g(I.headers),this.url=I.url||"",this._initBody(_)}$.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},k.error=function(){var _=new k(null,{status:0,statusText:""});return _.type="error",_};var R=[301,302,303,307,308];k.redirect=function(_,I){if(R.indexOf(I)===-1)throw new RangeError("Invalid status code");return new k(null,{status:I,headers:{location:_}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(I,ne){this.message=I,this.name=ne;var ae=Error(I);this.stack=ae.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function oe(_,I){return new Promise(function(ne,ae){var re=new de(_,I);if(re.signal&&re.signal.aborted)return ae(new i.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function Ce(){ue.abort()}ue.onload=function(){var Ve={status:ue.status,statusText:ue.statusText,headers:A(ue.getAllResponseHeaders()||"")};Ve.url="responseURL"in ue?ue.responseURL:Ve.headers.get("X-Request-URL");var nt="response"in ue?ue.response:ue.responseText;ne(new k(nt,Ve))},ue.onerror=function(){ae(new TypeError("Network request failed"))},ue.ontimeout=function(){ae(new TypeError("Network request failed"))},ue.onabort=function(){ae(new i.DOMException("Aborted","AbortError"))},ue.open(re.method,re.url,!0),re.credentials==="include"?ue.withCredentials=!0:re.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&a.blob&&(ue.responseType="blob"),re.headers.forEach(function(Ve,nt){ue.setRequestHeader(nt,Ve)}),re.signal&&(re.signal.addEventListener("abort",Ce),ue.onreadystatechange=function(){ue.readyState===4&&re.signal.removeEventListener("abort",Ce)}),ue.send(typeof re._bodyInit>"u"?null:re._bodyInit)})}return oe.polyfill=!0,s.fetch||(s.fetch=oe,s.Headers=g,s.Request=de,s.Response=k),i.Headers=g,i.Request=de,i.Response=k,i.fetch=oe,Object.defineProperty(i,"__esModule",{value:!0}),i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(ii,ii.exports);var jf=ii.exports;const Jo=Rf(jf);var Sn=y.record(y.number()),Lf=y.object({type:y.literal("PercentageOffDiscount"),name:y.string(),description:y.string().optional(),percentage:y.number(),total:Sn}),Mf=y.object({type:y.literal("FlatAmountOffDiscount"),name:y.string(),description:y.string().optional(),total:Sn}),Uf=y.discriminatedUnion("type",[Lf,Mf]),kr=y.object({id:y.string(),name:y.string(),originalPrice:Sn,price:Sn,hasDiscount:y.boolean(),discount:Uf.optional()});function Xr(e){return y.object({items:y.array(e),hasMore:y.boolean(),next:y.string().nullable()})}function tl(e){return y.object({value:e,quantity:y.number()})}var Cr=(e=>(e.Universal="Universal",e.Windows="Windows",e.Linux="Linux",e.Mac="Mac",e))(Cr||{}),nl=y.object({name:y.string(),key:y.string(),platform:y.nativeEnum(Cr),size:y.number(),path:y.string().nullable()}),rl=y.object({id:y.string(),name:y.string(),tagline:y.string(),website:y.string().optional(),iconUrl:y.string().optional(),numberOfLicenses:y.number().optional(),numberOfTrials:y.number().optional(),currentActivations:y.number().optional(),maxActivations:y.number().optional(),currentVersion:y.string().nullable(),downloadsNeedsUser:y.boolean(),downloadsNeedsOwnership:y.boolean(),downloads:y.array(nl).optional()}),Qr=y.object({id:y.string(),name:y.string(),tagline:y.string(),iconUrl:y.string().nullable(),website:y.string().nullish(),owned:y.boolean(),currentVersion:y.string().optional(),downloads:nl.array().optional(),defaultVariation:kr.optional(),variations:kr.array().optional(),type:y.void().transform(()=>"product").pipe(y.literal("product"))}),ai=y.object({id:y.string(),name:y.string(),tagline:y.string(),iconUrl:y.string().nullable(),owned:y.boolean(),partial:y.boolean(),products:Qr.and(y.object({included:y.boolean().optional()})).array(),defaultVariation:kr.optional(),variations:kr.array().optional(),type:y.void().transform(()=>"bundle").pipe(y.literal("bundle"))}),Ff=y.object({suggestedCurrency:y.string(),products:Qr.array(),bundles:ai.array()}),Bt=(e=>(e.Requested="Requested",e.Fulfilled="Fulfilled",e.Completed="Completed",e.Cancelled="Cancelled",e))(Bt||{}),Yo=y.object({id:y.string(),status:y.nativeEnum(Bt),product:Qr,trialEligibility:y.object({eligible:y.boolean(),existing:y.boolean(),requiresAccount:y.boolean(),numberOfDaysPerProduct:y.number(),numberOfDaysRemaining:y.number()}).optional(),licenseEligibility:y.object({eligible:y.boolean()}).optional()}),Bf=class{constructor(e){this.api=e}async get(e){const t=await this.api.fetch(`/api/customer/activations/${e}`);return Yo.parse(t.data)}async isCompleted(e){const t=await this.api.fetch(`/api/customer/activations/${e}/completed`);return y.boolean().parse(t.data)}async fulfillLicense(e){const t=await this.api.authenticatedFetch(`/api/customer/activations/${e}/license`,"POST");return Yo.parse(t.data)}async fulfillTrial(e){const t=await this.api.fetch(`/api/customer/activations/${e}/trial`,"POST");return Yo.parse(t.data)}async cancel(e){const t=await this.api.fetch(`/api/customer/activations/${e}/cancel`,"POST");return Yo.parse(t.data)}},Hf=class extends Error{constructor(){super(),this.name="NotAuthorizedError"}},li=class extends Error{constructor(){super(),this.name="NotAuthenticatedError"}},Pr=class extends Error{constructor(){super(),this.name="NotFoundError"}},Zf=class extends Error{constructor(e,t,n,r){super(),this.title=e,this.detail=t,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=t??e}},qf=y.object({type:y.string(),title:y.string(),detail:y.string().optional(),status:y.number(),errors:y.record(y.string(),y.string().array()).optional()});function Wf(e){return e.split(".").map((t,n)=>{let[r,...o]=t;return r=n!==0?r.toUpperCase():r.toLowerCase(),o=[o.join("").toLowerCase()],r+o[0]}).join("")}async function ui(e){if(e.status===404)throw new Pr;if(e.status===401)throw new li;if(e.status===403)throw new Hf;let t;try{const n=await e.json();t=qf.parse(n)}catch{throw new Error("An unknown problem occurred")}throw new Zf(t.title,t.detail,t.status,t.errors?Object.fromEntries(Object.entries(t.errors).map(([n,r])=>[Wf(n),r.join(", ")])):void 0)}var zf=y.object({countryCode:y.string(),streetAddress1:y.string(),streetAddress2:y.string().nullable(),locality:y.string().nullable(),region:y.string().nullable(),postCode:y.string()}),Kf=y.object({newsletterOptIn:y.boolean()}),ol=y.object({id:y.string(),email:y.string(),name:y.string(),tenantId:y.string(),address:zf.optional(),communicationPreferences:Kf,ownedProducts:y.string().array().optional()}),ci=ol.and(y.object({accessToken:y.string(),refreshToken:y.string()})),Gf=y.object({id:y.string(),name:y.string(),email:y.string(),resetPasswordToken:y.string().nullable()}),Jf=class{constructor(e,t){this.api=e,this.tokenStore=t}async get(){const e=await this.api.authenticatedFetch("/api/customer/meta/user");return ol.parse(e.data)}async signIn(e,t){const n=await Jo(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${e}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});n.status>=400&&await ui(n);const r=await n.json(),o=ci.parse(r);return this.tokenStore.setUser(o),o}async signUp(e,t,n,r,o,s,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,"POST",{name:e,email:t,password:n,address:r,acceptedPrivacyPolicy:o,acceptedTermsAndConditions:s}),l=ci.parse(a.data);return this.tokenStore.setUser(l),l}async update(e,t,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity","PATCH",{name:e,email:t,emailConfirmationToken:n,communicationPreferences:r})).status===201}}async setPassword(e,t){await this.api.authenticatedFetch("/api/customer/identity/set-password","POST",{currentPassword:e,newPassword:t})}async forgotPassword(e){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(e)}`,"POST")}async resetPassword(e,t,n){const r=await Jo(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(e)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});r.status>=400&&await ui(r)}async confirmAccount(e,t){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST");return Gf.parse(n.data)}async confirmEmail(e,t){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST")}async confirmEmailChange(e,t){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST")}},eo=(e=>(e.Open="Open",e.PaymentProcessing="PaymentProcessing",e.Completed="Completed",e.Failed="Failed",e))(eo||{}),Yf=y.object({code:y.string(),name:y.string(),description:y.string()}),Xf=y.object({type:y.literal("PercentageOffDiscount"),name:y.string(),description:y.string().optional(),percentage:y.number(),total:Sn.optional(),isExclusive:y.boolean()}),Qf=y.object({type:y.literal("FlatAmountOffDiscount"),name:y.string(),description:y.string().optional(),total:Sn.optional(),isExclusive:y.boolean()}),sl=y.discriminatedUnion("type",[Xf,Qf]),ep=y.object({id:y.string(),type:y.literal("Product"),productId:y.string(),quantity:y.number(),variationId:y.string(),price:Sn.optional(),variation:kr.optional(),product:Qr.optional(),appliedDiscount:sl.optional()}),tp=y.object({id:y.string(),type:y.literal("Bundle"),bundleId:y.string(),quantity:y.number(),variationId:y.string(),price:Sn.optional(),variation:kr.optional(),bundle:ai.optional(),appliedDiscount:sl.optional()}),np=y.discriminatedUnion("type",[ep,tp]),il=y.object({id:y.string(),status:y.literal("Open"),currency:y.string(),items:np.array(),couponsApplied:Yf.array(),checkoutUrl:y.string().optional()}),rp=y.discriminatedUnion("status",[il]),op=class{constructor(e){this.api=e}async get(e){const t=await this.api.fetch(`/api/customer/orders/${e}`);return rp.parse(t.data)}async pushContent(e,t,n){const r={...al(n)};t&&(r.checkout="true",r.returnUrl=t.returnUrl);const o=await this.api.fetch(`/api/customer/orders/${e.id}?${new URLSearchParams(r).toString()}`,"PATCH",{currency:e.currency,items:e.items});return il.parse(o.data)}};function al(e){return Object.entries({utm_source:e==null?void 0:e.source,utm_medium:e==null?void 0:e.medium,utm_campaign:e==null?void 0:e.campaign,utm_term:e==null?void 0:e.term,utm_content:e==null?void 0:e.content,utm_referrer:e==null?void 0:e.referrer}).filter(([t,n])=>n!==void 0).reduce((t,[n,r])=>({...t,[n]:r}),{})}var sp=class{constructor(e){this.api=e}async get(e){const t=new URLSearchParams(al(e)),n=await this.api.fetch(`/api/customer/storefront?${t.toString()}`);return Ff.parse(n.data)}},ip=class{constructor(e,t){this.baseUrl=e,this.tokenStore=t}async authenticatedFetch(e,t,n,r){if(!this.tokenStore.hasAccessToken)throw new li;return await this.fetch(e,t,n,r)}async fetch(e,t,n,r){const o=await this.tokenStore.getAccessToken();r??(r="application/json");const s=await Jo(this.baseUrl+e,{method:t||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":r,...o?{Authorization:`Bearer ${o}`}:{},"x-mb-cors":"1"},body:n?r!=="application/json"?n:JSON.stringify(n):void 0});return s.status>=400&&await ui(s),{data:(Number(s.headers.get("Content-Length"))||0)>0?await s.json():null,headers:s.headers,status:s.status}}},ll=class Lo{constructor(t){if(this.configuration=t,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(Lo.storageKey);n&&(this.tokens=JSON.parse(n),this.tokens.expiresAt=new Date(this.tokens.expiresAt))}}get user(){return this.tokens?this.tokens:null}get hasAccessToken(){return!!this.tokens}async getAccessToken(){var t,n,r;if(this.isExpired){if(this.refreshPromise){const s=await this.refreshPromise;return(t=s==null?void 0:s.accessToken)!=null?t:null}this.refreshPromise=this.refreshTokens();const o=await this.refreshPromise;return(n=o==null?void 0:o.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(t){return t===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(Lo.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...t,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(Lo.storageKey,JSON.stringify(this.tokens)),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3),this.tokens)}get isExpired(){return this.tokens!=null&&this.tokens.expiresAt<new Date}async refreshTokens(){if(!this.tokens)throw new Error("No tokens found to refresh");const t=await Jo(`${this.configuration.endpoint}/api/customer/identity/refresh?token=${this.tokens.refreshToken}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:this.tokens.accessToken});if(t.status!==200){if(t.status===403||t.status===404)return this.setUser(null),null;throw new Error(`Could not refresh access token, status code ${t.status}`)}const n=ci.parse(await t.json());return this.setUser(n)}handleStorageUpdate(t){switch(t.key){case Lo.storageKey:this.tokens=t.newValue?JSON.parse(t.newValue):null,this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.tokens&&(this.tokens.expiresAt=new Date(this.tokens.expiresAt),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3+(Math.random()+1)*60*1e3));break}}};ll.storageKey="moonbase_auth";var ap=ll,ul=y.object({id:y.string(),name:y.string(),description:y.string(),code:y.string(),redeemed:y.boolean(),redeemsProducts:tl(Qr).array(),redeemsBundles:tl(ai).array()}),lp=class{constructor(e){this.api=e}async peek(e){const t=await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(e)}`);return ul.parse(t.data)}async redeem(e){const t=await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(e)}`,"POST");return ul.parse(t.data)}},cl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(cl||{}),dl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(dl||{}),di=(e=>(e.Online="Online",e.Offline="Offline",e))(di||{}),fi=y.object({id:y.string(),status:y.nativeEnum(cl),product:rl,activeNumberOfActivations:y.number(),maxNumberOfActivations:y.number(),createdAt:y.coerce.date()}),fl=y.object({id:y.string(),licenseId:y.string(),name:y.string(),status:y.nativeEnum(dl),activationMethod:y.nativeEnum(di),lastValidatedAt:y.coerce.date().nullable()}),up=class{constructor(e){this.api=e}async activate(e,t){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${t}`,"POST",e,"text/plain");return{license:fi.parse(n.data),url:y.string().parse(n.headers.get("location"))}}},cp=class{constructor(e){this.api=e}async get(e){const t=await this.api.authenticatedFetch(e||"/api/customer/inventory/licenses");return Xr(fi).parse(t.data)}async getActivations(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/licenses/${e}/activations`);return Xr(fl).parse(n.data)}async revokeActivation(e,t){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${e}/activations/${t}/revoke`,"POST")}},dp=class{constructor(e){this.api=e}async getOwned(e){const t=await this.api.authenticatedFetch(e||"/api/customer/inventory/products");return Xr(rl).parse(t.data)}async getLicenses(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses`);return Xr(fi).parse(n.data)}async getActivations(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses/activations`);return Xr(fl).parse(n.data)}async getDownloadUrl(e){const t=new URL(e);t.searchParams.append("redirect","false");const n=await this.api.authenticatedFetch(t.pathname+t.search);return y.object({location:y.string()}).parse(n.data).location}},fp=class{constructor(e){this.licenses=new cp(e),this.products=new dp(e),this.activation=new up(e)}},pp=class{constructor(e){this.configuration=e,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new ap(e);const t=new ip(this.configuration.endpoint,this.tokenStore);this.storefront=new sp(t),this.identity=new Jf(t,this.tokenStore),this.vouchers=new lp(t),this.orders=new op(t),this.inventory=new fp(t),this.activationRequests=new Bf(t)}},pl={};/**
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.moonbase .moonbase\\:toolbar{position:fixed;bottom:32px;border-radius:16px;background-color:#1a1a1a;color:#f9f9f9;display:flex;transition-duration:.1s;transition-property:all;transition-timing-function:ease-out;transform:translateY(8px);opacity:0}.moonbase .moonbase\\:toolbar[data-location=bottom-right]{right:32px}.moonbase .moonbase\\:toolbar[data-location=bottom-left]{left:32px}.moonbase .moonbase\\:toolbar[data-visible=true]{transform:translateY(0);opacity:1;transition-duration:.5s}.moonbase .moonbase\\:toolbar-action{padding:12px 16px;transition:background-color .25s ease-out;cursor:pointer;display:flex;align-items:center}.moonbase .moonbase\\:toolbar-action:nth-child(1){border-top-left-radius:16px;border-bottom-left-radius:16px}.moonbase .moonbase\\:toolbar-action:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}.moonbase .moonbase\\:toolbar-action:hover{background-color:#ffffff1a}.moonbase .moonbase\\:toolbar-action[data-action-width=narrow]{padding:12px}.moonbase\\:input[data-v-47c5c102] label[data-v-47c5c102]{display:block;font-size:14px;font-weight:500;line-height:20px;color:#374151}.moonbase\\:input[data-v-47c5c102] input[data-v-47c5c102]{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:calc(var(--moonbase-input-border-radius) * .5);border-width:1px;border-color:#d1d5db;background-color:var(--moonbase-input-background-color);font-size:.875rem;line-height:1.25rem;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:input[data-v-47c5c102] input[data-v-47c5c102][data-v-47c5c102]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:input[data-v-47c5c102] .moonbase\\:input-hint[data-v-47c5c102]{margin-top:8px;font-size:14px;line-height:20px}.moonbase\\:input[data-v-47c5c102] .moonbase\\:input-hint[data-v-47c5c102][data-type=error][data-v-47c5c102]{color:var(--moonbase-input-error-color)}@keyframes moonbase\\:spin-f9a322c4{to{transform:rotate(360deg)}}.moonbase svg[data-v-f9a322c4]{animation:moonbase\\:spin-f9a322c4 1s linear infinite}.moonbase .moonbase\\:submit-button[data-v-052f0f36]{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36],.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:hover,.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:focus,.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:var(--moonbase-button-border-radius);border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);padding:var(--moonbase-button-padding);height:unset;width:unset}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-v-052f0f36]:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-success][data-v-052f0f36]{background-color:var(--moonbase-button-success-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36][data-error][data-v-052f0f36]{background-color:var(--moonbase-button-error-color)}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36]{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36][data-visible][data-v-052f0f36]{width:20px;opacity:1}.moonbase .moonbase\\:submit-button[data-v-052f0f36] div[data-v-052f0f36] svg[data-v-052f0f36]{height:20px;width:20px}.moonbase\\:checkbox[data-v-20c4336e]{display:flex;align-items:flex-start}.moonbase\\:checkbox[data-v-20c4336e] label[data-v-20c4336e]{font-size:14px;font-weight:500;line-height:20px;color:#374151}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-container[data-v-20c4336e]{display:flex;height:24px;align-items:center}.moonbase\\:checkbox[data-v-20c4336e] input[data-v-20c4336e]{height:16px;width:16px;border-radius:var(--moonbase-input-border-radius);border-width:1px;border-color:#d1d5db;background-color:var(--moonbase-input-background-color);font-size:.875rem;line-height:1.25rem;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:checkbox[data-v-20c4336e] input[data-v-20c4336e][data-v-20c4336e]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e]{margin-left:12px}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] label[data-v-20c4336e]{font-size:14px;line-height:24px;font-weight:500;color:hsl(from var(--moonbase-text-color) h s calc(l + 5))}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] p[data-v-20c4336e]{font-size:14px;line-height:24px;color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}.moonbase\\:checkbox[data-v-20c4336e] .moonbase\\:checkbox-description[data-v-20c4336e] p[data-v-20c4336e][data-type=error][data-v-20c4336e]{color:var(--moonbase-input-error-color)}.moonbase .moonbase\\:sign-up{display:flex;flex-direction:column}.moonbase .moonbase\\:sign-up>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:sign-up .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:sign-up .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:confirm-account{display:flex;flex-direction:column}.moonbase .moonbase\\:confirm-account>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:confirm-account>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:confirm-account>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:confirm-account .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:confirm-account .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:reset-password{display:flex;flex-direction:column}.moonbase .moonbase\\:reset-password>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:reset-password .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:reset-password .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:confirm-email-change{display:flex;flex-direction:column}.moonbase .moonbase\\:confirm-email-change>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:confirm-email-change .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:confirm-email-change .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}.moonbase .moonbase\\:modal-container{display:flex;min-height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px;text-align:center}@media (min-width: 640px){.moonbase .moonbase\\:modal-container{display:block;padding:0}}.moonbase .moonbase\\:modal-center{display:none}@media (min-width: 640px){.moonbase .moonbase\\:modal-center{display:inline-block;height:100svh;vertical-align:middle}}.moonbase .moonbase\\:modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity}.moonbase .moonbase\\:modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:modal-overlay[data-transition~=enter-from],.moonbase .moonbase\\:modal-overlay[data-transition~=leave-to]{opacity:0}.moonbase .moonbase\\:modal-overlay[data-transition~=enter-to],.moonbase .moonbase\\:modal-overlay[data-transition~=leave-from]{opacity:1}.moonbase .moonbase\\:modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:modal-content{position:relative;display:inline-block;margin:80px auto 16px;background-color:var(--moonbase-background-color, white);box-shadow:#64646f33 0 8px 32px;border-radius:calc(var(--moonbase-border-radius, 6px) * 2);vertical-align:bottom;transition-property:all;text-align:left}@media (min-width: 640px){.moonbase .moonbase\\:modal-content{vertical-align:middle}}.moonbase .moonbase\\:modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:modal-content[data-transition~=enter-from]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=enter-from]{transform:scale(.95)}}.moonbase .moonbase\\:modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=enter-to]{transform:scale(1)}}.moonbase .moonbase\\:modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=leave-from]{transform:scale(1)}}.moonbase .moonbase\\:modal-content[data-transition~=leave-to]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:modal-content[data-transition~=leave-to]{transform:scale(.95)}}.moonbase .moonbase\\:sign-in{display:flex;flex-direction:column}.moonbase .moonbase\\:sign-in>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:sign-in .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:sign-in .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:authentication{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){.moonbase .moonbase\\:authentication{width:100vw;max-width:26rem}}.moonbase .moonbase\\:authentication>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase .moonbase\\:authentication>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}.moonbase .moonbase\\:authentication>.moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:product-cart-item{display:flex;align-items:center}.moonbase .moonbase\\:product-cart-item>:not(:first-child){margin-left:24px}.moonbase .moonbase\\:product-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:product-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content h3{font-weight:600}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}.moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}.moonbase .moonbase\\:bundle-cart-item{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item>:not(:first-child){margin-left:24px}.moonbase .moonbase\\:bundle-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content h3{font-weight:600}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary{display:flex;align-items:flex-start;flex-direction:column}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary>:not(:first-child){margin-top:2px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg{margin-left:4px;margin-top:4px;height:16px;width:16px;transition:transform .2s ease-in-out;transform:rotate(0)}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg[data-open]{transform:rotate(180deg)}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}.moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}.moonbase .moonbase\\:bundle-cart-item-product-list{overflow:hidden;padding-left:24px;transition-property:height;transition-duration:.3s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:bundle-cart-item-product-list>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:bundle-cart-item-product-list>div{display:flex;align-items:center;padding:8px 0}.moonbase .moonbase\\:bundle-cart-item-product-list>div>:not(:first-child){margin-left:16px}.moonbase .moonbase\\:bundle-cart-item-product-list>div>img{height:64px;width:64px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:bundle-cart-item-product-list>div>.moonbase\\:image-placeholder{height:64px;width:64px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div{display:flex;flex:auto;flex-direction:column;align-items:flex-start}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div>:not(:first-child){margin-top:4px}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3{display:flex;align-items:center}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3:not([data-included]){text-decoration:line-through;opacity:.75}.moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3 svg{margin-right:4px;height:16px;width:16px}.moonbase .moonbase\\:cart-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}.moonbase .moonbase\\:cart-modal-container{display:flex;height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-container{display:block;padding:0}}.moonbase .moonbase\\:cart-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-from],.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-to]{opacity:0}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-to],.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-from]{opacity:1}.moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}.moonbase .moonbase\\:cart-modal-content{position:fixed;top:0;right:0;bottom:0;display:inline-block;background-color:var(--moonbase-background-color, white);box-shadow:#64646f33 0 8px 32px;transition-property:all}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-from]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-from]{transform:translate(48px)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{transform:translate(0)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.3s}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{transform:translate(0)}}.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-to]{opacity:0;transform:translateY(16px)}@media (min-width: 640px){.moonbase .moonbase\\:cart-modal-content[data-transition~=leave-to]{transform:translate(48px)}}.moonbase .moonbase\\:button{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:button[data-variant=secondary]{--moonbase-button-background-color: rgb(107 114 128);--moonbase-button-text-color: white}.moonbase .moonbase\\:button,.moonbase .moonbase\\:button:hover,.moonbase .moonbase\\:button:focus,.moonbase .moonbase\\:button:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:var(--moonbase-button-border-radius);border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);padding:var(--moonbase-button-padding);height:unset;width:unset}.moonbase .moonbase\\:button:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:button[data-success]{background-color:var(--moonbase-button-success-color)}.moonbase .moonbase\\:button[data-error]{background-color:var(--moonbase-button-error-color)}.moonbase .moonbase\\:button div{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}.moonbase .moonbase\\:button div[data-visible]{width:20px;opacity:1}.moonbase .moonbase\\:button div svg{height:20px;width:20px}.moonbase .moonbase\\:cart{display:inline-block;color:var(--moonbase-text-color, black);padding:32px}@media (min-width: 640px){.moonbase .moonbase\\:cart{width:100vw;max-width:26rem}}.moonbase .moonbase\\:cart>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase .moonbase\\:cart>.moonbase\\:cart-items{font-size:14px;line-height:20px;font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>:not(:first-child){border-top-width:1px;border-color:#00000026}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>li{padding:24px 0}.moonbase .moonbase\\:cart>.moonbase\\:cart-items>li>:not(:first-child){margin-left:16px}.moonbase .moonbase\\:cart>.moonbase\\:cart-empty{padding:32px 0;font-size:1.1rem;line-height:1.3rem;font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-total{width:100%;margin-top:16px;padding:8px;border-radius:4px;background:#0000001a;display:grid;grid-template-columns:repeat(2,1fr);justify-content:space-between}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>label{font-weight:500}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>span{font-weight:600;text-align:right}.moonbase .moonbase\\:cart>.moonbase\\:cart-total>p{grid-column:-1 / 1;padding-top:8px;text-align:center}.moonbase .moonbase\\:cart>button{--moonbase-button-padding: 12px 32px;margin:32px auto 16px;min-width:164px}.moonbase .moonbase\\:account{padding-bottom:32px}.moonbase .moonbase\\:account>*:not(:last-child){margin-bottom:16px}.moonbase .moonbase\\:account form{margin:auto;max-width:420px}.moonbase .moonbase\\:account form>*:not(:first-child){margin-top:8px}.moonbase .moonbase\\:account form .moonbase\\:error{font-size:14px;line-height:20px;font-weight:600;color:var(--moonbase-error-color)}.moonbase .moonbase\\:account form .moonbase\\:notification{font-size:14px;line-height:20px;font-weight:600}.moonbase .moonbase\\:account>button{margin:32px auto 0}.moonbase .moonbase\\:product-downloads{display:flex;border-radius:var(--moonbase-border-radius);box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads button{position:relative;display:inline-flex;align-items:center;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads button,.moonbase .moonbase\\:product-downloads button:hover,.moonbase .moonbase\\:product-downloads button:focus,.moonbase .moonbase\\:product-downloads button:active{font-size:.875rem;font-weight:500;line-height:1.25rem;border-radius:0;border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color);margin:0 -1px;padding:8px;height:unset;width:unset}.moonbase .moonbase\\:product-downloads button:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}.moonbase .moonbase\\:product-downloads button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:inset #fff 0 0 0 2px,inset var(--moonbase-button-background-color) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}.moonbase .moonbase\\:product-downloads>button{border-radius:0}.moonbase .moonbase\\:product-downloads>button:first-child{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads>button[data-last]{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group{position:relative;margin:0 -1px;display:block}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group:first-child>button{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group[data-last]>button{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group button>:last-child{margin-left:8px}.moonbase .moonbase\\:product-downloads svg{height:20px;width:20px;color:#fff}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list{position:absolute;display:flex;flex-direction:column;right:0;margin-right:-4px;margin-top:8px;width:128px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list:focus{outline:none}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button{border-radius:0}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:first-child{border-top-right-radius:var(--moonbase-border-radius);border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:last-child{border-bottom-right-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:active{color:var(--moonbase-text-color);background-color:transparent;margin:0;padding:8px;height:unset;width:unset}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{background-color:hsl(from var(--moonbase-background-color) h s calc(l - 5))}.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,.moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{box-shadow:none}.moonbase .moonbase\\:product-activations{position:absolute;right:8px;margin-top:8px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}.moonbase .moonbase\\:product-activations>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}.moonbase .moonbase\\:product-activations>thead>tr>th:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:8px 12px}.moonbase .moonbase\\:product-activations>thead>tr>th:last-child{text-align:right;padding:8px 16px 8px 12px;border-top-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:product-activations>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative;font-size:14px;font-weight:600;line-height:20px}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div{display:flex;align-items:center}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}.moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:product-activations>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px;border-top-right-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}.moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:product-activations>tbody>tr>td>button{margin:auto}.moonbase .moonbase\\:product-activations>tbody>tr>td>button,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:hover,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:focus,.moonbase .moonbase\\:product-activations>tbody>tr>td>button:active{width:100%}.moonbase .moonbase\\:products{min-width:calc(100% + 128px);margin:0 -64px}.moonbase .moonbase\\:products>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}.moonbase .moonbase\\:products>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}.moonbase .moonbase\\:products>thead>tr>th:first-child{width:100%;padding:14px 12px 14px 16px}.moonbase .moonbase\\:products>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:products>thead>tr>th:last-child{text-align:right;padding:14px 16px 14px 12px}.moonbase .moonbase\\:products>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}.moonbase .moonbase\\:products>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative}.moonbase .moonbase\\:products>tbody>tr>td:first-child{width:100%;padding:14px 12px 14px 16px}.moonbase .moonbase\\:products>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div{display:flex;align-items:center}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:products>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:products>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}.moonbase .moonbase\\:products>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px}.moonbase .moonbase\\:products>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}.moonbase .moonbase\\:products>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:products>tbody>tr>td>button{margin:auto}.moonbase .moonbase\\:products>tbody>tr>td>button,.moonbase .moonbase\\:products>tbody>tr>td>button:hover,.moonbase .moonbase\\:products>tbody>tr>td>button:focus,.moonbase .moonbase\\:products>tbody>tr>td>button:active{width:100%}.moonbase .moonbase\\:redeem>form{display:flex;flex-direction:column;max-width:240px;margin:64px auto 32px}.moonbase .moonbase\\:redeem>form>*:not(:first-child){margin-top:16px}.moonbase .moonbase\\:redeem>form>button{margin:auto}.moonbase .moonbase\\:redeem>form .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}.moonbase .moonbase\\:redeem>form .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher{max-width:320px;margin:16px auto;padding:16px;box-shadow:0 0 0 2px var(--moonbase-button-shadow-color);border-radius:var(--moonbase-border-radius)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle{display:flex;align-items:center;padding:8px 0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>*:not(:first-child),.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>*:not(:first-child){margin-left:12px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child{flex-shrink:0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>img,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>.moonbase\\:image-placeholder,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child{flex:1;min-width:0}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:first-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:first-child{font-size:14px;font-weight:500;line-height:20px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:last-child,.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:last-child{font-size:14px;line-height:20px;text-overflow:ellipsis}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products{padding-left:32px}.moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}.moonbase .moonbase\\:customer{display:inline-block;color:var(--moonbase-text-color);padding:32px 64px 16px}@media (min-width: 640px){.moonbase .moonbase\\:customer{width:100vw;max-width:32rem}}.moonbase .moonbase\\:customer>[role=tablist]{margin:0 -32px 16px;padding:0 32px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(from var(--moonbase-button-background-color) r g b / .25);display:flex}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab]{margin-bottom:-1px;width:33%;padding:8px 4px;text-align:center;font-size:14px;font-weight:500;line-height:20px;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;color:hsl(from var(--moonbase-text-color) h s calc(l + 15));transition-property:border-bottom-color,color;transition-duration:.25s;transition-timing-function:ease-out}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab]:hover{color:hsl(from var(--moonbase-text-color) h s calc(l + 5));border-bottom-color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}.moonbase .moonbase\\:customer>[role=tablist]>[role=tab][aria-selected=true]{color:hsl(from var(--moonbase-primary-color) h s calc(l - 15));border-bottom-color:hsl(from var(--moonbase-primary-color) h s calc(l - 10))}.moonbase .moonbase\\:auto-activate .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}.moonbase .moonbase\\:auto-activate .moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:auto-activate .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}.moonbase .moonbase\\:auto-activate .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product{display:flex;align-items:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div{margin-left:8px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content{margin-top:16px;text-align:center;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-trial{margin-top:16px;padding-top:16px;border-top-width:1px;border-color:rgb(from var(--moonbase-text-color) r g b / .2);border-style:solid}.moonbase .moonbase\\:activation{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){.moonbase .moonbase\\:activation{width:100vw;max-width:26rem}}.moonbase .moonbase\\:activation>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase .moonbase\\:download-product .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}.moonbase .moonbase\\:download-product .moonbase\\:loader svg{height:24px;width:24px}.moonbase .moonbase\\:download-product .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}.moonbase .moonbase\\:download-product .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product{display:flex;align-items:center}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product div{margin-left:8px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2 span{opacity:.75;font-size:14px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content{margin-top:16px;text-align:left;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 10));font-size:16px;font-weight:500;line-height:20px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content>:not(:first-child){margin-top:16px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta>:not(:first-child){margin-left:8px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul{border-radius:6px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul>:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li{position:relative;display:flex;justify-content:space-between;transition:background-color .25s ease-in-out;padding:12px 16px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:hover{background-color:#0000001a}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>:not(:first-child){margin-left:20px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child{min-width:0}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-name{font-weight:600;line-height:24px;font-size:14px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description{display:flex;align-items:center;line-height:24px;font-size:14px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description svg{height:16px;width:16px;margin-right:6px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description span{opacity:.5;margin:0 6px}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child{display:flex;align-items:center;flex-shrink:0}.moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child svg{flex:none;height:20px;width:20px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}.moonbase .moonbase\\:download-product .moonbase\\:download-product-clicker{position:absolute;top:0;right:0;left:0;padding:-1px 0;bottom:0}.moonbase .moonbase\\:download{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){.moonbase .moonbase\\:download{width:100vw;max-width:26rem}}.moonbase .moonbase\\:download>h3{font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;margin-bottom:1.5rem}.moonbase,.moonbase *:not(svg,path),.moonbase :before,.moonbase :after{all:revert;box-sizing:border-box;border-width:0;border-style:solid}.moonbase *:not(svg,path){margin:0;padding:0;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.moonbase{--moonbase-text-color: rgb(17 24 39);--moonbase-primary-color: rgb(79 70 229);--moonbase-error-color: rgb(167, 33, 33);--moonbase-background-color: white;--moonbase-button-padding: 8px 32px;--moonbase-button-text-color: rgb(255 255 255);--moonbase-button-background-color: var(--moonbase-primary-color);--moonbase-button-shadow-color: rgb(0 0 0 / .05);--moonbase-button-success-color: rgb(22 163 74);--moonbase-button-error-color: rgb(167, 33, 33);--moonbase-button-border-radius: var(--moonbase-border-radius, 6px);--moonbase-input-active-color: var(--moonbase-primary-color, var(--moonbase-primary-color));--moonbase-input-shadow-color: rgb(0 0 0 / .05);--moonbase-input-error-color: rgb(167, 33, 33);--moonbase-input-background-color: transparent;--moonbase-input-text-color:var(--moonbase-text-color);--moonbase-input-border-radius: var(--moonbase-border-radius, 6px);--moonbase-modal-padding: 8px 32px;--moonbase-modal-text-color: var(--moonbase-text-color);--moonbase-modal-background-color: rgb(255 255 255);--moonbase-modal-shadow-color: rgb(0 0 0 / .05);--moonbase-modal-border-radius: var(--moonbase-border-radius, 6px)}.moonbase .moonbase\\:scale-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}.moonbase .moonbase\\:scale-enter-from{opacity:0;transform:scale(.95)}.moonbase .moonbase\\:scale-enter-to{opacity:1;transform:scale(1)}.moonbase .moonbase\\:scale-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}.moonbase .moonbase\\:scale-leave-from{opacity:1;transform:scale(1)}.moonbase .moonbase\\:scale-leave-to{opacity:0;transform:scale(.95)}.moonbase .moonbase\\:slide-left-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}.moonbase .moonbase\\:slide-left-enter-from{opacity:0;transform:translate(1rem)}.moonbase .moonbase\\:slide-left-enter-to{opacity:1;transform:translate(0)}.moonbase .moonbase\\:slide-left-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}.moonbase .moonbase\\:slide-left-leave-from{opacity:1;transform:translate(0)}.moonbase .moonbase\\:slide-left-leave-to{opacity:0;transform:translate(-1rem)}.moonbase .moonbase\\:sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.moonbase a{color:inherit;text-decoration:inherit}.moonbase input,.moonbase button,.moonbase textarea,.moonbase select{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;background:none;font-size:100%;line-height:1.15;margin:0;padding:0;color:inherit}.moonbase button,.moonbase select{text-transform:none}.moonbase button,.moonbase [role=button]{cursor:pointer}.moonbase button,.moonbase [type=button],.moonbase [type=reset],.moonbase [type=submit]{-webkit-appearance:button}.moonbase h1,.moonbase h2,.moonbase h3,.moonbase h4,.moonbase h5,.moonbase h6{font-size:inherit;font-weight:inherit}.moonbase b,.moonbase strong{font-weight:bolder}.moonbase svg,.moonbase svg *{color:inherit}.moonbase table{text-indent:0;border-color:inherit;border-collapse:collapse}.moonbase img,.moonbase svg,.moonbase video,.moonbase canvas,.moonbase audio,.moonbase iframe,.moonbase embed,.moonbase object{display:block;vertical-align:middle}.moonbase ol,.moonbase ul,.moonbase menu{list-style:none;margin:0;padding:0}.moonbase img,.moonbase video{max-width:100%;height:auto}.moonbase :disabled{cursor:default}.moonbase [hidden]{display:none}.moonbase ::-moz-focus-inner{border-style:none;padding:0}.moonbase :-moz-focusring{outline:none}.moonbase :-moz-ui-invalid{box-shadow:none}')),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ (function(wt,_e){typeof exports=="object"&&typeof module<"u"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(wt=typeof globalThis<"u"?globalThis:wt||self,_e(wt.Moonbase={}))})(this,function(wt){"use strict";var gw=Object.defineProperty;var yw=(wt,_e,wn)=>_e in wt?gw(wt,_e,{enumerable:!0,configurable:!0,writable:!0,value:wn}):wt[_e]=wn;var Nr=(wt,_e,wn)=>yw(wt,typeof _e!="symbol"?_e+"":_e,wn);var _e;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var wn;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(wn||(wn={}));const ee=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),En=e=>{switch(typeof e){case"undefined":return ee.undefined;case"string":return ee.string;case"number":return isNaN(e)?ee.nan:ee.number;case"boolean":return ee.boolean;case"function":return ee.function;case"bigint":return ee.bigint;case"symbol":return ee.symbol;case"object":return Array.isArray(e)?ee.array:e===null?ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ee.promise:typeof Map<"u"&&e instanceof Map?ee.map:typeof Set<"u"&&e instanceof Set?ee.set:typeof Date<"u"&&e instanceof Date?ee.date:ee.object;default:return ee.unknown}},H=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Wd=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class It extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,_e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}It.create=e=>new It(e);const Mr=(e,t)=>{let n;switch(e.code){case H.invalid_type:e.received===ee.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:n="Invalid function arguments";break;case H.invalid_return_type:n="Invalid function return type";break;case H.invalid_date:n="Invalid date";break;case H.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case H.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case H.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case H.custom:n="Invalid input";break;case H.invalid_intersection_types:n="Intersection results could not be merged";break;case H.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=t.defaultError,_e.assertNever(e)}return{message:n}};let za=Mr;function zd(e){za=e}function Mo(){return za}const Uo=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...o,path:s,message:o.message||a}},Kd=[];function te(e,t){const n=Uo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Mo(),Mr].filter(r=>!!r)});e.common.issues.push(n)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return be;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n)r.push({key:await o.key,value:await o.value});return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return be;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const be=Object.freeze({status:"aborted"}),Ka=e=>({status:"dirty",value:e}),ht=e=>({status:"valid",value:e}),si=e=>e.status==="aborted",ii=e=>e.status==="dirty",Ur=e=>e.status==="valid",Fo=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class Ft{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ga=(e,t)=>{if(Ur(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new It(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>i.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:o}}class Oe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return En(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Fo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Ga(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Fo(o)?o:Promise.resolve(o));return Ga(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:H.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Vt({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return nn.create(this,this._def)}nullable(){return Qn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return At.create(this,this._def)}promise(){return Tr.create(this,this._def)}or(t){return Zr.create([this,t],this._def)}and(t){return qr.create(this,t,this._def)}transform(t){return new Vt({...Ee(this._def),schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Jr({...Ee(this._def),innerType:this,defaultValue:n,typeName:he.ZodDefault})}brand(){return new Ya({typeName:he.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new zo({...Ee(this._def),innerType:this,catchValue:n,typeName:he.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Yr.create(this,t)}readonly(){return Go.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Gd=/^c[^\s-]{8,}$/i,Jd=/^[a-z][a-z0-9]*$/,Yd=/^[0-9A-HJKMNP-TV-Z]{26}$/,Xd=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Qd=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ef="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ai;const tf=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,nf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,rf=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function of(e,t){return!!((t==="v4"||!t)&&tf.test(e)||(t==="v6"||!t)&&nf.test(e))}class Dt extends Oe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ee.string){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.string,received:s.parsedType}),be}const r=new ut;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?te(o,{code:H.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&te(o,{code:H.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")Qd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"email",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")ai||(ai=new RegExp(ef,"u")),ai.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"emoji",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")Xd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"uuid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")Gd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"cuid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")Jd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"cuid2",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Yd.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"ulid",code:H.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),te(o,{validation:"url",code:H.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"regex",code:H.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?rf(s).test(t.data)||(o=this._getOrReturnCtx(t,o),te(o,{code:H.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="ip"?of(t.data,s.version)||(o=this._getOrReturnCtx(t,o),te(o,{validation:"ip",code:H.invalid_string,message:s.message}),r.dirty()):_e.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:H.invalid_string,...ce.errToObj(r)})}_addCheck(t){return new Dt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...ce.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dt.create=e=>{var t;return new Dt({checks:[],typeName:he.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function sf(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class On extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ee.number){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.number,received:s.parsedType}),be}let r;const o=new ut;for(const s of this._def.checks)s.kind==="int"?_e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:H.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?sf(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_finite,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new On({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new On({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}On.create=e=>new On({checks:[],typeName:he.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Nn extends Oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ee.bigint){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.bigint,received:s.parsedType}),be}let r;const o=new ut;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),te(r,{code:H.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,o){return new Nn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(o)}]})}_addCheck(t){return new Nn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nn.create=e=>{var t;return new Nn({checks:[],typeName:he.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class Fr extends Oe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ee.boolean){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.boolean,received:r.parsedType}),be}return ht(t.data)}}Fr.create=e=>new Fr({typeName:he.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Jn extends Oe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ee.date){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_type,expected:ee.date,received:s.parsedType}),be}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return te(s,{code:H.invalid_date}),be}const r=new ut;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),te(o,{code:H.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):_e.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Jn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Jn.create=e=>new Jn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:he.ZodDate,...Ee(e)});class Bo extends Oe{_parse(t){if(this._getType(t)!==ee.symbol){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.symbol,received:r.parsedType}),be}return ht(t.data)}}Bo.create=e=>new Bo({typeName:he.ZodSymbol,...Ee(e)});class Br extends Oe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.undefined,received:r.parsedType}),be}return ht(t.data)}}Br.create=e=>new Br({typeName:he.ZodUndefined,...Ee(e)});class Hr extends Oe{_parse(t){if(this._getType(t)!==ee.null){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.null,received:r.parsedType}),be}return ht(t.data)}}Hr.create=e=>new Hr({typeName:he.ZodNull,...Ee(e)});class Sr extends Oe{constructor(){super(...arguments),this._any=!0}_parse(t){return ht(t.data)}}Sr.create=e=>new Sr({typeName:he.ZodAny,...Ee(e)});class Yn extends Oe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ht(t.data)}}Yn.create=e=>new Yn({typeName:he.ZodUnknown,...Ee(e)});class tn extends Oe{_parse(t){const n=this._getOrReturnCtx(t);return te(n,{code:H.invalid_type,expected:ee.never,received:n.parsedType}),be}}tn.create=e=>new tn({typeName:he.ZodNever,...Ee(e)});class Ho extends Oe{_parse(t){if(this._getType(t)!==ee.undefined){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.void,received:r.parsedType}),be}return ht(t.data)}}Ho.create=e=>new Ho({typeName:he.ZodVoid,...Ee(e)});class At extends Oe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==ee.array)return te(n,{code:H.invalid_type,expected:ee.array,received:n.parsedType}),be;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(te(n,{code:i?H.too_big:H.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(te(n,{code:H.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(te(n,{code:H.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Ft(n,i,n.path,a)))).then(i=>ut.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Ft(n,i,n.path,a)));return ut.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new At({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new At({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new At({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}At.create=(e,t)=>new At({type:e,minLength:null,maxLength:null,exactLength:null,typeName:he.ZodArray,...Ee(t)});function xr(e){if(e instanceof Ze){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=nn.create(xr(r))}return new Ze({...e._def,shape:()=>t})}else return e instanceof At?new At({...e._def,type:xr(e.element)}):e instanceof nn?nn.create(xr(e.unwrap())):e instanceof Qn?Qn.create(xr(e.unwrap())):e instanceof Bt?Bt.create(e.items.map(t=>xr(t))):e}class Ze extends Oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=_e.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ee.object){const u=this._getOrReturnCtx(t);return te(u,{code:H.invalid_type,expected:ee.object,received:u.parsedType}),be}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof tn&&this._def.unknownKeys==="strip"))for(const u in o.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const c=s[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ft(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof tn){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(te(o,{code:H.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ft(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key;u.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Ze({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ce.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ze({...this._def,unknownKeys:"strip"})}passthrough(){return new Ze({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ze({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ze({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:he.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ze({...this._def,catchall:t})}pick(t){const n={};return _e.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}omit(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ze({...this._def,shape:()=>n})}deepPartial(){return xr(this)}partial(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ze({...this._def,shape:()=>n})}required(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof nn;)s=s._def.innerType;n[r]=s}}),new Ze({...this._def,shape:()=>n})}keyof(){return Ja(_e.objectKeys(this.shape))}}Ze.create=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strip",catchall:tn.create(),typeName:he.ZodObject,...Ee(t)}),Ze.strictCreate=(e,t)=>new Ze({shape:()=>e,unknownKeys:"strict",catchall:tn.create(),typeName:he.ZodObject,...Ee(t)}),Ze.lazycreate=(e,t)=>new Ze({shape:e,unknownKeys:"strip",catchall:tn.create(),typeName:he.ZodObject,...Ee(t)});class Zr extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new It(a.ctx.common.issues));return te(n,{code:H.invalid_union,unionErrors:i}),be}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new It(l));return te(n,{code:H.invalid_union,unionErrors:a}),be}}get options(){return this._def.options}}Zr.create=(e,t)=>new Zr({options:e,typeName:he.ZodUnion,...Ee(t)});const Zo=e=>e instanceof zr?Zo(e.schema):e instanceof Vt?Zo(e.innerType()):e instanceof Kr?[e.value]:e instanceof Sn?e.options:e instanceof Gr?Object.keys(e.enum):e instanceof Jr?Zo(e._def.innerType):e instanceof Br?[void 0]:e instanceof Hr?[null]:null;class qo extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.object)return te(n,{code:H.invalid_type,expected:ee.object,received:n.parsedType}),be;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=Zo(s.shape[t]);if(!i)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new qo({typeName:he.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ee(r)})}}function li(e,t){const n=En(e),r=En(t);if(e===t)return{valid:!0,data:e};if(n===ee.object&&r===ee.object){const o=_e.objectKeys(t),s=_e.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=li(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===ee.array&&r===ee.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=li(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===ee.date&&r===ee.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class qr extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(si(s)||si(i))return be;const a=li(s.value,i.value);return a.valid?((ii(s)||ii(i))&&n.dirty(),{status:n.value,value:a.data}):(te(r,{code:H.invalid_intersection_types}),be)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}qr.create=(e,t,n)=>new qr({left:e,right:t,typeName:he.ZodIntersection,...Ee(n)});class Bt extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.array)return te(r,{code:H.invalid_type,expected:ee.array,received:r.parsedType}),be;if(r.data.length<this._def.items.length)return te(r,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&r.data.length>this._def.items.length&&(te(r,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Ft(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ut.mergeArray(n,i)):ut.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Bt({...this._def,rest:t})}}Bt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bt({items:e,typeName:he.ZodTuple,rest:null,...Ee(t)})};class Wr extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.object)return te(r,{code:H.invalid_type,expected:ee.object,received:r.parsedType}),be;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Ft(r,a,r.path,a)),value:i._parse(new Ft(r,r.data[a],r.path,a))});return r.common.async?ut.mergeObjectAsync(n,o):ut.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Oe?new Wr({keyType:t,valueType:n,typeName:he.ZodRecord,...Ee(r)}):new Wr({keyType:Dt.create(),valueType:t,typeName:he.ZodRecord,...Ee(n)})}}class Wo extends Oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.map)return te(r,{code:H.invalid_type,expected:ee.map,received:r.parsedType}),be;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Ft(r,a,r.path,[u,"key"])),value:s._parse(new Ft(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return be;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return be;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}Wo.create=(e,t,n)=>new Wo({valueType:t,keyType:e,typeName:he.ZodMap,...Ee(n)});class Xn extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ee.set)return te(r,{code:H.invalid_type,expected:ee.set,received:r.parsedType}),be;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(te(r,{code:H.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(te(r,{code:H.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return be;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>s._parse(new Ft(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Xn({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new Xn({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Xn.create=(e,t)=>new Xn({valueType:e,minSize:null,maxSize:null,typeName:he.ZodSet,...Ee(t)});class kr extends Oe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.function)return te(n,{code:H.invalid_type,expected:ee.function,received:n.parsedType}),be;function r(a,l){return Uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Mo(),Mr].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:l}})}function o(a,l){return Uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Mo(),Mr].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Tr){const a=this;return ht(async function(...l){const u=new It([]),c=await a._def.args.parseAsync(l,s).catch(m=>{throw u.addIssue(r(l,m)),u}),d=await Reflect.apply(i,this,c);return await a._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(o(d,m)),u})})}else{const a=this;return ht(function(...l){const u=a._def.args.safeParse(l,s);if(!u.success)throw new It([r(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=a._def.returns.safeParse(c,s);if(!d.success)throw new It([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new kr({...this._def,args:Bt.create(t).rest(Yn.create())})}returns(t){return new kr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new kr({args:t||Bt.create([]).rest(Yn.create()),returns:n||Yn.create(),typeName:he.ZodFunction,...Ee(r)})}}class zr extends Oe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}zr.create=(e,t)=>new zr({getter:e,typeName:he.ZodLazy,...Ee(t)});class Kr extends Oe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return te(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:t.data}}get value(){return this._def.value}}Kr.create=(e,t)=>new Kr({value:e,typeName:he.ZodLiteral,...Ee(t)});function Ja(e,t){return new Sn({values:e,typeName:he.ZodEnum,...Ee(t)})}class Sn extends Oe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return te(n,{expected:_e.joinValues(r),received:n.parsedType,code:H.invalid_type}),be}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return te(n,{received:n.data,code:H.invalid_enum_value,options:r}),be}return ht(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Sn.create(t)}exclude(t){return Sn.create(this.options.filter(n=>!t.includes(n)))}}Sn.create=Ja;class Gr extends Oe{_parse(t){const n=_e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ee.string&&r.parsedType!==ee.number){const o=_e.objectValues(n);return te(r,{expected:_e.joinValues(o),received:r.parsedType,code:H.invalid_type}),be}if(n.indexOf(t.data)===-1){const o=_e.objectValues(n);return te(r,{received:r.data,code:H.invalid_enum_value,options:o}),be}return ht(t.data)}get enum(){return this._def.values}}Gr.create=(e,t)=>new Gr({values:e,typeName:he.ZodNativeEnum,...Ee(t)});class Tr extends Oe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ee.promise&&n.common.async===!1)return te(n,{code:H.invalid_type,expected:ee.promise,received:n.parsedType}),be;const r=n.parsedType===ee.promise?n.data:Promise.resolve(n.data);return ht(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Tr.create=(e,t)=>new Tr({type:e,typeName:he.ZodPromise,...Ee(t)});class Vt extends Oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===he.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{te(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(i).then(a=>this._def.schema._parseAsync({data:a,path:r.path,parent:r})):this._def.schema._parseSync({data:i,path:r.path,parent:r})}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?be:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?be:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ur(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Ur(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);_e.assertNever(o)}}Vt.create=(e,t,n)=>new Vt({schema:e,typeName:he.ZodEffects,effect:t,...Ee(n)}),Vt.createWithPreprocess=(e,t,n)=>new Vt({schema:t,effect:{type:"preprocess",transform:e},typeName:he.ZodEffects,...Ee(n)});class nn extends Oe{_parse(t){return this._getType(t)===ee.undefined?ht(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:he.ZodOptional,...Ee(t)});class Qn extends Oe{_parse(t){return this._getType(t)===ee.null?ht(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qn.create=(e,t)=>new Qn({innerType:e,typeName:he.ZodNullable,...Ee(t)});class Jr extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ee.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Jr.create=(e,t)=>new Jr({innerType:e,typeName:he.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class zo extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Fo(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}zo.create=(e,t)=>new zo({innerType:e,typeName:he.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class Ko extends Oe{_parse(t){if(this._getType(t)!==ee.nan){const r=this._getOrReturnCtx(t);return te(r,{code:H.invalid_type,expected:ee.nan,received:r.parsedType}),be}return{status:"valid",value:t.data}}}Ko.create=e=>new Ko({typeName:he.ZodNaN,...Ee(e)});const af=Symbol("zod_brand");class Ya extends Oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Yr extends Oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?be:s.status==="dirty"?(n.dirty(),Ka(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?be:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Yr({in:t,out:n,typeName:he.ZodPipeline})}}class Go extends Oe{_parse(t){const n=this._def.innerType._parse(t);return Ur(n)&&(n.value=Object.freeze(n.value)),n}}Go.create=(e,t)=>new Go({innerType:e,typeName:he.ZodReadonly,...Ee(t)});const Xa=(e,t={},n)=>e?Sr.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,u=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...u,fatal:l})}}):Sr.create(),lf={object:Ze.lazycreate};var he;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(he||(he={}));const uf=(e,t={message:`Input not instance of ${e.name}`})=>Xa(n=>n instanceof e,t),Qa=Dt.create,el=On.create,cf=Ko.create,df=Nn.create,tl=Fr.create,ff=Jn.create,pf=Bo.create,hf=Br.create,mf=Hr.create,vf=Sr.create,gf=Yn.create,yf=tn.create,_f=Ho.create,bf=At.create,wf=Ze.create,Ef=Ze.strictCreate,Of=Zr.create,Nf=qo.create,Sf=qr.create,xf=Bt.create,kf=Wr.create,Tf=Wo.create,Cf=Xn.create,Pf=kr.create,$f=zr.create,If=Kr.create,Df=Sn.create,Af=Gr.create,Vf=Tr.create,nl=Vt.create,Rf=nn.create,jf=Qn.create,Lf=Vt.createWithPreprocess,Mf=Yr.create;var _=Object.freeze({__proto__:null,defaultErrorMap:Mr,setErrorMap:zd,getErrorMap:Mo,makeIssue:Uo,EMPTY_PATH:Kd,addIssueToContext:te,ParseStatus:ut,INVALID:be,DIRTY:Ka,OK:ht,isAborted:si,isDirty:ii,isValid:Ur,isAsync:Fo,get util(){return _e},get objectUtil(){return wn},ZodParsedType:ee,getParsedType:En,ZodType:Oe,ZodString:Dt,ZodNumber:On,ZodBigInt:Nn,ZodBoolean:Fr,ZodDate:Jn,ZodSymbol:Bo,ZodUndefined:Br,ZodNull:Hr,ZodAny:Sr,ZodUnknown:Yn,ZodNever:tn,ZodVoid:Ho,ZodArray:At,ZodObject:Ze,ZodUnion:Zr,ZodDiscriminatedUnion:qo,ZodIntersection:qr,ZodTuple:Bt,ZodRecord:Wr,ZodMap:Wo,ZodSet:Xn,ZodFunction:kr,ZodLazy:zr,ZodLiteral:Kr,ZodEnum:Sn,ZodNativeEnum:Gr,ZodPromise:Tr,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:nn,ZodNullable:Qn,ZodDefault:Jr,ZodCatch:zo,ZodNaN:Ko,BRAND:af,ZodBranded:Ya,ZodPipeline:Yr,ZodReadonly:Go,custom:Xa,Schema:Oe,ZodSchema:Oe,late:lf,get ZodFirstPartyTypeKind(){return he},coerce:{string:e=>Dt.create({...e,coerce:!0}),number:e=>On.create({...e,coerce:!0}),boolean:e=>Fr.create({...e,coerce:!0}),bigint:e=>Nn.create({...e,coerce:!0}),date:e=>Jn.create({...e,coerce:!0})},any:vf,array:bf,bigint:df,boolean:tl,date:ff,discriminatedUnion:Nf,effect:nl,enum:Df,function:Pf,instanceof:uf,intersection:Sf,lazy:$f,literal:If,map:Tf,nan:cf,nativeEnum:Af,never:yf,null:mf,nullable:jf,number:el,object:wf,oboolean:()=>tl().optional(),onumber:()=>el().optional(),optional:Rf,ostring:()=>Qa().optional(),pipeline:Mf,preprocess:Lf,promise:Vf,record:kf,set:Cf,strictObject:Ef,string:Qa,symbol:pf,transformer:nl,tuple:xf,undefined:hf,union:Of,unknown:gf,void:_f,NEVER:be,ZodIssueCode:H,quotelessJson:Wd,ZodError:It}),Uf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ui={exports:{}};(function(e,t){var n=typeof self<"u"?self:Uf,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(i){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(w){return w&&DataView.prototype.isPrototypeOf(w)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(w){return w&&u.indexOf(Object.prototype.toString.call(w))>-1};function d(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function f(w){return typeof w!="string"&&(w=String(w)),w}function m(w){var I={next:function(){var ne=w.shift();return{done:ne===void 0,value:ne}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function v(w){this.map={},w instanceof v?w.forEach(function(I,ne){this.append(ne,I)},this):Array.isArray(w)?w.forEach(function(I){this.append(I[0],I[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(I){this.append(I,w[I])},this)}v.prototype.append=function(w,I){w=d(w),I=f(I);var ne=this.map[w];this.map[w]=ne?ne+", "+I:I},v.prototype.delete=function(w){delete this.map[d(w)]},v.prototype.get=function(w){return w=d(w),this.has(w)?this.map[w]:null},v.prototype.has=function(w){return this.map.hasOwnProperty(d(w))},v.prototype.set=function(w,I){this.map[d(w)]=f(I)},v.prototype.forEach=function(w,I){for(var ne in this.map)this.map.hasOwnProperty(ne)&&w.call(I,this.map[ne],ne,this)},v.prototype.keys=function(){var w=[];return this.forEach(function(I,ne){w.push(ne)}),m(w)},v.prototype.values=function(){var w=[];return this.forEach(function(I){w.push(I)}),m(w)},v.prototype.entries=function(){var w=[];return this.forEach(function(I,ne){w.push([ne,I])}),m(w)},a.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function N(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function S(w){return new Promise(function(I,ne){w.onload=function(){I(w.result)},w.onerror=function(){ne(w.error)}})}function D(w){var I=new FileReader,ne=S(I);return I.readAsArrayBuffer(w),ne}function B(w){var I=new FileReader,ne=S(I);return I.readAsText(w),ne}function P(w){for(var I=new Uint8Array(w),ne=new Array(I.length),ae=0;ae<I.length;ae++)ne[ae]=String.fromCharCode(I[ae]);return ne.join("")}function K(w){if(w.slice)return w.slice(0);var I=new Uint8Array(w.byteLength);return I.set(new Uint8Array(w)),I.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(w){this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:a.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:a.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():a.arrayBuffer&&a.blob&&l(w)?(this._bodyArrayBuffer=K(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||c(w))?this._bodyArrayBuffer=K(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var w=N(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(D)}),this.text=function(){var w=N(this);if(w)return w;if(this._bodyBlob)return B(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Y)}),this.json=function(){return this.text().then(JSON.parse)},this}var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function x(w){var I=w.toUpperCase();return Z.indexOf(I)>-1?I:w}function de(w,I){I=I||{};var ne=I.body;if(w instanceof de){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,I.headers||(this.headers=new v(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!ne&&w._bodyInit!=null&&(ne=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new v(I.headers)),this.method=x(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ne)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ne)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})};function Y(w){var I=new FormData;return w.trim().split("&").forEach(function(ne){if(ne){var ae=ne.split("="),re=ae.shift().replace(/\+/g," "),ue=ae.join("=").replace(/\+/g," ");I.append(decodeURIComponent(re),decodeURIComponent(ue))}}),I}function V(w){var I=new v,ne=w.replace(/\r?\n[\t ]+/g," ");return ne.split(/\r?\n/).forEach(function(ae){var re=ae.split(":"),ue=re.shift().trim();if(ue){var Ie=re.join(":").trim();I.append(ue,Ie)}}),I}$.call(de.prototype);function C(w,I){I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in I?I.statusText:"OK",this.headers=new v(I.headers),this.url=I.url||"",this._initBody(w)}$.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},C.error=function(){var w=new C(null,{status:0,statusText:""});return w.type="error",w};var j=[301,302,303,307,308];C.redirect=function(w,I){if(j.indexOf(I)===-1)throw new RangeError("Invalid status code");return new C(null,{status:I,headers:{location:w}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(I,ne){this.message=I,this.name=ne;var ae=Error(I);this.stack=ae.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function oe(w,I){return new Promise(function(ne,ae){var re=new de(w,I);if(re.signal&&re.signal.aborted)return ae(new i.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function Ie(){ue.abort()}ue.onload=function(){var je={status:ue.status,statusText:ue.statusText,headers:V(ue.getAllResponseHeaders()||"")};je.url="responseURL"in ue?ue.responseURL:je.headers.get("X-Request-URL");var nt="response"in ue?ue.response:ue.responseText;ne(new C(nt,je))},ue.onerror=function(){ae(new TypeError("Network request failed"))},ue.ontimeout=function(){ae(new TypeError("Network request failed"))},ue.onabort=function(){ae(new i.DOMException("Aborted","AbortError"))},ue.open(re.method,re.url,!0),re.credentials==="include"?ue.withCredentials=!0:re.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&a.blob&&(ue.responseType="blob"),re.headers.forEach(function(je,nt){ue.setRequestHeader(nt,je)}),re.signal&&(re.signal.addEventListener("abort",Ie),ue.onreadystatechange=function(){ue.readyState===4&&re.signal.removeEventListener("abort",Ie)}),ue.send(typeof re._bodyInit>"u"?null:re._bodyInit)})}return oe.polyfill=!0,s.fetch||(s.fetch=oe,s.Headers=v,s.Request=de,s.Response=C),i.Headers=v,i.Request=de,i.Response=C,i.fetch=oe,Object.defineProperty(i,"__esModule",{value:!0}),i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(ui,ui.exports);var Bf=ui.exports;const Jo=Ff(Bf);var xn=_.record(_.number()),Hf=_.object({type:_.literal("PercentageOffDiscount"),name:_.string(),description:_.string().optional(),percentage:_.number(),total:xn}),Zf=_.object({type:_.literal("FlatAmountOffDiscount"),name:_.string(),description:_.string().optional(),total:xn}),qf=_.discriminatedUnion("type",[Hf,Zf]),Cr=_.object({id:_.string(),name:_.string(),originalPrice:xn,price:xn,hasDiscount:_.boolean(),discount:qf.optional()});function Xr(e){return _.object({items:_.array(e),hasMore:_.boolean(),next:_.string().nullable()})}function rl(e){return _.object({value:e,quantity:_.number()})}var Ht=(e=>(e.Universal="Universal",e.Windows="Windows",e.Linux="Linux",e.Mac="Mac",e))(Ht||{}),ol=_.object({name:_.string(),key:_.string(),platform:_.nativeEnum(Ht),size:_.number(),path:_.string().nullable()}),ci=_.object({id:_.string(),name:_.string(),tagline:_.string(),website:_.string().optional(),iconUrl:_.string().optional(),numberOfLicenses:_.number().optional(),numberOfTrials:_.number().optional(),currentActivations:_.number().optional(),maxActivations:_.number().optional(),currentVersion:_.string().nullable(),version:_.string().optional(),prerelease:_.boolean().optional(),downloadsNeedsUser:_.boolean(),downloadsNeedsOwnership:_.boolean(),downloads:_.array(ol).optional()}),Qr=_.object({id:_.string(),name:_.string(),tagline:_.string(),iconUrl:_.string().nullable(),website:_.string().nullish(),owned:_.boolean(),currentVersion:_.string().optional(),downloads:ol.array().optional(),defaultVariation:Cr.optional(),variations:Cr.array().optional(),type:_.void().transform(()=>"product").pipe(_.literal("product"))}),di=_.object({id:_.string(),name:_.string(),tagline:_.string(),iconUrl:_.string().nullable(),owned:_.boolean(),partial:_.boolean(),products:Qr.and(_.object({included:_.boolean().optional()})).array(),defaultVariation:Cr.optional(),variations:Cr.array().optional(),type:_.void().transform(()=>"bundle").pipe(_.literal("bundle"))}),Wf=_.object({suggestedCurrency:_.string(),products:Qr.array(),bundles:di.array()}),Zt=(e=>(e.Requested="Requested",e.Fulfilled="Fulfilled",e.Completed="Completed",e.Cancelled="Cancelled",e))(Zt||{}),Yo=_.object({id:_.string(),status:_.nativeEnum(Zt),product:Qr,trialEligibility:_.object({eligible:_.boolean(),existing:_.boolean(),requiresAccount:_.boolean(),numberOfDaysPerProduct:_.number(),numberOfDaysRemaining:_.number()}).optional(),licenseEligibility:_.object({eligible:_.boolean()}).optional()}),zf=class{constructor(e){this.api=e}async get(e){const t=await this.api.fetch(`/api/customer/activations/${e}`);return Yo.parse(t.data)}async isCompleted(e){const t=await this.api.fetch(`/api/customer/activations/${e}/completed`);return _.boolean().parse(t.data)}async fulfillLicense(e){const t=await this.api.authenticatedFetch(`/api/customer/activations/${e}/license`,"POST");return Yo.parse(t.data)}async fulfillTrial(e){const t=await this.api.fetch(`/api/customer/activations/${e}/trial`,"POST");return Yo.parse(t.data)}async cancel(e){const t=await this.api.fetch(`/api/customer/activations/${e}/cancel`,"POST");return Yo.parse(t.data)}},Kf=class extends Error{constructor(){super(),this.name="NotAuthorizedError"}},fi=class extends Error{constructor(){super(),this.name="NotAuthenticatedError"}},Pr=class extends Error{constructor(){super(),this.name="NotFoundError"}},sl=class extends Error{constructor(e,t,n,r){super(),this.title=e,this.detail=t,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=t??e}},Gf=_.object({type:_.string(),title:_.string(),detail:_.string().optional(),status:_.number(),errors:_.record(_.string(),_.string().array()).optional()});function Jf(e){return e.split(".").map((t,n)=>{let[r,...o]=t;return r=n!==0?r.toUpperCase():r.toLowerCase(),o=[o.join("").toLowerCase()],r+o[0]}).join("")}async function pi(e){if(e.status===404)throw new Pr;if(e.status===401)throw new fi;if(e.status===403)throw new Kf;let t;try{const n=await e.json();t=Gf.parse(n)}catch{throw new Error("An unknown problem occurred")}throw new sl(t.title,t.detail,t.status,t.errors?Object.fromEntries(Object.entries(t.errors).map(([n,r])=>[Jf(n),r.join(", ")])):void 0)}var Yf=_.object({countryCode:_.string(),streetAddress1:_.string(),streetAddress2:_.string().nullable(),locality:_.string().nullable(),region:_.string().nullable(),postCode:_.string()}),Xf=_.object({newsletterOptIn:_.boolean()}),il=_.object({id:_.string(),email:_.string(),name:_.string(),tenantId:_.string(),address:Yf.optional(),communicationPreferences:Xf,ownedProducts:_.string().array().optional()}),hi=il.and(_.object({accessToken:_.string(),refreshToken:_.string()})),Qf=_.object({id:_.string(),name:_.string(),email:_.string(),resetPasswordToken:_.string().nullable()}),ep=class{constructor(e,t){this.api=e,this.tokenStore=t}async get(){const e=await this.api.authenticatedFetch("/api/customer/meta/user");return il.parse(e.data)}async signIn(e,t){const n=await Jo(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${e}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});n.status>=400&&await pi(n);const r=await n.json(),o=hi.parse(r);return this.tokenStore.setUser(o),o}async signUp(e,t,n,r,o,s,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,"POST",{name:e,email:t,password:n,address:r,acceptedPrivacyPolicy:o,acceptedTermsAndConditions:s}),l=hi.parse(a.data);return this.tokenStore.setUser(l),l}async update(e,t,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity","PATCH",{name:e,email:t,emailConfirmationToken:n,communicationPreferences:r})).status===201}}async setPassword(e,t){await this.api.authenticatedFetch("/api/customer/identity/set-password","POST",{currentPassword:e,newPassword:t})}async forgotPassword(e){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(e)}`,"POST")}async resetPassword(e,t,n){const r=await Jo(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(e)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});r.status>=400&&await pi(r)}async confirmAccount(e,t){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST");return Qf.parse(n.data)}async confirmEmail(e,t){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST")}async confirmEmailChange(e,t){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,"POST")}},eo=(e=>(e.Open="Open",e.PaymentProcessing="PaymentProcessing",e.Completed="Completed",e.Failed="Failed",e))(eo||{}),tp=_.object({code:_.string(),name:_.string(),description:_.string()}),np=_.object({type:_.literal("PercentageOffDiscount"),name:_.string(),description:_.string().optional(),percentage:_.number(),total:xn.optional(),isExclusive:_.boolean()}),rp=_.object({type:_.literal("FlatAmountOffDiscount"),name:_.string(),description:_.string().optional(),total:xn.optional(),isExclusive:_.boolean()}),al=_.discriminatedUnion("type",[np,rp]),op=_.object({id:_.string(),type:_.literal("Product"),productId:_.string(),quantity:_.number(),variationId:_.string(),price:xn.optional(),variation:Cr.optional(),product:Qr.optional(),appliedDiscount:al.optional()}),sp=_.object({id:_.string(),type:_.literal("Bundle"),bundleId:_.string(),quantity:_.number(),variationId:_.string(),price:xn.optional(),variation:Cr.optional(),bundle:di.optional(),appliedDiscount:al.optional()}),ip=_.discriminatedUnion("type",[op,sp]),ll=_.object({id:_.string(),status:_.literal("Open"),currency:_.string(),items:ip.array(),couponsApplied:tp.array(),checkoutUrl:_.string().optional()}),ap=_.discriminatedUnion("status",[ll]),lp=class{constructor(e){this.api=e}async get(e){const t=await this.api.fetch(`/api/customer/orders/${e}`);return ap.parse(t.data)}async pushContent(e,t,n){const r={...ul(n)};t&&(r.checkout="true",r.returnUrl=t.returnUrl);const o=await this.api.fetch(`/api/customer/orders/${e.id}?${new URLSearchParams(r).toString()}`,"PATCH",{currency:e.currency,items:e.items});return ll.parse(o.data)}};function ul(e){return Object.entries({utm_source:e==null?void 0:e.source,utm_medium:e==null?void 0:e.medium,utm_campaign:e==null?void 0:e.campaign,utm_term:e==null?void 0:e.term,utm_content:e==null?void 0:e.content,utm_referrer:e==null?void 0:e.referrer}).filter(([t,n])=>n!==void 0).reduce((t,[n,r])=>({...t,[n]:r}),{})}var up=class{constructor(e){this.api=e}async get(e){const t=new URLSearchParams(ul(e)),n=await this.api.fetch(`/api/customer/storefront?${t.toString()}`);return Wf.parse(n.data)}},cp=class{constructor(e,t){this.baseUrl=e,this.tokenStore=t}async authenticatedFetch(e,t,n,r){if(!this.tokenStore.hasAccessToken)throw new fi;return await this.fetch(e,t,n,r)}async fetch(e,t,n,r){const o=await this.tokenStore.getAccessToken();r??(r="application/json");const s=await Jo(this.baseUrl+e,{method:t||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":r,...o?{Authorization:`Bearer ${o}`}:{},"x-mb-cors":"1"},body:n?r!=="application/json"?n:JSON.stringify(n):void 0});return s.status>=400&&await pi(s),{data:(Number(s.headers.get("Content-Length"))||0)>0?await s.json():null,headers:s.headers,status:s.status}}},cl=class Lo{constructor(t){if(this.configuration=t,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(Lo.storageKey);n&&(this.tokens=JSON.parse(n),this.tokens.expiresAt=new Date(this.tokens.expiresAt))}}get user(){return this.tokens?this.tokens:null}get hasAccessToken(){return!!this.tokens}async getAccessToken(){var t,n,r;if(this.isExpired){if(this.refreshPromise){const s=await this.refreshPromise;return(t=s==null?void 0:s.accessToken)!=null?t:null}this.refreshPromise=this.refreshTokens();const o=await this.refreshPromise;return(n=o==null?void 0:o.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(t){return t===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(Lo.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...t,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(Lo.storageKey,JSON.stringify(this.tokens)),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3),this.tokens)}get isExpired(){return this.tokens!=null&&this.tokens.expiresAt<new Date}async refreshTokens(){if(!this.tokens)throw new Error("No tokens found to refresh");const t=await Jo(`${this.configuration.endpoint}/api/customer/identity/refresh?token=${this.tokens.refreshToken}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:this.tokens.accessToken});if(t.status!==200){if(t.status===403||t.status===404)return this.setUser(null),null;throw new sl("Unexpected result",`Could not refresh access token, status code ${t.status}`,t.status)}const n=hi.parse(await t.json());return this.setUser(n)}handleStorageUpdate(t){switch(t.key){case Lo.storageKey:this.tokens=t.newValue?JSON.parse(t.newValue):null,this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.tokens&&(this.tokens.expiresAt=new Date(this.tokens.expiresAt),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3+(Math.random()+1)*60*1e3));break}}};cl.storageKey="moonbase_auth";var dp=cl,dl=_.object({id:_.string(),name:_.string(),description:_.string(),code:_.string(),redeemed:_.boolean(),redeemsProducts:rl(Qr).array(),redeemsBundles:rl(di).array()}),fp=class{constructor(e){this.api=e}async peek(e){const t=await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(e)}`);return dl.parse(t.data)}async redeem(e){const t=await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(e)}`,"POST");return dl.parse(t.data)}},fl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(fl||{}),pl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(pl||{}),mi=(e=>(e.Online="Online",e.Offline="Offline",e))(mi||{}),vi=_.object({id:_.string(),status:_.nativeEnum(fl),product:ci,activeNumberOfActivations:_.number(),maxNumberOfActivations:_.number(),createdAt:_.coerce.date()}),hl=_.object({id:_.string(),licenseId:_.string(),name:_.string(),status:_.nativeEnum(pl),activationMethod:_.nativeEnum(mi),lastValidatedAt:_.coerce.date().nullable()}),pp=class{constructor(e){this.api=e}async activate(e,t){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${t}`,"POST",e,"text/plain");return{license:vi.parse(n.data),url:_.string().parse(n.headers.get("location"))}}},hp=class{constructor(e){this.api=e}async get(e){const t=await this.api.authenticatedFetch(e||"/api/customer/inventory/licenses");return Xr(vi).parse(t.data)}async getActivations(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/licenses/${e}/activations`);return Xr(hl).parse(n.data)}async revokeActivation(e,t){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${e}/activations/${t}/revoke`,"POST")}},mp=class{constructor(e){this.api=e}async get(e,t){const n=await this.api.fetch(`/api/customer/inventory/products/${e}${t?`?version=${t}`:""}`);return ci.parse(n.data)}async getOwned(e){const t=await this.api.authenticatedFetch(e||"/api/customer/inventory/products");return Xr(ci).parse(t.data)}async getLicenses(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses`);return Xr(vi).parse(n.data)}async getActivations(e,t){const n=await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses/activations`);return Xr(hl).parse(n.data)}async getDownloadUrl(e){const t=new URL(e);t.searchParams.append("redirect","false");const n=await this.api.fetch(t.pathname+t.search);return _.object({location:_.string()}).parse(n.data).location}},vp=class{constructor(e){this.licenses=new hp(e),this.products=new mp(e),this.activation=new pp(e)}},gp=class{constructor(e){this.configuration=e,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new dp(e);const t=new cp(this.configuration.endpoint,this.tokenStore);this.storefront=new up(t),this.identity=new ep(t,this.tokenStore),this.vouchers=new fp(t),this.orders=new lp(t),this.inventory=new vp(t),this.activationRequests=new zf(t)}},ml={};/**
3
3
  * @vue/shared v3.4.38
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
5
  * @license MIT
6
- **//*! #__NO_SIDE_EFFECTS__ */function tn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Le=pl.NODE_ENV!=="production"?Object.freeze({}):{},$r=pl.NODE_ENV!=="production"?Object.freeze([]):[],We=()=>{},hp=()=>!1,to=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xo=e=>e.startsWith("onUpdate:"),qe=Object.assign,pi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},mp=Object.prototype.hasOwnProperty,Ne=(e,t)=>mp.call(e,t),ie=Array.isArray,Qn=e=>Qo(e)==="[object Map]",hl=e=>Qo(e)==="[object Set]",fe=e=>typeof e=="function",Be=e=>typeof e=="string",xn=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",hi=e=>($e(e)||fe(e))&&fe(e.then)&&fe(e.catch),ml=Object.prototype.toString,Qo=e=>ml.call(e),mi=e=>Qo(e).slice(8,-1),vl=e=>Qo(e)==="[object Object]",vi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vp=tn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gp=/-(\w)/g,Et=es(e=>e.replace(gp,(t,n)=>n?n.toUpperCase():"")),yp=/\B([A-Z])/g,nn=es(e=>e.replace(yp,"-$1").toLowerCase()),er=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),tr=es(e=>e?`on${er(e)}`:""),Tn=(e,t)=>!Object.is(e,t),ro=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ts=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},_p=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bp=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let gl;const gi=()=>gl||(gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yi(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Be(r)?Np(r):yi(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Be(e)||$e(e))return e}const wp=/;(?![^(]*\))/g,Ep=/:([^]+)/,Op=/\/\*[^]*?\*\//g;function Np(e){const t={};return e.replace(Op,"").split(wp).forEach(n=>{if(n){const r=n.split(Ep);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ns(e){let t="";if(Be(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=ns(e[n]);r&&(t+=r+" ")}else if($e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sp="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",xp="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Tp="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",kp=tn(Sp),Cp=tn(xp),Pp=tn(Tp),$p=tn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function yl(e){return!!e||e===""}const _l=e=>!!(e&&e.__v_isRef===!0),Y=e=>Be(e)?e:e==null?"":ie(e)||$e(e)&&(e.toString===ml||!fe(e.toString))?_l(e)?Y(e.value):JSON.stringify(e,bl,2):String(e),bl=(e,t)=>_l(t)?bl(e,t.value):Qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[_i(r,s)+" =>"]=o,n),{})}:hl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_i(n))}:xn(t)?_i(t):$e(t)&&!ie(t)&&!vl(t)?String(t):t,_i=(e,t="")=>{var n;return xn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};var ze={};function Ht(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ot;class wl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ot,!t&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ot;try{return Ot=this,t()}finally{Ot=n}}else ze.NODE_ENV!=="production"&&Ht("cannot run an inactive effect scope.")}on(){Ot=this}off(){Ot=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function El(e){return new wl(e)}function Ip(e,t=Ot){t&&t.active&&t.effects.push(e)}function Ol(){return Ot}function Dp(e){Ot?Ot.cleanups.push(e):ze.NODE_ENV!=="production"&&Ht("onScopeDispose() is called when there is no active effect scope to be associated with.")}let nr;class bi{constructor(t,n,r,o){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ip(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,rn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ap(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),on()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=kn,n=nr;try{return kn=!0,nr=this,this._runnings++,Nl(this),this.fn()}finally{Sl(this),this._runnings--,nr=n,kn=t}}stop(){this.active&&(Nl(this),Sl(this),this.onStop&&this.onStop(),this.active=!1)}}function Ap(e){return e.value}function Nl(e){e._trackId++,e._depsLength=0}function Sl(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)xl(e.deps[t],e);e.deps.length=e._depsLength}}function xl(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let kn=!0,wi=0;const Tl=[];function rn(){Tl.push(kn),kn=!1}function on(){const e=Tl.pop();kn=e===void 0?!0:e}function Ei(){wi++}function Oi(){for(wi--;!wi&&Ni.length;)Ni.shift()()}function kl(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&xl(o,e),e.deps[e._depsLength++]=t):e._depsLength++,ze.NODE_ENV!=="production"&&((r=e.onTrack)==null||r.call(e,qe({effect:e},n)))}}const Ni=[];function Cl(e,t,n){var r;Ei();for(const o of e.keys()){let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(ze.NODE_ENV!=="production"&&((r=o.onTrigger)==null||r.call(o,qe({effect:o},n))),o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&Ni.push(o.scheduler)))}Oi()}const Pl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},rs=new WeakMap,rr=Symbol(ze.NODE_ENV!=="production"?"iterate":""),Si=Symbol(ze.NODE_ENV!=="production"?"Map key iterate":"");function ot(e,t,n){if(kn&&nr){let r=rs.get(e);r||rs.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Pl(()=>r.delete(n))),kl(nr,o,ze.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function Zt(e,t,n,r,o,s){const i=rs.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ie(e)){const l=Number(r);i.forEach((u,c)=>{(c==="length"||!xn(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ie(e)?vi(n)&&a.push(i.get("length")):(a.push(i.get(rr)),Qn(e)&&a.push(i.get(Si)));break;case"delete":ie(e)||(a.push(i.get(rr)),Qn(e)&&a.push(i.get(Si)));break;case"set":Qn(e)&&a.push(i.get(rr));break}Ei();for(const l of a)l&&Cl(l,4,ze.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}:void 0);Oi()}function Vp(e,t){const n=rs.get(e);return n&&n.get(t)}const Rp=tn("__proto__,__v_isRef,__isVue"),$l=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xn)),Il=jp();function jp(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=me(this);for(let s=0,i=this.length;s<i;s++)ot(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(me)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){rn(),Ei();const r=me(this)[t].apply(this,n);return Oi(),on(),r}}),e}function Lp(e){xn(e)||(e=String(e));const t=me(this);return ot(t,"has",e),t.hasOwnProperty(e)}class Dl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?Zl:Hl:s?Bl:Fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ie(t);if(!o){if(i&&Ne(Il,n))return Reflect.get(Il,n,r);if(n==="hasOwnProperty")return Lp}const a=Reflect.get(t,n,r);return(xn(n)?$l.has(n):Rp(n))||(o||ot(t,"get",n),s)?a:He(a)?i&&vi(n)?a:a.value:$e(a)?o?ql(a):oo(a):a}}class Al extends Dl{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=an(s);if(!ln(r)&&!an(r)&&(s=me(s),r=me(r)),!ie(t)&&He(s)&&!He(r))return l?!1:(s.value=r,!0)}const i=ie(t)&&vi(n)?Number(n)<t.length:Ne(t,n),a=Reflect.set(t,n,r,o);return t===me(o)&&(i?Tn(r,s)&&Zt(t,"set",n,r,s):Zt(t,"add",n,r)),a}deleteProperty(t,n){const r=Ne(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Zt(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!xn(n)||!$l.has(n))&&ot(t,"has",n),r}ownKeys(t){return ot(t,"iterate",ie(t)?"length":rr),Reflect.ownKeys(t)}}class Vl extends Dl{constructor(t=!1){super(!0,t)}set(t,n){return ze.NODE_ENV!=="production"&&Ht(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return ze.NODE_ENV!=="production"&&Ht(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Mp=new Al,Up=new Vl,Fp=new Al(!0),Bp=new Vl(!0),xi=e=>e,os=e=>Reflect.getPrototypeOf(e);function ss(e,t,n=!1,r=!1){e=e.__v_raw;const o=me(e),s=me(t);n||(Tn(t,s)&&ot(o,"get",t),ot(o,"get",s));const{has:i}=os(o),a=r?xi:n?Ti:so;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function is(e,t=!1){const n=this.__v_raw,r=me(n),o=me(e);return t||(Tn(e,o)&&ot(r,"has",e),ot(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function as(e,t=!1){return e=e.__v_raw,!t&&ot(me(e),"iterate",rr),Reflect.get(e,"size",e)}function Rl(e,t=!1){!t&&!ln(e)&&!an(e)&&(e=me(e));const n=me(this);return os(n).has.call(n,e)||(n.add(e),Zt(n,"add",e,e)),this}function jl(e,t,n=!1){!n&&!ln(t)&&!an(t)&&(t=me(t));const r=me(this),{has:o,get:s}=os(r);let i=o.call(r,e);i?ze.NODE_ENV!=="production"&&Ul(r,o,e):(e=me(e),i=o.call(r,e));const a=s.call(r,e);return r.set(e,t),i?Tn(t,a)&&Zt(r,"set",e,t,a):Zt(r,"add",e,t),this}function Ll(e){const t=me(this),{has:n,get:r}=os(t);let o=n.call(t,e);o?ze.NODE_ENV!=="production"&&Ul(t,n,e):(e=me(e),o=n.call(t,e));const s=r?r.call(t,e):void 0,i=t.delete(e);return o&&Zt(t,"delete",e,void 0,s),i}function Ml(){const e=me(this),t=e.size!==0,n=ze.NODE_ENV!=="production"?Qn(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&Zt(e,"clear",void 0,void 0,n),r}function ls(e,t){return function(r,o){const s=this,i=s.__v_raw,a=me(i),l=t?xi:e?Ti:so;return!e&&ot(a,"iterate",rr),i.forEach((u,c)=>r.call(o,l(u),l(c),s))}}function us(e,t,n){return function(...r){const o=this.__v_raw,s=me(o),i=Qn(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?xi:t?Ti:so;return!t&&ot(s,"iterate",l?Si:rr),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Cn(e){return function(...t){if(ze.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Ht(`${er(e)} operation ${n}failed: target is readonly.`,me(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Hp(){const e={get(s){return ss(this,s)},get size(){return as(this)},has:is,add:Rl,set:jl,delete:Ll,clear:Ml,forEach:ls(!1,!1)},t={get(s){return ss(this,s,!1,!0)},get size(){return as(this)},has:is,add(s){return Rl.call(this,s,!0)},set(s,i){return jl.call(this,s,i,!0)},delete:Ll,clear:Ml,forEach:ls(!1,!0)},n={get(s){return ss(this,s,!0)},get size(){return as(this,!0)},has(s){return is.call(this,s,!0)},add:Cn("add"),set:Cn("set"),delete:Cn("delete"),clear:Cn("clear"),forEach:ls(!0,!1)},r={get(s){return ss(this,s,!0,!0)},get size(){return as(this,!0)},has(s){return is.call(this,s,!0)},add:Cn("add"),set:Cn("set"),delete:Cn("delete"),clear:Cn("clear"),forEach:ls(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=us(s,!1,!1),n[s]=us(s,!0,!1),t[s]=us(s,!1,!0),r[s]=us(s,!0,!0)}),[e,n,t,r]}const[Zp,qp,Wp,zp]=Hp();function cs(e,t){const n=t?e?zp:Wp:e?qp:Zp;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ne(n,o)&&o in r?n:r,o,s)}const Kp={get:cs(!1,!1)},Gp={get:cs(!1,!0)},Jp={get:cs(!0,!1)},Yp={get:cs(!0,!0)};function Ul(e,t,n){const r=me(n);if(r!==n&&t.call(e,r)){const o=mi(e);Ht(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Fl=new WeakMap,Bl=new WeakMap,Hl=new WeakMap,Zl=new WeakMap;function Xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qp(e){return e.__v_skip||!Object.isExtensible(e)?0:Xp(mi(e))}function oo(e){return an(e)?e:ds(e,!1,Mp,Kp,Fl)}function eh(e){return ds(e,!1,Fp,Gp,Bl)}function ql(e){return ds(e,!0,Up,Jp,Hl)}function qt(e){return ds(e,!0,Bp,Yp,Zl)}function ds(e,t,n,r,o){if(!$e(e))return ze.NODE_ENV!=="production"&&Ht(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Qp(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function sn(e){return an(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function fs(e){return e?!!e.__v_raw:!1}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Pn(e){return Object.isExtensible(e)&&ts(e,"__v_skip",!0),e}const so=e=>$e(e)?oo(e):e,Ti=e=>$e(e)?ql(e):e,th="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Wl{constructor(t,n,r,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new bi(()=>t(this._value),()=>ps(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=me(this);return(!t._cacheable||t.effect.dirty)&&Tn(t._value,t._value=t.effect.run())&&ps(t,4),zl(t),t.effect._dirtyLevel>=2&&(ze.NODE_ENV!=="production"&&this._warnRecursive&&Ht(th,`
6
+ **//*! #__NO_SIDE_EFFECTS__ */function rn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Me=ml.NODE_ENV!=="production"?Object.freeze({}):{},$r=ml.NODE_ENV!=="production"?Object.freeze([]):[],We=()=>{},yp=()=>!1,to=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xo=e=>e.startsWith("onUpdate:"),qe=Object.assign,gi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_p=Object.prototype.hasOwnProperty,Ne=(e,t)=>_p.call(e,t),ie=Array.isArray,er=e=>Qo(e)==="[object Map]",vl=e=>Qo(e)==="[object Set]",fe=e=>typeof e=="function",Be=e=>typeof e=="string",kn=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",yi=e=>(De(e)||fe(e))&&fe(e.then)&&fe(e.catch),gl=Object.prototype.toString,Qo=e=>gl.call(e),_i=e=>Qo(e).slice(8,-1),yl=e=>Qo(e)==="[object Object]",bi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=rn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bp=rn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wp=/-(\w)/g,Et=es(e=>e.replace(wp,(t,n)=>n?n.toUpperCase():"")),Ep=/\B([A-Z])/g,on=es(e=>e.replace(Ep,"-$1").toLowerCase()),tr=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),nr=es(e=>e?`on${tr(e)}`:""),Tn=(e,t)=>!Object.is(e,t),ro=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ts=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Op=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Np=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let _l;const wi=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ei(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Be(r)?Tp(r):Ei(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Be(e)||De(e))return e}const Sp=/;(?![^(]*\))/g,xp=/:([^]+)/,kp=/\/\*[^]*?\*\//g;function Tp(e){const t={};return e.replace(kp,"").split(Sp).forEach(n=>{if(n){const r=n.split(xp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ns(e){let t="";if(Be(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=ns(e[n]);r&&(t+=r+" ")}else if(De(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cp="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Pp="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",$p="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Ip=rn(Cp),Dp=rn(Pp),Ap=rn($p),Vp=rn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function bl(e){return!!e||e===""}const wl=e=>!!(e&&e.__v_isRef===!0),z=e=>Be(e)?e:e==null?"":ie(e)||De(e)&&(e.toString===gl||!fe(e.toString))?wl(e)?z(e.value):JSON.stringify(e,El,2):String(e),El=(e,t)=>wl(t)?El(e,t.value):er(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Oi(r,s)+" =>"]=o,n),{})}:vl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:kn(t)?Oi(t):De(t)&&!ie(t)&&!yl(t)?String(t):t,Oi=(e,t="")=>{var n;return kn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};var ze={};function qt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ot;class Ol{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ot,!t&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ot;try{return Ot=this,t()}finally{Ot=n}}else ze.NODE_ENV!=="production"&&qt("cannot run an inactive effect scope.")}on(){Ot=this}off(){Ot=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Nl(e){return new Ol(e)}function Rp(e,t=Ot){t&&t.active&&t.effects.push(e)}function Sl(){return Ot}function jp(e){Ot?Ot.cleanups.push(e):ze.NODE_ENV!=="production"&&qt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let rr;class Ni{constructor(t,n,r,o){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Rp(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,sn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Lp(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),an()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Cn,n=rr;try{return Cn=!0,rr=this,this._runnings++,xl(this),this.fn()}finally{kl(this),this._runnings--,rr=n,Cn=t}}stop(){this.active&&(xl(this),kl(this),this.onStop&&this.onStop(),this.active=!1)}}function Lp(e){return e.value}function xl(e){e._trackId++,e._depsLength=0}function kl(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Tl(e.deps[t],e);e.deps.length=e._depsLength}}function Tl(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Cn=!0,Si=0;const Cl=[];function sn(){Cl.push(Cn),Cn=!1}function an(){const e=Cl.pop();Cn=e===void 0?!0:e}function xi(){Si++}function ki(){for(Si--;!Si&&Ti.length;)Ti.shift()()}function Pl(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Tl(o,e),e.deps[e._depsLength++]=t):e._depsLength++,ze.NODE_ENV!=="production"&&((r=e.onTrack)==null||r.call(e,qe({effect:e},n)))}}const Ti=[];function $l(e,t,n){var r;xi();for(const o of e.keys()){let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(ze.NODE_ENV!=="production"&&((r=o.onTrigger)==null||r.call(o,qe({effect:o},n))),o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&Ti.push(o.scheduler)))}ki()}const Il=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},rs=new WeakMap,or=Symbol(ze.NODE_ENV!=="production"?"iterate":""),Ci=Symbol(ze.NODE_ENV!=="production"?"Map key iterate":"");function ot(e,t,n){if(Cn&&rr){let r=rs.get(e);r||rs.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Il(()=>r.delete(n))),Pl(rr,o,ze.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function Wt(e,t,n,r,o,s){const i=rs.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ie(e)){const l=Number(r);i.forEach((u,c)=>{(c==="length"||!kn(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ie(e)?bi(n)&&a.push(i.get("length")):(a.push(i.get(or)),er(e)&&a.push(i.get(Ci)));break;case"delete":ie(e)||(a.push(i.get(or)),er(e)&&a.push(i.get(Ci)));break;case"set":er(e)&&a.push(i.get(or));break}xi();for(const l of a)l&&$l(l,4,ze.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}:void 0);ki()}function Mp(e,t){const n=rs.get(e);return n&&n.get(t)}const Up=rn("__proto__,__v_isRef,__isVue"),Dl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kn)),Al=Fp();function Fp(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let s=0,i=this.length;s<i;s++)ot(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(ge)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sn(),xi();const r=ge(this)[t].apply(this,n);return ki(),an(),r}}),e}function Bp(e){kn(e)||(e=String(e));const t=ge(this);return ot(t,"has",e),t.hasOwnProperty(e)}class Vl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?Wl:ql:s?Zl:Hl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ie(t);if(!o){if(i&&Ne(Al,n))return Reflect.get(Al,n,r);if(n==="hasOwnProperty")return Bp}const a=Reflect.get(t,n,r);return(kn(n)?Dl.has(n):Up(n))||(o||ot(t,"get",n),s)?a:He(a)?i&&bi(n)?a:a.value:De(a)?o?zl(a):oo(a):a}}class Rl extends Vl{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=un(s);if(!cn(r)&&!un(r)&&(s=ge(s),r=ge(r)),!ie(t)&&He(s)&&!He(r))return l?!1:(s.value=r,!0)}const i=ie(t)&&bi(n)?Number(n)<t.length:Ne(t,n),a=Reflect.set(t,n,r,o);return t===ge(o)&&(i?Tn(r,s)&&Wt(t,"set",n,r,s):Wt(t,"add",n,r)),a}deleteProperty(t,n){const r=Ne(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Wt(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!kn(n)||!Dl.has(n))&&ot(t,"has",n),r}ownKeys(t){return ot(t,"iterate",ie(t)?"length":or),Reflect.ownKeys(t)}}class jl extends Vl{constructor(t=!1){super(!0,t)}set(t,n){return ze.NODE_ENV!=="production"&&qt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return ze.NODE_ENV!=="production"&&qt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Hp=new Rl,Zp=new jl,qp=new Rl(!0),Wp=new jl(!0),Pi=e=>e,os=e=>Reflect.getPrototypeOf(e);function ss(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),s=ge(t);n||(Tn(t,s)&&ot(o,"get",t),ot(o,"get",s));const{has:i}=os(o),a=r?Pi:n?$i:so;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function is(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(Tn(e,o)&&ot(r,"has",e),ot(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function as(e,t=!1){return e=e.__v_raw,!t&&ot(ge(e),"iterate",or),Reflect.get(e,"size",e)}function Ll(e,t=!1){!t&&!cn(e)&&!un(e)&&(e=ge(e));const n=ge(this);return os(n).has.call(n,e)||(n.add(e),Wt(n,"add",e,e)),this}function Ml(e,t,n=!1){!n&&!cn(t)&&!un(t)&&(t=ge(t));const r=ge(this),{has:o,get:s}=os(r);let i=o.call(r,e);i?ze.NODE_ENV!=="production"&&Bl(r,o,e):(e=ge(e),i=o.call(r,e));const a=s.call(r,e);return r.set(e,t),i?Tn(t,a)&&Wt(r,"set",e,t,a):Wt(r,"add",e,t),this}function Ul(e){const t=ge(this),{has:n,get:r}=os(t);let o=n.call(t,e);o?ze.NODE_ENV!=="production"&&Bl(t,n,e):(e=ge(e),o=n.call(t,e));const s=r?r.call(t,e):void 0,i=t.delete(e);return o&&Wt(t,"delete",e,void 0,s),i}function Fl(){const e=ge(this),t=e.size!==0,n=ze.NODE_ENV!=="production"?er(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&Wt(e,"clear",void 0,void 0,n),r}function ls(e,t){return function(r,o){const s=this,i=s.__v_raw,a=ge(i),l=t?Pi:e?$i:so;return!e&&ot(a,"iterate",or),i.forEach((u,c)=>r.call(o,l(u),l(c),s))}}function us(e,t,n){return function(...r){const o=this.__v_raw,s=ge(o),i=er(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?Pi:t?$i:so;return!t&&ot(s,"iterate",l?Ci:or),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Pn(e){return function(...t){if(ze.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";qt(`${tr(e)} operation ${n}failed: target is readonly.`,ge(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function zp(){const e={get(s){return ss(this,s)},get size(){return as(this)},has:is,add:Ll,set:Ml,delete:Ul,clear:Fl,forEach:ls(!1,!1)},t={get(s){return ss(this,s,!1,!0)},get size(){return as(this)},has:is,add(s){return Ll.call(this,s,!0)},set(s,i){return Ml.call(this,s,i,!0)},delete:Ul,clear:Fl,forEach:ls(!1,!0)},n={get(s){return ss(this,s,!0)},get size(){return as(this,!0)},has(s){return is.call(this,s,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:ls(!0,!1)},r={get(s){return ss(this,s,!0,!0)},get size(){return as(this,!0)},has(s){return is.call(this,s,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:ls(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=us(s,!1,!1),n[s]=us(s,!0,!1),t[s]=us(s,!1,!0),r[s]=us(s,!0,!0)}),[e,n,t,r]}const[Kp,Gp,Jp,Yp]=zp();function cs(e,t){const n=t?e?Yp:Jp:e?Gp:Kp;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ne(n,o)&&o in r?n:r,o,s)}const Xp={get:cs(!1,!1)},Qp={get:cs(!1,!0)},eh={get:cs(!0,!1)},th={get:cs(!0,!0)};function Bl(e,t,n){const r=ge(n);if(r!==n&&t.call(e,r)){const o=_i(e);qt(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Hl=new WeakMap,Zl=new WeakMap,ql=new WeakMap,Wl=new WeakMap;function nh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rh(e){return e.__v_skip||!Object.isExtensible(e)?0:nh(_i(e))}function oo(e){return un(e)?e:ds(e,!1,Hp,Xp,Hl)}function oh(e){return ds(e,!1,qp,Qp,Zl)}function zl(e){return ds(e,!0,Zp,eh,ql)}function zt(e){return ds(e,!0,Wp,th,Wl)}function ds(e,t,n,r,o){if(!De(e))return ze.NODE_ENV!=="production"&&qt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=rh(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function ln(e){return un(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function un(e){return!!(e&&e.__v_isReadonly)}function cn(e){return!!(e&&e.__v_isShallow)}function fs(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function $n(e){return Object.isExtensible(e)&&ts(e,"__v_skip",!0),e}const so=e=>De(e)?oo(e):e,$i=e=>De(e)?zl(e):e,sh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Kl{constructor(t,n,r,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ni(()=>t(this._value),()=>ps(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return(!t._cacheable||t.effect.dirty)&&Tn(t._value,t._value=t.effect.run())&&ps(t,4),Gl(t),t.effect._dirtyLevel>=2&&(ze.NODE_ENV!=="production"&&this._warnRecursive&&qt(sh,`
7
7
 
8
- getter: `,this.getter),ps(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function nh(e,t,n=!1){let r,o;const s=fe(e);s?(r=e,o=ze.NODE_ENV!=="production"?()=>{Ht("Write operation failed: computed value is readonly")}:We):(r=e.get,o=e.set);const i=new Wl(r,o,s||!o,n);return ze.NODE_ENV!=="production"&&t&&!n&&(i.effect.onTrack=t.onTrack,i.effect.onTrigger=t.onTrigger),i}function zl(e){var t;kn&&nr&&(e=me(e),kl(nr,(t=e.dep)!=null?t:e.dep=Pl(()=>e.dep=void 0,e instanceof Wl?e:void 0),ze.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function ps(e,t=4,n,r){e=me(e);const o=e.dep;o&&Cl(o,t,ze.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n,oldValue:r}:void 0)}function He(e){return!!(e&&e.__v_isRef===!0)}function P(e){return Kl(e,!1)}function rh(e){return Kl(e,!0)}function Kl(e,t){return He(e)?e:new oh(e,t)}class oh{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:so(t)}get value(){return zl(this),this._value}set value(t){const n=this.__v_isShallow||ln(t)||an(t);if(t=n?t:me(t),Tn(t,this._rawValue)){const r=this._rawValue;this._rawValue=t,this._value=n?t:so(t),ps(this,4,t,r)}}}function w(e){return He(e)?e.value:e}function sh(e){return fe(e)?e():w(e)}const ih={get:(e,t,n)=>w(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return He(o)&&!He(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Gl(e){return sn(e)?e:new Proxy(e,ih)}function Jl(e){ze.NODE_ENV!=="production"&&!fs(e)&&Ht("toRefs() expects a reactive object but received a plain one.");const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=Yl(e,n);return t}class ah{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 Vp(me(this._object),this._key)}}class lh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ki(e,t,n){return He(e)?e:fe(e)?new lh(e):$e(e)&&arguments.length>1?Yl(e,t,n):P(e)}function Yl(e,t,n){const r=e[t];return He(r)?r:new ah(e,t,n)}var m={};const or=[];function hs(e){or.push(e)}function ms(){or.pop()}let Ci=!1;function U(e,...t){if(Ci)return;Ci=!0,rn();const n=or.length?or[or.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=uh();if(r)un(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${As(n,s.type)}>`).join(`
8
+ getter: `,this.getter),ps(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ih(e,t,n=!1){let r,o;const s=fe(e);s?(r=e,o=ze.NODE_ENV!=="production"?()=>{qt("Write operation failed: computed value is readonly")}:We):(r=e.get,o=e.set);const i=new Kl(r,o,s||!o,n);return ze.NODE_ENV!=="production"&&t&&!n&&(i.effect.onTrack=t.onTrack,i.effect.onTrigger=t.onTrigger),i}function Gl(e){var t;Cn&&rr&&(e=ge(e),Pl(rr,(t=e.dep)!=null?t:e.dep=Il(()=>e.dep=void 0,e instanceof Kl?e:void 0),ze.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function ps(e,t=4,n,r){e=ge(e);const o=e.dep;o&&$l(o,t,ze.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n,oldValue:r}:void 0)}function He(e){return!!(e&&e.__v_isRef===!0)}function T(e){return Jl(e,!1)}function ah(e){return Jl(e,!0)}function Jl(e,t){return He(e)?e:new lh(e,t)}class lh{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:so(t)}get value(){return Gl(this),this._value}set value(t){const n=this.__v_isShallow||cn(t)||un(t);if(t=n?t:ge(t),Tn(t,this._rawValue)){const r=this._rawValue;this._rawValue=t,this._value=n?t:so(t),ps(this,4,t,r)}}}function b(e){return He(e)?e.value:e}function uh(e){return fe(e)?e():b(e)}const ch={get:(e,t,n)=>b(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return He(o)&&!He(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Yl(e){return ln(e)?e:new Proxy(e,ch)}function Xl(e){ze.NODE_ENV!=="production"&&!fs(e)&&qt("toRefs() expects a reactive object but received a plain one.");const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=Ql(e,n);return t}class dh{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 Mp(ge(this._object),this._key)}}class fh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ii(e,t,n){return He(e)?e:fe(e)?new fh(e):De(e)&&arguments.length>1?Ql(e,t,n):T(e)}function Ql(e,t,n){const r=e[t];return He(r)?r:new dh(e,t,n)}var g={};const sr=[];function hs(e){sr.push(e)}function ms(){sr.pop()}let Di=!1;function U(e,...t){if(Di)return;Di=!0,sn();const n=sr.length?sr[sr.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=ph();if(r)dn(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${As(n,s.type)}>`).join(`
9
9
  `),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
10
- `,...ch(o)),console.warn(...s)}on(),Ci=!1}function uh(){let e=or[or.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ch(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
11
- `],...dh(n))}),t}function dh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${As(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...fh(e.props),s]:[o+s]}function fh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Xl(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Xl(e,t,n){return Be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:He(t)?(t=Xl(e,me(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=me(t),n?t:[`${e}=`,t])}function ph(e,t){m.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?U(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&U(`${t} is NaN - the duration expression might be incorrect.`))}const Pi={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function un(e,t,n,r){try{return r?e(...r):e()}catch(o){io(o,t,n)}}function xt(e,t,n,r){if(fe(e)){const o=un(e,t,n,r);return o&&hi(o)&&o.catch(s=>{io(s,t,n)}),o}if(ie(e)){const o=[];for(let s=0;s<e.length;s++)o.push(xt(e[s],t,n,r));return o}else m.NODE_ENV!=="production"&&U(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function io(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=m.NODE_ENV!=="production"?Pi[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){rn(),un(l,null,10,[e,i,a]),on();return}}hh(e,n,o,r)}function hh(e,t,n,r=!0){if(m.NODE_ENV!=="production"){const o=Pi[t];if(n&&hs(n),U(`Unhandled error${o?` during execution of ${o}`:""}`),n&&ms(),r)throw e;console.error(e)}else console.error(e)}let ao=!1,$i=!1;const ct=[];let Wt=0;const Ir=[];let $n=null,sr=0;const Ql=Promise.resolve();let Ii=null;const mh=100;function lo(e){const t=Ii||Ql;return e?t.then(this?e.bind(this):e):t}function vh(e){let t=Wt+1,n=ct.length;for(;t<n;){const r=t+n>>>1,o=ct[r],s=uo(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}function vs(e){(!ct.length||!ct.includes(e,ao&&e.allowRecurse?Wt+1:Wt))&&(e.id==null?ct.push(e):ct.splice(vh(e.id),0,e),eu())}function eu(){!ao&&!$i&&($i=!0,Ii=Ql.then(ou))}function gh(e){const t=ct.indexOf(e);t>Wt&&ct.splice(t,1)}function tu(e){ie(e)?Ir.push(...e):(!$n||!$n.includes(e,e.allowRecurse?sr+1:sr))&&Ir.push(e),eu()}function nu(e,t,n=ao?Wt+1:0){for(m.NODE_ENV!=="production"&&(t=t||new Map);n<ct.length;n++){const r=ct[n];if(r&&r.pre){if(e&&r.id!==e.uid||m.NODE_ENV!=="production"&&Di(t,r))continue;ct.splice(n,1),n--,r()}}}function ru(e){if(Ir.length){const t=[...new Set(Ir)].sort((n,r)=>uo(n)-uo(r));if(Ir.length=0,$n){$n.push(...t);return}for($n=t,m.NODE_ENV!=="production"&&(e=e||new Map),sr=0;sr<$n.length;sr++){const n=$n[sr];m.NODE_ENV!=="production"&&Di(e,n)||n.active!==!1&&n()}$n=null,sr=0}}const uo=e=>e.id==null?1/0:e.id,yh=(e,t)=>{const n=uo(e)-uo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ou(e){$i=!1,ao=!0,m.NODE_ENV!=="production"&&(e=e||new Map),ct.sort(yh);const t=m.NODE_ENV!=="production"?n=>Di(e,n):We;try{for(Wt=0;Wt<ct.length;Wt++){const n=ct[Wt];if(n&&n.active!==!1){if(m.NODE_ENV!=="production"&&t(n))continue;un(n,n.i,n.i?15:14)}}}finally{Wt=0,ct.length=0,ru(e),ao=!1,Ii=null,(ct.length||Ir.length)&&ou(e)}}function Di(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>mh){const r=t.i,o=r&&ua(r.type);return io(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let In=!1;const gs=new Map;m.NODE_ENV!=="production"&&(gi().__VUE_HMR_RUNTIME__={createRecord:Ai(su),rerender:Ai(wh),reload:Ai(Eh)});const ir=new Map;function _h(e){const t=e.type.__hmrId;let n=ir.get(t);n||(su(t,e.type),n=ir.get(t)),n.instances.add(e)}function bh(e){ir.get(e.type.__hmrId).instances.delete(e)}function su(e,t){return ir.has(e)?!1:(ir.set(e,{initialDef:ys(t),instances:new Set}),!0)}function ys(e){return lc(e)?e.__vccOpts:e}function wh(e,t){const n=ir.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,ys(r.type).render=t),r.renderCache=[],In=!0,r.effect.dirty=!0,r.update(),In=!1}))}function Eh(e,t){const n=ir.get(e);if(!n)return;t=ys(t),iu(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=ys(s.type);let a=gs.get(i);a||(i!==n.initialDef&&iu(i,t),gs.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?(s.parent.effect.dirty=!0,vs(()=>{s.parent.update(),a.delete(s)})):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}tu(()=>{gs.clear()})}function iu(e,t){qe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ai(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let zt,co=[],Vi=!1;function fo(e,...t){zt?zt.emit(e,...t):Vi||co.push({event:e,args:t})}function au(e,t){var n,r;zt=e,zt?(zt.enabled=!0,co.forEach(({event:o,args:s})=>zt.emit(o,...s)),co=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{au(s,t)}),setTimeout(()=>{zt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vi=!0,co=[])},3e3)):(Vi=!0,co=[])}function Oh(e,t){fo("app:init",e,t,{Fragment:Te,Text:yo,Comment:Ke,Static:_o})}function Nh(e){fo("app:unmount",e)}const Sh=Ri("component:added"),lu=Ri("component:updated"),xh=Ri("component:removed"),Th=e=>{zt&&typeof zt.cleanupBuffer=="function"&&!zt.cleanupBuffer(e)&&xh(e)};/*! #__NO_SIDE_EFFECTS__ */function Ri(e){return t=>{fo(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kh=uu("perf:start"),Ch=uu("perf:end");function uu(e){return(t,n,r)=>{fo(e,t.appContext.app,t.uid,t,n,r)}}function Ph(e,t,n){fo("component:emit",e.appContext.app,e,t,n)}let Ye=null,_s=null;function bs(e){const t=Ye;return Ye=e,_s=e&&e.type.__scopeId||null,t}function $h(e){_s=e}function Ih(){_s=null}function be(e,t=Ye,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Xu(-1);const s=bs(t);let i;try{i=e(...o)}finally{bs(s),r._d&&Xu(1)}return m.NODE_ENV!=="production"&&lu(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function cu(e){vp(e)&&U("Do not use built-in directive ids as custom directive id: "+e)}function ar(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(rn(),xt(l,n,8,[e.el,a,e,t]),on())}}const Dn=Symbol("_leaveCb"),ws=Symbol("_enterCb");function Dh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Re(()=>{e.isMounted=!0}),Mi(()=>{e.isUnmounting=!0}),e}const Tt=[Function,Array],du={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},fu=e=>{const t=e.subTree;return t.component?fu(t.component):t},Ah={name:"BaseTransition",props:du,setup(e,{slots:t}){const n=$s(),r=Dh();return()=>{const o=t.default&&mu(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){let f=!1;for(const v of o)if(v.type!==Ke){if(m.NODE_ENV!=="production"&&f){U("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(s=v,f=!0,m.NODE_ENV==="production")break}}const i=me(e),{mode:a}=i;if(m.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&U(`invalid <transition> mode: ${a}`),r.isLeaving)return Li(s);const l=hu(s);if(!l)return Li(s);let u=ji(l,i,r,n,f=>u=f);Es(l,u);const c=n.subTree,d=c&&hu(c);if(d&&d.type!==Ke&&!pr(l,d)&&fu(n).type!==Ke){const f=ji(d,i,r,n);if(Es(d,f),a==="out-in"&&l.type!==Ke)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Li(s);a==="in-out"&&l.type!==Ke&&(f.delayLeave=(v,g,E)=>{const O=pu(r,d);O[String(d.key)]=d,v[Dn]=()=>{g(),v[Dn]=void 0,delete u.delayedLeave},u.delayedLeave=E})}return s}}};function pu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ji(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:v,onAfterLeave:g,onLeaveCancelled:E,onBeforeAppear:O,onAppear:L,onAfterAppear:F,onAppearCancelled:C}=t,z=String(e.key),$=pu(n,e),Z=(J,A)=>{J&&xt(J,r,9,A)},N=(J,A)=>{const k=A[1];Z(J,A),ie(J)?J.every(R=>R.length<=1)&&k():J.length<=1&&k()},de={mode:i,persisted:a,beforeEnter(J){let A=l;if(!n.isMounted)if(s)A=O||l;else return;J[Dn]&&J[Dn](!0);const k=$[z];k&&pr(e,k)&&k.el[Dn]&&k.el[Dn](),Z(A,[J])},enter(J){let A=u,k=c,R=d;if(!n.isMounted)if(s)A=L||u,k=F||c,R=C||d;else return;let oe=!1;const _=J[ws]=I=>{oe||(oe=!0,I?Z(R,[J]):Z(k,[J]),de.delayedLeave&&de.delayedLeave(),J[ws]=void 0)};A?N(A,[J,_]):_()},leave(J,A){const k=String(e.key);if(J[ws]&&J[ws](!0),n.isUnmounting)return A();Z(f,[J]);let R=!1;const oe=J[Dn]=_=>{R||(R=!0,A(),_?Z(E,[J]):Z(g,[J]),J[Dn]=void 0,$[k]===e&&delete $[k])};$[k]=e,v?N(v,[J,oe]):oe()},clone(J){const A=ji(J,t,n,r,o);return o&&o(A),A}};return de}function Li(e){if(ho(e))return e=Vt(e),e.children=null,e}function hu(e){if(!ho(e))return e;if(m.NODE_ENV!=="production"&&e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&fe(n.default))return n.default()}}function Es(e,t){e.shapeFlag&6&&e.component?Es(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 mu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Te?(i.patchFlag&128&&o++,r=r.concat(mu(i.children,t,a))):(t||i.type!==Ke)&&r.push(a!=null?Vt(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function he(e,t){return fe(e)?qe({name:e.name},t,{setup:e}):e}const po=e=>!!e.type.__asyncLoader,ho=e=>e.type.__isKeepAlive;function Vh(e,t){vu(e,"a",t)}function Rh(e,t){vu(e,"da",t)}function vu(e,t,n=Ge){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,r,n),n){let o=n.parent;for(;o&&o.parent;)ho(o.parent.vnode)&&jh(r,t,n,o),o=o.parent}}function jh(e,t,n,r){const o=Os(t,e,r,!0);mt(()=>{pi(r[t],o)},n)}function Os(e,t,n=Ge,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{rn();const a=Eo(n),l=xt(t,n,e,i);return a(),on(),l});return r?o.unshift(s):o.push(s),s}else if(m.NODE_ENV!=="production"){const o=tr(Pi[e].replace(/ hook$/,""));U(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const cn=e=>(t,n=Ge)=>{(!Ds||e==="sp")&&Os(e,(...r)=>t(...r),n)},Lh=cn("bm"),Re=cn("m"),Mh=cn("bu"),Uh=cn("u"),Mi=cn("bum"),mt=cn("um"),Fh=cn("sp"),Bh=cn("rtg"),Hh=cn("rtc");function Zh(e,t=Ge){Os("ec",e,t)}const qh="components",gu=Symbol.for("v-ndc");function yu(e){return Be(e)?Wh(qh,e,!1)||e:e||gu}function Wh(e,t,n=!0,r=!1){const o=Ye||Ge;if(o){const s=o.type;{const a=ua(s,!1);if(a&&(a===t||a===Et(t)||a===er(Et(t))))return s}const i=_u(o[e]||s[e],t)||_u(o.appContext[e],t);return!i&&r?s:(m.NODE_ENV!=="production"&&n&&!i&&U(`Failed to resolve ${e.slice(0,-1)}: ${t}
12
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else m.NODE_ENV!=="production"&&U(`resolve${er(e.slice(0,-1))} can only be used in render() or setup().`)}function _u(e,t){return e&&(e[t]||e[Et(t)]||e[er(Et(t))])}function dn(e,t,n,r){let o;const s=n;if(ie(e)||Be(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,s)}else if(typeof e=="number"){m.NODE_ENV!=="production"&&!Number.isInteger(e)&&U(`The v-for range expect an integer value but got ${e}.`),o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,s)}else if($e(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const u=i[a];o[a]=t(e[u],u,a,s)}}else o=[];return o}function Ui(e,t,n={},r,o){if(Ye.isCE||Ye.parent&&po(Ye.parent)&&Ye.parent.isCE)return B("slot",n,r);let s=e[t];m.NODE_ENV!=="production"&&s&&s.length>1&&(U("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),b();const i=s&&bu(s(n)),a=Pe(Te,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function bu(e){return e.some(t=>Dr(t)?!(t.type===Ke||t.type===Te&&!bu(t.children)):!0)?e:null}const Fi=e=>e?oc(e)?la(e):Fi(e.parent):null,lr=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>m.NODE_ENV!=="production"?qt(e.props):e.props,$attrs:e=>m.NODE_ENV!=="production"?qt(e.attrs):e.attrs,$slots:e=>m.NODE_ENV!=="production"?qt(e.slots):e.slots,$refs:e=>m.NODE_ENV!=="production"?qt(e.refs):e.refs,$parent:e=>Fi(e.parent),$root:e=>Fi(e.root),$emit:e=>e.emit,$options:e=>qi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vs(e.update)}),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>Cm.bind(e)}),Bi=e=>e==="_"||e==="$",Hi=(e,t)=>e!==Le&&!e.__isScriptSetup&&Ne(e,t),wu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(m.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Hi(r,t))return i[t]=1,r[t];if(o!==Le&&Ne(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&Ne(u,t))return i[t]=3,s[t];if(n!==Le&&Ne(n,t))return i[t]=4,n[t];Zi&&(i[t]=0)}}const c=lr[t];let d,f;if(c)return t==="$attrs"?(ot(e.attrs,"get",""),m.NODE_ENV!=="production"&&Cs()):m.NODE_ENV!=="production"&&t==="$slots"&&ot(e,"get",t),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Le&&Ne(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,Ne(f,t))return f[t];m.NODE_ENV!=="production"&&Ye&&(!Be(t)||t.indexOf("__v")!==0)&&(o!==Le&&Bi(t[0])&&Ne(o,t)?U(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Ye&&U(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Hi(o,t)?(o[t]=n,!0):m.NODE_ENV!=="production"&&o.__isScriptSetup&&Ne(o,t)?(U(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Le&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)?(m.NODE_ENV!=="production"&&U(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(m.NODE_ENV!=="production"&&U(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(m.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Le&&Ne(e,i)||Hi(t,i)||(a=s[0])&&Ne(a,i)||Ne(r,i)||Ne(lr,i)||Ne(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};m.NODE_ENV!=="production"&&(wu.ownKeys=e=>(U("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function zh(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(lr).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>lr[n](e),set:We})}),t}function Kh(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:We})})}function Gh(e){const{ctx:t,setupState:n}=e;Object.keys(me(n)).forEach(r=>{if(!n.__isScriptSetup){if(Bi(r[0])){U(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:We})}})}function Eu(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Jh(){const e=Object.create(null);return(t,n)=>{e[n]?U(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Zi=!0;function Yh(e){const t=qi(e),n=e.proxy,r=e.ctx;Zi=!1,t.beforeCreate&&Ou(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:v,updated:g,activated:E,deactivated:O,beforeDestroy:L,beforeUnmount:F,destroyed:C,unmounted:z,render:$,renderTracked:Z,renderTriggered:N,errorCaptured:de,serverPrefetch:J,expose:A,inheritAttrs:k,components:R,directives:oe,filters:_}=t,I=m.NODE_ENV!=="production"?Jh():null;if(m.NODE_ENV!=="production"){const[ae]=e.propsOptions;if(ae)for(const re in ae)I("Props",re)}if(u&&Xh(u,r,I),i)for(const ae in i){const re=i[ae];fe(re)?(m.NODE_ENV!=="production"?Object.defineProperty(r,ae,{value:re.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[ae]=re.bind(n),m.NODE_ENV!=="production"&&I("Methods",ae)):m.NODE_ENV!=="production"&&U(`Method "${ae}" has type "${typeof re}" in the component definition. Did you reference the function correctly?`)}if(o){m.NODE_ENV!=="production"&&!fe(o)&&U("The data option must be a function. Plain object usage is no longer supported.");const ae=o.call(n,n);if(m.NODE_ENV!=="production"&&hi(ae)&&U("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!$e(ae))m.NODE_ENV!=="production"&&U("data() should return an object.");else if(e.data=oo(ae),m.NODE_ENV!=="production")for(const re in ae)I("Data",re),Bi(re[0])||Object.defineProperty(r,re,{configurable:!0,enumerable:!0,get:()=>ae[re],set:We})}if(Zi=!0,s)for(const ae in s){const re=s[ae],ue=fe(re)?re.bind(n,n):fe(re.get)?re.get.bind(n,n):We;m.NODE_ENV!=="production"&&ue===We&&U(`Computed property "${ae}" has no getter.`);const Ce=!fe(re)&&fe(re.set)?re.set.bind(n):m.NODE_ENV!=="production"?()=>{U(`Write operation failed: computed property "${ae}" is readonly.`)}:We,Ve=X({get:ue,set:Ce});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:nt=>Ve.value=nt}),m.NODE_ENV!=="production"&&I("Computed",ae)}if(a)for(const ae in a)Nu(a[ae],r,n,ae);if(l){const ae=fe(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(re=>{dt(re,ae[re])})}c&&Ou(c,e,"c");function ne(ae,re){ie(re)?re.forEach(ue=>ae(ue.bind(n))):re&&ae(re.bind(n))}if(ne(Lh,d),ne(Re,f),ne(Mh,v),ne(Uh,g),ne(Vh,E),ne(Rh,O),ne(Zh,de),ne(Hh,Z),ne(Bh,N),ne(Mi,F),ne(mt,z),ne(Fh,J),ie(A))if(A.length){const ae=e.exposed||(e.exposed={});A.forEach(re=>{Object.defineProperty(ae,re,{get:()=>n[re],set:ue=>n[re]=ue})})}else e.exposed||(e.exposed={});$&&e.render===We&&(e.render=$),k!=null&&(e.inheritAttrs=k),R&&(e.components=R),oe&&(e.directives=oe)}function Xh(e,t,n=We){ie(e)&&(e=Wi(e));for(const r in e){const o=e[r];let s;$e(o)?"default"in o?s=ke(o.from||r,o.default,!0):s=ke(o.from||r):s=ke(o),He(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,m.NODE_ENV!=="production"&&n("Inject",r)}}function Ou(e,t,n){xt(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nu(e,t,n,r){const o=r.includes(".")?zu(n,r):()=>n[r];if(Be(e)){const s=t[e];fe(s)?Xe(o,s):m.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e}"`,s)}else if(fe(e))Xe(o,e.bind(n));else if($e(e))if(ie(e))e.forEach(s=>Nu(s,t,n,r));else{const s=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(s)?Xe(o,s,e):m.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e.handler}"`,s)}else m.NODE_ENV!=="production"&&U(`Invalid watch option: "${r}"`,e)}function qi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>Ns(l,u,i,!0)),Ns(l,t,i)),$e(t)&&s.set(t,l),l}function Ns(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Ns(e,s,n,!0),o&&o.forEach(i=>Ns(e,i,n,!0));for(const i in t)if(r&&i==="expose")m.NODE_ENV!=="production"&&U('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Qh[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Qh={data:Su,props:xu,emits:xu,methods:mo,computed:mo,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:mo,directives:mo,watch:tm,provide:Su,inject:em};function Su(e,t){return t?e?function(){return qe(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function em(e,t){return mo(Wi(e),Wi(t))}function Wi(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function mo(e,t){return e?qe(Object.create(null),e,t):t}function xu(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:qe(Object.create(null),Eu(e),Eu(t??{})):t}function tm(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=vt(e[r],t[r]);return n}function Tu(){return{app:null,config:{isNativeTag:hp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let nm=0;function rm(e,t){return function(r,o=null){fe(r)||(r=qe({},r)),o!=null&&!$e(o)&&(m.NODE_ENV!=="production"&&U("root props passed to app.mount() must be an object."),o=null);const s=Tu(),i=new WeakSet;let a=!1;const l=s.app={_uid:nm++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:uc,get config(){return s.config},set config(u){m.NODE_ENV!=="production"&&U("app.config cannot be replaced. Modify individual options instead.")},use(u,...c){return i.has(u)?m.NODE_ENV!=="production"&&U("Plugin has already been applied to target app."):u&&fe(u.install)?(i.add(u),u.install(l,...c)):fe(u)?(i.add(u),u(l,...c)):m.NODE_ENV!=="production"&&U('A plugin must either be a function or an object with an "install" function.'),l},mixin(u){return s.mixins.includes(u)?m.NODE_ENV!=="production"&&U("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):s.mixins.push(u),l},component(u,c){return m.NODE_ENV!=="production"&&ia(u,s.config),c?(m.NODE_ENV!=="production"&&s.components[u]&&U(`Component "${u}" has already been registered in target app.`),s.components[u]=c,l):s.components[u]},directive(u,c){return m.NODE_ENV!=="production"&&cu(u),c?(m.NODE_ENV!=="production"&&s.directives[u]&&U(`Directive "${u}" has already been registered in target app.`),s.directives[u]=c,l):s.directives[u]},mount(u,c,d){if(a)m.NODE_ENV!=="production"&&U("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{m.NODE_ENV!=="production"&&u.__vue_app__&&U("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=B(r,o);return f.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),m.NODE_ENV!=="production"&&(s.reload=()=>{e(Vt(f),u,d)}),c&&t?t(f,u):e(f,u,d),a=!0,l._container=u,u.__vue_app__=l,m.NODE_ENV!=="production"&&(l._instance=f.component,Oh(l,uc)),la(f.component)}},unmount(){a?(e(null,l._container),m.NODE_ENV!=="production"&&(l._instance=null,Nh(l)),delete l._container.__vue_app__):m.NODE_ENV!=="production"&&U("Cannot unmount an app that is not mounted.")},provide(u,c){return m.NODE_ENV!=="production"&&u in s.provides&&U(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),s.provides[u]=c,l},runWithContext(u){const c=ur;ur=l;try{return u()}finally{ur=c}}};return l}}let ur=null;function dt(e,t){if(!Ge)m.NODE_ENV!=="production"&&U("provide() can only be used inside setup().");else{let n=Ge.provides;const r=Ge.parent&&Ge.parent.provides;r===n&&(n=Ge.provides=Object.create(r)),n[e]=t}}function ke(e,t,n=!1){const r=Ge||Ye;if(r||ur){const o=ur?ur._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&fe(t)?t.call(r&&r.proxy):t;m.NODE_ENV!=="production"&&U(`injection "${String(e)}" not found.`)}else m.NODE_ENV!=="production"&&U("inject() can only be used inside setup() or functional components.")}function om(){return!!(Ge||Ye||ur)}const ku={},Cu=()=>Object.create(ku),Pu=e=>Object.getPrototypeOf(e)===ku;function sm(e,t,n,r=!1){const o={},s=Cu();e.propsDefaults=Object.create(null),$u(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);m.NODE_ENV!=="production"&&Au(t||{},o,e),n?e.props=r?o:eh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function im(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function am(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=me(o),[l]=e.propsOptions;let u=!1;if(!(m.NODE_ENV!=="production"&&im(e))&&(r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(ks(e.emitsOptions,f))continue;const v=t[f];if(l)if(Ne(s,f))v!==s[f]&&(s[f]=v,u=!0);else{const g=Et(f);o[g]=zi(l,a,g,v,e,!1)}else v!==s[f]&&(s[f]=v,u=!0)}}}else{$u(e,t,o,s)&&(u=!0);let c;for(const d in a)(!t||!Ne(t,d)&&((c=nn(d))===d||!Ne(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=zi(l,a,d,void 0,e,!0)):delete o[d]);if(s!==a)for(const d in s)(!t||!Ne(t,d))&&(delete s[d],u=!0)}u&&Zt(e.attrs,"set",""),m.NODE_ENV!=="production"&&Au(t||{},o,e)}function $u(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(no(l))continue;const u=t[l];let c;o&&Ne(o,c=Et(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:ks(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=me(n),u=a||Le;for(let c=0;c<s.length;c++){const d=s[c];n[d]=zi(o,l,d,u[d],e,!Ne(u,d))}}return i}function zi(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=Ne(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&fe(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=Eo(o);r=u[n]=l.call(null,t),c()}}else r=l}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===nn(n))&&(r=!0))}return r}const lm=new WeakMap;function Iu(e,t,n=!1){const r=n?lm:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!fe(e)){const c=d=>{l=!0;const[f,v]=Iu(d,t,!0);qe(i,f),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return $e(e)&&r.set(e,$r),$r;if(ie(s))for(let c=0;c<s.length;c++){m.NODE_ENV!=="production"&&!Be(s[c])&&U("props must be strings when using array syntax.",s[c]);const d=Et(s[c]);Du(d)&&(i[d]=Le)}else if(s){m.NODE_ENV!=="production"&&!$e(s)&&U("invalid props options",s);for(const c in s){const d=Et(c);if(Du(d)){const f=s[c],v=i[d]=ie(f)||fe(f)?{type:f}:qe({},f),g=v.type;let E=!1,O=!0;if(ie(g))for(let L=0;L<g.length;++L){const F=g[L],C=fe(F)&&F.name;if(C==="Boolean"){E=!0;break}else C==="String"&&(O=!1)}else E=fe(g)&&g.name==="Boolean";v[0]=E,v[1]=O,(E||Ne(v,"default"))&&a.push(d)}}}const u=[i,a];return $e(e)&&r.set(e,u),u}function Du(e){return e[0]!=="$"&&!no(e)?!0:(m.NODE_ENV!=="production"&&U(`Invalid prop name: "${e}" is a reserved property.`),!1)}function um(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Au(e,t,n){const r=me(t),o=n.propsOptions[0];for(const s in o){let i=o[s];i!=null&&cm(s,r[s],i,m.NODE_ENV!=="production"?qt(r):r,!Ne(e,s)&&!Ne(e,nn(s)))}}function cm(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){U('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let u=!1;const c=ie(s)?s:[s],d=[];for(let f=0;f<c.length&&!u;f++){const{valid:v,expectedType:g}=fm(t,c[f]);d.push(g||""),u=v}if(!u){U(pm(e,t,d));return}}a&&!a(t,r)&&U('Invalid prop: custom validator check failed for prop "'+e+'".')}}const dm=tn("String,Number,Boolean,Function,Symbol,BigInt");function fm(e,t){let n;const r=um(t);if(dm(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=$e(e):r==="Array"?n=ie(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function pm(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(er).join(" | ")}`;const o=n[0],s=mi(t),i=Vu(t,o),a=Vu(t,s);return n.length===1&&Ru(o)&&!hm(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,Ru(s)&&(r+=`with value ${a}.`),r}function Vu(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Ru(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function hm(...e){return e.some(t=>t.toLowerCase()==="boolean")}const ju=e=>e[0]==="_"||e==="$stable",Ki=e=>ie(e)?e.map(Rt):[Rt(e)],mm=(e,t,n)=>{if(t._n)return t;const r=be((...o)=>(m.NODE_ENV!=="production"&&Ge&&(!n||n.root===Ge.root)&&U(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Ki(t(...o))),n);return r._c=!1,r},Lu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ju(o))continue;const s=e[o];if(fe(s))t[o]=mm(o,s,r);else if(s!=null){m.NODE_ENV!=="production"&&U(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Ki(s);t[o]=()=>i}}},Mu=(e,t)=>{m.NODE_ENV!=="production"&&!ho(e.vnode)&&U("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Ki(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},vm=(e,t,n)=>{const r=e.slots=Cu();if(e.vnode.shapeFlag&32){const o=t._;o?(Gi(r,t,n),n&&ts(r,"_",o,!0)):Lu(t,r)}else t&&Mu(e,t)},gm=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Le;if(r.shapeFlag&32){const a=t._;a?m.NODE_ENV!=="production"&&In?(Gi(o,t,n),Zt(e,"set","$slots")):n&&a===1?s=!1:Gi(o,t,n):(s=!t.$stable,Lu(t,o)),i=t}else t&&(Mu(e,t),i={default:1});if(s)for(const a in o)!ju(a)&&i[a]==null&&delete o[a]};function Ji(e,t,n,r,o=!1){if(ie(e)){e.forEach((f,v)=>Ji(f,t&&(ie(t)?t[v]:t),n,r,o));return}if(po(r)&&!o)return;const s=r.shapeFlag&4?la(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(m.NODE_ENV!=="production"&&!a){U("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=a.refs===Le?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Be(u)?(c[u]=null,Ne(d,u)&&(d[u]=null)):He(u)&&(u.value=null)),fe(l))un(l,a,12,[i,c]);else{const f=Be(l),v=He(l);if(f||v){const g=()=>{if(e.f){const E=f?Ne(d,l)?d[l]:c[l]:l.value;o?ie(E)&&pi(E,s):ie(E)?E.includes(s)||E.push(s):f?(c[l]=[s],Ne(d,l)&&(d[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else f?(c[l]=i,Ne(d,l)&&(d[l]=i)):v?(l.value=i,e.k&&(c[e.k]=i)):m.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)};i?(g.id=-1,_t(g,n)):g()}else m.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)}}const Uu=Symbol("_vte"),ym=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),Fu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Bu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yi=(e,t)=>{const n=e&&e.to;if(Be(n))if(t){const r=t(n);return m.NODE_ENV!=="production"&&!r&&!cr(e)&&U(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return m.NODE_ENV!=="production"&&U("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return m.NODE_ENV!=="production"&&!n&&!cr(e)&&U(`Invalid Teleport target: ${n}`),n},_m={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:v,querySelector:g,createText:E,createComment:O}}=u,L=cr(t.props);let{shapeFlag:F,children:C,dynamicChildren:z}=t;if(m.NODE_ENV!=="production"&&In&&(l=!1,z=null),e==null){const $=t.el=m.NODE_ENV!=="production"?O("teleport start"):E(""),Z=t.anchor=m.NODE_ENV!=="production"?O("teleport end"):E("");v($,n,r),v(Z,n,r);const N=t.target=Yi(t.props,g),de=Zu(N,t,E,v);N?i==="svg"||Fu(N)?i="svg":(i==="mathml"||Bu(N))&&(i="mathml"):m.NODE_ENV!=="production"&&!L&&U("Invalid Teleport target on mount:",N,`(${typeof N})`);const J=(A,k)=>{F&16&&c(C,A,k,o,s,i,a,l)};L?J(n,Z):N&&J(N,de)}else{t.el=e.el,t.targetStart=e.targetStart;const $=t.anchor=e.anchor,Z=t.target=e.target,N=t.targetAnchor=e.targetAnchor,de=cr(e.props),J=de?n:Z,A=de?$:N;if(i==="svg"||Fu(Z)?i="svg":(i==="mathml"||Bu(Z))&&(i="mathml"),z?(f(e.dynamicChildren,z,J,o,s,i,a),go(e,t,!0)):l||d(e,t,J,A,o,s,i,a,!1),L)de?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ss(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=Yi(t.props,g);k?Ss(t,k,null,u,0):m.NODE_ENV!=="production"&&U("Invalid Teleport target on update:",Z,`(${typeof Z})`)}else de&&Ss(t,Z,N,u,1)}Hu(t)},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(o(u),o(c)),s&&o(l),i&16){const v=s||!cr(f);for(let g=0;g<a.length;g++){const E=a[g];r(E,t,n,v,!!E.dynamicChildren)}}},move:Ss,hydrate:bm};function Ss(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(i,t,n),(!d||cr(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);d&&r(a,t,n)}function bm(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},d){const f=t.target=Yi(t.props,l);if(f){const v=f._lpa||f.firstChild;if(t.shapeFlag&16)if(cr(t.props))t.anchor=d(i(e),t,a(e),n,r,o,s),t.targetStart=v,t.targetAnchor=v&&i(v);else{t.anchor=i(e);let g=v;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||Zu(f,t,c,u),d(v&&i(v),t,f,n,r,o,s)}Hu(t)}return t.anchor&&i(t.anchor)}const wm=_m;function Hu(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function Zu(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[Uu]=s,e&&(r(o,e),r(s,e)),s}let vo,An;function fn(e,t){e.appContext.config.performance&&xs()&&An.mark(`vue-${t}-${e.uid}`),m.NODE_ENV!=="production"&&kh(e,t,xs()?An.now():Date.now())}function pn(e,t){if(e.appContext.config.performance&&xs()){const n=`vue-${t}-${e.uid}`,r=n+":end";An.mark(r),An.measure(`<${As(e,e.type)}> ${t}`,n,r),An.clearMarks(n),An.clearMarks(r)}m.NODE_ENV!=="production"&&Ch(e,t,xs()?An.now():Date.now())}function xs(){return vo!==void 0||(typeof window<"u"&&window.performance?(vo=!0,An=window.performance):vo=!1),vo}function Em(){const e=[];if(m.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
10
+ `,...hh(o)),console.warn(...s)}an(),Di=!1}function ph(){let e=sr[sr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function hh(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
11
+ `],...mh(n))}),t}function mh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${As(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...vh(e.props),s]:[o+s]}function vh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...eu(r,e[r]))}),n.length>3&&t.push(" ..."),t}function eu(e,t,n){return Be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:He(t)?(t=eu(e,ge(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ge(t),n?t:[`${e}=`,t])}function gh(e,t){g.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?U(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&U(`${t} is NaN - the duration expression might be incorrect.`))}const Ai={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function dn(e,t,n,r){try{return r?e(...r):e()}catch(o){io(o,t,n)}}function kt(e,t,n,r){if(fe(e)){const o=dn(e,t,n,r);return o&&yi(o)&&o.catch(s=>{io(s,t,n)}),o}if(ie(e)){const o=[];for(let s=0;s<e.length;s++)o.push(kt(e[s],t,n,r));return o}else g.NODE_ENV!=="production"&&U(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function io(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=g.NODE_ENV!=="production"?Ai[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){sn(),dn(l,null,10,[e,i,a]),an();return}}yh(e,n,o,r)}function yh(e,t,n,r=!0){if(g.NODE_ENV!=="production"){const o=Ai[t];if(n&&hs(n),U(`Unhandled error${o?` during execution of ${o}`:""}`),n&&ms(),r)throw e;console.error(e)}else console.error(e)}let ao=!1,Vi=!1;const ct=[];let Kt=0;const Ir=[];let In=null,ir=0;const tu=Promise.resolve();let Ri=null;const _h=100;function lo(e){const t=Ri||tu;return e?t.then(this?e.bind(this):e):t}function bh(e){let t=Kt+1,n=ct.length;for(;t<n;){const r=t+n>>>1,o=ct[r],s=uo(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}function vs(e){(!ct.length||!ct.includes(e,ao&&e.allowRecurse?Kt+1:Kt))&&(e.id==null?ct.push(e):ct.splice(bh(e.id),0,e),nu())}function nu(){!ao&&!Vi&&(Vi=!0,Ri=tu.then(iu))}function wh(e){const t=ct.indexOf(e);t>Kt&&ct.splice(t,1)}function ru(e){ie(e)?Ir.push(...e):(!In||!In.includes(e,e.allowRecurse?ir+1:ir))&&Ir.push(e),nu()}function ou(e,t,n=ao?Kt+1:0){for(g.NODE_ENV!=="production"&&(t=t||new Map);n<ct.length;n++){const r=ct[n];if(r&&r.pre){if(e&&r.id!==e.uid||g.NODE_ENV!=="production"&&ji(t,r))continue;ct.splice(n,1),n--,r()}}}function su(e){if(Ir.length){const t=[...new Set(Ir)].sort((n,r)=>uo(n)-uo(r));if(Ir.length=0,In){In.push(...t);return}for(In=t,g.NODE_ENV!=="production"&&(e=e||new Map),ir=0;ir<In.length;ir++){const n=In[ir];g.NODE_ENV!=="production"&&ji(e,n)||n.active!==!1&&n()}In=null,ir=0}}const uo=e=>e.id==null?1/0:e.id,Eh=(e,t)=>{const n=uo(e)-uo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function iu(e){Vi=!1,ao=!0,g.NODE_ENV!=="production"&&(e=e||new Map),ct.sort(Eh);const t=g.NODE_ENV!=="production"?n=>ji(e,n):We;try{for(Kt=0;Kt<ct.length;Kt++){const n=ct[Kt];if(n&&n.active!==!1){if(g.NODE_ENV!=="production"&&t(n))continue;dn(n,n.i,n.i?15:14)}}}finally{Kt=0,ct.length=0,su(e),ao=!1,Ri=null,(ct.length||Ir.length)&&iu(e)}}function ji(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>_h){const r=t.i,o=r&&ha(r.type);return io(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let Dn=!1;const gs=new Map;g.NODE_ENV!=="production"&&(wi().__VUE_HMR_RUNTIME__={createRecord:Li(au),rerender:Li(Sh),reload:Li(xh)});const ar=new Map;function Oh(e){const t=e.type.__hmrId;let n=ar.get(t);n||(au(t,e.type),n=ar.get(t)),n.instances.add(e)}function Nh(e){ar.get(e.type.__hmrId).instances.delete(e)}function au(e,t){return ar.has(e)?!1:(ar.set(e,{initialDef:ys(t),instances:new Set}),!0)}function ys(e){return uc(e)?e.__vccOpts:e}function Sh(e,t){const n=ar.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,ys(r.type).render=t),r.renderCache=[],Dn=!0,r.effect.dirty=!0,r.update(),Dn=!1}))}function xh(e,t){const n=ar.get(e);if(!n)return;t=ys(t),lu(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=ys(s.type);let a=gs.get(i);a||(i!==n.initialDef&&lu(i,t),gs.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?(s.parent.effect.dirty=!0,vs(()=>{s.parent.update(),a.delete(s)})):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ru(()=>{gs.clear()})}function lu(e,t){qe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Li(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Gt,co=[],Mi=!1;function fo(e,...t){Gt?Gt.emit(e,...t):Mi||co.push({event:e,args:t})}function uu(e,t){var n,r;Gt=e,Gt?(Gt.enabled=!0,co.forEach(({event:o,args:s})=>Gt.emit(o,...s)),co=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{uu(s,t)}),setTimeout(()=>{Gt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Mi=!0,co=[])},3e3)):(Mi=!0,co=[])}function kh(e,t){fo("app:init",e,t,{Fragment:ke,Text:yo,Comment:Ke,Static:_o})}function Th(e){fo("app:unmount",e)}const Ch=Ui("component:added"),cu=Ui("component:updated"),Ph=Ui("component:removed"),$h=e=>{Gt&&typeof Gt.cleanupBuffer=="function"&&!Gt.cleanupBuffer(e)&&Ph(e)};/*! #__NO_SIDE_EFFECTS__ */function Ui(e){return t=>{fo(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Ih=du("perf:start"),Dh=du("perf:end");function du(e){return(t,n,r)=>{fo(e,t.appContext.app,t.uid,t,n,r)}}function Ah(e,t,n){fo("component:emit",e.appContext.app,e,t,n)}let Ye=null,_s=null;function bs(e){const t=Ye;return Ye=e,_s=e&&e.type.__scopeId||null,t}function Vh(e){_s=e}function Rh(){_s=null}function ye(e,t=Ye,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Qu(-1);const s=bs(t);let i;try{i=e(...o)}finally{bs(s),r._d&&Qu(1)}return g.NODE_ENV!=="production"&&cu(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function fu(e){bp(e)&&U("Do not use built-in directive ids as custom directive id: "+e)}function lr(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(sn(),kt(l,n,8,[e.el,a,e,t]),an())}}const An=Symbol("_leaveCb"),ws=Symbol("_enterCb");function jh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ve(()=>{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}const Tt=[Function,Array],pu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},hu=e=>{const t=e.subTree;return t.component?hu(t.component):t},Lh={name:"BaseTransition",props:pu,setup(e,{slots:t}){const n=$s(),r=jh();return()=>{const o=t.default&&gu(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){let f=!1;for(const m of o)if(m.type!==Ke){if(g.NODE_ENV!=="production"&&f){U("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(s=m,f=!0,g.NODE_ENV==="production")break}}const i=ge(e),{mode:a}=i;if(g.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&U(`invalid <transition> mode: ${a}`),r.isLeaving)return Bi(s);const l=vu(s);if(!l)return Bi(s);let u=Fi(l,i,r,n,f=>u=f);Es(l,u);const c=n.subTree,d=c&&vu(c);if(d&&d.type!==Ke&&!hr(l,d)&&hu(n).type!==Ke){const f=Fi(d,i,r,n);if(Es(d,f),a==="out-in"&&l.type!==Ke)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Bi(s);a==="in-out"&&l.type!==Ke&&(f.delayLeave=(m,v,N)=>{const S=mu(r,d);S[String(d.key)]=d,m[An]=()=>{v(),m[An]=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function mu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Fi(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:v,onLeaveCancelled:N,onBeforeAppear:S,onAppear:D,onAfterAppear:B,onAppearCancelled:P}=t,K=String(e.key),$=mu(n,e),Z=(Y,V)=>{Y&&kt(Y,r,9,V)},x=(Y,V)=>{const C=V[1];Z(Y,V),ie(Y)?Y.every(j=>j.length<=1)&&C():Y.length<=1&&C()},de={mode:i,persisted:a,beforeEnter(Y){let V=l;if(!n.isMounted)if(s)V=S||l;else return;Y[An]&&Y[An](!0);const C=$[K];C&&hr(e,C)&&C.el[An]&&C.el[An](),Z(V,[Y])},enter(Y){let V=u,C=c,j=d;if(!n.isMounted)if(s)V=D||u,C=B||c,j=P||d;else return;let oe=!1;const w=Y[ws]=I=>{oe||(oe=!0,I?Z(j,[Y]):Z(C,[Y]),de.delayedLeave&&de.delayedLeave(),Y[ws]=void 0)};V?x(V,[Y,w]):w()},leave(Y,V){const C=String(e.key);if(Y[ws]&&Y[ws](!0),n.isUnmounting)return V();Z(f,[Y]);let j=!1;const oe=Y[An]=w=>{j||(j=!0,V(),w?Z(N,[Y]):Z(v,[Y]),Y[An]=void 0,$[C]===e&&delete $[C])};$[C]=e,m?x(m,[Y,oe]):oe()},clone(Y){const V=Fi(Y,t,n,r,o);return o&&o(V),V}};return de}function Bi(e){if(ho(e))return e=Rt(e),e.children=null,e}function vu(e){if(!ho(e))return e;if(g.NODE_ENV!=="production"&&e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&fe(n.default))return n.default()}}function Es(e,t){e.shapeFlag&6&&e.component?Es(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 gu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ke?(i.patchFlag&128&&o++,r=r.concat(gu(i.children,t,a))):(t||i.type!==Ke)&&r.push(a!=null?Rt(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function pe(e,t){return fe(e)?qe({name:e.name},t,{setup:e}):e}const po=e=>!!e.type.__asyncLoader,ho=e=>e.type.__isKeepAlive;function Mh(e,t){yu(e,"a",t)}function Uh(e,t){yu(e,"da",t)}function yu(e,t,n=Ge){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Os(t,r,n),n){let o=n.parent;for(;o&&o.parent;)ho(o.parent.vnode)&&Fh(r,t,n,o),o=o.parent}}function Fh(e,t,n,r){const o=Os(t,e,r,!0);mt(()=>{gi(r[t],o)},n)}function Os(e,t,n=Ge,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{sn();const a=Eo(n),l=kt(t,n,e,i);return a(),an(),l});return r?o.unshift(s):o.push(s),s}else if(g.NODE_ENV!=="production"){const o=nr(Ai[e].replace(/ hook$/,""));U(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const fn=e=>(t,n=Ge)=>{(!Ds||e==="sp")&&Os(e,(...r)=>t(...r),n)},Bh=fn("bm"),Ve=fn("m"),Hh=fn("bu"),Zh=fn("u"),Hi=fn("bum"),mt=fn("um"),qh=fn("sp"),Wh=fn("rtg"),zh=fn("rtc");function Kh(e,t=Ge){Os("ec",e,t)}const Gh="components",_u=Symbol.for("v-ndc");function Zi(e){return Be(e)?Jh(Gh,e,!1)||e:e||_u}function Jh(e,t,n=!0,r=!1){const o=Ye||Ge;if(o){const s=o.type;{const a=ha(s,!1);if(a&&(a===t||a===Et(t)||a===tr(Et(t))))return s}const i=bu(o[e]||s[e],t)||bu(o.appContext[e],t);return!i&&r?s:(g.NODE_ENV!=="production"&&n&&!i&&U(`Failed to resolve ${e.slice(0,-1)}: ${t}
12
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else g.NODE_ENV!=="production"&&U(`resolve${tr(e.slice(0,-1))} can only be used in render() or setup().`)}function bu(e,t){return e&&(e[t]||e[Et(t)]||e[tr(Et(t))])}function Jt(e,t,n,r){let o;const s=n;if(ie(e)||Be(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,s)}else if(typeof e=="number"){g.NODE_ENV!=="production"&&!Number.isInteger(e)&&U(`The v-for range expect an integer value but got ${e}.`),o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,s)}else if(De(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const u=i[a];o[a]=t(e[u],u,a,s)}}else o=[];return o}function qi(e,t,n={},r,o){if(Ye.isCE||Ye.parent&&po(Ye.parent)&&Ye.parent.isCE)return F("slot",n,r);let s=e[t];g.NODE_ENV!=="production"&&s&&s.length>1&&(U("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),y();const i=s&&wu(s(n)),a=xe(ke,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function wu(e){return e.some(t=>Dr(t)?!(t.type===Ke||t.type===ke&&!wu(t.children)):!0)?e:null}const Wi=e=>e?sc(e)?pa(e):Wi(e.parent):null,ur=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>g.NODE_ENV!=="production"?zt(e.props):e.props,$attrs:e=>g.NODE_ENV!=="production"?zt(e.attrs):e.attrs,$slots:e=>g.NODE_ENV!=="production"?zt(e.slots):e.slots,$refs:e=>g.NODE_ENV!=="production"?zt(e.refs):e.refs,$parent:e=>Wi(e.parent),$root:e=>Wi(e.root),$emit:e=>e.emit,$options:e=>Ji(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vs(e.update)}),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>Dm.bind(e)}),zi=e=>e==="_"||e==="$",Ki=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ne(e,t),Eu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(g.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Ki(r,t))return i[t]=1,r[t];if(o!==Me&&Ne(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&Ne(u,t))return i[t]=3,s[t];if(n!==Me&&Ne(n,t))return i[t]=4,n[t];Gi&&(i[t]=0)}}const c=ur[t];let d,f;if(c)return t==="$attrs"?(ot(e.attrs,"get",""),g.NODE_ENV!=="production"&&Cs()):g.NODE_ENV!=="production"&&t==="$slots"&&ot(e,"get",t),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Me&&Ne(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,Ne(f,t))return f[t];g.NODE_ENV!=="production"&&Ye&&(!Be(t)||t.indexOf("__v")!==0)&&(o!==Me&&zi(t[0])&&Ne(o,t)?U(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Ye&&U(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Ki(o,t)?(o[t]=n,!0):g.NODE_ENV!=="production"&&o.__isScriptSetup&&Ne(o,t)?(U(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Me&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)?(g.NODE_ENV!=="production"&&U(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(g.NODE_ENV!=="production"&&U(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(g.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Me&&Ne(e,i)||Ki(t,i)||(a=s[0])&&Ne(a,i)||Ne(r,i)||Ne(ur,i)||Ne(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};g.NODE_ENV!=="production"&&(Eu.ownKeys=e=>(U("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Yh(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ur).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ur[n](e),set:We})}),t}function Xh(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:We})})}function Qh(e){const{ctx:t,setupState:n}=e;Object.keys(ge(n)).forEach(r=>{if(!n.__isScriptSetup){if(zi(r[0])){U(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:We})}})}function Ou(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function em(){const e=Object.create(null);return(t,n)=>{e[n]?U(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Gi=!0;function tm(e){const t=Ji(e),n=e.proxy,r=e.ctx;Gi=!1,t.beforeCreate&&Nu(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:m,updated:v,activated:N,deactivated:S,beforeDestroy:D,beforeUnmount:B,destroyed:P,unmounted:K,render:$,renderTracked:Z,renderTriggered:x,errorCaptured:de,serverPrefetch:Y,expose:V,inheritAttrs:C,components:j,directives:oe,filters:w}=t,I=g.NODE_ENV!=="production"?em():null;if(g.NODE_ENV!=="production"){const[ae]=e.propsOptions;if(ae)for(const re in ae)I("Props",re)}if(u&&nm(u,r,I),i)for(const ae in i){const re=i[ae];fe(re)?(g.NODE_ENV!=="production"?Object.defineProperty(r,ae,{value:re.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[ae]=re.bind(n),g.NODE_ENV!=="production"&&I("Methods",ae)):g.NODE_ENV!=="production"&&U(`Method "${ae}" has type "${typeof re}" in the component definition. Did you reference the function correctly?`)}if(o){g.NODE_ENV!=="production"&&!fe(o)&&U("The data option must be a function. Plain object usage is no longer supported.");const ae=o.call(n,n);if(g.NODE_ENV!=="production"&&yi(ae)&&U("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!De(ae))g.NODE_ENV!=="production"&&U("data() should return an object.");else if(e.data=oo(ae),g.NODE_ENV!=="production")for(const re in ae)I("Data",re),zi(re[0])||Object.defineProperty(r,re,{configurable:!0,enumerable:!0,get:()=>ae[re],set:We})}if(Gi=!0,s)for(const ae in s){const re=s[ae],ue=fe(re)?re.bind(n,n):fe(re.get)?re.get.bind(n,n):We;g.NODE_ENV!=="production"&&ue===We&&U(`Computed property "${ae}" has no getter.`);const Ie=!fe(re)&&fe(re.set)?re.set.bind(n):g.NODE_ENV!=="production"?()=>{U(`Write operation failed: computed property "${ae}" is readonly.`)}:We,je=X({get:ue,set:Ie});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>je.value,set:nt=>je.value=nt}),g.NODE_ENV!=="production"&&I("Computed",ae)}if(a)for(const ae in a)Su(a[ae],r,n,ae);if(l){const ae=fe(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(re=>{dt(re,ae[re])})}c&&Nu(c,e,"c");function ne(ae,re){ie(re)?re.forEach(ue=>ae(ue.bind(n))):re&&ae(re.bind(n))}if(ne(Bh,d),ne(Ve,f),ne(Hh,m),ne(Zh,v),ne(Mh,N),ne(Uh,S),ne(Kh,de),ne(zh,Z),ne(Wh,x),ne(Hi,B),ne(mt,K),ne(qh,Y),ie(V))if(V.length){const ae=e.exposed||(e.exposed={});V.forEach(re=>{Object.defineProperty(ae,re,{get:()=>n[re],set:ue=>n[re]=ue})})}else e.exposed||(e.exposed={});$&&e.render===We&&(e.render=$),C!=null&&(e.inheritAttrs=C),j&&(e.components=j),oe&&(e.directives=oe)}function nm(e,t,n=We){ie(e)&&(e=Yi(e));for(const r in e){const o=e[r];let s;De(o)?"default"in o?s=$e(o.from||r,o.default,!0):s=$e(o.from||r):s=$e(o),He(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,g.NODE_ENV!=="production"&&n("Inject",r)}}function Nu(e,t,n){kt(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Su(e,t,n,r){const o=r.includes(".")?Ku(n,r):()=>n[r];if(Be(e)){const s=t[e];fe(s)?Xe(o,s):g.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e}"`,s)}else if(fe(e))Xe(o,e.bind(n));else if(De(e))if(ie(e))e.forEach(s=>Su(s,t,n,r));else{const s=fe(e.handler)?e.handler.bind(n):t[e.handler];fe(s)?Xe(o,s,e):g.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e.handler}"`,s)}else g.NODE_ENV!=="production"&&U(`Invalid watch option: "${r}"`,e)}function Ji(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>Ns(l,u,i,!0)),Ns(l,t,i)),De(t)&&s.set(t,l),l}function Ns(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Ns(e,s,n,!0),o&&o.forEach(i=>Ns(e,i,n,!0));for(const i in t)if(r&&i==="expose")g.NODE_ENV!=="production"&&U('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=rm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const rm={data:xu,props:ku,emits:ku,methods:mo,computed:mo,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:mo,directives:mo,watch:sm,provide:xu,inject:om};function xu(e,t){return t?e?function(){return qe(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function om(e,t){return mo(Yi(e),Yi(t))}function Yi(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function mo(e,t){return e?qe(Object.create(null),e,t):t}function ku(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:qe(Object.create(null),Ou(e),Ou(t??{})):t}function sm(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=vt(e[r],t[r]);return n}function Tu(){return{app:null,config:{isNativeTag:yp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let im=0;function am(e,t){return function(r,o=null){fe(r)||(r=qe({},r)),o!=null&&!De(o)&&(g.NODE_ENV!=="production"&&U("root props passed to app.mount() must be an object."),o=null);const s=Tu(),i=new WeakSet;let a=!1;const l=s.app={_uid:im++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:cc,get config(){return s.config},set config(u){g.NODE_ENV!=="production"&&U("app.config cannot be replaced. Modify individual options instead.")},use(u,...c){return i.has(u)?g.NODE_ENV!=="production"&&U("Plugin has already been applied to target app."):u&&fe(u.install)?(i.add(u),u.install(l,...c)):fe(u)?(i.add(u),u(l,...c)):g.NODE_ENV!=="production"&&U('A plugin must either be a function or an object with an "install" function.'),l},mixin(u){return s.mixins.includes(u)?g.NODE_ENV!=="production"&&U("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):s.mixins.push(u),l},component(u,c){return g.NODE_ENV!=="production"&&da(u,s.config),c?(g.NODE_ENV!=="production"&&s.components[u]&&U(`Component "${u}" has already been registered in target app.`),s.components[u]=c,l):s.components[u]},directive(u,c){return g.NODE_ENV!=="production"&&fu(u),c?(g.NODE_ENV!=="production"&&s.directives[u]&&U(`Directive "${u}" has already been registered in target app.`),s.directives[u]=c,l):s.directives[u]},mount(u,c,d){if(a)g.NODE_ENV!=="production"&&U("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{g.NODE_ENV!=="production"&&u.__vue_app__&&U("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=F(r,o);return f.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),g.NODE_ENV!=="production"&&(s.reload=()=>{e(Rt(f),u,d)}),c&&t?t(f,u):e(f,u,d),a=!0,l._container=u,u.__vue_app__=l,g.NODE_ENV!=="production"&&(l._instance=f.component,kh(l,cc)),pa(f.component)}},unmount(){a?(e(null,l._container),g.NODE_ENV!=="production"&&(l._instance=null,Th(l)),delete l._container.__vue_app__):g.NODE_ENV!=="production"&&U("Cannot unmount an app that is not mounted.")},provide(u,c){return g.NODE_ENV!=="production"&&u in s.provides&&U(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),s.provides[u]=c,l},runWithContext(u){const c=cr;cr=l;try{return u()}finally{cr=c}}};return l}}let cr=null;function dt(e,t){if(!Ge)g.NODE_ENV!=="production"&&U("provide() can only be used inside setup().");else{let n=Ge.provides;const r=Ge.parent&&Ge.parent.provides;r===n&&(n=Ge.provides=Object.create(r)),n[e]=t}}function $e(e,t,n=!1){const r=Ge||Ye;if(r||cr){const o=cr?cr._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&fe(t)?t.call(r&&r.proxy):t;g.NODE_ENV!=="production"&&U(`injection "${String(e)}" not found.`)}else g.NODE_ENV!=="production"&&U("inject() can only be used inside setup() or functional components.")}function lm(){return!!(Ge||Ye||cr)}const Cu={},Pu=()=>Object.create(Cu),$u=e=>Object.getPrototypeOf(e)===Cu;function um(e,t,n,r=!1){const o={},s=Pu();e.propsDefaults=Object.create(null),Iu(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);g.NODE_ENV!=="production"&&Vu(t||{},o,e),n?e.props=r?o:oh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function cm(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function dm(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=ge(o),[l]=e.propsOptions;let u=!1;if(!(g.NODE_ENV!=="production"&&cm(e))&&(r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(Ts(e.emitsOptions,f))continue;const m=t[f];if(l)if(Ne(s,f))m!==s[f]&&(s[f]=m,u=!0);else{const v=Et(f);o[v]=Xi(l,a,v,m,e,!1)}else m!==s[f]&&(s[f]=m,u=!0)}}}else{Iu(e,t,o,s)&&(u=!0);let c;for(const d in a)(!t||!Ne(t,d)&&((c=on(d))===d||!Ne(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=Xi(l,a,d,void 0,e,!0)):delete o[d]);if(s!==a)for(const d in s)(!t||!Ne(t,d))&&(delete s[d],u=!0)}u&&Wt(e.attrs,"set",""),g.NODE_ENV!=="production"&&Vu(t||{},o,e)}function Iu(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(no(l))continue;const u=t[l];let c;o&&Ne(o,c=Et(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:Ts(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=ge(n),u=a||Me;for(let c=0;c<s.length;c++){const d=s[c];n[d]=Xi(o,l,d,u[d],e,!Ne(u,d))}}return i}function Xi(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=Ne(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&fe(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=Eo(o);r=u[n]=l.call(null,t),c()}}else r=l}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===on(n))&&(r=!0))}return r}const fm=new WeakMap;function Du(e,t,n=!1){const r=n?fm:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!fe(e)){const c=d=>{l=!0;const[f,m]=Du(d,t,!0);qe(i,f),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return De(e)&&r.set(e,$r),$r;if(ie(s))for(let c=0;c<s.length;c++){g.NODE_ENV!=="production"&&!Be(s[c])&&U("props must be strings when using array syntax.",s[c]);const d=Et(s[c]);Au(d)&&(i[d]=Me)}else if(s){g.NODE_ENV!=="production"&&!De(s)&&U("invalid props options",s);for(const c in s){const d=Et(c);if(Au(d)){const f=s[c],m=i[d]=ie(f)||fe(f)?{type:f}:qe({},f),v=m.type;let N=!1,S=!0;if(ie(v))for(let D=0;D<v.length;++D){const B=v[D],P=fe(B)&&B.name;if(P==="Boolean"){N=!0;break}else P==="String"&&(S=!1)}else N=fe(v)&&v.name==="Boolean";m[0]=N,m[1]=S,(N||Ne(m,"default"))&&a.push(d)}}}const u=[i,a];return De(e)&&r.set(e,u),u}function Au(e){return e[0]!=="$"&&!no(e)?!0:(g.NODE_ENV!=="production"&&U(`Invalid prop name: "${e}" is a reserved property.`),!1)}function pm(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Vu(e,t,n){const r=ge(t),o=n.propsOptions[0];for(const s in o){let i=o[s];i!=null&&hm(s,r[s],i,g.NODE_ENV!=="production"?zt(r):r,!Ne(e,s)&&!Ne(e,on(s)))}}function hm(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){U('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let u=!1;const c=ie(s)?s:[s],d=[];for(let f=0;f<c.length&&!u;f++){const{valid:m,expectedType:v}=vm(t,c[f]);d.push(v||""),u=m}if(!u){U(gm(e,t,d));return}}a&&!a(t,r)&&U('Invalid prop: custom validator check failed for prop "'+e+'".')}}const mm=rn("String,Number,Boolean,Function,Symbol,BigInt");function vm(e,t){let n;const r=pm(t);if(mm(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=De(e):r==="Array"?n=ie(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function gm(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(tr).join(" | ")}`;const o=n[0],s=_i(t),i=Ru(t,o),a=Ru(t,s);return n.length===1&&ju(o)&&!ym(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,ju(s)&&(r+=`with value ${a}.`),r}function Ru(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function ju(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function ym(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Lu=e=>e[0]==="_"||e==="$stable",Qi=e=>ie(e)?e.map(jt):[jt(e)],_m=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>(g.NODE_ENV!=="production"&&Ge&&(!n||n.root===Ge.root)&&U(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Qi(t(...o))),n);return r._c=!1,r},Mu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Lu(o))continue;const s=e[o];if(fe(s))t[o]=_m(o,s,r);else if(s!=null){g.NODE_ENV!=="production"&&U(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Qi(s);t[o]=()=>i}}},Uu=(e,t)=>{g.NODE_ENV!=="production"&&!ho(e.vnode)&&U("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Qi(t);e.slots.default=()=>n},ea=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},bm=(e,t,n)=>{const r=e.slots=Pu();if(e.vnode.shapeFlag&32){const o=t._;o?(ea(r,t,n),n&&ts(r,"_",o,!0)):Mu(t,r)}else t&&Uu(e,t)},wm=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Me;if(r.shapeFlag&32){const a=t._;a?g.NODE_ENV!=="production"&&Dn?(ea(o,t,n),Wt(e,"set","$slots")):n&&a===1?s=!1:ea(o,t,n):(s=!t.$stable,Mu(t,o)),i=t}else t&&(Uu(e,t),i={default:1});if(s)for(const a in o)!Lu(a)&&i[a]==null&&delete o[a]};function ta(e,t,n,r,o=!1){if(ie(e)){e.forEach((f,m)=>ta(f,t&&(ie(t)?t[m]:t),n,r,o));return}if(po(r)&&!o)return;const s=r.shapeFlag&4?pa(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(g.NODE_ENV!=="production"&&!a){U("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=a.refs===Me?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Be(u)?(c[u]=null,Ne(d,u)&&(d[u]=null)):He(u)&&(u.value=null)),fe(l))dn(l,a,12,[i,c]);else{const f=Be(l),m=He(l);if(f||m){const v=()=>{if(e.f){const N=f?Ne(d,l)?d[l]:c[l]:l.value;o?ie(N)&&gi(N,s):ie(N)?N.includes(s)||N.push(s):f?(c[l]=[s],Ne(d,l)&&(d[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else f?(c[l]=i,Ne(d,l)&&(d[l]=i)):m?(l.value=i,e.k&&(c[e.k]=i)):g.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)};i?(v.id=-1,_t(v,n)):v()}else g.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)}}const Fu=Symbol("_vte"),Em=e=>e.__isTeleport,dr=e=>e&&(e.disabled||e.disabled===""),Bu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,na=(e,t)=>{const n=e&&e.to;if(Be(n))if(t){const r=t(n);return g.NODE_ENV!=="production"&&!r&&!dr(e)&&U(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return g.NODE_ENV!=="production"&&U("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return g.NODE_ENV!=="production"&&!n&&!dr(e)&&U(`Invalid Teleport target: ${n}`),n},Om={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:m,querySelector:v,createText:N,createComment:S}}=u,D=dr(t.props);let{shapeFlag:B,children:P,dynamicChildren:K}=t;if(g.NODE_ENV!=="production"&&Dn&&(l=!1,K=null),e==null){const $=t.el=g.NODE_ENV!=="production"?S("teleport start"):N(""),Z=t.anchor=g.NODE_ENV!=="production"?S("teleport end"):N("");m($,n,r),m(Z,n,r);const x=t.target=na(t.props,v),de=qu(x,t,N,m);x?i==="svg"||Bu(x)?i="svg":(i==="mathml"||Hu(x))&&(i="mathml"):g.NODE_ENV!=="production"&&!D&&U("Invalid Teleport target on mount:",x,`(${typeof x})`);const Y=(V,C)=>{B&16&&c(P,V,C,o,s,i,a,l)};D?Y(n,Z):x&&Y(x,de)}else{t.el=e.el,t.targetStart=e.targetStart;const $=t.anchor=e.anchor,Z=t.target=e.target,x=t.targetAnchor=e.targetAnchor,de=dr(e.props),Y=de?n:Z,V=de?$:x;if(i==="svg"||Bu(Z)?i="svg":(i==="mathml"||Hu(Z))&&(i="mathml"),K?(f(e.dynamicChildren,K,Y,o,s,i,a),go(e,t,!0)):l||d(e,t,Y,V,o,s,i,a,!1),D)de?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ss(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const C=t.target=na(t.props,v);C?Ss(t,C,null,u,0):g.NODE_ENV!=="production"&&U("Invalid Teleport target on update:",Z,`(${typeof Z})`)}else de&&Ss(t,Z,x,u,1)}Zu(t)},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(o(u),o(c)),s&&o(l),i&16){const m=s||!dr(f);for(let v=0;v<a.length;v++){const N=a[v];r(N,t,n,m,!!N.dynamicChildren)}}},move:Ss,hydrate:Nm};function Ss(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(i,t,n),(!d||dr(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);d&&r(a,t,n)}function Nm(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},d){const f=t.target=na(t.props,l);if(f){const m=f._lpa||f.firstChild;if(t.shapeFlag&16)if(dr(t.props))t.anchor=d(i(e),t,a(e),n,r,o,s),t.targetStart=m,t.targetAnchor=m&&i(m);else{t.anchor=i(e);let v=m;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}}v=i(v)}t.targetAnchor||qu(f,t,c,u),d(m&&i(m),t,f,n,r,o,s)}Zu(t)}return t.anchor&&i(t.anchor)}const Sm=Om;function Zu(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function qu(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[Fu]=s,e&&(r(o,e),r(s,e)),s}let vo,Vn;function pn(e,t){e.appContext.config.performance&&xs()&&Vn.mark(`vue-${t}-${e.uid}`),g.NODE_ENV!=="production"&&Ih(e,t,xs()?Vn.now():Date.now())}function hn(e,t){if(e.appContext.config.performance&&xs()){const n=`vue-${t}-${e.uid}`,r=n+":end";Vn.mark(r),Vn.measure(`<${As(e,e.type)}> ${t}`,n,r),Vn.clearMarks(n),Vn.clearMarks(r)}g.NODE_ENV!=="production"&&Dh(e,t,xs()?Vn.now():Date.now())}function xs(){return vo!==void 0||(typeof window<"u"&&window.performance?(vo=!0,Vn=window.performance):vo=!1),vo}function xm(){const e=[];if(g.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
13
13
 
14
- For more details, see https://link.vuejs.org/feature-flags.`)}}const _t=jm;function Om(e){return Nm(e)}function Nm(e,t){Em();const n=gi();n.__VUE__=!0,m.NODE_ENV!=="production"&&au(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:v=We,insertStaticContent:g}=e,E=(p,h,S,j=null,D=null,M=null,G=void 0,q=null,W=m.NODE_ENV!=="production"&&In?!1:!!h.dynamicChildren)=>{if(p===h)return;p&&!pr(p,h)&&(j=ti(p),bt(p,D,M,!0),p=null),h.patchFlag===-2&&(W=!1,h.dynamicChildren=null);const{type:V,ref:Q,shapeFlag:le}=h;switch(V){case yo:O(p,h,S,j);break;case Ke:L(p,h,S,j);break;case _o:p==null?F(h,S,j,G):m.NODE_ENV!=="production"&&C(p,h,S,G);break;case Te:oe(p,h,S,j,D,M,G,q,W);break;default:le&1?Z(p,h,S,j,D,M,G,q,W):le&6?_(p,h,S,j,D,M,G,q,W):le&64||le&128?V.process(p,h,S,j,D,M,G,q,W,Ro):m.NODE_ENV!=="production"&&U("Invalid VNode type:",V,`(${typeof V})`)}Q!=null&&D&&Ji(Q,p&&p.ref,M,h||p,!h)},O=(p,h,S,j)=>{if(p==null)r(h.el=a(h.children),S,j);else{const D=h.el=p.el;h.children!==p.children&&u(D,h.children)}},L=(p,h,S,j)=>{p==null?r(h.el=l(h.children||""),S,j):h.el=p.el},F=(p,h,S,j)=>{[p.el,p.anchor]=g(p.children,h,S,j,p.el,p.anchor)},C=(p,h,S,j)=>{if(h.children!==p.children){const D=f(p.anchor);$(p),[h.el,h.anchor]=g(h.children,S,D,j)}else h.el=p.el,h.anchor=p.anchor},z=({el:p,anchor:h},S,j)=>{let D;for(;p&&p!==h;)D=f(p),r(p,S,j),p=D;r(h,S,j)},$=({el:p,anchor:h})=>{let S;for(;p&&p!==h;)S=f(p),o(p),p=S;o(h)},Z=(p,h,S,j,D,M,G,q,W)=>{h.type==="svg"?G="svg":h.type==="math"&&(G="mathml"),p==null?N(h,S,j,D,M,G,q,W):A(p,h,D,M,G,q,W)},N=(p,h,S,j,D,M,G,q)=>{let W,V;const{props:Q,shapeFlag:le,transition:se,dirs:we}=p;if(W=p.el=i(p.type,M,Q&&Q.is,Q),le&8?c(W,p.children):le&16&&J(p.children,W,null,j,D,Xi(p,M),G,q),we&&ar(p,null,j,"created"),de(W,p,p.scopeId,G,j),Q){for(const Fe in Q)Fe!=="value"&&!no(Fe)&&s(W,Fe,null,Q[Fe],M,j);"value"in Q&&s(W,"value",null,Q.value,M),(V=Q.onVnodeBeforeMount)&&Kt(V,j,p)}m.NODE_ENV!=="production"&&(ts(W,"__vnode",p,!0),ts(W,"__vueParentComponent",j,!0)),we&&ar(p,null,j,"beforeMount");const Se=Sm(D,se);Se&&se.beforeEnter(W),r(W,h,S),((V=Q&&Q.onVnodeMounted)||Se||we)&&_t(()=>{V&&Kt(V,j,p),Se&&se.enter(W),we&&ar(p,null,j,"mounted")},D)},de=(p,h,S,j,D)=>{if(S&&v(p,S),j)for(let M=0;M<j.length;M++)v(p,j[M]);if(D){let M=D.subTree;if(m.NODE_ENV!=="production"&&M.patchFlag>0&&M.patchFlag&2048&&(M=na(M.children)||M),h===M){const G=D.vnode;de(p,G,G.scopeId,G.slotScopeIds,D.parent)}}},J=(p,h,S,j,D,M,G,q,W=0)=>{for(let V=W;V<p.length;V++){const Q=p[V]=q?Vn(p[V]):Rt(p[V]);E(null,Q,h,S,j,D,M,G,q)}},A=(p,h,S,j,D,M,G)=>{const q=h.el=p.el;m.NODE_ENV!=="production"&&(q.__vnode=h);let{patchFlag:W,dynamicChildren:V,dirs:Q}=h;W|=p.patchFlag&16;const le=p.props||Le,se=h.props||Le;let we;if(S&&dr(S,!1),(we=se.onVnodeBeforeUpdate)&&Kt(we,S,h,p),Q&&ar(h,p,S,"beforeUpdate"),S&&dr(S,!0),m.NODE_ENV!=="production"&&In&&(W=0,G=!1,V=null),(le.innerHTML&&se.innerHTML==null||le.textContent&&se.textContent==null)&&c(q,""),V?(k(p.dynamicChildren,V,q,S,j,Xi(h,D),M),m.NODE_ENV!=="production"&&go(p,h)):G||ue(p,h,q,null,S,j,Xi(h,D),M,!1),W>0){if(W&16)R(q,le,se,S,D);else if(W&2&&le.class!==se.class&&s(q,"class",null,se.class,D),W&4&&s(q,"style",le.style,se.style,D),W&8){const Se=h.dynamicProps;for(let Fe=0;Fe<Se.length;Fe++){const De=Se[Fe],rt=le[De],Mt=se[De];(Mt!==rt||De==="value")&&s(q,De,rt,Mt,D,S)}}W&1&&p.children!==h.children&&c(q,h.children)}else!G&&V==null&&R(q,le,se,S,D);((we=se.onVnodeUpdated)||Q)&&_t(()=>{we&&Kt(we,S,h,p),Q&&ar(h,p,S,"updated")},j)},k=(p,h,S,j,D,M,G)=>{for(let q=0;q<h.length;q++){const W=p[q],V=h[q],Q=W.el&&(W.type===Te||!pr(W,V)||W.shapeFlag&70)?d(W.el):S;E(W,V,Q,null,j,D,M,G,!0)}},R=(p,h,S,j,D)=>{if(h!==S){if(h!==Le)for(const M in h)!no(M)&&!(M in S)&&s(p,M,h[M],null,D,j);for(const M in S){if(no(M))continue;const G=S[M],q=h[M];G!==q&&M!=="value"&&s(p,M,q,G,D,j)}"value"in S&&s(p,"value",h.value,S.value,D)}},oe=(p,h,S,j,D,M,G,q,W)=>{const V=h.el=p?p.el:a(""),Q=h.anchor=p?p.anchor:a("");let{patchFlag:le,dynamicChildren:se,slotScopeIds:we}=h;m.NODE_ENV!=="production"&&(In||le&2048)&&(le=0,W=!1,se=null),we&&(q=q?q.concat(we):we),p==null?(r(V,S,j),r(Q,S,j),J(h.children||[],S,Q,D,M,G,q,W)):le>0&&le&64&&se&&p.dynamicChildren?(k(p.dynamicChildren,se,S,D,M,G,q),m.NODE_ENV!=="production"?go(p,h):(h.key!=null||D&&h===D.subTree)&&go(p,h,!0)):ue(p,h,S,Q,D,M,G,q,W)},_=(p,h,S,j,D,M,G,q,W)=>{h.slotScopeIds=q,p==null?h.shapeFlag&512?D.ctx.activate(h,S,j,G,W):I(h,S,j,D,M,G,W):ne(p,h,W)},I=(p,h,S,j,D,M,G)=>{const q=p.component=Zm(p,j,D);if(m.NODE_ENV!=="production"&&q.type.__hmrId&&_h(q),m.NODE_ENV!=="production"&&(hs(p),fn(q,"mount")),ho(p)&&(q.ctx.renderer=Ro),m.NODE_ENV!=="production"&&fn(q,"init"),Wm(q,!1,G),m.NODE_ENV!=="production"&&pn(q,"init"),q.asyncDep){if(D&&D.registerDep(q,ae,G),!p.el){const W=q.subTree=B(Ke);L(null,W,h,S)}}else ae(q,p,h,S,D,M,G);m.NODE_ENV!=="production"&&(ms(),pn(q,"mount"))},ne=(p,h,S)=>{const j=h.component=p.component;if(Am(p,h,S))if(j.asyncDep&&!j.asyncResolved){m.NODE_ENV!=="production"&&hs(h),re(j,h,S),m.NODE_ENV!=="production"&&ms();return}else j.next=h,gh(j.update),j.effect.dirty=!0,j.update();else h.el=p.el,j.vnode=h},ae=(p,h,S,j,D,M,G)=>{const q=()=>{if(p.isMounted){let{next:Q,bu:le,u:se,parent:we,vnode:Se}=p;{const Lr=qu(p);if(Lr){Q&&(Q.el=Se.el,re(p,Q,G)),Lr.asyncDep.then(()=>{p.isUnmounted||q()});return}}let Fe=Q,De;m.NODE_ENV!=="production"&&hs(Q||p.vnode),dr(p,!1),Q?(Q.el=Se.el,re(p,Q,G)):Q=Se,le&&ro(le),(De=Q.props&&Q.props.onVnodeBeforeUpdate)&&Kt(De,we,Q,Se),dr(p,!0),m.NODE_ENV!=="production"&&fn(p,"render");const rt=ta(p);m.NODE_ENV!=="production"&&pn(p,"render");const Mt=p.subTree;p.subTree=rt,m.NODE_ENV!=="production"&&fn(p,"patch"),E(Mt,rt,d(Mt.el),ti(Mt),p,D,M),m.NODE_ENV!=="production"&&pn(p,"patch"),Q.el=rt.el,Fe===null&&Vm(p,rt.el),se&&_t(se,D),(De=Q.props&&Q.props.onVnodeUpdated)&&_t(()=>Kt(De,we,Q,Se),D),m.NODE_ENV!=="production"&&lu(p),m.NODE_ENV!=="production"&&ms()}else{let Q;const{el:le,props:se}=h,{bm:we,m:Se,parent:Fe}=p,De=po(h);if(dr(p,!1),we&&ro(we),!De&&(Q=se&&se.onVnodeBeforeMount)&&Kt(Q,Fe,h),dr(p,!0),le&&jd){const rt=()=>{m.NODE_ENV!=="production"&&fn(p,"render"),p.subTree=ta(p),m.NODE_ENV!=="production"&&pn(p,"render"),m.NODE_ENV!=="production"&&fn(p,"hydrate"),jd(le,p.subTree,p,D,null),m.NODE_ENV!=="production"&&pn(p,"hydrate")};De?h.type.__asyncLoader().then(()=>!p.isUnmounted&&rt()):rt()}else{m.NODE_ENV!=="production"&&fn(p,"render");const rt=p.subTree=ta(p);m.NODE_ENV!=="production"&&pn(p,"render"),m.NODE_ENV!=="production"&&fn(p,"patch"),E(null,rt,S,j,p,D,M),m.NODE_ENV!=="production"&&pn(p,"patch"),h.el=rt.el}if(Se&&_t(Se,D),!De&&(Q=se&&se.onVnodeMounted)){const rt=h;_t(()=>Kt(Q,Fe,rt),D)}(h.shapeFlag&256||Fe&&po(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&p.a&&_t(p.a,D),p.isMounted=!0,m.NODE_ENV!=="production"&&Sh(p),h=S=j=null}},W=p.effect=new bi(q,We,()=>vs(V),p.scope),V=p.update=()=>{W.dirty&&W.run()};V.i=p,V.id=p.uid,dr(p,!0),m.NODE_ENV!=="production"&&(W.onTrack=p.rtc?Q=>ro(p.rtc,Q):void 0,W.onTrigger=p.rtg?Q=>ro(p.rtg,Q):void 0),V()},re=(p,h,S)=>{h.component=p;const j=p.vnode.props;p.vnode=h,p.next=null,am(p,h.props,j,S),gm(p,h.children,S),rn(),nu(p),on()},ue=(p,h,S,j,D,M,G,q,W=!1)=>{const V=p&&p.children,Q=p?p.shapeFlag:0,le=h.children,{patchFlag:se,shapeFlag:we}=h;if(se>0){if(se&128){Ve(V,le,S,j,D,M,G,q,W);return}else if(se&256){Ce(V,le,S,j,D,M,G,q,W);return}}we&8?(Q&16&&Vo(V,D,M),le!==V&&c(S,le)):Q&16?we&16?Ve(V,le,S,j,D,M,G,q,W):Vo(V,D,M,!0):(Q&8&&c(S,""),we&16&&J(le,S,j,D,M,G,q,W))},Ce=(p,h,S,j,D,M,G,q,W)=>{p=p||$r,h=h||$r;const V=p.length,Q=h.length,le=Math.min(V,Q);let se;for(se=0;se<le;se++){const we=h[se]=W?Vn(h[se]):Rt(h[se]);E(p[se],we,S,null,D,M,G,q,W)}V>Q?Vo(p,D,M,!0,!1,le):J(h,S,j,D,M,G,q,W,le)},Ve=(p,h,S,j,D,M,G,q,W)=>{let V=0;const Q=h.length;let le=p.length-1,se=Q-1;for(;V<=le&&V<=se;){const we=p[V],Se=h[V]=W?Vn(h[V]):Rt(h[V]);if(pr(we,Se))E(we,Se,S,null,D,M,G,q,W);else break;V++}for(;V<=le&&V<=se;){const we=p[le],Se=h[se]=W?Vn(h[se]):Rt(h[se]);if(pr(we,Se))E(we,Se,S,null,D,M,G,q,W);else break;le--,se--}if(V>le){if(V<=se){const we=se+1,Se=we<Q?h[we].el:j;for(;V<=se;)E(null,h[V]=W?Vn(h[V]):Rt(h[V]),S,Se,D,M,G,q,W),V++}}else if(V>se)for(;V<=le;)bt(p[V],D,M,!0),V++;else{const we=V,Se=V,Fe=new Map;for(V=Se;V<=se;V++){const yt=h[V]=W?Vn(h[V]):Rt(h[V]);yt.key!=null&&(m.NODE_ENV!=="production"&&Fe.has(yt.key)&&U("Duplicate keys found during update:",JSON.stringify(yt.key),"Make sure keys are unique."),Fe.set(yt.key,V))}let De,rt=0;const Mt=se-Se+1;let Lr=!1,Ld=0;const jo=new Array(Mt);for(V=0;V<Mt;V++)jo[V]=0;for(V=we;V<=le;V++){const yt=p[V];if(rt>=Mt){bt(yt,D,M,!0);continue}let Xt;if(yt.key!=null)Xt=Fe.get(yt.key);else for(De=Se;De<=se;De++)if(jo[De-Se]===0&&pr(yt,h[De])){Xt=De;break}Xt===void 0?bt(yt,D,M,!0):(jo[Xt-Se]=V+1,Xt>=Ld?Ld=Xt:Lr=!0,E(yt,h[Xt],S,null,D,M,G,q,W),rt++)}const Md=Lr?xm(jo):$r;for(De=Md.length-1,V=Mt-1;V>=0;V--){const yt=Se+V,Xt=h[yt],Ud=yt+1<Q?h[yt+1].el:j;jo[V]===0?E(null,Xt,S,Ud,D,M,G,q,W):Lr&&(De<0||V!==Md[De]?nt(Xt,S,Ud,2):De--)}}},nt=(p,h,S,j,D=null)=>{const{el:M,type:G,transition:q,children:W,shapeFlag:V}=p;if(V&6){nt(p.component.subTree,h,S,j);return}if(V&128){p.suspense.move(h,S,j);return}if(V&64){G.move(p,h,S,Ro);return}if(G===Te){r(M,h,S);for(let le=0;le<W.length;le++)nt(W[le],h,S,j);r(p.anchor,h,S);return}if(G===_o){z(p,h,S);return}if(j!==2&&V&1&&q)if(j===0)q.beforeEnter(M),r(M,h,S),_t(()=>q.enter(M),D);else{const{leave:le,delayLeave:se,afterLeave:we}=q,Se=()=>r(M,h,S),Fe=()=>{le(M,()=>{Se(),we&&we()})};se?se(M,Se,Fe):Fe()}else r(M,h,S)},bt=(p,h,S,j=!1,D=!1)=>{const{type:M,props:G,ref:q,children:W,dynamicChildren:V,shapeFlag:Q,patchFlag:le,dirs:se,cacheIndex:we}=p;if(le===-2&&(D=!1),q!=null&&Ji(q,null,S,p,!0),we!=null&&(h.renderCache[we]=void 0),Q&256){h.ctx.deactivate(p);return}const Se=Q&1&&se,Fe=!po(p);let De;if(Fe&&(De=G&&G.onVnodeBeforeUnmount)&&Kt(De,h,p),Q&6)q1(p.component,S,j);else{if(Q&128){p.suspense.unmount(S,j);return}Se&&ar(p,null,h,"beforeUnmount"),Q&64?p.type.remove(p,h,S,Ro,j):V&&!V.hasOnce&&(M!==Te||le>0&&le&64)?Vo(V,h,S,!1,!0):(M===Te&&le&384||!D&&Q&16)&&Vo(W,h,S),j&&_n(p)}(Fe&&(De=G&&G.onVnodeUnmounted)||Se)&&_t(()=>{De&&Kt(De,h,p),Se&&ar(p,null,h,"unmounted")},S)},_n=p=>{const{type:h,el:S,anchor:j,transition:D}=p;if(h===Te){m.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&D&&!D.persisted?p.children.forEach(G=>{G.type===Ke?o(G.el):_n(G)}):Kn(S,j);return}if(h===_o){$(p);return}const M=()=>{o(S),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(p.shapeFlag&1&&D&&!D.persisted){const{leave:G,delayLeave:q}=D,W=()=>G(S,M);q?q(p.el,M,W):W()}else M()},Kn=(p,h)=>{let S;for(;p!==h;)S=f(p),o(p),p=S;o(h)},q1=(p,h,S)=>{m.NODE_ENV!=="production"&&p.type.__hmrId&&bh(p);const{bum:j,scope:D,update:M,subTree:G,um:q,m:W,a:V}=p;Wu(W),Wu(V),j&&ro(j),D.stop(),M&&(M.active=!1,bt(G,p,h,S)),q&&_t(q,h),_t(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve()),m.NODE_ENV!=="production"&&Th(p)},Vo=(p,h,S,j=!1,D=!1,M=0)=>{for(let G=M;G<p.length;G++)bt(p[G],h,S,j,D)},ti=p=>{if(p.shapeFlag&6)return ti(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=f(p.anchor||p.el),S=h&&h[Uu];return S?f(S):h};let Za=!1;const Vd=(p,h,S)=>{p==null?h._vnode&&bt(h._vnode,null,null,!0):E(h._vnode||null,p,h,null,null,null,S),h._vnode=p,Za||(Za=!0,nu(),ru(),Za=!1)},Ro={p:E,um:bt,m:nt,r:_n,mt:I,mc:J,pc:ue,pbc:k,n:ti,o:e};let Rd,jd;return{render:Vd,hydrate:Rd,createApp:rm(Vd,Rd)}}function Xi({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 dr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function go(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Vn(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&go(i,a)),a.type===yo&&(a.el=i.el),m.NODE_ENV!=="production"&&a.type===Ke&&!a.el&&(a.el=i.el)}}function xm(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function qu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qu(t)}function Wu(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const Tm=Symbol.for("v-scx"),km=()=>{{const e=ke(Tm);return e||m.NODE_ENV!=="production"&&U("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ft(e,t){return Qi(e,null,t)}const Ts={};function Xe(e,t,n){return m.NODE_ENV!=="production"&&!fe(t)&&U("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Qi(e,t,n)}function Qi(e,t,{immediate:n,deep:r,flush:o,once:s,onTrack:i,onTrigger:a}=Le){if(t&&s){const N=t;t=(...de)=>{N(...de),Z()}}m.NODE_ENV!=="production"&&r!==void 0&&typeof r=="number"&&U('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),m.NODE_ENV!=="production"&&!t&&(n!==void 0&&U('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&U('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&U('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=N=>{U("Invalid watch source: ",N,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Ge,c=N=>r===!0?N:fr(N,r===!1?1:void 0);let d,f=!1,v=!1;if(He(e)?(d=()=>e.value,f=ln(e)):sn(e)?(d=()=>c(e),f=!0):ie(e)?(v=!0,f=e.some(N=>sn(N)||ln(N)),d=()=>e.map(N=>{if(He(N))return N.value;if(sn(N))return c(N);if(fe(N))return un(N,u,2);m.NODE_ENV!=="production"&&l(N)})):fe(e)?t?d=()=>un(e,u,2):d=()=>(g&&g(),xt(e,u,3,[E])):(d=We,m.NODE_ENV!=="production"&&l(e)),t&&r){const N=d;d=()=>fr(N())}let g,E=N=>{g=z.onStop=()=>{un(N,u,4),g=z.onStop=void 0}},O;if(Ds)if(E=We,t?n&&xt(t,u,3,[d(),v?[]:void 0,E]):d(),o==="sync"){const N=km();O=N.__watcherHandles||(N.__watcherHandles=[])}else return We;let L=v?new Array(e.length).fill(Ts):Ts;const F=()=>{if(!(!z.active||!z.dirty))if(t){const N=z.run();(r||f||(v?N.some((de,J)=>Tn(de,L[J])):Tn(N,L)))&&(g&&g(),xt(t,u,3,[N,L===Ts?void 0:v&&L[0]===Ts?[]:L,E]),L=N)}else z.run()};F.allowRecurse=!!t;let C;o==="sync"?C=F:o==="post"?C=()=>_t(F,u&&u.suspense):(F.pre=!0,u&&(F.id=u.uid),C=()=>vs(F));const z=new bi(d,We,C),$=Ol(),Z=()=>{z.stop(),$&&pi($.effects,z)};return m.NODE_ENV!=="production"&&(z.onTrack=i,z.onTrigger=a),t?n?F():L=z.run():o==="post"?_t(z.run.bind(z),u&&u.suspense):z.run(),O&&O.push(Z),Z}function Cm(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?zu(r,e):()=>r[e]:e.bind(r,r);let s;fe(t)?s=t:(s=t.handler,n=t);const i=Eo(this),a=Qi(o,s.bind(r),n);return i(),a}function zu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function fr(e,t=1/0,n){if(t<=0||!$e(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,He(e))fr(e.value,t,n);else if(ie(e))for(let r=0;r<e.length;r++)fr(e[r],t,n);else if(hl(e)||Qn(e))e.forEach(r=>{fr(r,t,n)});else if(vl(e)){for(const r in e)fr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&fr(e[r],t,n)}return e}const Pm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${nn(t)}Modifiers`];function $m(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Le;if(m.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(tr(Et(t))in d))&&U(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${tr(Et(t))}" prop.`);else{const f=c[t];fe(f)&&(f(...n)||U(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&Pm(r,t.slice(7));if(i&&(i.trim&&(o=n.map(c=>Be(c)?c.trim():c)),i.number&&(o=n.map(_p))),m.NODE_ENV!=="production"&&Ph(e,t,o),m.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&r[tr(c)]&&U(`Event "${c}" is emitted in component ${As(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${nn(t)}" instead of "${t}".`)}let a,l=r[a=tr(t)]||r[a=tr(Et(t))];!l&&s&&(l=r[a=tr(nn(t))]),l&&xt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,xt(u,e,6,o)}}function Ku(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!fe(e)){const l=u=>{const c=Ku(u,t,!0);c&&(a=!0,qe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?($e(e)&&r.set(e,null),null):(ie(s)?s.forEach(l=>i[l]=null):qe(i,s),$e(e)&&r.set(e,i),i)}function ks(e,t){return!e||!to(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,nn(t))||Ne(e,t))}let ea=!1;function Cs(){ea=!0}function ta(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:v,ctx:g,inheritAttrs:E}=e,O=bs(e);let L,F;m.NODE_ENV!=="production"&&(ea=!1);try{if(n.shapeFlag&4){const $=o||r,Z=m.NODE_ENV!=="production"&&v.__isScriptSetup?new Proxy($,{get(N,de,J){return U(`Property '${String(de)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(N,de,J)}}):$;L=Rt(u.call(Z,$,c,m.NODE_ENV!=="production"?qt(d):d,v,f,g)),F=a}else{const $=t;m.NODE_ENV!=="production"&&a===d&&Cs(),L=Rt($.length>1?$(m.NODE_ENV!=="production"?qt(d):d,m.NODE_ENV!=="production"?{get attrs(){return Cs(),qt(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):$(m.NODE_ENV!=="production"?qt(d):d,null)),F=t.props?a:Im(a)}}catch($){bo.length=0,io($,e,1),L=B(Ke)}let C=L,z;if(m.NODE_ENV!=="production"&&L.patchFlag>0&&L.patchFlag&2048&&([C,z]=Gu(L)),F&&E!==!1){const $=Object.keys(F),{shapeFlag:Z}=C;if($.length){if(Z&7)s&&$.some(Xo)&&(F=Dm(F,s)),C=Vt(C,F,!1,!0);else if(m.NODE_ENV!=="production"&&!ea&&C.type!==Ke){const N=Object.keys(a),de=[],J=[];for(let A=0,k=N.length;A<k;A++){const R=N[A];to(R)?Xo(R)||de.push(R[2].toLowerCase()+R.slice(3)):J.push(R)}J.length&&U(`Extraneous non-props attributes (${J.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),de.length&&U(`Extraneous non-emits event listeners (${de.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(m.NODE_ENV!=="production"&&!Ju(C)&&U("Runtime directive used on component with non-element root node. The directives will not function as intended."),C=Vt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(m.NODE_ENV!=="production"&&!Ju(C)&&U("Component inside <Transition> renders non-element root node that cannot be animated."),C.transition=n.transition),m.NODE_ENV!=="production"&&z?z(C):L=C,bs(O),L}const Gu=e=>{const t=e.children,n=e.dynamicChildren,r=na(t,!1);if(r){if(m.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Gu(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Rt(r),i]};function na(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Dr(o)){if(o.type!==Ke||o.children==="v-if"){if(n)return;if(n=o,m.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return na(n.children)}}else return}return n}const Im=e=>{let t;for(const n in e)(n==="class"||n==="style"||to(n))&&((t||(t={}))[n]=e[n]);return t},Dm=(e,t)=>{const n={};for(const r in e)(!Xo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ju=e=>e.shapeFlag&7||e.type===Ke;function Am(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(m.NODE_ENV!=="production"&&(o||a)&&In||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Yu(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==r[f]&&!ks(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Yu(r,i,u):!0:!!i;return!1}function Yu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!ks(n,s))return!0}return!1}function Vm({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Rm=e=>e.__isSuspense;function jm(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):tu(e)}const Te=Symbol.for("v-fgt"),yo=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),_o=Symbol.for("v-stc"),bo=[];let Nt=null;function b(e=!1){bo.push(Nt=e?null:[])}function Lm(){bo.pop(),Nt=bo[bo.length-1]||null}let wo=1;function Xu(e){wo+=e,e<0&&Nt&&(Nt.hasOnce=!0)}function Qu(e){return e.dynamicChildren=wo>0?Nt||$r:null,Lm(),wo>0&&Nt&&Nt.push(e),e}function T(e,t,n,r,o,s){return Qu(x(e,t,n,r,o,s,!0))}function Pe(e,t,n,r,o){return Qu(B(e,t,n,r,o,!0))}function Dr(e){return e?e.__v_isVNode===!0:!1}function pr(e,t){if(m.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=gs.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Mm=(...e)=>tc(...e),ec=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||He(e)||fe(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,o=null,s=e===Te?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ec(t),ref:t&&Ps(t),scopeId:_s,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ye};return a?(ra(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),m.NODE_ENV!=="production"&&l.key!==l.key&&U("VNode created with invalid key (NaN). VNode type:",l.type),wo>0&&!i&&Nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Nt.push(l),l}const B=m.NODE_ENV!=="production"?Mm:tc;function tc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===gu)&&(m.NODE_ENV!=="production"&&!e&&U(`Invalid vnode type when creating vnode: ${e}.`),e=Ke),Dr(e)){const a=Vt(e,t,!0);return n&&ra(a,n),wo>0&&!s&&Nt&&(a.shapeFlag&6?Nt[Nt.indexOf(e)]=a:Nt.push(a)),a.patchFlag=-2,a}if(lc(e)&&(e=e.__vccOpts),t){t=Um(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=ns(a)),$e(l)&&(fs(l)&&!ie(l)&&(l=qe({},l)),t.style=yi(l))}const i=Be(e)?1:Rm(e)?128:ym(e)?64:$e(e)?4:fe(e)?2:0;return m.NODE_ENV!=="production"&&i&4&&fs(e)&&(e=me(e),U("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
15
- Component that was made reactive: `,e)),x(e,t,n,r,o,i,s,!0)}function Um(e){return e?fs(e)||Pu(e)?qe({},e):e:null}function Vt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?oa(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ec(u),ref:t&&t.ref?n&&s?ie(s)?s.concat(Ps(t)):[s,Ps(t)]:Ps(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:m.NODE_ENV!=="production"&&i===-1&&ie(a)?a.map(nc):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Es(c,l.clone(c)),c}function nc(e){const t=Vt(e);return ie(e.children)&&(t.children=e.children.map(nc)),t}function Ae(e=" ",t=0){return B(yo,null,e,t)}function Fm(e,t){const n=B(_o,null,e);return n.staticCount=t,n}function ve(e="",t=!1){return t?(b(),Pe(Ke,null,e)):B(Ke,null,e)}function Rt(e){return e==null||typeof e=="boolean"?B(Ke):ie(e)?B(Te,null,e.slice()):typeof e=="object"?Vn(e):B(yo,null,String(e))}function Vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function ra(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ra(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Pu(t)?t._ctx=Ye:o===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Ye},n=32):(t=String(t),r&64?(n=16,t=[Ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function oa(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=ns([t.class,r.class]));else if(o==="style")t.style=yi([t.style,r.style]);else if(to(o)){const s=t[o],i=r[o];i&&s!==i&&!(ie(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Kt(e,t,n,r=null){xt(e,t,7,[n,r])}const Bm=Tu();let Hm=0;function Zm(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Bm,s={uid:Hm++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new wl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Iu(r,o),emitsOptions:Ku(r,o),emit:null,emitted:null,propsDefaults:Le,inheritAttrs:r.inheritAttrs,ctx:Le,data:Le,props:Le,attrs:Le,slots:Le,refs:Le,setupState:Le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return m.NODE_ENV!=="production"?s.ctx=zh(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=$m.bind(null,s),e.ce&&e.ce(s),s}let Ge=null;const $s=()=>Ge||Ye;let Is,sa;{const e=gi(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Is=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),sa=t("__VUE_SSR_SETTERS__",n=>Ds=n)}const Eo=e=>{const t=Ge;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},rc=()=>{Ge&&Ge.scope.off(),Is(null)},qm=tn("slot,component");function ia(e,{isNativeTag:t}){(qm(e)||t(e))&&U("Do not use built-in or reserved HTML elements as component id: "+e)}function oc(e){return e.vnode.shapeFlag&4}let Ds=!1;function Wm(e,t=!1,n=!1){t&&sa(t);const{props:r,children:o}=e.vnode,s=oc(e);sm(e,r,s,t),vm(e,o,n);const i=s?zm(e,t):void 0;return t&&sa(!1),i}function zm(e,t){var n;const r=e.type;if(m.NODE_ENV!=="production"){if(r.name&&ia(r.name,e.appContext.config),r.components){const s=Object.keys(r.components);for(let i=0;i<s.length;i++)ia(s[i],e.appContext.config)}if(r.directives){const s=Object.keys(r.directives);for(let i=0;i<s.length;i++)cu(s[i])}r.compilerOptions&&Km()&&U('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wu),m.NODE_ENV!=="production"&&Kh(e);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Jm(e):null,i=Eo(e);rn();const a=un(o,e,0,[m.NODE_ENV!=="production"?qt(e.props):e.props,s]);if(on(),i(),hi(a)){if(a.then(rc,rc),t)return a.then(l=>{sc(e,l,t)}).catch(l=>{io(l,e,0)});if(e.asyncDep=a,m.NODE_ENV!=="production"&&!e.suspense){const l=(n=r.name)!=null?n:"Anonymous";U(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else sc(e,a,t)}else ic(e,t)}function sc(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$e(t)?(m.NODE_ENV!=="production"&&Dr(t)&&U("setup() should not return VNodes directly - return a render function instead."),m.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Gl(t),m.NODE_ENV!=="production"&&Gh(e)):m.NODE_ENV!=="production"&&t!==void 0&&U(`setup() should return an object. Received: ${t===null?"null":typeof t}`),ic(e,n)}let aa;const Km=()=>!aa;function ic(e,t,n){const r=e.type;if(!e.render){if(!t&&aa&&!r.render){const o=r.template||qi(e).template;if(o){m.NODE_ENV!=="production"&&fn(e,"compile");const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=qe(qe({isCustomElement:s,delimiters:a},i),l);r.render=aa(o,u),m.NODE_ENV!=="production"&&pn(e,"compile")}}e.render=r.render||We}{const o=Eo(e);rn();try{Yh(e)}finally{on(),o()}}m.NODE_ENV!=="production"&&!r.render&&e.render===We&&!t&&(r.template?U('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):U("Component is missing template or render function: ",r))}const ac=m.NODE_ENV!=="production"?{get(e,t){return Cs(),ot(e,"get",""),e[t]},set(){return U("setupContext.attrs is readonly."),!1},deleteProperty(){return U("setupContext.attrs is readonly."),!1}}:{get(e,t){return ot(e,"get",""),e[t]}};function Gm(e){return new Proxy(e.slots,{get(t,n){return ot(e,"get","$slots"),t[n]}})}function Jm(e){const t=n=>{if(m.NODE_ENV!=="production"&&(e.exposed&&U("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(ie(n)?r="array":He(n)&&(r="ref")),r!=="object"&&U(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(m.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,ac))},get slots(){return r||(r=Gm(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,ac),slots:e.slots,emit:e.emit,expose:t}}function la(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gl(Pn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}})):e.proxy}const Ym=/(?:^|[-_])(\w)/g,Xm=e=>e.replace(Ym,t=>t.toUpperCase()).replace(/[-_]/g,"");function ua(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function As(e,t,n=!1){let r=ua(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Xm(r):n?"App":"Anonymous"}function lc(e){return fe(e)&&"__vccOpts"in e}const X=(e,t)=>{const n=nh(e,t,Ds);if(m.NODE_ENV!=="production"){const r=$s();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function je(e,t,n){const r=arguments.length;return r===2?$e(t)&&!ie(t)?Dr(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Dr(n)&&(n=[n]),B(e,t,n))}function Qm(){if(m.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(d){return $e(d)?d.__isVue?["div",e,"VueInstance"]:He(d)?["div",{},["span",e,c(d)],"<",a(d.value),">"]:sn(d)?["div",{},["span",e,ln(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${an(d)?" (readonly)":""}`]:an(d)?["div",{},["span",e,ln(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...s(d.$)]}};function s(d){const f=[];d.type.props&&d.props&&f.push(i("props",me(d.props))),d.setupState!==Le&&f.push(i("setup",d.setupState)),d.data!==Le&&f.push(i("data",me(d.data)));const v=l(d,"computed");v&&f.push(i("computed",v));const g=l(d,"inject");return g&&f.push(i("injected",g)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=qe({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(v=>["div",{},["span",r,v+": "],a(f[v],!1)])]]:["span",{}]}function a(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:$e(d)?["object",{object:f?me(d):d}]:["span",n,String(d)]}function l(d,f){const v=d.type;if(fe(v))return;const g={};for(const E in d.ctx)u(v,E,f)&&(g[E]=d.ctx[E]);return g}function u(d,f,v){const g=d[v];if(ie(g)&&g.includes(f)||$e(g)&&f in g||d.extends&&u(d.extends,f,v)||d.mixins&&d.mixins.some(E=>u(E,f,v)))return!0}function c(d){return ln(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const uc="3.4.38",Rn=m.NODE_ENV!=="production"?U:We;var hn={};const ev="http://www.w3.org/2000/svg",tv="http://www.w3.org/1998/Math/MathML",mn=typeof document<"u"?document:null,cc=mn&&mn.createElement("template"),nv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?mn.createElementNS(ev,e):t==="mathml"?mn.createElementNS(tv,e):n?mn.createElement(e,{is:n}):mn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>mn.createTextNode(e),createComment:e=>mn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{cc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const a=cc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jn="transition",Oo="animation",No=Symbol("_vtc"),So=(e,{slots:t})=>je(Ah,rv(e),t);So.displayName="Transition";const dc={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};So.props=qe({},du,dc);const hr=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},fc=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function rv(e){const t={};for(const R in e)R in dc||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,g=ov(o),E=g&&g[0],O=g&&g[1],{onBeforeEnter:L,onEnter:F,onEnterCancelled:C,onLeave:z,onLeaveCancelled:$,onBeforeAppear:Z=L,onAppear:N=F,onAppearCancelled:de=C}=t,J=(R,oe,_)=>{mr(R,oe?c:a),mr(R,oe?u:i),_&&_()},A=(R,oe)=>{R._isLeaving=!1,mr(R,d),mr(R,v),mr(R,f),oe&&oe()},k=R=>(oe,_)=>{const I=R?N:F,ne=()=>J(oe,R,_);hr(I,[oe,ne]),pc(()=>{mr(oe,R?l:s),Ln(oe,R?c:a),fc(I)||hc(oe,r,E,ne)})};return qe(t,{onBeforeEnter(R){hr(L,[R]),Ln(R,s),Ln(R,i)},onBeforeAppear(R){hr(Z,[R]),Ln(R,l),Ln(R,u)},onEnter:k(!1),onAppear:k(!0),onLeave(R,oe){R._isLeaving=!0;const _=()=>A(R,oe);Ln(R,d),Ln(R,f),av(),pc(()=>{R._isLeaving&&(mr(R,d),Ln(R,v),fc(z)||hc(R,r,O,_))}),hr(z,[R,_])},onEnterCancelled(R){J(R,!1),hr(C,[R])},onAppearCancelled(R){J(R,!0),hr(de,[R])},onLeaveCancelled(R){A(R),hr($,[R])}})}function ov(e){if(e==null)return null;if($e(e))return[ca(e.enter),ca(e.leave)];{const t=ca(e);return[t,t]}}function ca(e){const t=bp(e);return hn.NODE_ENV!=="production"&&ph(t,"<transition> explicit duration"),t}function Ln(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[No]||(e[No]=new Set)).add(t)}function mr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[No];n&&(n.delete(t),n.size||(e[No]=void 0))}function pc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sv=0;function hc(e,t,n,r){const o=e._endId=++sv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=iv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=v=>{v.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function iv(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${jn}Delay`),s=r(`${jn}Duration`),i=mc(o,s),a=r(`${Oo}Delay`),l=r(`${Oo}Duration`),u=mc(a,l);let c=null,d=0,f=0;t===jn?i>0&&(c=jn,d=i,f=s.length):t===Oo?u>0&&(c=Oo,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?jn:Oo:null,f=c?c===jn?s.length:l.length:0);const v=c===jn&&/\b(transform|all)(,|$)/.test(r(`${jn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:v}}function mc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>vc(n)+vc(e[r])))}function vc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function av(){return document.body.offsetHeight}function lv(e,t,n){const r=e[No];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gc=Symbol("_vod"),uv=Symbol("_vsh"),cv=Symbol(hn.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),dv=/(^|;)\s*display\s*:/;function fv(e,t,n){const r=e.style,o=Be(n);let s=!1;if(n&&!o){if(t)if(Be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Vs(r,a,"")}else for(const i in t)n[i]==null&&Vs(r,i,"");for(const i in n)i==="display"&&(s=!0),Vs(r,i,n[i])}else if(o){if(t!==n){const i=r[cv];i&&(n+=";"+i),r.cssText=n,s=dv.test(n)}}else t&&e.removeAttribute("style");gc in e&&(e[gc]=s?r.display:"",e[uv]&&(r.display="none"))}const pv=/[^\\];\s*$/,yc=/\s*!important$/;function Vs(e,t,n){if(ie(n))n.forEach(r=>Vs(e,t,r));else if(n==null&&(n=""),hn.NODE_ENV!=="production"&&pv.test(n)&&Rn(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=hv(e,t);yc.test(n)?e.setProperty(nn(r),n.replace(yc,""),"important"):e[r]=n}}const _c=["Webkit","Moz","ms"],da={};function hv(e,t){const n=da[t];if(n)return n;let r=Et(t);if(r!=="filter"&&r in e)return da[t]=r;r=er(r);for(let o=0;o<_c.length;o++){const s=_c[o]+r;if(s in e)return da[t]=s}return t}const bc="http://www.w3.org/1999/xlink";function wc(e,t,n,r,o,s=$p(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(bc,t.slice(6,t.length)):e.setAttributeNS(bc,t,n):n==null||s&&!yl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":xn(n)?String(n):n)}function mv(e,t,n,r){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=yl(n):n==null&&i==="string"?(n="",s=!0):i==="number"&&(n=0,s=!0)}try{e[t]=n}catch(i){hn.NODE_ENV!=="production"&&!s&&Rn(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,i)}s&&e.removeAttribute(t)}function vv(e,t,n,r){e.addEventListener(t,n,r)}function gv(e,t,n,r){e.removeEventListener(t,n,r)}const Ec=Symbol("_vei");function yv(e,t,n,r,o=null){const s=e[Ec]||(e[Ec]={}),i=s[t];if(r&&i)i.value=hn.NODE_ENV!=="production"?Nc(r,t):r;else{const[a,l]=_v(t);if(r){const u=s[t]=Ev(hn.NODE_ENV!=="production"?Nc(r,t):r,o);vv(e,a,u,l)}else i&&(gv(e,a,i,l),s[t]=void 0)}}const Oc=/(?:Once|Passive|Capture)$/;function _v(e){let t;if(Oc.test(e)){t={};let r;for(;r=e.match(Oc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):nn(e.slice(2)),t]}let fa=0;const bv=Promise.resolve(),wv=()=>fa||(bv.then(()=>fa=0),fa=Date.now());function Ev(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;xt(Ov(r,n.value),t,5,[r])};return n.value=e,n.attached=wv(),n}function Nc(e,t){return fe(e)||ie(e)?e:(Rn(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
16
- Expected function or array of functions, received type ${typeof e}.`),We)}function Ov(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Sc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nv=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?lv(e,r,i):t==="style"?fv(e,n,r):to(t)?Xo(t)||yv(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sv(e,t,r,i))?(mv(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wc(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wc(e,t,r,i))};function Sv(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sc(t)&&fe(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Sc(t)&&Be(n)?!1:t in e}const xv=["ctrl","shift","alt","meta"],Tv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xv.some(n=>e[`${n}Key`]&&!t.includes(n))},kv=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=Tv[t[i]];if(a&&a(o,t))return}return e(o,...s)})},Cv=qe({patchProp:Nv},nv);let xc;function Pv(){return xc||(xc=Om(Cv))}const $v=(...e)=>{const t=Pv().createApp(...e);hn.NODE_ENV!=="production"&&(Dv(t),Av(t));const{mount:n}=t;return t.mount=r=>{const o=Vv(r);if(!o)return;const s=t._component;!fe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Iv(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Iv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dv(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>kp(t)||Cp(t)||Pp(t),writable:!1})}function Av(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Rn("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Rn(r),n},set(){Rn(r)}})}}function Vv(e){if(Be(e)){const t=document.querySelector(e);return hn.NODE_ENV!=="production"&&!t&&Rn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return hn.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Rn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Rv={};function jv(){Qm()}Rv.NODE_ENV!=="production"&&jv();let Rs;const Lv=new Uint8Array(16);function Mv(){if(!Rs&&(Rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rs(Lv)}const st=[];for(let e=0;e<256;++e)st.push((e+256).toString(16).slice(1));function Uv(e,t=0){return st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]}const Tc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function pa(e,t,n){if(Tc.randomUUID&&!t&&!e)return Tc.randomUUID();e=e||{};const r=e.random||(e.rng||Mv)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Uv(r)}var Mn=Symbol("storefront");function Fv(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var js=class lt{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.hasUtm=X(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=P(null),this.loadedUser=P(!1),this.debouncedPushOrderContent=Fv(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=P({id:pa(),status:eo.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1),this.utm=r(`${lt.storefrontKey}_utm`,void 0);return}const s=new URLSearchParams(window.location.search);this.utm=r(`${lt.storefrontKey}_utm`,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(lt.sessionKey);i?(this.currentOrder=P(JSON.parse(i)),this.refreshOrder()):this.currentOrder=P({id:pa(),status:eo.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(lt.storefrontKey);a?(this.storefront=r(lt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!0)):(this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1)),this.updateStorefront(),this.updateUser()}get loadedStorefrontPromise(){return new Promise(t=>{Xe(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get loadedUserPromise(){return new Promise(t=>{Xe(this.loadedUser,n=>{n&&t()},{immediate:!0})})}install(t){t.provide(Mn,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof li||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);t&&(typeof window<"u"&&localStorage.setItem(lt.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency))}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){switch(t.key){case lt.sessionKey:this.currentOrder.value=JSON.parse(t.newValue);break;case lt.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==eo.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:pa(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:eo.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(lt.sessionKey)}};js.userKey="moonbase_user",js.sessionKey="moonbase_session",js.storefrontKey="moonbase_storefront";var Bv=js;function kc(e,t){const n=t??ke(Mn);if(!n)throw new Error("No storefront configured");return X(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function Cc(e,t){const n=t??ke(Mn);if(!n)throw new Error("No storefront configured");return X(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function ha(e){const t=ke(Mn);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function Hv(e,t){const n=ke(Mn),r=sh(e);if(!r)throw new Error("No request ID was given when calling `useActivationRequest`");if(!n)throw new Error("No storefront configured");const o=n.stateFactory(`activation-request-${r}`,null),s=n.stateFactory(`activation-request-${r}-error`,null),i=n.stateFactory(`activation-request-${r}-loading`,!0),a=n.stateFactory(`activation-request-${r}-fulfilling`,!1),l=n.stateFactory(`activation-request-${r}-completing`,!1),u=n.stateFactory(`activation-request-${r}-completion-timeout`,null),c=async()=>{await n.client.activationRequests.isCompleted(r)&&o.value?(o.value.status=Bt.Completed,l.value=!1):u.value=setTimeout(c,1500)};return r&&r.length>0?n.client.activationRequests.get(r).then(d=>{o.value=d,o.value.status===Bt.Fulfilled&&(l.value=!0,c()),i.value=!1}).catch(d=>{s.value=d,i.value=!1}):(s.value=new Error("Missing request id"),i.value=!1),Mi(()=>{u.value&&clearTimeout(u.value)}),Xe(n.currentUser,async()=>{var d,f;if(!(!r||(f=(d=o.value)==null?void 0:d.licenseEligibility)!=null&&f.eligible)){i.value=!0;try{o.value=await n.client.activationRequests.get(r),o.value.status===Bt.Fulfilled&&(l.value=!0,c())}catch(v){s.value=v}i.value=!1}}),{activationRequest:o,loading:i,fulfilling:a,completing:l,error:s,isInstalled:X(()=>{var d;return o&&((d=o.value)==null?void 0:d.status)===Bt.Completed}),fulfillLicense:async()=>{a.value=!0,o.value=await n.client.activationRequests.fulfillLicense(r),a.value=!1,l.value=!0,c()},fulfillTrial:async()=>{a.value=!0,o.value=await n.client.activationRequests.fulfillTrial(r),a.value=!1,l.value=!0,c()},cancel:async()=>{var d;((d=o.value)==null?void 0:d.status)!==Bt.Cancelled&&(o.value=await n.client.activationRequests.cancel(r))}}}function Zv(e){const t=ke(Mn);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof Pr?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof Pr?new Error("Voucher code invalid"):r}}}}function ma(e){const t=e??ke(Mn);if(!t)throw new Error("No storefront configured");return{items:X(()=>t.currentOrder.value.items.map(n=>{if(n.type==="Product"){const r=t.storefront.value.products.find(i=>i.id===n.productId),s=((r==null?void 0:r.variations)||[]).find(i=>i.id===n.variationId);return{...n,product:r,variation:s,price:s==null?void 0:s.price}}else{const r=t.storefront.value.bundles.find(i=>i.id===n.bundleId),s=((r==null?void 0:r.variations)||[]).find(i=>i.id===n.variationId);return{...n,bundle:r,variation:s,price:s==null?void 0:s.price}}})),currency:X(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:X(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const v=t.storefront.value.products.find(O=>O.id===s.productId),E=((v==null?void 0:v.variations)||[]).find(O=>O.id===s.variationId);f=(l=(a=E==null?void 0:E.price[n])!=null?a:(i=v==null?void 0:v.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const v=t.storefront.value.bundles.find(O=>O.id===s.bundleId),E=((v==null?void 0:v.variations)||[]).find(O=>O.id===s.variationId);f=(d=(c=E==null?void 0:E.price[n])!=null?c:(u=v==null?void 0:v.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=w(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);s?s.quantity+=1:n.type==="bundle"?(s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price},t.currentOrder.value.items.push(s)):n.type==="product"&&(s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price},t.currentOrder.value.items.push(s)),t.pushOrderContent()},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}t.pushOrderContent()},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{const r=new URL(n,document.baseURI).href,o=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:r});if(t.currentOrder.value=o,o.checkoutUrl&&typeof window<"u")window.location.href=o.checkoutUrl;else throw new Error("No checkout URL found")}}}function kt(e){const t=e??ke(Mn);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await t.updateStorefront(),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>{await t.client.identity.confirmEmailChange(n,r),t.updateUser()}}}function qv(e,t){const n={endpoint:e};return new Bv(n,new pp(n),(r,o)=>P(o))}var Pc=!1;function Ls(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function va(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Wv(){return $c().__VUE_DEVTOOLS_GLOBAL_HOOK__}function $c(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const zv=typeof Proxy=="function",Kv="devtools-plugin:setup",Gv="plugin:settings:set";let Ar,ga;function Jv(){var e;return Ar!==void 0||(typeof window<"u"&&window.performance?(Ar=!0,ga=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ar=!0,ga=globalThis.perf_hooks.performance):Ar=!1),Ar}function Yv(){return Jv()?ga.now():Date.now()}class Xv{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return Yv()}},n&&n.on(Gv,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ic(e,t){const n=e,r=$c(),o=Wv(),s=zv&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Kv,e,t);else{const i=s?new Xv(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var xe={};let xo;const To=e=>xo=e,Dc=xe.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function vr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gt||(Gt={}));const gr=typeof window<"u",Ac=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Qv(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function ya(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){jc(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Vc(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ms(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Us=typeof navigator=="object"?navigator:{userAgent:""},Rc=/Macintosh/.test(Us.userAgent)&&/AppleWebKit/.test(Us.userAgent)&&!/Safari/.test(Us.userAgent),jc=gr?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Rc?eg:"msSaveOrOpenBlob"in Us?tg:ng:()=>{};function eg(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Vc(r.href)?ya(e,t,n):(r.target="_blank",Ms(r)):Ms(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ms(r)},0))}function tg(e,t="download",n){if(typeof e=="string")if(Vc(e))ya(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Ms(r)})}else navigator.msSaveOrOpenBlob(Qv(e,n),t)}function ng(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return ya(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(Ac.HTMLElement))||"safari"in Ac,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Rc)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function tt(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function _a(e){return"_a"in e&&"install"in e}function Lc(){if(!("clipboard"in navigator))return tt("Your browser doesn't support the Clipboard API","error"),!0}function Mc(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(tt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function rg(e){if(!Lc())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),tt("Global state copied to clipboard.")}catch(t){if(Mc(t))return;tt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function og(e){if(!Lc())try{Uc(e,JSON.parse(await navigator.clipboard.readText())),tt("Global state pasted from clipboard.")}catch(t){if(Mc(t))return;tt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function sg(e){try{jc(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){tt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let vn;function ig(){vn||(vn=document.createElement("input"),vn.type="file",vn.accept=".json");function e(){return new Promise((t,n)=>{vn.onchange=async()=>{const r=vn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},vn.oncancel=()=>t(null),vn.onerror=n,vn.click()})}return e}async function ag(e){try{const n=await ig()();if(!n)return;const{text:r,file:o}=n;Uc(e,JSON.parse(r)),tt(`Global state imported from "${o.name}".`)}catch(t){tt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Uc(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function jt(e){return{_custom:{display:e}}}const Fc="🍍 Pinia (root)",Fs="_root";function lg(e){return _a(e)?{id:Fs,label:Fc}:{id:e.$id,label:e.$id}}function ug(e){if(_a(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function cg(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:jt(e.type),key:jt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function dg(e){switch(e){case Gt.direct:return"mutation";case Gt.patchFunction:return"$patch";case Gt.patchObject:return"$patch";default:return"unknown"}}let Vr=!0;const Bs=[],yr="pinia:mutations",pt="pinia",{assign:fg}=Object,Hs=e=>"🍍 "+e;function pg(e,t){Ic({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Bs,app:e},n=>{typeof n.now!="function"&&tt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:yr,label:"Pinia 🍍",color:15064968}),n.addInspector({id:pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{rg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await og(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{sg(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await ag(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?tt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),tt(`Store "${r}" reset.`)):tt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:Hs(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:me(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Hs(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===pt){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Fc.toLowerCase().includes(r.filter.toLowerCase())):o).map(lg)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===pt){const o=r.nodeId===Fs?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==Fs&&(globalThis.$store=me(o)),r.state=ug(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===pt){const s=r.nodeId===Fs?t:t._s.get(r.nodeId);if(!s)return tt(`store "${r.nodeId}" not found`,"error");const{path:i}=r;_a(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Vr=!1,r.set(s,i,r.state.value),Vr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return tt(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return tt(`Invalid path for store "${o}":
14
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const _t=Fm;function km(e){return Tm(e)}function Tm(e,t){xm();const n=wi();n.__VUE__=!0,g.NODE_ENV!=="production"&&uu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:m=We,insertStaticContent:v}=e,N=(p,h,k,L=null,A=null,M=null,J=void 0,q=null,W=g.NODE_ENV!=="production"&&Dn?!1:!!h.dynamicChildren)=>{if(p===h)return;p&&!hr(p,h)&&(L=oi(p),bt(p,A,M,!0),p=null),h.patchFlag===-2&&(W=!1,h.dynamicChildren=null);const{type:R,ref:Q,shapeFlag:le}=h;switch(R){case yo:S(p,h,k,L);break;case Ke:D(p,h,k,L);break;case _o:p==null?B(h,k,L,J):g.NODE_ENV!=="production"&&P(p,h,k,J);break;case ke:oe(p,h,k,L,A,M,J,q,W);break;default:le&1?Z(p,h,k,L,A,M,J,q,W):le&6?w(p,h,k,L,A,M,J,q,W):le&64||le&128?R.process(p,h,k,L,A,M,J,q,W,Ro):g.NODE_ENV!=="production"&&U("Invalid VNode type:",R,`(${typeof R})`)}Q!=null&&A&&ta(Q,p&&p.ref,M,h||p,!h)},S=(p,h,k,L)=>{if(p==null)r(h.el=a(h.children),k,L);else{const A=h.el=p.el;h.children!==p.children&&u(A,h.children)}},D=(p,h,k,L)=>{p==null?r(h.el=l(h.children||""),k,L):h.el=p.el},B=(p,h,k,L)=>{[p.el,p.anchor]=v(p.children,h,k,L,p.el,p.anchor)},P=(p,h,k,L)=>{if(h.children!==p.children){const A=f(p.anchor);$(p),[h.el,h.anchor]=v(h.children,k,A,L)}else h.el=p.el,h.anchor=p.anchor},K=({el:p,anchor:h},k,L)=>{let A;for(;p&&p!==h;)A=f(p),r(p,k,L),p=A;r(h,k,L)},$=({el:p,anchor:h})=>{let k;for(;p&&p!==h;)k=f(p),o(p),p=k;o(h)},Z=(p,h,k,L,A,M,J,q,W)=>{h.type==="svg"?J="svg":h.type==="math"&&(J="mathml"),p==null?x(h,k,L,A,M,J,q,W):V(p,h,A,M,J,q,W)},x=(p,h,k,L,A,M,J,q)=>{let W,R;const{props:Q,shapeFlag:le,transition:se,dirs:we}=p;if(W=p.el=i(p.type,M,Q&&Q.is,Q),le&8?c(W,p.children):le&16&&Y(p.children,W,null,L,A,ra(p,M),J,q),we&&lr(p,null,L,"created"),de(W,p,p.scopeId,J,L),Q){for(const Fe in Q)Fe!=="value"&&!no(Fe)&&s(W,Fe,null,Q[Fe],M,L);"value"in Q&&s(W,"value",null,Q.value,M),(R=Q.onVnodeBeforeMount)&&Yt(R,L,p)}g.NODE_ENV!=="production"&&(ts(W,"__vnode",p,!0),ts(W,"__vueParentComponent",L,!0)),we&&lr(p,null,L,"beforeMount");const Se=Cm(A,se);Se&&se.beforeEnter(W),r(W,h,k),((R=Q&&Q.onVnodeMounted)||Se||we)&&_t(()=>{R&&Yt(R,L,p),Se&&se.enter(W),we&&lr(p,null,L,"mounted")},A)},de=(p,h,k,L,A)=>{if(k&&m(p,k),L)for(let M=0;M<L.length;M++)m(p,L[M]);if(A){let M=A.subTree;if(g.NODE_ENV!=="production"&&M.patchFlag>0&&M.patchFlag&2048&&(M=aa(M.children)||M),h===M){const J=A.vnode;de(p,J,J.scopeId,J.slotScopeIds,A.parent)}}},Y=(p,h,k,L,A,M,J,q,W=0)=>{for(let R=W;R<p.length;R++){const Q=p[R]=q?Rn(p[R]):jt(p[R]);N(null,Q,h,k,L,A,M,J,q)}},V=(p,h,k,L,A,M,J)=>{const q=h.el=p.el;g.NODE_ENV!=="production"&&(q.__vnode=h);let{patchFlag:W,dynamicChildren:R,dirs:Q}=h;W|=p.patchFlag&16;const le=p.props||Me,se=h.props||Me;let we;if(k&&fr(k,!1),(we=se.onVnodeBeforeUpdate)&&Yt(we,k,h,p),Q&&lr(h,p,k,"beforeUpdate"),k&&fr(k,!0),g.NODE_ENV!=="production"&&Dn&&(W=0,J=!1,R=null),(le.innerHTML&&se.innerHTML==null||le.textContent&&se.textContent==null)&&c(q,""),R?(C(p.dynamicChildren,R,q,k,L,ra(h,A),M),g.NODE_ENV!=="production"&&go(p,h)):J||ue(p,h,q,null,k,L,ra(h,A),M,!1),W>0){if(W&16)j(q,le,se,k,A);else if(W&2&&le.class!==se.class&&s(q,"class",null,se.class,A),W&4&&s(q,"style",le.style,se.style,A),W&8){const Se=h.dynamicProps;for(let Fe=0;Fe<Se.length;Fe++){const Ae=Se[Fe],rt=le[Ae],Ut=se[Ae];(Ut!==rt||Ae==="value")&&s(q,Ae,rt,Ut,A,k)}}W&1&&p.children!==h.children&&c(q,h.children)}else!J&&R==null&&j(q,le,se,k,A);((we=se.onVnodeUpdated)||Q)&&_t(()=>{we&&Yt(we,k,h,p),Q&&lr(h,p,k,"updated")},L)},C=(p,h,k,L,A,M,J)=>{for(let q=0;q<h.length;q++){const W=p[q],R=h[q],Q=W.el&&(W.type===ke||!hr(W,R)||W.shapeFlag&70)?d(W.el):k;N(W,R,Q,null,L,A,M,J,!0)}},j=(p,h,k,L,A)=>{if(h!==k){if(h!==Me)for(const M in h)!no(M)&&!(M in k)&&s(p,M,h[M],null,A,L);for(const M in k){if(no(M))continue;const J=k[M],q=h[M];J!==q&&M!=="value"&&s(p,M,q,J,A,L)}"value"in k&&s(p,"value",h.value,k.value,A)}},oe=(p,h,k,L,A,M,J,q,W)=>{const R=h.el=p?p.el:a(""),Q=h.anchor=p?p.anchor:a("");let{patchFlag:le,dynamicChildren:se,slotScopeIds:we}=h;g.NODE_ENV!=="production"&&(Dn||le&2048)&&(le=0,W=!1,se=null),we&&(q=q?q.concat(we):we),p==null?(r(R,k,L),r(Q,k,L),Y(h.children||[],k,Q,A,M,J,q,W)):le>0&&le&64&&se&&p.dynamicChildren?(C(p.dynamicChildren,se,k,A,M,J,q),g.NODE_ENV!=="production"?go(p,h):(h.key!=null||A&&h===A.subTree)&&go(p,h,!0)):ue(p,h,k,Q,A,M,J,q,W)},w=(p,h,k,L,A,M,J,q,W)=>{h.slotScopeIds=q,p==null?h.shapeFlag&512?A.ctx.activate(h,k,L,J,W):I(h,k,L,A,M,J,W):ne(p,h,W)},I=(p,h,k,L,A,M,J)=>{const q=p.component=Km(p,L,A);if(g.NODE_ENV!=="production"&&q.type.__hmrId&&Oh(q),g.NODE_ENV!=="production"&&(hs(p),pn(q,"mount")),ho(p)&&(q.ctx.renderer=Ro),g.NODE_ENV!=="production"&&pn(q,"init"),Jm(q,!1,J),g.NODE_ENV!=="production"&&hn(q,"init"),q.asyncDep){if(A&&A.registerDep(q,ae,J),!p.el){const W=q.subTree=F(Ke);D(null,W,h,k)}}else ae(q,p,h,k,A,M,J);g.NODE_ENV!=="production"&&(ms(),hn(q,"mount"))},ne=(p,h,k)=>{const L=h.component=p.component;if(Lm(p,h,k))if(L.asyncDep&&!L.asyncResolved){g.NODE_ENV!=="production"&&hs(h),re(L,h,k),g.NODE_ENV!=="production"&&ms();return}else L.next=h,wh(L.update),L.effect.dirty=!0,L.update();else h.el=p.el,L.vnode=h},ae=(p,h,k,L,A,M,J)=>{const q=()=>{if(p.isMounted){let{next:Q,bu:le,u:se,parent:we,vnode:Se}=p;{const Lr=Wu(p);if(Lr){Q&&(Q.el=Se.el,re(p,Q,J)),Lr.asyncDep.then(()=>{p.isUnmounted||q()});return}}let Fe=Q,Ae;g.NODE_ENV!=="production"&&hs(Q||p.vnode),fr(p,!1),Q?(Q.el=Se.el,re(p,Q,J)):Q=Se,le&&ro(le),(Ae=Q.props&&Q.props.onVnodeBeforeUpdate)&&Yt(Ae,we,Q,Se),fr(p,!0),g.NODE_ENV!=="production"&&pn(p,"render");const rt=ia(p);g.NODE_ENV!=="production"&&hn(p,"render");const Ut=p.subTree;p.subTree=rt,g.NODE_ENV!=="production"&&pn(p,"patch"),N(Ut,rt,d(Ut.el),oi(Ut),p,A,M),g.NODE_ENV!=="production"&&hn(p,"patch"),Q.el=rt.el,Fe===null&&Mm(p,rt.el),se&&_t(se,A),(Ae=Q.props&&Q.props.onVnodeUpdated)&&_t(()=>Yt(Ae,we,Q,Se),A),g.NODE_ENV!=="production"&&cu(p),g.NODE_ENV!=="production"&&ms()}else{let Q;const{el:le,props:se}=h,{bm:we,m:Se,parent:Fe}=p,Ae=po(h);if(fr(p,!1),we&&ro(we),!Ae&&(Q=se&&se.onVnodeBeforeMount)&&Yt(Q,Fe,h),fr(p,!0),le&&Bd){const rt=()=>{g.NODE_ENV!=="production"&&pn(p,"render"),p.subTree=ia(p),g.NODE_ENV!=="production"&&hn(p,"render"),g.NODE_ENV!=="production"&&pn(p,"hydrate"),Bd(le,p.subTree,p,A,null),g.NODE_ENV!=="production"&&hn(p,"hydrate")};Ae?h.type.__asyncLoader().then(()=>!p.isUnmounted&&rt()):rt()}else{g.NODE_ENV!=="production"&&pn(p,"render");const rt=p.subTree=ia(p);g.NODE_ENV!=="production"&&hn(p,"render"),g.NODE_ENV!=="production"&&pn(p,"patch"),N(null,rt,k,L,p,A,M),g.NODE_ENV!=="production"&&hn(p,"patch"),h.el=rt.el}if(Se&&_t(Se,A),!Ae&&(Q=se&&se.onVnodeMounted)){const rt=h;_t(()=>Yt(Q,Fe,rt),A)}(h.shapeFlag&256||Fe&&po(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&p.a&&_t(p.a,A),p.isMounted=!0,g.NODE_ENV!=="production"&&Ch(p),h=k=L=null}},W=p.effect=new Ni(q,We,()=>vs(R),p.scope),R=p.update=()=>{W.dirty&&W.run()};R.i=p,R.id=p.uid,fr(p,!0),g.NODE_ENV!=="production"&&(W.onTrack=p.rtc?Q=>ro(p.rtc,Q):void 0,W.onTrigger=p.rtg?Q=>ro(p.rtg,Q):void 0),R()},re=(p,h,k)=>{h.component=p;const L=p.vnode.props;p.vnode=h,p.next=null,dm(p,h.props,L,k),wm(p,h.children,k),sn(),ou(p),an()},ue=(p,h,k,L,A,M,J,q,W=!1)=>{const R=p&&p.children,Q=p?p.shapeFlag:0,le=h.children,{patchFlag:se,shapeFlag:we}=h;if(se>0){if(se&128){je(R,le,k,L,A,M,J,q,W);return}else if(se&256){Ie(R,le,k,L,A,M,J,q,W);return}}we&8?(Q&16&&Vo(R,A,M),le!==R&&c(k,le)):Q&16?we&16?je(R,le,k,L,A,M,J,q,W):Vo(R,A,M,!0):(Q&8&&c(k,""),we&16&&Y(le,k,L,A,M,J,q,W))},Ie=(p,h,k,L,A,M,J,q,W)=>{p=p||$r,h=h||$r;const R=p.length,Q=h.length,le=Math.min(R,Q);let se;for(se=0;se<le;se++){const we=h[se]=W?Rn(h[se]):jt(h[se]);N(p[se],we,k,null,A,M,J,q,W)}R>Q?Vo(p,A,M,!0,!1,le):Y(h,k,L,A,M,J,q,W,le)},je=(p,h,k,L,A,M,J,q,W)=>{let R=0;const Q=h.length;let le=p.length-1,se=Q-1;for(;R<=le&&R<=se;){const we=p[R],Se=h[R]=W?Rn(h[R]):jt(h[R]);if(hr(we,Se))N(we,Se,k,null,A,M,J,q,W);else break;R++}for(;R<=le&&R<=se;){const we=p[le],Se=h[se]=W?Rn(h[se]):jt(h[se]);if(hr(we,Se))N(we,Se,k,null,A,M,J,q,W);else break;le--,se--}if(R>le){if(R<=se){const we=se+1,Se=we<Q?h[we].el:L;for(;R<=se;)N(null,h[R]=W?Rn(h[R]):jt(h[R]),k,Se,A,M,J,q,W),R++}}else if(R>se)for(;R<=le;)bt(p[R],A,M,!0),R++;else{const we=R,Se=R,Fe=new Map;for(R=Se;R<=se;R++){const yt=h[R]=W?Rn(h[R]):jt(h[R]);yt.key!=null&&(g.NODE_ENV!=="production"&&Fe.has(yt.key)&&U("Duplicate keys found during update:",JSON.stringify(yt.key),"Make sure keys are unique."),Fe.set(yt.key,R))}let Ae,rt=0;const Ut=se-Se+1;let Lr=!1,Hd=0;const jo=new Array(Ut);for(R=0;R<Ut;R++)jo[R]=0;for(R=we;R<=le;R++){const yt=p[R];if(rt>=Ut){bt(yt,A,M,!0);continue}let en;if(yt.key!=null)en=Fe.get(yt.key);else for(Ae=Se;Ae<=se;Ae++)if(jo[Ae-Se]===0&&hr(yt,h[Ae])){en=Ae;break}en===void 0?bt(yt,A,M,!0):(jo[en-Se]=R+1,en>=Hd?Hd=en:Lr=!0,N(yt,h[en],k,null,A,M,J,q,W),rt++)}const Zd=Lr?Pm(jo):$r;for(Ae=Zd.length-1,R=Ut-1;R>=0;R--){const yt=Se+R,en=h[yt],qd=yt+1<Q?h[yt+1].el:L;jo[R]===0?N(null,en,k,qd,A,M,J,q,W):Lr&&(Ae<0||R!==Zd[Ae]?nt(en,k,qd,2):Ae--)}}},nt=(p,h,k,L,A=null)=>{const{el:M,type:J,transition:q,children:W,shapeFlag:R}=p;if(R&6){nt(p.component.subTree,h,k,L);return}if(R&128){p.suspense.move(h,k,L);return}if(R&64){J.move(p,h,k,Ro);return}if(J===ke){r(M,h,k);for(let le=0;le<W.length;le++)nt(W[le],h,k,L);r(p.anchor,h,k);return}if(J===_o){K(p,h,k);return}if(L!==2&&R&1&&q)if(L===0)q.beforeEnter(M),r(M,h,k),_t(()=>q.enter(M),A);else{const{leave:le,delayLeave:se,afterLeave:we}=q,Se=()=>r(M,h,k),Fe=()=>{le(M,()=>{Se(),we&&we()})};se?se(M,Se,Fe):Fe()}else r(M,h,k)},bt=(p,h,k,L=!1,A=!1)=>{const{type:M,props:J,ref:q,children:W,dynamicChildren:R,shapeFlag:Q,patchFlag:le,dirs:se,cacheIndex:we}=p;if(le===-2&&(A=!1),q!=null&&ta(q,null,k,p,!0),we!=null&&(h.renderCache[we]=void 0),Q&256){h.ctx.deactivate(p);return}const Se=Q&1&&se,Fe=!po(p);let Ae;if(Fe&&(Ae=J&&J.onVnodeBeforeUnmount)&&Yt(Ae,h,p),Q&6)vw(p.component,k,L);else{if(Q&128){p.suspense.unmount(k,L);return}Se&&lr(p,null,h,"beforeUnmount"),Q&64?p.type.remove(p,h,k,Ro,L):R&&!R.hasOnce&&(M!==ke||le>0&&le&64)?Vo(R,h,k,!1,!0):(M===ke&&le&384||!A&&Q&16)&&Vo(W,h,k),L&&bn(p)}(Fe&&(Ae=J&&J.onVnodeUnmounted)||Se)&&_t(()=>{Ae&&Yt(Ae,h,p),Se&&lr(p,null,h,"unmounted")},k)},bn=p=>{const{type:h,el:k,anchor:L,transition:A}=p;if(h===ke){g.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&A&&!A.persisted?p.children.forEach(J=>{J.type===Ke?o(J.el):bn(J)}):Gn(k,L);return}if(h===_o){$(p);return}const M=()=>{o(k),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(p.shapeFlag&1&&A&&!A.persisted){const{leave:J,delayLeave:q}=A,W=()=>J(k,M);q?q(p.el,M,W):W()}else M()},Gn=(p,h)=>{let k;for(;p!==h;)k=f(p),o(p),p=k;o(h)},vw=(p,h,k)=>{g.NODE_ENV!=="production"&&p.type.__hmrId&&Nh(p);const{bum:L,scope:A,update:M,subTree:J,um:q,m:W,a:R}=p;zu(W),zu(R),L&&ro(L),A.stop(),M&&(M.active=!1,bt(J,p,h,k)),q&&_t(q,h),_t(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve()),g.NODE_ENV!=="production"&&$h(p)},Vo=(p,h,k,L=!1,A=!1,M=0)=>{for(let J=M;J<p.length;J++)bt(p[J],h,k,L,A)},oi=p=>{if(p.shapeFlag&6)return oi(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=f(p.anchor||p.el),k=h&&h[Fu];return k?f(k):h};let Wa=!1;const Ud=(p,h,k)=>{p==null?h._vnode&&bt(h._vnode,null,null,!0):N(h._vnode||null,p,h,null,null,null,k),h._vnode=p,Wa||(Wa=!0,ou(),su(),Wa=!1)},Ro={p:N,um:bt,m:nt,r:bn,mt:I,mc:Y,pc:ue,pbc:C,n:oi,o:e};let Fd,Bd;return{render:Ud,hydrate:Fd,createApp:am(Ud,Fd)}}function ra({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 fr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function go(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Rn(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&go(i,a)),a.type===yo&&(a.el=i.el),g.NODE_ENV!=="production"&&a.type===Ke&&!a.el&&(a.el=i.el)}}function Pm(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Wu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wu(t)}function zu(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const $m=Symbol.for("v-scx"),Im=()=>{{const e=$e($m);return e||g.NODE_ENV!=="production"&&U("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ft(e,t){return oa(e,null,t)}const ks={};function Xe(e,t,n){return g.NODE_ENV!=="production"&&!fe(t)&&U("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),oa(e,t,n)}function oa(e,t,{immediate:n,deep:r,flush:o,once:s,onTrack:i,onTrigger:a}=Me){if(t&&s){const x=t;t=(...de)=>{x(...de),Z()}}g.NODE_ENV!=="production"&&r!==void 0&&typeof r=="number"&&U('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),g.NODE_ENV!=="production"&&!t&&(n!==void 0&&U('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&U('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&U('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=x=>{U("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Ge,c=x=>r===!0?x:pr(x,r===!1?1:void 0);let d,f=!1,m=!1;if(He(e)?(d=()=>e.value,f=cn(e)):ln(e)?(d=()=>c(e),f=!0):ie(e)?(m=!0,f=e.some(x=>ln(x)||cn(x)),d=()=>e.map(x=>{if(He(x))return x.value;if(ln(x))return c(x);if(fe(x))return dn(x,u,2);g.NODE_ENV!=="production"&&l(x)})):fe(e)?t?d=()=>dn(e,u,2):d=()=>(v&&v(),kt(e,u,3,[N])):(d=We,g.NODE_ENV!=="production"&&l(e)),t&&r){const x=d;d=()=>pr(x())}let v,N=x=>{v=K.onStop=()=>{dn(x,u,4),v=K.onStop=void 0}},S;if(Ds)if(N=We,t?n&&kt(t,u,3,[d(),m?[]:void 0,N]):d(),o==="sync"){const x=Im();S=x.__watcherHandles||(x.__watcherHandles=[])}else return We;let D=m?new Array(e.length).fill(ks):ks;const B=()=>{if(!(!K.active||!K.dirty))if(t){const x=K.run();(r||f||(m?x.some((de,Y)=>Tn(de,D[Y])):Tn(x,D)))&&(v&&v(),kt(t,u,3,[x,D===ks?void 0:m&&D[0]===ks?[]:D,N]),D=x)}else K.run()};B.allowRecurse=!!t;let P;o==="sync"?P=B:o==="post"?P=()=>_t(B,u&&u.suspense):(B.pre=!0,u&&(B.id=u.uid),P=()=>vs(B));const K=new Ni(d,We,P),$=Sl(),Z=()=>{K.stop(),$&&gi($.effects,K)};return g.NODE_ENV!=="production"&&(K.onTrack=i,K.onTrigger=a),t?n?B():D=K.run():o==="post"?_t(K.run.bind(K),u&&u.suspense):K.run(),S&&S.push(Z),Z}function Dm(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?Ku(r,e):()=>r[e]:e.bind(r,r);let s;fe(t)?s=t:(s=t.handler,n=t);const i=Eo(this),a=oa(o,s.bind(r),n);return i(),a}function Ku(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function pr(e,t=1/0,n){if(t<=0||!De(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,He(e))pr(e.value,t,n);else if(ie(e))for(let r=0;r<e.length;r++)pr(e[r],t,n);else if(vl(e)||er(e))e.forEach(r=>{pr(r,t,n)});else if(yl(e)){for(const r in e)pr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pr(e[r],t,n)}return e}const Am=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${on(t)}Modifiers`];function Vm(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Me;if(g.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(nr(Et(t))in d))&&U(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${nr(Et(t))}" prop.`);else{const f=c[t];fe(f)&&(f(...n)||U(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&Am(r,t.slice(7));if(i&&(i.trim&&(o=n.map(c=>Be(c)?c.trim():c)),i.number&&(o=n.map(Op))),g.NODE_ENV!=="production"&&Ah(e,t,o),g.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&r[nr(c)]&&U(`Event "${c}" is emitted in component ${As(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${on(t)}" instead of "${t}".`)}let a,l=r[a=nr(t)]||r[a=nr(Et(t))];!l&&s&&(l=r[a=nr(on(t))]),l&&kt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,kt(u,e,6,o)}}function Gu(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!fe(e)){const l=u=>{const c=Gu(u,t,!0);c&&(a=!0,qe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(De(e)&&r.set(e,null),null):(ie(s)?s.forEach(l=>i[l]=null):qe(i,s),De(e)&&r.set(e,i),i)}function Ts(e,t){return!e||!to(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,on(t))||Ne(e,t))}let sa=!1;function Cs(){sa=!0}function ia(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:m,ctx:v,inheritAttrs:N}=e,S=bs(e);let D,B;g.NODE_ENV!=="production"&&(sa=!1);try{if(n.shapeFlag&4){const $=o||r,Z=g.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy($,{get(x,de,Y){return U(`Property '${String(de)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(x,de,Y)}}):$;D=jt(u.call(Z,$,c,g.NODE_ENV!=="production"?zt(d):d,m,f,v)),B=a}else{const $=t;g.NODE_ENV!=="production"&&a===d&&Cs(),D=jt($.length>1?$(g.NODE_ENV!=="production"?zt(d):d,g.NODE_ENV!=="production"?{get attrs(){return Cs(),zt(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):$(g.NODE_ENV!=="production"?zt(d):d,null)),B=t.props?a:Rm(a)}}catch($){bo.length=0,io($,e,1),D=F(Ke)}let P=D,K;if(g.NODE_ENV!=="production"&&D.patchFlag>0&&D.patchFlag&2048&&([P,K]=Ju(D)),B&&N!==!1){const $=Object.keys(B),{shapeFlag:Z}=P;if($.length){if(Z&7)s&&$.some(Xo)&&(B=jm(B,s)),P=Rt(P,B,!1,!0);else if(g.NODE_ENV!=="production"&&!sa&&P.type!==Ke){const x=Object.keys(a),de=[],Y=[];for(let V=0,C=x.length;V<C;V++){const j=x[V];to(j)?Xo(j)||de.push(j[2].toLowerCase()+j.slice(3)):Y.push(j)}Y.length&&U(`Extraneous non-props attributes (${Y.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),de.length&&U(`Extraneous non-emits event listeners (${de.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(g.NODE_ENV!=="production"&&!Yu(P)&&U("Runtime directive used on component with non-element root node. The directives will not function as intended."),P=Rt(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(g.NODE_ENV!=="production"&&!Yu(P)&&U("Component inside <Transition> renders non-element root node that cannot be animated."),P.transition=n.transition),g.NODE_ENV!=="production"&&K?K(P):D=P,bs(S),D}const Ju=e=>{const t=e.children,n=e.dynamicChildren,r=aa(t,!1);if(r){if(g.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Ju(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[jt(r),i]};function aa(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Dr(o)){if(o.type!==Ke||o.children==="v-if"){if(n)return;if(n=o,g.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return aa(n.children)}}else return}return n}const Rm=e=>{let t;for(const n in e)(n==="class"||n==="style"||to(n))&&((t||(t={}))[n]=e[n]);return t},jm=(e,t)=>{const n={};for(const r in e)(!Xo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Yu=e=>e.shapeFlag&7||e.type===Ke;function Lm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(g.NODE_ENV!=="production"&&(o||a)&&Dn||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Xu(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==r[f]&&!Ts(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Xu(r,i,u):!0:!!i;return!1}function Xu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!Ts(n,s))return!0}return!1}function Mm({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Um=e=>e.__isSuspense;function Fm(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):ru(e)}const ke=Symbol.for("v-fgt"),yo=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),_o=Symbol.for("v-stc"),bo=[];let Nt=null;function y(e=!1){bo.push(Nt=e?null:[])}function Bm(){bo.pop(),Nt=bo[bo.length-1]||null}let wo=1;function Qu(e){wo+=e,e<0&&Nt&&(Nt.hasOnce=!0)}function ec(e){return e.dynamicChildren=wo>0?Nt||$r:null,Bm(),wo>0&&Nt&&Nt.push(e),e}function O(e,t,n,r,o,s){return ec(E(e,t,n,r,o,s,!0))}function xe(e,t,n,r,o){return ec(F(e,t,n,r,o,!0))}function Dr(e){return e?e.__v_isVNode===!0:!1}function hr(e,t){if(g.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=gs.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Hm=(...e)=>nc(...e),tc=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||He(e)||fe(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,r=0,o=null,s=e===ke?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tc(t),ref:t&&Ps(t),scopeId:_s,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ye};return a?(la(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),g.NODE_ENV!=="production"&&l.key!==l.key&&U("VNode created with invalid key (NaN). VNode type:",l.type),wo>0&&!i&&Nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Nt.push(l),l}const F=g.NODE_ENV!=="production"?Hm:nc;function nc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===_u)&&(g.NODE_ENV!=="production"&&!e&&U(`Invalid vnode type when creating vnode: ${e}.`),e=Ke),Dr(e)){const a=Rt(e,t,!0);return n&&la(a,n),wo>0&&!s&&Nt&&(a.shapeFlag&6?Nt[Nt.indexOf(e)]=a:Nt.push(a)),a.patchFlag=-2,a}if(uc(e)&&(e=e.__vccOpts),t){t=Zm(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=ns(a)),De(l)&&(fs(l)&&!ie(l)&&(l=qe({},l)),t.style=Ei(l))}const i=Be(e)?1:Um(e)?128:Em(e)?64:De(e)?4:fe(e)?2:0;return g.NODE_ENV!=="production"&&i&4&&fs(e)&&(e=ge(e),U("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
15
+ Component that was made reactive: `,e)),E(e,t,n,r,o,i,s,!0)}function Zm(e){return e?fs(e)||$u(e)?qe({},e):e:null}function Rt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?ua(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&tc(u),ref:t&&t.ref?n&&s?ie(s)?s.concat(Ps(t)):[s,Ps(t)]:Ps(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g.NODE_ENV!=="production"&&i===-1&&ie(a)?a.map(rc):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Es(c,l.clone(c)),c}function rc(e){const t=Rt(e);return ie(e.children)&&(t.children=e.children.map(rc)),t}function Te(e=" ",t=0){return F(yo,null,e,t)}function qm(e,t){const n=F(_o,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(y(),xe(Ke,null,e)):F(Ke,null,e)}function jt(e){return e==null||typeof e=="boolean"?F(Ke):ie(e)?F(ke,null,e.slice()):typeof e=="object"?Rn(e):F(yo,null,String(e))}function Rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function la(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),la(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!$u(t)?t._ctx=Ye:o===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Ye},n=32):(t=String(t),r&64?(n=16,t=[Te(t)]):n=8);e.children=t,e.shapeFlag|=n}function ua(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=ns([t.class,r.class]));else if(o==="style")t.style=Ei([t.style,r.style]);else if(to(o)){const s=t[o],i=r[o];i&&s!==i&&!(ie(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Yt(e,t,n,r=null){kt(e,t,7,[n,r])}const Wm=Tu();let zm=0;function Km(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Wm,s={uid:zm++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ol(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Du(r,o),emitsOptions:Gu(r,o),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:r.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return g.NODE_ENV!=="production"?s.ctx=Yh(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=Vm.bind(null,s),e.ce&&e.ce(s),s}let Ge=null;const $s=()=>Ge||Ye;let Is,ca;{const e=wi(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Is=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),ca=t("__VUE_SSR_SETTERS__",n=>Ds=n)}const Eo=e=>{const t=Ge;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},oc=()=>{Ge&&Ge.scope.off(),Is(null)},Gm=rn("slot,component");function da(e,{isNativeTag:t}){(Gm(e)||t(e))&&U("Do not use built-in or reserved HTML elements as component id: "+e)}function sc(e){return e.vnode.shapeFlag&4}let Ds=!1;function Jm(e,t=!1,n=!1){t&&ca(t);const{props:r,children:o}=e.vnode,s=sc(e);um(e,r,s,t),bm(e,o,n);const i=s?Ym(e,t):void 0;return t&&ca(!1),i}function Ym(e,t){var n;const r=e.type;if(g.NODE_ENV!=="production"){if(r.name&&da(r.name,e.appContext.config),r.components){const s=Object.keys(r.components);for(let i=0;i<s.length;i++)da(s[i],e.appContext.config)}if(r.directives){const s=Object.keys(r.directives);for(let i=0;i<s.length;i++)fu(s[i])}r.compilerOptions&&Xm()&&U('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Eu),g.NODE_ENV!=="production"&&Xh(e);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?ev(e):null,i=Eo(e);sn();const a=dn(o,e,0,[g.NODE_ENV!=="production"?zt(e.props):e.props,s]);if(an(),i(),yi(a)){if(a.then(oc,oc),t)return a.then(l=>{ic(e,l,t)}).catch(l=>{io(l,e,0)});if(e.asyncDep=a,g.NODE_ENV!=="production"&&!e.suspense){const l=(n=r.name)!=null?n:"Anonymous";U(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else ic(e,a,t)}else ac(e,t)}function ic(e,t,n){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)?(g.NODE_ENV!=="production"&&Dr(t)&&U("setup() should not return VNodes directly - return a render function instead."),g.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Yl(t),g.NODE_ENV!=="production"&&Qh(e)):g.NODE_ENV!=="production"&&t!==void 0&&U(`setup() should return an object. Received: ${t===null?"null":typeof t}`),ac(e,n)}let fa;const Xm=()=>!fa;function ac(e,t,n){const r=e.type;if(!e.render){if(!t&&fa&&!r.render){const o=r.template||Ji(e).template;if(o){g.NODE_ENV!=="production"&&pn(e,"compile");const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=qe(qe({isCustomElement:s,delimiters:a},i),l);r.render=fa(o,u),g.NODE_ENV!=="production"&&hn(e,"compile")}}e.render=r.render||We}{const o=Eo(e);sn();try{tm(e)}finally{an(),o()}}g.NODE_ENV!=="production"&&!r.render&&e.render===We&&!t&&(r.template?U('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):U("Component is missing template or render function: ",r))}const lc=g.NODE_ENV!=="production"?{get(e,t){return Cs(),ot(e,"get",""),e[t]},set(){return U("setupContext.attrs is readonly."),!1},deleteProperty(){return U("setupContext.attrs is readonly."),!1}}:{get(e,t){return ot(e,"get",""),e[t]}};function Qm(e){return new Proxy(e.slots,{get(t,n){return ot(e,"get","$slots"),t[n]}})}function ev(e){const t=n=>{if(g.NODE_ENV!=="production"&&(e.exposed&&U("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(ie(n)?r="array":He(n)&&(r="ref")),r!=="object"&&U(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(g.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,lc))},get slots(){return r||(r=Qm(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,lc),slots:e.slots,emit:e.emit,expose:t}}function pa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yl($n(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ur)return ur[n](e)},has(t,n){return n in t||n in ur}})):e.proxy}const tv=/(?:^|[-_])(\w)/g,nv=e=>e.replace(tv,t=>t.toUpperCase()).replace(/[-_]/g,"");function ha(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function As(e,t,n=!1){let r=ha(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?nv(r):n?"App":"Anonymous"}function uc(e){return fe(e)&&"__vccOpts"in e}const X=(e,t)=>{const n=ih(e,t,Ds);if(g.NODE_ENV!=="production"){const r=$s();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Le(e,t,n){const r=arguments.length;return r===2?De(t)&&!ie(t)?Dr(t)?F(e,null,[t]):F(e,t):F(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Dr(n)&&(n=[n]),F(e,t,n))}function rv(){if(g.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(d){return De(d)?d.__isVue?["div",e,"VueInstance"]:He(d)?["div",{},["span",e,c(d)],"<",a(d.value),">"]:ln(d)?["div",{},["span",e,cn(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${un(d)?" (readonly)":""}`]:un(d)?["div",{},["span",e,cn(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...s(d.$)]}};function s(d){const f=[];d.type.props&&d.props&&f.push(i("props",ge(d.props))),d.setupState!==Me&&f.push(i("setup",d.setupState)),d.data!==Me&&f.push(i("data",ge(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const v=l(d,"inject");return v&&f.push(i("injected",v)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=qe({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",r,m+": "],a(f[m],!1)])]]:["span",{}]}function a(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:De(d)?["object",{object:f?ge(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(fe(m))return;const v={};for(const N in d.ctx)u(m,N,f)&&(v[N]=d.ctx[N]);return v}function u(d,f,m){const v=d[m];if(ie(v)&&v.includes(f)||De(v)&&f in v||d.extends&&u(d.extends,f,m)||d.mixins&&d.mixins.some(N=>u(N,f,m)))return!0}function c(d){return cn(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const cc="3.4.38",jn=g.NODE_ENV!=="production"?U:We;var mn={};const ov="http://www.w3.org/2000/svg",sv="http://www.w3.org/1998/Math/MathML",vn=typeof document<"u"?document:null,dc=vn&&vn.createElement("template"),iv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?vn.createElementNS(ov,e):t==="mathml"?vn.createElementNS(sv,e):n?vn.createElement(e,{is:n}):vn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>vn.createTextNode(e),createComment:e=>vn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{dc.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const a=dc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ln="transition",Oo="animation",No=Symbol("_vtc"),So=(e,{slots:t})=>Le(Lh,av(e),t);So.displayName="Transition";const fc={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};So.props=qe({},pu,fc);const mr=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},pc=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function av(e){const t={};for(const j in e)j in fc||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,v=lv(o),N=v&&v[0],S=v&&v[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:P,onLeave:K,onLeaveCancelled:$,onBeforeAppear:Z=D,onAppear:x=B,onAppearCancelled:de=P}=t,Y=(j,oe,w)=>{vr(j,oe?c:a),vr(j,oe?u:i),w&&w()},V=(j,oe)=>{j._isLeaving=!1,vr(j,d),vr(j,m),vr(j,f),oe&&oe()},C=j=>(oe,w)=>{const I=j?x:B,ne=()=>Y(oe,j,w);mr(I,[oe,ne]),hc(()=>{vr(oe,j?l:s),Mn(oe,j?c:a),pc(I)||mc(oe,r,N,ne)})};return qe(t,{onBeforeEnter(j){mr(D,[j]),Mn(j,s),Mn(j,i)},onBeforeAppear(j){mr(Z,[j]),Mn(j,l),Mn(j,u)},onEnter:C(!1),onAppear:C(!0),onLeave(j,oe){j._isLeaving=!0;const w=()=>V(j,oe);Mn(j,d),Mn(j,f),dv(),hc(()=>{j._isLeaving&&(vr(j,d),Mn(j,m),pc(K)||mc(j,r,S,w))}),mr(K,[j,w])},onEnterCancelled(j){Y(j,!1),mr(P,[j])},onAppearCancelled(j){Y(j,!0),mr(de,[j])},onLeaveCancelled(j){V(j),mr($,[j])}})}function lv(e){if(e==null)return null;if(De(e))return[ma(e.enter),ma(e.leave)];{const t=ma(e);return[t,t]}}function ma(e){const t=Np(e);return mn.NODE_ENV!=="production"&&gh(t,"<transition> explicit duration"),t}function Mn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[No]||(e[No]=new Set)).add(t)}function vr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[No];n&&(n.delete(t),n.size||(e[No]=void 0))}function hc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let uv=0;function mc(e,t,n,r){const o=e._endId=++uv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=cv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=m=>{m.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function cv(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Ln}Delay`),s=r(`${Ln}Duration`),i=vc(o,s),a=r(`${Oo}Delay`),l=r(`${Oo}Duration`),u=vc(a,l);let c=null,d=0,f=0;t===Ln?i>0&&(c=Ln,d=i,f=s.length):t===Oo?u>0&&(c=Oo,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?Ln:Oo:null,f=c?c===Ln?s.length:l.length:0);const m=c===Ln&&/\b(transform|all)(,|$)/.test(r(`${Ln}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:m}}function vc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>gc(n)+gc(e[r])))}function gc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function dv(){return document.body.offsetHeight}function fv(e,t,n){const r=e[No];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yc=Symbol("_vod"),pv=Symbol("_vsh"),hv=Symbol(mn.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),mv=/(^|;)\s*display\s*:/;function vv(e,t,n){const r=e.style,o=Be(n);let s=!1;if(n&&!o){if(t)if(Be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Vs(r,a,"")}else for(const i in t)n[i]==null&&Vs(r,i,"");for(const i in n)i==="display"&&(s=!0),Vs(r,i,n[i])}else if(o){if(t!==n){const i=r[hv];i&&(n+=";"+i),r.cssText=n,s=mv.test(n)}}else t&&e.removeAttribute("style");yc in e&&(e[yc]=s?r.display:"",e[pv]&&(r.display="none"))}const gv=/[^\\];\s*$/,_c=/\s*!important$/;function Vs(e,t,n){if(ie(n))n.forEach(r=>Vs(e,t,r));else if(n==null&&(n=""),mn.NODE_ENV!=="production"&&gv.test(n)&&jn(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=yv(e,t);_c.test(n)?e.setProperty(on(r),n.replace(_c,""),"important"):e[r]=n}}const bc=["Webkit","Moz","ms"],va={};function yv(e,t){const n=va[t];if(n)return n;let r=Et(t);if(r!=="filter"&&r in e)return va[t]=r;r=tr(r);for(let o=0;o<bc.length;o++){const s=bc[o]+r;if(s in e)return va[t]=s}return t}const wc="http://www.w3.org/1999/xlink";function Ec(e,t,n,r,o,s=Vp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(wc,t.slice(6,t.length)):e.setAttributeNS(wc,t,n):n==null||s&&!bl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":kn(n)?String(n):n)}function _v(e,t,n,r){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=bl(n):n==null&&i==="string"?(n="",s=!0):i==="number"&&(n=0,s=!0)}try{e[t]=n}catch(i){mn.NODE_ENV!=="production"&&!s&&jn(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,i)}s&&e.removeAttribute(t)}function bv(e,t,n,r){e.addEventListener(t,n,r)}function wv(e,t,n,r){e.removeEventListener(t,n,r)}const Oc=Symbol("_vei");function Ev(e,t,n,r,o=null){const s=e[Oc]||(e[Oc]={}),i=s[t];if(r&&i)i.value=mn.NODE_ENV!=="production"?Sc(r,t):r;else{const[a,l]=Ov(t);if(r){const u=s[t]=xv(mn.NODE_ENV!=="production"?Sc(r,t):r,o);bv(e,a,u,l)}else i&&(wv(e,a,i,l),s[t]=void 0)}}const Nc=/(?:Once|Passive|Capture)$/;function Ov(e){let t;if(Nc.test(e)){t={};let r;for(;r=e.match(Nc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let ga=0;const Nv=Promise.resolve(),Sv=()=>ga||(Nv.then(()=>ga=0),ga=Date.now());function xv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(kv(r,n.value),t,5,[r])};return n.value=e,n.attached=Sv(),n}function Sc(e,t){return fe(e)||ie(e)?e:(jn(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
16
+ Expected function or array of functions, received type ${typeof e}.`),We)}function kv(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const xc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Tv=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?fv(e,r,i):t==="style"?vv(e,n,r):to(t)?Xo(t)||Ev(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cv(e,t,r,i))?(_v(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ec(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ec(e,t,r,i))};function Cv(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&xc(t)&&fe(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return xc(t)&&Be(n)?!1:t in e}const Pv=["ctrl","shift","alt","meta"],$v={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Pv.some(n=>e[`${n}Key`]&&!t.includes(n))},Iv=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=$v[t[i]];if(a&&a(o,t))return}return e(o,...s)})},Dv=qe({patchProp:Tv},iv);let kc;function Av(){return kc||(kc=km(Dv))}const Vv=(...e)=>{const t=Av().createApp(...e);mn.NODE_ENV!=="production"&&(jv(t),Lv(t));const{mount:n}=t;return t.mount=r=>{const o=Mv(r);if(!o)return;const s=t._component;!fe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rv(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Rv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jv(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Ip(t)||Dp(t)||Ap(t),writable:!1})}function Lv(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){jn("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return jn(r),n},set(){jn(r)}})}}function Mv(e){if(Be(e)){const t=document.querySelector(e);return mn.NODE_ENV!=="production"&&!t&&jn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return mn.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&jn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Uv={};function Fv(){rv()}Uv.NODE_ENV!=="production"&&Fv();let Rs;const Bv=new Uint8Array(16);function Hv(){if(!Rs&&(Rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rs(Bv)}const st=[];for(let e=0;e<256;++e)st.push((e+256).toString(16).slice(1));function Zv(e,t=0){return st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]}const Tc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ya(e,t,n){if(Tc.randomUUID&&!t&&!e)return Tc.randomUUID();e=e||{};const r=e.random||(e.rng||Hv)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Zv(r)}var Un=Symbol("storefront");function qv(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var js=class lt{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.hasUtm=X(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=T(null),this.loadedUser=T(!1),this.debouncedPushOrderContent=qv(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=T({id:ya(),status:eo.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1),this.utm=r(`${lt.storefrontKey}_utm`,void 0);return}const s=new URLSearchParams(window.location.search);this.utm=r(`${lt.storefrontKey}_utm`,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(lt.sessionKey);i?(this.currentOrder=T(JSON.parse(i)),this.refreshOrder()):this.currentOrder=T({id:ya(),status:eo.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(lt.storefrontKey);a?(this.storefront=r(lt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!0)):(this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser()}get loadedStorefrontPromise(){return new Promise(t=>{Xe(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get loadedUserPromise(){return new Promise(t=>{Xe(this.loadedUser,n=>{n&&t()},{immediate:!0})})}install(t){t.provide(Un,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof fi||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);t&&(typeof window<"u"&&localStorage.setItem(lt.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency))}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){switch(t.key){case lt.sessionKey:this.currentOrder.value=JSON.parse(t.newValue);break;case lt.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==eo.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:ya(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:eo.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(lt.sessionKey)}};js.userKey="moonbase_user",js.sessionKey="moonbase_session",js.storefrontKey="moonbase_storefront";var Wv=js;function Cc(e,t){const n=t??$e(Un);if(!n)throw new Error("No storefront configured");return X(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function Pc(e,t){const n=t??$e(Un);if(!n)throw new Error("No storefront configured");return X(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function Ls(e){const t=$e(Un);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>t.client.inventory.products.get(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function zv(e,t){const n=$e(Un),r=uh(e);if(!r)throw new Error("No request ID was given when calling `useActivationRequest`");if(!n)throw new Error("No storefront configured");const o=n.stateFactory(`activation-request-${r}`,null),s=n.stateFactory(`activation-request-${r}-error`,null),i=n.stateFactory(`activation-request-${r}-loading`,!0),a=n.stateFactory(`activation-request-${r}-fulfilling`,!1),l=n.stateFactory(`activation-request-${r}-completing`,!1),u=n.stateFactory(`activation-request-${r}-completion-timeout`,null),c=async()=>{await n.client.activationRequests.isCompleted(r)&&o.value?(o.value.status=Zt.Completed,l.value=!1):u.value=setTimeout(c,1500)};return r&&r.length>0?n.client.activationRequests.get(r).then(d=>{o.value=d,o.value.status===Zt.Fulfilled&&(l.value=!0,c()),i.value=!1}).catch(d=>{s.value=d,i.value=!1}):(s.value=new Error("Missing request id"),i.value=!1),Hi(()=>{u.value&&clearTimeout(u.value)}),Xe(n.currentUser,async()=>{var d,f;if(!(!r||(f=(d=o.value)==null?void 0:d.licenseEligibility)!=null&&f.eligible)){i.value=!0;try{o.value=await n.client.activationRequests.get(r),o.value.status===Zt.Fulfilled&&(l.value=!0,c())}catch(m){s.value=m}i.value=!1}}),{activationRequest:o,loading:i,fulfilling:a,completing:l,error:s,isInstalled:X(()=>{var d;return o&&((d=o.value)==null?void 0:d.status)===Zt.Completed}),fulfillLicense:async()=>{a.value=!0,o.value=await n.client.activationRequests.fulfillLicense(r),a.value=!1,l.value=!0,c()},fulfillTrial:async()=>{a.value=!0,o.value=await n.client.activationRequests.fulfillTrial(r),a.value=!1,l.value=!0,c()},cancel:async()=>{var d;((d=o.value)==null?void 0:d.status)!==Zt.Cancelled&&(o.value=await n.client.activationRequests.cancel(r))}}}function Kv(e){const t=$e(Un);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof Pr?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof Pr?new Error("Voucher code invalid"):r}}}}function _a(e){const t=e??$e(Un);if(!t)throw new Error("No storefront configured");return{items:X(()=>t.currentOrder.value.items.map(n=>{if(n.type==="Product"){const r=t.storefront.value.products.find(i=>i.id===n.productId),s=((r==null?void 0:r.variations)||[]).find(i=>i.id===n.variationId);return{...n,product:r,variation:s,price:s==null?void 0:s.price}}else{const r=t.storefront.value.bundles.find(i=>i.id===n.bundleId),s=((r==null?void 0:r.variations)||[]).find(i=>i.id===n.variationId);return{...n,bundle:r,variation:s,price:s==null?void 0:s.price}}})),currency:X(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:X(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const m=t.storefront.value.products.find(S=>S.id===s.productId),N=((m==null?void 0:m.variations)||[]).find(S=>S.id===s.variationId);f=(l=(a=N==null?void 0:N.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=t.storefront.value.bundles.find(S=>S.id===s.bundleId),N=((m==null?void 0:m.variations)||[]).find(S=>S.id===s.variationId);f=(d=(c=N==null?void 0:N.price[n])!=null?c:(u=m==null?void 0:m.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=b(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);s?s.quantity+=1:n.type==="bundle"?(s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price},t.currentOrder.value.items.push(s)):n.type==="product"&&(s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price},t.currentOrder.value.items.push(s)),t.pushOrderContent()},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}t.pushOrderContent()},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{const r=new URL(n,document.baseURI).href,o=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:r});if(t.currentOrder.value=o,o.checkoutUrl&&typeof window<"u")window.location.href=o.checkoutUrl;else throw new Error("No checkout URL found")}}}function St(e){const t=e??$e(Un);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await t.updateStorefront(),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>{await t.client.identity.confirmEmailChange(n,r),t.updateUser()}}}function Gv(e,t){const n={endpoint:e};return new Wv(n,new gp(n),(r,o)=>T(o))}var $c=!1;function Ms(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function ba(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Jv(){return Ic().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ic(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Yv=typeof Proxy=="function",Xv="devtools-plugin:setup",Qv="plugin:settings:set";let Ar,wa;function eg(){var e;return Ar!==void 0||(typeof window<"u"&&window.performance?(Ar=!0,wa=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ar=!0,wa=globalThis.perf_hooks.performance):Ar=!1),Ar}function tg(){return eg()?wa.now():Date.now()}class ng{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return tg()}},n&&n.on(Qv,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Dc(e,t){const n=e,r=Ic(),o=Jv(),s=Yv&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Xv,e,t);else{const i=s?new ng(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var Ce={};let xo;const ko=e=>xo=e,Ac=Ce.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function gr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Xt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Xt||(Xt={}));const yr=typeof window<"u",Vc=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function rg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Ea(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Lc(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Rc(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Us(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Fs=typeof navigator=="object"?navigator:{userAgent:""},jc=/Macintosh/.test(Fs.userAgent)&&/AppleWebKit/.test(Fs.userAgent)&&!/Safari/.test(Fs.userAgent),Lc=yr?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!jc?og:"msSaveOrOpenBlob"in Fs?sg:ig:()=>{};function og(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Rc(r.href)?Ea(e,t,n):(r.target="_blank",Us(r)):Us(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Us(r)},0))}function sg(e,t="download",n){if(typeof e=="string")if(Rc(e))Ea(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Us(r)})}else navigator.msSaveOrOpenBlob(rg(e,n),t)}function ig(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Ea(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(Vc.HTMLElement))||"safari"in Vc,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||jc)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function tt(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Oa(e){return"_a"in e&&"install"in e}function Mc(){if(!("clipboard"in navigator))return tt("Your browser doesn't support the Clipboard API","error"),!0}function Uc(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(tt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ag(e){if(!Mc())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),tt("Global state copied to clipboard.")}catch(t){if(Uc(t))return;tt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function lg(e){if(!Mc())try{Fc(e,JSON.parse(await navigator.clipboard.readText())),tt("Global state pasted from clipboard.")}catch(t){if(Uc(t))return;tt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function ug(e){try{Lc(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){tt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let gn;function cg(){gn||(gn=document.createElement("input"),gn.type="file",gn.accept=".json");function e(){return new Promise((t,n)=>{gn.onchange=async()=>{const r=gn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},gn.oncancel=()=>t(null),gn.onerror=n,gn.click()})}return e}async function dg(e){try{const n=await cg()();if(!n)return;const{text:r,file:o}=n;Fc(e,JSON.parse(r)),tt(`Global state imported from "${o.name}".`)}catch(t){tt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Fc(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Lt(e){return{_custom:{display:e}}}const Bc="🍍 Pinia (root)",Bs="_root";function fg(e){return Oa(e)?{id:Bs,label:Bc}:{id:e.$id,label:e.$id}}function pg(e){if(Oa(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function hg(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Lt(e.type),key:Lt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function mg(e){switch(e){case Xt.direct:return"mutation";case Xt.patchFunction:return"$patch";case Xt.patchObject:return"$patch";default:return"unknown"}}let Vr=!0;const Hs=[],_r="pinia:mutations",pt="pinia",{assign:vg}=Object,Zs=e=>"🍍 "+e;function gg(e,t){Dc({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Hs,app:e},n=>{typeof n.now!="function"&&tt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:_r,label:"Pinia 🍍",color:15064968}),n.addInspector({id:pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ag(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await lg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{ug(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await dg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?tt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),tt(`Store "${r}" reset.`)):tt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:Zs(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:ge(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Zs(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===pt){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Bc.toLowerCase().includes(r.filter.toLowerCase())):o).map(fg)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===pt){const o=r.nodeId===Bs?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==Bs&&(globalThis.$store=ge(o)),r.state=pg(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===pt){const s=r.nodeId===Bs?t:t._s.get(r.nodeId);if(!s)return tt(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Oa(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Vr=!1,r.set(s,i,r.state.value),Vr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return tt(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return tt(`Invalid path for store "${o}":
17
17
  ${i}
18
- Only state can be modified.`);i[0]="$state",Vr=!1,r.set(s,i,r.state.value),Vr=!0}})})}function hg(e,t){Bs.includes(Hs(t.$id))||Bs.push(Hs(t.$id)),Ic({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Bs,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:u})=>{const c=Bc++;n.addTimelineEvent({layerId:yr,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:jt(t.$id),action:jt(l),args:u},groupId:c}}),i(d=>{Un=void 0,n.addTimelineEvent({layerId:yr,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:jt(t.$id),action:jt(l),args:u,result:d},groupId:c}})}),a(d=>{Un=void 0,n.addTimelineEvent({layerId:yr,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:jt(t.$id),action:jt(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{Xe(()=>w(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(pt),Vr&&n.addTimelineEvent({layerId:yr,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Un}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(pt),!Vr)return;const u={time:r(),title:dg(a),data:fg({store:jt(t.$id)},cg(i)),groupId:Un};a===Gt.patchFunction?u.subtitle="⤵️":a===Gt.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:yr,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=Pn(i=>{o(i),n.addTimelineEvent({layerId:yr,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:jt(t.$id),info:jt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&tt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&tt(`"${t.$id}" store installed 🆕`)})}let Bc=0,Un;function Hc(e,t,n){const r=t.reduce((o,s)=>(o[s]=me(e)[s],o),{});for(const o in r)e[o]=function(){const s=Bc,i=n?new Proxy(e,{get(...l){return Un=s,Reflect.get(...l)},set(...l){return Un=s,Reflect.set(...l)}}):e;Un=s;const a=r[o].apply(i,arguments);return Un=void 0,a}}function mg({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Hc(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;me(t)._hotUpdate=function(o){r.apply(this,arguments),Hc(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}hg(e,t)}}function vg(){const e=El(!0),t=e.run(()=>P({}));let n=[],r=[];const o=Pn({install(s){To(o),o._a=s,s.provide(Dc,o),s.config.globalProperties.$pinia=o,xe.NODE_ENV!=="production"&&xe.NODE_ENV!=="test"&&gr&&pg(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!Pc?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return xe.NODE_ENV!=="production"&&xe.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(mg),o}function Zc(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];vr(o)&&vr(r)&&!He(r)&&!sn(r)?e[n]=Zc(o,r):e[n]=r}return e}const qc=()=>{};function Wc(e,t,n,r=qc){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ol()&&Dp(o),o}function Rr(e,...t){e.slice().forEach(n=>{n(...t)})}const gg=e=>e(),zc=Symbol(),ba=Symbol();function wa(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];vr(o)&&vr(r)&&e.hasOwnProperty(n)&&!He(r)&&!sn(r)?e[n]=wa(o,r):e[n]=r}return e}const yg=xe.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function _g(e){return!vr(e)||!e.hasOwnProperty(yg)}const{assign:Ct}=Object;function Kc(e){return!!(He(e)&&e.effect)}function Gc(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){!a&&(xe.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const c=xe.NODE_ENV!=="production"&&r?Jl(P(o?o():{}).value):Jl(n.state.value[e]);return Ct(c,s,Object.keys(i||{}).reduce((d,f)=>(xe.NODE_ENV!=="production"&&f in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=Pn(X(()=>{To(n);const v=n._s.get(e);return i[f].call(v,v)})),d),{}))}return l=Ea(e,u,t,n,r,!0),l}function Ea(e,t,n={},r,o,s){let i;const a=Ct({actions:{}},n);if(xe.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};xe.NODE_ENV!=="production"&&!Pc&&(l.onTrigger=A=>{u?v=A:u==!1&&!N._hotUpdating&&(Array.isArray(v)?v.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],f=[],v;const g=r.state.value[e];!s&&!g&&(xe.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const E=P({});let O;function L(A){let k;u=c=!1,xe.NODE_ENV!=="production"&&(v=[]),typeof A=="function"?(A(r.state.value[e]),k={type:Gt.patchFunction,storeId:e,events:v}):(wa(r.state.value[e],A),k={type:Gt.patchObject,payload:A,storeId:e,events:v});const R=O=Symbol();lo().then(()=>{O===R&&(u=!0)}),c=!0,Rr(d,k,r.state.value[e])}const F=s?function(){const{state:k}=n,R=k?k():{};this.$patch(oe=>{Ct(oe,R)})}:xe.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:qc;function C(){i.stop(),d=[],f=[],r._s.delete(e)}const z=(A,k="")=>{if(zc in A)return A[ba]=k,A;const R=function(){To(r);const oe=Array.from(arguments),_=[],I=[];function ne(ue){_.push(ue)}function ae(ue){I.push(ue)}Rr(f,{args:oe,name:R[ba],store:N,after:ne,onError:ae});let re;try{re=A.apply(this&&this.$id===e?this:N,oe)}catch(ue){throw Rr(I,ue),ue}return re instanceof Promise?re.then(ue=>(Rr(_,ue),ue)).catch(ue=>(Rr(I,ue),Promise.reject(ue))):(Rr(_,re),re)};return R[zc]=!0,R[ba]=k,R},$=Pn({actions:{},getters:{},state:[],hotState:E}),Z={_p:r,$id:e,$onAction:Wc.bind(null,f),$patch:L,$reset:F,$subscribe(A,k={}){const R=Wc(d,A,k.detached,()=>oe()),oe=i.run(()=>Xe(()=>r.state.value[e],_=>{(k.flush==="sync"?c:u)&&A({storeId:e,type:Gt.direct,events:v},_)},Ct({},l,k)));return R},$dispose:C},N=oo(xe.NODE_ENV!=="production"||xe.NODE_ENV!=="production"&&xe.NODE_ENV!=="test"&&gr?Ct({_hmrPayload:$,_customProperties:Pn(new Set)},Z):Z);r._s.set(e,N);const J=(r._a&&r._a.runWithContext||gg)(()=>r._e.run(()=>(i=El()).run(()=>t({action:z}))));for(const A in J){const k=J[A];if(He(k)&&!Kc(k)||sn(k))xe.NODE_ENV!=="production"&&o?Ls(E.value,A,ki(J,A)):s||(g&&_g(k)&&(He(k)?k.value=g[A]:wa(k,g[A])),r.state.value[e][A]=k),xe.NODE_ENV!=="production"&&$.state.push(A);else if(typeof k=="function"){const R=xe.NODE_ENV!=="production"&&o?k:z(k,A);J[A]=R,xe.NODE_ENV!=="production"&&($.actions[A]=k),a.actions[A]=k}else xe.NODE_ENV!=="production"&&Kc(k)&&($.getters[A]=s?n.getters[A]:k,gr&&(J._getters||(J._getters=Pn([]))).push(A))}if(Ct(N,J),Ct(me(N),J),Object.defineProperty(N,"$state",{get:()=>xe.NODE_ENV!=="production"&&o?E.value:r.state.value[e],set:A=>{if(xe.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");L(k=>{Ct(k,A)})}}),xe.NODE_ENV!=="production"&&(N._hotUpdate=Pn(A=>{N._hotUpdating=!0,A._hmrPayload.state.forEach(k=>{if(k in N.$state){const R=A.$state[k],oe=N.$state[k];typeof R=="object"&&vr(R)&&vr(oe)?Zc(R,oe):A.$state[k]=oe}Ls(N,k,ki(A.$state,k))}),Object.keys(N.$state).forEach(k=>{k in A.$state||va(N,k)}),u=!1,c=!1,r.state.value[e]=ki(A._hmrPayload,"hotState"),c=!0,lo().then(()=>{u=!0});for(const k in A._hmrPayload.actions){const R=A[k];Ls(N,k,z(R,k))}for(const k in A._hmrPayload.getters){const R=A._hmrPayload.getters[k],oe=s?X(()=>(To(r),R.call(N,N))):R;Ls(N,k,oe)}Object.keys(N._hmrPayload.getters).forEach(k=>{k in A._hmrPayload.getters||va(N,k)}),Object.keys(N._hmrPayload.actions).forEach(k=>{k in A._hmrPayload.actions||va(N,k)}),N._hmrPayload=A._hmrPayload,N._getters=A._getters,N._hotUpdating=!1})),xe.NODE_ENV!=="production"&&xe.NODE_ENV!=="test"&&gr){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(k=>{Object.defineProperty(N,k,Ct({value:N[k]},A))})}return r._p.forEach(A=>{if(xe.NODE_ENV!=="production"&&xe.NODE_ENV!=="test"&&gr){const k=i.run(()=>A({store:N,app:r._a,pinia:r,options:a}));Object.keys(k||{}).forEach(R=>N._customProperties.add(R)),Ct(N,k)}else Ct(N,i.run(()=>A({store:N,app:r._a,pinia:r,options:a})))}),xe.NODE_ENV!=="production"&&N.$state&&typeof N.$state=="object"&&typeof N.$state.constructor=="function"&&!N.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
18
+ Only state can be modified.`);i[0]="$state",Vr=!1,r.set(s,i,r.state.value),Vr=!0}})})}function yg(e,t){Hs.includes(Zs(t.$id))||Hs.push(Zs(t.$id)),Dc({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Hs,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:u})=>{const c=Hc++;n.addTimelineEvent({layerId:_r,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:Lt(t.$id),action:Lt(l),args:u},groupId:c}}),i(d=>{Fn=void 0,n.addTimelineEvent({layerId:_r,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:Lt(t.$id),action:Lt(l),args:u,result:d},groupId:c}})}),a(d=>{Fn=void 0,n.addTimelineEvent({layerId:_r,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:Lt(t.$id),action:Lt(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{Xe(()=>b(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(pt),Vr&&n.addTimelineEvent({layerId:_r,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Fn}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(pt),!Vr)return;const u={time:r(),title:mg(a),data:vg({store:Lt(t.$id)},hg(i)),groupId:Fn};a===Xt.patchFunction?u.subtitle="⤵️":a===Xt.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:_r,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=$n(i=>{o(i),n.addTimelineEvent({layerId:_r,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Lt(t.$id),info:Lt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&tt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&tt(`"${t.$id}" store installed 🆕`)})}let Hc=0,Fn;function Zc(e,t,n){const r=t.reduce((o,s)=>(o[s]=ge(e)[s],o),{});for(const o in r)e[o]=function(){const s=Hc,i=n?new Proxy(e,{get(...l){return Fn=s,Reflect.get(...l)},set(...l){return Fn=s,Reflect.set(...l)}}):e;Fn=s;const a=r[o].apply(i,arguments);return Fn=void 0,a}}function _g({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Zc(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;ge(t)._hotUpdate=function(o){r.apply(this,arguments),Zc(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}yg(e,t)}}function bg(){const e=Nl(!0),t=e.run(()=>T({}));let n=[],r=[];const o=$n({install(s){ko(o),o._a=s,s.provide(Ac,o),s.config.globalProperties.$pinia=o,Ce.NODE_ENV!=="production"&&Ce.NODE_ENV!=="test"&&yr&&gg(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!$c?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ce.NODE_ENV!=="production"&&Ce.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(_g),o}function qc(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];gr(o)&&gr(r)&&!He(r)&&!ln(r)?e[n]=qc(o,r):e[n]=r}return e}const Wc=()=>{};function zc(e,t,n,r=Wc){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Sl()&&jp(o),o}function Rr(e,...t){e.slice().forEach(n=>{n(...t)})}const wg=e=>e(),Kc=Symbol(),Na=Symbol();function Sa(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];gr(o)&&gr(r)&&e.hasOwnProperty(n)&&!He(r)&&!ln(r)?e[n]=Sa(o,r):e[n]=r}return e}const Eg=Ce.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Og(e){return!gr(e)||!e.hasOwnProperty(Eg)}const{assign:Ct}=Object;function Gc(e){return!!(He(e)&&e.effect)}function Jc(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){!a&&(Ce.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const c=Ce.NODE_ENV!=="production"&&r?Xl(T(o?o():{}).value):Xl(n.state.value[e]);return Ct(c,s,Object.keys(i||{}).reduce((d,f)=>(Ce.NODE_ENV!=="production"&&f in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=$n(X(()=>{ko(n);const m=n._s.get(e);return i[f].call(m,m)})),d),{}))}return l=xa(e,u,t,n,r,!0),l}function xa(e,t,n={},r,o,s){let i;const a=Ct({actions:{}},n);if(Ce.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Ce.NODE_ENV!=="production"&&!$c&&(l.onTrigger=V=>{u?m=V:u==!1&&!x._hotUpdating&&(Array.isArray(m)?m.push(V):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],f=[],m;const v=r.state.value[e];!s&&!v&&(Ce.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const N=T({});let S;function D(V){let C;u=c=!1,Ce.NODE_ENV!=="production"&&(m=[]),typeof V=="function"?(V(r.state.value[e]),C={type:Xt.patchFunction,storeId:e,events:m}):(Sa(r.state.value[e],V),C={type:Xt.patchObject,payload:V,storeId:e,events:m});const j=S=Symbol();lo().then(()=>{S===j&&(u=!0)}),c=!0,Rr(d,C,r.state.value[e])}const B=s?function(){const{state:C}=n,j=C?C():{};this.$patch(oe=>{Ct(oe,j)})}:Ce.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Wc;function P(){i.stop(),d=[],f=[],r._s.delete(e)}const K=(V,C="")=>{if(Kc in V)return V[Na]=C,V;const j=function(){ko(r);const oe=Array.from(arguments),w=[],I=[];function ne(ue){w.push(ue)}function ae(ue){I.push(ue)}Rr(f,{args:oe,name:j[Na],store:x,after:ne,onError:ae});let re;try{re=V.apply(this&&this.$id===e?this:x,oe)}catch(ue){throw Rr(I,ue),ue}return re instanceof Promise?re.then(ue=>(Rr(w,ue),ue)).catch(ue=>(Rr(I,ue),Promise.reject(ue))):(Rr(w,re),re)};return j[Kc]=!0,j[Na]=C,j},$=$n({actions:{},getters:{},state:[],hotState:N}),Z={_p:r,$id:e,$onAction:zc.bind(null,f),$patch:D,$reset:B,$subscribe(V,C={}){const j=zc(d,V,C.detached,()=>oe()),oe=i.run(()=>Xe(()=>r.state.value[e],w=>{(C.flush==="sync"?c:u)&&V({storeId:e,type:Xt.direct,events:m},w)},Ct({},l,C)));return j},$dispose:P},x=oo(Ce.NODE_ENV!=="production"||Ce.NODE_ENV!=="production"&&Ce.NODE_ENV!=="test"&&yr?Ct({_hmrPayload:$,_customProperties:$n(new Set)},Z):Z);r._s.set(e,x);const Y=(r._a&&r._a.runWithContext||wg)(()=>r._e.run(()=>(i=Nl()).run(()=>t({action:K}))));for(const V in Y){const C=Y[V];if(He(C)&&!Gc(C)||ln(C))Ce.NODE_ENV!=="production"&&o?Ms(N.value,V,Ii(Y,V)):s||(v&&Og(C)&&(He(C)?C.value=v[V]:Sa(C,v[V])),r.state.value[e][V]=C),Ce.NODE_ENV!=="production"&&$.state.push(V);else if(typeof C=="function"){const j=Ce.NODE_ENV!=="production"&&o?C:K(C,V);Y[V]=j,Ce.NODE_ENV!=="production"&&($.actions[V]=C),a.actions[V]=C}else Ce.NODE_ENV!=="production"&&Gc(C)&&($.getters[V]=s?n.getters[V]:C,yr&&(Y._getters||(Y._getters=$n([]))).push(V))}if(Ct(x,Y),Ct(ge(x),Y),Object.defineProperty(x,"$state",{get:()=>Ce.NODE_ENV!=="production"&&o?N.value:r.state.value[e],set:V=>{if(Ce.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");D(C=>{Ct(C,V)})}}),Ce.NODE_ENV!=="production"&&(x._hotUpdate=$n(V=>{x._hotUpdating=!0,V._hmrPayload.state.forEach(C=>{if(C in x.$state){const j=V.$state[C],oe=x.$state[C];typeof j=="object"&&gr(j)&&gr(oe)?qc(j,oe):V.$state[C]=oe}Ms(x,C,Ii(V.$state,C))}),Object.keys(x.$state).forEach(C=>{C in V.$state||ba(x,C)}),u=!1,c=!1,r.state.value[e]=Ii(V._hmrPayload,"hotState"),c=!0,lo().then(()=>{u=!0});for(const C in V._hmrPayload.actions){const j=V[C];Ms(x,C,K(j,C))}for(const C in V._hmrPayload.getters){const j=V._hmrPayload.getters[C],oe=s?X(()=>(ko(r),j.call(x,x))):j;Ms(x,C,oe)}Object.keys(x._hmrPayload.getters).forEach(C=>{C in V._hmrPayload.getters||ba(x,C)}),Object.keys(x._hmrPayload.actions).forEach(C=>{C in V._hmrPayload.actions||ba(x,C)}),x._hmrPayload=V._hmrPayload,x._getters=V._getters,x._hotUpdating=!1})),Ce.NODE_ENV!=="production"&&Ce.NODE_ENV!=="test"&&yr){const V={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(C=>{Object.defineProperty(x,C,Ct({value:x[C]},V))})}return r._p.forEach(V=>{if(Ce.NODE_ENV!=="production"&&Ce.NODE_ENV!=="test"&&yr){const C=i.run(()=>V({store:x,app:r._a,pinia:r,options:a}));Object.keys(C||{}).forEach(j=>x._customProperties.add(j)),Ct(x,C)}else Ct(x,i.run(()=>V({store:x,app:r._a,pinia:r,options:a})))}),Ce.NODE_ENV!=="production"&&x.$state&&typeof x.$state=="object"&&typeof x.$state.constructor=="function"&&!x.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
19
19
  state: () => new MyClass()
20
- Found in store "${N.$id}".`),g&&s&&n.hydrate&&n.hydrate(N.$state,g),u=!0,c=!0,N}function bg(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=om();if(a=(xe.NODE_ENV==="test"&&xo&&xo._testing?null:a)||(u?ke(Dc,null):null),a&&To(a),xe.NODE_ENV!=="production"&&!xo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
20
+ Found in store "${x.$id}".`),v&&s&&n.hydrate&&n.hydrate(x.$state,v),u=!0,c=!0,x}function Ng(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=lm();if(a=(Ce.NODE_ENV==="test"&&xo&&xo._testing?null:a)||(u?$e(Ac,null):null),a&&ko(a),Ce.NODE_ENV!=="production"&&!xo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
21
21
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
22
- This will fail in production.`);a=xo,a._s.has(r)||(s?Ea(r,t,o,a):Gc(r,o,a),xe.NODE_ENV!=="production"&&(i._pinia=a));const c=a._s.get(r);if(xe.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=s?Ea(d,t,o,a,!0):Gc(d,Ct({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(xe.NODE_ENV!=="production"&&gr){const d=$s();if(d&&d.proxy&&!l){const f=d.proxy,v="_pStores"in f?f._pStores:f._pStores={};v[r]=c}}return c}return i.$id=r,i}var ge=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.ForgotPassword="forgot_password",e.ResetPassword="reset_password",e.ConfirmAccount="confirm_account",e.ConfirmEmail="confirm_email",e.ConfirmEmailChange="confirm_email_change",e.ViewAccount="view_account",e.ViewProducts="view_products",e.RedeemVoucher="redeem_voucher",e.DownloadProduct="download_product",e.ActivateProduct="activate_product",e.ViewCart="view_cart",e.AddToCart="add_to_cart",e.Checkout="checkout",e))(ge||{});const wg={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0}},auth:{enable:{signUp:!0}}},Zs=Symbol("options");var Ie=(e=>(e.None="None",e.Authentication="Authentication",e.Customer="Customer",e.Cart="Cart",e.Activation="Activation",e.Download="Download",e))(Ie||{});const Me=bg("ui",()=>{const e=P("None"),t=P(null),n=P(null),r=P(null);function o(u,c,d){n.value=d??null,t.value=c,e.value=u}function s(u,c,d){r.value=[u,c,d]}function i(){e.value="None",n.value=null,r.value=null}function a(){const u=r.value;i(),lo(()=>{if(u){const[c,d,f]=u;n.value=f??null,t.value=d,e.value=c}})}function l(u){return n.value===null||!n.value[u]?null:n.value[u]}return{active:e,intent:t,parameters:n,next:r,show:o,reset:i,enqueue:s,dequeue:a,getParameter:l}}),Lt=e=>new Promise(t=>setTimeout(t,e)),Eg=["data-visible","data-location"],Og=Fm('<a href="https://moonbase.sh" target="_blank" class="moonbase:toolbar-action" data-action-width="narrow"><svg viewBox="0 0 512 512" height="18px" width="18px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg></a>',1),Ng=["disabled"],Sg=he({__name:"Toolbar",setup(e){const t=P(!1),n=Me(),r=kt(),o=ke(Zs);return Re(()=>{Lt(100).then(()=>t.value=!0)}),(s,i)=>{var a,l,u,c;return b(),T("div",{class:"moonbase:toolbar","data-visible":t.value&&w(n).active===w(Ie).None?"true":"false","data-location":w(o).toolbar.location},[Og,(a=w(o))!=null&&a.toolbar.show.cart?(b(),T("button",{key:0,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=d=>w(n).show(w(Ie).Cart,w(ge).AddToCart))}," Cart ")):ve("",!0),(l=w(o))!=null&&l.toolbar.show.account&&!w(r).user.value?(b(),T("button",{key:1,class:"moonbase:toolbar-action",type:"button",disabled:!w(r).loaded,onClick:i[1]||(i[1]=d=>w(n).show(w(Ie).Authentication,w(ge).SignIn))}," Log in ",8,Ng)):(u=w(o))!=null&&u.toolbar.show.account?(b(),T("button",{key:2,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=d=>w(n).show(w(Ie).Customer,w(ge).ViewAccount))},Y((c=w(r).user.value)==null?void 0:c.name),1)):ve("",!0)],8,Eg)}}}),xg=["hidden"],Tg=["for"],kg=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],Cg=["id"],Pg=["id"],$g=he({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(b(),T("div",{class:"moonbase:input",hidden:t.hidden||void 0},[x("label",{for:`mb_${t.name}`},Y(t.label),9,Tg),x("input",oa({id:`mb-${t.name}`,type:t.type??"text",name:`mb-${t.name}`,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onInput:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.value)})}),null,16,kg),t.error?(b(),T("p",{key:0,id:`mb-${t.name}-error`,class:"moonbase:input-hint","data-type":"error"},Y(t.error),9,Cg)):t.hint?(b(),T("p",{key:1,id:`mb-${t.name}-hint`,class:"moonbase:input-hint"},Y(t.hint),9,Pg)):ve("",!0)],8,xg))}}),Fn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},gt=Fn($g,[["__scopeId","data-v-47c5c102"]]),Ig={},Jc=e=>($h("data-v-f9a322c4"),e=e(),Ih(),e),Dg={fill:"none",viewBox:"0 0 24 24"},Ag=[Jc(()=>x("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1)),Jc(()=>x("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))];function Vg(e,t){return b(),T("svg",Dg,Ag)}const Jt=Fn(Ig,[["render",Vg],["__scopeId","data-v-f9a322c4"]]),Rg=["disabled"],Yc=Symbol("form-state"),Bn=he({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(e){const t=e,n=P(!1),r=P(!1),o=P(!1);dt(Yc,{working:n,isSuccess:r,isError:o});async function s(){n.value=!0;try{await t.handler(),n.value=!1,r.value=!0,await Lt(2500),t.noReset||(r.value=!1)}catch{n.value=!1,o.value=!0,await Lt(2500),o.value=!1}}return(i,a)=>(b(),T("form",{disabled:n.value||r.value,onSubmit:kv(s,["prevent"])},[Ui(i.$slots,"default")],40,Rg))}}),jg=["disabled","data-success","data-error","data-working"],Lg=["data-visible"],Hn=Fn(he({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(e){const t=e,{working:n,isSuccess:r,isError:o}=ke(Yc),s=X(()=>r.value?t.success:o.value?t.error:t.label);return(i,a)=>(b(),T("button",{class:"moonbase:submit-button",type:"submit",disabled:w(r)||w(o)||w(n),"data-success":w(r)||void 0,"data-error":w(o)||void 0,"data-working":w(n)||void 0},[x("div",{"data-visible":w(n)||void 0,"aria-hidden":"true"},[w(n)?(b(),Pe(Jt,{key:0})):ve("",!0)],8,Lg),Ae(" "+Y(s.value),1)],8,jg))}}),[["__scopeId","data-v-052f0f36"]]),Mg={class:"moonbase:checkbox"},Ug={class:"moonbase:checkbox-container"},Fg=["id","name","value","disabled","aria-invalid","aria-describedby"],Bg={class:"moonbase:checkbox-description"},Hg=["for"],Zg=["id"],qg=["id"],Xc=Fn(he({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(b(),T("div",Mg,[x("div",Ug,[x("input",oa({id:`mb-${t.name}`,type:"checkbox",name:`mb-${t.name}`,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onChecked:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.checked)})}),null,16,Fg)]),x("div",Bg,[x("label",{for:`mb-${t.name}`},Y(t.label),9,Hg),t.error?(b(),T("p",{key:0,id:`mb-${t.name}-error`,"data-type":"error"},Y(t.error),9,Zg)):t.hint?(b(),T("p",{key:1,id:`mb-${t.name}-hint`},Y(t.hint),9,qg)):ve("",!0)])]))}}),[["__scopeId","data-v-20c4336e"]]),Wg=["data-visible"],zg=he({__name:"SignUp",emits:["signedUp"],setup(e,{emit:t}){const n=t,r=Me(),o=kt(),s=P(""),i=P(r.getParameter("email")??""),a=P(""),l=P(!1),u=P(null);async function c(){u.value=null;try{const d=await o.signUp(s.value,i.value,a.value,null,!0,!0,l.value);Lt(1500).then(()=>n("signedUp",d))}catch(d){throw u.value=d.message,d}}return(d,f)=>(b(),Pe(Bn,{handler:c,class:"moonbase:sign-up"},{default:be(()=>[B(gt,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),B(gt,{modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),B(gt,{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=v=>a.value=v),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),B(Xc,{modelValue:l.value,"onUpdate:modelValue":f[3]||(f[3]=v=>l.value=v),label:"Receive updates and offers by email",name:"newsletter-opt-in"},null,8,["modelValue"]),B(Hn,{success:"Signed up",label:"Sign up",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!u.value||void 0},Y(u.value),9,Wg),x("button",{type:"button",onClick:f[4]||(f[4]=v=>w(r).show(w(Ie).Authentication,w(ge).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),Kg={key:0,class:"moonbase:loader"},Gg={key:1,class:"moonbase:error","data-visible":""},Jg=x("p",null," Please create a new password for your account: ",-1),Yg=["data-visible"],Xg=he({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(e,{emit:t}){const n=t,r=Me(),o=kt(),s=P(!0),i=P(null),a=P(""),l=P(null);Re(async()=>{try{const c=r.getParameter("email"),d=r.getParameter("code");if(!c||!d)throw new Error("Link is broken");i.value=await o.confirmAccount(c,d)}catch(c){c instanceof Pr?l.value="Could not find a user to confirm":l.value=c.message}s.value=!1});async function u(){var c,d;if(l.value=null,!!((c=i.value)!=null&&c.resetPasswordToken))try{const f=r.getParameter("email");await o.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const v=await o.signIn(f,a.value);Lt(1500).then(()=>n("confirmedAccount",v))}catch(f){throw l.value=f.message,f}}return(c,d)=>(b(),Pe(Bn,{handler:u,class:"moonbase:confirm-account"},{default:be(()=>[s.value?(b(),T("div",Kg,[B(Jt)])):i.value?(b(),T(Te,{key:2},[x("h3",null," Hi "+Y(i.value.name)+", ",1),Jg,B(gt,{"model-value":w(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),B(gt,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),B(Hn,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},Y(l.value),9,Yg)],64)):(b(),T("div",Gg,Y(l.value),1))]),_:1}))}}),Qg=x("h3",null," Forgot your password? ",-1),ey=x("p",null," Please enter your email for a reset link: ",-1),ty=["data-visible"],ny=he({__name:"ForgotPassword",setup(e){const t=Me(),n=kt(),r=P(t.getParameter("email")??""),o=P(null),s=P(!1);async function i(){o.value=null;try{await n.forgotPassword(r.value),Lt(1500).then(()=>{s.value=!0})}catch(a){throw a instanceof Pr?o.value="User not found":o.value=a.message,a}}return(a,l)=>(b(),Pe(Bn,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:be(()=>[Qg,ey,B(gt,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),B(Hn,{success:"Email sent",label:"Reset password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!o.value||void 0},Y(o.value),9,ty)]),_:1}))}}),ry=x("p",null," Please create a new password for your account: ",-1),oy=["data-visible"],sy=he({__name:"ResetPassword",emits:["passwordReset"],setup(e,{emit:t}){const n=t,r=Me(),o=kt(),s=X(()=>r.getParameter("email")),i=P(""),a=P(null);Re(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const u=r.getParameter("code");if(u)try{await o.resetPassword(s.value,i.value,u);const c=await o.signIn(s.value,i.value);Lt(1500).then(()=>n("passwordReset",c))}catch(c){throw a.value=c.message,c}}return(u,c)=>(b(),Pe(Bn,{handler:l,class:"moonbase:reset-password"},{default:be(()=>[x("h3",null," Hi "+Y(s.value)+", ",1),ry,B(gt,{"model-value":w(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),B(gt,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),B(Hn,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!a.value||void 0},Y(a.value),9,oy)]),_:1}))}}),iy={class:"moonbase:confirm-email-change"},ay={key:0,class:"moonbase:loader"},ly={key:1,class:"moonbase:error","data-visible":""},uy=x("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1),cy=he({__name:"ConfirmEmailChange",setup(e){const t=Me(),{user:n,confirmEmailChange:r}=kt(),o=P(!0),s=P(null);return Re(async()=>{try{const i=t.getParameter("email"),a=t.getParameter("code");if(!i||!a)throw new Error("Link is broken");await r(i,a)}catch(i){s.value=i.message}o.value=!1}),(i,a)=>{var l;return b(),T("div",iy,[o.value?(b(),T("div",ay,[B(Jt)])):s.value?(b(),T("div",ly,Y(s.value),1)):(b(),T(Te,{key:2},[x("h3",null," Hi "+Y((l=w(n))==null?void 0:l.name)+", ",1),uy],64))])}}});class dy{constructor(){Or(this,"current",this.detect());Or(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let ko=new dy;function Oa(e,t,n,r){ko.isServer||ft(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function Qc(e,t,n,r){ko.isServer||ft(o=>{e.value&&(window.addEventListener(t,n,r),o(()=>window.removeEventListener(t,n,r)))})}var St=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(St||{});function Na(){let e=P(0),t=P(!0);return Qc(t,"keydown",n=>{n.key==="Tab"&&(e.value=n.shiftKey?1:0)}),e}function Je(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Je),r}var Zn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zn||{}),qn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(qn||{});function Qe({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){const s=td(r,n),i=Object.assign(o,{props:s});if(e||t&2&&s.static)return qs(i);if(t&1){const a=s.unmount??!0?0:1;return Je(a,{0(){return null},1(){return qs({...o,props:{...s,hidden:!0,style:{display:"none"}}})}})}return qs(i)}function qs({props:e,attrs:t,slots:n,slot:r,name:o}){var u;const{as:s,...i}=Sa(e,["unmount","static"]);let a=(u=n.default)==null?void 0:u.call(n,r);const l={};if(r){let c=!1;const d=[];for(const[f,v]of Object.entries(r))typeof v=="boolean"&&(c=!0),v===!0&&d.push(f);c&&(l["data-moonbase-state"]=d.join(" "))}if(s==="template"){if(a=ed(a??[]),Object.keys(i).length>0||Object.keys(t).length>0){const[c,...d]=a??[];if(!fy(c)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(g=>g.trim()).filter((g,E,O)=>O.indexOf(g)===E).sort((g,E)=>g.localeCompare(E)).map(g=>` - ${g}`).join(`
23
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
22
+ This will fail in production.`);a=xo,a._s.has(r)||(s?xa(r,t,o,a):Jc(r,o,a),Ce.NODE_ENV!=="production"&&(i._pinia=a));const c=a._s.get(r);if(Ce.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=s?xa(d,t,o,a,!0):Jc(d,Ct({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(Ce.NODE_ENV!=="production"&&yr){const d=$s();if(d&&d.proxy&&!l){const f=d.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[r]=c}}return c}return i.$id=r,i}var ve=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.ForgotPassword="forgot_password",e.ResetPassword="reset_password",e.ConfirmAccount="confirm_account",e.ConfirmEmail="confirm_email",e.ConfirmEmailChange="confirm_email_change",e.ViewAccount="view_account",e.ViewProducts="view_products",e.RedeemVoucher="redeem_voucher",e.DownloadProduct="download_product",e.ActivateProduct="activate_product",e.ViewCart="view_cart",e.AddToCart="add_to_cart",e.Checkout="checkout",e))(ve||{});const Sg={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0}},auth:{enable:{signUp:!0}}},qs=Symbol("options");var Pe=(e=>(e.None="None",e.Authentication="Authentication",e.Customer="Customer",e.Cart="Cart",e.Activation="Activation",e.Download="Download",e))(Pe||{});const Re=Ng("ui",()=>{const e=T("None"),t=T(null),n=T(null),r=T(null);function o(u,c,d){n.value=d??null,t.value=c,e.value=u}function s(u,c,d){r.value=[u,c,d]}function i(){e.value="None",n.value=null,r.value=null}function a(){const u=r.value;i(),lo(()=>{if(u){const[c,d,f]=u;n.value=f??null,t.value=d,e.value=c}})}function l(u){return n.value===null||!n.value[u]?null:n.value[u]}return{active:e,intent:t,parameters:n,next:r,show:o,reset:i,enqueue:s,dequeue:a,getParameter:l}}),Mt=e=>new Promise(t=>setTimeout(t,e)),xg=["data-visible","data-location"],kg=qm('<a href="https://moonbase.sh" target="_blank" class="moonbase:toolbar-action" data-action-width="narrow"><svg viewBox="0 0 512 512" height="18px" width="18px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg></a>',1),Tg=["disabled"],Cg=pe({__name:"Toolbar",setup(e){const t=T(!1),n=Re(),r=St(),o=$e(qs);return Ve(()=>{Mt(100).then(()=>t.value=!0)}),(s,i)=>{var a,l,u,c;return y(),O("div",{class:"moonbase:toolbar","data-visible":t.value&&b(n).active===b(Pe).None?"true":"false","data-location":b(o).toolbar.location},[kg,(a=b(o))!=null&&a.toolbar.show.cart?(y(),O("button",{key:0,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=d=>b(n).show(b(Pe).Cart,b(ve).AddToCart))}," Cart ")):me("",!0),(l=b(o))!=null&&l.toolbar.show.account&&!b(r).user.value?(y(),O("button",{key:1,class:"moonbase:toolbar-action",type:"button",disabled:!b(r).loaded,onClick:i[1]||(i[1]=d=>b(n).show(b(Pe).Authentication,b(ve).SignIn))}," Log in ",8,Tg)):(u=b(o))!=null&&u.toolbar.show.account?(y(),O("button",{key:2,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=d=>b(n).show(b(Pe).Customer,b(ve).ViewAccount))},z((c=b(r).user.value)==null?void 0:c.name),1)):me("",!0)],8,xg)}}}),Pg=["hidden"],$g=["for"],Ig=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],Dg=["id"],Ag=["id"],Vg=pe({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(y(),O("div",{class:"moonbase:input",hidden:t.hidden||void 0},[E("label",{for:`mb_${t.name}`},z(t.label),9,$g),E("input",ua({id:`mb-${t.name}`,type:t.type??"text",name:`mb-${t.name}`,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onInput:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.value)})}),null,16,Ig),t.error?(y(),O("p",{key:0,id:`mb-${t.name}-error`,class:"moonbase:input-hint","data-type":"error"},z(t.error),9,Dg)):t.hint?(y(),O("p",{key:1,id:`mb-${t.name}-hint`,class:"moonbase:input-hint"},z(t.hint),9,Ag)):me("",!0)],8,Pg))}}),Bn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},gt=Bn(Vg,[["__scopeId","data-v-47c5c102"]]),Rg={},Yc=e=>(Vh("data-v-f9a322c4"),e=e(),Rh(),e),jg={fill:"none",viewBox:"0 0 24 24"},Lg=[Yc(()=>E("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1)),Yc(()=>E("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))];function Mg(e,t){return y(),O("svg",jg,Lg)}const Pt=Bn(Rg,[["render",Mg],["__scopeId","data-v-f9a322c4"]]),Ug=["disabled"],Xc=Symbol("form-state"),Hn=pe({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(e){const t=e,n=T(!1),r=T(!1),o=T(!1);dt(Xc,{working:n,isSuccess:r,isError:o});async function s(){n.value=!0;try{await t.handler(),n.value=!1,r.value=!0,await Mt(2500),t.noReset||(r.value=!1)}catch{n.value=!1,o.value=!0,await Mt(2500),o.value=!1}}return(i,a)=>(y(),O("form",{disabled:n.value||r.value,onSubmit:Iv(s,["prevent"])},[qi(i.$slots,"default")],40,Ug))}}),Fg=["disabled","data-success","data-error","data-working"],Bg=["data-visible"],Zn=Bn(pe({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(e){const t=e,{working:n,isSuccess:r,isError:o}=$e(Xc),s=X(()=>r.value?t.success:o.value?t.error:t.label);return(i,a)=>(y(),O("button",{class:"moonbase:submit-button",type:"submit",disabled:b(r)||b(o)||b(n),"data-success":b(r)||void 0,"data-error":b(o)||void 0,"data-working":b(n)||void 0},[E("div",{"data-visible":b(n)||void 0,"aria-hidden":"true"},[b(n)?(y(),xe(Pt,{key:0})):me("",!0)],8,Bg),Te(" "+z(s.value),1)],8,Fg))}}),[["__scopeId","data-v-052f0f36"]]),Hg={class:"moonbase:checkbox"},Zg={class:"moonbase:checkbox-container"},qg=["id","name","value","disabled","aria-invalid","aria-describedby"],Wg={class:"moonbase:checkbox-description"},zg=["for"],Kg=["id"],Gg=["id"],Qc=Bn(pe({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(y(),O("div",Hg,[E("div",Zg,[E("input",ua({id:`mb-${t.name}`,type:"checkbox",name:`mb-${t.name}`,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onChecked:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.checked)})}),null,16,qg)]),E("div",Wg,[E("label",{for:`mb-${t.name}`},z(t.label),9,zg),t.error?(y(),O("p",{key:0,id:`mb-${t.name}-error`,"data-type":"error"},z(t.error),9,Kg)):t.hint?(y(),O("p",{key:1,id:`mb-${t.name}-hint`},z(t.hint),9,Gg)):me("",!0)])]))}}),[["__scopeId","data-v-20c4336e"]]),Jg=["data-visible"],Yg=pe({__name:"SignUp",emits:["signedUp"],setup(e,{emit:t}){const n=t,r=Re(),o=St(),s=T(""),i=T(r.getParameter("email")??""),a=T(""),l=T(!1),u=T(null);async function c(){u.value=null;try{const d=await o.signUp(s.value,i.value,a.value,null,!0,!0,l.value);Mt(1500).then(()=>n("signedUp",d))}catch(d){throw u.value=d.message,d}}return(d,f)=>(y(),xe(Hn,{handler:c,class:"moonbase:sign-up"},{default:ye(()=>[F(gt,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),F(gt,{modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),F(gt,{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),F(Qc,{modelValue:l.value,"onUpdate:modelValue":f[3]||(f[3]=m=>l.value=m),label:"Receive updates and offers by email",name:"newsletter-opt-in"},null,8,["modelValue"]),F(Zn,{success:"Signed up",label:"Sign up",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!u.value||void 0},z(u.value),9,Jg),E("button",{type:"button",onClick:f[4]||(f[4]=m=>b(r).show(b(Pe).Authentication,b(ve).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),Xg={key:0,class:"moonbase:loader"},Qg={key:1,class:"moonbase:error","data-visible":""},ey=E("p",null," Please create a new password for your account: ",-1),ty=["data-visible"],ny=pe({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(e,{emit:t}){const n=t,r=Re(),o=St(),s=T(!0),i=T(null),a=T(""),l=T(null);Ve(async()=>{try{const c=r.getParameter("email"),d=r.getParameter("code");if(!c||!d)throw new Error("Link is broken");i.value=await o.confirmAccount(c,d)}catch(c){c instanceof Pr?l.value="Could not find a user to confirm":l.value=c.message}s.value=!1});async function u(){var c,d;if(l.value=null,!!((c=i.value)!=null&&c.resetPasswordToken))try{const f=r.getParameter("email");await o.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const m=await o.signIn(f,a.value);Mt(1500).then(()=>n("confirmedAccount",m))}catch(f){throw l.value=f.message,f}}return(c,d)=>(y(),xe(Hn,{handler:u,class:"moonbase:confirm-account"},{default:ye(()=>[s.value?(y(),O("div",Xg,[F(Pt)])):i.value?(y(),O(ke,{key:2},[E("h3",null," Hi "+z(i.value.name)+", ",1),ey,F(gt,{"model-value":b(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),F(gt,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),F(Zn,{success:"Password saved",label:"Save password",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!l.value||void 0},z(l.value),9,ty)],64)):(y(),O("div",Qg,z(l.value),1))]),_:1}))}}),ry=E("h3",null," Forgot your password? ",-1),oy=E("p",null," Please enter your email for a reset link: ",-1),sy=["data-visible"],iy=pe({__name:"ForgotPassword",setup(e){const t=Re(),n=St(),r=T(t.getParameter("email")??""),o=T(null),s=T(!1);async function i(){o.value=null;try{await n.forgotPassword(r.value),Mt(1500).then(()=>{s.value=!0})}catch(a){throw a instanceof Pr?o.value="User not found":o.value=a.message,a}}return(a,l)=>(y(),xe(Hn,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:ye(()=>[ry,oy,F(gt,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),F(Zn,{success:"Email sent",label:"Reset password",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!o.value||void 0},z(o.value),9,sy)]),_:1}))}}),ay=E("p",null," Please create a new password for your account: ",-1),ly=["data-visible"],uy=pe({__name:"ResetPassword",emits:["passwordReset"],setup(e,{emit:t}){const n=t,r=Re(),o=St(),s=X(()=>r.getParameter("email")),i=T(""),a=T(null);Ve(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const u=r.getParameter("code");if(u)try{await o.resetPassword(s.value,i.value,u);const c=await o.signIn(s.value,i.value);Mt(1500).then(()=>n("passwordReset",c))}catch(c){throw a.value=c.message,c}}return(u,c)=>(y(),xe(Hn,{handler:l,class:"moonbase:reset-password"},{default:ye(()=>[E("h3",null," Hi "+z(s.value)+", ",1),ay,F(gt,{"model-value":b(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),F(gt,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),F(Zn,{success:"Password saved",label:"Save password",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!a.value||void 0},z(a.value),9,ly)]),_:1}))}}),cy={class:"moonbase:confirm-email-change"},dy={key:0,class:"moonbase:loader"},fy={key:1,class:"moonbase:error","data-visible":""},py=E("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1),hy=pe({__name:"ConfirmEmailChange",setup(e){const t=Re(),{user:n,confirmEmailChange:r}=St(),o=T(!0),s=T(null);return Ve(async()=>{try{const i=t.getParameter("email"),a=t.getParameter("code");if(!i||!a)throw new Error("Link is broken");await r(i,a)}catch(i){s.value=i.message}o.value=!1}),(i,a)=>{var l;return y(),O("div",cy,[o.value?(y(),O("div",dy,[F(Pt)])):s.value?(y(),O("div",fy,z(s.value),1)):(y(),O(ke,{key:2},[E("h3",null," Hi "+z((l=b(n))==null?void 0:l.name)+", ",1),py],64))])}}});class my{constructor(){Nr(this,"current",this.detect());Nr(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let To=new my;function ka(e,t,n,r){To.isServer||ft(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function ed(e,t,n,r){To.isServer||ft(o=>{e.value&&(window.addEventListener(t,n,r),o(()=>window.removeEventListener(t,n,r)))})}var xt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(xt||{});function Ta(){let e=T(0),t=T(!0);return ed(t,"keydown",n=>{n.key==="Tab"&&(e.value=n.shiftKey?1:0)}),e}function Je(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Je),r}var qn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qn||{}),Wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wn||{});function Qe({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){const s=nd(r,n),i=Object.assign(o,{props:s});if(e||t&2&&s.static)return Ws(i);if(t&1){const a=s.unmount??!0?0:1;return Je(a,{0(){return null},1(){return Ws({...o,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Ws(i)}function Ws({props:e,attrs:t,slots:n,slot:r,name:o}){var u;const{as:s,...i}=Ca(e,["unmount","static"]);let a=(u=n.default)==null?void 0:u.call(n,r);const l={};if(r){let c=!1;const d=[];for(const[f,m]of Object.entries(r))typeof m=="boolean"&&(c=!0),m===!0&&d.push(f);c&&(l["data-moonbase-state"]=d.join(" "))}if(s==="template"){if(a=td(a??[]),Object.keys(i).length>0||Object.keys(t).length>0){const[c,...d]=a??[];if(!vy(c)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(v=>v.trim()).filter((v,N,S)=>S.indexOf(v)===N).sort((v,N)=>v.localeCompare(N)).map(v=>` - ${v}`).join(`
23
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
24
24
  `)].join(`
25
- `));const f=td(c.props??{},i,l),v=Vt(c,f,!0);for(const g in f)g.startsWith("on")&&(v.props||(v.props={}),v.props[g]=f[g]);return v}return Array.isArray(a)&&a.length===1?a[0]:a}return je(s,Object.assign({},i,l),{default:()=>a})}function ed(e){return e.flatMap(t=>t.type===Te?ed(t.children):[t])}function td(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={},n={};for(const r of e)for(const o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]??(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(t,{[r](o,...s){const i=n[r];for(const a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Sa(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function fy(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Wn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Wn||{});let zn=he({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:o["aria-hidden"]??void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Qe({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function py(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function K(e){if(e==null||e.value==null)return null;let t=e.value.$el??e.value;return t instanceof Node?t:null}function Yt(e){if(ko.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=K(e);if(t)return t.ownerDocument}return document}const Ws=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ue=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ue||{}),gn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gn||{});function zs(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ws)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xa||{});function nd(e,t=0){var n;return e===((n=Yt(e))==null?void 0:n.body)?!1:Je(t,{0(){return e.matches(Ws)},1(){let r=e;for(;r!==null;){if(r.matches(Ws))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:e.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function _r(e){e==null||e.focus({preventScroll:!0})}const hy=["textarea","input"].join(",");function my(e){var t;return((t=e==null?void 0:e.matches)==null?void 0:t.call(e,hy))??!1}function jr(e,t=n=>n){return e.slice().sort((n,r)=>{const o=t(n),s=t(r);if(o===null||s===null)return 0;const i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function it(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){const s=(Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)??document;let i=Array.isArray(e)?n?jr(e):e:zs(e);o.length>0&&i.length>1&&(i=i.filter(v=>!o.includes(v))),r=r??s.activeElement;const a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{};let c=0;const d=i.length;let f;do{if(c>=d||c+d<=0)return 0;let v=l+c;if(t&16)v=(v+d)%d;else{if(v<0)return 3;if(v>=d)return 1}f=i[v],f==null||f.focus(u),c+=a}while(f!==s.activeElement);return t&6&&my(f)&&f.select(),2}let br=[];py(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||br[0]===t.target)return;let n=t.target;n=n.closest(Ws),br.unshift(n??t.target),br=br.filter(r=>r!=null&&r.isConnected),br.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ks(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function rd(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());const t=new Set;for(const n of e.value){const r=K(n);r instanceof HTMLElement&&t.add(r)}return t}var od=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(od||{});const Co=Object.assign(he({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:P(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=P(null);r({el:o,$el:o});const s=X(()=>Yt(o)),i=P(!1);Re(()=>i.value=!0),mt(()=>i.value=!1),gy({ownerDocument:s},X(()=>i.value&&!!(e.features&16)));const a=yy({ownerDocument:s,container:o,initialFocus:X(()=>e.initialFocus)},X(()=>i.value&&!!(e.features&2)));_y({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},X(()=>i.value&&!!(e.features&8)));const l=Na();function u(v){const g=K(o);if(!g)return;(O=>O())(()=>{Je(l.value,{[St.Forwards]:()=>{it(g,Ue.First,{skipElements:[v.relatedTarget]})},[St.Backwards]:()=>{it(g,Ue.Last,{skipElements:[v.relatedTarget]})}})})}const c=P(!1);function d(v){v.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(v){if(!i.value)return;const g=rd(e.containers);K(o)instanceof HTMLElement&&g.add(K(o));const E=v.relatedTarget;E instanceof HTMLElement&&E.dataset.moonbaseFocusGuard!=="true"&&(sd(g,E)||(c.value?it(K(o),Je(l.value,{[St.Forwards]:()=>Ue.Next,[St.Backwards]:()=>Ue.Previous})|Ue.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&_r(v.target)))}return()=>{const v={},g={ref:o,onKeydown:d,onFocusout:f},{features:E,initialFocus:O,containers:L,...F}=e;return je(Te,[!!(E&4)&&je(zn,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:Wn.Focusable}),Qe({ourProps:g,theirProps:{...t,...F},slot:v,attrs:t,slots:n,name:"FocusTrap"}),!!(E&4)&&je(zn,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:Wn.Focusable})])}}}),{features:od});function vy(e){const t=P(br.slice());return Xe([e],([n],[r])=>{r===!0&&n===!1?Ks(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=br.slice())},{flush:"post"}),()=>t.value.find(n=>n!=null&&n.isConnected)??null}function gy({ownerDocument:e},t){const n=vy(t);Re(()=>{ft(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&_r(n())},{flush:"post"})}),mt(()=>{t.value&&_r(n())})}function yy({ownerDocument:e,container:t,initialFocus:n},r){const o=P(null),s=P(!1);return Re(()=>s.value=!0),mt(()=>s.value=!1),Re(()=>{Xe([t,n,r],(i,a)=>{if(i.every((u,c)=>(a==null?void 0:a[c])===u)||!r.value)return;const l=K(t);l&&Ks(()=>{var d,f;if(!s.value)return;const u=K(n),c=(d=e.value)==null?void 0:d.activeElement;if(u){if(u===c){o.value=c;return}}else if(l.contains(c)){o.value=c;return}u?_r(u):it(l,Ue.First|Ue.NoScroll)===gn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),o}function _y({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;Oa((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;const a=rd(n);K(t)instanceof HTMLElement&&a.add(K(t));const l=r.value;if(!l)return;const u=i.target;u&&u instanceof HTMLElement?sd(a,u)?(r.value=u,_r(u)):(i.preventDefault(),i.stopPropagation(),_r(l)):_r(r.value)},!0)}function sd(e,t){for(const n of e)if(n.contains(t))return!0;return!1}function by(e){let t=rh(e.getSnapshot());return mt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Po(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ks(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Po();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function wy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function Ey(){let e;return{before({doc:t}){let n=t.documentElement,r=t.defaultView??window;e=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-o);n.style(r,"paddingRight",`${s}px`)}}}function id(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Oy(){return/Android/gi.test(window.navigator.userAgent)}function Ny(){return id()||Oy()}function Sy(){return id()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){const i=Po();i.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}const o=window.scrollY??window.pageYOffset;let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),u=e.querySelector(l);u&&!r(u)&&(s=u)}catch{}},!0),t.addEventListener(e,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(i.target,"touchAction","none")}),t.addEventListener(e,"touchmove",i=>{if(i.target instanceof HTMLElement){if(i.target.tagName==="INPUT")return;if(r(i.target)){let a=i.target;for(;a.parentElement&&a.dataset.moonbasePortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.moonbasePortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),t.add(()=>{const i=window.scrollY??window.pageYOffset;o!==i&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function xy(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ty(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let wr=wy(()=>new Map,{PUSH(e,t){let n=this.get(e)??{doc:e,count:0,d:Po(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ty(n)},o=[Sy(),Ey(),xy()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});wr.subscribe(()=>{let e=wr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&wr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&wr.dispatch("TEARDOWN",n)}});function ky(e,t,n){let r=by(wr),o=X(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Xe([e,t],([s,i],[a],l)=>{if(!s||!i)return;wr.dispatch("PUSH",s,n);let u=!1;l(()=>{u||(wr.dispatch("POP",a??s,n),u=!0)})},{immediate:!0}),o}let Cy=0;function Py(){return++Cy}function Pt(){return Py()}let Ta=new Map,$o=new Map;function ad(e,t=P(!0)){ft(n=>{if(!t.value)return;let r=K(e);if(!r)return;n(function(){if(!r)return;let i=$o.get(r)??1;if(i===1?$o.delete(r):$o.set(r,i-1),i!==1)return;let a=Ta.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,Ta.delete(r))});let o=$o.get(r)??0;$o.set(r,o+1),o===0&&(Ta.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Io(e,t,n,r){ko.isServer||ft(o=>{e.value&&(document.addEventListener(t,n,r),o(()=>document.removeEventListener(t,n,r)))})}const ld=30;function ud(e,t,n=X(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(const c of u){if(c===null)continue;const d=c instanceof HTMLElement?c:K(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!nd(l,xa.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}const o=P(null);Io(n,"pointerdown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Io(n,"mousedown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Io(n,"click",i=>{Ny()||o.value&&(r(i,()=>o.value),o.value=null)},!0);const s={x:0,y:0};Io(n,"touchstart",i=>{s.x=i.touches[0].clientX,s.y=i.touches[0].clientY},!0),Io(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-s.x)>=ld||Math.abs(a.y-s.y)>=ld))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),Qc(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function cd({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){const r=P(null),o=Yt(r);function s(){var a,l;const i=[];for(const u of e)u!==null&&(u instanceof HTMLElement?i.push(u):"value"in u&&u.value instanceof HTMLElement&&i.push(u.value));if(t!=null&&t.value)for(const u of t.value)i.push(u);for(const u of(o==null?void 0:o.querySelectorAll("html > *, body > *"))??[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="moonbase"&&(u.contains(K(r))||u.contains((l=(a=K(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(c=>u.contains(c))||i.push(u));return i}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:je(zn,{features:Wn.Hidden,ref:r})}}}let dd=Symbol("Context");var at=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(at||{});function $y(){return Gs()!==null}function Gs(){return ke(dd,null)}function fd(e){dt(dd,e)}const pd=Symbol("ForcePortalRootContext");function Iy(){return ke(pd,!1)}const hd=he({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return dt(pd,e.force),()=>{const{force:r,...o}=e;return Qe({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});let md=Symbol("StackContext");var ka=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ka||{});function Dy(){return ke(md,()=>{})}function Ay({type:e,enabled:t,element:n,onUpdate:r}){let o=Dy();function s(...i){r==null||r(...i),o(...i)}Re(()=>{Xe(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),mt(()=>{t.value&&s(1,e,n)}),dt(md,s)}var et=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(et||{});let Vy=Symbol("DescriptionContext");function Ry({slot:e=P({}),name:t="Description",props:n={}}={}){let r=P([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return dt(Vy,{register:o,slot:e,name:t,props:n}),X(()=>r.value.length>0?r.value.join(" "):void 0)}function vd(e){const t=Yt(e);if(!t){if(e===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${e}`)}const n=t.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const jy=he({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=P(null);X(()=>Yt(r));const o=Iy(),s=ke(yd,null),i=P(o===!0||s==null?vd(r.value):s.resolveTarget()),a=P(!1);Re(()=>{a.value=!0}),ft(()=>{o||s!=null&&(i.value=s.resolveTarget())});const l=ke(Ca,null);let u=!1;const c=$s();return Xe(r,()=>{if(u||!l)return;const d=K(r);d&&(mt(l.register(d),c),u=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return je(wm,{to:i.value},Qe({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}});let Ca=Symbol("PortalParentContext");function gd(){const e=ke(Ca,null),t=P([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){const i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}const o={register:n,unregister:r,portals:t};return[t,he({name:"PortalWrapper",setup(s,{slots:i}){return dt(Ca,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let yd=Symbol("PortalGroupContext");const Ly=he({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){const r=oo({resolveTarget(){return e.target}});return dt(yd,r),()=>{const{target:o,...s}=e;return Qe({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),Pa=Symbol("DialogContext");function Js(e){const t=ke(Pa,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Js),n}return t}const Ys="DC8F892D-2EBD-447C-A4C8-A03058436FF4",_d=he({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ys},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${Pt()}`},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var ue;const s=P(!1);Re(()=>{s.value=!0});let i=!1;const a=X(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=P(0),u=Gs(),c=X(()=>e.open===Ys&&u!==null?(u.value&at.Open)===at.Open:e.open),d=P(null),f=X(()=>Yt(d));if(o({el:d,$el:d}),!(e.open!==Ys||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===Ys?void 0:e.open}`);const g=X(()=>s.value&&c.value?0:1),E=X(()=>g.value===0),O=P(null),L={titleId:O,panelRef:P(null),dialogState:g,setTitleId(Ce){O.value!==Ce&&(O.value=Ce)},close(){t("close",!1)}},F=X(()=>l.value>1),C=ke(Pa,null)!==null,[z,$]=gd(),{resolveContainers:Z,mainTreeNodeRef:N,MainTreeNode:de}=cd({portals:z,defaultContainers:[X(()=>L.panelRef.value??d.value)]}),J=X(()=>F.value?"parent":"leaf"),A=X(()=>u!==null?(u.value&at.Closing)===at.Closing:!1),k=X(()=>C||A.value?!1:E.value),R=X(()=>{var Ce;return Array.from(((Ce=f.value)==null?void 0:Ce.querySelectorAll("body > *"))??[]).find(Ve=>Ve.id==="moonbase"?!1:Ve.contains(K(N))&&Ve instanceof HTMLElement)??null});ad(R,k);const oe=X(()=>F.value?!0:E.value),_=X(()=>{var Ce;return Array.from(((Ce=f.value)==null?void 0:Ce.querySelectorAll("[data-moonbase-portal]"))??[]).find(Ve=>Ve.contains(K(N))&&Ve instanceof HTMLElement)??null});ad(_,oe),Ay({type:"Dialog",enabled:X(()=>g.value===0),element:d,onUpdate:(Ce,Ve)=>{if(Ve==="Dialog")return Je(Ce,{[ka.Add]:()=>l.value+=1,[ka.Remove]:()=>l.value-=1})}});const I=Ry({name:"DialogDescription",slot:X(()=>({open:c.value}))});dt(Pa,L);const ne=X(()=>!(!E.value||F.value));ud(Z,(Ce,Ve)=>{Ce.preventDefault(),L.close(),lo(()=>Ve==null?void 0:Ve.focus())},ne);const ae=X(()=>!(F.value||g.value!==0));Oa((ue=f.value)==null?void 0:ue.defaultView,"keydown",Ce=>{ae.value&&(Ce.defaultPrevented||Ce.key===et.Escape&&(Ce.preventDefault(),Ce.stopPropagation(),L.close()))});const re=X(()=>!(A.value||g.value!==0||C));return ky(f,re,Ce=>({containers:[...Ce.containers??[],Z]})),ft(Ce=>{if(g.value!==0)return;const Ve=K(d);if(!Ve)return;const nt=new ResizeObserver(bt=>{for(const _n of bt){const Kn=_n.target.getBoundingClientRect();Kn.x===0&&Kn.y===0&&Kn.width===0&&Kn.height===0&&L.close()}});nt.observe(Ve),Ce(()=>nt.disconnect())}),()=>{const{id:Ce,open:Ve,initialFocus:nt,...bt}=e,_n={...n,ref:d,id:Ce,role:a.value,"aria-modal":g.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":I.value},Kn={open:g.value===0};return je(hd,{force:!0},()=>[je(jy,()=>je(Ly,{target:d.value},()=>je(hd,{force:!1},()=>je(Co,{initialFocus:nt,containers:Z,features:E.value?Je(J.value,{parent:Co.features.RestoreFocus,leaf:Co.features.All&~Co.features.FocusLock}):Co.features.None},()=>je($,{},()=>Qe({ourProps:_n,theirProps:{...bt,...n},slot:Kn,attrs:n,slots:r,visible:g.value===0,features:Zn.RenderStrategy|Zn.Static,name:"Dialog"})))))),je(de)])}}}),bd=he({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${Pt()}`}},setup(e,{attrs:t,slots:n}){const r=Js("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),r.close())}return()=>{const{id:s,...i}=e;return Qe({ourProps:{id:s,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),wd=he({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${Pt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=Js("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{const{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return Qe({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),$a=he({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${Pt()}`}},setup(e,{attrs:t,slots:n}){const r=Js("DialogTitle");return Re(()=>{r.setTitleId(e.id),mt(()=>r.setTitleId(null))}),()=>{const{id:o,...s}=e;return Qe({ourProps:{id:o},theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});function Ed(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Od(e,t){let n=P(Ed(e.value.type,e.value.as));return Re(()=>{n.value=Ed(e.value.type,e.value.as)}),ft(()=>{var r;n.value||K(t)&&K(t)instanceof HTMLButtonElement&&!((r=K(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const Nd=Symbol("PopoverContext");function Ia(e){const t=ke(Nd,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <${Da.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ia),n}return t}const My=Symbol("PopoverGroupContext");function Sd(){return ke(My,null)}const xd=Symbol("PopoverPanelContext");function Uy(){return ke(xd,null)}let Da=he({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var z;const o=P(null);r({el:o,$el:o});const s=P(1),i=P(null),a=P(null),l=P(null),u=P(null),c=X(()=>Yt(o)),d=X(()=>{var k,R;if(!K(i)||!K(u))return!1;for(const oe of document.querySelectorAll("body > *"))if(Number(oe==null?void 0:oe.contains(K(i)))^Number(oe==null?void 0:oe.contains(K(u))))return!0;const $=zs(),Z=$.indexOf(K(i)),N=(Z+$.length-1)%$.length,de=(Z+1)%$.length,J=$[N],A=$[de];return!((k=K(u))!=null&&k.contains(J))&&!((R=K(u))!=null&&R.contains(A))}),f={popoverState:s,buttonId:P(null),panelId:P(null),panel:u,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){s.value=Je(s.value,{0:1,1:0})},closePopover(){s.value!==1&&(s.value=1)},close($){f.closePopover();const Z=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?K($):K(f.button):K(f.button);Z==null||Z.focus()}};dt(Nd,f),fd(X(()=>Je(s.value,{0:at.Open,1:at.Closed})));const v={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},g=Sd(),E=g==null?void 0:g.registerPopover,[O,L]=gd(),F=cd({mainTreeNodeRef:g==null?void 0:g.mainTreeNodeRef,portals:O,defaultContainers:[i,u]});function C(){var $,Z,N;return(g==null?void 0:g.isFocusWithinPopoverGroup())??((($=c.value)==null?void 0:$.activeElement)&&(((Z=K(i))==null?void 0:Z.contains(c.value.activeElement))||((N=K(u))==null?void 0:N.contains(c.value.activeElement))))}return ft(()=>E==null?void 0:E(v)),Oa((z=c.value)==null?void 0:z.defaultView,"focus",$=>{var Z,N;$.target!==window&&$.target instanceof HTMLElement&&s.value===0&&(C()||i&&u&&(F.contains($.target)||(Z=K(f.beforePanelSentinel))!=null&&Z.contains($.target)||(N=K(f.afterPanelSentinel))!=null&&N.contains($.target)||f.closePopover()))},!0),ud(F.resolveContainers,($,Z)=>{var N;f.closePopover(),nd(Z,xa.Loose)||($.preventDefault(),(N=K(i))==null||N.focus())},X(()=>s.value===0)),()=>{const $={open:s.value===0,close:f.close};return je(Te,[je(L,{},()=>Qe({theirProps:{...e,...n},ourProps:{ref:o},slot:$,slots:t,attrs:n,name:"Popover"})),je(F.MainTreeNode)])}}});const Td=he({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${Pt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=Ia("PopoverButton"),s=X(()=>Yt(o.button));r({el:o.button,$el:o.button}),Re(()=>{o.buttonId.value=e.id}),mt(()=>{o.buttonId.value=null});const i=Sd(),a=i==null?void 0:i.closeOthers,l=Uy(),u=X(()=>l===null?!1:l.value===o.panelId.value),c=P(null),d=`moonbase-focus-sentinel-${Pt()}`;u.value||ft(()=>{o.button.value=K(c)});const f=Od(X(()=>({as:e.as,type:t.type})),c);function v(C){var z,$,Z,N,de;if(u.value){if(o.popoverState.value===1)return;switch(C.key){case et.Space:case et.Enter:C.preventDefault(),($=(z=C.target).click)==null||$.call(z),o.closePopover(),(Z=K(o.button))==null||Z.focus();break}}else switch(C.key){case et.Space:case et.Enter:C.preventDefault(),C.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case et.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!K(o.button)||(N=s.value)!=null&&N.activeElement&&!((de=K(o.button))!=null&&de.contains(s.value.activeElement)))return;C.preventDefault(),C.stopPropagation(),o.closePopover();break}}function g(C){u.value||C.key===et.Space&&C.preventDefault()}function E(C){var z,$;e.disabled||(u.value?(o.closePopover(),(z=K(o.button))==null||z.focus()):(C.preventDefault(),C.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),($=K(o.button))==null||$.focus()))}function O(C){C.preventDefault(),C.stopPropagation()}const L=Na();function F(){const C=K(o.panel);if(!C)return;function z(){Je(L.value,{[St.Forwards]:()=>it(C,Ue.First),[St.Backwards]:()=>it(C,Ue.Last)})===gn.Error&&it(zs().filter(Z=>Z.dataset.moonbaseFocusGuard!=="true"),Je(L.value,{[St.Forwards]:Ue.Next,[St.Backwards]:Ue.Previous}),{relativeTo:K(o.button)})}z()}return()=>{const C=o.popoverState.value===0,z={open:C},{id:$,...Z}=e,N=u.value?{ref:c,type:f.value,onKeydown:v,onClick:E}:{ref:c,id:$,type:f.value,"aria-expanded":o.popoverState.value===0,"aria-controls":K(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:v,onKeyup:g,onClick:E,onMousedown:O};return je(Te,[Qe({ourProps:N,theirProps:{...t,...Z},slot:z,attrs:t,slots:n,name:"PopoverButton"}),C&&!u.value&&o.isPortalled.value&&je(zn,{id:d,features:Wn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:F})])}}}),kd=he({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`moonbase-popover-panel-${Pt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const{focus:o}=e,s=Ia("PopoverPanel"),i=X(()=>Yt(s.panel)),a=`moonbase-focus-sentinel-before-${Pt()}`,l=`moonbase-focus-sentinel-after-${Pt()}`;r({el:s.panel,$el:s.panel}),Re(()=>{s.panelId.value=e.id}),mt(()=>{s.panelId.value=null}),dt(xd,s.panelId),ft(()=>{var L,F;if(!o||s.popoverState.value!==0||!s.panel)return;const O=(L=i.value)==null?void 0:L.activeElement;(F=K(s.panel))!=null&&F.contains(O)||it(K(s.panel),Ue.First)});const u=Gs(),c=X(()=>u!==null?(u.value&at.Open)===at.Open:s.popoverState.value===0);function d(O){var L,F;switch(O.key){case et.Escape:if(s.popoverState.value!==0||!K(s.panel)||i.value&&!((L=K(s.panel))!=null&&L.contains(i.value.activeElement)))return;O.preventDefault(),O.stopPropagation(),s.closePopover(),(F=K(s.button))==null||F.focus();break}}function f(O){var F,C,z,$,Z;const L=O.relatedTarget;L&&K(s.panel)&&((F=K(s.panel))!=null&&F.contains(L)||(s.closePopover(),((z=(C=K(s.beforePanelSentinel))==null?void 0:C.contains)!=null&&z.call(C,L)||(Z=($=K(s.afterPanelSentinel))==null?void 0:$.contains)!=null&&Z.call($,L))&&L.focus({preventScroll:!0})))}const v=Na();function g(){const O=K(s.panel);if(!O)return;function L(){Je(v.value,{[St.Forwards]:()=>{var C;it(O,Ue.First)===gn.Error&&((C=K(s.afterPanelSentinel))==null||C.focus())},[St.Backwards]:()=>{var F;(F=K(s.button))==null||F.focus({preventScroll:!0})}})}L()}function E(){const O=K(s.panel);if(!O)return;function L(){Je(v.value,{[St.Forwards]:()=>{const F=K(s.button),C=K(s.panel);if(!F)return;const z=zs(),$=z.indexOf(F),Z=z.slice(0,$+1),de=[...z.slice($+1),...Z];for(const J of de.slice())if(J.dataset.moonbaseFocusGuard==="true"||C!=null&&C.contains(J)){const A=de.indexOf(J);A!==-1&&de.splice(A,1)}it(de,Ue.First,{sorted:!1})},[St.Backwards]:()=>{var C;it(O,Ue.Previous)===gn.Error&&((C=K(s.button))==null||C.focus())}})}L()}return()=>{const O={open:s.popoverState.value===0,close:s.close},{id:L,focus:F,...C}=e,z={ref:s.panel,id:L,onKeydown:d,onFocusout:o&&s.popoverState.value===0?f:void 0,tabIndex:-1};return Qe({ourProps:z,theirProps:{...t,...C},attrs:t,slot:O,slots:{...n,default:(...$)=>{var Z;return[je(Te,[c.value&&s.isPortalled.value&&je(zn,{id:a,ref:s.beforePanelSentinel,features:Wn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:g}),(Z=n.default)==null?void 0:Z.call(n,...$),c.value&&s.isPortalled.value&&je(zn,{id:l,ref:s.afterPanelSentinel,features:Wn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:E})])]}},features:Zn.RenderStrategy|Zn.Static,visible:c.value,name:"PopoverPanel"})}}});let Fy=he({props:{onFocus:{type:Function,required:!0}},setup(e){let t=P(!0);return()=>t.value?je(zn,{as:"button",type:"button",features:Wn.Focusable,onFocus(n){n.preventDefault();let r,o=50;function s(){var i;if(o--<=0){r&&cancelAnimationFrame(r);return}if((i=e.onFocus)!=null&&i.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(s)}r=requestAnimationFrame(s)}}):null}});const Cd=Symbol("TabsContext");function Do(e){const t=ke(Cd,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Do),n}return t}const Aa=Symbol("TabsSSRContext"),By=he({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){const o=P(e.selectedIndex??e.defaultIndex),s=P([]),i=P([]),a=X(()=>e.selectedIndex!==null),l=X(()=>a.value?e.selectedIndex:o.value);function u(g){const E=jr(c.tabs.value,K),O=jr(c.panels.value,K),L=E.filter(F=>{var C;return!((C=K(F))!=null&&C.hasAttribute("disabled"))});if(g<0||g>E.length-1){const F=Je(o.value===null?0:Math.sign(g-o.value),{[-1]:()=>1,0:()=>Je(Math.sign(g),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),C=Je(F,{0:()=>E.indexOf(L[0]),1:()=>E.indexOf(L[L.length-1])});C!==-1&&(o.value=C),c.tabs.value=E,c.panels.value=O}else{const F=E.slice(0,g),z=[...E.slice(g),...F].find(Z=>L.includes(Z));if(!z)return;let $=E.indexOf(z)??c.selectedIndex.value;$===-1&&($=c.selectedIndex.value),o.value=$,c.tabs.value=E,c.panels.value=O}}let c={selectedIndex:X(()=>o.value??e.defaultIndex??null),orientation:X(()=>e.vertical?"vertical":"horizontal"),activation:X(()=>e.manual?"manual":"auto"),tabs:s,panels:i,setSelectedIndex(g){l.value!==g&&r("change",g),a.value||u(g)},registerTab(g){if(s.value.includes(g))return;const E=s.value[o.value];if(s.value.push(g),s.value=jr(s.value,K),!a.value){const O=s.value.indexOf(E)??o.value;O!==-1&&(o.value=O)}},unregisterTab(g){const E=s.value.indexOf(g);E!==-1&&s.value.splice(E,1)},registerPanel(g){i.value.includes(g)||(i.value.push(g),i.value=jr(i.value,K))},unregisterPanel(g){const E=i.value.indexOf(g);E!==-1&&i.value.splice(E,1)}};dt(Cd,c);const d=P({tabs:[],panels:[]}),f=P(!1);Re(()=>{f.value=!0}),dt(Aa,X(()=>f.value?null:d.value));const v=X(()=>e.selectedIndex);return Re(()=>{Xe([v],()=>u(e.selectedIndex??e.defaultIndex),{immediate:!0})}),ft(()=>{if(!a.value||l.value==null||c.tabs.value.length<=0)return;const g=jr(c.tabs.value,K);g.some((O,L)=>K(c.tabs.value[L])!==K(O))&&c.setSelectedIndex(g.findIndex(O=>K(O)===K(c.tabs.value[l.value])))}),()=>{const g={selectedIndex:o.value};return je(Te,[s.value.length<=0&&je(Fy,{onFocus:()=>{for(const E of s.value){const O=K(E);if((O==null?void 0:O.tabIndex)===0)return O.focus(),!0}return!1}}),Qe({theirProps:{...n,...Sa(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:g,slots:t,attrs:n,name:"TabGroup"})])}}}),Hy=he({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){const r=Do("TabList");return()=>{const o={selectedIndex:r.selectedIndex.value},s={role:"tablist","aria-orientation":r.orientation.value};return Qe({ourProps:s,theirProps:e,slot:o,attrs:t,slots:n,name:"TabList"})}}}),Va=he({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${Pt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=Do("Tab"),s=P(null);r({el:s,$el:s}),Re(()=>o.registerTab(s)),mt(()=>o.unregisterTab(s));const i=ke(Aa),a=X(()=>{if(i.value){const O=i.value.tabs.indexOf(e.id);return O===-1?i.value.tabs.push(e.id)-1:O}return-1}),l=X(()=>{const O=o.tabs.value.indexOf(s);return O===-1?a.value:O}),u=X(()=>l.value===o.selectedIndex.value);function c(O){var F;const L=O();if(L===gn.Success&&o.activation.value==="auto"){const C=(F=Yt(s))==null?void 0:F.activeElement,z=o.tabs.value.findIndex($=>K($)===C);z!==-1&&o.setSelectedIndex(z)}return L}function d(O){const L=o.tabs.value.map(C=>K(C)).filter(Boolean);if(O.key===et.Space||O.key===et.Enter){O.preventDefault(),O.stopPropagation(),o.setSelectedIndex(l.value);return}switch(O.key){case et.Home:case et.PageUp:return O.preventDefault(),O.stopPropagation(),c(()=>it(L,Ue.First));case et.End:case et.PageDown:return O.preventDefault(),O.stopPropagation(),c(()=>it(L,Ue.Last))}if(c(()=>Je(o.orientation.value,{vertical(){return O.key===et.ArrowUp?it(L,Ue.Previous|Ue.WrapAround):O.key===et.ArrowDown?it(L,Ue.Next|Ue.WrapAround):gn.Error},horizontal(){return O.key===et.ArrowLeft?it(L,Ue.Previous|Ue.WrapAround):O.key===et.ArrowRight?it(L,Ue.Next|Ue.WrapAround):gn.Error}}))===gn.Success)return O.preventDefault()}const f=P(!1);function v(){var O;f.value||(f.value=!0,!e.disabled&&((O=K(s))==null||O.focus({preventScroll:!0}),o.setSelectedIndex(l.value),Ks(()=>{f.value=!1})))}function g(O){O.preventDefault()}const E=Od(X(()=>({as:e.as,type:t.type})),s);return()=>{var z;const O={selected:u.value,disabled:e.disabled??!1},{id:L,...F}=e,C={ref:s,onKeydown:d,onMousedown:g,onClick:v,id:L,role:"tab",type:E.value,"aria-controls":(z=K(o.panels.value[l.value]))==null?void 0:z.id,"aria-selected":u.value,tabIndex:u.value?0:-1,disabled:e.disabled?!0:void 0};return Qe({ourProps:C,theirProps:F,slot:O,attrs:t,slots:n,name:"Tab"})}}}),Zy=he({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=Do("TabPanels");return()=>{const o={selectedIndex:r.selectedIndex.value};return Qe({theirProps:e,ourProps:{},slot:o,attrs:n,slots:t,name:"TabPanels"})}}}),Ra=he({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`moonbase-tabs-panel-${Pt()}`},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:n,expose:r}){const o=Do("TabPanel"),s=P(null);r({el:s,$el:s}),Re(()=>o.registerPanel(s)),mt(()=>o.unregisterPanel(s));const i=ke(Aa),a=X(()=>{if(i.value){const c=i.value.panels.indexOf(e.id);return c===-1?i.value.panels.push(e.id)-1:c}return-1}),l=X(()=>{const c=o.panels.value.indexOf(s);return c===-1?a.value:c}),u=X(()=>l.value===o.selectedIndex.value);return()=>{var E;const c={selected:u.value},{id:d,tabIndex:f,...v}=e,g={ref:s,id:d,role:"tabpanel","aria-labelledby":(E=K(o.tabs.value[l.value]))==null?void 0:E.id,tabIndex:u.value?f:-1};return!u.value&&e.unmount&&!e.static?je(zn,{as:"span","aria-hidden":!0,...g}):Qe({ourProps:g,theirProps:v,slot:c,attrs:t,slots:n,features:Zn.Static|Zn.RenderStrategy,visible:u.value,name:"TabPanel"})}}});function qy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ja(e,...t){e&&t.length>0&&!e.dataset.transition?e.dataset.transition=t.join(" "):e&&t.length>0&&(e.dataset.transition=[...e.dataset.transition.split(" "),...t].join(" "))}function Xs(e,...t){e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=e.dataset.transition.split(" ").filter(n=>!t.includes(n)).join(" "))}var La=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(La||{});function Wy(e,t){const n=Po();if(!e)return n.dispose;const{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?Number.parseFloat(u):Number.parseFloat(u)*1e3).sort((u,c)=>c-u);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Pd(e,t,n,r,o,s){const i=Po(),a=s!==void 0?qy(s):()=>{};return Xs(e,...o),ja(e,...t,...n),i.nextFrame(()=>{Xs(e,...n),ja(e,...r),i.add(Wy(e,l=>(Xs(e,...r,...t),ja(e,...o),a(l))))}),i.add(()=>Xs(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Er(e=""){return e.split(/\s+/).filter(t=>t.length>1)}const Ma=Symbol("TransitionContext");function zy(){return ke(Ma,null)!==null}function Ky(){const e=ke(Ma,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}const Ua=Symbol("NestingContext");function Gy(){const e=ke(Ua,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Qs(e){return"children"in e?Qs(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function $d(e){const t=P([]),n=P(!1);Re(()=>n.value=!0),mt(()=>n.value=!1);function r(s,i=qn.Hidden){const a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(Je(i,{[qn.Unmount](){t.value.splice(a,1)},[qn.Hidden](){t.value[a].state="hidden"}}),!Qs(t)&&n.value&&(e==null||e()))}function o(s){const i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,qn.Unmount)}return{children:t,register:o,unregister:r}}const Id=Zn.RenderStrategy,Ao=he({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:"enter"},enterFrom:{type:[String],default:"enter-from"},enterTo:{type:[String],default:"enter-to"},entered:{type:[String],default:"entered"},leave:{type:[String],default:"leave"},leaveFrom:{type:[String],default:"leave-from"},leaveTo:{type:[String],default:"leave-to"}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){const s=P(0);function i(){s.value|=at.Opening,t("beforeEnter")}function a(){s.value&=~at.Opening,t("afterEnter")}function l(){s.value|=at.Closing,t("beforeLeave")}function u(){s.value&=~at.Closing,t("afterLeave")}if(!zy()&&$y())return()=>je(Fa,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:u},r);const c=P(null),d=X(()=>e.unmount?qn.Unmount:qn.Hidden);o({el:c,$el:c});const{show:f,appear:v}=Ky(),{register:g,unregister:E}=Gy(),O=P(f.value?"visible":"hidden"),L={value:!0},F=Pt(),C={value:!1},z=$d(()=>{!C.value&&O.value!=="hidden"&&(O.value="hidden",E(F),u())});Re(()=>{const oe=g(F);mt(oe)}),ft(()=>{if(d.value===qn.Hidden&&F){if(f.value&&O.value!=="visible"){O.value="visible";return}Je(O.value,{hidden:()=>E(F),visible:()=>g(F)})}});const $=Er(e.enter),Z=Er(e.enterFrom),N=Er(e.enterTo),de=Er(e.entered),J=Er(e.leave),A=Er(e.leaveFrom),k=Er(e.leaveTo);Re(()=>{ft(()=>{if(O.value==="visible"){const oe=K(c);if(oe instanceof Comment&&oe.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function R(oe){const _=L.value&&!v.value,I=K(c);!I||!(I instanceof HTMLElement)||_||(C.value=!0,f.value&&i(),f.value||l(),oe(f.value?Pd(I,$,Z,N,de,ne=>{C.value=!1,ne===La.Finished&&a()}):Pd(I,J,A,k,de,ne=>{C.value=!1,ne===La.Finished&&(Qs(z)||(O.value="hidden",E(F),u()))})))}return Re(()=>{Xe([f],(oe,_,I)=>{R(I),L.value=!1},{immediate:!0})}),dt(Ua,z),fd(X(()=>Je(O.value,{visible:at.Open,hidden:at.Closed})|s.value)),()=>{const{appear:oe,show:_,enter:I,enterFrom:ne,enterTo:ae,entered:re,leave:ue,leaveFrom:Ce,leaveTo:Ve,...nt}=e,bt={ref:c},_n={...nt,...v.value&&f.value&&ko.isServer?{class:ns([n.class,nt.class,...$,...Z])}:{}};return Qe({theirProps:_n,ourProps:bt,slot:{},slots:r,attrs:n,features:Id,visible:O.value==="visible",name:"TransitionChild"})}}}),Jy=Ao,Fa=he({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Gs(),s=X(()=>e.show===null&&o!==null?(o.value&at.Open)===at.Open:e.show);ft(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=P(s.value?"visible":"hidden"),a=$d(()=>{i.value="hidden"}),l=P(!0),u={show:s,appear:X(()=>e.appear||!l.value)};return Re(()=>{ft(()=>{l.value=!1,s.value?i.value="visible":Qs(a)||(i.value="hidden")})}),dt(Ua,a),dt(Ma,u),()=>{const c=Sa(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return Qe({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[je(Jy,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...c},r.default)]},attrs:{},features:Id,visible:i.value==="visible",name:"Transition"})}}}),Yy={class:"moonbase:modal-container"},Ba=he({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(e){return(t,n)=>(b(),Pe(w(Fa),{as:"template",show:t.open},{default:be(()=>[B(w(_d),{as:"div",class:"moonbase:modal",onClose:n[0]||(n[0]=r=>t.$emit("close"))},{default:be(()=>[x("div",Yy,[B(w(Ao),{as:"template"},{default:be(()=>[B(w(bd),{class:"moonbase:modal-overlay"})]),_:1}),B(w(Ao),{as:"template"},{default:be(()=>[B(w(wd),{class:"moonbase:modal-content"},{default:be(()=>[Ui(t.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),Xy=["data-visible"],Qy=he({__name:"SignIn",emits:["signedIn"],setup(e,{emit:t}){const n=t,r=Me(),o=kt(),s=ke(Zs),i=P(r.getParameter("email")??""),a=P(""),l=P(null);async function u(){l.value=null;try{const c=await o.signIn(i.value,a.value);Lt(1500).then(()=>n("signedIn",c))}catch(c){throw c instanceof Pr?l.value="User not found":l.value=c.message,c}}return(c,d)=>(b(),Pe(Bn,{handler:u,class:"moonbase:sign-in"},{default:be(()=>{var f;return[B(gt,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=v=>i.value=v),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),B(gt,{modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=v=>a.value=v),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),B(Hn,{success:"Signed in",label:"Sign in",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},Y(l.value),9,Xy),(f=w(s))!=null&&f.auth.enable.signUp?(b(),T("button",{key:0,type:"button",onClick:d[2]||(d[2]=v=>w(r).show(w(Ie).Authentication,w(ge).SignUp,{email:i.value}))}," Create account ")):ve("",!0),x("button",{type:"button",onClick:d[3]||(d[3]=v=>w(r).show(w(Ie).Authentication,w(ge).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}}),e_={class:"moonbase:authentication"},t_={key:0,class:"moonbase:loader"},n_=he({__name:"Authentication",props:{open:{type:Boolean}},emits:["authenticated"],setup(e,{emit:t}){const n=t,r=Me(),{loaded:o,user:s}=kt();Xe(s,a=>{a&&r.intent===ge.SignIn&&(n("authenticated",a),r.dequeue())});const i=X(()=>{switch(r.intent){case ge.SignIn:return"Sign in";case ge.SignUp:return"Sign up";case ge.ConfirmAccount:return"Confirm account";case ge.ConfirmEmailChange:return"Confirm email change";case ge.ForgotPassword:return"Forgot password";case ge.ResetPassword:return"Reset password"}throw new Error("Moonbase: Unknown intent")});return(a,l)=>(b(),Pe(Ba,{open:a.open,onClose:l[3]||(l[3]=u=>w(r).reset())},{default:be(()=>[x("div",e_,[B(w($a),{as:"h3"},{default:be(()=>[Ae(Y(i.value),1)]),_:1}),w(o)?w(r).intent===w(ge).SignIn?(b(),Pe(Qy,{key:1})):w(r).intent===w(ge).SignUp?(b(),Pe(zg,{key:2,onSignedUp:l[0]||(l[0]=u=>w(r).dequeue())})):w(r).intent===w(ge).ConfirmAccount?(b(),Pe(Xg,{key:3,onConfirmedAccount:l[1]||(l[1]=u=>w(r).dequeue())})):w(r).intent===w(ge).ConfirmEmailChange?(b(),Pe(cy,{key:4})):w(r).intent===w(ge).ForgotPassword?(b(),Pe(ny,{key:5})):w(r).intent===w(ge).ResetPassword?(b(),Pe(sy,{key:6,onPasswordReset:l[2]||(l[2]=u=>w(r).dequeue())})):ve("",!0):(b(),T("div",t_,[B(Jt)]))])]),_:1},8,["open"]))}});function yn(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(e)}const r_={class:"moonbase:product-cart-item"},o_=["src"],s_={key:1,class:"moonbase:image-placeholder"},i_={class:"moonbase:product-cart-item-content"},a_={key:0,class:"moonbase:cart-item-discount"},l_={class:"font-semibold"},u_={key:0,class:"ml-0.5"},c_={key:2,class:"moonbase:product-cart-item-total"},d_={key:0,class:"moonbase:discount"},f_={key:1},p_=he({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(e){return(t,n)=>{var r,o,s;return b(),T("div",r_,[(r=t.lineItem.product)!=null&&r.iconUrl?(b(),T("img",{key:0,src:t.lineItem.product.iconUrl,alt:""},null,8,o_)):(b(),T("div",s_)),x("div",i_,[x("h3",null,Y((o=t.lineItem.product)==null?void 0:o.name),1),x("p",null,Y((s=t.lineItem.product)==null?void 0:s.tagline),1),t.lineItem.appliedDiscount?(b(),T("p",a_,[Ae(" Discount applied: "),x("span",l_,Y(t.lineItem.appliedDiscount.name),1),t.lineItem.appliedDiscount.total?(b(),T("span",u_," (-"+Y(w(yn)(t.lineItem.appliedDiscount.total[t.currency],t.currency))+") ",1)):ve("",!0)])):ve("",!0),x("p",null,Y(t.lineItem.quantity)+" in cart",1)]),t.lineItem.variation?(b(),T("div",c_,[t.lineItem.variation.hasDiscount?(b(),T("span",d_,Y(w(yn)(t.lineItem.variation.originalPrice[t.currency],t.currency)),1)):ve("",!0),t.lineItem.quantity!==1?(b(),T("span",f_,Y(t.lineItem.quantity)+" x "+Y(w(yn)(t.lineItem.variation.price[t.currency],t.currency)),1)):ve("",!0),Ae(" "+Y(w(yn)(t.lineItem.variation.price[t.currency]*t.lineItem.quantity,t.currency)),1)])):ve("",!0)])}}}),h_={class:"moonbase:bundle-cart-item"},m_=["src"],v_={key:1,class:"moonbase:image-placeholder"},g_={class:"moonbase:bundle-cart-item-content"},y_={key:0,class:"moonbase:cart-item-discount"},__={class:"font-semibold"},b_={key:0,class:"ml-0.5"},w_={class:"moonbase:bundle-cart-item-summary"},E_=["data-open"],O_=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)],N_={key:2,class:"moonbase:product-cart-item-total"},S_={key:0,class:"moonbase:discount"},x_={key:1},T_=["src"],k_={key:1,class:"moonbase:image-placeholder"},C_=["data-included"],P_={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},$_=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)],I_={key:0,class:"truncate italic"},D_={key:1,class:"truncate"},A_=he({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(e){const t=P(!1),n=P(null);return Xe(t,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,o)=>{var s,i,a,l,u,c,d;return b(),T("div",null,[x("div",h_,[(s=r.lineItem.bundle)!=null&&s.iconUrl?(b(),T("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,m_)):(b(),T("div",v_)),x("div",g_,[x("h3",null,Y((i=r.lineItem.bundle)==null?void 0:i.name),1),x("p",null,Y((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(b(),T("p",y_,[Ae(" Discount applied: "),x("span",__,Y(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(b(),T("span",b_," (-"+Y(w(yn)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):ve("",!0)])):ve("",!0),x("div",w_,[x("span",null,Y(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(b(),T("button",{key:0,onClick:o[0]||(o[0]=f=>t.value=!t.value)},[x("span",null,[Ae(" Including "+Y((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(u=r.lineItem.bundle)!=null&&u.products.some(f=>!f.included)?(b(),T(Te,{key:0},[Ae("of "+Y((c=r.lineItem.bundle)==null?void 0:c.products.length),1)],64)):ve("",!0),Ae(" products ")]),(b(),T("svg",{"data-open":t.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},O_,8,E_))])):ve("",!0)])]),r.lineItem.variation?(b(),T("div",N_,[r.lineItem.variation.hasDiscount?(b(),T("span",S_,Y(w(yn)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):ve("",!0),r.lineItem.quantity!==1?(b(),T("span",x_,Y(r.lineItem.quantity)+" x "+Y(w(yn)(r.lineItem.variation.price[r.currency],r.currency)),1)):ve("",!0),Ae(" "+Y(w(yn)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):ve("",!0)]),x("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(b(!0),T(Te,null,dn(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(b(),T("div",{key:f.id},[f!=null&&f.iconUrl?(b(),T("img",{key:0,src:f.iconUrl,alt:""},null,8,T_)):(b(),T("div",k_)),x("div",null,[x("h3",{"data-included":f.included||void 0},[f.included?(b(),T("svg",P_,$_)):ve("",!0),Ae(" "+Y(f==null?void 0:f.name),1)],8,C_),f.included?f!=null&&f.tagline?(b(),T("p",D_,Y(f.tagline),1)):ve("",!0):(b(),T("p",I_," You already own this "))])]))),128))],512)])}}}),V_={class:"moonbase:cart-modal-container"},R_=he({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(e){return(t,n)=>(b(),Pe(w(Fa),{as:"template",show:t.open},{default:be(()=>[B(w(_d),{as:"div",class:"moonbase:cart-modal",onClose:n[0]||(n[0]=r=>t.$emit("close"))},{default:be(()=>[x("div",V_,[B(w(Ao),{as:"template"},{default:be(()=>[B(w(bd),{class:"moonbase:cart-modal-overlay"})]),_:1}),B(w(Ao),{as:"template"},{default:be(()=>[B(w(wd),{class:"moonbase:cart-modal-content"},{default:be(()=>[Ui(t.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),j_=["disabled","data-success","data-error","data-working","data-variant"],L_=["data-visible"],Dd=he({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(e){const t=e,n=P(!1),r=P(!1),o=P(!1),s=X(()=>r.value?t.success:o.value?t.error:t.label);async function i(){try{const a=t.handler();a instanceof Promise&&(n.value=!0,await a,n.value=!1,r.value=!0,await Lt(2500),t.noReset||(r.value=!1))}catch{n.value=!1,o.value=!0,await Lt(2500),o.value=!1}}return(a,l)=>(b(),T("button",{class:"moonbase:button",type:"button",disabled:r.value||o.value||n.value,"data-success":r.value||void 0,"data-error":o.value||void 0,"data-working":n.value||void 0,"data-variant":a.variant,onClick:i},[x("div",{"data-visible":n.value||void 0,"aria-hidden":"true"},[n.value?(b(),Pe(Jt,{key:0})):ve("",!0)],8,L_),Ae(" "+Y(s.value),1)],8,j_))}}),M_={class:"moonbase:cart"},U_={key:0,role:"list",class:"moonbase:cart-items"},F_={key:1,class:"moonbase:cart-empty"},B_={key:2,class:"moonbase:cart-total"},H_=x("label",null," Total ",-1),Z_=x("p",null," Sales tax to be calculated at checkout ",-1),q_=he({__name:"Cart",props:{open:{type:Boolean}},setup(e){const t=Me(),{items:n,total:r,currency:o,checkout:s}=ma();async function i(){s(`${window.location.pathname}?mb_intent=view_products`),await Lt(2500)}return(a,l)=>(b(),Pe(R_,{open:a.open,onClose:l[0]||(l[0]=u=>w(t).reset())},{default:be(()=>[x("div",M_,[B(w($a),{as:"h3"},{default:be(()=>[Ae(" Cart ")]),_:1}),w(n).length>0?(b(),T("ul",U_,[(b(!0),T(Te,null,dn(w(n),u=>(b(),T("li",{key:u.id},[u.type==="Product"?(b(),Pe(p_,{key:0,"line-item":u,currency:w(o)},null,8,["line-item","currency"])):u.type==="Bundle"?(b(),Pe(A_,{key:1,"line-item":u,currency:w(o)},null,8,["line-item","currency"])):ve("",!0)]))),128))])):(b(),T("div",F_," Your cart is empty! ")),w(n).length>0?(b(),T("div",B_,[H_,x("span",null,Y(w(yn)(w(r).amount,w(r).currency)),1),Z_])):ve("",!0),w(n).length>0?(b(),Pe(Dd,{key:3,handler:i,"no-reset":!0,label:"Checkout",success:"Redirecting..",error:"Error"})):ve("",!0)])]),_:1},8,["open"]))}}),W_={class:"moonbase:account"},z_={key:0,class:"moonbase:error"},K_={key:1,class:"moonbase:notification"},G_={key:0,class:"moonbase:error"},J_=he({__name:"Account",setup(e){var F,C,z;const t=Me(),{user:n,update:r,setPassword:o,signOut:s}=kt(),i=P(((F=n.value)==null?void 0:F.name)??""),a=P(((C=n.value)==null?void 0:C.email)??""),l=P(((z=n.value)==null?void 0:z.communicationPreferences)??{newsletterOptIn:!1}),u=P(null),c=P(!1),d=P(""),f=P(""),v=P(null),g=P(!1);async function E(){u.value=null,c.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(c.value=!0)}catch($){throw u.value=$,$}}async function O(){v.value=null;try{await o(d.value,f.value),d.value="",f.value=""}catch($){throw v.value=$,$}}async function L(){g.value=!0,await s(),t.reset()}return($,Z)=>(b(),T("div",W_,[B(Bn,{handler:E},{default:be(()=>[B(gt,{modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=N=>i.value=N),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),B(gt,{modelValue:a.value,"onUpdate:modelValue":Z[1]||(Z[1]=N=>a.value=N),label:"Email address",name:"email",type:"email",autocomplete:"email",required:""},null,8,["modelValue"]),B(Xc,{modelValue:l.value.newsletterOptIn,"onUpdate:modelValue":Z[2]||(Z[2]=N=>l.value.newsletterOptIn=N),label:"Newsletter subscription",name:"newsletter-opt-in",hint:"Receive updates and offers by email"},null,8,["modelValue"]),B(Hn,{label:"Save",error:"Error",success:"Saved"}),u.value?(b(),T("p",z_,Y(u.value.message),1)):c.value?(b(),T("p",K_," You need to confirm your new email address, please check your inbox ")):ve("",!0)]),_:1}),B(Bn,{handler:O},{default:be(()=>[B(gt,{modelValue:d.value,"onUpdate:modelValue":Z[3]||(Z[3]=N=>d.value=N),label:"Current password",name:"old-password",type:"password",autocomplete:"current-password",required:""},null,8,["modelValue"]),B(gt,{modelValue:f.value,"onUpdate:modelValue":Z[4]||(Z[4]=N=>f.value=N),label:"New password",name:"new-password",type:"password",autocomplete:"new-password",required:""},null,8,["modelValue"]),B(Hn,{label:"Save",error:"Error",success:"Saved"}),v.value?(b(),T("p",G_,Y(v.value.message),1)):ve("",!0)]),_:1}),B(Dd,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:L})]))}}),Y_={},X_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Q_=[x("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56M192 400.1l64 63.9 64-63.9M256 224v224.03",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)];function eb(e,t){return b(),T("svg",X_,Q_)}const tb=Fn(Y_,[["render",eb]]),nb={},rb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ob=[x("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)];function sb(e,t){return b(),T("svg",rb,ob)}const ib=Fn(nb,[["render",sb]]),ab={},lb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ub=[x("path",{d:"M443.66 405.05c-1.46-.79-2.85-1.54-4-2.2-6.47-3.83-13-10.52-11.85-17.83 2.42-15.94 2.89-23.47-.49-28.79a15.61 15.61 0 0 0-7.67-6.2v-.06c1.41-2.56 2.26-5.66 2.83-10.12 1.44-11-5-44-13.7-70.7-8.08-24.68-29.24-50-44.7-68.56l-3.61-4.34c-23.88-28.93-24.34-38.19-26.55-82.67-.32-6.47-.69-13.8-1.17-22C329.87 41.43 304 16 256 16c-25.2 0-44.62 7.15-57.72 21.26C187.79 48.55 182 64 182 80.78c0 29.52 2 53 2.15 54.29 1.4 35.7 1 41.22-8.31 57.55-2.23 3.93-8.38 10.87-14.89 18.21-8.48 9.57-18.09 20.41-23.36 29.22-3.77 6.31-5.88 12.63-8.11 19.33-3.4 10.21-7.26 21.78-18.15 36.57-12.57 17.07-15.52 29.61-11 47.45-4.94 6.45-4.83 14.37-4.75 20.23a25.84 25.84 0 0 1-.3 6.09c-2.29 7.59-12.42 9.4-22 10.18-1.58.12-3.1.21-4.55.29-7.26.39-13.53.74-17.13 6.3-3.47 5.36-1.12 13.8 2.14 25.48.72 2.58 1.46 5.25 2.19 8.06 1.83 7-.16 10.48-2.68 14.84-2.44 4.21-5.21 9-5.21 17.55 0 14.67 20 18 43.05 21.94 7.36 1.24 15 2.53 22.63 4.24a225.58 225.58 0 0 1 34.08 10.68c9.72 3.73 17.4 6.68 26.43 6.68 16.18 0 28.25-9.77 39.92-19.21l2.15-1.75c5.53-4.49 21.5-4 34.34-3.64 3.46.1 6.73.2 9.65.2h6.22c13.48-.08 31.94-.18 42.23 2.5 3.75 1 6.2 3.72 9.29 7.19 5.87 6.56 13.17 14.75 33.39 14.75 19.39 0 29.55-8.71 41.32-18.8 7.16-6.13 14.56-12.48 25.07-17.86 3.92-2 7.62-3.87 11.08-5.61 22.64-11.38 35.11-17.65 35.11-27.82 0-9.91-12.24-16.5-20.34-20.86zM211.11 88.38a13.91 13.91 0 0 1 12.47 9c1.95 5.55 1.81 10.42.21 12.94 0 0-.22-1-.36-1.44a14.85 14.85 0 0 0-6.44-8.59 11.35 11.35 0 0 0-8.94-1.47c-4.26 1.13-8.41 5-8.91 18.79-5.16-10.47-2.31-18 .92-23 2.31-3.73 7.47-6.33 11.05-6.23zm-17.5 375C192 479.24 175.2 479 170.09 478.59c-9.81-.82-21.66-4.69-33.13-8.43-4.52-1.47-9.19-3-13.73-4.34-13.2-3.89-30.12-6.74-43.72-9-3.22-.55-6.27-1.06-9.05-1.55s-4.61-1.27-5.2-2.3c-1-1.65.38-5.25 1.93-9.41C69.27 438 72.11 430.34 72 421c0-3.91-1.47-8.3-2.84-12.56-1.62-5-3.28-10.17-1.93-12.62 1.23-2.23 6.75-2.49 11.6-2.49h2.26c3.55 0 6.62.06 8.75-.53 6.51-1.81 14.86-6.92 17.81-13.88.9-2.17 1.37-6.94 2-14 .37-4.12.74-8.37 1.22-10.58a3.55 3.55 0 0 1 2.11-2.55c1.65-.77 6.78-1.91 18.63 4.08 11.18 5.65 22.88 25.84 34.2 45.37 3.56 6.14 6.92 11.94 10.3 17.36 14.04 22.54 18.83 31.6 17.5 44.8zm128.84-31.56a68.74 68.74 0 0 1-4.55 10.9.58.58 0 0 1-1.08-.42 56.61 56.61 0 0 0 2.11-18.43c-.25-4.73-.4-7.59-2.66-8.51s-4.26.83-9.45 5.54c-1.1 1-2.36 2.14-3.78 3.4-10.8 9.47-26.88 20.68-55.61 23.37-16.84 1.59-27.59-4.63-30.92-8.14a2.16 2.16 0 0 0-3.07-.08 2.23 2.23 0 0 0-.51 2.29c2.12 6.84 1.2 12.26-.49 16.19-.95 2.2-1.85 2.05-2-.34-.25-4.64-1-9.88-3-14.19-3.11-6.94-7-14.34-8.89-17.88v-.05c3.24-1.49 8.86-4.83 11.37-10.88s4.48-18-9.82-31.74c-6.28-6.05-22.1-17.16-36.06-27-10.9-7.65-22.17-15.56-23.65-17.51-4.49-5.89-6.37-9.3-6.94-19.65.07-2.3.13-4.59.19-6.89l.27-2.49a.58.58 0 0 1 1.15 0 63.07 63.07 0 0 0 2 9.72c1.08 3.73 2.4 7.58 3.62 9.18 3.19 4.22 7.56 7.39 11.67 8.49a5.48 5.48 0 0 0 5-.72c2.93-2.33 2.65-7.6 2.19-16.34-.47-9-1.11-21.34 1.85-34.55 5.62-25 10.91-32.51 17.61-42 .86-1.22 1.75-2.47 2.65-3.79 1.44-2.08 3-4.1 4.67-6.23 7.47-9.61 15.93-20.49 13.92-40.95-.51-5.19-.76-8.83-.86-11.39a1 1 0 0 1 1.88-.59l.49.77 1.21 2c4.86 8 13.64 22.57 25.1 22.57a13.62 13.62 0 0 0 2.36-.21c23.39-3.93 51.9-30.25 52.17-30.51 3.12-3 2.84-6.14 1.64-7.91a5.18 5.18 0 0 0-6.45-1.72c-3.29 1.4-7.14 3.15-11.22 5-13.82 6.27-37 16.75-42.25 14.34a23.11 23.11 0 0 1-6.32-5.13 1 1 0 0 1 1.14-1.65c5.59 2.29 9.55 1.45 14.2-.08l1-.34c9.37-3.09 14.2-4.77 30.76-12.08a97.55 97.55 0 0 1 16.26-5.93c4-1 6.42-1.63 7.71-4.34a6.65 6.65 0 0 0-.5-7.13c-1.53-1.87-4.07-2.57-7-1.9-3.22.75-4.7 3-6.41 4.49-2.4 2.05-5 4.16-17.19 8.65-27 10-34.58 10.61-45.21 3.43-9.84-6.69-15.15-13.23-15.15-16 0-2.13 5.45-5.7 8.71-7.84 1.33-.87 2.59-1.69 3.62-2.46 4.34-3.22 13-11.39 13.38-11.73 5.4-5.41 17.91-2.18 25 2.58a2.23 2.23 0 0 0 1.72.41 2.14 2.14 0 0 0 1.68-2.58c-4.2-17.46-.13-27.34 4-32.55a22.58 22.58 0 0 1 17.48-8.48c12.81 0 21.76 10 21.76 24.42 0 11-2.82 16.79-5.48 20.3a1.73 1.73 0 0 1-2.58.18 1.78 1.78 0 0 1-.24-2.2A24.61 24.61 0 0 0 290 114a16.58 16.58 0 0 0-16.84-16.67c-3.94 0-13.48 1.5-16.77 15.44a29.81 29.81 0 0 0-.34 11.07l.08.71c.9 7.38 15.3 12.51 27.23 15.51 11.36 2.85 13 6.22 8.84 19.63s3.11 26.23 5.7 29.57a78.3 78.3 0 0 1 8.31 12.47 93.8 93.8 0 0 1 6.62 16.48c2.17 6.79 4.05 12.65 10.63 21.22 11.07 14.4 17.66 48.64 15 78-.21 2.41-.53 4.29-.77 5.67-.43 2.53-.72 4.2.66 5.38s3.16.7 7.26-.63l3.43-1.09a109.33 109.33 0 0 1 12.58-2.8 2.15 2.15 0 0 0 1.59-1.16c3.43-6.91 3.85-15.22 4-22.47q0-1.31.06-2.79c.19-7.77.45-18.93-2.95-32a1 1 0 0 1 1.93-.64 93 93 0 0 1 6.66 25.55c2.55 22.58-1.9 32.09-1.94 32.17a1.61 1.61 0 0 0 .95 2.25 17.12 17.12 0 0 1 6.95 4.67c1.46 1.66.93 2.4-1.14 1.62a36.26 36.26 0 0 0-12.77-2.29c-10.4 0-18.09 4.95-21.51 9.19-3.19 3.94-3.7 7.67-3.83 11.27l-.06.05c-7.48-.75-12.94 1.21-17.47 6.21l-.08.09c-6.26 7.75-4 24.63-1.29 38.48 1.28 6.45 5.59 25.52 1.73 37.68zm96.1 10.07c-15.71 6.71-25.43 14.51-34 21.39-5.65 4.53-11 8.81-17.28 12.14-10.12 5.34-24.91 6.53-33.27-7.7-2.37-4-.71-9.86 1.58-17.95 3.05-10.75 7.23-25.46 3.71-44.65-.94-5.12-1.77-9.51-2.49-13.31C334 377 332.9 371.43 334 367c.63-2.45 3.43-3 5.87-3a20.83 20.83 0 0 1 2.63.19 29.51 29.51 0 0 0 7 12.1c5.7 5.86 13.63 8.83 23.56 8.85 2.1.17 25.94 1.55 36.54-22.4 1.46.18 3.65.7 4.3 2.3 1.28 3.19-.27 8.91-1.52 13.5-.9 3.31-1.68 6.16-1.63 8.37.31 16 11 22.78 25.83 32.16 1.79 1.13 3.66 2.31 5.55 3.54S445 425 445 426c-.52 4.79-20 13.16-26.45 15.91z",fill:"currentColor"},null,-1)];function cb(e,t){return b(),T("svg",lb,ub)}const db=Fn(ab,[["render",cb]]),fb={},pb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},hb=[x("path",{d:"M349.13 136.86c-40.32 0-57.36 19.24-85.44 19.24-28.79 0-50.75-19.1-85.69-19.1-34.2 0-70.67 20.88-93.83 56.45-32.52 50.16-27 144.63 25.67 225.11 18.84 28.81 44 61.12 77 61.47h.6c28.68 0 37.2-18.78 76.67-19h.6c38.88 0 46.68 18.89 75.24 18.89h.6c33-.35 59.51-36.15 78.35-64.85 13.56-20.64 18.6-31 29-54.35-76.19-28.92-88.43-136.93-13.08-178.34-23-28.8-55.32-45.48-85.79-45.48z",fill:"currentColor"},null,-1),x("path",{d:"M340.25 32c-24 1.63-52 16.91-68.4 36.86-14.88 18.08-27.12 44.9-22.32 70.91h1.92c25.56 0 51.72-15.39 67-35.11 14.72-18.77 25.88-45.37 21.8-72.66z",fill:"currentColor"},null,-1)];function mb(e,t){return b(),T("svg",pb,hb)}const vb=Fn(fb,[["render",mb]]),gb={class:"moonbase:product-downloads"},yb=["data-last","onClick"],_b={class:"moonbase:sr-only"},bb={class:"moonbase:sr-only"},wb=x("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})],-1),Eb=["onClick"],Ob=he({__name:"ProductDownloads",props:{downloads:{}},setup(e){const t=e,n={[Cr.Universal]:()=>tb,[Cr.Windows]:()=>ib,[Cr.Linux]:()=>db,[Cr.Mac]:()=>vb},{downloadProduct:r}=ha(),o=X(()=>t.downloads.reduce((s,i)=>({...s,[i.platform]:(s[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(s,i)=>(b(),T("span",gb,[(b(!0),T(Te,null,dn(o.value,(a,l,u)=>(b(),T(Te,{key:l},[a.length===1?(b(),T("button",{key:0,type:"button",role:"button","data-last":u===Object.keys(o.value).length-1||void 0,onClick:c=>w(r)(a[0])},[x("span",_b,Y(l.toString()),1),(b(),Pe(yu(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,yb)):(b(),Pe(w(Da),{key:1,as:"div","data-last":u===Object.keys(o.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:be(()=>[B(w(Td),null,{default:be(()=>[x("span",bb,Y(l.toString()),1),(b(),Pe(yu(a[0].icon()),{"aria-hidden":"true"})),wb]),_:2},1024),B(So,{name:"moonbase:scale"},{default:be(()=>[B(w(kd),{class:"moonbase:product-downloads-list"},{default:be(()=>[(b(!0),T(Te,null,dn(a,c=>(b(),T("button",{key:c.key,type:"button",role:"button",onClick:d=>w(r)(c)},Y(c.name),9,Eb))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),Nb={class:"moonbase:product-activations"},Sb=x("th",{scope:"col"}," Device ",-1),xb=x("th",{scope:"col"}," Activation Method ",-1),Tb=x("th",{scope:"col"}," Last Online ",-1),kb={key:0,scope:"col"},Cb=[x("span",{class:"sr-only"},"Actions",-1)],Pb={key:0},$b={colspan:"3"},Ib=x("td",null,null,-1),Db={key:1},Ab=[x("td",{colspan:"3"}," No activations found ",-1)],Vb={key:0},Rb=["onClick"],jb=he({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(e,{emit:t}){const n=e,r=t,{getProductActivations:o,revokeActivation:s}=ha(),i=P(null);Re(async()=>{let u=await o(n.productId);for(i.value=u.items.map(c=>({...c,revoking:!1}));u.hasMore&&u.next;)u=await o(n.productId,u.next),i.value.push(...u.items.map(c=>({...c,revoking:!1})))});const a=X(()=>i.value&&i.value.some(u=>u.activationMethod===di.Online));async function l(u){u.revoking=!0,await s(u),r("revoked",u),i.value&&i.value.splice(i.value.indexOf(u),1)}return(u,c)=>(b(),T("table",Nb,[x("thead",null,[x("tr",null,[Sb,xb,Tb,a.value?(b(),T("th",kb,Cb)):ve("",!0)])]),x("tbody",null,[i.value?i.value.length===0?(b(),T("tr",Db,Ab)):ve("",!0):(b(),T("tr",Pb,[x("td",$b,[B(Jt),Ae(" Loading activations.. ")]),Ib])),(b(!0),T(Te,null,dn(i.value,d=>{var f;return b(),T("tr",{key:d.id},[x("td",null,Y(d.name),1),x("td",null,Y(d.activationMethod),1),x("td",null,Y((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(b(),T("td",Vb,[x("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:v=>l(d)},[d.revoking?(b(),Pe(Jt,{key:0})):ve("",!0),Ae(" Revoke ")],8,Rb)])):ve("",!0)])}),128))])]))}}),Lb={class:"moonbase:products"},Mb=x("th",{scope:"col"}," Product ",-1),Ub=x("th",{scope:"col"}," Activations ",-1),Fb={key:0,scope:"col"},Bb={key:0},Hb=x("td",null,null,-1),Zb={key:1},qb=[x("td",{colspan:"3"}," No products found ",-1)],Wb=["src"],zb={key:1,class:"moonbase:image-placeholder"},Kb=x("span",{class:"moonbase:sr-only"},"View activations",-1),Gb={key:0},Jb={key:0},Yb=he({__name:"Products",setup(e){const{getProducts:t}=ha(),n=P(null);Re(async()=>{let o=await t();for(n.value=o.items;o.hasMore&&o.next;)o=await t(o.next),n.value.push(...o.items)});const r=X(()=>n.value&&n.value.some(o=>o.downloads));return(o,s)=>(b(),T("table",Lb,[x("thead",null,[x("tr",null,[Mb,Ub,r.value?(b(),T("th",Fb," Downloads ")):ve("",!0)])]),x("tbody",null,[n.value?n.value.length===0?(b(),T("tr",Zb,qb)):ve("",!0):(b(),T("tr",Bb,[x("td",null,[B(Jt),Ae(" Loading products.. ")]),Hb])),(b(!0),T(Te,null,dn(n.value||[],i=>(b(),T("tr",{key:i.id},[x("td",null,[x("div",null,[i.iconUrl?(b(),T("img",{key:0,src:i.iconUrl,alt:""},null,8,Wb)):(b(),T("div",zb)),x("span",null,Y(i.name),1)])]),B(w(Da),{as:"td"},{default:be(()=>[B(w(Td),{class:"moonbase:button","data-variant":"secondary"},{default:be(()=>[Kb,Ae(" "+Y(i.currentActivations)+" / "+Y(i.maxActivations),1)]),_:2},1024),B(So,{name:"moonbase:scale"},{default:be(()=>[B(w(kd),null,{default:be(()=>[B(jb,{"product-id":i.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024),r.value?(b(),T("td",Gb,[i.currentVersion!=null?(b(),T("div",Jb,[i.downloads?(b(),Pe(Ob,{key:0,downloads:i.downloads},null,8,["downloads"])):ve("",!0)])):ve("",!0)])):ve("",!0)]))),128))])]))}}),Xb={class:"moonbase:redeem"},Qb=["data-visible"],e1={key:1,class:"moonbase:redeem-voucher"},t1={key:0},n1={key:1},r1=x("span",null," Contains: ",-1),o1={class:"moonbase:redeem-voucher-products"},s1=["src"],i1={key:1,class:"moonbase:image-placeholder"},a1={key:0},l1={class:"moonbase:redeem-voucher-bundle"},u1=["src"],c1={key:1,class:"moonbase:image-placeholder"},d1={key:0},f1={class:"moonbase:redeem-voucher-bundle-products"},p1={class:"shrink-0"},h1=["src"],m1={key:1,class:"moonbase:image-placeholder"},v1=he({__name:"Redeem",setup(e){const{redeem:t}=Zv(),n=P(!1),r=P(null),o=P(null),s=P("");async function i(){n.value=!0,o.value=null;try{r.value=await t(s.value)}catch(a){throw o.value=a,a}n.value=!1}return(a,l)=>(b(),T("div",Xb,[B(So,{mode:"out-in",name:"moonbase:slide-left"},{default:be(()=>[r.value?(b(),T("div",e1,[x("h3",null,[Ae(" You got: "),x("strong",null,Y(r.value.name),1)]),r.value.description?(b(),T("h4",t1,Y(r.value.description),1)):ve("",!0),x("h4",null,[Ae(" Code: "),x("strong",null,Y(r.value.code),1)]),r.value.redeemsProducts.length>0?(b(),T("div",n1,[r1,x("div",o1,[(b(!0),T(Te,null,dn(r.value.redeemsProducts,({value:u,quantity:c})=>(b(),T("div",{key:u.id,class:"moonbase:redeem-voucher-product"},[x("div",null,[u.iconUrl?(b(),T("img",{key:0,src:u.iconUrl,alt:""},null,8,s1)):(b(),T("div",i1))]),x("div",null,[x("p",null,[Ae(Y(u.name)+" ",1),c!==1?(b(),T("span",a1,"x "+Y(c),1)):ve("",!0)]),x("p",null,Y(u.tagline),1)])]))),128)),(b(!0),T(Te,null,dn(r.value.redeemsBundles,({value:u,quantity:c})=>(b(),T("div",{key:u.id},[x("div",l1,[x("div",null,[u.iconUrl?(b(),T("img",{key:0,src:u.iconUrl,alt:""},null,8,u1)):(b(),T("div",c1))]),x("div",null,[x("p",null,[Ae(Y(u.name)+" ",1),c!==1?(b(),T("span",d1,"x "+Y(c),1)):ve("",!0)]),x("p",null,Y(u.tagline),1)])]),x("div",f1,[(b(!0),T(Te,null,dn(u.products,d=>(b(),T("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[x("div",p1,[d.iconUrl?(b(),T("img",{key:0,src:d.iconUrl,alt:""},null,8,h1)):(b(),T("div",m1))]),x("div",null,[x("p",null,Y(d.name),1),x("p",null,Y(d.tagline),1)])]))),128))])]))),128))])])):ve("",!0)])):(b(),Pe(Bn,{key:0,handler:i},{default:be(()=>{var u;return[B(gt,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),B(Hn,{label:"Redeem",success:"Redeem",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!o.value||void 0},Y((u=o.value)==null?void 0:u.message),9,Qb)]}),_:1}))]),_:1})]))}}),g1={class:"moonbase:customer"},y1=he({__name:"Customer",props:{open:{type:Boolean}},setup(e){const t=Me();function n(s){switch(s){case ge.ViewAccount:return 0;case ge.ViewProducts:return 1;case ge.RedeemVoucher:return 2}return 0}const r=P(n(t.intent));Xe(()=>t.intent,s=>{r.value=n(s)});function o(s){r.value=s}return(s,i)=>(b(),Pe(Ba,{open:s.open,onClose:i[0]||(i[0]=a=>w(t).reset())},{default:be(()=>[x("div",g1,[B(w(By),{"selected-index":r.value,onChange:o},{default:be(()=>[B(w(Hy),null,{default:be(()=>[B(w(Va),null,{default:be(()=>[Ae("Account")]),_:1}),B(w(Va),null,{default:be(()=>[Ae(" Products ")]),_:1}),B(w(Va),null,{default:be(()=>[Ae("Redeem")]),_:1})]),_:1}),B(w(Zy),null,{default:be(()=>[B(w(Ra),null,{default:be(()=>[B(J_)]),_:1}),B(w(Ra),null,{default:be(()=>[B(Yb)]),_:1}),B(w(Ra),null,{default:be(()=>[B(v1)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),_1={class:"moonbase:auto-activate"},b1={key:0,class:"moonbase:loader"},w1={key:1,class:"moonbase:loader"},E1={key:2,class:"moonbase:loader"},O1={key:3},N1={key:0,class:"moonbase:auto-activate-product"},S1=["src"],x1={key:1,class:"moonbase:image-placeholder"},T1={key:1,class:"moonbase:loader"},k1=[x("h3",null," Uh oh ",-1),x("p",null," This activation request was cancelled, open your app to try again. ",-1)],C1={key:2,class:"moonbase:loader"},P1={key:3,class:"moonbase:loader"},$1=[x("h3",null," Done! ",-1),x("p",null," Your product is activated. ",-1)],I1={key:4,class:"moonbase:auto-activate-content"},D1={key:0},A1={key:1},V1=x("p",null," You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ",-1),R1={class:"moonbase:auto-activate-cta"},j1=["href"],L1={key:2,class:"moonbase:auto-activate-trial"},M1={class:"moonbase:auto-activate-cta"},U1=he({__name:"AutoActivate",setup(e){const t=Me(),{user:n,loaded:r}=kt(),o=t.getParameter("token"),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:u,fulfillLicense:c,fulfillTrial:d,cancel:f}=Hv(o);Xe(s,E=>{var O;!a.value&&!l.value&&(E==null?void 0:E.status)===Bt.Requested&&((O=E==null?void 0:E.licenseEligibility)!=null&&O.eligible)&&c()});function v(){f(),t.show(Ie.Customer,ge.ViewProducts)}function g(){t.enqueue(Ie.Activation,ge.ActivateProduct,t.parameters??void 0),t.show(Ie.Authentication,ge.SignIn)}return(E,O)=>{var L,F,C,z;return b(),T("div",_1,[w(i)||!w(r)?(b(),T("div",b1,[B(Jt)])):w(u)?(b(),T("div",w1,Y(w(u)),1)):w(s)?(b(),T("div",O1,[w(s).product?(b(),T("div",N1,[w(s).product.iconUrl?(b(),T("img",{key:0,src:w(s).product.iconUrl,alt:""},null,8,S1)):(b(),T("div",x1)),x("div",null,[x("h2",null,Y(w(s).product.name),1),x("h3",null,Y(w(s).product.tagline),1)])])):ve("",!0),((L=w(s))==null?void 0:L.status)===w(Bt).Cancelled?(b(),T("div",T1,k1)):w(a)||w(l)?(b(),T("div",C1,[B(Jt),x("p",null,"Activating "+Y(w(s).product.name)+"...",1)])):((F=w(s))==null?void 0:F.status)===w(Bt).Completed?(b(),T("div",P1,$1)):(b(),T("div",I1,[w(n)?(C=w(n).ownedProducts)!=null&&C.includes(w(s).product.id)?(b(),T("div",A1,[V1,x("span",R1,[x("button",{role:"button",class:"moonbase:button",onClick:O[0]||(O[0]=$=>v())}," Licenses "),w(s).product&&w(s).product.website?(b(),T("a",{key:0,href:w(s).product.website,class:"moonbase:button"}," Purchase ",8,j1)):ve("",!0)])])):ve("",!0):(b(),T("div",D1,[Ae(" Please sign in to use a license "),x("span",{class:"moonbase:auto-activate-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:g}," Sign in ")])])),(z=w(s).trialEligibility)!=null&&z.eligible?(b(),T("div",L1,[Ae(" You are eligible for a "+Y(w(s).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),w(s).trialEligibility.existing?(b(),T(Te,{key:0},[Ae(" of which you have "+Y(w(s).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):ve("",!0),Ae(". "),x("span",M1,[x("button",{role:"button",class:"moonbase:button",onClick:O[1]||(O[1]=$=>w(d)())}," Start trial ")])])):ve("",!0)]))])):(b(),T("div",E1," Could not find activation request "))])}}}),F1={class:"moonbase:activation"},B1=he({__name:"Activation",props:{open:{type:Boolean}},setup(e){const t=Me();return(n,r)=>(b(),Pe(Ba,{open:n.open,onClose:r[0]||(r[0]=o=>w(t).reset())},{default:be(()=>[x("div",F1,[B(w($a),{as:"h3"},{default:be(()=>[Ae(" Activate product ")]),_:1}),n.open&&w(t).intent===w(ge).ActivateProduct?(b(),Pe(U1,{key:0})):ve("",!0)])]),_:1},8,["open"]))}}),H1=he({__name:"App",setup(e){const t=ke(Zs),n=Me();return(r,o)=>{var s;return b(),T(Te,null,[(s=w(t))!=null&&s.toolbar.enabled?(b(),Pe(Sg,{key:0})):ve("",!0),B(q_,{open:w(n).active===w(Ie).Cart},null,8,["open"]),B(n_,{open:w(n).active===w(Ie).Authentication},null,8,["open"]),B(B1,{open:w(n).active===w(Ie).Activation},null,8,["open"]),B(y1,{open:w(n).active===w(Ie).Customer},null,8,["open"])],64)}}});function ei(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ha(e,...t){if(t.length===0)return e;const n=t.shift();if(!n)return e;if(ei(e)&&ei(n)){for(const r in e)if(n.hasOwnProperty(r)){const o=n[r];ei(o)&&ei(e[r])?e[r]=Ha(e[r],o):o!==void 0&&(e[r]=o)}}return Ha(e,...t)}class Z1{constructor(){Or(this,"initialized",!1);Or(this,"pinia");Or(this,"storefront");Or(this,"options")}async setup(t,n){if(document.getElementById("moonbase")){console.warn("Moonbase has already been initialized!");return}const r=document.createElement("div");if(r.id="moonbase",r.classList.add("moonbase"),document.body.append(r),this.options=Ha(wg,n),this.storefront=qv(t),this.pinia=vg(),$v(H1).use(this.storefront).use(this.pinia).provide(Zs,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const o=new URLSearchParams(window.location.search),s=o.get("mb_intent");if(s&&Object.values(ge).includes(s)){const i=Object.fromEntries([...o.entries()].filter(([l])=>l.startsWith("mb_")).map(([l,u])=>[l.substring(3),u]));this[s](i);for(const l of Object.keys(i))o.delete(`mb_${l}`);const a=o.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(a?`?${a}`:""))}}}sign_in(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Authentication,ge.SignIn,t)}sign_up(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!this.options.auth.enable.signUp)throw new Error("Sign ups are not enabled");Me(this.pinia).show(Ie.Authentication,ge.SignUp,t)}forgot_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Authentication,ge.ForgotPassword,t)}reset_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Authentication,ge.ResetPassword,t)}confirm_account(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Authentication,ge.ConfirmAccount,t)}confirm_email(){}confirm_email_change(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=Me(this.pinia);kt(this.storefront).user.value?n.show(Ie.Authentication,ge.ConfirmEmailChange,t):(n.show(Ie.Authentication,ge.SignIn),n.enqueue(Ie.Authentication,ge.ConfirmEmailChange,t))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const t=Me(this.pinia);kt(this.storefront).user.value?t.show(Ie.Customer,ge.ViewAccount):(t.show(Ie.Authentication,ge.SignIn),t.enqueue(Ie.Customer,ge.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Cart,ge.ViewCart)}redeem_voucher(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Cart,ge.ViewCart,t)}download_product(){}activate_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.token))throw new Error("You need to provide a token when activating a product");Me(this.pinia).show(Ie.Activation,ge.ActivateProduct,t)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Me(this.pinia).show(Ie.Cart,ge.ViewCart)}async add_to_cart(t){var o,s,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.product_id)&&!(t!=null&&t.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=ma(this.storefront);if(t!=null&&t.product_id){const l=Cc(t.product_id,this.storefront);if(l.value)n.addToCart(l.value,(o=l.value.variations)==null?void 0:o.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=Cc(t.product_id,this.storefront);if(u.value)n.addToCart(u.value,(s=u.value.variations)==null?void 0:s.find(c=>c.id===t.variation_id));else throw new Error(`Product '${t.product_id}' not found`)}}if(t!=null&&t.bundle_id){const l=kc(t.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=kc(t.bundle_id,this.storefront);if(u.value)n.addToCart(u.value,(a=u.value.variations)==null?void 0:a.find(c=>c.id===t.variation_id));else throw new Error(`Bundle '${t.bundle_id}' not found`)}}Me(this.pinia).show(Ie.Cart,ge.AddToCart)}checkout(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");ma(this.storefront).checkout(`${window.location.pathname}?mb_intent=view_products`)}}const Ad=new Z1;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=Ad),wt.MoonbaseIntent=ge,wt.default=Ad,Object.defineProperties(wt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
25
+ `));const f=nd(c.props??{},i,l),m=Rt(c,f,!0);for(const v in f)v.startsWith("on")&&(m.props||(m.props={}),m.props[v]=f[v]);return m}return Array.isArray(a)&&a.length===1?a[0]:a}return Le(s,Object.assign({},i,l),{default:()=>a})}function td(e){return e.flatMap(t=>t.type===ke?td(t.children):[t])}function nd(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={},n={};for(const r of e)for(const o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]??(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(t,{[r](o,...s){const i=n[r];for(const a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Ca(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function vy(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var zn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zn||{});let Kn=pe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:o["aria-hidden"]??void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Qe({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function gy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function G(e){if(e==null||e.value==null)return null;let t=e.value.$el??e.value;return t instanceof Node?t:null}function Qt(e){if(To.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=G(e);if(t)return t.ownerDocument}return document}const zs=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ue=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ue||{}),yn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(yn||{});function Ks(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(zs)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Pa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Pa||{});function rd(e,t=0){var n;return e===((n=Qt(e))==null?void 0:n.body)?!1:Je(t,{0(){return e.matches(zs)},1(){let r=e;for(;r!==null;){if(r.matches(zs))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:e.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function br(e){e==null||e.focus({preventScroll:!0})}const yy=["textarea","input"].join(",");function _y(e){var t;return((t=e==null?void 0:e.matches)==null?void 0:t.call(e,yy))??!1}function jr(e,t=n=>n){return e.slice().sort((n,r)=>{const o=t(n),s=t(r);if(o===null||s===null)return 0;const i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function it(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){const s=(Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)??document;let i=Array.isArray(e)?n?jr(e):e:Ks(e);o.length>0&&i.length>1&&(i=i.filter(m=>!o.includes(m))),r=r??s.activeElement;const a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{};let c=0;const d=i.length;let f;do{if(c>=d||c+d<=0)return 0;let m=l+c;if(t&16)m=(m+d)%d;else{if(m<0)return 3;if(m>=d)return 1}f=i[m],f==null||f.focus(u),c+=a}while(f!==s.activeElement);return t&6&&_y(f)&&f.select(),2}let wr=[];gy(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||wr[0]===t.target)return;let n=t.target;n=n.closest(zs),wr.unshift(n??t.target),wr=wr.filter(r=>r!=null&&r.isConnected),wr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Gs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function od(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());const t=new Set;for(const n of e.value){const r=G(n);r instanceof HTMLElement&&t.add(r)}return t}var sd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(sd||{});const Co=Object.assign(pe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:T(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=T(null);r({el:o,$el:o});const s=X(()=>Qt(o)),i=T(!1);Ve(()=>i.value=!0),mt(()=>i.value=!1),wy({ownerDocument:s},X(()=>i.value&&!!(e.features&16)));const a=Ey({ownerDocument:s,container:o,initialFocus:X(()=>e.initialFocus)},X(()=>i.value&&!!(e.features&2)));Oy({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},X(()=>i.value&&!!(e.features&8)));const l=Ta();function u(m){const v=G(o);if(!v)return;(S=>S())(()=>{Je(l.value,{[xt.Forwards]:()=>{it(v,Ue.First,{skipElements:[m.relatedTarget]})},[xt.Backwards]:()=>{it(v,Ue.Last,{skipElements:[m.relatedTarget]})}})})}const c=T(!1);function d(m){m.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(m){if(!i.value)return;const v=od(e.containers);G(o)instanceof HTMLElement&&v.add(G(o));const N=m.relatedTarget;N instanceof HTMLElement&&N.dataset.moonbaseFocusGuard!=="true"&&(id(v,N)||(c.value?it(G(o),Je(l.value,{[xt.Forwards]:()=>Ue.Next,[xt.Backwards]:()=>Ue.Previous})|Ue.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&br(m.target)))}return()=>{const m={},v={ref:o,onKeydown:d,onFocusout:f},{features:N,initialFocus:S,containers:D,...B}=e;return Le(ke,[!!(N&4)&&Le(Kn,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:zn.Focusable}),Qe({ourProps:v,theirProps:{...t,...B},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(N&4)&&Le(Kn,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:zn.Focusable})])}}}),{features:sd});function by(e){const t=T(wr.slice());return Xe([e],([n],[r])=>{r===!0&&n===!1?Gs(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=wr.slice())},{flush:"post"}),()=>t.value.find(n=>n!=null&&n.isConnected)??null}function wy({ownerDocument:e},t){const n=by(t);Ve(()=>{ft(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&br(n())},{flush:"post"})}),mt(()=>{t.value&&br(n())})}function Ey({ownerDocument:e,container:t,initialFocus:n},r){const o=T(null),s=T(!1);return Ve(()=>s.value=!0),mt(()=>s.value=!1),Ve(()=>{Xe([t,n,r],(i,a)=>{if(i.every((u,c)=>(a==null?void 0:a[c])===u)||!r.value)return;const l=G(t);l&&Gs(()=>{var d,f;if(!s.value)return;const u=G(n),c=(d=e.value)==null?void 0:d.activeElement;if(u){if(u===c){o.value=c;return}}else if(l.contains(c)){o.value=c;return}u?br(u):it(l,Ue.First|Ue.NoScroll)===yn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),o}function Oy({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;ka((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;const a=od(n);G(t)instanceof HTMLElement&&a.add(G(t));const l=r.value;if(!l)return;const u=i.target;u&&u instanceof HTMLElement?id(a,u)?(r.value=u,br(u)):(i.preventDefault(),i.stopPropagation(),br(l)):br(r.value)},!0)}function id(e,t){for(const n of e)if(n.contains(t))return!0;return!1}function Ny(e){let t=ah(e.getSnapshot());return mt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Po(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Gs(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Po();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Sy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function xy(){let e;return{before({doc:t}){let n=t.documentElement,r=t.defaultView??window;e=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-o);n.style(r,"paddingRight",`${s}px`)}}}function ad(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ky(){return/Android/gi.test(window.navigator.userAgent)}function Ty(){return ad()||ky()}function Cy(){return ad()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){const i=Po();i.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}const o=window.scrollY??window.pageYOffset;let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),u=e.querySelector(l);u&&!r(u)&&(s=u)}catch{}},!0),t.addEventListener(e,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(i.target,"touchAction","none")}),t.addEventListener(e,"touchmove",i=>{if(i.target instanceof HTMLElement){if(i.target.tagName==="INPUT")return;if(r(i.target)){let a=i.target;for(;a.parentElement&&a.dataset.moonbasePortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.moonbasePortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),t.add(()=>{const i=window.scrollY??window.pageYOffset;o!==i&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Py(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function $y(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Er=Sy(()=>new Map,{PUSH(e,t){let n=this.get(e)??{doc:e,count:0,d:Po(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:$y(n)},o=[Cy(),xy(),Py()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Er.subscribe(()=>{let e=Er.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Er.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Er.dispatch("TEARDOWN",n)}});function Iy(e,t,n){let r=Ny(Er),o=X(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Xe([e,t],([s,i],[a],l)=>{if(!s||!i)return;Er.dispatch("PUSH",s,n);let u=!1;l(()=>{u||(Er.dispatch("POP",a??s,n),u=!0)})},{immediate:!0}),o}let Dy=0;function Ay(){return++Dy}function $t(){return Ay()}let $a=new Map,$o=new Map;function ld(e,t=T(!0)){ft(n=>{if(!t.value)return;let r=G(e);if(!r)return;n(function(){if(!r)return;let i=$o.get(r)??1;if(i===1?$o.delete(r):$o.set(r,i-1),i!==1)return;let a=$a.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,$a.delete(r))});let o=$o.get(r)??0;$o.set(r,o+1),o===0&&($a.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Io(e,t,n,r){To.isServer||ft(o=>{e.value&&(document.addEventListener(t,n,r),o(()=>document.removeEventListener(t,n,r)))})}const ud=30;function cd(e,t,n=X(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(const c of u){if(c===null)continue;const d=c instanceof HTMLElement?c:G(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!rd(l,Pa.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}const o=T(null);Io(n,"pointerdown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Io(n,"mousedown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Io(n,"click",i=>{Ty()||o.value&&(r(i,()=>o.value),o.value=null)},!0);const s={x:0,y:0};Io(n,"touchstart",i=>{s.x=i.touches[0].clientX,s.y=i.touches[0].clientY},!0),Io(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-s.x)>=ud||Math.abs(a.y-s.y)>=ud))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),ed(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function dd({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){const r=T(null),o=Qt(r);function s(){var a,l;const i=[];for(const u of e)u!==null&&(u instanceof HTMLElement?i.push(u):"value"in u&&u.value instanceof HTMLElement&&i.push(u.value));if(t!=null&&t.value)for(const u of t.value)i.push(u);for(const u of(o==null?void 0:o.querySelectorAll("html > *, body > *"))??[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="moonbase"&&(u.contains(G(r))||u.contains((l=(a=G(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(c=>u.contains(c))||i.push(u));return i}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:Le(Kn,{features:zn.Hidden,ref:r})}}}let fd=Symbol("Context");var at=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(at||{});function Vy(){return Js()!==null}function Js(){return $e(fd,null)}function pd(e){dt(fd,e)}const hd=Symbol("ForcePortalRootContext");function Ry(){return $e(hd,!1)}const md=pe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return dt(hd,e.force),()=>{const{force:r,...o}=e;return Qe({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});let vd=Symbol("StackContext");var Ia=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ia||{});function jy(){return $e(vd,()=>{})}function Ly({type:e,enabled:t,element:n,onUpdate:r}){let o=jy();function s(...i){r==null||r(...i),o(...i)}Ve(()=>{Xe(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),mt(()=>{t.value&&s(1,e,n)}),dt(vd,s)}var et=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(et||{});let My=Symbol("DescriptionContext");function Uy({slot:e=T({}),name:t="Description",props:n={}}={}){let r=T([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return dt(My,{register:o,slot:e,name:t,props:n}),X(()=>r.value.length>0?r.value.join(" "):void 0)}function gd(e){const t=Qt(e);if(!t){if(e===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${e}`)}const n=t.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const Fy=pe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=T(null);X(()=>Qt(r));const o=Ry(),s=$e(_d,null),i=T(o===!0||s==null?gd(r.value):s.resolveTarget()),a=T(!1);Ve(()=>{a.value=!0}),ft(()=>{o||s!=null&&(i.value=s.resolveTarget())});const l=$e(Da,null);let u=!1;const c=$s();return Xe(r,()=>{if(u||!l)return;const d=G(r);d&&(mt(l.register(d),c),u=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return Le(Sm,{to:i.value},Qe({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}});let Da=Symbol("PortalParentContext");function yd(){const e=$e(Da,null),t=T([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){const i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}const o={register:n,unregister:r,portals:t};return[t,pe({name:"PortalWrapper",setup(s,{slots:i}){return dt(Da,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let _d=Symbol("PortalGroupContext");const By=pe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){const r=oo({resolveTarget(){return e.target}});return dt(_d,r),()=>{const{target:o,...s}=e;return Qe({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),Aa=Symbol("DialogContext");function Ys(e){const t=$e(Aa,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ys),n}return t}const Xs="DC8F892D-2EBD-447C-A4C8-A03058436FF4",bd=pe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Xs},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${$t()}`},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var ue;const s=T(!1);Ve(()=>{s.value=!0});let i=!1;const a=X(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=T(0),u=Js(),c=X(()=>e.open===Xs&&u!==null?(u.value&at.Open)===at.Open:e.open),d=T(null),f=X(()=>Qt(d));if(o({el:d,$el:d}),!(e.open!==Xs||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===Xs?void 0:e.open}`);const v=X(()=>s.value&&c.value?0:1),N=X(()=>v.value===0),S=T(null),D={titleId:S,panelRef:T(null),dialogState:v,setTitleId(Ie){S.value!==Ie&&(S.value=Ie)},close(){t("close",!1)}},B=X(()=>l.value>1),P=$e(Aa,null)!==null,[K,$]=yd(),{resolveContainers:Z,mainTreeNodeRef:x,MainTreeNode:de}=dd({portals:K,defaultContainers:[X(()=>D.panelRef.value??d.value)]}),Y=X(()=>B.value?"parent":"leaf"),V=X(()=>u!==null?(u.value&at.Closing)===at.Closing:!1),C=X(()=>P||V.value?!1:N.value),j=X(()=>{var Ie;return Array.from(((Ie=f.value)==null?void 0:Ie.querySelectorAll("body > *"))??[]).find(je=>je.id==="moonbase"?!1:je.contains(G(x))&&je instanceof HTMLElement)??null});ld(j,C);const oe=X(()=>B.value?!0:N.value),w=X(()=>{var Ie;return Array.from(((Ie=f.value)==null?void 0:Ie.querySelectorAll("[data-moonbase-portal]"))??[]).find(je=>je.contains(G(x))&&je instanceof HTMLElement)??null});ld(w,oe),Ly({type:"Dialog",enabled:X(()=>v.value===0),element:d,onUpdate:(Ie,je)=>{if(je==="Dialog")return Je(Ie,{[Ia.Add]:()=>l.value+=1,[Ia.Remove]:()=>l.value-=1})}});const I=Uy({name:"DialogDescription",slot:X(()=>({open:c.value}))});dt(Aa,D);const ne=X(()=>!(!N.value||B.value));cd(Z,(Ie,je)=>{Ie.preventDefault(),D.close(),lo(()=>je==null?void 0:je.focus())},ne);const ae=X(()=>!(B.value||v.value!==0));ka((ue=f.value)==null?void 0:ue.defaultView,"keydown",Ie=>{ae.value&&(Ie.defaultPrevented||Ie.key===et.Escape&&(Ie.preventDefault(),Ie.stopPropagation(),D.close()))});const re=X(()=>!(V.value||v.value!==0||P));return Iy(f,re,Ie=>({containers:[...Ie.containers??[],Z]})),ft(Ie=>{if(v.value!==0)return;const je=G(d);if(!je)return;const nt=new ResizeObserver(bt=>{for(const bn of bt){const Gn=bn.target.getBoundingClientRect();Gn.x===0&&Gn.y===0&&Gn.width===0&&Gn.height===0&&D.close()}});nt.observe(je),Ie(()=>nt.disconnect())}),()=>{const{id:Ie,open:je,initialFocus:nt,...bt}=e,bn={...n,ref:d,id:Ie,role:a.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":S.value,"aria-describedby":I.value},Gn={open:v.value===0};return Le(md,{force:!0},()=>[Le(Fy,()=>Le(By,{target:d.value},()=>Le(md,{force:!1},()=>Le(Co,{initialFocus:nt,containers:Z,features:N.value?Je(Y.value,{parent:Co.features.RestoreFocus,leaf:Co.features.All&~Co.features.FocusLock}):Co.features.None},()=>Le($,{},()=>Qe({ourProps:bn,theirProps:{...bt,...n},slot:Gn,attrs:n,slots:r,visible:v.value===0,features:qn.RenderStrategy|qn.Static,name:"Dialog"})))))),Le(de)])}}}),wd=pe({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${$t()}`}},setup(e,{attrs:t,slots:n}){const r=Ys("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),r.close())}return()=>{const{id:s,...i}=e;return Qe({ourProps:{id:s,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),Ed=pe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${$t()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=Ys("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{const{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return Qe({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Qs=pe({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${$t()}`}},setup(e,{attrs:t,slots:n}){const r=Ys("DialogTitle");return Ve(()=>{r.setTitleId(e.id),mt(()=>r.setTitleId(null))}),()=>{const{id:o,...s}=e;return Qe({ourProps:{id:o},theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});function Od(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Nd(e,t){let n=T(Od(e.value.type,e.value.as));return Ve(()=>{n.value=Od(e.value.type,e.value.as)}),ft(()=>{var r;n.value||G(t)&&G(t)instanceof HTMLButtonElement&&!((r=G(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const Sd=Symbol("PopoverContext");function Va(e){const t=$e(Sd,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <${Ra.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Va),n}return t}const Hy=Symbol("PopoverGroupContext");function xd(){return $e(Hy,null)}const kd=Symbol("PopoverPanelContext");function Zy(){return $e(kd,null)}let Ra=pe({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var K;const o=T(null);r({el:o,$el:o});const s=T(1),i=T(null),a=T(null),l=T(null),u=T(null),c=X(()=>Qt(o)),d=X(()=>{var C,j;if(!G(i)||!G(u))return!1;for(const oe of document.querySelectorAll("body > *"))if(Number(oe==null?void 0:oe.contains(G(i)))^Number(oe==null?void 0:oe.contains(G(u))))return!0;const $=Ks(),Z=$.indexOf(G(i)),x=(Z+$.length-1)%$.length,de=(Z+1)%$.length,Y=$[x],V=$[de];return!((C=G(u))!=null&&C.contains(Y))&&!((j=G(u))!=null&&j.contains(V))}),f={popoverState:s,buttonId:T(null),panelId:T(null),panel:u,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){s.value=Je(s.value,{0:1,1:0})},closePopover(){s.value!==1&&(s.value=1)},close($){f.closePopover();const Z=$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?G($):G(f.button):G(f.button);Z==null||Z.focus()}};dt(Sd,f),pd(X(()=>Je(s.value,{0:at.Open,1:at.Closed})));const m={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},v=xd(),N=v==null?void 0:v.registerPopover,[S,D]=yd(),B=dd({mainTreeNodeRef:v==null?void 0:v.mainTreeNodeRef,portals:S,defaultContainers:[i,u]});function P(){var $,Z,x;return(v==null?void 0:v.isFocusWithinPopoverGroup())??((($=c.value)==null?void 0:$.activeElement)&&(((Z=G(i))==null?void 0:Z.contains(c.value.activeElement))||((x=G(u))==null?void 0:x.contains(c.value.activeElement))))}return ft(()=>N==null?void 0:N(m)),ka((K=c.value)==null?void 0:K.defaultView,"focus",$=>{var Z,x;$.target!==window&&$.target instanceof HTMLElement&&s.value===0&&(P()||i&&u&&(B.contains($.target)||(Z=G(f.beforePanelSentinel))!=null&&Z.contains($.target)||(x=G(f.afterPanelSentinel))!=null&&x.contains($.target)||f.closePopover()))},!0),cd(B.resolveContainers,($,Z)=>{var x;f.closePopover(),rd(Z,Pa.Loose)||($.preventDefault(),(x=G(i))==null||x.focus())},X(()=>s.value===0)),()=>{const $={open:s.value===0,close:f.close};return Le(ke,[Le(D,{},()=>Qe({theirProps:{...e,...n},ourProps:{ref:o},slot:$,slots:t,attrs:n,name:"Popover"})),Le(B.MainTreeNode)])}}});const Td=pe({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${$t()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=Va("PopoverButton"),s=X(()=>Qt(o.button));r({el:o.button,$el:o.button}),Ve(()=>{o.buttonId.value=e.id}),mt(()=>{o.buttonId.value=null});const i=xd(),a=i==null?void 0:i.closeOthers,l=Zy(),u=X(()=>l===null?!1:l.value===o.panelId.value),c=T(null),d=`moonbase-focus-sentinel-${$t()}`;u.value||ft(()=>{o.button.value=G(c)});const f=Nd(X(()=>({as:e.as,type:t.type})),c);function m(P){var K,$,Z,x,de;if(u.value){if(o.popoverState.value===1)return;switch(P.key){case et.Space:case et.Enter:P.preventDefault(),($=(K=P.target).click)==null||$.call(K),o.closePopover(),(Z=G(o.button))==null||Z.focus();break}}else switch(P.key){case et.Space:case et.Enter:P.preventDefault(),P.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case et.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!G(o.button)||(x=s.value)!=null&&x.activeElement&&!((de=G(o.button))!=null&&de.contains(s.value.activeElement)))return;P.preventDefault(),P.stopPropagation(),o.closePopover();break}}function v(P){u.value||P.key===et.Space&&P.preventDefault()}function N(P){var K,$;e.disabled||(u.value?(o.closePopover(),(K=G(o.button))==null||K.focus()):(P.preventDefault(),P.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),($=G(o.button))==null||$.focus()))}function S(P){P.preventDefault(),P.stopPropagation()}const D=Ta();function B(){const P=G(o.panel);if(!P)return;function K(){Je(D.value,{[xt.Forwards]:()=>it(P,Ue.First),[xt.Backwards]:()=>it(P,Ue.Last)})===yn.Error&&it(Ks().filter(Z=>Z.dataset.moonbaseFocusGuard!=="true"),Je(D.value,{[xt.Forwards]:Ue.Next,[xt.Backwards]:Ue.Previous}),{relativeTo:G(o.button)})}K()}return()=>{const P=o.popoverState.value===0,K={open:P},{id:$,...Z}=e,x=u.value?{ref:c,type:f.value,onKeydown:m,onClick:N}:{ref:c,id:$,type:f.value,"aria-expanded":o.popoverState.value===0,"aria-controls":G(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:m,onKeyup:v,onClick:N,onMousedown:S};return Le(ke,[Qe({ourProps:x,theirProps:{...t,...Z},slot:K,attrs:t,slots:n,name:"PopoverButton"}),P&&!u.value&&o.isPortalled.value&&Le(Kn,{id:d,features:zn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:B})])}}}),Cd=pe({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`moonbase-popover-panel-${$t()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const{focus:o}=e,s=Va("PopoverPanel"),i=X(()=>Qt(s.panel)),a=`moonbase-focus-sentinel-before-${$t()}`,l=`moonbase-focus-sentinel-after-${$t()}`;r({el:s.panel,$el:s.panel}),Ve(()=>{s.panelId.value=e.id}),mt(()=>{s.panelId.value=null}),dt(kd,s.panelId),ft(()=>{var D,B;if(!o||s.popoverState.value!==0||!s.panel)return;const S=(D=i.value)==null?void 0:D.activeElement;(B=G(s.panel))!=null&&B.contains(S)||it(G(s.panel),Ue.First)});const u=Js(),c=X(()=>u!==null?(u.value&at.Open)===at.Open:s.popoverState.value===0);function d(S){var D,B;switch(S.key){case et.Escape:if(s.popoverState.value!==0||!G(s.panel)||i.value&&!((D=G(s.panel))!=null&&D.contains(i.value.activeElement)))return;S.preventDefault(),S.stopPropagation(),s.closePopover(),(B=G(s.button))==null||B.focus();break}}function f(S){var B,P,K,$,Z;const D=S.relatedTarget;D&&G(s.panel)&&((B=G(s.panel))!=null&&B.contains(D)||(s.closePopover(),((K=(P=G(s.beforePanelSentinel))==null?void 0:P.contains)!=null&&K.call(P,D)||(Z=($=G(s.afterPanelSentinel))==null?void 0:$.contains)!=null&&Z.call($,D))&&D.focus({preventScroll:!0})))}const m=Ta();function v(){const S=G(s.panel);if(!S)return;function D(){Je(m.value,{[xt.Forwards]:()=>{var P;it(S,Ue.First)===yn.Error&&((P=G(s.afterPanelSentinel))==null||P.focus())},[xt.Backwards]:()=>{var B;(B=G(s.button))==null||B.focus({preventScroll:!0})}})}D()}function N(){const S=G(s.panel);if(!S)return;function D(){Je(m.value,{[xt.Forwards]:()=>{const B=G(s.button),P=G(s.panel);if(!B)return;const K=Ks(),$=K.indexOf(B),Z=K.slice(0,$+1),de=[...K.slice($+1),...Z];for(const Y of de.slice())if(Y.dataset.moonbaseFocusGuard==="true"||P!=null&&P.contains(Y)){const V=de.indexOf(Y);V!==-1&&de.splice(V,1)}it(de,Ue.First,{sorted:!1})},[xt.Backwards]:()=>{var P;it(S,Ue.Previous)===yn.Error&&((P=G(s.button))==null||P.focus())}})}D()}return()=>{const S={open:s.popoverState.value===0,close:s.close},{id:D,focus:B,...P}=e,K={ref:s.panel,id:D,onKeydown:d,onFocusout:o&&s.popoverState.value===0?f:void 0,tabIndex:-1};return Qe({ourProps:K,theirProps:{...t,...P},attrs:t,slot:S,slots:{...n,default:(...$)=>{var Z;return[Le(ke,[c.value&&s.isPortalled.value&&Le(Kn,{id:a,ref:s.beforePanelSentinel,features:zn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:v}),(Z=n.default)==null?void 0:Z.call(n,...$),c.value&&s.isPortalled.value&&Le(Kn,{id:l,ref:s.afterPanelSentinel,features:zn.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:N})])]}},features:qn.RenderStrategy|qn.Static,visible:c.value,name:"PopoverPanel"})}}});let qy=pe({props:{onFocus:{type:Function,required:!0}},setup(e){let t=T(!0);return()=>t.value?Le(Kn,{as:"button",type:"button",features:zn.Focusable,onFocus(n){n.preventDefault();let r,o=50;function s(){var i;if(o--<=0){r&&cancelAnimationFrame(r);return}if((i=e.onFocus)!=null&&i.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(s)}r=requestAnimationFrame(s)}}):null}});const Pd=Symbol("TabsContext");function Do(e){const t=$e(Pd,null);if(t===null){const n=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Do),n}return t}const ja=Symbol("TabsSSRContext"),Wy=pe({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){const o=T(e.selectedIndex??e.defaultIndex),s=T([]),i=T([]),a=X(()=>e.selectedIndex!==null),l=X(()=>a.value?e.selectedIndex:o.value);function u(v){const N=jr(c.tabs.value,G),S=jr(c.panels.value,G),D=N.filter(B=>{var P;return!((P=G(B))!=null&&P.hasAttribute("disabled"))});if(v<0||v>N.length-1){const B=Je(o.value===null?0:Math.sign(v-o.value),{[-1]:()=>1,0:()=>Je(Math.sign(v),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),P=Je(B,{0:()=>N.indexOf(D[0]),1:()=>N.indexOf(D[D.length-1])});P!==-1&&(o.value=P),c.tabs.value=N,c.panels.value=S}else{const B=N.slice(0,v),K=[...N.slice(v),...B].find(Z=>D.includes(Z));if(!K)return;let $=N.indexOf(K)??c.selectedIndex.value;$===-1&&($=c.selectedIndex.value),o.value=$,c.tabs.value=N,c.panels.value=S}}let c={selectedIndex:X(()=>o.value??e.defaultIndex??null),orientation:X(()=>e.vertical?"vertical":"horizontal"),activation:X(()=>e.manual?"manual":"auto"),tabs:s,panels:i,setSelectedIndex(v){l.value!==v&&r("change",v),a.value||u(v)},registerTab(v){if(s.value.includes(v))return;const N=s.value[o.value];if(s.value.push(v),s.value=jr(s.value,G),!a.value){const S=s.value.indexOf(N)??o.value;S!==-1&&(o.value=S)}},unregisterTab(v){const N=s.value.indexOf(v);N!==-1&&s.value.splice(N,1)},registerPanel(v){i.value.includes(v)||(i.value.push(v),i.value=jr(i.value,G))},unregisterPanel(v){const N=i.value.indexOf(v);N!==-1&&i.value.splice(N,1)}};dt(Pd,c);const d=T({tabs:[],panels:[]}),f=T(!1);Ve(()=>{f.value=!0}),dt(ja,X(()=>f.value?null:d.value));const m=X(()=>e.selectedIndex);return Ve(()=>{Xe([m],()=>u(e.selectedIndex??e.defaultIndex),{immediate:!0})}),ft(()=>{if(!a.value||l.value==null||c.tabs.value.length<=0)return;const v=jr(c.tabs.value,G);v.some((S,D)=>G(c.tabs.value[D])!==G(S))&&c.setSelectedIndex(v.findIndex(S=>G(S)===G(c.tabs.value[l.value])))}),()=>{const v={selectedIndex:o.value};return Le(ke,[s.value.length<=0&&Le(qy,{onFocus:()=>{for(const N of s.value){const S=G(N);if((S==null?void 0:S.tabIndex)===0)return S.focus(),!0}return!1}}),Qe({theirProps:{...n,...Ca(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:v,slots:t,attrs:n,name:"TabGroup"})])}}}),zy=pe({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){const r=Do("TabList");return()=>{const o={selectedIndex:r.selectedIndex.value},s={role:"tablist","aria-orientation":r.orientation.value};return Qe({ourProps:s,theirProps:e,slot:o,attrs:t,slots:n,name:"TabList"})}}}),La=pe({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${$t()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=Do("Tab"),s=T(null);r({el:s,$el:s}),Ve(()=>o.registerTab(s)),mt(()=>o.unregisterTab(s));const i=$e(ja),a=X(()=>{if(i.value){const S=i.value.tabs.indexOf(e.id);return S===-1?i.value.tabs.push(e.id)-1:S}return-1}),l=X(()=>{const S=o.tabs.value.indexOf(s);return S===-1?a.value:S}),u=X(()=>l.value===o.selectedIndex.value);function c(S){var B;const D=S();if(D===yn.Success&&o.activation.value==="auto"){const P=(B=Qt(s))==null?void 0:B.activeElement,K=o.tabs.value.findIndex($=>G($)===P);K!==-1&&o.setSelectedIndex(K)}return D}function d(S){const D=o.tabs.value.map(P=>G(P)).filter(Boolean);if(S.key===et.Space||S.key===et.Enter){S.preventDefault(),S.stopPropagation(),o.setSelectedIndex(l.value);return}switch(S.key){case et.Home:case et.PageUp:return S.preventDefault(),S.stopPropagation(),c(()=>it(D,Ue.First));case et.End:case et.PageDown:return S.preventDefault(),S.stopPropagation(),c(()=>it(D,Ue.Last))}if(c(()=>Je(o.orientation.value,{vertical(){return S.key===et.ArrowUp?it(D,Ue.Previous|Ue.WrapAround):S.key===et.ArrowDown?it(D,Ue.Next|Ue.WrapAround):yn.Error},horizontal(){return S.key===et.ArrowLeft?it(D,Ue.Previous|Ue.WrapAround):S.key===et.ArrowRight?it(D,Ue.Next|Ue.WrapAround):yn.Error}}))===yn.Success)return S.preventDefault()}const f=T(!1);function m(){var S;f.value||(f.value=!0,!e.disabled&&((S=G(s))==null||S.focus({preventScroll:!0}),o.setSelectedIndex(l.value),Gs(()=>{f.value=!1})))}function v(S){S.preventDefault()}const N=Nd(X(()=>({as:e.as,type:t.type})),s);return()=>{var K;const S={selected:u.value,disabled:e.disabled??!1},{id:D,...B}=e,P={ref:s,onKeydown:d,onMousedown:v,onClick:m,id:D,role:"tab",type:N.value,"aria-controls":(K=G(o.panels.value[l.value]))==null?void 0:K.id,"aria-selected":u.value,tabIndex:u.value?0:-1,disabled:e.disabled?!0:void 0};return Qe({ourProps:P,theirProps:B,slot:S,attrs:t,slots:n,name:"Tab"})}}}),Ky=pe({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=Do("TabPanels");return()=>{const o={selectedIndex:r.selectedIndex.value};return Qe({theirProps:e,ourProps:{},slot:o,attrs:n,slots:t,name:"TabPanels"})}}}),Ma=pe({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`moonbase-tabs-panel-${$t()}`},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:n,expose:r}){const o=Do("TabPanel"),s=T(null);r({el:s,$el:s}),Ve(()=>o.registerPanel(s)),mt(()=>o.unregisterPanel(s));const i=$e(ja),a=X(()=>{if(i.value){const c=i.value.panels.indexOf(e.id);return c===-1?i.value.panels.push(e.id)-1:c}return-1}),l=X(()=>{const c=o.panels.value.indexOf(s);return c===-1?a.value:c}),u=X(()=>l.value===o.selectedIndex.value);return()=>{var N;const c={selected:u.value},{id:d,tabIndex:f,...m}=e,v={ref:s,id:d,role:"tabpanel","aria-labelledby":(N=G(o.tabs.value[l.value]))==null?void 0:N.id,tabIndex:u.value?f:-1};return!u.value&&e.unmount&&!e.static?Le(Kn,{as:"span","aria-hidden":!0,...v}):Qe({ourProps:v,theirProps:m,slot:c,attrs:t,slots:n,features:qn.Static|qn.RenderStrategy,visible:u.value,name:"TabPanel"})}}});function Gy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ua(e,...t){e&&t.length>0&&!e.dataset.transition?e.dataset.transition=t.join(" "):e&&t.length>0&&(e.dataset.transition=[...e.dataset.transition.split(" "),...t].join(" "))}function ei(e,...t){e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=e.dataset.transition.split(" ").filter(n=>!t.includes(n)).join(" "))}var Fa=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Fa||{});function Jy(e,t){const n=Po();if(!e)return n.dispose;const{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?Number.parseFloat(u):Number.parseFloat(u)*1e3).sort((u,c)=>c-u);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function $d(e,t,n,r,o,s){const i=Po(),a=s!==void 0?Gy(s):()=>{};return ei(e,...o),Ua(e,...t,...n),i.nextFrame(()=>{ei(e,...n),Ua(e,...r),i.add(Jy(e,l=>(ei(e,...r,...t),Ua(e,...o),a(l))))}),i.add(()=>ei(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Or(e=""){return e.split(/\s+/).filter(t=>t.length>1)}const Ba=Symbol("TransitionContext");function Yy(){return $e(Ba,null)!==null}function Xy(){const e=$e(Ba,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}const Ha=Symbol("NestingContext");function Qy(){const e=$e(Ha,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function ti(e){return"children"in e?ti(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function Id(e){const t=T([]),n=T(!1);Ve(()=>n.value=!0),mt(()=>n.value=!1);function r(s,i=Wn.Hidden){const a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(Je(i,{[Wn.Unmount](){t.value.splice(a,1)},[Wn.Hidden](){t.value[a].state="hidden"}}),!ti(t)&&n.value&&(e==null||e()))}function o(s){const i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,Wn.Unmount)}return{children:t,register:o,unregister:r}}const Dd=qn.RenderStrategy,Ao=pe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:"enter"},enterFrom:{type:[String],default:"enter-from"},enterTo:{type:[String],default:"enter-to"},entered:{type:[String],default:"entered"},leave:{type:[String],default:"leave"},leaveFrom:{type:[String],default:"leave-from"},leaveTo:{type:[String],default:"leave-to"}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){const s=T(0);function i(){s.value|=at.Opening,t("beforeEnter")}function a(){s.value&=~at.Opening,t("afterEnter")}function l(){s.value|=at.Closing,t("beforeLeave")}function u(){s.value&=~at.Closing,t("afterLeave")}if(!Yy()&&Vy())return()=>Le(Za,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:u},r);const c=T(null),d=X(()=>e.unmount?Wn.Unmount:Wn.Hidden);o({el:c,$el:c});const{show:f,appear:m}=Xy(),{register:v,unregister:N}=Qy(),S=T(f.value?"visible":"hidden"),D={value:!0},B=$t(),P={value:!1},K=Id(()=>{!P.value&&S.value!=="hidden"&&(S.value="hidden",N(B),u())});Ve(()=>{const oe=v(B);mt(oe)}),ft(()=>{if(d.value===Wn.Hidden&&B){if(f.value&&S.value!=="visible"){S.value="visible";return}Je(S.value,{hidden:()=>N(B),visible:()=>v(B)})}});const $=Or(e.enter),Z=Or(e.enterFrom),x=Or(e.enterTo),de=Or(e.entered),Y=Or(e.leave),V=Or(e.leaveFrom),C=Or(e.leaveTo);Ve(()=>{ft(()=>{if(S.value==="visible"){const oe=G(c);if(oe instanceof Comment&&oe.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function j(oe){const w=D.value&&!m.value,I=G(c);!I||!(I instanceof HTMLElement)||w||(P.value=!0,f.value&&i(),f.value||l(),oe(f.value?$d(I,$,Z,x,de,ne=>{P.value=!1,ne===Fa.Finished&&a()}):$d(I,Y,V,C,de,ne=>{P.value=!1,ne===Fa.Finished&&(ti(K)||(S.value="hidden",N(B),u()))})))}return Ve(()=>{Xe([f],(oe,w,I)=>{j(I),D.value=!1},{immediate:!0})}),dt(Ha,K),pd(X(()=>Je(S.value,{visible:at.Open,hidden:at.Closed})|s.value)),()=>{const{appear:oe,show:w,enter:I,enterFrom:ne,enterTo:ae,entered:re,leave:ue,leaveFrom:Ie,leaveTo:je,...nt}=e,bt={ref:c},bn={...nt,...m.value&&f.value&&To.isServer?{class:ns([n.class,nt.class,...$,...Z])}:{}};return Qe({theirProps:bn,ourProps:bt,slot:{},slots:r,attrs:n,features:Dd,visible:S.value==="visible",name:"TransitionChild"})}}}),e_=Ao,Za=pe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Js(),s=X(()=>e.show===null&&o!==null?(o.value&at.Open)===at.Open:e.show);ft(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=T(s.value?"visible":"hidden"),a=Id(()=>{i.value="hidden"}),l=T(!0),u={show:s,appear:X(()=>e.appear||!l.value)};return Ve(()=>{ft(()=>{l.value=!1,s.value?i.value="visible":ti(a)||(i.value="hidden")})}),dt(Ha,a),dt(Ba,u),()=>{const c=Ca(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return Qe({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[Le(e_,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...c},r.default)]},attrs:{},features:Dd,visible:i.value==="visible",name:"Transition"})}}}),t_={class:"moonbase:modal-container"},ni=pe({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(e){return(t,n)=>(y(),xe(b(Za),{as:"template",show:t.open},{default:ye(()=>[F(b(bd),{as:"div",class:"moonbase:modal",onClose:n[0]||(n[0]=r=>t.$emit("close"))},{default:ye(()=>[E("div",t_,[F(b(Ao),{as:"template"},{default:ye(()=>[F(b(wd),{class:"moonbase:modal-overlay"})]),_:1}),F(b(Ao),{as:"template"},{default:ye(()=>[F(b(Ed),{class:"moonbase:modal-content"},{default:ye(()=>[qi(t.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),n_=["data-visible"],r_=pe({__name:"SignIn",emits:["signedIn"],setup(e,{emit:t}){const n=t,r=Re(),o=St(),s=$e(qs),i=T(r.getParameter("email")??""),a=T(""),l=T(null);async function u(){l.value=null;try{const c=await o.signIn(i.value,a.value);Mt(1500).then(()=>n("signedIn",c))}catch(c){throw c instanceof Pr?l.value="User not found":l.value=c.message,c}}return(c,d)=>(y(),xe(Hn,{handler:u,class:"moonbase:sign-in"},{default:ye(()=>{var f;return[F(gt,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),F(gt,{modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),F(Zn,{success:"Signed in",label:"Sign in",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!l.value||void 0},z(l.value),9,n_),(f=b(s))!=null&&f.auth.enable.signUp?(y(),O("button",{key:0,type:"button",onClick:d[2]||(d[2]=m=>b(r).show(b(Pe).Authentication,b(ve).SignUp,{email:i.value}))}," Create account ")):me("",!0),E("button",{type:"button",onClick:d[3]||(d[3]=m=>b(r).show(b(Pe).Authentication,b(ve).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}}),o_={class:"moonbase:authentication"},s_={key:0,class:"moonbase:loader"},i_=pe({__name:"Authentication",props:{open:{type:Boolean}},emits:["authenticated"],setup(e,{emit:t}){const n=t,r=Re(),{loaded:o,user:s}=St();Xe(s,a=>{a&&r.intent===ve.SignIn&&(n("authenticated",a),r.dequeue())});const i=X(()=>{switch(r.intent){case ve.SignIn:return"Sign in";case ve.SignUp:return"Sign up";case ve.ConfirmAccount:return"Confirm account";case ve.ConfirmEmailChange:return"Confirm email change";case ve.ForgotPassword:return"Forgot password";case ve.ResetPassword:return"Reset password"}throw new Error("Moonbase: Unknown intent")});return(a,l)=>(y(),xe(ni,{open:a.open,onClose:l[3]||(l[3]=u=>b(r).reset())},{default:ye(()=>[E("div",o_,[F(b(Qs),{as:"h3"},{default:ye(()=>[Te(z(i.value),1)]),_:1}),b(o)?b(r).intent===b(ve).SignIn?(y(),xe(r_,{key:1})):b(r).intent===b(ve).SignUp?(y(),xe(Yg,{key:2,onSignedUp:l[0]||(l[0]=u=>b(r).dequeue())})):b(r).intent===b(ve).ConfirmAccount?(y(),xe(ny,{key:3,onConfirmedAccount:l[1]||(l[1]=u=>b(r).dequeue())})):b(r).intent===b(ve).ConfirmEmailChange?(y(),xe(hy,{key:4})):b(r).intent===b(ve).ForgotPassword?(y(),xe(iy,{key:5})):b(r).intent===b(ve).ResetPassword?(y(),xe(uy,{key:6,onPasswordReset:l[2]||(l[2]=u=>b(r).dequeue())})):me("",!0):(y(),O("div",s_,[F(Pt)]))])]),_:1},8,["open"]))}});function _n(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(e)}const a_={class:"moonbase:product-cart-item"},l_=["src"],u_={key:1,class:"moonbase:image-placeholder"},c_={class:"moonbase:product-cart-item-content"},d_={key:0,class:"moonbase:cart-item-discount"},f_={class:"font-semibold"},p_={key:0,class:"ml-0.5"},h_={key:2,class:"moonbase:product-cart-item-total"},m_={key:0,class:"moonbase:discount"},v_={key:1},g_=pe({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(e){return(t,n)=>{var r,o,s;return y(),O("div",a_,[(r=t.lineItem.product)!=null&&r.iconUrl?(y(),O("img",{key:0,src:t.lineItem.product.iconUrl,alt:""},null,8,l_)):(y(),O("div",u_)),E("div",c_,[E("h3",null,z((o=t.lineItem.product)==null?void 0:o.name),1),E("p",null,z((s=t.lineItem.product)==null?void 0:s.tagline),1),t.lineItem.appliedDiscount?(y(),O("p",d_,[Te(" Discount applied: "),E("span",f_,z(t.lineItem.appliedDiscount.name),1),t.lineItem.appliedDiscount.total?(y(),O("span",p_," (-"+z(b(_n)(t.lineItem.appliedDiscount.total[t.currency],t.currency))+") ",1)):me("",!0)])):me("",!0),E("p",null,z(t.lineItem.quantity)+" in cart",1)]),t.lineItem.variation?(y(),O("div",h_,[t.lineItem.variation.hasDiscount?(y(),O("span",m_,z(b(_n)(t.lineItem.variation.originalPrice[t.currency],t.currency)),1)):me("",!0),t.lineItem.quantity!==1?(y(),O("span",v_,z(t.lineItem.quantity)+" x "+z(b(_n)(t.lineItem.variation.price[t.currency],t.currency)),1)):me("",!0),Te(" "+z(b(_n)(t.lineItem.variation.price[t.currency]*t.lineItem.quantity,t.currency)),1)])):me("",!0)])}}}),y_={class:"moonbase:bundle-cart-item"},__=["src"],b_={key:1,class:"moonbase:image-placeholder"},w_={class:"moonbase:bundle-cart-item-content"},E_={key:0,class:"moonbase:cart-item-discount"},O_={class:"font-semibold"},N_={key:0,class:"ml-0.5"},S_={class:"moonbase:bundle-cart-item-summary"},x_=["data-open"],k_=[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)],T_={key:2,class:"moonbase:product-cart-item-total"},C_={key:0,class:"moonbase:discount"},P_={key:1},$_=["src"],I_={key:1,class:"moonbase:image-placeholder"},D_=["data-included"],A_={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},V_=[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)],R_={key:0,class:"truncate italic"},j_={key:1,class:"truncate"},L_=pe({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(e){const t=T(!1),n=T(null);return Xe(t,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,o)=>{var s,i,a,l,u,c,d;return y(),O("div",null,[E("div",y_,[(s=r.lineItem.bundle)!=null&&s.iconUrl?(y(),O("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,__)):(y(),O("div",b_)),E("div",w_,[E("h3",null,z((i=r.lineItem.bundle)==null?void 0:i.name),1),E("p",null,z((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(y(),O("p",E_,[Te(" Discount applied: "),E("span",O_,z(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(y(),O("span",N_," (-"+z(b(_n)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):me("",!0)])):me("",!0),E("div",S_,[E("span",null,z(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(y(),O("button",{key:0,onClick:o[0]||(o[0]=f=>t.value=!t.value)},[E("span",null,[Te(" Including "+z((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(u=r.lineItem.bundle)!=null&&u.products.some(f=>!f.included)?(y(),O(ke,{key:0},[Te("of "+z((c=r.lineItem.bundle)==null?void 0:c.products.length),1)],64)):me("",!0),Te(" products ")]),(y(),O("svg",{"data-open":t.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},k_,8,x_))])):me("",!0)])]),r.lineItem.variation?(y(),O("div",T_,[r.lineItem.variation.hasDiscount?(y(),O("span",C_,z(b(_n)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):me("",!0),r.lineItem.quantity!==1?(y(),O("span",P_,z(r.lineItem.quantity)+" x "+z(b(_n)(r.lineItem.variation.price[r.currency],r.currency)),1)):me("",!0),Te(" "+z(b(_n)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):me("",!0)]),E("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(y(!0),O(ke,null,Jt(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(y(),O("div",{key:f.id},[f!=null&&f.iconUrl?(y(),O("img",{key:0,src:f.iconUrl,alt:""},null,8,$_)):(y(),O("div",I_)),E("div",null,[E("h3",{"data-included":f.included||void 0},[f.included?(y(),O("svg",A_,V_)):me("",!0),Te(" "+z(f==null?void 0:f.name),1)],8,D_),f.included?f!=null&&f.tagline?(y(),O("p",j_,z(f.tagline),1)):me("",!0):(y(),O("p",R_," You already own this "))])]))),128))],512)])}}}),M_={class:"moonbase:cart-modal-container"},U_=pe({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(e){return(t,n)=>(y(),xe(b(Za),{as:"template",show:t.open},{default:ye(()=>[F(b(bd),{as:"div",class:"moonbase:cart-modal",onClose:n[0]||(n[0]=r=>t.$emit("close"))},{default:ye(()=>[E("div",M_,[F(b(Ao),{as:"template"},{default:ye(()=>[F(b(wd),{class:"moonbase:cart-modal-overlay"})]),_:1}),F(b(Ao),{as:"template"},{default:ye(()=>[F(b(Ed),{class:"moonbase:cart-modal-content"},{default:ye(()=>[qi(t.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),F_=["disabled","data-success","data-error","data-working","data-variant"],B_=["data-visible"],Ad=pe({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(e){const t=e,n=T(!1),r=T(!1),o=T(!1),s=X(()=>r.value?t.success:o.value?t.error:t.label);async function i(){try{const a=t.handler();a instanceof Promise&&(n.value=!0,await a,n.value=!1,r.value=!0,await Mt(2500),t.noReset||(r.value=!1))}catch{n.value=!1,o.value=!0,await Mt(2500),o.value=!1}}return(a,l)=>(y(),O("button",{class:"moonbase:button",type:"button",disabled:r.value||o.value||n.value,"data-success":r.value||void 0,"data-error":o.value||void 0,"data-working":n.value||void 0,"data-variant":a.variant,onClick:i},[E("div",{"data-visible":n.value||void 0,"aria-hidden":"true"},[n.value?(y(),xe(Pt,{key:0})):me("",!0)],8,B_),Te(" "+z(s.value),1)],8,F_))}}),H_={class:"moonbase:cart"},Z_={key:0,role:"list",class:"moonbase:cart-items"},q_={key:1,class:"moonbase:cart-empty"},W_={key:2,class:"moonbase:cart-total"},z_=E("label",null," Total ",-1),K_=E("p",null," Sales tax to be calculated at checkout ",-1),G_=pe({__name:"Cart",props:{open:{type:Boolean}},setup(e){const t=Re(),{items:n,total:r,currency:o,checkout:s}=_a();async function i(){s(`${window.location.pathname}?mb_intent=view_products`),await Mt(2500)}return(a,l)=>(y(),xe(U_,{open:a.open,onClose:l[0]||(l[0]=u=>b(t).reset())},{default:ye(()=>[E("div",H_,[F(b(Qs),{as:"h3"},{default:ye(()=>[Te(" Cart ")]),_:1}),b(n).length>0?(y(),O("ul",Z_,[(y(!0),O(ke,null,Jt(b(n),u=>(y(),O("li",{key:u.id},[u.type==="Product"?(y(),xe(g_,{key:0,"line-item":u,currency:b(o)},null,8,["line-item","currency"])):u.type==="Bundle"?(y(),xe(L_,{key:1,"line-item":u,currency:b(o)},null,8,["line-item","currency"])):me("",!0)]))),128))])):(y(),O("div",q_," Your cart is empty! ")),b(n).length>0?(y(),O("div",W_,[z_,E("span",null,z(b(_n)(b(r).amount,b(r).currency)),1),K_])):me("",!0),b(n).length>0?(y(),xe(Ad,{key:3,handler:i,"no-reset":!0,label:"Checkout",success:"Redirecting..",error:"Error"})):me("",!0)])]),_:1},8,["open"]))}}),J_={class:"moonbase:account"},Y_={key:0,class:"moonbase:error"},X_={key:1,class:"moonbase:notification"},Q_={key:0,class:"moonbase:error"},eb=pe({__name:"Account",setup(e){var B,P,K;const t=Re(),{user:n,update:r,setPassword:o,signOut:s}=St(),i=T(((B=n.value)==null?void 0:B.name)??""),a=T(((P=n.value)==null?void 0:P.email)??""),l=T(((K=n.value)==null?void 0:K.communicationPreferences)??{newsletterOptIn:!1}),u=T(null),c=T(!1),d=T(""),f=T(""),m=T(null),v=T(!1);async function N(){u.value=null,c.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(c.value=!0)}catch($){throw u.value=$,$}}async function S(){m.value=null;try{await o(d.value,f.value),d.value="",f.value=""}catch($){throw m.value=$,$}}async function D(){v.value=!0,await s(),t.reset()}return($,Z)=>(y(),O("div",J_,[F(Hn,{handler:N},{default:ye(()=>[F(gt,{modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=x=>i.value=x),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),F(gt,{modelValue:a.value,"onUpdate:modelValue":Z[1]||(Z[1]=x=>a.value=x),label:"Email address",name:"email",type:"email",autocomplete:"email",required:""},null,8,["modelValue"]),F(Qc,{modelValue:l.value.newsletterOptIn,"onUpdate:modelValue":Z[2]||(Z[2]=x=>l.value.newsletterOptIn=x),label:"Newsletter subscription",name:"newsletter-opt-in",hint:"Receive updates and offers by email"},null,8,["modelValue"]),F(Zn,{label:"Save",error:"Error",success:"Saved"}),u.value?(y(),O("p",Y_,z(u.value.message),1)):c.value?(y(),O("p",X_," You need to confirm your new email address, please check your inbox ")):me("",!0)]),_:1}),F(Hn,{handler:S},{default:ye(()=>[F(gt,{modelValue:d.value,"onUpdate:modelValue":Z[3]||(Z[3]=x=>d.value=x),label:"Current password",name:"old-password",type:"password",autocomplete:"current-password",required:""},null,8,["modelValue"]),F(gt,{modelValue:f.value,"onUpdate:modelValue":Z[4]||(Z[4]=x=>f.value=x),label:"New password",name:"new-password",type:"password",autocomplete:"new-password",required:""},null,8,["modelValue"]),F(Zn,{label:"Save",error:"Error",success:"Saved"}),m.value?(y(),O("p",Q_,z(m.value.message),1)):me("",!0)]),_:1}),F(Ad,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:D})]))}}),tb={},nb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},rb=[E("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56M192 400.1l64 63.9 64-63.9M256 224v224.03",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)];function ob(e,t){return y(),O("svg",nb,rb)}const Vd=Bn(tb,[["render",ob]]),sb={},ib={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ab=[E("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)];function lb(e,t){return y(),O("svg",ib,ab)}const Rd=Bn(sb,[["render",lb]]),ub={},cb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},db=[E("path",{d:"M443.66 405.05c-1.46-.79-2.85-1.54-4-2.2-6.47-3.83-13-10.52-11.85-17.83 2.42-15.94 2.89-23.47-.49-28.79a15.61 15.61 0 0 0-7.67-6.2v-.06c1.41-2.56 2.26-5.66 2.83-10.12 1.44-11-5-44-13.7-70.7-8.08-24.68-29.24-50-44.7-68.56l-3.61-4.34c-23.88-28.93-24.34-38.19-26.55-82.67-.32-6.47-.69-13.8-1.17-22C329.87 41.43 304 16 256 16c-25.2 0-44.62 7.15-57.72 21.26C187.79 48.55 182 64 182 80.78c0 29.52 2 53 2.15 54.29 1.4 35.7 1 41.22-8.31 57.55-2.23 3.93-8.38 10.87-14.89 18.21-8.48 9.57-18.09 20.41-23.36 29.22-3.77 6.31-5.88 12.63-8.11 19.33-3.4 10.21-7.26 21.78-18.15 36.57-12.57 17.07-15.52 29.61-11 47.45-4.94 6.45-4.83 14.37-4.75 20.23a25.84 25.84 0 0 1-.3 6.09c-2.29 7.59-12.42 9.4-22 10.18-1.58.12-3.1.21-4.55.29-7.26.39-13.53.74-17.13 6.3-3.47 5.36-1.12 13.8 2.14 25.48.72 2.58 1.46 5.25 2.19 8.06 1.83 7-.16 10.48-2.68 14.84-2.44 4.21-5.21 9-5.21 17.55 0 14.67 20 18 43.05 21.94 7.36 1.24 15 2.53 22.63 4.24a225.58 225.58 0 0 1 34.08 10.68c9.72 3.73 17.4 6.68 26.43 6.68 16.18 0 28.25-9.77 39.92-19.21l2.15-1.75c5.53-4.49 21.5-4 34.34-3.64 3.46.1 6.73.2 9.65.2h6.22c13.48-.08 31.94-.18 42.23 2.5 3.75 1 6.2 3.72 9.29 7.19 5.87 6.56 13.17 14.75 33.39 14.75 19.39 0 29.55-8.71 41.32-18.8 7.16-6.13 14.56-12.48 25.07-17.86 3.92-2 7.62-3.87 11.08-5.61 22.64-11.38 35.11-17.65 35.11-27.82 0-9.91-12.24-16.5-20.34-20.86zM211.11 88.38a13.91 13.91 0 0 1 12.47 9c1.95 5.55 1.81 10.42.21 12.94 0 0-.22-1-.36-1.44a14.85 14.85 0 0 0-6.44-8.59 11.35 11.35 0 0 0-8.94-1.47c-4.26 1.13-8.41 5-8.91 18.79-5.16-10.47-2.31-18 .92-23 2.31-3.73 7.47-6.33 11.05-6.23zm-17.5 375C192 479.24 175.2 479 170.09 478.59c-9.81-.82-21.66-4.69-33.13-8.43-4.52-1.47-9.19-3-13.73-4.34-13.2-3.89-30.12-6.74-43.72-9-3.22-.55-6.27-1.06-9.05-1.55s-4.61-1.27-5.2-2.3c-1-1.65.38-5.25 1.93-9.41C69.27 438 72.11 430.34 72 421c0-3.91-1.47-8.3-2.84-12.56-1.62-5-3.28-10.17-1.93-12.62 1.23-2.23 6.75-2.49 11.6-2.49h2.26c3.55 0 6.62.06 8.75-.53 6.51-1.81 14.86-6.92 17.81-13.88.9-2.17 1.37-6.94 2-14 .37-4.12.74-8.37 1.22-10.58a3.55 3.55 0 0 1 2.11-2.55c1.65-.77 6.78-1.91 18.63 4.08 11.18 5.65 22.88 25.84 34.2 45.37 3.56 6.14 6.92 11.94 10.3 17.36 14.04 22.54 18.83 31.6 17.5 44.8zm128.84-31.56a68.74 68.74 0 0 1-4.55 10.9.58.58 0 0 1-1.08-.42 56.61 56.61 0 0 0 2.11-18.43c-.25-4.73-.4-7.59-2.66-8.51s-4.26.83-9.45 5.54c-1.1 1-2.36 2.14-3.78 3.4-10.8 9.47-26.88 20.68-55.61 23.37-16.84 1.59-27.59-4.63-30.92-8.14a2.16 2.16 0 0 0-3.07-.08 2.23 2.23 0 0 0-.51 2.29c2.12 6.84 1.2 12.26-.49 16.19-.95 2.2-1.85 2.05-2-.34-.25-4.64-1-9.88-3-14.19-3.11-6.94-7-14.34-8.89-17.88v-.05c3.24-1.49 8.86-4.83 11.37-10.88s4.48-18-9.82-31.74c-6.28-6.05-22.1-17.16-36.06-27-10.9-7.65-22.17-15.56-23.65-17.51-4.49-5.89-6.37-9.3-6.94-19.65.07-2.3.13-4.59.19-6.89l.27-2.49a.58.58 0 0 1 1.15 0 63.07 63.07 0 0 0 2 9.72c1.08 3.73 2.4 7.58 3.62 9.18 3.19 4.22 7.56 7.39 11.67 8.49a5.48 5.48 0 0 0 5-.72c2.93-2.33 2.65-7.6 2.19-16.34-.47-9-1.11-21.34 1.85-34.55 5.62-25 10.91-32.51 17.61-42 .86-1.22 1.75-2.47 2.65-3.79 1.44-2.08 3-4.1 4.67-6.23 7.47-9.61 15.93-20.49 13.92-40.95-.51-5.19-.76-8.83-.86-11.39a1 1 0 0 1 1.88-.59l.49.77 1.21 2c4.86 8 13.64 22.57 25.1 22.57a13.62 13.62 0 0 0 2.36-.21c23.39-3.93 51.9-30.25 52.17-30.51 3.12-3 2.84-6.14 1.64-7.91a5.18 5.18 0 0 0-6.45-1.72c-3.29 1.4-7.14 3.15-11.22 5-13.82 6.27-37 16.75-42.25 14.34a23.11 23.11 0 0 1-6.32-5.13 1 1 0 0 1 1.14-1.65c5.59 2.29 9.55 1.45 14.2-.08l1-.34c9.37-3.09 14.2-4.77 30.76-12.08a97.55 97.55 0 0 1 16.26-5.93c4-1 6.42-1.63 7.71-4.34a6.65 6.65 0 0 0-.5-7.13c-1.53-1.87-4.07-2.57-7-1.9-3.22.75-4.7 3-6.41 4.49-2.4 2.05-5 4.16-17.19 8.65-27 10-34.58 10.61-45.21 3.43-9.84-6.69-15.15-13.23-15.15-16 0-2.13 5.45-5.7 8.71-7.84 1.33-.87 2.59-1.69 3.62-2.46 4.34-3.22 13-11.39 13.38-11.73 5.4-5.41 17.91-2.18 25 2.58a2.23 2.23 0 0 0 1.72.41 2.14 2.14 0 0 0 1.68-2.58c-4.2-17.46-.13-27.34 4-32.55a22.58 22.58 0 0 1 17.48-8.48c12.81 0 21.76 10 21.76 24.42 0 11-2.82 16.79-5.48 20.3a1.73 1.73 0 0 1-2.58.18 1.78 1.78 0 0 1-.24-2.2A24.61 24.61 0 0 0 290 114a16.58 16.58 0 0 0-16.84-16.67c-3.94 0-13.48 1.5-16.77 15.44a29.81 29.81 0 0 0-.34 11.07l.08.71c.9 7.38 15.3 12.51 27.23 15.51 11.36 2.85 13 6.22 8.84 19.63s3.11 26.23 5.7 29.57a78.3 78.3 0 0 1 8.31 12.47 93.8 93.8 0 0 1 6.62 16.48c2.17 6.79 4.05 12.65 10.63 21.22 11.07 14.4 17.66 48.64 15 78-.21 2.41-.53 4.29-.77 5.67-.43 2.53-.72 4.2.66 5.38s3.16.7 7.26-.63l3.43-1.09a109.33 109.33 0 0 1 12.58-2.8 2.15 2.15 0 0 0 1.59-1.16c3.43-6.91 3.85-15.22 4-22.47q0-1.31.06-2.79c.19-7.77.45-18.93-2.95-32a1 1 0 0 1 1.93-.64 93 93 0 0 1 6.66 25.55c2.55 22.58-1.9 32.09-1.94 32.17a1.61 1.61 0 0 0 .95 2.25 17.12 17.12 0 0 1 6.95 4.67c1.46 1.66.93 2.4-1.14 1.62a36.26 36.26 0 0 0-12.77-2.29c-10.4 0-18.09 4.95-21.51 9.19-3.19 3.94-3.7 7.67-3.83 11.27l-.06.05c-7.48-.75-12.94 1.21-17.47 6.21l-.08.09c-6.26 7.75-4 24.63-1.29 38.48 1.28 6.45 5.59 25.52 1.73 37.68zm96.1 10.07c-15.71 6.71-25.43 14.51-34 21.39-5.65 4.53-11 8.81-17.28 12.14-10.12 5.34-24.91 6.53-33.27-7.7-2.37-4-.71-9.86 1.58-17.95 3.05-10.75 7.23-25.46 3.71-44.65-.94-5.12-1.77-9.51-2.49-13.31C334 377 332.9 371.43 334 367c.63-2.45 3.43-3 5.87-3a20.83 20.83 0 0 1 2.63.19 29.51 29.51 0 0 0 7 12.1c5.7 5.86 13.63 8.83 23.56 8.85 2.1.17 25.94 1.55 36.54-22.4 1.46.18 3.65.7 4.3 2.3 1.28 3.19-.27 8.91-1.52 13.5-.9 3.31-1.68 6.16-1.63 8.37.31 16 11 22.78 25.83 32.16 1.79 1.13 3.66 2.31 5.55 3.54S445 425 445 426c-.52 4.79-20 13.16-26.45 15.91z",fill:"currentColor"},null,-1)];function fb(e,t){return y(),O("svg",cb,db)}const jd=Bn(ub,[["render",fb]]),pb={},hb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},mb=[E("path",{d:"M349.13 136.86c-40.32 0-57.36 19.24-85.44 19.24-28.79 0-50.75-19.1-85.69-19.1-34.2 0-70.67 20.88-93.83 56.45-32.52 50.16-27 144.63 25.67 225.11 18.84 28.81 44 61.12 77 61.47h.6c28.68 0 37.2-18.78 76.67-19h.6c38.88 0 46.68 18.89 75.24 18.89h.6c33-.35 59.51-36.15 78.35-64.85 13.56-20.64 18.6-31 29-54.35-76.19-28.92-88.43-136.93-13.08-178.34-23-28.8-55.32-45.48-85.79-45.48z",fill:"currentColor"},null,-1),E("path",{d:"M340.25 32c-24 1.63-52 16.91-68.4 36.86-14.88 18.08-27.12 44.9-22.32 70.91h1.92c25.56 0 51.72-15.39 67-35.11 14.72-18.77 25.88-45.37 21.8-72.66z",fill:"currentColor"},null,-1)];function vb(e,t){return y(),O("svg",hb,mb)}const Ld=Bn(pb,[["render",vb]]),gb={class:"moonbase:product-downloads"},yb=["data-last","onClick"],_b={class:"moonbase:sr-only"},bb={class:"moonbase:sr-only"},wb=E("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})],-1),Eb=["onClick"],Ob=pe({__name:"ProductDownloads",props:{downloads:{}},setup(e){const t=e,n={[Ht.Universal]:()=>Vd,[Ht.Windows]:()=>Rd,[Ht.Linux]:()=>jd,[Ht.Mac]:()=>Ld},{downloadProduct:r}=Ls(),o=X(()=>t.downloads.reduce((s,i)=>({...s,[i.platform]:(s[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(s,i)=>(y(),O("span",gb,[(y(!0),O(ke,null,Jt(o.value,(a,l,u)=>(y(),O(ke,{key:l},[a.length===1?(y(),O("button",{key:0,type:"button",role:"button","data-last":u===Object.keys(o.value).length-1||void 0,onClick:c=>b(r)(a[0])},[E("span",_b,z(l.toString()),1),(y(),xe(Zi(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,yb)):(y(),xe(b(Ra),{key:1,as:"div","data-last":u===Object.keys(o.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:ye(()=>[F(b(Td),null,{default:ye(()=>[E("span",bb,z(l.toString()),1),(y(),xe(Zi(a[0].icon()),{"aria-hidden":"true"})),wb]),_:2},1024),F(So,{name:"moonbase:scale"},{default:ye(()=>[F(b(Cd),{class:"moonbase:product-downloads-list"},{default:ye(()=>[(y(!0),O(ke,null,Jt(a,c=>(y(),O("button",{key:c.key,type:"button",role:"button",onClick:d=>b(r)(c)},z(c.name),9,Eb))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),Nb={class:"moonbase:product-activations"},Sb=E("th",{scope:"col"}," Device ",-1),xb=E("th",{scope:"col"}," Activation Method ",-1),kb=E("th",{scope:"col"}," Last Online ",-1),Tb={key:0,scope:"col"},Cb=[E("span",{class:"sr-only"},"Actions",-1)],Pb={key:0},$b={colspan:"3"},Ib=E("td",null,null,-1),Db={key:1},Ab=[E("td",{colspan:"3"}," No activations found ",-1)],Vb={key:0},Rb=["onClick"],jb=pe({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(e,{emit:t}){const n=e,r=t,{getProductActivations:o,revokeActivation:s}=Ls(),i=T(null);Ve(async()=>{let u=await o(n.productId);for(i.value=u.items.map(c=>({...c,revoking:!1}));u.hasMore&&u.next;)u=await o(n.productId,u.next),i.value.push(...u.items.map(c=>({...c,revoking:!1})))});const a=X(()=>i.value&&i.value.some(u=>u.activationMethod===mi.Online));async function l(u){u.revoking=!0,await s(u),r("revoked",u),i.value&&i.value.splice(i.value.indexOf(u),1)}return(u,c)=>(y(),O("table",Nb,[E("thead",null,[E("tr",null,[Sb,xb,kb,a.value?(y(),O("th",Tb,Cb)):me("",!0)])]),E("tbody",null,[i.value?i.value.length===0?(y(),O("tr",Db,Ab)):me("",!0):(y(),O("tr",Pb,[E("td",$b,[F(Pt),Te(" Loading activations.. ")]),Ib])),(y(!0),O(ke,null,Jt(i.value,d=>{var f;return y(),O("tr",{key:d.id},[E("td",null,z(d.name),1),E("td",null,z(d.activationMethod),1),E("td",null,z((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(y(),O("td",Vb,[E("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:m=>l(d)},[d.revoking?(y(),xe(Pt,{key:0})):me("",!0),Te(" Revoke ")],8,Rb)])):me("",!0)])}),128))])]))}}),Lb={class:"moonbase:products"},Mb=E("th",{scope:"col"}," Product ",-1),Ub=E("th",{scope:"col"}," Activations ",-1),Fb={key:0,scope:"col"},Bb={key:0},Hb=E("td",null,null,-1),Zb={key:1},qb=[E("td",{colspan:"3"}," No products found ",-1)],Wb=["src"],zb={key:1,class:"moonbase:image-placeholder"},Kb=E("span",{class:"moonbase:sr-only"},"View activations",-1),Gb={key:0},Jb={key:0},Yb=pe({__name:"Products",setup(e){const{getProducts:t}=Ls(),n=T(null);Ve(async()=>{let o=await t();for(n.value=o.items;o.hasMore&&o.next;)o=await t(o.next),n.value.push(...o.items)});const r=X(()=>n.value&&n.value.some(o=>o.downloads));return(o,s)=>(y(),O("table",Lb,[E("thead",null,[E("tr",null,[Mb,Ub,r.value?(y(),O("th",Fb," Downloads ")):me("",!0)])]),E("tbody",null,[n.value?n.value.length===0?(y(),O("tr",Zb,qb)):me("",!0):(y(),O("tr",Bb,[E("td",null,[F(Pt),Te(" Loading products.. ")]),Hb])),(y(!0),O(ke,null,Jt(n.value||[],i=>(y(),O("tr",{key:i.id},[E("td",null,[E("div",null,[i.iconUrl?(y(),O("img",{key:0,src:i.iconUrl,alt:""},null,8,Wb)):(y(),O("div",zb)),E("span",null,z(i.name),1)])]),F(b(Ra),{as:"td"},{default:ye(()=>[F(b(Td),{class:"moonbase:button","data-variant":"secondary"},{default:ye(()=>[Kb,Te(" "+z(i.currentActivations)+" / "+z(i.maxActivations),1)]),_:2},1024),F(So,{name:"moonbase:scale"},{default:ye(()=>[F(b(Cd),null,{default:ye(()=>[F(jb,{"product-id":i.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024),r.value?(y(),O("td",Gb,[i.currentVersion!=null?(y(),O("div",Jb,[i.downloads?(y(),xe(Ob,{key:0,downloads:i.downloads},null,8,["downloads"])):me("",!0)])):me("",!0)])):me("",!0)]))),128))])]))}}),Xb={class:"moonbase:redeem"},Qb=["data-visible"],e1={key:1,class:"moonbase:redeem-voucher"},t1={key:0},n1={key:1},r1=E("span",null," Contains: ",-1),o1={class:"moonbase:redeem-voucher-products"},s1=["src"],i1={key:1,class:"moonbase:image-placeholder"},a1={key:0},l1={class:"moonbase:redeem-voucher-bundle"},u1=["src"],c1={key:1,class:"moonbase:image-placeholder"},d1={key:0},f1={class:"moonbase:redeem-voucher-bundle-products"},p1={class:"shrink-0"},h1=["src"],m1={key:1,class:"moonbase:image-placeholder"},v1=pe({__name:"Redeem",setup(e){const{redeem:t}=Kv(),n=T(!1),r=T(null),o=T(null),s=T("");async function i(){n.value=!0,o.value=null;try{r.value=await t(s.value)}catch(a){throw o.value=a,a}n.value=!1}return(a,l)=>(y(),O("div",Xb,[F(So,{mode:"out-in",name:"moonbase:slide-left"},{default:ye(()=>[r.value?(y(),O("div",e1,[E("h3",null,[Te(" You got: "),E("strong",null,z(r.value.name),1)]),r.value.description?(y(),O("h4",t1,z(r.value.description),1)):me("",!0),E("h4",null,[Te(" Code: "),E("strong",null,z(r.value.code),1)]),r.value.redeemsProducts.length>0?(y(),O("div",n1,[r1,E("div",o1,[(y(!0),O(ke,null,Jt(r.value.redeemsProducts,({value:u,quantity:c})=>(y(),O("div",{key:u.id,class:"moonbase:redeem-voucher-product"},[E("div",null,[u.iconUrl?(y(),O("img",{key:0,src:u.iconUrl,alt:""},null,8,s1)):(y(),O("div",i1))]),E("div",null,[E("p",null,[Te(z(u.name)+" ",1),c!==1?(y(),O("span",a1,"x "+z(c),1)):me("",!0)]),E("p",null,z(u.tagline),1)])]))),128)),(y(!0),O(ke,null,Jt(r.value.redeemsBundles,({value:u,quantity:c})=>(y(),O("div",{key:u.id},[E("div",l1,[E("div",null,[u.iconUrl?(y(),O("img",{key:0,src:u.iconUrl,alt:""},null,8,u1)):(y(),O("div",c1))]),E("div",null,[E("p",null,[Te(z(u.name)+" ",1),c!==1?(y(),O("span",d1,"x "+z(c),1)):me("",!0)]),E("p",null,z(u.tagline),1)])]),E("div",f1,[(y(!0),O(ke,null,Jt(u.products,d=>(y(),O("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[E("div",p1,[d.iconUrl?(y(),O("img",{key:0,src:d.iconUrl,alt:""},null,8,h1)):(y(),O("div",m1))]),E("div",null,[E("p",null,z(d.name),1),E("p",null,z(d.tagline),1)])]))),128))])]))),128))])])):me("",!0)])):(y(),xe(Hn,{key:0,handler:i},{default:ye(()=>{var u;return[F(gt,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),F(Zn,{label:"Redeem",success:"Redeem",error:"Error"}),E("span",{class:"moonbase:error","data-visible":!!o.value||void 0},z((u=o.value)==null?void 0:u.message),9,Qb)]}),_:1}))]),_:1})]))}}),g1={class:"moonbase:customer"},y1=pe({__name:"Customer",props:{open:{type:Boolean}},setup(e){const t=Re();function n(s){switch(s){case ve.ViewAccount:return 0;case ve.ViewProducts:return 1;case ve.RedeemVoucher:return 2}return 0}const r=T(n(t.intent));Xe(()=>t.intent,s=>{r.value=n(s)});function o(s){r.value=s}return(s,i)=>(y(),xe(ni,{open:s.open,onClose:i[0]||(i[0]=a=>b(t).reset())},{default:ye(()=>[E("div",g1,[F(b(Wy),{"selected-index":r.value,onChange:o},{default:ye(()=>[F(b(zy),null,{default:ye(()=>[F(b(La),null,{default:ye(()=>[Te("Account")]),_:1}),F(b(La),null,{default:ye(()=>[Te(" Products ")]),_:1}),F(b(La),null,{default:ye(()=>[Te("Redeem")]),_:1})]),_:1}),F(b(Ky),null,{default:ye(()=>[F(b(Ma),null,{default:ye(()=>[F(eb)]),_:1}),F(b(Ma),null,{default:ye(()=>[F(Yb)]),_:1}),F(b(Ma),null,{default:ye(()=>[F(v1)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),_1={class:"moonbase:auto-activate"},b1={key:0,class:"moonbase:loader"},w1={key:1,class:"moonbase:loader"},E1={key:2,class:"moonbase:loader"},O1={key:3},N1={key:0,class:"moonbase:auto-activate-product"},S1=["src"],x1={key:1,class:"moonbase:image-placeholder"},k1={key:1,class:"moonbase:loader"},T1=[E("h3",null," Uh oh ",-1),E("p",null," This activation request was cancelled, open your app to try again. ",-1)],C1={key:2,class:"moonbase:loader"},P1={key:3,class:"moonbase:loader"},$1=[E("h3",null," Done! ",-1),E("p",null," Your product is activated. ",-1)],I1={key:4,class:"moonbase:auto-activate-content"},D1={key:0},A1={key:1},V1=E("p",null," You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ",-1),R1={class:"moonbase:auto-activate-cta"},j1=["href"],L1={key:2,class:"moonbase:auto-activate-trial"},M1={class:"moonbase:auto-activate-cta"},U1=pe({__name:"AutoActivate",setup(e){const t=Re(),{user:n,loaded:r}=St(),o=t.getParameter("token"),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:u,fulfillLicense:c,fulfillTrial:d,cancel:f}=zv(o);Xe(s,N=>{var S;!a.value&&!l.value&&(N==null?void 0:N.status)===Zt.Requested&&((S=N==null?void 0:N.licenseEligibility)!=null&&S.eligible)&&c()});function m(){f(),t.show(Pe.Customer,ve.ViewProducts)}function v(){t.enqueue(Pe.Activation,ve.ActivateProduct,t.parameters??void 0),t.show(Pe.Authentication,ve.SignIn)}return(N,S)=>{var D,B,P,K;return y(),O("div",_1,[b(i)||!b(r)?(y(),O("div",b1,[F(Pt)])):b(u)?(y(),O("div",w1,z(b(u)),1)):b(s)?(y(),O("div",O1,[b(s).product?(y(),O("div",N1,[b(s).product.iconUrl?(y(),O("img",{key:0,src:b(s).product.iconUrl,alt:""},null,8,S1)):(y(),O("div",x1)),E("div",null,[E("h2",null,z(b(s).product.name),1),E("h3",null,z(b(s).product.tagline),1)])])):me("",!0),((D=b(s))==null?void 0:D.status)===b(Zt).Cancelled?(y(),O("div",k1,T1)):b(a)||b(l)?(y(),O("div",C1,[F(Pt),E("p",null,"Activating "+z(b(s).product.name)+"...",1)])):((B=b(s))==null?void 0:B.status)===b(Zt).Completed?(y(),O("div",P1,$1)):(y(),O("div",I1,[b(n)?(P=b(n).ownedProducts)!=null&&P.includes(b(s).product.id)?(y(),O("div",A1,[V1,E("span",R1,[E("button",{role:"button",class:"moonbase:button",onClick:S[0]||(S[0]=$=>m())}," Licenses "),b(s).product&&b(s).product.website?(y(),O("a",{key:0,href:b(s).product.website,class:"moonbase:button"}," Purchase ",8,j1)):me("",!0)])])):me("",!0):(y(),O("div",D1,[Te(" Please sign in to use a license "),E("span",{class:"moonbase:auto-activate-cta"},[E("button",{role:"button",class:"moonbase:button",onClick:v}," Sign in ")])])),(K=b(s).trialEligibility)!=null&&K.eligible?(y(),O("div",L1,[Te(" You are eligible for a "+z(b(s).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),b(s).trialEligibility.existing?(y(),O(ke,{key:0},[Te(" of which you have "+z(b(s).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):me("",!0),Te(". "),E("span",M1,[E("button",{role:"button",class:"moonbase:button",onClick:S[1]||(S[1]=$=>b(d)())}," Start trial ")])])):me("",!0)]))])):(y(),O("div",E1," Could not find activation request "))])}}}),F1={class:"moonbase:activation"},B1=pe({__name:"Activation",props:{open:{type:Boolean}},setup(e){const t=Re();return(n,r)=>(y(),xe(ni,{open:n.open,onClose:r[0]||(r[0]=o=>b(t).reset())},{default:ye(()=>[E("div",F1,[F(b(Qs),{as:"h3"},{default:ye(()=>[Te(" Activate product ")]),_:1}),n.open&&b(t).intent===b(ve).ActivateProduct?(y(),xe(U1,{key:0})):me("",!0)])]),_:1},8,["open"]))}});function H1(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e<1)return`${e} B`;const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);e=Number(e/1024**n);const r=t[n];return e>=10||e%1===0?`${e.toFixed(0)} ${r}`:`${e.toFixed(1)} ${r}`}const Z1={class:"moonbase:download-product"},q1={key:0,class:"moonbase:loader"},W1={key:1,class:"moonbase:loader"},z1={key:2,class:"moonbase:loader"},K1={key:3},G1={class:"moonbase:download-product-product"},J1=["src"],Y1={key:1,class:"moonbase:image-placeholder"},X1={key:0},Q1={key:0,class:"moonbase:download-product-content"},ew={key:1,class:"moonbase:download-product-content"},tw={key:2,class:"moonbase:download-product-content"},nw={key:0,role:"list"},rw={class:"moonbase:download-product-download-name"},ow=["onClick"],sw=E("span",{class:"moonbase:download-product-clicker"},null,-1),iw={class:"moonbase:download-product-download-description"},aw=E("span",null," |",-1),lw={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},uw=[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)],cw={key:1,class:"moonbase:loader"},dw=pe({__name:"DownloadProduct",setup(e){const t=Re(),{user:n,loaded:r}=St(),{getProduct:o,downloadProduct:s}=Ls(),i={[Ht.Universal]:()=>Vd,[Ht.Windows]:()=>Rd,[Ht.Linux]:()=>jd,[Ht.Mac]:()=>Ld},a=T(null),l=T([]),u=T(null),c=T(!0);Ve(async()=>{const m=t.getParameter("product_id"),v=t.getParameter("version");if(!m){u.value="Link is broken";return}try{a.value=await o(m,v||void 0)}catch(N){u.value=N.message}c.value=!1});function d(){t.enqueue(Pe.Download,ve.DownloadProduct,t.parameters??void 0),t.show(Pe.Authentication,ve.SignIn)}async function f(m){l.value.push(m.key),await s(m),l.value=l.value.filter(v=>v!==m.key)}return(m,v)=>{var N,S;return y(),O("div",Z1,[c.value||!b(r)?(y(),O("div",q1,[F(Pt)])):u.value?(y(),O("div",W1,z(u.value),1)):a.value?(y(),O("div",K1,[E("div",G1,[a.value.iconUrl?(y(),O("img",{key:0,src:a.value.iconUrl,alt:""},null,8,J1)):(y(),O("div",Y1)),E("div",null,[E("h2",null,[Te(z(a.value.name)+" ",1),E("span",null,"v"+z(a.value.version||a.value.currentVersion),1),a.value.prerelease?(y(),O("span",X1," (pre-release)")):me("",!0)]),E("h3",null,z(a.value.tagline),1)])]),a.value.downloadsNeedsUser&&!b(n)?(y(),O("div",Q1,[Te(" Please sign in to download product "),E("span",{class:"moonbase:download-product-cta"},[E("button",{role:"button",class:"moonbase:button",onClick:d}," Sign in ")])])):a.value.downloadsNeedsOwnership&&!((N=b(n).ownedProducts)!=null&&N.includes(a.value.id))?(y(),O("div",ew," This product requires ownership to download ")):(y(),O("div",tw,[(S=a.value)!=null&&S.downloads&&a.value.downloads.length>0?(y(),O("ul",nw,[(y(!0),O(ke,null,Jt(a.value.downloads,D=>(y(),O("li",{key:D.key},[E("div",null,[E("p",rw,[E("button",{onClick:B=>f(D)},[sw,Te(" "+z(D.name),1)],8,ow)]),E("p",iw,[(y(),xe(Zi(i[D.platform]()),{"aria-hidden":"true"})),Te(" "+z(D.platform)+" ",1),aw,Te(" "+z(b(H1)(D.size)),1)])]),E("div",null,[l.value.includes(D.key)?(y(),xe(Pt,{key:0})):(y(),O("svg",lw,uw))])]))),128))])):(y(),O("div",cw," No downloadable files found "))]))])):(y(),O("div",z1," Could not find product "))])}}}),fw={class:"moonbase:download"},pw=pe({__name:"Download",props:{open:{type:Boolean}},setup(e){const t=Re();return(n,r)=>(y(),xe(ni,{open:n.open,onClose:r[0]||(r[0]=o=>b(t).reset())},{default:ye(()=>[E("div",fw,[F(b(Qs),{as:"h3"},{default:ye(()=>[Te(" Download product ")]),_:1}),n.open&&b(t).intent===b(ve).DownloadProduct?(y(),xe(dw,{key:0})):me("",!0)])]),_:1},8,["open"]))}}),hw=pe({__name:"App",setup(e){const t=$e(qs),n=Re();return(r,o)=>{var s;return y(),O(ke,null,[(s=b(t))!=null&&s.toolbar.enabled?(y(),xe(Cg,{key:0})):me("",!0),F(G_,{open:b(n).active===b(Pe).Cart},null,8,["open"]),F(i_,{open:b(n).active===b(Pe).Authentication},null,8,["open"]),F(B1,{open:b(n).active===b(Pe).Activation},null,8,["open"]),F(pw,{open:b(n).active===b(Pe).Download},null,8,["open"]),F(y1,{open:b(n).active===b(Pe).Customer},null,8,["open"])],64)}}});function ri(e){return e&&typeof e=="object"&&!Array.isArray(e)}function qa(e,...t){if(t.length===0)return e;const n=t.shift();if(!n)return e;if(ri(e)&&ri(n)){for(const r in e)if(n.hasOwnProperty(r)){const o=n[r];ri(o)&&ri(e[r])?e[r]=qa(e[r],o):o!==void 0&&(e[r]=o)}}return qa(e,...t)}class mw{constructor(){Nr(this,"initialized",!1);Nr(this,"pinia");Nr(this,"storefront");Nr(this,"options")}async setup(t,n){if(document.getElementById("moonbase")){console.warn("Moonbase has already been initialized!");return}const r=document.createElement("div");if(r.id="moonbase",r.classList.add("moonbase"),document.body.append(r),this.options=qa(Sg,n),this.storefront=Gv(t),this.pinia=bg(),Vv(hw).use(this.storefront).use(this.pinia).provide(qs,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const o=new URLSearchParams(window.location.search),s=o.get("mb_intent");if(s&&Object.values(ve).includes(s)){const i=Object.fromEntries([...o.entries()].filter(([l])=>l.startsWith("mb_")).map(([l,u])=>[l.substring(3),u]));this[s](i);for(const l of Object.keys(i))o.delete(`mb_${l}`);const a=o.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(a?`?${a}`:""))}}}sign_in(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Authentication,ve.SignIn,t)}sign_up(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!this.options.auth.enable.signUp)throw new Error("Sign ups are not enabled");Re(this.pinia).show(Pe.Authentication,ve.SignUp,t)}forgot_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Authentication,ve.ForgotPassword,t)}reset_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Authentication,ve.ResetPassword,t)}confirm_account(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Authentication,ve.ConfirmAccount,t)}confirm_email(){}confirm_email_change(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=Re(this.pinia);St(this.storefront).user.value?n.show(Pe.Authentication,ve.ConfirmEmailChange,t):(n.show(Pe.Authentication,ve.SignIn),n.enqueue(Pe.Authentication,ve.ConfirmEmailChange,t))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const t=Re(this.pinia);St(this.storefront).user.value?t.show(Pe.Customer,ve.ViewAccount):(t.show(Pe.Authentication,ve.SignIn),t.enqueue(Pe.Customer,ve.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Cart,ve.ViewCart)}redeem_voucher(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Cart,ve.ViewCart,t)}download_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Download,ve.DownloadProduct,t)}activate_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.token))throw new Error("You need to provide a token when activating a product");Re(this.pinia).show(Pe.Activation,ve.ActivateProduct,t)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Re(this.pinia).show(Pe.Cart,ve.ViewCart)}async add_to_cart(t){var o,s,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.product_id)&&!(t!=null&&t.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=_a(this.storefront);if(t!=null&&t.product_id){const l=Pc(t.product_id,this.storefront);if(l.value)n.addToCart(l.value,(o=l.value.variations)==null?void 0:o.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=Pc(t.product_id,this.storefront);if(u.value)n.addToCart(u.value,(s=u.value.variations)==null?void 0:s.find(c=>c.id===t.variation_id));else throw new Error(`Product '${t.product_id}' not found`)}}if(t!=null&&t.bundle_id){const l=Cc(t.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=Cc(t.bundle_id,this.storefront);if(u.value)n.addToCart(u.value,(a=u.value.variations)==null?void 0:a.find(c=>c.id===t.variation_id));else throw new Error(`Bundle '${t.bundle_id}' not found`)}}Re(this.pinia).show(Pe.Cart,ve.AddToCart)}checkout(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");_a(this.storefront).checkout(`${window.location.pathname}?mb_intent=view_products`)}}const Md=new mw;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=Md),wt.MoonbaseIntent=ve,wt.default=Md,Object.defineProperties(wt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});